1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(configure.in)
AM_INIT_AUTOMAKE(gODBCConfig, 1.8.8)
AM_CONFIG_HEADER(config.h)
dnl Pick up the Gnome macros.
AM_ACLOCAL_INCLUDE(macros)
GNOME_INIT
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AM_PROG_LIBTOOL
GNOME_COMPILE_WARNINGS
GNOME_X_CHECKS
dnl Add the languages which your application supports here.
ALL_LINGUAS=""
AM_GNU_GETTEXT
dnl Set PACKAGE_LOCALE_DIR in config.h.
if test "x${prefix}" = "xNONE"; then
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
else
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
fi
dnl Subst PACKAGE_PIXMAPS_DIR.
PACKAGE_PIXMAPS_DIR="`gnome-config --datadir`/pixmaps/${PACKAGE}"
AC_SUBST(PACKAGE_PIXMAPS_DIR)
dnl
dnl test for ODBC
dnl
AC_ARG_WITH(odbc,
[ --with-odbc=<directory> use ODBC libraries in <directory>],[
if test $withval != yes
then
dir=$withval
else
dir="/usr/local"
fi
])
odbcdir=""
AC_MSG_CHECKING(for ODBC files)
for d in $dir /usr /usr/local
do
if test -f $d/lib/libodbcinst.so
then
AC_MSG_RESULT(found ODBC in $d)
ODBCLIB="-lodbcinst"
odbcdir=$d
break
fi
done
if test x$odbcdir = x
then
AC_MSG_ERROR(ODBC backend not found)
else
AC_DEFINE(HAVE_ODBC)
ODBCINCLUDES=${odbcdir}/include
ODBCLIBS=${odbcdir}/lib
fi
AC_SUBST(ODBCINCLUDES)
AC_SUBST(ODBCLIBS)
AC_SUBST(ODBCLIB)
AC_OUTPUT([
Makefile
macros/Makefile
src/Makefile
intl/Makefile
po/Makefile.in
])
|