configure
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:995k
- echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_init_context" >&6
- if test $ac_cv_lib_k5crypto_krb5_init_context = yes; then
- ac_cv_MIT_NEW_CRYPTO=yes
- else
- ac_cv_MIT_NEW_CRYPTo=no
- fi
- fi
- if test yes = $ac_cv_MIT_NEW_CRYPTO; then
- echo "$as_me:$LINENO: result: new MIT crypto API" >&5
- echo "${ECHO_T}new MIT crypto API" >&6
- cat >>confdefs.h <<_ACEOF
- #define MIT_NEW_CRYPTO 1
- _ACEOF
- if test no = $krb5_config; then
- LIBS="$LIBS -lk5crypto"
- fi
- else
- echo "$as_me:$LINENO: result: old MIT crypto API" >&5
- echo "${ECHO_T}old MIT crypto API" >&6
- fi
- fi
- fi
- done
- new_with_security=$rebuilt_new_with_security
- #
- # generate empty files
- #
- # Create include file list for snmp_vars.h to use.
- mibdir="agent/mibgroup"
- if test ! -d agent; then
- mkdir agent
- fi
- if test ! -d agent/mibgroup; then
- mkdir agent/mibgroup
- fi
- j="$mibdir/mib_module_includes.h $mibdir/agent_module_includes.h
- $mibdir/mib_module_inits.h $mibdir/agent_module_inits.h
- $mibdir/mib_module_shutdown.h $mibdir/agent_module_shutdown.h
- include/net-snmp/agent/mib_module_config.h
- include/net-snmp/agent/agent_module_config.h
- $mibdir/mib_module_dot_conf.h $mibdir/agent_module_dot_conf.h"
- for i in $j; do
- rm -f $i
- echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $i
- done
- #
- # Do hairy agent module processing.
- # (unless agent was disabled)
- #
- if test "x$enable_agent" = "xno"; then
- default_mibs=SNMPv2-MIB:RFC1213-MIB
- else # agent not disabled
- echo "$as_me:$LINENO: checking for and configuring mib modules to use" >&5
- echo $ECHO_N "checking for and configuring mib modules to use... $ECHO_C" >&6
- module_list=""
- module_list_code=""
- mib_module_list=""
- mib_module_list_code=""
- agent_module_list=""
- agent_module_list_code=""
- new_with_mib_modules=`echo $with_mib_modules | sed 's/,/ /g;'`
- new_with_out_mib_modules=`echo $with_out_mib_modules | sed 's/,/ /g;'`
- if test "x$mini_agent" = "xyes"; then
- new_module_list="snmpv3mibs mibII/snmp_mib mibII/system_mib mibII/sysORTable mibII/vacm_vars utilities/execute $new_with_mib_modules"
- default_mibs=SNMPv2-MIB:RFC1213-MIB
- default_mibs_install=" "
- else
- new_module_list="mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx utilities $new_with_mib_modules"
- default_mibs=IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:SNMPv2-MIB:RFC1213-MIB:NOTIFICATION-LOG-MIB
- fi
- if test "x$transport_callback_disabled" = "xyes"; then
- { echo "$as_me:$LINENO: WARNING: Disabling Callback transport will disable AgentX support." >&5
- echo "$as_me: WARNING: Disabling Callback transport will disable AgentX support." >&2;}
- new_with_out_mib_modules="agentx $new_with_out_mib_modules"
- fi
- if test "x$enable_ipv6" = "xyes"; then
- new_module_list="$new_module_list mibII/ipv6"
- fi
- test_modules="$new_module_list"
- new_module_list=""
- module_list_h=""
- # remove modules that were explicity excluded
- for i in $test_modules
- do
- if echo " $new_with_out_mib_modules " | grep " $i " > /dev/null; then
- mib_cfg_msg="mib module '$i' is both included and excluded."
- { echo "$as_me:$LINENO: WARNING: mib module conflict" >&5
- echo "$as_me: WARNING: mib module conflict" >&2;}
- if test "x$with_mib_cfg_checks" = "xyes"; then
- { echo "$as_me:$LINENO: WARNING: user with : $with_mib_modules" >&5
- echo "$as_me: WARNING: user with : $with_mib_modules" >&2;}
- { echo "$as_me:$LINENO: WARNING: final with : $new_module_list" >&5
- echo "$as_me: WARNING: final with : $new_module_list" >&2;}
- { echo "$as_me:$LINENO: WARNING: user without : $with_out_mib_modules" >&5
- echo "$as_me: WARNING: user without : $with_out_mib_modules" >&2;}
- { echo "$as_me:$LINENO: WARNING: final without: $new_with_out_mib_modules" >&5
- echo "$as_me: WARNING: final without: $new_with_out_mib_modules" >&2;}
- { { echo "$as_me:$LINENO: error: $mib_cfg_msg" >&5
- echo "$as_me: error: $mib_cfg_msg" >&2;}
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me:$LINENO: WARNING: $mib_cfg_msg It will be excluded" >&5
- echo "$as_me: WARNING: $mib_cfg_msg It will be excluded" >&2;}
- cat >> configure-summary << EOF
- *** MIB Module warning *** $mib_cfg_msg It has been excluded.
- EOF
- fi
- else
- new_module_list="$new_module_list $i"
- fi
- done
- echo "$as_me:$LINENO: result: $new_module_list." >&5
- echo "${ECHO_T}$new_module_list." >&6
- cat >> configure-summary << EOF
- Agent MIB code: $new_module_list
- EOF
- MODULECPP="$CPP -D$PARTIALTARGETOS -I${srcdir}/include -I${srcdir}/agent/mibgroup"
- if test "x$enable_mfd_rewrites" = "xyes"; then
- MODULECPP="$MODULECPP -DNETSNMP_ENABLE_MFD_REWRITES"
- fi
- #---------------------
- # loop over module list
- #
- module_debug=0
- while test "x$new_module_list" != "x"; do
- if test $module_debug -eq 1; then
- echo -e "n****************************************************************"
- echo "nml: $new_module_list"
- fi
- for i in $new_module_list
- do
- if test $module_debug -eq 1; then
- echo -e "n================================================================"
- echo "testing $i"
- fi
- #---------------------
- # make sure module wasn't explicity excluded, or already added
- #
- if echo " $new_with_out_mib_modules " | grep " $i " > /dev/null; then
- if test $module_debug -eq 1; then
- echo "$i was excluded"
- fi
- elif echo " $module_list " | grep " $i " > /dev/null; then
- if test $module_debug -eq 1; then
- echo "$i already tested"
- fi
- else
- #---------------------
- # process modules header, checking for config_ pseudo-macros
- #
- module_type=mib_module
- if test -f $srcdir/$mibdir/$i.h; then
- module_type=`$MODULECPP $srcdir/$mibdir/$i.h | grep config_belongs_in | sed 's@.*config_belongs_in(([^)]*)).*@1@'`
- fi
- if [ "x$module_type" = "x" ]; then
- module_type=mib_module
- fi
- if test -f $srcdir/$mibdir/$i.h; then
- new_list=""
- #---------------------
- # check if $i has any conflicts
- #
- new_list_excl="`$MODULECPP $srcdir/$mibdir/$i.h | grep config_exclude | sed 's/.*config_exclude((.*)).*/1/'`"
- if test "x$new_list_excl" != "x"; then
- if test $module_debug -eq 1; then
- echo "$i excludes $new_list_excl"
- fi
- for j in $new_list_excl
- do
- if echo " $module_list $new_mib_module_list $new_list_two " | grep " $j " > /dev/null; then
- mib_cfg_msg="mib module '$i' excludes module '$j' but another module requires it"
- { echo "$as_me:$LINENO: WARNING: mib module error" >&5
- echo "$as_me: WARNING: mib module error" >&2;}
- if test "x$with_mib_cfg_checks" = "xyes"; then
- { { echo "$as_me:$LINENO: error: $mib_cfg_msg" >&5
- echo "$as_me: error: $mib_cfg_msg" >&2;}
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me:$LINENO: WARNING: $mib_cfg_msg" >&5
- echo "$as_me: WARNING: $mib_cfg_msg" >&2;}
- cat >> configure-summary << EOF
- *** MIB Module warning *** $mib_cfg_msg
- EOF
- fi
- else
- new_with_out_mib_modules="$j $new_with_out_mib_modules"
- if test $module_debug -eq 1; then
- echo "$j added to excluded list"
- fi
- fi
- done
- fi
- #---------------------
- # check if $i has any architecture specific requirements
- #
- new_list_arch=`grep config_arch_require $srcdir/$mibdir/$i.h | sed 's/.*config_arch_require((.*), *(.*)).*/1-xarchx-2/'`
- if test "x$new_list_arch" != "x"; then
- for j in $new_list_arch
- do
- archtest=`echo $j | sed 's/-xarchx-.*//'`
- if test "x$target_os" = "x$archtest" -o "x$PARTIALTARGETOS" = "x$archtest"; then
- new_list="$new_list `echo $j | sed 's/.*-xarchx-//'`"
- fi
- done
- fi
- if test $module_debug -eq 1; then
- echo " $i required arch files: $new_list_arch"
- fi
- #---------------------
- # check if $i has any other required modules
- #
- new_list="$new_list `$MODULECPP $srcdir/$mibdir/$i.h | grep config_require | sed 's/.*config_require((.*)).*/1/'`"
- if test $module_debug -eq 1; then
- echo " $i will test: $new_list"
- fi
- if test "x$new_list" != "x"; then
- for j in $new_list
- do
- if test $module_debug -eq 1; then
- echo -n " $i wants to add $j: "
- fi
- if test ! -f $srcdir/$mibdir/$j.h -a ! -f $srcdir/$mibdir/$j.c; then
- { echo "$as_me:$LINENO: WARNING: mib module error" >&5
- echo "$as_me: WARNING: mib module error" >&2;}
- { { echo "$as_me:$LINENO: error: mib module "$i" requires module "$j" but $j.h or $j.c could not be found in $srcdir/$mibdir" >&5
- echo "$as_me: error: mib module "$i" requires module "$j" but $j.h or $j.c could not be found in $srcdir/$mibdir" >&2;}
- { (exit 1); exit 1; }; }
- elif echo " $new_with_out_mib_modules " | grep " $j " > /dev/null; then
- mib_cfg_msg="mib module '$i' requires module '$j' but someone told me to compile without it"
- { echo "$as_me:$LINENO: WARNING: mib module error" >&5
- echo "$as_me: WARNING: mib module error" >&2;}
- if test "x$with_mib_cfg_checks" = "xyes"; then
- { { echo "$as_me:$LINENO: error: $mib_cfg_msg" >&5
- echo "$as_me: error: $mib_cfg_msg" >&2;}
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me:$LINENO: WARNING: $mib_cfg_msg" >&5
- echo "$as_me: WARNING: $mib_cfg_msg" >&2;}
- cat >> configure-summary << EOF
- *** MIB Module warning *** $mib_cfg_msg
- EOF
- fi
- elif echo " $module_list $new_list_two $new_module_list " | grep " $j " > /dev/null; then
- if test $module_debug -eq 1; then
- echo " $j included previously"
- fi
- else
- new_list_two="$new_list_two $j"
- if test $module_debug -eq 1; then
- echo " $j included"
- fi
- fi
- done
- fi
- #---------------------
- # check if $i has any mibs to add
- #
- new_mibs=`$MODULECPP $srcdir/$mibdir/$i.h | grep config_add_mib | sed 's/.*config_add_mib((.*)).*/1/'`
- if test "x$new_mibs" != "x"; then
- for j in $new_mibs
- do
- if test "x`echo :$default_mibs: | grep :$j:`" = "x"; then
- default_mibs="$default_mibs:$j"
- fi
- if test -f $srcdir/mibs/$j.txt; then
- if echo $default_mibs_install | grep " $j " > /dev/null; then
- :
- else
- default_mibs_install="$default_mibs_install $j.txt"
- fi
- fi
- done
- fi # new mibs
- #-------------------
- # add $i to module list, add header to mib_module_includes
- #
- if test $module_debug -eq 1; then
- echo " $i added (based on $i.h)"
- fi
- module_list="$module_list $i"
- module_list_h="$module_list_h mibgroup/$i.h"
- eval ${module_type}_list=""$${module_type}_list $i""
- eval ${module_type}_list_h=""$${module_type}_list_h mibgroup/$i.h""
- echo '#include "'"mibgroup/$i.h"'"' >> $mibdir/${module_type}_includes.h
- #-------------------
- # check for unsupported config_load_mib
- #
- if $MODULECPP $srcdir/$mibdir/$i.h | grep config_load_mib > /dev/null 2>&1; then
- { echo "$as_me:$LINENO: WARNING: mib module error" >&5
- echo "$as_me: WARNING: mib module error" >&2;}
- { echo "$as_me:$LINENO: WARNING: mib module "$i" uses the "config_load_mib" directive, which is no longer supported. It probably won't work." >&5
- echo "$as_me: WARNING: mib module "$i" uses the "config_load_mib" directive, which is no longer supported. It probably won't work." >&2;}
- fi # grep config_load_mib
- #-------------------
- # check for config_parse_dot_conf
- #
- $MODULECPP $srcdir/$mibdir/$i.h | grep config_parse_dot_conf | sed 's@.*config_parse_dot_conf(([^)]*), *([^),]*), *([^),]*), *([^),]*)).*@register_config_handler("snmpd",1, 2, 3, 4);@' >> $mibdir/mib_module_dot_conf.h
- elif test -f $srcdir/$mibdir/$i.c; then
- if echo " $module_list $new_list_two $new_module_list " | grep " $i " > /dev/null; then
- if test $module_debug -eq 1; then
- echo " $i already included"
- fi
- else
- if test $module_debug -eq 1; then
- echo " $i added (based on $i.c)"
- fi
- module_list="$module_list $i"
- mib_module_list="$mib_module_list $i"
- fi
- else # no $i.h or $i.c
- { echo "$as_me:$LINENO: WARNING: mib module error" >&5
- echo "$as_me: WARNING: mib module error" >&2;}
- { { echo "$as_me:$LINENO: error: module files $i.h or $i.c could not be found in $srcdir/$mibdir" >&5
- echo "$as_me: error: module files $i.h or $i.c could not be found in $srcdir/$mibdir" >&2;}
- { (exit 1); exit 1; }; }
- fi # no $i.h
- #-------------------
- # check for init/shutdown routines too
- #
- if test -f $srcdir/$mibdir/$i.c; then
- module_list_code="$module_list_code $i"
- eval ${module_type}_list_code=""$${module_type}_list_code $i""
- mnm=`echo $i | sed 's/.*///;s/.c$//;'`
- if test $module_debug -eq 1; then
- echo -e "nchecking '$srcdir/$mibdir/$i.c' ($mnm/`basename $i`) C file for init/shutdown"
- fi
- if test "x$mnm" != "x`basename $i`"; then
- { echo "$as_me:$LINENO: WARNING: mib module error" >&5
- echo "$as_me: WARNING: mib module error" >&2;}
- { { echo "$as_me:$LINENO: error: conflicting names: $mnm != `basename $i`" >&5
- echo "$as_me: error: conflicting names: $mnm != `basename $i`" >&2;}
- { (exit 1); exit 1; }; }
- fi
- temp_init=`grep init_$mnm $srcdir/$mibdir/$i.c | grep -v _init_$mnm`
- if test "x$temp_init" != "x"; then
- if test $module_debug -eq 1; then
- echo -e "adding init_$mnm() to list"
- fi
- echo " if (should_init("$mnm")) init_$mnm();" >> $mibdir/${module_type}_inits.h
- fi
- grep shutdown_$mnm $srcdir/$mibdir/$i.c > /dev/null
- if test $? -eq 0 ; then
- if test $module_debug -eq 1; then
- echo -e "nadding shutdown_$mnm() to list"
- fi
- echo " if (should_init("$mnm")) shutdown_$mnm();" >> $mibdir/${module_type}_shutdown.h
- fi
- fi # test -f $srcdir/$mibdir/$i.c
- #-------------------
- # check for output directory (for building outside of source tree
- #
- if test "x`echo $i | sed 's////g;'`" != "x$i"; then
- mnd=`echo $i | sed 's//[^/]*$//;'`
- if test ! -d ./$mibdir/$mnd; then
- module_directories="$module_directories ./$mibdir/$mnd"
- fi
- fi # module directory test
- #-------------------
- # define USING_*_MODULE
- #
- sym="`echo ${i} | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`"
- echo "/* Define if compiling with the ${i} module files. */" >> include/net-snmp/agent/${module_type}_config.h
- echo "#define USING_${sym}_MODULE 1" >> include/net-snmp/agent/${module_type}_config.h
- echo " " >> include/net-snmp/agent/${module_type}_config.h
- #-------------------
- echo $ECHO_N " $i$ECHO_C"
- fi #
- done # for i in $new_module_list
- #-------------------
- # if $i added new modules vis config_*, check those modules for requirements too
- #
- new_module_list="$new_list_two"
- new_list_two=""
- done # while test "x$new_module_list" != "x"; do
- #-------------------
- # build module lists for Makefiles
- #
- module_list_o=`echo "$module_list_code " | sed 's/([^ ]) /1.o /g'`
- module_list_lo=`echo "$module_list_code " | sed 's/([^ ]) /1.lo /g'`
- module_list_c=`echo "$module_list_code " | sed 's/([^ ]) /1.c /g'`
- mib_module_list_o=`echo "$mib_module_list_code " | sed 's/([^ ]) /1.o /g'`
- mib_module_list_lo=`echo "$mib_module_list_code " | sed 's/([^ ]) /1.lo /g'`
- mib_module_list_c=`echo "$mib_module_list_code " | sed 's/([^ ]) /1.c /g'`
- mibgroup_list_o=`echo " $mib_module_list_o " | sed 's@ ([^ ]*).o@ mibgroup/1.o @g'`
- mibgroup_list_lo=`echo " $mib_module_list_lo " | sed 's@ ([^ ]*).lo@ mibgroup/1.lo @g'`
- agent_module_list_o=`echo "$agent_module_list_code " | sed 's/([^ ]) /1.o /g'`
- agent_module_list_lo=`echo "$agent_module_list_code " | sed 's/([^ ]) /1.lo /g'`
- agent_module_list_c=`echo "$agent_module_list_code " | sed 's/([^ ]) /1.c /g'`
- agentgroup_list_o=`echo " $agent_module_list_o " | sed 's@ ([^ ]*).o@ mibgroup/1.o @g'`
- agentgroup_list_lo=`echo " $agent_module_list_lo " | sed 's@ ([^ ]*).lo@ mibgroup/1.lo @g'`
- if test $module_debug -eq 1; then
- echo -e "nFinal module list: $module_list_code"
- exit
- fi
- if test "x$with_mib_cfg_checks" = "xyes"; then
- cat >> configure-summary << EOF
- Agent Module list: $module_list_code
- EOF
- fi
- MODULE_LIST=$module_list_code
- echo "$as_me:$LINENO: result: ." >&5
- echo "${ECHO_T}." >&6
- if test $module_debug -eq 1; then
- cat >> configure-summary << EOF
- Agent MIB code: $module_list
- EOF
- fi
- fi # agent not disabled
- echo "$as_me:$LINENO: checking if directories need to be created" >&5
- echo $ECHO_N "checking if directories need to be created... $ECHO_C" >&6
- for i in $module_directories; do
- $srcdir/mkinstalldirs $i
- done
- echo "$as_me:$LINENO: result: ." >&5
- echo "${ECHO_T}." >&6
- #-------------------
- # Define default mibs
- #
- echo "$as_me:$LINENO: checking default mib files to read" >&5
- echo $ECHO_N "checking default mib files to read... $ECHO_C" >&6
- if test "x$DEFAULT_MIBS" = "x"; then
- DEFAULT_MIBS="$default_mibs"
- fi
- if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc" -o "x$PARTIALTARGETOS" = "xcygwin"; then
- # mingw32 and cygwin use ';' as the environment variable separator char
- ENV_SEPARATOR=";"
- DEFAULT_MIBS=`echo "$DEFAULT_MIBS" | sed 's/:/;/g'`
- default_mibs=`echo "$default_mibs" | sed 's/:/;/g'`
- else
- ENV_SEPARATOR=":"
- fi
- cat >>confdefs.h <<_ACEOF
- #define DEFAULT_MIBS "$DEFAULT_MIBS"
- _ACEOF
- echo "$as_me:$LINENO: result: $DEFAULT_MIBS" >&5
- echo "${ECHO_T}$DEFAULT_MIBS" >&6
- echo "$as_me:$LINENO: checking whether we have to build PIC code" >&5
- echo $ECHO_N "checking whether we have to build PIC code... $ECHO_C" >&6
- echo " $module_list " | grep " ucd-snmp/dlmod " >/dev/null
- if test $? -eq 0 ; then
- LIB_CFLAGS="$LIB_CFLAGS $SHLIB_CFLAGS"
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- else
- DLLIBS=""
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- #
- # Check for kernel location
- #
- echo "$as_me:$LINENO: checking for location of system kernel" >&5
- echo $ECHO_N "checking for location of system kernel... $ECHO_C" >&6
- if test "${ac_cv_KERNEL_LOC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_cv_KERNEL_LOC="unknown"
- # First determine if test expects a -f or a -c (character device (SYSV))
- if test -c /dev/null; then
- CFLAG="-c"
- elif test -f /dev/null; then
- CFLAG="-f"
- else
- # fall back
- CFLAG="-f"
- fi
- for i in /vmunix /hp-ux /stand/vmunix /dev/ksyms /kernel/unix /kernel/genunix /netbsd /unix /kernel /bsd /mach_kernel
- do
- if test -f $i -o $CFLAG $i; then
- ac_cv_KERNEL_LOC="$i"
- break;
- fi
- done
- if test $i = "unknown"; then
- { echo "$as_me:$LINENO: WARNING: Can't find system kernel... Setting to /vmunix" >&5
- echo "$as_me: WARNING: Can't find system kernel... Setting to /vmunix" >&2;}
- ac_cv_KERNEL_LOC="/vmunix"
- fi
- fi
- echo "$as_me:$LINENO: result: $ac_cv_KERNEL_LOC" >&5
- echo "${ECHO_T}$ac_cv_KERNEL_LOC" >&6
- cat >>confdefs.h <<_ACEOF
- #define KERNEL_LOC "$ac_cv_KERNEL_LOC"
- _ACEOF
- #
- # Check for mount table location
- #
- echo "$as_me:$LINENO: checking for mount table location" >&5
- echo $ECHO_N "checking for mount table location... $ECHO_C" >&6
- if test "${ac_cv_ETC_MNTTAB+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_cv_ETC_MNTTAB="unknown"
- for i in /etc/mnttab /etc/mtab /etc/filesystems
- do
- if test -f $i; then
- ac_cv_ETC_MNTTAB="$i"
- break;
- fi
- done
- fi
- echo "$as_me:$LINENO: result: $ac_cv_ETC_MNTTAB" >&5
- echo "${ECHO_T}$ac_cv_ETC_MNTTAB" >&6
- cat >>confdefs.h <<_ACEOF
- #define ETC_MNTTAB "$ac_cv_ETC_MNTTAB"
- _ACEOF
- # Check for /dev/dmem or /dev/drum location
- echo "$as_me:$LINENO: checking for location of swap device" >&5
- echo $ECHO_N "checking for location of swap device... $ECHO_C" >&6
- if test "${ac_cv_DMEM_LOC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- # First determine if test expects a -f or a -c (character device (SYSV))
- if test -f /dev/kmem; then
- CTEST="test -f"
- elif test -c /dev/kmem; then
- CTEST="test -c"
- else
- # fall back
- CTEST="test -f"
- fi
- if $CTEST /dev/dmem; then
- ac_cv_DMEM_LOC="/dev/dmem"
- elif $CTEST /dev/drum; then
- ac_cv_DMEM_LOC="/dev/drum"
- else
- ac_cv_DMEM_LOC="none"
- fi
- fi
- echo "$as_me:$LINENO: result: $ac_cv_DMEM_LOC" >&5
- echo "${ECHO_T}$ac_cv_DMEM_LOC" >&6
- if test "x$ac_cv_DMEM_LOC" != "xnone"; then
- cat >>confdefs.h <<_ACEOF
- #define DMEM_LOC "$ac_cv_DMEM_LOC"
- _ACEOF
- fi
- # forced efence turned off.
- # if test "x$developer" = "xyes" -a "x$use_efence" != "xno"; then
- # use_efence="yes"
- # fi
- if test "x$use_efence" = "xyes"; then
- echo "$as_me:$LINENO: checking for EF_Exit in -lefence" >&5
- echo $ECHO_N "checking for EF_Exit in -lefence... $ECHO_C" >&6
- if test "${ac_cv_lib_efence_EF_Exit+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lefence $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char EF_Exit ();
- int
- main ()
- {
- EF_Exit ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_efence_EF_Exit=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_efence_EF_Exit=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_efence_EF_Exit" >&5
- echo "${ECHO_T}$ac_cv_lib_efence_EF_Exit" >&6
- if test $ac_cv_lib_efence_EF_Exit = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBEFENCE 1
- _ACEOF
- LIBS="-lefence $LIBS"
- fi
- fi
- # Checks for libraries.
- # AC_CHECK_LIB(des, main)
- echo "$as_me:$LINENO: checking for asin in -lm" >&5
- echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6
- if test "${ac_cv_lib_m_asin+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lm $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char asin ();
- int
- main ()
- {
- asin ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_m_asin=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_m_asin=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
- echo "${ECHO_T}$ac_cv_lib_m_asin" >&6
- if test $ac_cv_lib_m_asin = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBM 1
- _ACEOF
- LIBS="-lm $LIBS"
- fi
- # nlist is needed for uptime on some sytems in the generic library
- # add hosts which don't use nlist to the blank first line
- case $target_os in
- linux*) ;;
- irix*) # Check for nlist in mld (irix)
- echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
- echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
- if test "${ac_cv_lib_elf_nlist+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lelf $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char nlist ();
- int
- main ()
- {
- nlist ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_elf_nlist=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_elf_nlist=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
- echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
- if test $ac_cv_lib_elf_nlist = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBELF 1
- _ACEOF
- LIBS="-lelf $LIBS"
- fi
- echo "$as_me:$LINENO: checking for nlist in -lmld" >&5
- echo $ECHO_N "checking for nlist in -lmld... $ECHO_C" >&6
- if test "${ac_cv_lib_mld_nlist+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lmld $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char nlist ();
- int
- main ()
- {
- nlist ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_mld_nlist=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_mld_nlist=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_mld_nlist" >&5
- echo "${ECHO_T}$ac_cv_lib_mld_nlist" >&6
- if test $ac_cv_lib_mld_nlist = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBMLD 1
- _ACEOF
- LIBS="-lmld $LIBS"
- fi
- ;;
- *) # default
- echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
- echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
- if test "${ac_cv_lib_elf_nlist+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lelf $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char nlist ();
- int
- main ()
- {
- nlist ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_elf_nlist=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_elf_nlist=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
- echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
- if test $ac_cv_lib_elf_nlist = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBELF 1
- _ACEOF
- LIBS="-lelf $LIBS"
- fi
- ;;
- esac
- # On some platforms (Irix) libnsl and libsocket should not be used.
- echo "$as_me:$LINENO: checking for gethostbyname" >&5
- echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
- if test "${ac_cv_func_gethostbyname+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define gethostbyname innocuous_gethostbyname
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostbyname (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef gethostbyname
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
- choke me
- #else
- char (*f) () = gethostbyname;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != gethostbyname;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_func_gethostbyname=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_func_gethostbyname=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
- echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
- if test $ac_cv_func_gethostbyname = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GETHOSTBYNAME 1
- _ACEOF
- else
- echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
- echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
- if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lnsl $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname ();
- int
- main ()
- {
- gethostbyname ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_nsl_gethostbyname=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_nsl_gethostbyname=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
- echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
- if test $ac_cv_lib_nsl_gethostbyname = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GETHOSTBYNAME 1
- _ACEOF
- LIBS="${LIBS} -lnsl"
- fi
- fi
- # SCO Unixware 7.1.4 finds gethostbyname() in -lsocket
- echo "$as_me:$LINENO: checking for gethostbyname" >&5
- echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
- if test "${ac_cv_func_gethostbyname+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define gethostbyname innocuous_gethostbyname
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostbyname (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef gethostbyname
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
- choke me
- #else
- char (*f) () = gethostbyname;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != gethostbyname;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_func_gethostbyname=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_func_gethostbyname=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
- echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
- if test $ac_cv_func_gethostbyname = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GETHOSTBYNAME 1
- _ACEOF
- else
- echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
- echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
- if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname ();
- int
- main ()
- {
- gethostbyname ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_socket_gethostbyname=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_socket_gethostbyname=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
- echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
- if test $ac_cv_lib_socket_gethostbyname = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GETHOSTBYNAME 1
- _ACEOF
- LIBS="${LIBS} -lsocket"
- fi
- fi
- echo "$as_me:$LINENO: checking for getservbyname" >&5
- echo $ECHO_N "checking for getservbyname... $ECHO_C" >&6
- if test "${ac_cv_func_getservbyname+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define getservbyname to an innocuous variant, in case <limits.h> declares getservbyname.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define getservbyname innocuous_getservbyname
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char getservbyname (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef getservbyname
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char getservbyname ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_getservbyname) || defined (__stub___getservbyname)
- choke me
- #else
- char (*f) () = getservbyname;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != getservbyname;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_func_getservbyname=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_func_getservbyname=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname" >&5
- echo "${ECHO_T}$ac_cv_func_getservbyname" >&6
- if test $ac_cv_func_getservbyname = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GETSERVBYNAME 1
- _ACEOF
- else
- echo "$as_me:$LINENO: checking for getservbyname in -lsocket" >&5
- echo $ECHO_N "checking for getservbyname in -lsocket... $ECHO_C" >&6
- if test "${ac_cv_lib_socket_getservbyname+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char getservbyname ();
- int
- main ()
- {
- getservbyname ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_socket_getservbyname=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_socket_getservbyname=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getservbyname" >&5
- echo "${ECHO_T}$ac_cv_lib_socket_getservbyname" >&6
- if test $ac_cv_lib_socket_getservbyname = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GETSERVBYNAME 1
- _ACEOF
- LIBS="${LIBS} -lsocket"
- fi
- fi
- # Replace `main' with a function in -lkstat:
- echo "$as_me:$LINENO: checking for kstat_lookup in -lkstat" >&5
- echo $ECHO_N "checking for kstat_lookup in -lkstat... $ECHO_C" >&6
- if test "${ac_cv_lib_kstat_kstat_lookup+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lkstat $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char kstat_lookup ();
- int
- main ()
- {
- kstat_lookup ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_kstat_kstat_lookup=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_kstat_kstat_lookup=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_lookup" >&5
- echo "${ECHO_T}$ac_cv_lib_kstat_kstat_lookup" >&6
- if test $ac_cv_lib_kstat_kstat_lookup = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBKSTAT 1
- _ACEOF
- LIBS="-lkstat $LIBS"
- fi
- # Check for security related functions
- if test "x$tryopenssl" != "xno"; then
- if test "x$askedopenssl" != "xyes" -a "x$askedpkcs" = "xyes"; then
- echo "$as_me:$LINENO: checking for C_Initialize in -lpkcs11" >&5
- echo $ECHO_N "checking for C_Initialize in -lpkcs11... $ECHO_C" >&6
- if test "${ac_cv_lib_pkcs11_C_Initialize+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpkcs11 $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char C_Initialize ();
- int
- main ()
- {
- C_Initialize ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_pkcs11_C_Initialize=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_pkcs11_C_Initialize=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_pkcs11_C_Initialize" >&5
- echo "${ECHO_T}$ac_cv_lib_pkcs11_C_Initialize" >&6
- if test $ac_cv_lib_pkcs11_C_Initialize = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBPKCS11 1
- _ACEOF
- LIBS="-lpkcs11 $LIBS"
- fi
- else
- if test "x$tryrsaref" != "xno"; then
- echo "$as_me:$LINENO: checking for RSAPrivateDecrypt in -lrsaref" >&5
- echo $ECHO_N "checking for RSAPrivateDecrypt in -lrsaref... $ECHO_C" >&6
- if test "${ac_cv_lib_rsaref_RSAPrivateDecrypt+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lrsaref $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char RSAPrivateDecrypt ();
- int
- main ()
- {
- RSAPrivateDecrypt ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_rsaref_RSAPrivateDecrypt=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_rsaref_RSAPrivateDecrypt=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPrivateDecrypt" >&5
- echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPrivateDecrypt" >&6
- if test $ac_cv_lib_rsaref_RSAPrivateDecrypt = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBRSAREF 1
- _ACEOF
- LIBS="-lrsaref $LIBS"
- fi
- echo "$as_me:$LINENO: checking for RSA_PKCS1_RSAref in -lRSAglue" >&5
- echo $ECHO_N "checking for RSA_PKCS1_RSAref in -lRSAglue... $ECHO_C" >&6
- if test "${ac_cv_lib_RSAglue_RSA_PKCS1_RSAref+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lRSAglue $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char RSA_PKCS1_RSAref ();
- int
- main ()
- {
- RSA_PKCS1_RSAref ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_RSAglue_RSA_PKCS1_RSAref=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_RSAglue_RSA_PKCS1_RSAref=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_RSAglue_RSA_PKCS1_RSAref" >&5
- echo "${ECHO_T}$ac_cv_lib_RSAglue_RSA_PKCS1_RSAref" >&6
- if test $ac_cv_lib_RSAglue_RSA_PKCS1_RSAref = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBRSAGLUE 1
- _ACEOF
- LIBS="-lRSAglue $LIBS"
- fi
- fi
- echo "$as_me:$LINENO: checking for EVP_md5 in -lcrypto" >&5
- echo $ECHO_N "checking for EVP_md5 in -lcrypto... $ECHO_C" >&6
- if test "${ac_cv_lib_crypto_EVP_md5+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcrypto $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char EVP_md5 ();
- int
- main ()
- {
- EVP_md5 ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_crypto_EVP_md5=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_crypto_EVP_md5=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_md5" >&5
- echo "${ECHO_T}$ac_cv_lib_crypto_EVP_md5" >&6
- if test $ac_cv_lib_crypto_EVP_md5 = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBCRYPTO 1
- _ACEOF
- LIBS="-lcrypto $LIBS"
- fi
- for ac_func in AES_cfb128_encrypt
- do
- as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
- echo "$as_me:$LINENO: checking for $ac_func" >&5
- echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
- if eval "test "${$as_ac_var+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define $ac_func innocuous_$ac_func
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef $ac_func
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- char (*f) () = $ac_func;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != $ac_func;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_var=no"
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
- echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
- if test `eval echo '${'$as_ac_var'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
- #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- fi
- elif test "x$askedpkcs" = "xyes"; then
- echo "$as_me:$LINENO: checking for C_Initialize in -lpkcs11" >&5
- echo $ECHO_N "checking for C_Initialize in -lpkcs11... $ECHO_C" >&6
- if test "${ac_cv_lib_pkcs11_C_Initialize+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpkcs11 $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char C_Initialize ();
- int
- main ()
- {
- C_Initialize ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_pkcs11_C_Initialize=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_pkcs11_C_Initialize=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_pkcs11_C_Initialize" >&5
- echo "${ECHO_T}$ac_cv_lib_pkcs11_C_Initialize" >&6
- if test $ac_cv_lib_pkcs11_C_Initialize = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBPKCS11 1
- _ACEOF
- LIBS="-lpkcs11 $LIBS"
- fi
- fi
- # Check for libraries that the agent needs
- # saving old libraries
- NONAGENTLIBS=$LIBS
- # check for tcp wrapper support
- _cppflags="${CPPFLAGS}"
- _ldflags="${LDFLAGS}"
- # Check whether --with-libwrap or --without-libwrap was given.
- if test "${with_libwrap+set}" = set; then
- withval="$with_libwrap"
- if test "$with_libwrap" != "no"; then
- if test "$with_libwrap" != "yes"; then
- CPPFLAGS="${CPPFLAGS} -I$with_libwrap/include"
- LDFLAGS="${LDFLAGS} -L$with_libwrap/lib"
- fi
- _libs=${LIBS}
- if test "${ac_cv_header_tcpd_h+set}" = set; then
- echo "$as_me:$LINENO: checking for tcpd.h" >&5
- echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6
- if test "${ac_cv_header_tcpd_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- fi
- echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
- echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6
- else
- # Is the header compilable?
- echo "$as_me:$LINENO: checking tcpd.h usability" >&5
- echo $ECHO_N "checking tcpd.h usability... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- $ac_includes_default
- #include <tcpd.h>
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_header_compiler=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_compiler=no
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
- echo "${ECHO_T}$ac_header_compiler" >&6
- # Is the header present?
- echo "$as_me:$LINENO: checking tcpd.h presence" >&5
- echo $ECHO_N "checking tcpd.h presence... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <tcpd.h>
- _ACEOF
- if { (eval echo "$as_me:$LINENO: "$ac_cpp conftest.$ac_ext"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
- else
- ac_cpp_err=
- fi
- else
- ac_cpp_err=yes
- fi
- if test -z "$ac_cpp_err"; then
- ac_header_preproc=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_preproc=no
- fi
- rm -f conftest.err conftest.$ac_ext
- echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
- echo "${ECHO_T}$ac_header_preproc" >&6
- # So? What about this header?
- case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&5
- echo "$as_me: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the compiler's result" >&5
- echo "$as_me: WARNING: tcpd.h: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: tcpd.h: present but cannot be compiled" >&5
- echo "$as_me: WARNING: tcpd.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: tcpd.h: check for missing prerequisite headers?" >&5
- echo "$as_me: WARNING: tcpd.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: tcpd.h: see the Autoconf documentation" >&5
- echo "$as_me: WARNING: tcpd.h: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: tcpd.h: section "Present But Cannot Be Compiled"" >&5
- echo "$as_me: WARNING: tcpd.h: section "Present But Cannot Be Compiled"" >&2;}
- { echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the preprocessor's result" >&5
- echo "$as_me: WARNING: tcpd.h: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: tcpd.h: in the future, the compiler will take precedence" >&5
- echo "$as_me: WARNING: tcpd.h: in the future, the compiler will take precedence" >&2;}
- (
- cat <<_ASBOX
- ## ---------------------------------------------------- ##
- ## Report this to net-snmp-coders@lists.sourceforge.net ##
- ## ---------------------------------------------------- ##
- _ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- esac
- echo "$as_me:$LINENO: checking for tcpd.h" >&5
- echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6
- if test "${ac_cv_header_tcpd_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_cv_header_tcpd_h=$ac_header_preproc
- fi
- echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
- echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6
- fi
- if test $ac_cv_header_tcpd_h = yes; then
- :
- else
- { { echo "$as_me:$LINENO: error: Asked to use libwrap but I couldn't find tcpd.h." >&5
- echo "$as_me: error: Asked to use libwrap but I couldn't find tcpd.h." >&2;}
- { (exit 1); exit 1; }; }
- fi
- LIBS="$LIBS -lwrap"
- echo "$as_me:$LINENO: checking for TCP wrappers library -lwrap" >&5
- echo $ECHO_N "checking for TCP wrappers library -lwrap... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <tcpd.h>
- int allow_severity = 0;
- int deny_severity = 0;
- int
- main ()
- {
- hosts_access((void *)0)
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define USE_LIBWRAP 1
- _ACEOF
- test "$with_libwrap" != no -a "$with_libwrap" != yes && WRAPLIBS="-L$with_libwrap/lib"
- WRAPLIBS="$WRAPLIBS -lwrap"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- # Linux RedHat 6.1 won't link libwrap without libnsl
- echo "$as_me:$LINENO: checking for yp_get_default_domain" >&5
- echo $ECHO_N "checking for yp_get_default_domain... $ECHO_C" >&6
- if test "${ac_cv_func_yp_get_default_domain+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define yp_get_default_domain to an innocuous variant, in case <limits.h> declares yp_get_default_domain.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define yp_get_default_domain innocuous_yp_get_default_domain
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char yp_get_default_domain (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef yp_get_default_domain
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char yp_get_default_domain ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_yp_get_default_domain) || defined (__stub___yp_get_default_domain)
- choke me
- #else
- char (*f) () = yp_get_default_domain;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != yp_get_default_domain;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_func_yp_get_default_domain=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_func_yp_get_default_domain=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: $ac_cv_func_yp_get_default_domain" >&5
- echo "${ECHO_T}$ac_cv_func_yp_get_default_domain" >&6
- if test $ac_cv_func_yp_get_default_domain = yes; then
- :
- else
- echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
- echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6
- if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lnsl $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char yp_get_default_domain ();
- int
- main ()
- {
- yp_get_default_domain ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_nsl_yp_get_default_domain=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_nsl_yp_get_default_domain=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
- echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6
- if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBNSL 1
- _ACEOF
- LIBS="-lnsl $LIBS"
- fi
- fi
- echo "$as_me:$LINENO: checking for TCP wrappers library -lwrap linked with -lnsl" >&5
- echo $ECHO_N "checking for TCP wrappers library -lwrap linked with -lnsl... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <tcpd.h>
- int allow_severity = 0;
- int deny_severity = 0;
- int
- main ()
- {
- hosts_access((void *)0)
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define USE_LIBWRAP 1
- _ACEOF
- test "$with_libwrap" != no -a "$with_libwrap" != yes && WRAPLIBS="-L$with_libwrap/lib"
- WRAPLIBS="$WRAPLIBS -lwrap -lnsl"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- { { echo "$as_me:$LINENO: error: Asked to use libwrap but I couldn't find it." >&5
- echo "$as_me: error: Asked to use libwrap but I couldn't find it." >&2;}
- { (exit 1); exit 1; }; }
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- CPPFLAGS=${_cppflags}
- LDFLAGS=${_ldflags}
- LIBS=${_libs}
- fi
- fi;
- #
- # rpm libraries only needed for the host resources mib software
- # installed tables (on linux in particular)
- #
- if test "x$with_rpm" != "xno" &&
- echo " $module_list " | grep " host/hr_swinst " > /dev/null; then
- # ARG. RPM is a real pain.
- # FWIW librpm.la, librpmio.la, and libpopt.la have correct dependencies.
- _rpmlibs=""
- # zlib is required for newer versions of rpm
- _cppflags="${CPPFLAGS}"
- _ldflags="${LDFLAGS}"
- # Check whether --with-zlib or --without-zlib was given.
- if test "${with_zlib+set}" = set; then
- withval="$with_zlib"
- if test -d "$withval"; then
- CPPFLAGS="${CPPFLAGS} -I$withval/include"
- LDFLAGS="${LDFLAGS} -L$withval/lib"
- fi
- fi;
- # dunno if this is needed for rpm-4.0.x, earlier probably needs.
- if test "${ac_cv_header_zlib_h+set}" = set; then
- echo "$as_me:$LINENO: checking for zlib.h" >&5
- echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
- if test "${ac_cv_header_zlib_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- fi
- echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
- echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
- else
- # Is the header compilable?
- echo "$as_me:$LINENO: checking zlib.h usability" >&5
- echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- $ac_includes_default
- #include <zlib.h>
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_header_compiler=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_compiler=no
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
- echo "${ECHO_T}$ac_header_compiler" >&6
- # Is the header present?
- echo "$as_me:$LINENO: checking zlib.h presence" >&5
- echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <zlib.h>
- _ACEOF
- if { (eval echo "$as_me:$LINENO: "$ac_cpp conftest.$ac_ext"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
- else
- ac_cpp_err=
- fi
- else
- ac_cpp_err=yes
- fi
- if test -z "$ac_cpp_err"; then
- ac_header_preproc=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_preproc=no
- fi
- rm -f conftest.err conftest.$ac_ext
- echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
- echo "${ECHO_T}$ac_header_preproc" >&6
- # So? What about this header?
- case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
- echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
- echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
- echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
- echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
- echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: zlib.h: section "Present But Cannot Be Compiled"" >&5
- echo "$as_me: WARNING: zlib.h: section "Present But Cannot Be Compiled"" >&2;}
- { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
- echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
- echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
- (
- cat <<_ASBOX
- ## ---------------------------------------------------- ##
- ## Report this to net-snmp-coders@lists.sourceforge.net ##
- ## ---------------------------------------------------- ##
- _ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- esac
- echo "$as_me:$LINENO: checking for zlib.h" >&5
- echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
- if test "${ac_cv_header_zlib_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_cv_header_zlib_h=$ac_header_preproc
- fi
- echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
- echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
- fi
- if test $ac_cv_header_zlib_h = yes; then
- echo "$as_me:$LINENO: checking for gzread in -lz" >&5
- echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
- if test "${ac_cv_lib_z_gzread+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lz $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gzread ();
- int
- main ()
- {
- gzread ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_z_gzread=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_z_gzread=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
- echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
- if test $ac_cv_lib_z_gzread = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBZ 1
- _ACEOF
- LIBS="-lz $LIBS"
- else
- CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
- fi
- else
- CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
- fi
- # two variants of bzip2 need checking.
- echo "$as_me:$LINENO: checking for bzread in -lbz2" >&5
- echo $ECHO_N "checking for bzread in -lbz2... $ECHO_C" >&6
- if test "${ac_cv_lib_bz2_bzread+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbz2 $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char bzread ();
- int
- main ()
- {
- bzread ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_bz2_bzread=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_bz2_bzread=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_bzread" >&5
- echo "${ECHO_T}$ac_cv_lib_bz2_bzread" >&6
- if test $ac_cv_lib_bz2_bzread = yes; then
- _rpmlibs="$_rpmlibs -lbz2"
- else
- echo "$as_me:$LINENO: checking for BZ2_bzread in -lbz2" >&5
- echo $ECHO_N "checking for BZ2_bzread in -lbz2... $ECHO_C" >&6
- if test "${ac_cv_lib_bz2_BZ2_bzread+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbz2 $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char BZ2_bzread ();
- int
- main ()
- {
- BZ2_bzread ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_bz2_BZ2_bzread=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_bz2_BZ2_bzread=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzread" >&5
- echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzread" >&6
- if test $ac_cv_lib_bz2_BZ2_bzread = yes; then
- _rpmlibs="$_rpmlibs -lbz2"
- fi
- fi
- # two variants of db1 need checking.
- echo "$as_me:$LINENO: checking for dbopen in -ldb1" >&5
- echo $ECHO_N "checking for dbopen in -ldb1... $ECHO_C" >&6
- if test "${ac_cv_lib_db1_dbopen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldb1 $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dbopen ();
- int
- main ()
- {
- dbopen ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_db1_dbopen=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_db1_dbopen=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_db1_dbopen" >&5
- echo "${ECHO_T}$ac_cv_lib_db1_dbopen" >&6
- if test $ac_cv_lib_db1_dbopen = yes; then
- _rpmlibs="-ldb1 $_rpmlibs"
- else
- echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
- echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6
- if test "${ac_cv_lib_db_dbopen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldb $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dbopen ();
- int
- main ()
- {
- dbopen ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_db_dbopen=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_db_dbopen=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
- echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6
- if test $ac_cv_lib_db_dbopen = yes; then
- _rpmlibs="-ldb $_rpmlibs"
- fi
- fi
- # two variants of db3 need checking.
- echo "$as_me:$LINENO: checking for db_create in -ldb-3.1" >&5
- echo $ECHO_N "checking for db_create in -ldb-3.1... $ECHO_C" >&6
- if test "${ac_cv_lib_db_3_1_db_create+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldb-3.1 $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char db_create ();
- int
- main ()
- {
- db_create ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_db_3_1_db_create=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_db_3_1_db_create=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_db_3_1_db_create" >&5
- echo "${ECHO_T}$ac_cv_lib_db_3_1_db_create" >&6
- if test $ac_cv_lib_db_3_1_db_create = yes; then
- _rpmlibs="-ldb-3.1 $_rpmlibs"
- else
- echo "$as_me:$LINENO: checking for db_create in -ldb-3.0" >&5
- echo $ECHO_N "checking for db_create in -ldb-3.0... $ECHO_C" >&6
- if test "${ac_cv_lib_db_3_0_db_create+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldb-3.0 $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char db_create ();
- int
- main ()
- {
- db_create ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_db_3_0_db_create=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_db_3_0_db_create=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_db_3_0_db_create" >&5
- echo "${ECHO_T}$ac_cv_lib_db_3_0_db_create" >&6
- if test $ac_cv_lib_db_3_0_db_create = yes; then
- _rpmlibs="-ldb-3.0 $_rpmlibs"
- fi
- fi
- # rpm-3.0.5 and later needs popt.
- echo "$as_me:$LINENO: checking for poptParseArgvString in -lpopt" >&5
- echo $ECHO_N "checking for poptParseArgvString in -lpopt... $ECHO_C" >&6
- if test "${ac_cv_lib_popt_poptParseArgvString+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpopt $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char poptParseArgvString ();
- int
- main ()
- {
- poptParseArgvString ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_popt_poptParseArgvString=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_popt_poptParseArgvString=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptParseArgvString" >&5
- echo "${ECHO_T}$ac_cv_lib_popt_poptParseArgvString" >&6
- if test $ac_cv_lib_popt_poptParseArgvString = yes; then
- _rpmlibs="-lpopt $_rpmlibs"
- fi
- # rpm-4.0.x needs rpmio.
- echo "$as_me:$LINENO: checking for Fopen in -lrpmio" >&5
- echo $ECHO_N "checking for Fopen in -lrpmio... $ECHO_C" >&6
- if test "${ac_cv_lib_rpmio_Fopen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lrpmio $_rpmlibs $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char Fopen ();
- int
- main ()
- {
- Fopen ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_rpmio_Fopen=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_rpmio_Fopen=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_rpmio_Fopen" >&5
- echo "${ECHO_T}$ac_cv_lib_rpmio_Fopen" >&6
- if test $ac_cv_lib_rpmio_Fopen = yes; then
- _rpmlibs="-lrpmio $_rpmlibs"
- fi
- # now check for rpm using the appropriate libraries.
- echo "$as_me:$LINENO: checking for rpmGetFilesystemList in -lrpm" >&5
- echo $ECHO_N "checking for rpmGetFilesystemList in -lrpm... $ECHO_C" >&6
- if test "${ac_cv_lib_rpm_rpmGetFilesystemList+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lrpm $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char rpmGetFilesystemList ();
- int
- main ()
- {
- rpmGetFilesystemList ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_rpm_rpmGetFilesystemList=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_rpm_rpmGetFilesystemList=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_rpm_rpmGetFilesystemList" >&5
- echo "${ECHO_T}$ac_cv_lib_rpm_rpmGetFilesystemList" >&6
- if test $ac_cv_lib_rpm_rpmGetFilesystemList = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBRPM 1
- _ACEOF
- LIBS="-lrpm $_rpmlibs $LIBS"
- CFLAGS="$CFLAGS -I/usr/include/rpm"
- else
- # rpm-4.0.3 librpmdb actually contains what we need.
- echo "$as_me:$LINENO: checking for rpmdbOpen in -lrpmdb" >&5
- echo $ECHO_N "checking for rpmdbOpen in -lrpmdb... $ECHO_C" >&6
- if test "${ac_cv_lib_rpmdb_rpmdbOpen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lrpmdb -lrpm $_rpmlibs $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char rpmdbOpen ();
- int
- main ()
- {
- rpmdbOpen ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_rpmdb_rpmdbOpen=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_rpmdb_rpmdbOpen=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_rpmdb_rpmdbOpen" >&5
- echo "${ECHO_T}$ac_cv_lib_rpmdb_rpmdbOpen" >&6
- if test $ac_cv_lib_rpmdb_rpmdbOpen = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBRPM 1
- _ACEOF
- LIBS="-lrpmdb -lrpm $_rpmlibs $LIBS"
- CFLAGS="$CFLAGS -I/usr/include/rpm"
- fi
- fi
- fi
- # Replace `main' with a function in -lkvm:
- echo "$as_me:$LINENO: checking for kvm_read in -lkvm" >&5
- echo $ECHO_N "checking for kvm_read in -lkvm... $ECHO_C" >&6
- if test "${ac_cv_lib_kvm_kvm_read+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lkvm $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char kvm_read ();
- int
- main ()
- {
- kvm_read ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_kvm_kvm_read=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_kvm_kvm_read=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_read" >&5
- echo "${ECHO_T}$ac_cv_lib_kvm_kvm_read" >&6
- if test $ac_cv_lib_kvm_kvm_read = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBKVM 1
- _ACEOF
- LIBS="-lkvm $LIBS"
- fi
- # DYNAMIC MODULE SUPPORT
- echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
- echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
- if test "${ac_cv_lib_dl_dlopen+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldl $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dlopen ();
- int
- main ()
- {
- dlopen ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_dl_dlopen=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_dl_dlopen=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
- echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
- if test $ac_cv_lib_dl_dlopen = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBDL 1
- _ACEOF
- LIBS="-ldl $LIBS"
- fi
- for ac_func in dlopen
- do
- as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
- echo "$as_me:$LINENO: checking for $ac_func" >&5
- echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
- if eval "test "${$as_ac_var+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define $ac_func innocuous_$ac_func
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef $ac_func
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- char (*f) () = $ac_func;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != $ac_func;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_var=no"
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
- echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
- if test `eval echo '${'$as_ac_var'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
- #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_func in kvm_openfiles nlist knlist kvm_getprocs kvm_getswapinfo
- do
- as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
- echo "$as_me:$LINENO: checking for $ac_func" >&5
- echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
- if eval "test "${$as_ac_var+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define $ac_func innocuous_$ac_func
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef $ac_func
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- char (*f) () = $ac_func;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != $ac_func;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_var=no"
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
- echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
- if test `eval echo '${'$as_ac_var'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
- #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- echo " $module_list " | grep " ucd-snmp/diskio " >/dev/null
- # whether we need -ldevstat for diskio MIB
- if test $? -eq 0 ; then
- echo "$as_me:$LINENO: checking for getdevs" >&5
- echo $ECHO_N "checking for getdevs... $ECHO_C" >&6
- if test "${ac_cv_func_getdevs+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define getdevs to an innocuous variant, in case <limits.h> declares getdevs.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define getdevs innocuous_getdevs
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char getdevs (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef getdevs
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char getdevs ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_getdevs) || defined (__stub___getdevs)
- choke me
- #else
- char (*f) () = getdevs;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != getdevs;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_func_getdevs=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_func_getdevs=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: $ac_cv_func_getdevs" >&5
- echo "${ECHO_T}$ac_cv_func_getdevs" >&6
- if test $ac_cv_func_getdevs = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GETDEVS 1
- _ACEOF
- else
- echo "$as_me:$LINENO: checking for getdevs in -ldevstat" >&5
- echo $ECHO_N "checking for getdevs in -ldevstat... $ECHO_C" >&6
- if test "${ac_cv_lib_devstat_getdevs+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldevstat $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char getdevs ();
- int
- main ()
- {
- getdevs ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_devstat_getdevs=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_devstat_getdevs=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_devstat_getdevs" >&5
- echo "${ECHO_T}$ac_cv_lib_devstat_getdevs" >&6
- if test $ac_cv_lib_devstat_getdevs = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GETDEVS 1
- _ACEOF
- LIBS="${LIBS} -ldevstat"
- fi
- fi
- echo "$as_me:$LINENO: checking for getdevs" >&5
- echo $ECHO_N "checking for getdevs... $ECHO_C" >&6
- if test "${ac_cv_func_getdevs+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define getdevs to an innocuous variant, in case <limits.h> declares getdevs.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define getdevs innocuous_getdevs
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char getdevs (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef getdevs
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char getdevs ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_getdevs) || defined (__stub___getdevs)
- choke me
- #else
- char (*f) () = getdevs;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != getdevs;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_func_getdevs=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_func_getdevs=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: $ac_cv_func_getdevs" >&5
- echo "${ECHO_T}$ac_cv_func_getdevs" >&6
- if test $ac_cv_func_getdevs = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DEVSTAT_GETDEVS 1
- _ACEOF
- else
- echo "$as_me:$LINENO: checking for devstat_getdevs in -ldevstat" >&5
- echo $ECHO_N "checking for devstat_getdevs in -ldevstat... $ECHO_C" >&6
- if test "${ac_cv_lib_devstat_devstat_getdevs+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldevstat $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char devstat_getdevs ();
- int
- main ()
- {
- devstat_getdevs ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_devstat_devstat_getdevs=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_devstat_devstat_getdevs=no
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_devstat_devstat_getdevs" >&5
- echo "${ECHO_T}$ac_cv_lib_devstat_devstat_getdevs" >&6
- if test $ac_cv_lib_devstat_devstat_getdevs = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DEVSTAT_GETDEVS 1
- _ACEOF
- LIBS="${LIBS} -ldevstat"
- fi
- fi
- fi
- # LM-SENSORS-MIB support
- echo " $module_list " | grep " ucd-snmp/lmSensors " > /dev/null
- if test $? -eq 0 ; then
- echo "$as_me:$LINENO: checking for sensors support" >&5
- echo $ECHO_N "checking for sensors support... $ECHO_C" >&6
- case $target_os in
- solaris*)
- if test "${ac_cv_header_picl_h+set}" = set; then
- echo "$as_me:$LINENO: checking for picl.h" >&5
- echo $ECHO_N "checking for picl.h... $ECHO_C" >&6
- if test "${ac_cv_header_picl_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- fi
- echo "$as_me:$LINENO: result: $ac_cv_header_picl_h" >&5
- echo "${ECHO_T}$ac_cv_header_picl_h" >&6
- else
- # Is the header compilable?
- echo "$as_me:$LINENO: checking picl.h usability" >&5
- echo $ECHO_N "checking picl.h usability... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- $ac_includes_default
- #include <picl.h>
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_header_compiler=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_compiler=no
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
- echo "${ECHO_T}$ac_header_compiler" >&6
- # Is the header present?
- echo "$as_me:$LINENO: checking picl.h presence" >&5
- echo $ECHO_N "checking picl.h presence... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <picl.h>
- _ACEOF
- if { (eval echo "$as_me:$LINENO: "$ac_cpp conftest.$ac_ext"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
- else
- ac_cpp_err=
- fi
- else
- ac_cpp_err=yes
- fi
- if test -z "$ac_cpp_err"; then
- ac_header_preproc=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_header_preproc=no
- fi
- rm -f conftest.err conftest.$ac_ext
- echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
- echo "${ECHO_T}$ac_header_preproc" >&6
- # So? What about this header?
- case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: picl.h: accepted by the compiler, rejected by the preprocessor!" >&5
- echo "$as_me: WARNING: picl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: picl.h: proceeding with the compiler's result" >&5
- echo "$as_me: WARNING: picl.h: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: picl.h: present but cannot be compiled" >&5
- echo "$as_me: WARNING: picl.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: picl.h: check for missing prerequisite headers?" >&5
- echo "$as_me: WARNING: picl.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: picl.h: see the Autoconf documentation" >&5
- echo "$as_me: WARNING: picl.h: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: picl.h: section "Present But Cannot Be Compiled"" >&5
- echo "$as_me: WARNING: picl.h: section "Present But Cannot Be Compiled"" >&2;}
- { echo "$as_me:$LINENO: WARNING: picl.h: proceeding with the preprocessor's result" >&5
- echo "$as_me: WARNING: picl.h: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: picl.h: in the future, the compiler will take precedence" >&5
- echo "$as_me: WARNING: picl.h: in the future, the compiler will take precedence" >&2;}
- (
- cat <<_ASBOX
- ## ---------------------------------------------------- ##
- ## Report this to net-snmp-coders@lists.sourceforge.net ##
- ## ---------------------------------------------------- ##
- _ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- esac
- echo "$as_me:$LINENO: checking for picl.h" >&5
- echo $ECHO_N "checking for picl.h... $ECHO_C" >&6
- if test "${ac_cv_header_picl_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_cv_header_picl_h=$ac_header_preproc
- fi
- echo "$as_me:$LINENO: result: $ac_cv_header_picl_h" >&5
- echo "${ECHO_T}$ac_cv_header_picl_h" >&6
- fi
- if test $ac_cv_header_picl_h = yes; then
- LIBS="${LIBS} -lpicl"
- fi