1
dnl Process this file with autoconf to produce a configure script.
5
dnl use local config dir for extras
6
AC_CONFIG_AUX_DIR(config)
8
dnl Defines the Language
11
dnl we use auto cheader
12
AM_CONFIG_HEADER(config.h)
15
AM_INIT_AUTOMAKE(ibdm,1.2)
17
dnl Provides control over re-making of all auto files
18
dnl We also use it to define swig dependencies so end
19
dnl users do not see them.
22
dnl Required for cases make defines a MAKE=make ??? Why
25
dnl Checks for programs.
31
MLX_PROG_SWIG(1.1.5, eq)
35
dnl We will use libtool for making ...
38
dnl For making dist we need not check any lib dependency
39
AC_ARG_ENABLE(libcheck,
40
[ --enable-libcheck Enable Dependency Checking],
41
[case "${enableval}" in
44
*) AC_MSG_ERROR(bad value ${enableval} for --enable-libcheck) ;; esac],[libcheck=true])
46
dnl Get the TCL defs: TCL_LIBS TCL_CPPFLAGS
49
dnl Checks for libraries.
51
dnl Checks for header files.
53
AC_CHECK_HEADERS([inttypes.h stdlib.h string.h])
55
dnl Checks for typedefs, structures, and compiler characteristics.
58
dnl For CPP there is absolutly no need for CONST etc
59
dnl moreover we mst somehow remoev them from the autoheader
65
dnl Checks for library functions.
68
AC_CHECK_FUNCS([strchr strstr strtol strtoull index rindex])
69
AC_REPLACE_FUNCS(memset)
72
dnl Just in case that the current version does not support the
73
dnl usage of LTLIBOBJS
75
dnl Xsed="sed -e s/^X//"
76
dnl LTLIBOBJS=`echo X"$LIBOBJS"|\
77
dnl [$Xsed -e "s,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,"]`
78
dnl AC_SUBST(LTLIBOBJS)
80
dnl Define an input config option to control debug compile
82
[ --enable-debug Turn on debugging],
83
[case "${enableval}" in
86
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
88
AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
90
dnl Define an input config option to control final package prefix:
91
dnl We compile and install in one dir - but we know eventually we
92
dnl will be moved to FINAL_PREFIX
93
AC_ARG_WITH(final-prefix,
94
[ --with-final-prefix=<dir> Let IBDM know it will eventually be moved there],
95
AC_SUBST(with_final_prefix)
96
AC_MSG_NOTICE(Using FINAL_PREFIX=$with_final_prefix)
98
AM_CONDITIONAL(USE_FINAL_PREFIX, test x$with_final_prefix != x)
100
dnl Create the following Makefiles
101
AC_OUTPUT(Makefile replace/Makefile ibnl/Makefile src/Makefile ibdm/Makefile Clusters/Makefile doc/Makefile)