Develop and Download Open Source Software

Browse CVS Repository

Contents of /satellite/satellite4/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.19 - (show annotations) (download)
Mon Sep 4 14:51:56 2006 UTC (17 years, 6 months ago) by orrisroot
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +6 -6 lines
added macro check HAVE_SNPRINTF HAVE_MEMSET HAVE_STRSTR HAVE_MEMMOVE.

1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.59)
5 AC_INIT(satellite, 4.2.3, okumura@brain.riken.go.jp)
6 AC_REVISION($Id: configure.in,v 1.18 2006/09/04 13:51:18 orrisroot Exp $)
7
8 AC_CONFIG_SRCDIR([satellite4-config.in])
9 AC_CONFIG_AUX_DIR([config])
10 AC_PREFIX_DEFAULT([/usr/local/satellite4])
11
12 AC_GNU_SOURCE
13 AC_ISC_POSIX
14 AC_CYGWIN
15
16 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
17 AM_CONFIG_HEADER([config.h])
18
19 sl4includedir=$includedir/satellite4
20 AC_SUBST(sl4includedir)
21
22 sl4libdir=$libdir
23 AC_SUBST(sl4libdir)
24
25 sl4libexecdir=$libexecdir/satellite4
26 AC_SUBST(sl4libexecdir)
27
28 docdir=$datadir/doc
29 AC_SUBST(docdir)
30 sl4docdir=$docdir/satellite4
31 AC_SUBST(sl4docdir)
32
33 sl4sharedir=$datadir/satellite4
34 AC_SUBST(sl4sharedir)
35
36 examplesdir=$datadir/examples/satellite4
37 AC_SUBST(examplesdir)
38
39 moduledir=$libdir/satellite4
40 AC_SUBST(moduledir)
41
42 systemrcdir=$sysconfdir/satellite4
43 AC_SUBST(systemrcdir)
44
45 modulercdir=$sysconfdir/satellite4
46 AC_SUBST(modulercdir)
47
48 # Checks for programs.
49 AM_DISABLE_STATIC
50 AC_PROG_CXX
51 AC_PROG_CC
52 AC_PROG_CPP
53 AC_PROG_INSTALL
54 AC_PROG_LN_S
55 AC_PROG_MAKE_SET
56 AC_PROG_RANLIB
57 AC_PROG_YACC
58 AC_PROG_AWK
59 AC_LIBTOOL_DLOPEN
60 AC_PROG_LIBTOOL
61 AM_PROG_LEX
62 AC_SHLIBPATH_VAR
63
64 AC_C_BIGENDIAN
65 AM_MAINTAINER_MODE
66
67 # Checks for libraries.
68 # FIXME: Replace `main' with a function in `-lm':
69 AC_CHECK_LIB(m, sin)
70
71 # check pthread library
72 ACX_PTHREAD
73 # Some platforms use these, so just defineed them. They can't hurt if they
74 # are not supported.
75 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
76 # At this point, we don't want to muck with the compiler name for threading.
77 # Let's see who fails, perhaps AIX. 2004-04-23
78 if test "$PTHREAD_CC" != "$CC"; then
79 AC_MSG_ERROR([
80 satellite4 does not support platforms that require a special
81 compiler binary for thread-safety.
82 ])
83 fi
84
85 # check termcap library
86 AM_PATH_TERMCAP
87 # check X Toolkit
88 AM_PATH_XTOOLKIT
89
90 # FIXME: Replace `main' with a function in `-lsatellite':
91 #AC_CHECK_LIB([satellite], [main])
92 # FIXME: Replace `main' with a function in `-lslshell':
93 #AC_CHECK_LIB([slshell], [main])
94 AC_CHECK_LIB([dl], [dlopen])
95
96 # Checks for header files.
97 # libsl4 : direct.h pthread.h pwd.h stdlib.h string.h sys/param.h sys/stat.h
98 # sys/time.h sys/types.h unistd.h
99 AC_HEADER_DIRENT
100 AC_HEADER_STDBOOL
101 AC_HEADER_STDC
102 AC_HEADER_SYS_WAIT
103 AC_HEADER_TIME
104 AC_CHECK_HEADERS([direct.h pthread.h pwd.h stdlib.h string.h sys/param.h sys/stat.h sys/time.h sys/types.h unistd.h \
105 fcntl.h float.h locale.h malloc.h stddef.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/time.h sys/timeb.h \
106 termios.h vfork.h errno.h limits.h memory.h getopt.h pwd.h \
107 windows.h io.h process.h])
108
109 # Checks for typedefs, structures, and compiler characteristics.
110 AC_C_CONST
111 AC_C_INLINE
112 AC_TYPE_MODE_T
113 AC_TYPE_OFF_T
114 AC_TYPE_PID_T
115 AC_TYPE_SIZE_T
116 AC_TYPE_SIGNAL
117 AC_TYPE_UID_T
118 AC_STRUCT_TM
119 AC_CHECK_TYPE(ssize_t, int)
120 AC_CHECK_TYPE(time_t, long)
121 dnl sig_t is the type of a signal handler (4.4BSD)
122 AC_CHECK_TYPES(sig_t, , ,
123 [#include <sys/types.h>
124 #include <signal.h> ])
125 AH_BOTTOM(
126 [#ifndef HAVE_SIG_T
127 typedef RETSIGTYPE (*sig_t) ();
128 #endif])
129
130 # Checks for library functions.
131 # libsl4 : endpwent getcwd memmove memset mkdir putenv rmdir setenv snprintf
132 # strstr vasprintf vsnprintf wvsprintf _vscprintf
133 AC_FUNC_CLOSEDIR_VOID
134 AC_FUNC_FORK
135 AC_PROG_GCC_TRADITIONAL
136 AC_FUNC_LSTAT
137 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
138 AC_FUNC_MALLOC
139 AC_FUNC_MMAP
140 AC_FUNC_REALLOC
141 AC_FUNC_STAT
142 AC_FUNC_STRTOD
143 AC_FUNC_VPRINTF
144 AC_CHECK_FUNCS([endpwent getcwd memmove memset mkdir putenv rmdir setenv snprintf strstr vasprintf vsnprintf wvsprintf _vscprintf \
145 floor ftime gethostname gettimeofday munmap pow setlocale sqrt strchr strdup strpbrk strrchr strtol lrand48 \
146 bzero strerror strncpy lockf flockf])
147
148 # replaced cflags and libs for pthread support
149 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
150 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
151 LIBS="$PTHREAD_LIBS $LIBS"
152
153 AC_CONFIG_FILES([Makefile
154 satellite4-config
155 lib/Makefile
156 lib/libsl4/Makefile
157 lib/common/Makefile
158 lib/shell/Makefile
159 shell/Makefile
160 etc/Makefile
161 modules/Makefile
162 modules/util/Makefile
163 modules/system/Makefile
164 modules/ispp/Makefile
165 modules/gpm/Makefile
166 modules/gpm/lib/Makefile
167 modules/gpm/command/Makefile
168 modules/gpm/gpm2ps/Makefile
169 modules/gpm/gpmwin/Makefile
170 modules/bps/Makefile
171 modules/bps/command/Makefile
172 modules/ncs/Makefile
173 modules/ncs/lib/Makefile
174 modules/ncs/lib/common/Makefile
175 modules/ncs/lib/simulation/Makefile
176 modules/ncs/lib/main/Makefile
177 modules/ncs/command/Makefile
178 modules/ncs/ncspp/Makefile
179 modules/npe/Makefile
180 modules/npe/lib/Makefile
181 modules/npe/lib/common/Makefile
182 modules/npe/lib/estimation/Makefile
183 modules/npe/lib/user/Makefile
184 modules/npe/lib/ncs/Makefile
185 modules/npe/command/Makefile
186 modules/dcm/Makefile
187 modules/statistics/Makefile
188 modules/statistics/script/Makefile
189 modules/statistics/script/data/Makefile])
190 AC_OUTPUT

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26