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

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

pour autoconf

File size: 1.5 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
51echo "building include directory..."
52
53mkdir include 2>/dev/null
54cd include
55if test -d $srcdir; then
56 incsrcdir=$srcdir
57elif test -d ../$srcdir; then
58 incsrcdir=../$srcdir
59else
60 AC_MSG_ERROR("cannot find path to source dir")
61fi
62for xdir in SysTools TArray NTools; do
63 if test -d $incsrcdir/$xdir ; then
64 for fn in $incsrcdir/$xdir/*.h; do
65 ln -sf $fn .
66 done
67 fi
68done
69echo "done."
70cd ..
71
72AC_OUTPUT(Makefile include/Makefile SysTools/Makefile TArray/Makefile
73 NTools/Makefile)
74
Note: See TracBrowser for help on using the repository browser.