added autoconfig for the ABC-Extension
get the information form KERNELDIR/include/linux/autoconf.h
This commit is contained in:
parent
b90c92c7ab
commit
4a624a657b
|
@ -1149,6 +1149,31 @@ EOF
|
|||
|
||||
fi
|
||||
|
||||
OLD_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="-nostdinc -I${CONFIG_KERNELDIR}/include"
|
||||
have_abcext="no"
|
||||
echo $ac_n "checking for ABC-Extension in ${CONFIG_KERNELDIR}/include/linux/autoconf.h""... $ac_c" 1>&6
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1648 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <linux/autoconf.h>
|
||||
int main() { return 0; }
|
||||
int t() { int x = CONFIG_ISDN_WITH_ABC;
|
||||
; return 0; }
|
||||
EOF
|
||||
if eval $ac_compile; then
|
||||
rm -rf conftest*
|
||||
have_abcext="yes"
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
||||
echo "$ac_t"""${have_abcext}"" 1>&6
|
||||
CPPFLAGS="$OLD_CPPFLAGS"
|
||||
if test "$have_abcext" != "no" ; then
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define HAVE_ABCEXT 1
|
||||
EOF
|
||||
fi
|
||||
|
||||
|
||||
echo $ac_n "checking for -ldbm""... $ac_c" 1>&6
|
||||
|
@ -1443,6 +1468,7 @@ s%@CONFIG_KERNELDIR@%$CONFIG_KERNELDIR%g
|
|||
s%@HAVE_TRIGGERCPS@%$HAVE_TRIGGERCPS%g
|
||||
s%@HAVE_CISCOKEEPALIVE@%$HAVE_CISCOKEEPALIVE%g
|
||||
s%@HAVE_TIMRU@%$HAVE_TIMRU%g
|
||||
s%@HAVE_ABCEXT@%$HAVE_ABCEXT%g
|
||||
s%@INSTALL@%$INSTALL%g
|
||||
s%@DBMLIB@%$DBMLIB%g
|
||||
s%@MANDATE@%$MANDATE%g
|
||||
|
|
|
@ -10,6 +10,7 @@ CONFIG_SBINDIR=${CONFIG_SBINDIR:-"/sbin"}
|
|||
CONFIG_MANDIR=${CONFIG_MANDIR:-"/usr/man"}
|
||||
CONFIG_ISDNCTRL_CONF=${CONFIG_ISDNCTRL_CONF:-"n"}
|
||||
CONFIG_ISDNCTRL_TIMRU=${CONFIG_ISDNCTRL_TIMRU:-"n"}
|
||||
CONFIG_ISDN_WITH_ABC=${CONFIG_ISDN_WITH_ABC:-"n"}
|
||||
MANDATE=`grep CHECKIN isdnctrl.man.in | awk '{print $4}'`
|
||||
|
||||
dnl Checks for programs.
|
||||
|
|
Loading…
Reference in New Issue