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

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

autoconf

File size: 1.6 KB
RevLine 
[1254]1AC_INIT(SysTools/ctimer.h)
2AM_INIT_AUTOMAKE(Sophya, 1.0)
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
43dnl add_src(directory, variable)
44dnl AC_DEFUN(ADD_SRC,
45dnl $2="`(cd $srcdir/$1; echo *.{c,cc})`"
46dnl [AC_SUBST($2)]dnl
47dnl )
48
49dnl ADD_SRC(SysTools, systoolssrc)
50
[1257]51dnl liste des repertoires
52
[1254]53echo "building include directory..."
54
55mkdir include 2>/dev/null
56cd include
57if test -d $srcdir; then
58 incsrcdir=$srcdir
59elif test -d ../$srcdir; then
60 incsrcdir=../$srcdir
61else
62 AC_MSG_ERROR("cannot find path to source dir")
63fi
[1257]64for xdir in SysTools TArray HiStats NTools; do
[1254]65 if test -d $incsrcdir/$xdir ; then
66 for fn in $incsrcdir/$xdir/*.h; do
67 ln -sf $fn .
68 done
69 fi
70done
71echo "done."
72cd ..
73
74AC_OUTPUT(Makefile include/Makefile SysTools/Makefile TArray/Makefile
[1257]75 HiStats/Makefile NTools/Makefile)
[1254]76
Note: See TracBrowser for help on using the repository browser.