Get rid of including ../.config in Makefile
Now all configuration is done in configure. Moved depend depency from install to build where it belongs.
This commit is contained in:
parent
80b36ccc2a
commit
ec1e03450a
|
@ -1,4 +1,4 @@
|
|||
## $Id: Makefile.in,v 1.32 1997/09/26 09:13:01 fritz Exp $
|
||||
## $Id: Makefile.in,v 1.33 1997/10/26 23:14:38 fritz Exp $
|
||||
##
|
||||
## ISDN accounting for isdn4linux.
|
||||
##
|
||||
|
@ -19,6 +19,12 @@
|
|||
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
##
|
||||
## $Log: Makefile.in,v $
|
||||
## Revision 1.33 1997/10/26 23:14:38 fritz
|
||||
## Get rid of including ../.config in Makefile
|
||||
## Now all configuration is done in configure.
|
||||
## Moved depend depency from install to build
|
||||
## where it belongs.
|
||||
##
|
||||
## Revision 1.32 1997/09/26 09:13:01 fritz
|
||||
## Set SUBDIRS always to overwrite environment.
|
||||
##
|
||||
|
@ -233,7 +239,7 @@ endif
|
|||
|
||||
CC = $(_CC)
|
||||
|
||||
INCLUDE = -I./connect -I./tools -I$(PREFIXDIR) -I$(LIBISDNDIR)
|
||||
INCLUDE = -I./connect -I./tools -I$(PREFIXDIR) -I$(LIBISDNDIR) -I@CONFIG_KERNELDIR@/include
|
||||
|
||||
LIB = $(DBMLIB)
|
||||
|
||||
|
@ -298,7 +304,7 @@ MODS = *.o */*.o
|
|||
|
||||
PROGS = $(ISDNLOG) $(ISDNREP) $(ISDNCONF)
|
||||
|
||||
all: libs mybin $(PROGS)
|
||||
all: depend libs mybin $(PROGS)
|
||||
|
||||
mybin:
|
||||
-mkdir -p bin
|
||||
|
@ -338,7 +344,7 @@ installdirs: rootperm
|
|||
# $(INSTALL_DIR) $(MAN1DIR)
|
||||
# $(INSTALL_DIR) $(MAN8DIR)
|
||||
|
||||
install: depend all rootperm installdirs
|
||||
install: all rootperm installdirs
|
||||
@echo "Killing running isdnlog!"
|
||||
-@if ps -x | fgrep $(ISDNLOG) >/dev/null; then kill `cat $(RUNDIR)/isdnlog.pid 2>/dev/null`; fi
|
||||
-@test ! -d $(OLDCONFDIR) || cp -auv $(OLDCONFDIR)/$(USERFILE) $(I4LCONFDIR)
|
||||
|
|
|
@ -55,3 +55,44 @@ AC_DEFUN(AC_CHECK_POSTGRES, [
|
|||
AC_SUBST(POSTGRES)
|
||||
AC_SUBST(POSTGRESDIR)
|
||||
])
|
||||
dnl
|
||||
dnl Try finding linux sourcetree
|
||||
dnl
|
||||
|
||||
AC_DEFUN(AC_FIND_KERNEL, [
|
||||
OLD_CPPFLAGS="$CPPFLAGS"
|
||||
lxdir="no"
|
||||
eval tst_kerneldir=$CONFIG_KERNELDIR
|
||||
|
||||
AC_ARG_WITH(kernel,
|
||||
[ --with-kernel=DIR Set kernel source directory [/usr/src/linux]],
|
||||
DOTEST="y"; tst_kerneldir="${withval}")
|
||||
|
||||
if test "$DOTEST" = "y" || test "$CONFIG_KERNELDIR" != "" ; then
|
||||
AC_MSG_CHECKING([for linux kernel source in ${tst_kerneldir}])
|
||||
CPPFLAGS="-nostdinc -I${tst_kerneldir}/drivers/isdn"
|
||||
AC_TRY_CPP([#include <isdn_common.h>], lxdir=${tst_kerneldir},
|
||||
AC_MSG_RESULT("no"))
|
||||
fi
|
||||
if test "$lxdir" = "no" ; then
|
||||
AC_MSG_CHECKING([for linux kernel source in /usr/src/linux])
|
||||
CPPFLAGS="-nostdinc -I/usr/src/linux/drivers/isdn"
|
||||
AC_TRY_CPP([#include <isdn_common.h>], lxdir=/usr/src/linux)
|
||||
fi
|
||||
if test "$lxdir" = "no" ; then
|
||||
AC_MSG_RESULT("$lxdir")
|
||||
AC_MSG_CHECKING([for linux kernel source in /usr/local/src/linux])
|
||||
CPPFLAGS="-nostdinc -I/usr/local/src/linux/drivers/isdn"
|
||||
AC_TRY_CPP([#include <isdn_common.h>], lxdir=/usr/local/src/linux)
|
||||
fi
|
||||
if test "$lxdir" != "no" ; then
|
||||
AC_MSG_RESULT("yes")
|
||||
else
|
||||
lxdir=""
|
||||
AC_MSG_ERROR("Kernel source not found. You MUST specify a correct path to the linux source in the configuration.")
|
||||
fi
|
||||
CONFIG_KERNELDIR="$lxdir"
|
||||
CPPFLAGS="$OLD_CPPFLAGS"
|
||||
AC_DEFINE_UNQUOTED(CONFIG_KERNELDIR,"$lxdir")
|
||||
AC_SUBST(CONFIG_KERNELDIR)
|
||||
])
|
||||
|
|
|
@ -14,6 +14,8 @@ ac_default_prefix=/usr/local
|
|||
ac_default_prefix=/usr
|
||||
ac_help="$ac_help
|
||||
--with-postgres=DIR Set postgres directory []"
|
||||
ac_help="$ac_help
|
||||
--with-kernel=DIR Set kernel source directory [/usr/src/linux]"
|
||||
ac_help="$ac_help
|
||||
--with-isdnlib=DIR Set isdn library [../lib]"
|
||||
ac_help="$ac_help
|
||||
|
@ -26,6 +28,8 @@ ac_help="$ac_help
|
|||
--with-oldconf=NAME Set old config file name [isdnlog.conf]"
|
||||
ac_help="$ac_help
|
||||
--with-sport=INT Set server port [20011]"
|
||||
ac_help="$ac_help
|
||||
--with-kernel=DIR Set kernel source directory [/usr/src/linux]"
|
||||
|
||||
# Initialize some variables set by options.
|
||||
# The variables have the same names as the options, with
|
||||
|
@ -536,62 +540,36 @@ fi
|
|||
|
||||
|
||||
|
||||
if test -r ../.config ; then
|
||||
|
||||
|
||||
source ../.config
|
||||
bindir=$CONFIG_BINDIR
|
||||
sbindir=$CONFIG_SBINDIR
|
||||
mandir=$CONFIG_MANDIR
|
||||
LIBISDNDIR=../lib
|
||||
I4LCONFDIR=$CONFIG_I4LCONFDIR
|
||||
OLDCONFDIR=$CONFIG_ISDNLOG_OLDI4LCONFDIR
|
||||
OLDCONFFILE=$CONFIG_ISDNLOG_OLDI4LCONFFILE
|
||||
CONFFILE=$CONFIG_CONFFILE
|
||||
CALLERIDFILE=$CONFIG_CALLERIDFILE
|
||||
RUNDIR=$CONFIG_RUNDIR
|
||||
SERV_PORT=$CONFIG_ISDNLOG_SERV_PORT
|
||||
USERFILE=$CONFIG_ISDNLOG_USERFILE
|
||||
LOGFILE=$CONFIG_ISDNLOG_LOGFILE
|
||||
CHARGEFILE=$CONFIG_ISDNLOG_CHARGEFILE
|
||||
RELOADCMD=$CONFIG_ISDNLOG_RELOADCMD
|
||||
STOPCMD=$CONFIG_ISDNLOG_STOPCMD
|
||||
REBOOTCMD=$CONFIG_ISDNLOG_REBOOTCMD
|
||||
COUNTRYCODE=$CONFIG_COUNTRYCODE
|
||||
COUNTRYPREFIX=$CONFIG_COUNTRY_PREFIX
|
||||
AREACODE=$CONFIG_AREACODE
|
||||
AREAPREFIX=$CONFIG_AREA_PREFIX
|
||||
I4LCONFDIR=${CONFIG_I4LCONFDIR:-"/etc/isdn"}
|
||||
OLDCONFDIR=${CONFIG_ISDNLOG_OLDI4LCONFDIR:-"/etc/isdnlog"}
|
||||
OLDCONFFILE=${CONFIG_ISDNLOG_OLDI4LCONFFILE:-"isdnlog.conf"}
|
||||
CONFFILE=${CONFIG_CONFFILE:-"isdn.conf"}
|
||||
CALLERIDFILE=${CONFIG_CALLERIDFILE:-"callerid.conf"}
|
||||
RUNDIR=${CONFIG_RUNDIR:-"/var/run"}
|
||||
SERV_PORT=${CONFIG_ISDNLOG_SERV_PORT:-20011}
|
||||
USERFILE=${CONFIG_ISDNLOG_USERFILE:-"isdnlog.users"}
|
||||
LOGFILE=${CONFIG_ISDNLOG_LOGFILE:-"/var/log/isdn.log"}
|
||||
CHARGEFILE=${CONFIG_ISDNLOG_CHARGEFILE:-"charge.dat"}
|
||||
RELOADCMD=${CONFIG_ISDNLOG_RELOADCMD:-"reload"}
|
||||
STOPCMD=${CONFIG_ISDNLOG_STOPCMD:-"stop"}
|
||||
REBOOTCMD=${CONFIG_ISDNLOG_REBOOTCMD:-"/sbin/reboot"}
|
||||
COUNTRYCODE=${CONFIG_COUNTRYCODE:-"49"}
|
||||
COUNTRYPREFIX=${CONFIG_COUNTRY_PREFIX:-"+"}
|
||||
AREACODE=${CONFIG_AREACODE:-""}
|
||||
AREAPREFIX=${CONFIG_AREA_PREFIX:-"0"}
|
||||
CONFIG_LIB_AREACODE=${CONFIG_LIB_AREACODE:-"y"}
|
||||
CONFIG_ISDNLOG_POSTGRESDIR=${CONFIG_ISDNLOG_POSTGRESDIR:-""}
|
||||
CONFIG_KERNELDIR=${CONFIG_KERNELDIR:-"/usr/src/linux"}
|
||||
LIBISDNDIR="../lib"
|
||||
bindir=${CONFIG_BINDIR:-"/usr/bin"}
|
||||
sbindir=${CONFIG_SBINDIR:-"/sbin"}
|
||||
mandir=${CONFIG_MANDIR:-"/usr/man"}
|
||||
|
||||
if test "$CONFIG_LIB_AREACODE" = "y" ; then
|
||||
ALIB=area
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
|
||||
LIBISDNDIR="../lib"
|
||||
I4LCONFDIR="/etc/isdn"
|
||||
OLDCONFDIR="/etc/isdnlog"
|
||||
OLDCONFFILE="isdnlog.conf"
|
||||
CONFFILE="isdn.conf"
|
||||
CALLERIDFILE="callerid.conf"
|
||||
RUNDIR="/var/run"
|
||||
ALIB=area
|
||||
SERV_PORT=20011
|
||||
USERFILE=isdnlog.users
|
||||
LOGFILE=/var/log/isdn.log
|
||||
CHARGEFILE=charge.dat
|
||||
RELOADCMD=reload
|
||||
STOPCMD=stop
|
||||
REBOOTCMD=/sbin/reboot
|
||||
CONFIG_ISDNLOG_POSTGRESDIR=""
|
||||
COUNTRYCODE="49"
|
||||
COUNTRYPREFIX="+"
|
||||
AREACODE=""
|
||||
AREAPREFIX="0"
|
||||
|
||||
fi
|
||||
|
||||
cat >> confdefs.h <<EOF
|
||||
#define OLDCONFDIR "$OLDCONFDIR"
|
||||
EOF
|
||||
|
@ -644,7 +622,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:648: checking for $ac_word" >&5
|
||||
echo "configure:626: 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
|
||||
|
@ -673,7 +651,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:677: checking for $ac_word" >&5
|
||||
echo "configure:655: 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
|
||||
|
@ -721,7 +699,7 @@ fi
|
|||
fi
|
||||
|
||||
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
||||
echo "configure:725: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
||||
echo "configure:703: 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.
|
||||
|
@ -731,11 +709,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 735 "configure"
|
||||
#line 713 "configure"
|
||||
#include "confdefs.h"
|
||||
main(){return(0);}
|
||||
EOF
|
||||
if { (eval echo configure:739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
if { (eval echo configure:717: \"$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
|
||||
|
@ -755,12 +733,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:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
||||
echo "configure:737: 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:764: checking whether we are using GNU C" >&5
|
||||
echo "configure:742: 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
|
||||
|
@ -769,7 +747,7 @@ else
|
|||
yes;
|
||||
#endif
|
||||
EOF
|
||||
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:773: \"$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:751: \"$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
|
||||
|
@ -784,7 +762,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:788: checking whether ${CC-cc} accepts -g" >&5
|
||||
echo "configure:766: 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
|
||||
|
@ -841,7 +819,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:845: checking for a BSD compatible install" >&5
|
||||
echo "configure:823: 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
|
||||
|
@ -891,7 +869,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:895: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
||||
echo "configure:873: 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
|
||||
|
@ -919,7 +897,7 @@ fi
|
|||
|
||||
|
||||
echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
|
||||
echo "configure:923: checking for dbm_open in -ldbm" >&5
|
||||
echo "configure:901: 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
|
||||
|
@ -927,7 +905,7 @@ else
|
|||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-ldbm $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 931 "configure"
|
||||
#line 909 "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
|
||||
|
@ -938,7 +916,7 @@ int main() {
|
|||
dbm_open()
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
if { (eval echo configure:920: \"$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
|
||||
|
@ -960,7 +938,7 @@ EOF
|
|||
else
|
||||
echo "$ac_t""no" 1>&6
|
||||
echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
|
||||
echo "configure:964: checking for gdbm_open in -lgdbm" >&5
|
||||
echo "configure:942: 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
|
||||
|
@ -968,7 +946,7 @@ else
|
|||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lgdbm $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 972 "configure"
|
||||
#line 950 "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
|
||||
|
@ -979,7 +957,7 @@ int main() {
|
|||
gdbm_open()
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
if { (eval echo configure:961: \"$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,7 +983,7 @@ fi
|
|||
fi
|
||||
|
||||
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
||||
echo "configure:1009: checking how to run the C preprocessor" >&5
|
||||
echo "configure:987: checking how to run the C preprocessor" >&5
|
||||
# On Suns, sometimes $CPP names a directory.
|
||||
if test -n "$CPP" && test -d "$CPP"; then
|
||||
CPP=
|
||||
|
@ -1020,13 +998,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 1024 "configure"
|
||||
#line 1002 "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:1030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
:
|
||||
|
@ -1037,13 +1015,13 @@ else
|
|||
rm -rf conftest*
|
||||
CPP="${CC-cc} -E -traditional-cpp"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1041 "configure"
|
||||
#line 1019 "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:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
:
|
||||
|
@ -1079,10 +1057,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:1083: checking for postgres in ${tst_postgresdir}" >&5
|
||||
echo "configure:1061: checking for postgres in ${tst_postgresdir}" >&5
|
||||
if test "${tst_postgresdir}" != "" ; then
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1086 "configure"
|
||||
#line 1064 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <${tst_postgresdir}/include/libpq-fe.h>
|
||||
EOF
|
||||
|
@ -1097,9 +1075,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:1101: checking for postgres in /lib/postgres95" >&5
|
||||
echo "configure:1079: checking for postgres in /lib/postgres95" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1103 "configure"
|
||||
#line 1081 "configure"
|
||||
#include "confdefs.h"
|
||||
#include </lib/postgre95/include/libpq-fe.h>
|
||||
EOF
|
||||
|
@ -1114,9 +1092,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:1118: checking for postgres in /usr/lib/postgres95" >&5
|
||||
echo "configure:1096: checking for postgres in /usr/lib/postgres95" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1120 "configure"
|
||||
#line 1098 "configure"
|
||||
#include "confdefs.h"
|
||||
#include </usr/lib/postgre95/include/libpq-fe.h>
|
||||
EOF
|
||||
|
@ -1131,9 +1109,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:1135: checking for postgres in /usr/local/postgres95" >&5
|
||||
echo "configure:1113: checking for postgres in /usr/local/postgres95" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1137 "configure"
|
||||
#line 1115 "configure"
|
||||
#include "confdefs.h"
|
||||
#include </usr/lib/local/postgre95/include/libpq-fe.h>
|
||||
EOF
|
||||
|
@ -1148,9 +1126,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:1152: checking for postgres in /usr/local/lib/postgres95" >&5
|
||||
echo "configure:1130: checking for postgres in /usr/local/lib/postgres95" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1154 "configure"
|
||||
#line 1132 "configure"
|
||||
#include "confdefs.h"
|
||||
#include </usr/lib/local/lib/postgre95/include/libpq-fe.h>
|
||||
EOF
|
||||
|
@ -1185,13 +1163,109 @@ EOF
|
|||
|
||||
#AC_CHECK_LIB(dbmalloc, main)
|
||||
|
||||
|
||||
OLD_CPPFLAGS="$CPPFLAGS"
|
||||
lxdir="no"
|
||||
eval tst_kerneldir=$CONFIG_KERNELDIR
|
||||
|
||||
# Check whether --with-kernel or --without-kernel was given.
|
||||
if test "${with_kernel+set}" = set; then
|
||||
withval="$with_kernel"
|
||||
DOTEST="y"; tst_kerneldir="${withval}"
|
||||
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:1181: checking for linux kernel source in ${tst_kerneldir}" >&5
|
||||
CPPFLAGS="-nostdinc -I${tst_kerneldir}/drivers/isdn"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1184 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <isdn_common.h>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
lxdir=${tst_kerneldir}
|
||||
else
|
||||
echo "$ac_err" >&5
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -rf conftest*
|
||||
echo "$ac_t"""no"" 1>&6
|
||||
fi
|
||||
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:1205: checking for linux kernel source in /usr/src/linux" >&5
|
||||
CPPFLAGS="-nostdinc -I/usr/src/linux/drivers/isdn"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1208 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <isdn_common.h>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
lxdir=/usr/src/linux
|
||||
else
|
||||
echo "$ac_err" >&5
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
fi
|
||||
rm -f conftest*
|
||||
fi
|
||||
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:1228: 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 1231 "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; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
lxdir=/usr/local/src/linux
|
||||
else
|
||||
echo "$ac_err" >&5
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
fi
|
||||
rm -f conftest*
|
||||
fi
|
||||
if test "$lxdir" != "no" ; then
|
||||
echo "$ac_t"""yes"" 1>&6
|
||||
else
|
||||
lxdir=""
|
||||
{ echo "configure: error: "Kernel source not found. You MUST specify a correct path to the linux source in the configuration."" 1>&2; exit 1; }
|
||||
fi
|
||||
CONFIG_KERNELDIR="$lxdir"
|
||||
CPPFLAGS="$OLD_CPPFLAGS"
|
||||
cat >> confdefs.h <<EOF
|
||||
#define CONFIG_KERNELDIR "$lxdir"
|
||||
EOF
|
||||
|
||||
|
||||
|
||||
|
||||
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
||||
echo "configure:1190: checking for ANSI C header files" >&5
|
||||
echo "configure:1264: 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 1195 "configure"
|
||||
#line 1269 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
@ -1199,7 +1273,7 @@ else
|
|||
#include <float.h>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
|
@ -1216,7 +1290,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 1220 "configure"
|
||||
#line 1294 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <string.h>
|
||||
EOF
|
||||
|
@ -1234,7 +1308,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 1238 "configure"
|
||||
#line 1312 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdlib.h>
|
||||
EOF
|
||||
|
@ -1255,7 +1329,7 @@ if test "$cross_compiling" = yes; then
|
|||
:
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1259 "configure"
|
||||
#line 1333 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <ctype.h>
|
||||
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
||||
|
@ -1266,7 +1340,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|||
exit (0); }
|
||||
|
||||
EOF
|
||||
if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
:
|
||||
else
|
||||
|
@ -1290,12 +1364,12 @@ EOF
|
|||
fi
|
||||
|
||||
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
||||
echo "configure:1294: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
||||
echo "configure:1368: 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 1299 "configure"
|
||||
#line 1373 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
|
@ -1311,7 +1385,7 @@ wait (&s);
|
|||
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:1389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_header_sys_wait_h=yes
|
||||
else
|
||||
|
@ -1335,17 +1409,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:1339: checking for $ac_hdr" >&5
|
||||
echo "configure:1413: 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 1344 "configure"
|
||||
#line 1418 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <$ac_hdr>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1349: \"$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*
|
||||
|
@ -1422,12 +1496,12 @@ fi
|
|||
|
||||
|
||||
echo $ac_n "checking for working const""... $ac_c" 1>&6
|
||||
echo "configure:1426: checking for working const" >&5
|
||||
echo "configure:1500: 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 1431 "configure"
|
||||
#line 1505 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() {
|
||||
|
@ -1476,7 +1550,7 @@ ccp = (char const *const *) p;
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:1554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_c_const=yes
|
||||
else
|
||||
|
@ -1497,12 +1571,12 @@ EOF
|
|||
fi
|
||||
|
||||
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
||||
echo "configure:1501: checking for pid_t" >&5
|
||||
echo "configure:1575: 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 1506 "configure"
|
||||
#line 1580 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#if STDC_HEADERS
|
||||
|
@ -1530,12 +1604,12 @@ EOF
|
|||
fi
|
||||
|
||||
echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
||||
echo "configure:1534: checking for size_t" >&5
|
||||
echo "configure:1608: 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 1539 "configure"
|
||||
#line 1613 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#if STDC_HEADERS
|
||||
|
@ -1563,12 +1637,12 @@ EOF
|
|||
fi
|
||||
|
||||
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
||||
echo "configure:1567: checking whether time.h and sys/time.h may both be included" >&5
|
||||
echo "configure:1641: 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 1572 "configure"
|
||||
#line 1646 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
|
@ -1577,7 +1651,7 @@ int main() {
|
|||
struct tm *tp;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:1655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_header_time=yes
|
||||
else
|
||||
|
@ -1598,12 +1672,12 @@ EOF
|
|||
fi
|
||||
|
||||
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
||||
echo "configure:1602: checking whether struct tm is in sys/time.h or time.h" >&5
|
||||
echo "configure:1676: 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 1607 "configure"
|
||||
#line 1681 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
|
@ -1611,7 +1685,7 @@ int main() {
|
|||
struct tm *tp; tp->tm_sec;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:1689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_struct_tm=time.h
|
||||
else
|
||||
|
@ -1632,15 +1706,111 @@ EOF
|
|||
fi
|
||||
|
||||
|
||||
|
||||
OLD_CPPFLAGS="$CPPFLAGS"
|
||||
lxdir="no"
|
||||
eval tst_kerneldir=$CONFIG_KERNELDIR
|
||||
|
||||
# Check whether --with-kernel or --without-kernel was given.
|
||||
if test "${with_kernel+set}" = set; then
|
||||
withval="$with_kernel"
|
||||
DOTEST="y"; tst_kerneldir="${withval}"
|
||||
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:1724: checking for linux kernel source in ${tst_kerneldir}" >&5
|
||||
CPPFLAGS="-nostdinc -I${tst_kerneldir}/drivers/isdn"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1727 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <isdn_common.h>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
lxdir=${tst_kerneldir}
|
||||
else
|
||||
echo "$ac_err" >&5
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -rf conftest*
|
||||
echo "$ac_t"""no"" 1>&6
|
||||
fi
|
||||
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:1748: checking for linux kernel source in /usr/src/linux" >&5
|
||||
CPPFLAGS="-nostdinc -I/usr/src/linux/drivers/isdn"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1751 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <isdn_common.h>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:1756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
lxdir=/usr/src/linux
|
||||
else
|
||||
echo "$ac_err" >&5
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
fi
|
||||
rm -f conftest*
|
||||
fi
|
||||
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:1771: 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 1774 "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; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
lxdir=/usr/local/src/linux
|
||||
else
|
||||
echo "$ac_err" >&5
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
fi
|
||||
rm -f conftest*
|
||||
fi
|
||||
if test "$lxdir" != "no" ; then
|
||||
echo "$ac_t"""yes"" 1>&6
|
||||
else
|
||||
lxdir=""
|
||||
{ echo "configure: error: "Kernel source not found. You MUST specify a correct path to the linux source in the configuration."" 1>&2; exit 1; }
|
||||
fi
|
||||
CONFIG_KERNELDIR="$lxdir"
|
||||
CPPFLAGS="$OLD_CPPFLAGS"
|
||||
cat >> confdefs.h <<EOF
|
||||
#define CONFIG_KERNELDIR "$lxdir"
|
||||
EOF
|
||||
|
||||
|
||||
|
||||
|
||||
if test $ac_cv_prog_gcc = yes; then
|
||||
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
||||
echo "configure:1638: checking whether ${CC-cc} needs -traditional" >&5
|
||||
echo "configure:1808: 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 1644 "configure"
|
||||
#line 1814 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sgtty.h>
|
||||
Autoconf TIOCGETP
|
||||
|
@ -1658,7 +1828,7 @@ rm -f conftest*
|
|||
|
||||
if test $ac_cv_prog_gcc_traditional = no; then
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1662 "configure"
|
||||
#line 1832 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <termio.h>
|
||||
Autoconf TCGETA
|
||||
|
@ -1680,7 +1850,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:1684: checking for 8-bit clean memcmp" >&5
|
||||
echo "configure:1854: 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
|
||||
|
@ -1688,7 +1858,7 @@ else
|
|||
ac_cv_func_memcmp_clean=no
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1692 "configure"
|
||||
#line 1862 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
main()
|
||||
|
@ -1698,7 +1868,7 @@ main()
|
|||
}
|
||||
|
||||
EOF
|
||||
if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:1872: \"$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
|
||||
|
@ -1716,12 +1886,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:1720: checking return type of signal handlers" >&5
|
||||
echo "configure:1890: 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 1725 "configure"
|
||||
#line 1895 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <signal.h>
|
||||
|
@ -1738,7 +1908,7 @@ int main() {
|
|||
int i;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:1912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_type_signal=void
|
||||
else
|
||||
|
@ -1757,7 +1927,7 @@ EOF
|
|||
|
||||
|
||||
echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
|
||||
echo "configure:1761: checking whether utime accepts a null argument" >&5
|
||||
echo "configure:1931: 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
|
||||
|
@ -1767,7 +1937,7 @@ if test "$cross_compiling" = yes; then
|
|||
ac_cv_func_utime_null=no
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1771 "configure"
|
||||
#line 1941 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
@ -1778,7 +1948,7 @@ exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
|
|||
&& t.st_mtime - s.st_mtime < 120));
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:1952: \"$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
|
||||
|
@ -1804,12 +1974,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:1808: checking for $ac_func" >&5
|
||||
echo "configure:1978: 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 1813 "configure"
|
||||
#line 1983 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
|
@ -1832,7 +2002,7 @@ $ac_func();
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_$ac_func=yes"
|
||||
else
|
||||
|
@ -1899,6 +2069,7 @@ esac
|
|||
|
||||
|
||||
|
||||
|
||||
trap '' 1 2 15
|
||||
cat > confcache <<\EOF
|
||||
# This file is a shell script that caches the results of configure
|
||||
|
@ -2037,6 +2208,7 @@ s%@SET_MAKE@%$SET_MAKE%g
|
|||
s%@CPP@%$CPP%g
|
||||
s%@POSTGRES@%$POSTGRES%g
|
||||
s%@POSTGRESDIR@%$POSTGRESDIR%g
|
||||
s%@CONFIG_KERNELDIR@%$CONFIG_KERNELDIR%g
|
||||
s%@LIBOBJS@%$LIBOBJS%g
|
||||
s%@LIBISDNDIR@%$LIBISDNDIR%g
|
||||
s%@I4LCONFDIR@%$I4LCONFDIR%g
|
||||
|
|
|
@ -3,68 +3,40 @@ AC_INIT(isdnlog/isdnlog.c)
|
|||
AC_PREFIX_DEFAULT(/usr)
|
||||
AC_CONFIG_HEADER(policy.h)
|
||||
|
||||
if test -r ../.config ; then
|
||||
|
||||
dnl
|
||||
dnl i4l package setup, get variables from ../config
|
||||
dnl i4l package setup, get variables from Environment
|
||||
dnl If a variable is not set, set default also.
|
||||
dnl
|
||||
|
||||
source ../.config
|
||||
bindir=$CONFIG_BINDIR
|
||||
sbindir=$CONFIG_SBINDIR
|
||||
mandir=$CONFIG_MANDIR
|
||||
LIBISDNDIR=../lib
|
||||
I4LCONFDIR=$CONFIG_I4LCONFDIR
|
||||
OLDCONFDIR=$CONFIG_ISDNLOG_OLDI4LCONFDIR
|
||||
OLDCONFFILE=$CONFIG_ISDNLOG_OLDI4LCONFFILE
|
||||
CONFFILE=$CONFIG_CONFFILE
|
||||
CALLERIDFILE=$CONFIG_CALLERIDFILE
|
||||
RUNDIR=$CONFIG_RUNDIR
|
||||
SERV_PORT=$CONFIG_ISDNLOG_SERV_PORT
|
||||
USERFILE=$CONFIG_ISDNLOG_USERFILE
|
||||
LOGFILE=$CONFIG_ISDNLOG_LOGFILE
|
||||
CHARGEFILE=$CONFIG_ISDNLOG_CHARGEFILE
|
||||
RELOADCMD=$CONFIG_ISDNLOG_RELOADCMD
|
||||
STOPCMD=$CONFIG_ISDNLOG_STOPCMD
|
||||
REBOOTCMD=$CONFIG_ISDNLOG_REBOOTCMD
|
||||
COUNTRYCODE=$CONFIG_COUNTRYCODE
|
||||
COUNTRYPREFIX=$CONFIG_COUNTRY_PREFIX
|
||||
AREACODE=$CONFIG_AREACODE
|
||||
AREAPREFIX=$CONFIG_AREA_PREFIX
|
||||
I4LCONFDIR=${CONFIG_I4LCONFDIR:-"/etc/isdn"}
|
||||
OLDCONFDIR=${CONFIG_ISDNLOG_OLDI4LCONFDIR:-"/etc/isdnlog"}
|
||||
OLDCONFFILE=${CONFIG_ISDNLOG_OLDI4LCONFFILE:-"isdnlog.conf"}
|
||||
CONFFILE=${CONFIG_CONFFILE:-"isdn.conf"}
|
||||
CALLERIDFILE=${CONFIG_CALLERIDFILE:-"callerid.conf"}
|
||||
RUNDIR=${CONFIG_RUNDIR:-"/var/run"}
|
||||
SERV_PORT=${CONFIG_ISDNLOG_SERV_PORT:-20011}
|
||||
USERFILE=${CONFIG_ISDNLOG_USERFILE:-"isdnlog.users"}
|
||||
LOGFILE=${CONFIG_ISDNLOG_LOGFILE:-"/var/log/isdn.log"}
|
||||
CHARGEFILE=${CONFIG_ISDNLOG_CHARGEFILE:-"charge.dat"}
|
||||
RELOADCMD=${CONFIG_ISDNLOG_RELOADCMD:-"reload"}
|
||||
STOPCMD=${CONFIG_ISDNLOG_STOPCMD:-"stop"}
|
||||
REBOOTCMD=${CONFIG_ISDNLOG_REBOOTCMD:-"/sbin/reboot"}
|
||||
COUNTRYCODE=${CONFIG_COUNTRYCODE:-"49"}
|
||||
COUNTRYPREFIX=${CONFIG_COUNTRY_PREFIX:-"+"}
|
||||
AREACODE=${CONFIG_AREACODE:-""}
|
||||
AREAPREFIX=${CONFIG_AREA_PREFIX:-"0"}
|
||||
CONFIG_LIB_AREACODE=${CONFIG_LIB_AREACODE:-"y"}
|
||||
CONFIG_ISDNLOG_POSTGRESDIR=${CONFIG_ISDNLOG_POSTGRESDIR:-""}
|
||||
CONFIG_KERNELDIR=${CONFIG_KERNELDIR:-"/usr/src/linux"}
|
||||
LIBISDNDIR="../lib"
|
||||
bindir=${CONFIG_BINDIR:-"/usr/bin"}
|
||||
sbindir=${CONFIG_SBINDIR:-"/sbin"}
|
||||
mandir=${CONFIG_MANDIR:-"/usr/man"}
|
||||
|
||||
if test "$CONFIG_LIB_AREACODE" = "y" ; then
|
||||
ALIB=area
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
dnl
|
||||
dnl Standalone setup defaults
|
||||
dnl
|
||||
|
||||
LIBISDNDIR="../lib"
|
||||
I4LCONFDIR="/etc/isdn"
|
||||
OLDCONFDIR="/etc/isdnlog"
|
||||
OLDCONFFILE="isdnlog.conf"
|
||||
CONFFILE="isdn.conf"
|
||||
CALLERIDFILE="callerid.conf"
|
||||
RUNDIR="/var/run"
|
||||
ALIB=area
|
||||
SERV_PORT=20011
|
||||
USERFILE=isdnlog.users
|
||||
LOGFILE=/var/log/isdn.log
|
||||
CHARGEFILE=charge.dat
|
||||
RELOADCMD=reload
|
||||
STOPCMD=stop
|
||||
REBOOTCMD=/sbin/reboot
|
||||
CONFIG_ISDNLOG_POSTGRESDIR=""
|
||||
COUNTRYCODE="49"
|
||||
COUNTRYPREFIX="+"
|
||||
AREACODE=""
|
||||
AREAPREFIX="0"
|
||||
|
||||
fi
|
||||
|
||||
dnl
|
||||
dnl To make it possible to set variables in policy.h
|
||||
dnl they have to be defined with AC_DEFINE...
|
||||
|
@ -98,6 +70,9 @@ AC_CHECK_POSTGRES
|
|||
dnl TODO: replace main by a funcion within libdbmalloc
|
||||
#AC_CHECK_LIB(dbmalloc, main)
|
||||
|
||||
dnl Check for kernel
|
||||
AC_FIND_KERNEL
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_SYS_WAIT
|
||||
|
@ -130,6 +105,8 @@ AC_TYPE_SIZE_T
|
|||
AC_HEADER_TIME
|
||||
AC_STRUCT_TM
|
||||
|
||||
AC_FIND_KERNEL
|
||||
|
||||
dnl Checks for C library functions.
|
||||
AC_PROG_GCC_TRADITIONAL
|
||||
AC_FUNC_MEMCMP
|
||||
|
@ -171,4 +148,5 @@ AC_SUBST(COUNTRYPREFIX)
|
|||
AC_SUBST(AREACODE)
|
||||
AC_SUBST(AREAPREFIX)
|
||||
AC_SUBST(AREACODE)
|
||||
AC_SUBST(CONFIG_KERNELDIR)
|
||||
AC_OUTPUT(Makefile)
|
||||
|
|
Loading…
Reference in New Issue