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.15 - (show annotations) (download)
Mon Mar 13 15:12:15 2006 UTC (18 years, 1 month ago) by orrisroot
Branch: MAIN
Changes since 1.14: +3 -1 lines
updated libtool version to 1.5.22.
added type check for 'off_t' and 'ssize_t'.

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

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