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.14 - (hide annotations) (download)
Fri Nov 11 07:44:06 2005 UTC (18 years, 5 months ago) by orrisroot
Branch: MAIN
CVS Tags: RELEASE_4_2_3
Changes since 1.13: +2 -2 lines
updated version number.

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     AC_REVISION($Id: configure.in,v 1.13 2005/10/30 19:40:54 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     AC_CANONICAL_TARGET
13 orrisroot 1.9 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
14 orrisroot 1.10 AM_CONFIG_HEADER([config.h])
15 orrisroot 1.1
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 orrisroot 1.2 AC_PROG_CXX
48 orrisroot 1.1 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 orrisroot 1.2 AC_PROG_YACC
55 orrisroot 1.1 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 orrisroot 1.4 # check pthread library
69 orrisroot 1.12 ACX_PTHREAD
70 orrisroot 1.13 # 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 orrisroot 1.3 # check termcap library
83     AM_PATH_TERMCAP
84 orrisroot 1.4 # check X Toolkit
85     AM_PATH_XTOOLKIT
86 orrisroot 1.1
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 orrisroot 1.10 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 orrisroot 1.1 windows.h direct.h io.h process.h])
100    
101     # Checks for typedefs, structures, and compiler characteristics.
102 orrisroot 1.2 AC_HEADER_STDBOOL
103 orrisroot 1.1 AC_C_CONST
104     AC_C_INLINE
105 orrisroot 1.2 AC_TYPE_PID_T
106 orrisroot 1.1 AC_TYPE_SIZE_T
107     AC_HEADER_TIME
108     AC_STRUCT_TM
109     AC_TYPE_UID_T
110     AC_CHECK_TYPE(time_t, long)
111 orrisroot 1.11 dnl sig_t is the type of a signal handler (4.4BSD)
112     AC_CHECK_TYPES(sig_t, , ,
113     [#include <sys/types.h>
114     #include <signal.h> ])
115     AH_BOTTOM(
116     [#ifndef HAVE_SIG_T
117     typedef RETSIGTYPE (*sig_t) ();
118     #endif])
119 orrisroot 1.1
120     # Checks for library functions.
121 orrisroot 1.2 AC_FUNC_CLOSEDIR_VOID
122 orrisroot 1.1 AC_FUNC_FORK
123     AC_PROG_GCC_TRADITIONAL
124     AC_FUNC_LSTAT
125 orrisroot 1.2 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
126 orrisroot 1.1 AC_FUNC_MALLOC
127     AC_FUNC_MMAP
128 orrisroot 1.2 AC_FUNC_REALLOC
129 orrisroot 1.1 AC_TYPE_SIGNAL
130     AC_FUNC_STAT
131 orrisroot 1.2 AC_FUNC_STRTOD
132 orrisroot 1.1 AC_FUNC_VPRINTF
133 orrisroot 1.10 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 \
134     bzero strerror strncpy snprintf lockf flock vsnprintf])
135 orrisroot 1.1
136 orrisroot 1.13 # replaced cflags and libs for pthread support
137     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
138     CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
139     LIBS="$PTHREAD_LIBS $LIBS"
140    
141 orrisroot 1.1 AC_CONFIG_FILES([Makefile
142     satellite4-config
143     lib/Makefile
144     lib/common/Makefile
145     lib/shell/Makefile
146     shell/Makefile
147     etc/Makefile
148     modules/Makefile
149     modules/util/Makefile
150     modules/system/Makefile
151     modules/ispp/Makefile
152 orrisroot 1.2 modules/gpm/Makefile
153     modules/gpm/lib/Makefile
154     modules/gpm/command/Makefile
155     modules/gpm/gpm2ps/Makefile
156     modules/gpm/gpmwin/Makefile
157 orrisroot 1.5 modules/bps/Makefile
158     modules/bps/command/Makefile
159 orrisroot 1.1 modules/ncs/Makefile
160     modules/ncs/lib/Makefile
161     modules/ncs/lib/common/Makefile
162     modules/ncs/lib/simulation/Makefile
163     modules/ncs/lib/main/Makefile
164     modules/ncs/command/Makefile
165     modules/ncs/ncspp/Makefile
166     modules/npe/Makefile
167     modules/npe/lib/Makefile
168     modules/npe/lib/common/Makefile
169     modules/npe/lib/estimation/Makefile
170     modules/npe/lib/user/Makefile
171     modules/npe/lib/ncs/Makefile
172     modules/npe/command/Makefile
173     modules/dcm/Makefile
174     modules/statistics/Makefile
175     modules/statistics/script/Makefile
176     modules/statistics/script/data/Makefile])
177     AC_OUTPUT

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