source: Sophya/trunk/SophyaLib/Mgr/configure.in@ 1271

Last change on this file since 1271 was 1271, checked in by ansari, 25 years ago

config

File size: 1.5 KB
Line 
1AC_INIT(SysTools/ctimer.h)
2AM_INIT_AUTOMAKE(Sophya, 0.9.95)
3AM_CONFIG_HEADER(config.h)
4
5dnl check if run from srcdir
6if test -f SysTools/ctimer.h; then
7 AC_MSG_ERROR("do not run configure from the distribution directory")
8fi
9
10AC_CANONICAL_HOST
11
12dnl Checks for programs.
13AC_PROG_CXX
14AC_PROG_CC
15AC_PROG_INSTALL
16AC_PROG_RANLIB
17
18dnl Checks for typedefs, structures, and compiler characteristics.
19AC_C_CONST
20AC_C_INLINE
21AC_TYPE_SIZE_T
22AC_C_BIGENDIAN
23AC_C_LONG_DOUBLE
24AC_CHECK_SIZEOF(short)
25AC_CHECK_SIZEOF(int)
26AC_CHECK_SIZEOF(long)
27AC_CHECK_SIZEOF(long long)
28AC_CHECK_SIZEOF(float)
29AC_CHECK_SIZEOF(double)
30
31AC_DEFINE_UNQUOTED(CXX, ${CXX} )
32AC_DEFINE_UNQUOTED(HOST_CPU, $host_cpu)
33AC_DEFINE_UNQUOTED(HOST_VENDOR, $host_vendor)
34AC_DEFINE_UNQUOTED(HOST_OS, $host_os)
35
36
37dnl Check for functions
38AC_CHECK_FUNCS(random)
39AC_CHECK_FUNCS(nice)
40
41cp $srcdir/SysTools/machdefs_ac.h machdefs.h
42
43
44echo "building include directory..."
45
46mkdir include 2>/dev/null
47cd include
48if test -d $srcdir; then
49 incsrcdir=$srcdir
50elif test -d ../$srcdir; then
51 incsrcdir=../$srcdir
52else
53 AC_MSG_ERROR("cannot find path to source dir")
54fi
55
56
57for xdir in SysTools TArray HiStats NTools SkyMap Samba SkyT; do
58 if test -d $incsrcdir/$xdir ; then
59 for fn in $incsrcdir/$xdir/*.h; do
60 ln -sf $fn .
61 done
62 fi
63done
64echo "done."
65cd ..
66
67AC_OUTPUT(Makefile include/Makefile SysTools/Makefile TArray/Makefile
68 HiStats/Makefile NTools/Makefile SkyMap/Makefile
69 Samba/Makefile SkyT/Makefile)
70
Note: See TracBrowser for help on using the repository browser.