Added fallback to libdb.

This commit is contained in:
fritz 1998-06-26 15:28:32 +00:00
parent d91d040f85
commit 7b68f491db
3 changed files with 155 additions and 104 deletions

253
isdnlog/configure vendored
View File

@ -15,7 +15,7 @@ ac_default_prefix=/usr
ac_help="$ac_help
--with-postgres=DIR Set postgres directory []"
ac_help="$ac_help
--with-mysql=DIR Set mysql directory []"
--with-mysql=DIR Set mysql directory []"
ac_help="$ac_help
--with-kernel=DIR Set kernel source directory [/usr/src/linux]"
ac_help="$ac_help
@ -649,7 +649,7 @@ fi
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:649: checking for $ac_word" >&5
echo "configure:653: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -678,7 +678,7 @@ if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:678: checking for $ac_word" >&5
echo "configure:682: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -726,7 +726,7 @@ fi
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:726: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@ -736,11 +736,11 @@ ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS
cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext <<EOF
#line 736 "configure"
#line 740 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
@ -760,12 +760,12 @@ if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:760: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:765: checking whether we are using GNU C" >&5
echo "configure:769: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -774,7 +774,7 @@ else
yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
@ -789,7 +789,7 @@ if test $ac_cv_prog_gcc = yes; then
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:789: checking whether ${CC-cc} accepts -g" >&5
echo "configure:793: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -846,7 +846,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:846: checking for a BSD compatible install" >&5
echo "configure:850: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -896,7 +896,7 @@ test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:896: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo "configure:900: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -924,7 +924,7 @@ fi
echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
echo "configure:924: checking for dbm_open in -ldbm" >&5
echo "configure:928: checking for dbm_open in -ldbm" >&5
ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -932,7 +932,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ldbm $LIBS"
cat > conftest.$ac_ext <<EOF
#line 932 "configure"
#line 936 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -943,7 +943,7 @@ int main() {
dbm_open()
; return 0; }
EOF
if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -965,7 +965,7 @@ EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
echo "configure:965: checking for gdbm_open in -lgdbm" >&5
echo "configure:969: checking for gdbm_open in -lgdbm" >&5
ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -973,7 +973,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lgdbm $LIBS"
cat > conftest.$ac_ext <<EOF
#line 973 "configure"
#line 977 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -984,7 +984,7 @@ int main() {
gdbm_open()
; return 0; }
EOF
if { (eval echo configure:984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1005,12 +1005,55 @@ EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for dbm_open in -ldb""... $ac_c" 1>&6
echo "configure:1010: checking for dbm_open in -ldb" >&5
ac_lib_var=`echo db'_'dbm_open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-ldb $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1018 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dbm_open();
int main() {
dbm_open()
; return 0; }
EOF
if { (eval echo configure:1029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
DBMLIB=-ldb; cat >> confdefs.h <<\EOF
#define HAVE_LIBDB 1
EOF
else
echo "$ac_t""no" 1>&6
fi
fi
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1010: checking how to run the C preprocessor" >&5
echo "configure:1057: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
@ -1025,13 +1068,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
#line 1025 "configure"
#line 1072 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@ -1042,13 +1085,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
#line 1042 "configure"
#line 1089 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@ -1084,10 +1127,10 @@ fi
if test "$tst_postgresdir" != "" || test "$CONFIG_ISDNLOG_POSTGRES" = "y" ; then
echo $ac_n "checking for postgres in ${tst_postgresdir}""... $ac_c" 1>&6
echo "configure:1084: checking for postgres in ${tst_postgresdir}" >&5
echo "configure:1131: checking for postgres in ${tst_postgresdir}" >&5
if test "${tst_postgresdir}" != "" ; then
cat > conftest.$ac_ext <<EOF
#line 1087 "configure"
#line 1134 "configure"
#include "confdefs.h"
#include <${tst_postgresdir}/include/libpq-fe.h>
EOF
@ -1102,9 +1145,9 @@ rm -f conftest*
if test "$pqdir" = "no" ; then
echo "$ac_t"""$pqdir"" 1>&6
echo $ac_n "checking for postgres in /lib/postgres95""... $ac_c" 1>&6
echo "configure:1102: checking for postgres in /lib/postgres95" >&5
echo "configure:1149: checking for postgres in /lib/postgres95" >&5
cat > conftest.$ac_ext <<EOF
#line 1104 "configure"
#line 1151 "configure"
#include "confdefs.h"
#include </lib/postgre95/include/libpq-fe.h>
EOF
@ -1119,9 +1162,9 @@ rm -f conftest*
if test "$pqdir" = "no" ; then
echo "$ac_t"""$pqdir"" 1>&6
echo $ac_n "checking for postgres in /usr/lib/postgres95""... $ac_c" 1>&6
echo "configure:1119: checking for postgres in /usr/lib/postgres95" >&5
echo "configure:1166: checking for postgres in /usr/lib/postgres95" >&5
cat > conftest.$ac_ext <<EOF
#line 1121 "configure"
#line 1168 "configure"
#include "confdefs.h"
#include </usr/lib/postgre95/include/libpq-fe.h>
EOF
@ -1136,9 +1179,9 @@ rm -f conftest*
if test "$pqdir" = "no" ; then
echo "$ac_t"""$pqdir"" 1>&6
echo $ac_n "checking for postgres in /usr/local/postgres95""... $ac_c" 1>&6
echo "configure:1136: checking for postgres in /usr/local/postgres95" >&5
echo "configure:1183: checking for postgres in /usr/local/postgres95" >&5
cat > conftest.$ac_ext <<EOF
#line 1138 "configure"
#line 1185 "configure"
#include "confdefs.h"
#include </usr/lib/local/postgre95/include/libpq-fe.h>
EOF
@ -1153,9 +1196,9 @@ rm -f conftest*
if test "$pqdir" = "no" ; then
echo "$ac_t"""$pqdir"" 1>&6
echo $ac_n "checking for postgres in /usr/local/lib/postgres95""... $ac_c" 1>&6
echo "configure:1153: checking for postgres in /usr/local/lib/postgres95" >&5
echo "configure:1200: checking for postgres in /usr/local/lib/postgres95" >&5
cat > conftest.$ac_ext <<EOF
#line 1158 "configure"
#line 1202 "configure"
#include "confdefs.h"
#include </usr/lib/local/lib/postgre95/include/libpq-fe.h>
EOF
@ -1184,6 +1227,8 @@ EOF
#define POSTGRESDIR "$pqdir"
EOF
MYSQLDIR=""
@ -1199,10 +1244,10 @@ fi
if test "$tst_mysqldir" != "" || test "$CONFIG_ISDNLOG_MYSQLDB" = "y" ; then
echo $ac_n "checking for mysql in ${tst_mysqldir}""... $ac_c" 1>&6
echo "configure:1201: checking for mysql in ${tst_mysqldir}" >&5
echo "configure:1248: checking for mysql in ${tst_mysqldir}" >&5
if test "${tst_mysqldir}" != "" ; then
cat > conftest.$ac_ext <<EOF
#line 1204 "configure"
#line 1251 "configure"
#include "confdefs.h"
#include <${tst_mysqldir}/include/mysql.h>
EOF
@ -1217,9 +1262,9 @@ rm -f conftest*
if test "$mydir" = "no" ; then
echo "$ac_t"""$mydir"" 1>&6
echo $ac_n "checking for mysql in /lib/mysql""... $ac_c" 1>&6
echo "configure:1219: checking for mysql in /lib/mysql" >&5
echo "configure:1266: checking for mysql in /lib/mysql" >&5
cat > conftest.$ac_ext <<EOF
#line 1221 "configure"
#line 1268 "configure"
#include "confdefs.h"
#include </lib/mysql/include/mysql.h>
EOF
@ -1234,9 +1279,9 @@ rm -f conftest*
if test "$mydir" = "no" ; then
echo "$ac_t"""$mydir"" 1>&6
echo $ac_n "checking for mysql in /usr/lib/mysql""... $ac_c" 1>&6
echo "configure:1236: checking for mysql in /usr/lib/mysql" >&5
echo "configure:1283: checking for mysql in /usr/lib/mysql" >&5
cat > conftest.$ac_ext <<EOF
#line 1238 "configure"
#line 1285 "configure"
#include "confdefs.h"
#include </usr/lib/mysql/include/mysql.h>
EOF
@ -1251,11 +1296,11 @@ rm -f conftest*
if test "$mydir" = "no" ; then
echo "$ac_t"""$mydir"" 1>&6
echo $ac_n "checking for mysql in /usr/local/mysql""... $ac_c" 1>&6
echo "configure:1253: checking for mysql in /usr/local/mysql" >&5
echo "configure:1300: checking for mysql in /usr/local/mysql" >&5
cat > conftest.$ac_ext <<EOF
#line 1255 "configure"
#line 1302 "configure"
#include "confdefs.h"
#include </usr/local/mysql/include/mysql.h>
#include </usr/local/postgre95/include/mysql.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "MYSQL" >/dev/null 2>&1; then
@ -1268,9 +1313,9 @@ rm -f conftest*
if test "$mydir" = "no" ; then
echo "$ac_t"""$mydir"" 1>&6
echo $ac_n "checking for mysql in /usr/local/lib/mysql""... $ac_c" 1>&6
echo "configure:1270: checking for mysql in /usr/local/lib/mysql" >&5
echo "configure:1317: checking for mysql in /usr/local/lib/mysql" >&5
cat > conftest.$ac_ext <<EOF
#line 1272 "configure"
#line 1319 "configure"
#include "confdefs.h"
#include </usr/local/lib/mysql/include/mysql.h>
EOF
@ -1299,6 +1344,8 @@ EOF
#define MYSQLDIR "$mydir"
EOF
#AC_CHECK_LIB(dbmalloc, main)
@ -1317,15 +1364,15 @@ fi
if test "$DOTEST" = "y" || test "$CONFIG_KERNELDIR" != "" ; then
echo $ac_n "checking for linux kernel source in ${tst_kerneldir}""... $ac_c" 1>&6
echo "configure:1204: checking for linux kernel source in ${tst_kerneldir}" >&5
echo "configure:1368: checking for linux kernel source in ${tst_kerneldir}" >&5
CPPFLAGS="-nostdinc -I${tst_kerneldir}/drivers/isdn"
cat > conftest.$ac_ext <<EOF
#line 1207 "configure"
#line 1371 "configure"
#include "confdefs.h"
#include <isdn_common.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1341,15 +1388,15 @@ rm -f conftest*
fi
if test "$lxdir" = "no" ; then
echo $ac_n "checking for linux kernel source in /usr/src/linux""... $ac_c" 1>&6
echo "configure:1228: checking for linux kernel source in /usr/src/linux" >&5
echo "configure:1392: checking for linux kernel source in /usr/src/linux" >&5
CPPFLAGS="-nostdinc -I/usr/src/linux/drivers/isdn"
cat > conftest.$ac_ext <<EOF
#line 1231 "configure"
#line 1395 "configure"
#include "confdefs.h"
#include <isdn_common.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1364,15 +1411,15 @@ rm -f conftest*
if test "$lxdir" = "no" ; then
echo "$ac_t"""$lxdir"" 1>&6
echo $ac_n "checking for linux kernel source in /usr/local/src/linux""... $ac_c" 1>&6
echo "configure:1251: checking for linux kernel source in /usr/local/src/linux" >&5
echo "configure:1415: checking for linux kernel source in /usr/local/src/linux" >&5
CPPFLAGS="-nostdinc -I/usr/local/src/linux/drivers/isdn"
cat > conftest.$ac_ext <<EOF
#line 1254 "configure"
#line 1418 "configure"
#include "confdefs.h"
#include <isdn_common.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1400,12 +1447,12 @@ EOF
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:1287: checking for ANSI C header files" >&5
echo "configure:1451: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1292 "configure"
#line 1456 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
@ -1413,7 +1460,7 @@ else
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1430,7 +1477,7 @@ rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1317 "configure"
#line 1481 "configure"
#include "confdefs.h"
#include <string.h>
EOF
@ -1448,7 +1495,7 @@ fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1335 "configure"
#line 1499 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
@ -1469,7 +1516,7 @@ if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
#line 1356 "configure"
#line 1520 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@ -1480,7 +1527,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if { (eval echo configure:1367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
:
else
@ -1504,12 +1551,12 @@ EOF
fi
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
echo "configure:1391: checking for sys/wait.h that is POSIX.1 compatible" >&5
echo "configure:1555: checking for sys/wait.h that is POSIX.1 compatible" >&5
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1396 "configure"
#line 1560 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/wait.h>
@ -1525,7 +1572,7 @@ wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
; return 0; }
EOF
if { (eval echo configure:1412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_sys_wait_h=yes
else
@ -1549,17 +1596,17 @@ for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h syslog.h unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1436: checking for $ac_hdr" >&5
echo "configure:1600: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1441 "configure"
#line 1605 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1636,12 +1683,12 @@ fi
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:1523: checking for working const" >&5
echo "configure:1687: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1528 "configure"
#line 1692 "configure"
#include "confdefs.h"
int main() {
@ -1690,7 +1737,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
if { (eval echo configure:1577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
@ -1711,12 +1758,12 @@ EOF
fi
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
echo "configure:1598: checking for pid_t" >&5
echo "configure:1762: checking for pid_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1603 "configure"
#line 1767 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@ -1744,12 +1791,12 @@ EOF
fi
echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:1631: checking for size_t" >&5
echo "configure:1795: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1636 "configure"
#line 1800 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@ -1777,12 +1824,12 @@ EOF
fi
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:1664: checking whether time.h and sys/time.h may both be included" >&5
echo "configure:1828: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1669 "configure"
#line 1833 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
@ -1791,7 +1838,7 @@ int main() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:1678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_time=yes
else
@ -1812,12 +1859,12 @@ EOF
fi
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
echo "configure:1699: checking whether struct tm is in sys/time.h or time.h" >&5
echo "configure:1863: checking whether struct tm is in sys/time.h or time.h" >&5
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1704 "configure"
#line 1868 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
@ -1825,7 +1872,7 @@ int main() {
struct tm *tp; tp->tm_sec;
; return 0; }
EOF
if { (eval echo configure:1712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_struct_tm=time.h
else
@ -1860,15 +1907,15 @@ fi
if test "$DOTEST" = "y" || test "$CONFIG_KERNELDIR" != "" ; then
echo $ac_n "checking for linux kernel source in ${tst_kerneldir}""... $ac_c" 1>&6
echo "configure:1747: checking for linux kernel source in ${tst_kerneldir}" >&5
echo "configure:1911: checking for linux kernel source in ${tst_kerneldir}" >&5
CPPFLAGS="-nostdinc -I${tst_kerneldir}/drivers/isdn"
cat > conftest.$ac_ext <<EOF
#line 1750 "configure"
#line 1914 "configure"
#include "confdefs.h"
#include <isdn_common.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1884,15 +1931,15 @@ rm -f conftest*
fi
if test "$lxdir" = "no" ; then
echo $ac_n "checking for linux kernel source in /usr/src/linux""... $ac_c" 1>&6
echo "configure:1771: checking for linux kernel source in /usr/src/linux" >&5
echo "configure:1935: checking for linux kernel source in /usr/src/linux" >&5
CPPFLAGS="-nostdinc -I/usr/src/linux/drivers/isdn"
cat > conftest.$ac_ext <<EOF
#line 1774 "configure"
#line 1938 "configure"
#include "confdefs.h"
#include <isdn_common.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1907,15 +1954,15 @@ rm -f conftest*
if test "$lxdir" = "no" ; then
echo "$ac_t"""$lxdir"" 1>&6
echo $ac_n "checking for linux kernel source in /usr/local/src/linux""... $ac_c" 1>&6
echo "configure:1794: checking for linux kernel source in /usr/local/src/linux" >&5
echo "configure:1958: checking for linux kernel source in /usr/local/src/linux" >&5
CPPFLAGS="-nostdinc -I/usr/local/src/linux/drivers/isdn"
cat > conftest.$ac_ext <<EOF
#line 1797 "configure"
#line 1961 "configure"
#include "confdefs.h"
#include <isdn_common.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1944,13 +1991,13 @@ EOF
if test $ac_cv_prog_gcc = yes; then
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
echo "configure:1831: checking whether ${CC-cc} needs -traditional" >&5
echo "configure:1995: checking whether ${CC-cc} needs -traditional" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_pattern="Autoconf.*'x'"
cat > conftest.$ac_ext <<EOF
#line 1837 "configure"
#line 2001 "configure"
#include "confdefs.h"
#include <sgtty.h>
Autoconf TIOCGETP
@ -1968,7 +2015,7 @@ rm -f conftest*
if test $ac_cv_prog_gcc_traditional = no; then
cat > conftest.$ac_ext <<EOF
#line 1855 "configure"
#line 2019 "configure"
#include "confdefs.h"
#include <termio.h>
Autoconf TCGETA
@ -1990,7 +2037,7 @@ echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
fi
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
echo "configure:1877: checking for 8-bit clean memcmp" >&5
echo "configure:2041: checking for 8-bit clean memcmp" >&5
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -1998,7 +2045,7 @@ else
ac_cv_func_memcmp_clean=no
else
cat > conftest.$ac_ext <<EOF
#line 1885 "configure"
#line 2049 "configure"
#include "confdefs.h"
main()
@ -2008,7 +2055,7 @@ main()
}
EOF
if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
if { (eval echo configure:2059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_func_memcmp_clean=yes
else
@ -2026,12 +2073,12 @@ echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:1913: checking return type of signal handlers" >&5
echo "configure:2077: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1918 "configure"
#line 2082 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
@ -2048,7 +2095,7 @@ int main() {
int i;
; return 0; }
EOF
if { (eval echo configure:1935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:2099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_type_signal=void
else
@ -2067,7 +2114,7 @@ EOF
echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
echo "configure:1954: checking whether utime accepts a null argument" >&5
echo "configure:2118: checking whether utime accepts a null argument" >&5
if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -2077,7 +2124,7 @@ if test "$cross_compiling" = yes; then
ac_cv_func_utime_null=no
else
cat > conftest.$ac_ext <<EOF
#line 1964 "configure"
#line 2128 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
@ -2088,7 +2135,7 @@ exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
&& t.st_mtime - s.st_mtime < 120));
}
EOF
if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
if { (eval echo configure:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_func_utime_null=yes
else
@ -2114,12 +2161,12 @@ fi
for ac_func in mktime select socket stime strdup strerror strftime strstr strtod strtol
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:2001: checking for $ac_func" >&5
echo "configure:2165: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2006 "configure"
#line 2170 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@ -2142,7 +2189,7 @@ $ac_func();
; return 0; }
EOF
if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else

View File

@ -89,7 +89,8 @@ AC_PROG_MAKE_SET
dnl Checks for libraries.
AC_CHECK_LIB(dbm, dbm_open, DBMLIB=-ldbm; AC_DEFINE(HAVE_LIBDBM),
AC_CHECK_LIB(gdbm, gdbm_open, DBMLIB=-lgdbm; AC_DEFINE(HAVE_LIBGDBM)))
AC_CHECK_LIB(gdbm, gdbm_open, DBMLIB=-lgdbm; AC_DEFINE(HAVE_LIBGDBM),
AC_CHECK_LIB(db, dbm_open, DBMLIB=-ldb; AC_DEFINE(HAVE_LIBDB))))
AC_CHECK_POSTGRES
AC_CHECK_MYSQLDB

View File

@ -81,6 +81,9 @@
/* Define if you have the gdbm library (-lgdbm). */
#undef HAVE_LIBGDBM
/* Define if you have the db library (-ldb). */
#undef HAVE_LIBDB
/* Define if you have Swiss charge info */
#undef ISDN_CH