Develop and Download Open Source Software

Browse CVS Repository

Annotation of /satellite/satellite4/configure.in

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


Revision 1.17 - (hide annotations) (download)
Fri Sep 1 08:53:16 2006 UTC (17 years, 7 months ago) by orrisroot
Branch: MAIN
Changes since 1.16: +9 -7 lines
added fatal error function sl4_error_fatal().
added win32 specific function sl4_win32_has_console().
moved to get user name function from lib/common/userinfo.c to lib/libsl4/user.c

1 orrisroot 1.10 # -*- Autoconf -*-
2 orrisroot 1.1 # Process this file with autoconf to produce a configure script.
3 orrisroot 1.10
4 orrisroot 1.9 AC_PREREQ(2.59)
5 orrisroot 1.14 AC_INIT(satellite, 4.2.3, okumura@brain.riken.go.jp)
6 orrisroot 1.17 AC_REVISION($Id: configure.in,v 1.16 2006/08/25 15:02:05 orrisroot Exp $)
7 orrisroot 1.1
8 orrisroot 1.10 AC_CONFIG_SRCDIR([satellite4-config.in])
9     AC_CONFIG_AUX_DIR([config])
10     AC_PREFIX_DEFAULT([/usr/local/satellite4])
11 orrisroot 1.1
12 orrisroot 1.16 AC_GNU_SOURCE
13     AC_ISC_POSIX
14     AC_CYGWIN
15    
16 orrisroot 1.9 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
17 orrisroot 1.10 AM_CONFIG_HEADER([config.h])
18 orrisroot 1.1
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 orrisroot 1.2 AC_PROG_CXX
51 orrisroot 1.1 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 orrisroot 1.2 AC_PROG_YACC
58 orrisroot 1.1 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 orrisroot 1.4 # check pthread library
72 orrisroot 1.12 ACX_PTHREAD
73 orrisroot 1.13 # 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 orrisroot 1.3 # check termcap library
86     AM_PATH_TERMCAP
87 orrisroot 1.4 # check X Toolkit
88     AM_PATH_XTOOLKIT
89 orrisroot 1.1
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 orrisroot 1.16 # libsl4 : unistd.h, direct.h, sys/stat.h, sys/param.h, pthread.h, windows.h
98 orrisroot 1.1 AC_HEADER_DIRENT
99     AC_HEADER_STDC
100     AC_HEADER_SYS_WAIT
101 orrisroot 1.16 AC_CHECK_HEADERS([unistd.h direct.h sys/stat.h sys/param.h pthread.h \
102     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 \
103 orrisroot 1.10 termios.h vfork.h errno.h limits.h memory.h getopt.h pwd.h \
104 orrisroot 1.16 windows.h io.h process.h])
105 orrisroot 1.1
106     # Checks for typedefs, structures, and compiler characteristics.
107 orrisroot 1.2 AC_HEADER_STDBOOL
108 orrisroot 1.1 AC_C_CONST
109     AC_C_INLINE
110 orrisroot 1.17 AC_TYPE_MODE_T
111     AC_TYPE_OFF_T
112 orrisroot 1.2 AC_TYPE_PID_T
113 orrisroot 1.1 AC_TYPE_SIZE_T
114 orrisroot 1.17 AC_TYPE_SIGNAL
115     AC_TYPE_UID_T
116 orrisroot 1.1 AC_HEADER_TIME
117     AC_STRUCT_TM
118 orrisroot 1.15 AC_CHECK_TYPE(ssize_t, int)
119 orrisroot 1.1 AC_CHECK_TYPE(time_t, long)
120 orrisroot 1.11 dnl sig_t is the type of a signal handler (4.4BSD)
121     AC_CHECK_TYPES(sig_t, , ,
122     [#include <sys/types.h>
123     #include <signal.h> ])
124     AH_BOTTOM(
125     [#ifndef HAVE_SIG_T
126     typedef RETSIGTYPE (*sig_t) ();
127     #endif])
128 orrisroot 1.1
129     # Checks for library functions.
130 orrisroot 1.2 AC_FUNC_CLOSEDIR_VOID
131 orrisroot 1.1 AC_FUNC_FORK
132     AC_PROG_GCC_TRADITIONAL
133     AC_FUNC_LSTAT
134 orrisroot 1.2 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
135 orrisroot 1.1 AC_FUNC_MALLOC
136     AC_FUNC_MMAP
137 orrisroot 1.2 AC_FUNC_REALLOC
138 orrisroot 1.1 AC_FUNC_STAT
139 orrisroot 1.2 AC_FUNC_STRTOD
140 orrisroot 1.1 AC_FUNC_VPRINTF
141 orrisroot 1.17 # libsl4 : endpwent getcwd getenv mkdir rmdir setenv vasprintf vsnprintf
142     # wvsprintf _vscprintf
143     AC_CHECK_FUNCS([endpwent getcwd getenv mkdir rmdir setenv vasprintf vsnprintf wvsprintf _vscprintf \
144     floor ftime gethostname gettimeofday memmove memset munmap pow putenv setlocale sqrt strchr strdup strpbrk strrchr strstr strtol lrand48 \
145 orrisroot 1.16 bzero strerror strncpy snprintf lockf flockf])
146 orrisroot 1.1
147 orrisroot 1.13 # replaced cflags and libs for pthread support
148     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
149     CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
150     LIBS="$PTHREAD_LIBS $LIBS"
151    
152 orrisroot 1.1 AC_CONFIG_FILES([Makefile
153     satellite4-config
154     lib/Makefile
155 orrisroot 1.16 lib/libsl4/Makefile
156 orrisroot 1.1 lib/common/Makefile
157     lib/shell/Makefile
158     shell/Makefile
159     etc/Makefile
160     modules/Makefile
161     modules/util/Makefile
162     modules/system/Makefile
163     modules/ispp/Makefile
164 orrisroot 1.2 modules/gpm/Makefile
165     modules/gpm/lib/Makefile
166     modules/gpm/command/Makefile
167     modules/gpm/gpm2ps/Makefile
168     modules/gpm/gpmwin/Makefile
169 orrisroot 1.5 modules/bps/Makefile
170     modules/bps/command/Makefile
171 orrisroot 1.1 modules/ncs/Makefile
172     modules/ncs/lib/Makefile
173     modules/ncs/lib/common/Makefile
174     modules/ncs/lib/simulation/Makefile
175     modules/ncs/lib/main/Makefile
176     modules/ncs/command/Makefile
177     modules/ncs/ncspp/Makefile
178     modules/npe/Makefile
179     modules/npe/lib/Makefile
180     modules/npe/lib/common/Makefile
181     modules/npe/lib/estimation/Makefile
182     modules/npe/lib/user/Makefile
183     modules/npe/lib/ncs/Makefile
184     modules/npe/command/Makefile
185     modules/dcm/Makefile
186     modules/statistics/Makefile
187     modules/statistics/script/Makefile
188     modules/statistics/script/data/Makefile])
189     AC_OUTPUT

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