3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
17 --with-cc=CC use CC to compile (default=gcc)."
19 --with-ar=AR use AR as the archiver."
21 --with-endianness=big|little define endianness of target platform when
24 --with-cflags=CFLAGS use CFLAGS as compile time arguments."
26 --with-ldflags=LDFLAGS use LDFLAGS as link time arguments to ld."
28 --with-libs=LIBS use LIBS as link time arguments to ld."
30 --enable-silent-libtool Pass --silent to libtool."
32 --enable-mini-agent Build a minimal agent."
34 --enable-ipv6 Generate IPv6 ready version."
36 --enable-debugging Outputs extra debugging information at all
37 times. Normally, you should not enable this,
38 but instead use the -D flag of the commands,
39 which toggles debbuging output at runtime.
40 --disable-debugging Disallows debugging code to be built in.
41 This might provide some speed benefits."
43 --enable-developer Turns on super-duper-extra-compile-warnings
46 --with-dmalloc=PATH Use dmalloc library (www.dmalloc.com)"
48 --with-efence Look for and use libefence (malloc)."
50 --with-rsaref=PATH Look for librsaref in PATH/lib."
52 --with-openssl=PATH Look for openssl in PATH/lib."
54 --disable-privacy Don't compile in support for privacy."
56 --enable-internal-md5 Use the internal MD5 support."
58 --without-opaque-special-types Don't use special opaque encodings.
59 SNMP normally cannot handle
60 floating numbers, nor large 64 bit
61 integers well. By default, the
62 net-snmp package compiles in
63 support for these extra datatypes
66 --with-mibdirs=\"dir1:dir2:\" Default directories to look for mibs.
67 (Default: \$HOME/.snmp/mibs:DATADIR/snmp/mibs)"
69 --with-mibs=\"item1:item2:\" Default mib IDs to read.
70 (The default list is \"IP-MIB:IF-MIB:
71 TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB\"
72 with the addition of any mibs used
73 by the mib modules the agent is
76 --with-mibfiles=\"file1:file2\" Default mib files to load.
77 (Default: none. uses IDs above instead.)"
79 --enable-testing-code Enables some code sections that should
80 only be used for testing of certain
81 SNMP functionalities. This should *not*
82 be turned on for production use. Ever."
84 --enable-reentrant Enables locking functions that protect
85 library resources in some multi-threading
86 environments. This does not guarantee
87 thread-safe operation.
88 Currently an experimental setting."
91 Configuring the agent:
92 --without-root-access The snmpd agent won't require root access to
93 run it. The information it returns in the
94 mib-II tree may not be correct, however."
97 Configuring the agent:
98 --without-kmem-usage Do not include any code related to the use
99 of kmem. This option can only be used with
100 the option --enable-mini-agent."
102 --with-dummy-values Provide 'placeholder' dummy values where
103 the necessary information is not available.
104 This is technically not compliant with the
105 SNMP specifications, but was how the agent
106 operated for versions < 4.0."
108 --with-persistent-directory=\"directory\"
109 Default directory for persistent data storage."
111 --with-copy-persistent-files=\"no\" Don't copy persistent files
112 (or use \"yes\" to copy them).
115 --with-default-snmp-version=\"3\" Default version of SNMP to use.
117 Legal values: 1, 2 (for SNMPv2c) or 3."
119 --with-sys-contact=\"who@where\" Default system contact.
120 (Default: LOGIN@DOMAINNAME)"
122 --with-sys-location=\"location\" Default system location.
125 --with-logfile=\"location\" Default log file location for snmpd."
127 --with-transports=\"t1 t2 ...\" Compile in the given SNMP transport
128 modules (space separated list)."
130 --with-out-transports=\"t1 ...\" Exclude listed SNMP transports
131 (space separated list).
133 Available SNMP transport modules are:
135 UDP support for SNMP over UDP/IP.
136 This transport is always compiled in.
137 UDPIPv6 support for SNMP over UDP/IPv6.
138 This transport is available for Linux, Solaris and
140 It is never compiled in by default.
141 TCPIPv6 support for SNMP over UDP/IPv6.
142 This transport is available for Linux, Solaris and
144 It is never compiled in by default.
145 TCP support for SNMP over TCP/IP.
146 This transport is compiled in by default, but may be omitted.
147 Unix support for SNMP over Unix domain protocols.
148 This transport is compiled in by default except on Win32
149 platforms, and may be omitted.
150 Callback support for SNMP over an internal locally connected pair
152 AAL5PVC support for SNMP over AAL5 PVCs.
153 This transport is presently only available for Linux,
154 is never compiled in by default and may be omitted.
155 IPX support for SNMP over IPX per RFC 1420.
156 This transport is presently only available for Linux,
157 is never compiled in by default and may be omitted.
164 --with-security-modules=\"s1 s2 ...\" Compile in the given SNMP security
165 module services (space separated list).
167 Available SNMP security services:
169 usm support for user based SNMP security
170 (required and always compiled in)
171 ksm support for kerberos based SNMP security
174 --with-mib-modules=\"item1 ...\" Compile with additional mib modules
175 (Space separated list)."
177 --with-out-mib-modules=\"list\" Compile without these mib modules.
179 Default mib modules compiled into the agent (which can be removed):
181 mibII support for the mib-II tree.
182 snmpv3mibs support for the snmpv3 mib modules.
183 ucd_snmp UCD-SNMP-MIB specific extensions.
184 agent_mibs NET-SNMP-AGENT-MIB extensions
186 notification mibs supporting specification of trap destinations.
187 target Support for the SNMP WGs TARGET-MIB.
188 utilities general agent configuration utilities.
190 Optional mib modules that can be built into the agent include:
191 host host resources mib support.
192 (beta level code for linux, hpux, solaris, bsdi)
193 disman/event-mib support for the DISMAN-EVENT-MIB (beta)
194 (supports self monitoring and notification
195 delivery when error conditions are found)
196 smux smux support to allow subagents to attach to snmpd.
197 mibII/mta_sendmail Sendmail statistics monitoring (MTA-MIB)
198 misc/ipfwacc accounting rules IP firewall information (linux).
199 ipfwchains/ipfwchains firewall chains under ipfw for linux.
200 (Download separately from the ucd-snmp ftp site.)
201 ucd-snmp/diskio Table of io-devices and how much data they have
202 read/written. (only tested on Solaris)
203 tunnel Linux TUNNEL-MIB support (ifTable extension)
205 AgentX support: (warning: beta code)
206 agentx/subagent allows the agent to run as either a snmp agent
207 or as an agentX sub-agent.
208 agentx/master makes the agent run as an agentX master agent
209 as well as a normal snmp agent.
210 agentx includes both agentx/master and agentx/client.
212 Optional modules for C coders to look at and/or include as extension examples:
214 examples/ucdDemoPublic SNMPv3 interoperability testing mib.
215 examples/example example C code extension."
217 Enterprise OIDs: (warning: this should be used with caution.)
219 --with-enterprise-oid The enterprise number assigned to the
221 http://www.iana.org/cgi-bin/enterprise.pl
222 to get one, though using the default is
223 probably the right choice is most cases.
224 (default 8072 = "enterprise.net-snmp
")"
227 --with-enterprise-sysoid The base OID for the sysObjectID
229 (default .1.3.6.1.4.1.8072.3.2... =
230 "netSnmpAgentOIDs...
")"
233 --with-enterprise-notification-oid The OID used for the root of
234 enterprise specific notifications.
235 (default .1.3.6.1.4.1.2021 = "enterprise.ucdavis
")"
243 --with-perl-modules[=ARGS] Install the perl modules along with the rest
244 of the net-snmp toolkit. If ARGS is
245 specified, they're passed to the
249 --enable-embedded-perl Embed perl in the SNMP agent.
250 [forces --with-perl-modules as well.]"
254 --with-defaults Use defaults for prompted values."
256 --enable-ucd-snmp-compatibility Install ucd-snmp look-alike headers and libs."
258 --enable-shared[=PKGS] build shared libraries [default=yes]"
260 --enable-static[=PKGS] build static libraries [default=yes]"
262 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
264 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
266 # Find the correct PATH separator. Usually this is `:', but
267 # DJGPP uses `;' like DOS.
268 if test "X${PATH_SEPARATOR+set}" != Xset
; then
269 UNAME
=${UNAME-`uname 2>/dev/null`}
271 *-DOS) lt_cv_sys_path_separator
=';' ;;
272 *) lt_cv_sys_path_separator
=':' ;;
274 PATH_SEPARATOR
=$lt_cv_sys_path_separator
278 # Check that we are running under the correct shell.
279 SHELL
=${CONFIG_SHELL-/bin/sh}
283 # Remove one level of quotation (which was required for Make).
284 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
289 if test "X$1" = X--no-reexec
; then
290 # Discard the --no-reexec flag, and continue.
292 elif test "X$1" = X--fallback-echo
; then
293 # Avoid inline document here, it may be left over
295 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
296 # Yippee, $echo works!
299 # Restart under the correct shell.
300 exec $SHELL "$0" --no-reexec ${1+"$@"}
303 if test "X$1" = X--fallback-echo
; then
304 # used as fallback echo
312 # The HP-UX ksh and POSIX shell print the target directory to stdout
314 if test "X${CDPATH+set}" = Xset
; then CDPATH
=:; export CDPATH
; fi
316 if test -z "$ECHO"; then
317 if test "X${echo_test_string+set}" != Xset
; then
318 # find a string as large as possible, as long as the shell can cope with it
319 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
320 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
321 if (echo_test_string
="`eval $cmd`") 2>/dev
/null
&&
322 echo_test_string
="`eval $cmd`" &&
323 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
330 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
331 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
332 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # The Solaris, AIX, and Digital Unix default echo programs unquote
336 # backslashes. This makes it impossible to quote backslashes using
337 # echo "$something" | sed 's/\\/\\\\/g'
339 # So, first we look for a working echo in the user's PATH.
341 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
342 for dir
in $PATH /usr
/ucb
; do
343 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
344 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
345 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
353 if test "X$echo" = Xecho
; then
354 # We didn't find a better echo, so look for alternatives.
355 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
356 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 # This shell has a builtin print -r that does the trick.
360 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
361 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
362 # If we have ksh, try running configure again with it.
363 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
364 export ORIGINAL_CONFIG_SHELL
365 CONFIG_SHELL
=/bin
/ksh
367 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
371 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
372 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
373 test "X$echo_testing_string" = "X$echo_test_string"; then
376 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
377 test "X$echo_testing_string" = 'X\t' &&
378 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
379 test "X$echo_testing_string" = "X$echo_test_string"; then
380 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
382 SHELL
="$CONFIG_SHELL"
384 echo="$CONFIG_SHELL $0 --fallback-echo"
385 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
386 test "X$echo_testing_string" = 'X\t' &&
387 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
388 test "X$echo_testing_string" = "X$echo_test_string"; then
389 echo="$CONFIG_SHELL $0 --fallback-echo"
391 # maybe with a smaller string...
394 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
395 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
402 if test "$prev" != 'sed 50q "$0"'; then
403 echo_test_string
=`eval $prev`
404 export echo_test_string
405 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
407 # Oops. We lost completely, so just stick with echo.
416 # Copy echo and quote the copy suitably for passing to libtool from
417 # the Makefile, instead of quoting the original, which is used later.
419 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
420 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
425 --disable-libtool-lock avoid locking (might break parallel builds)"
427 --with-pic try to use only PIC/non-PIC objects [default=use both]"
429 --with-libwrap[=LIBPATH] Compile in libwrap (tcp_wrappers) support."
431 --with-zlib[=DIR] use libz in DIR"
433 # Initialize some variables set by options.
434 # The variables have the same names as the options, with
435 # dashes changed to underlines.
437 cache_file
=.
/config.cache
446 program_transform_name
=s
,x
,x
,
454 bindir
='${exec_prefix}/bin'
455 sbindir
='${exec_prefix}/sbin'
456 libexecdir
='${exec_prefix}/libexec'
457 datadir
='${prefix}/share'
458 sysconfdir
='${prefix}/etc'
459 sharedstatedir
='${prefix}/com'
460 localstatedir
='${prefix}/var'
461 libdir
='${exec_prefix}/lib'
462 includedir
='${prefix}/include'
463 oldincludedir
='/usr/include'
464 infodir
='${prefix}/info'
465 mandir
='${prefix}/man'
467 # Initialize some other variables.
470 SHELL
=${CONFIG_SHELL-/bin/sh}
471 # Maximum number of lines to put in a shell here document.
478 # If the previous option needs an argument, assign it.
479 if test -n "$ac_prev"; then
480 eval "$ac_prev=\$ac_option"
486 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
490 # Accept the important Cygnus configure options, so we can diagnose typos.
494 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
496 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
497 bindir
="$ac_optarg" ;;
499 -build |
--build |
--buil |
--bui |
--bu)
501 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
502 build
="$ac_optarg" ;;
504 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
505 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
506 ac_prev
=cache_file
;;
507 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
508 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
509 cache_file
="$ac_optarg" ;;
511 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
513 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
515 datadir
="$ac_optarg" ;;
517 -disable-* |
--disable-*)
518 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
519 # Reject names that are not valid shell variable names.
520 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
521 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
523 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
524 eval "enable_${ac_feature}=no" ;;
526 -enable-* |
--enable-*)
527 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
528 # Reject names that are not valid shell variable names.
529 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
530 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
532 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
537 eval "enable_${ac_feature}='$ac_optarg'" ;;
539 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
540 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
541 |
--exec |
--exe |
--ex)
542 ac_prev
=exec_prefix
;;
543 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
544 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
545 |
--exec=* |
--exe=* |
--ex=*)
546 exec_prefix
="$ac_optarg" ;;
548 -gas |
--gas |
--ga |
--g)
549 # Obsolete; use --with-gas.
552 -help |
--help |
--hel |
--he)
553 # Omit some internal or obsolete options to make the list less imposing.
554 # This message is too long to be a string in the A/UX 3.1 sh.
556 Usage: configure [options] [host]
557 Options: [defaults in brackets after descriptions]
559 --cache-file=FILE cache test results in FILE
560 --help print this message
561 --no-create do not create output files
562 --quiet, --silent do not print \`checking...' messages
563 --version print the version of autoconf that created configure
564 Directory and file names:
565 --prefix=PREFIX install architecture-independent files in PREFIX
567 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
569 --bindir=DIR user executables in DIR [EPREFIX/bin]
570 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
571 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
572 --datadir=DIR read-only architecture-independent data in DIR
574 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
575 --sharedstatedir=DIR modifiable architecture-independent data in DIR
577 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
578 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
579 --includedir=DIR C header files in DIR [PREFIX/include]
580 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
581 --infodir=DIR info documentation in DIR [PREFIX/info]
582 --mandir=DIR man documentation in DIR [PREFIX/man]
583 --srcdir=DIR find the sources in DIR [configure dir or ..]
584 --program-prefix=PREFIX prepend PREFIX to installed program names
585 --program-suffix=SUFFIX append SUFFIX to installed program names
586 --program-transform-name=PROGRAM
587 run sed PROGRAM on installed program names
591 --build=BUILD configure for building on BUILD [BUILD=HOST]
592 --host=HOST configure for HOST [guessed]
593 --target=TARGET configure for TARGET [TARGET=HOST]
594 Features and packages:
595 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
596 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
597 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
598 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
599 --x-includes=DIR X include files are in DIR
600 --x-libraries=DIR X library files are in DIR
602 if test -n "$ac_help"; then
603 echo "--enable and --with options recognized:$ac_help"
607 -host |
--host |
--hos |
--ho)
609 -host=* |
--host=* |
--hos=* |
--ho=*)
612 -includedir |
--includedir |
--includedi |
--included |
--include \
613 |
--includ |
--inclu |
--incl |
--inc)
614 ac_prev
=includedir
;;
615 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
616 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
617 includedir
="$ac_optarg" ;;
619 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
621 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
622 infodir
="$ac_optarg" ;;
624 -libdir |
--libdir |
--libdi |
--libd)
626 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
627 libdir
="$ac_optarg" ;;
629 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
630 |
--libexe |
--libex |
--libe)
631 ac_prev
=libexecdir
;;
632 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
633 |
--libexe=* |
--libex=* |
--libe=*)
634 libexecdir
="$ac_optarg" ;;
636 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
637 |
--localstate |
--localstat |
--localsta |
--localst \
638 |
--locals |
--local |
--loca |
--loc |
--lo)
639 ac_prev
=localstatedir
;;
640 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
641 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
642 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
643 localstatedir
="$ac_optarg" ;;
645 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
647 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
648 mandir
="$ac_optarg" ;;
651 # Obsolete; use --without-fp.
654 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
658 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
659 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
662 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
663 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
664 |
--oldin |
--oldi |
--old |
--ol |
--o)
665 ac_prev
=oldincludedir
;;
666 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
667 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
668 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
669 oldincludedir
="$ac_optarg" ;;
671 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
673 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
674 prefix
="$ac_optarg" ;;
676 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
677 |
--program-pre |
--program-pr |
--program-p)
678 ac_prev
=program_prefix
;;
679 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
680 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
681 program_prefix
="$ac_optarg" ;;
683 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
684 |
--program-suf |
--program-su |
--program-s)
685 ac_prev
=program_suffix
;;
686 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
687 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
688 program_suffix
="$ac_optarg" ;;
690 -program-transform-name |
--program-transform-name \
691 |
--program-transform-nam |
--program-transform-na \
692 |
--program-transform-n |
--program-transform- \
693 |
--program-transform |
--program-transfor \
694 |
--program-transfo |
--program-transf \
695 |
--program-trans |
--program-tran \
696 |
--progr-tra |
--program-tr |
--program-t)
697 ac_prev
=program_transform_name
;;
698 -program-transform-name=* |
--program-transform-name=* \
699 |
--program-transform-nam=* |
--program-transform-na=* \
700 |
--program-transform-n=* |
--program-transform-=* \
701 |
--program-transform=* |
--program-transfor=* \
702 |
--program-transfo=* |
--program-transf=* \
703 |
--program-trans=* |
--program-tran=* \
704 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
705 program_transform_name
="$ac_optarg" ;;
707 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
708 |
-silent |
--silent |
--silen |
--sile |
--sil)
711 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
713 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
715 sbindir
="$ac_optarg" ;;
717 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
718 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
719 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
721 ac_prev
=sharedstatedir
;;
722 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
723 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
724 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
726 sharedstatedir
="$ac_optarg" ;;
728 -site |
--site |
--sit)
730 -site=* |
--site=* |
--sit=*)
733 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
735 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
736 srcdir
="$ac_optarg" ;;
738 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
739 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
740 ac_prev
=sysconfdir
;;
741 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
742 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
743 sysconfdir
="$ac_optarg" ;;
745 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
747 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
748 target
="$ac_optarg" ;;
750 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
753 -version |
--version |
--versio |
--versi |
--vers)
754 echo "configure generated by autoconf version 2.13"
758 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
759 # Reject names that are not valid shell variable names.
760 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
761 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
763 ac_package
=`echo $ac_package| sed 's/-/_/g'`
768 eval "with_${ac_package}='$ac_optarg'" ;;
770 -without-* |
--without-*)
771 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
772 # Reject names that are not valid shell variable names.
773 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
774 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
776 ac_package
=`echo $ac_package| sed 's/-/_/g'`
777 eval "with_${ac_package}=no" ;;
780 # Obsolete; use --with-x.
783 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
784 |
--x-incl |
--x-inc |
--x-in |
--x-i)
785 ac_prev
=x_includes
;;
786 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
787 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
788 x_includes
="$ac_optarg" ;;
790 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
791 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
792 ac_prev
=x_libraries
;;
793 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
794 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
795 x_libraries
="$ac_optarg" ;;
797 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
801 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
802 echo "configure: warning: $ac_option: invalid host type" 1>&2
804 if test "x$nonopt" != xNONE
; then
805 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
813 if test -n "$ac_prev"; then
814 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
817 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
819 # File descriptor usage:
822 # 2 errors and warnings
823 # 3 some systems may open it to /dev/tty
824 # 4 used on the Kubota Titan
825 # 6 checking for... messages and results
826 # 5 compiler messages saved in config.log
827 if test "$silent" = yes; then
835 This file contains any messages produced by compilers while
836 running configure, to aid debugging if configure makes a mistake.
839 # Strip out --no-create and --no-recursion so they do not pile up.
840 # Also quote any args containing shell metacharacters.
845 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
846 |
--no-cr |
--no-c) ;;
847 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
848 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
849 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
850 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
851 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
856 # Only set these to C if already set. These must not be set unconditionally
857 # because not all systems understand e.g. LANG=C (notably SCO).
858 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
859 # Non-C LC_CTYPE values break the ctype check.
860 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
861 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
862 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
863 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
866 rm -rf conftest
* confdefs.h
867 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
870 # A filename unique to this package, relative to the directory that
871 # configure is in, which we can look for to find out if srcdir is correct.
872 ac_unique_file
=agent
/mibgroup
/ucd-snmp
/extensible.c
874 # Find the source files, if location was not specified.
875 if test -z "$srcdir"; then
876 ac_srcdir_defaulted
=yes
877 # Try the directory containing this script, then its parent.
879 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
880 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
882 if test ! -r $srcdir/$ac_unique_file; then
886 ac_srcdir_defaulted
=no
888 if test ! -r $srcdir/$ac_unique_file; then
889 if test "$ac_srcdir_defaulted" = yes; then
890 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
892 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
895 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
897 # Prefer explicitly selected file to automatically selected ones.
898 if test -z "$CONFIG_SITE"; then
899 if test "x$prefix" != xNONE
; then
900 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
902 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
905 for ac_site_file
in $CONFIG_SITE; do
906 if test -r "$ac_site_file"; then
907 echo "loading site script $ac_site_file"
912 if test -r "$cache_file"; then
913 echo "loading cache $cache_file"
916 echo "creating cache $cache_file"
921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
922 ac_cpp
='$CPP $CPPFLAGS'
923 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
924 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
925 cross_compiling
=$ac_cv_prog_cc_cross
929 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
930 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
931 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
938 ac_n
= ac_c
='\c' ac_t
=
944 rm -f configure-summary
947 cat >> confdefs.h
<<EOF
948 #define CONFIGURE_OPTIONS "\"$ac_configure_args\""
951 CONFIGURE_OPTIONS
="\"$ac_configure_args\""
954 # Check whether --with-cc or --without-cc was given.
955 if test "${with_cc+set}" = set; then
957 CC
=$with_cc;export CC
961 # Check whether --with-ar or --without-ar was given.
962 if test "${with_ar+set}" = set; then
964 AR
=$with_ar; export AR
968 # Check whether --with-endianness or --without-endianness was given.
969 if test "${with_endianness+set}" = set; then
970 withval
="$with_endianness"
971 if test $with_endianness != "big" -a $with_endianness != "little" ; then
972 { echo "configure: error: Endianness must be big or little, not \"$with_endianness\"." 1>&2; exit 1; };
978 # Check whether --with-cflags or --without-cflags was given.
979 if test "${with_cflags+set}" = set; then
980 withval
="$with_cflags"
981 CFLAGS
=$with_cflags; export CFLAGS
985 # Check whether --with-ldflags or --without-ldflags was given.
986 if test "${with_ldflags+set}" = set; then
987 withval
="$with_ldflags"
988 LDFLAGS
=$with_ldflags; export LDFLAGS
992 # Check whether --with-libs or --without-libs was given.
993 if test "${with_libs+set}" = set; then
995 LIBS
=$with_libs; export LIBS
999 # Check whether --enable-silent-libtool or --disable-silent-libtool was given.
1000 if test "${enable_silent_libtool+set}" = set; then
1001 enableval
="$enable_silent_libtool"
1002 LIBTOOLFLAGS
=--silent
1007 # Check whether --enable-mini_agent or --disable-mini_agent was given.
1008 if test "${enable_mini_agent+set}" = set; then
1009 enableval
="$enable_mini_agent"
1016 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1017 if test "${enable_ipv6+set}" = set; then
1018 enableval
="$enable_ipv6"
1019 if test "x$enable_ipv6" = "xyes"; then
1020 cat >> confdefs.h
<<\EOF
1028 # Check whether --enable-debugging or --disable-debugging was given.
1029 if test "${enable_debugging+set}" = set; then
1030 enableval
="$enable_debugging"
1031 cat >> confdefs.h
<<\EOF
1032 #define SNMP_ALWAYS_DEBUG 1
1038 # Check whether --enable-developer or --disable-developer was given.
1039 if test "${enable_developer+set}" = set; then
1040 enableval
="$enable_developer"
1045 if test "x$enable_debugging" = "xno"; then
1046 cat >> confdefs.h
<<\EOF
1047 #define SNMP_NO_DEBUGGING 1
1052 # Check whether --with-dmalloc or --without-dmalloc was given.
1053 if test "${with_dmalloc+set}" = set; then
1054 withval
="$with_dmalloc"
1055 if test "x$withval" = "xyes"; then
1056 LIBS
="$LIBS -ldmalloc"
1057 cat >> confdefs.h
<<\EOF
1058 #define HAVE_DMALLOC_H 1
1061 elif test -d "$withval"; then
1063 if test "x$withval" != x
-a -d $withval; then
1064 if test -d $withval/lib
; then
1065 LDFLAGS
="-L$withval/lib $LDFLAGS"
1067 if test -d $withval/include
; then
1068 CPPFLAGS
="-I$withval/include $CPPFLAGS"
1072 LIBS
="$LIBS -ldmalloc"
1073 cat >> confdefs.h
<<\EOF
1074 #define HAVE_DMALLOC_H 1
1083 # Check whether --with-efence or --without-efence was given.
1084 if test "${with_efence+set}" = set; then
1085 withval
="$with_efence"
1086 use_efence
="$withval"
1091 # Check whether --with-rsaref or --without-rsaref was given.
1092 if test "${with_rsaref+set}" = set; then
1093 withval
="$with_rsaref"
1094 if test "x$withval" = "xyes"; then
1096 elif test "x$withval" = "xno"; then
1098 elif test -d "$withval"; then
1100 if test "x$withval" != x
-a -d $withval; then
1101 if test -d $withval/lib
; then
1102 LDFLAGS
="-L$withval/lib $LDFLAGS"
1104 if test -d $withval/include
; then
1105 CPPFLAGS
="-I$withval/include $CPPFLAGS"
1114 tryopenssl
=defaultyes
1116 # Check whether --with-openssl or --without-openssl was given.
1117 if test "${with_openssl+set}" = set; then
1118 withval
="$with_openssl"
1119 if test "x$withval" = "xyes"; then
1122 elif test "x$withval" = "xno"; then
1124 elif test -d "$withval"; then
1126 if test "x$withval" != x
-a -d $withval; then
1127 if test -d $withval/lib
; then
1128 LDFLAGS
="-L$withval/lib $LDFLAGS"
1130 if test -d $withval/include
; then
1131 CPPFLAGS
="-I$withval/include $CPPFLAGS"
1140 if test "x$tryopenssl" = "xdefaultyes"; then
1142 if test "x/usr/local/ssl" != x
-a -d /usr
/local
/ssl
; then
1143 if test -d /usr
/local
/ssl
/lib
; then
1144 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
1146 if test -d /usr
/local
/ssl
/include
; then
1147 CPPFLAGS
="-I/usr/local/ssl/include $CPPFLAGS"
1155 # Check whether --enable-privacy or --disable-privacy was given.
1156 if test "${enable_privacy+set}" = set; then
1157 enableval
="$enable_privacy"
1161 if test "x$enable_privacy" != "xno"; then
1162 cat >> confdefs.h
<<\EOF
1163 #define SCAPI_AUTHPRIV 1
1168 # Check whether --enable-internal-md5 or --disable-internal-md5 was given.
1169 if test "${enable_internal_md5+set}" = set; then
1170 enableval
="$enable_internal_md5"
1171 cat >> confdefs.h
<<\EOF
1172 #define USE_INTERNAL_MD5 1
1179 # Check whether --with-opaque-special-types or --without-opaque-special-types was given.
1180 if test "${with_opaque_special_types+set}" = set; then
1181 withval
="$with_opaque_special_types"
1186 # Check whether --with-mibdirs or --without-mibdirs was given.
1187 if test "${with_mibdirs+set}" = set; then
1188 withval
="$with_mibdirs"
1189 DEFAULT_MIBDIRS
="$with_mibdirs"
1190 cat >> confdefs.h
<<EOF
1191 #define DEFAULT_MIBDIRS "$with_mibdirs"
1197 # Check whether --with-mibs or --without-mibs was given.
1198 if test "${with_mibs+set}" = set; then
1199 withval
="$with_mibs"
1200 DEFAULT_MIBS
="$with_mibs"
1204 # Check whether --with-mibfiles or --without-mibfiles was given.
1205 if test "${with_mibfiles+set}" = set; then
1206 withval
="$with_mibfiles"
1207 cat >> confdefs.h
<<EOF
1208 #define DEFAULT_MIBFILES "$with_mibfiles"
1215 # Check whether --enable-testing-code or --disable-testing-code was given.
1216 if test "${enable_testing_code+set}" = set; then
1217 enableval
="$enable_testing_code"
1218 cat >> confdefs.h
<<\EOF
1219 #define SNMP_TESTING_CODE 1
1225 # Check whether --enable-reentrant or --disable-reentrant was given.
1226 if test "${enable_reentrant+set}" = set; then
1227 enableval
="$enable_reentrant"
1228 with_res_locks
="yes"
1234 # Check whether --with-root-access or --without-root-access was given.
1235 if test "${with_root_access+set}" = set; then
1236 withval
="$with_root_access"
1241 # Check whether --with-kmem-usage or --without-kmem-usage was given.
1242 if test "${with_kmem_usage+set}" = set; then
1243 withval
="$with_kmem_usage"
1248 # Check whether --with-dummy-values or --without-dummy-values was given.
1249 if test "${with_dummy_values+set}" = set; then
1250 withval
="$with_dummy_values"
1255 # Check whether --with-persistent-directory or --without-persistent-directory was given.
1256 if test "${with_persistent_directory+set}" = set; then
1257 withval
="$with_persistent_directory"
1258 ac_cv_user_prompt_PERSISTENT_DIRECTORY
="$with_persistent_directory"
1262 # Check whether --with-copy_persistent_files or --without-copy_persistent_files was given.
1263 if test "${with_copy_persistent_files+set}" = set; then
1264 withval
="$with_copy_persistent_files"
1265 ac_cv_user_prompt_COPY_PERSISTENT_FILES
="$with_copy_persistent_files"
1269 # Check whether --with-default-snmp-version or --without-default-snmp-version was given.
1270 if test "${with_default_snmp_version+set}" = set; then
1271 withval
="$with_default_snmp_version"
1272 ac_cv_user_prompt_DEFAULT_SNMP_VERSION
="$with_default_snmp_version"
1276 if test "x$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "x"; then
1277 if test "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "1" -a "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "2" -a "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "3"; then
1278 { echo "configure: error: Illegal version number passed to --with-default-snmp-version" 1>&2; exit 1; }
1282 # Check whether --with-sys_contact or --without-sys_contact was given.
1283 if test "${with_sys_contact+set}" = set; then
1284 withval
="$with_sys_contact"
1285 ac_cv_user_prompt_SYS_CONTACT
="$with_sys_contact"
1289 # Check whether --with-sys_location or --without-sys_location was given.
1290 if test "${with_sys_location+set}" = set; then
1291 withval
="$with_sys_location"
1292 ac_cv_user_prompt_SYS_LOC
="$with_sys_location"
1296 # Check whether --with-logfile or --without-logfile was given.
1297 if test "${with_logfile+set}" = set; then
1298 withval
="$with_logfile"
1299 ac_cv_user_prompt_LOGFILE
="$with_logfile"
1305 # Check whether --with-transports or --without-transports was given.
1306 if test "${with_transports+set}" = set; then
1307 withval
="$with_transports"
1311 # Check whether --with-out_transports or --without-out_transports was given.
1312 if test "${with_out_transports+set}" = set; then
1313 withval
="$with_out_transports"
1318 # Check whether --with-transport or --without-transport was given.
1319 if test "${with_transport+set}" = set; then
1320 withval
="$with_transport"
1321 { echo "configure: error: Invalid option. Use --with-transports instead " 1>&2; exit 1; }
1324 # Check whether --with-out_transport or --without-out_transport was given.
1325 if test "${with_out_transport+set}" = set; then
1326 withval
="$with_out_transport"
1327 { echo "configure: error: Invalid option. Use --with-out-transports instead " 1>&2; exit 1; }
1332 # Check whether --with-security-modules or --without-security-modules was given.
1333 if test "${with_security_modules+set}" = set; then
1334 withval
="$with_security_modules"
1340 # Check whether --with-mib_modules or --without-mib_modules was given.
1341 if test "${with_mib_modules+set}" = set; then
1342 withval
="$with_mib_modules"
1347 # Check whether --with-out_mib_modules or --without-out_mib_modules was given.
1348 if test "${with_out_mib_modules+set}" = set; then
1349 withval
="$with_out_mib_modules"
1355 # Check whether --with-enterprise-oid or --without-enterprise-oid was given.
1356 if test "${with_enterprise_oid+set}" = set; then
1357 withval
="$with_enterprise_oid"
1359 if test "$withval" = yes; then
1360 { echo "configure: error: Please provide a value for the enterprise number " 1>&2; exit 1; };
1362 cat >> confdefs.h
<<EOF
1363 #define ENTERPRISE_OID $withval
1366 ent_oid
="1,3,6,1,4,1,$withval"
1367 cat >> confdefs.h
<<EOF
1368 #define ENTERPRISE_MIB $ent_oid
1371 ent_dot_oid
="1.3.6.1.4.1.$withval"
1372 cat >> confdefs.h
<<EOF
1373 #define ENTERPRISE_DOT_MIB $ent_dot_oid
1376 echo "$ac_t""using enterprise number $withval" 1>&6
1380 echo "$ac_t""using default "enterprise.net-snmp
"" 1>&6
1385 # Check whether --with-enterprise-sysoid or --without-enterprise-sysoid was given.
1386 if test "${with_enterprise_sysoid+set}" = set; then
1387 withval
="$with_enterprise_sysoid"
1389 if test "$withval" = yes; then
1390 { echo "configure: error: Please provide a base OID value " 1>&2; exit 1; };
1392 sys_oid
=`echo "$withval" | sed 's/^\.//' | sed 's/\./\,/g'`
1393 cat >> confdefs.h
<<EOF
1394 #define SYSTEM_MIB $sys_oid
1397 sys_dot_oid
=`echo "$withval" | sed 's/^\.//'`
1398 cat >> confdefs.h
<<EOF
1399 #define SYSTEM_DOT_MIB $sys_dot_oid
1402 sysoid_len
=`echo "$withval" | sed 's/^\.//g' | awk -F\. '{ print NF }'`
1403 cat >> confdefs.h
<<EOF
1404 #define SYSTEM_DOT_MIB_LENGTH $sysoid_len
1407 echo "$ac_t""using enterprise sysOID $withval ...." 1>&6
1411 echo "$ac_t""using default enterprise sysOID "NET-SNMP-MIB
::netSnmpAgentOIDs...
"" 1>&6
1416 # Check whether --with-enterprise-notification-oid or --without-enterprise-notification-oid was given.
1417 if test "${with_enterprise_notification_oid+set}" = set; then
1418 withval
="$with_enterprise_notification_oid"
1420 if test "$withval" = yes; then
1421 { echo "configure: error: Please provide a base OID value " 1>&2; exit 1; };
1423 notification_oid
=`echo "$withval" | sed 's/^\.//' | sed 's/\./\,/g'`
1424 cat >> confdefs.h
<<EOF
1425 #define NOTIFICATION_MIB $notification_oid
1428 notification_dot_oid
=`echo "$withval" | sed 's/^\.//'`
1429 cat >> confdefs.h
<<EOF
1430 #define NOTIFICATION_DOT_MIB $notification_dot_oid
1433 notificationoid_len
=`echo "$withval" | sed 's/^\.//g' | awk -F\. '{ print NF }'`
1434 cat >> confdefs.h
<<EOF
1435 #define NOTIFICATION_DOT_MIB_LENGTH $notificationoid_len
1438 echo "$ac_t""using enterprise notifications $withval" 1>&6
1442 echo "$ac_t""using default notifications "NET-SNMP-MIB
::netSnmpNotifications
"" 1>&6
1446 # Check whether --with-mib_module or --without-mib_module was given.
1447 if test "${with_mib_module+set}" = set; then
1448 withval
="$with_mib_module"
1449 { echo "configure: error: Invalid option. Use --with-mib-modules instead " 1>&2; exit 1; }
1452 # Check whether --with-out_mib_module or --without-out_mib_module was given.
1453 if test "${with_out_mib_module+set}" = set; then
1454 withval
="$with_out_mib_module"
1455 { echo "configure: error: Invalid option. Use --with-out-mib-modules instead " 1>&2; exit 1; }
1459 # Check whether --with-perl-modules or --without-perl-modules was given.
1460 if test "${with_perl_modules+set}" = set; then
1461 withval
="$with_perl_modules"
1464 if test "$withval" = yes; then
1473 # Check whether --enable-embedded-perl or --disable-embedded-perl was given.
1474 if test "${enable_embedded_perl+set}" = set; then
1475 enableval
="$enable_embedded_perl"
1482 # Check whether --with-defaults or --without-defaults was given.
1483 if test "${with_defaults+set}" = set; then
1484 withval
="$with_defaults"
1491 # Check whether --enable-ucd-snmp-compatibility or --disable-ucd-snmp-compatibility was given.
1492 if test "${enable_ucd_snmp_compatibility+set}" = set; then
1493 enableval
="$enable_ucd_snmp_compatibility"
1499 if test "x$ucd_compat" != "xno" ; then
1500 installucdheaders
=installucdheaders
1501 installucdlibs
=installucdlibs
1503 cat >> configure-summary
<< EOF
1504 UCD-SNMP compatability: enabled
1511 if test "x$with_root_access" = "xno"; then
1512 cat >> confdefs.h
<<\EOF
1513 #define NO_ROOT_ACCESS 1
1518 if test "x$with_kmem_usage" = "xno"; then
1519 cat >> confdefs.h
<<\EOF
1520 #define NO_KMEM_USAGE 1
1525 if test "x$with_dummy_values" != "xyes"; then
1526 cat >> confdefs.h
<<\EOF
1527 #define NO_DUMMY_VALUES 1
1532 if test "x$with_opaque_special_types" != "xno"; then
1533 cat >> confdefs.h
<<\EOF
1534 #define OPAQUE_SPECIAL_TYPES 1
1541 echo $ac_n "checking if I need to feed myself to ksh""... $ac_c" 1>&6
1542 echo "configure:1543: checking if I need to feed myself to ksh" >&5
1543 if test -f /hp-ux
-a -f /bin
/ksh
; then
1544 if (PATH
=.
; alias -x) >/dev
/null
2>&1; then
1545 echo "$ac_t""no" 1>&6
1547 echo "$ac_t""yes" 1>&6
1548 if test "x$1" = "x"; then
1551 exec /bin
/ksh
$0 "$@"
1555 echo "$ac_t""no" 1>&6
1558 if test "x$developer" != "xno" -a -f $srcdir/remove-files
; then
1562 if test "x$developer" = "xyes"; then
1563 if test "${enable_shared+set}" != set; then
1568 if test "x$embed_perl" = "xyes"; then
1569 if test "x$enable_shared" != "xyes"; then
1570 { echo "configure: error: --enable-embedded-perl requires --enable-shared" 1>&2; exit 1; }
1574 # Extract the first word of "gcc", so it can be a program name with args.
1575 set dummy gcc
; ac_word
=$2
1576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1577 echo "configure:1578: checking for $ac_word" >&5
1578 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1581 if test -n "$CC"; then
1582 ac_cv_prog_CC
="$CC" # Let the user override the test.
1584 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1586 for ac_dir
in $ac_dummy; do
1587 test -z "$ac_dir" && ac_dir
=.
1588 if test -f $ac_dir/$ac_word; then
1597 if test -n "$CC"; then
1598 echo "$ac_t""$CC" 1>&6
1600 echo "$ac_t""no" 1>&6
1603 if test -z "$CC"; then
1604 # Extract the first word of "cc", so it can be a program name with args.
1605 set dummy cc
; ac_word
=$2
1606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1607 echo "configure:1608: checking for $ac_word" >&5
1608 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC
="$CC" # Let the user override the test.
1614 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1617 for ac_dir
in $ac_dummy; do
1618 test -z "$ac_dir" && ac_dir
=.
1619 if test -f $ac_dir/$ac_word; then
1620 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1621 ac_prog_rejected
=yes
1629 if test $ac_prog_rejected = yes; then
1630 # We found a bogon in the path, so make sure we never use it.
1631 set dummy
$ac_cv_prog_CC
1633 if test $# -gt 0; then
1634 # We chose a different compiler from the bogus one.
1635 # However, it has the same basename, so the bogon will be chosen
1636 # first if we set CC to just the basename; use the full file name.
1638 set dummy
"$ac_dir/$ac_word" "$@"
1646 if test -n "$CC"; then
1647 echo "$ac_t""$CC" 1>&6
1649 echo "$ac_t""no" 1>&6
1652 if test -z "$CC"; then
1653 case "`uname -s`" in
1655 # Extract the first word of "cl", so it can be a program name with args.
1656 set dummy cl
; ac_word
=$2
1657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1658 echo "configure:1659: checking for $ac_word" >&5
1659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC
="$CC" # Let the user override the test.
1665 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1667 for ac_dir
in $ac_dummy; do
1668 test -z "$ac_dir" && ac_dir
=.
1669 if test -f $ac_dir/$ac_word; then
1678 if test -n "$CC"; then
1679 echo "$ac_t""$CC" 1>&6
1681 echo "$ac_t""no" 1>&6
1686 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1689 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1690 echo "configure:1691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1694 ac_cpp
='$CPP $CPPFLAGS'
1695 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1696 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1697 cross_compiling
=$ac_cv_prog_cc_cross
1699 cat > conftest.
$ac_ext << EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1706 if { (eval echo configure
:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1707 ac_cv_prog_cc_works
=yes
1708 # If we can't run a trivial program, we are probably using a cross compiler.
1709 if (.
/conftest
; exit) 2>/dev
/null
; then
1710 ac_cv_prog_cc_cross
=no
1712 ac_cv_prog_cc_cross
=yes
1715 echo "configure: failed program was:" >&5
1716 cat conftest.
$ac_ext >&5
1717 ac_cv_prog_cc_works
=no
1721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1722 ac_cpp
='$CPP $CPPFLAGS'
1723 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1724 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1725 cross_compiling
=$ac_cv_prog_cc_cross
1727 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1728 if test $ac_cv_prog_cc_works = no
; then
1729 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1731 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1732 echo "configure:1733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1733 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1734 cross_compiling
=$ac_cv_prog_cc_cross
1736 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1737 echo "configure:1738: checking whether we are using GNU C" >&5
1738 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 cat > conftest.c
<<EOF
1746 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1753 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1755 if test $ac_cv_prog_gcc = yes; then
1761 ac_test_CFLAGS
="${CFLAGS+set}"
1762 ac_save_CFLAGS
="$CFLAGS"
1764 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1765 echo "configure:1766: checking whether ${CC-cc} accepts -g" >&5
1766 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 echo 'void f(){}' > conftest.c
1770 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1779 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1780 if test "$ac_test_CFLAGS" = set; then
1781 CFLAGS
="$ac_save_CFLAGS"
1782 elif test $ac_cv_prog_cc_g = yes; then
1783 if test "$GCC" = yes; then
1789 if test "$GCC" = yes; then
1796 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1797 echo "configure:1798: checking how to run the C preprocessor" >&5
1798 # On Suns, sometimes $CPP names a directory.
1799 if test -n "$CPP" && test -d "$CPP"; then
1802 if test -z "$CPP"; then
1803 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 # This must be in double quotes, not single quotes, because CPP may get
1807 # substituted into the Makefile and "${CC-cc}" will confuse make.
1809 # On the NeXT, cc -E runs the code through the compiler's parser,
1810 # not just through cpp.
1811 cat > conftest.
$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1817 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1818 { (eval echo configure
:1819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1819 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1820 if test -z "$ac_err"; then
1824 echo "configure: failed program was:" >&5
1825 cat conftest.
$ac_ext >&5
1827 CPP
="${CC-cc} -E -traditional-cpp"
1828 cat > conftest.
$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1834 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1835 { (eval echo configure
:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1836 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1837 if test -z "$ac_err"; then
1841 echo "configure: failed program was:" >&5
1842 cat conftest.
$ac_ext >&5
1844 CPP
="${CC-cc} -nologo -E"
1845 cat > conftest.
$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1851 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure
:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1858 echo "configure: failed program was:" >&5
1859 cat conftest.
$ac_ext >&5
1868 ac_cv_prog_CPP
="$CPP"
1870 CPP
="$ac_cv_prog_CPP"
1872 ac_cv_prog_CPP
="$CPP"
1874 echo "$ac_t""$CPP" 1>&6
1876 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1877 echo "configure:1878: checking for AIX" >&5
1878 cat > conftest.
$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1887 egrep "yes" >/dev
/null
2>&1; then
1889 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1890 #define _ALL_SOURCE 1
1895 echo "$ac_t""no" 1>&6
1900 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1901 echo "configure:1902: checking for Cygwin environment" >&5
1902 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 cat > conftest.
$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1912 #define __CYGWIN__ __CYGWIN32__
1917 if { (eval echo configure
:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1921 echo "configure: failed program was:" >&5
1922 cat conftest.
$ac_ext >&5
1930 echo "$ac_t""$ac_cv_cygwin" 1>&6
1932 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1933 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1934 echo "configure:1935: checking for mingw32 environment" >&5
1935 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1938 cat > conftest.
$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1946 if { (eval echo configure
:1947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1950 echo "configure: failed program was:" >&5
1951 cat conftest.
$ac_ext >&5
1959 echo "$ac_t""$ac_cv_mingw32" 1>&6
1961 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1964 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1965 echo "configure:1966: checking for executable suffix" >&5
1966 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1969 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1973 echo 'int main () { return 0; }' > conftest.
$ac_ext
1975 if { (eval echo configure
:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1976 for file in conftest.
*; do
1978 *.c |
*.o |
*.obj
) ;;
1979 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1983 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1986 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1991 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1992 echo "$ac_t""${ac_cv_exeext}" 1>&6
1999 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2000 if test -f $ac_dir/install-sh
; then
2002 ac_install_sh
="$ac_aux_dir/install-sh -c"
2004 elif test -f $ac_dir/install.sh
; then
2006 ac_install_sh
="$ac_aux_dir/install.sh -c"
2010 if test -z "$ac_aux_dir"; then
2011 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
2013 ac_config_guess
=$ac_aux_dir/config.guess
2014 ac_config_sub
=$ac_aux_dir/config.sub
2015 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
2017 # Find the correct PATH separator. Usually this is `:', but
2018 # DJGPP uses `;' like DOS.
2019 if test "X${PATH_SEPARATOR+set}" != Xset
; then
2020 UNAME
=${UNAME-`uname 2>/dev/null`}
2022 *-DOS) lt_cv_sys_path_separator
=';' ;;
2023 *) lt_cv_sys_path_separator
=':' ;;
2025 PATH_SEPARATOR
=$lt_cv_sys_path_separator
2028 # Check whether --enable-shared or --disable-shared was given.
2029 if test "${enable_shared+set}" = set; then
2030 enableval
="$enable_shared"
2031 p
=${PACKAGE-default}
2033 yes) enable_shared
=yes ;;
2034 no
) enable_shared
=no
;;
2037 # Look at the argument we got. We use all the common list separators.
2038 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2039 for pkg
in $enableval; do
2040 if test "X$pkg" = "X$p"; then
2051 # Check whether --enable-static or --disable-static was given.
2052 if test "${enable_static+set}" = set; then
2053 enableval
="$enable_static"
2054 p
=${PACKAGE-default}
2056 yes) enable_static
=yes ;;
2057 no
) enable_static
=no
;;
2060 # Look at the argument we got. We use all the common list separators.
2061 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2062 for pkg
in $enableval; do
2063 if test "X$pkg" = "X$p"; then
2074 # Check whether --enable-fast-install or --disable-fast-install was given.
2075 if test "${enable_fast_install+set}" = set; then
2076 enableval
="$enable_fast_install"
2077 p
=${PACKAGE-default}
2079 yes) enable_fast_install
=yes ;;
2080 no
) enable_fast_install
=no
;;
2082 enable_fast_install
=no
2083 # Look at the argument we got. We use all the common list separators.
2084 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2085 for pkg
in $enableval; do
2086 if test "X$pkg" = "X$p"; then
2087 enable_fast_install
=yes
2094 enable_fast_install
=yes
2098 # Make sure we can run config.sub.
2099 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
2100 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2103 echo $ac_n "checking host system type""... $ac_c" 1>&6
2104 echo "configure:2105: checking host system type" >&5
2107 case "$host_alias" in
2111 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2112 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2114 *) host_alias
=$nonopt ;;
2118 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2119 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2120 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2121 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2122 echo "$ac_t""$host" 1>&6
2124 echo $ac_n "checking build system type""... $ac_c" 1>&6
2125 echo "configure:2126: checking build system type" >&5
2128 case "$build_alias" in
2131 NONE
) build_alias
=$host_alias ;;
2132 *) build_alias
=$nonopt ;;
2136 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
2137 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2138 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2139 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2140 echo "$ac_t""$build" 1>&6
2142 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2143 if test "${with_gnu_ld+set}" = set; then
2144 withval
="$with_gnu_ld"
2145 test "$withval" = no || with_gnu_ld
=yes
2151 if test "$GCC" = yes; then
2152 # Check if gcc -print-prog-name=ld gives a path.
2153 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2154 echo "configure:2155: checking for ld used by GCC" >&5
2157 # gcc leaves a trailing carriage return which upsets mingw
2158 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2160 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
2163 # Accept absolute paths.
2164 [\\/]* |
[A-Za-z
]:[\\/]*)
2165 re_direlt
='/[^/][^/]*/\.\./'
2166 # Canonicalize the path of ld
2167 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
2168 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
2169 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
2171 test -z "$LD" && LD
="$ac_prog"
2174 # If it fails, then pretend we aren't using GCC.
2178 # If it is relative, then search for the first ld in PATH.
2182 elif test "$with_gnu_ld" = yes; then
2183 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2184 echo "configure:2185: checking for GNU ld" >&5
2186 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2187 echo "configure:2188: checking for non-GNU ld" >&5
2189 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 if test -z "$LD"; then
2193 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
2194 for ac_dir
in $PATH; do
2195 test -z "$ac_dir" && ac_dir
=.
2196 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
2197 lt_cv_path_LD
="$ac_dir/$ac_prog"
2198 # Check to see if the program is GNU ld. I'd rather use --version,
2199 # but apparently some GNU ld's only accept -v.
2200 # Break only if it was the GNU/non-GNU ld that we prefer.
2201 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
2202 test "$with_gnu_ld" != no
&& break
2204 test "$with_gnu_ld" != yes && break
2210 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
2215 if test -n "$LD"; then
2216 echo "$ac_t""$LD" 1>&6
2218 echo "$ac_t""no" 1>&6
2220 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2221 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2222 echo "configure:2223: checking if the linker ($LD) is GNU ld" >&5
2223 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2227 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
2228 lt_cv_prog_gnu_ld
=yes
2230 lt_cv_prog_gnu_ld
=no
2234 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
2235 with_gnu_ld
=$lt_cv_prog_gnu_ld
2238 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
2239 echo "configure:2240: checking for $LD option to reload object files" >&5
2240 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 lt_cv_ld_reload_flag
='-r'
2246 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
2247 reload_flag
=$lt_cv_ld_reload_flag
2248 test -n "$reload_flag" && reload_flag
=" $reload_flag"
2250 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2251 echo "configure:2252: checking for BSD-compatible nm" >&5
2252 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 if test -n "$NM"; then
2256 # Let the user override the test.
2259 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
2260 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
2261 test -z "$ac_dir" && ac_dir
=.
2262 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
2263 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
2264 # Check to see if the nm accepts a BSD-compat flag.
2265 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2266 # nm: unknown option "B" ignored
2267 # Tru64's nm complains that /dev/null is an invalid object file
2268 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
2269 lt_cv_path_NM
="$tmp_nm -B"
2271 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
2272 lt_cv_path_NM
="$tmp_nm -p"
2275 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2276 continue # so that we can try to find one that supports BSD flags
2281 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
2286 echo "$ac_t""$NM" 1>&6
2288 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
2289 echo "configure:2290: checking for a sed that does not truncate output" >&5
2290 if eval "test \"`echo '$''{'lt_cv_path_SED'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2293 # Loop through the user's path and test for sed and gsed.
2294 # Then use that list of sed's as ones to test for truncation.
2295 as_executable_p
="test -f"
2296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir
=.
2301 for ac_prog
in sed gsed
; do
2302 for ac_exec_ext
in '' $ac_executable_extensions; do
2303 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2304 _sed_list
="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
2310 # Create a temporary directory, and hook for its removal unless debugging.
2313 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2314 trap '{ (exit 1); exit 1; }' 1 2 13 15
2317 # Create a (secure) tmp directory for tmp files.
2320 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
2321 test -n "$tmp" && test -d "$tmp"
2324 tmp
=$TMPDIR/sed$$
-$RANDOM
2325 (umask 077 && mkdir
$tmp)
2328 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2329 { (exit 1); exit 1; }
2333 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2334 # along with /bin/sed that truncates output.
2335 for _sed
in $_sed_list /usr
/xpg
4/bin
/sed; do
2336 test ! -f ${_sed} && break
2337 cat /dev
/null
> "$tmp/sed.in"
2339 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
2340 # Check for GNU sed and select it if it is found.
2341 if "${_sed}" --version 2>&1 < /dev
/null |
egrep '(GNU)' > /dev
/null
; then
2342 lt_cv_path_SED
=${_sed}
2346 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
2347 mv "$tmp/sed.tmp" "$tmp/sed.in"
2348 cp "$tmp/sed.in" "$tmp/sed.nl"
2349 echo >>"$tmp/sed.nl"
2350 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" ||
break
2351 cmp -s "$tmp/sed.out" "$tmp/sed.nl" ||
break
2352 # 40000 chars as input seems more than enough
2353 test $_count -gt 10 && break
2354 _count
=`expr $_count + 1`
2355 if test $_count -gt $_max; then
2357 lt_cv_path_SED
=$_sed
2365 if test "X$SED" != "X"; then
2370 echo "$ac_t""$SED" 1>&6
2372 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2373 echo "configure:2374: checking whether ln -s works" >&5
2374 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2378 if ln -s X conftestdata
2>/dev
/null
2381 ac_cv_prog_LN_S
="ln -s"
2386 LN_S
="$ac_cv_prog_LN_S"
2387 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2388 echo "$ac_t""yes" 1>&6
2390 echo "$ac_t""no" 1>&6
2393 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
2394 echo "configure:2395: checking how to recognise dependent libraries" >&5
2395 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 lt_cv_file_magic_cmd
='$MAGIC_CMD'
2399 lt_cv_file_magic_test_file
=
2400 lt_cv_deplibs_check_method
='unknown'
2401 # Need to set the preceding variable on all platforms that support
2402 # interlibrary dependencies.
2403 # 'none' -- dependencies not supported.
2404 # `unknown' -- same as none, but documents that we really don't know.
2405 # 'pass_all' -- all dependencies passed with no checks.
2406 # 'test_compile' -- check by making test program.
2407 # 'file_magic [[regex]]' -- check by looking for files in library path
2408 # which responds to the $file_magic_cmd with a given egrep regex.
2409 # If you have `file' or equivalent on your system and you're not sure
2410 # whether `pass_all' will *always* work, you probably want this one.
2414 lt_cv_deplibs_check_method
=pass_all
2418 lt_cv_deplibs_check_method
=pass_all
2422 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2423 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2424 lt_cv_file_magic_test_file
=/shlib
/libc.so
2427 cygwin
* | mingw
* | pw32
*)
2428 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
2429 lt_cv_file_magic_cmd
='$OBJDUMP -f'
2432 darwin
* | rhapsody
*)
2433 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
2434 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2436 rhapsody
* | darwin1.
[012])
2437 lt_cv_file_magic_test_file
=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2440 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
2446 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2449 # Not sure whether the presence of OpenBSD here was a mistake.
2450 # Let's accept both of them until this is cleared up.
2451 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2452 lt_cv_file_magic_cmd
=/usr
/bin
/file
2453 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
2457 lt_cv_deplibs_check_method
=pass_all
2462 lt_cv_deplibs_check_method
=pass_all
2466 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2467 lt_cv_file_magic_cmd
=/usr
/bin
/file
2468 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
2471 irix5
* | irix6
* | nonstopux
*)
2473 irix5
* | nonstopux
*)
2474 # this will be overridden with pass_all, but let us keep it just in case
2475 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2479 *-32|
*"-32 ") libmagic
=32-bit;;
2480 *-n32|
*"-n32 ") libmagic
=N32
;;
2481 *-64|
*"-64 ") libmagic
=64-bit;;
2482 *) libmagic
=never-match
;;
2484 # this will be overridden with pass_all, but let us keep it just in case
2485 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2488 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
2489 lt_cv_deplibs_check_method
=pass_all
2492 # This must be Linux ELF.
2495 alpha
* | hppa
* | i
*86 | mips | mipsel | powerpc
* | sparc
* | ia64
*)
2496 lt_cv_deplibs_check_method
=pass_all
;;
2498 # glibc up to 2.1.1 does not perform some relocations on ARM
2499 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2501 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
2505 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2506 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2508 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
2513 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2514 lt_cv_file_magic_cmd
=/usr
/bin
/file
2515 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
2519 lt_cv_file_magic_cmd
=/usr
/bin
/file
2520 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
2521 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2522 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2524 lt_cv_deplibs_check_method
='file_magic OpenBSD.* shared library'
2528 osf3
* | osf4
* | osf5
*)
2529 # this will be overridden with pass_all, but let us keep it just in case
2530 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
2531 lt_cv_file_magic_test_file
=/shlib
/libc.so
2532 lt_cv_deplibs_check_method
=pass_all
2536 lt_cv_deplibs_check_method
=pass_all
2540 lt_cv_deplibs_check_method
=pass_all
2541 lt_cv_file_magic_test_file
=/lib
/libc.so
2544 sysv5uw
[78]* | sysv4
*uw2
*)
2545 lt_cv_deplibs_check_method
=pass_all
2548 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
2549 case $host_vendor in
2551 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2552 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2555 lt_cv_deplibs_check_method
=pass_all
2558 lt_cv_file_magic_cmd
='/bin/file'
2559 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2562 lt_cv_file_magic_cmd
='/bin/file'
2563 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2564 lt_cv_file_magic_test_file
=/lib
/libc.so
2567 lt_cv_deplibs_check_method
=pass_all
2575 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2576 file_magic_cmd
=$lt_cv_file_magic_cmd
2577 deplibs_check_method
=$lt_cv_deplibs_check_method
2579 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2580 echo "configure:2581: checking for object suffix" >&5
2581 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2585 echo 'int i = 1;' > conftest.
$ac_ext
2586 if { (eval echo configure
:2587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2587 for ac_file
in conftest.
*; do
2590 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
2594 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2599 echo "$ac_t""$ac_cv_objext" 1>&6
2600 OBJEXT
=$ac_cv_objext
2601 ac_objext
=$ac_cv_objext
2603 if test $host != $build; then
2604 ac_tool_prefix
=${host_alias}-
2612 # Check for command to grab the raw symbol name followed by C symbol from nm.
2613 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2614 echo "configure:2615: checking command to parse $NM output" >&5
2615 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2619 # These are sane defaults that work on at least a few old systems.
2620 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2622 # Character class describing NM global symbol codes.
2623 symcode
='[BCDEGRST]'
2625 # Regexp to match symbols that can be accessed directly from C.
2626 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
2628 # Transform the above into a raw symbol and a C symbol.
2629 symxfrm
='\1 \2\3 \3'
2631 # Transform an extracted symbol line into a proper C declaration
2632 lt_cv_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2634 # Transform an extracted symbol line into symbol name and symbol address
2635 lt_cv_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2637 # Define system-specific variables.
2642 cygwin
* | mingw
* | pw32
*)
2643 symcode
='[ABCDGISTW]'
2645 hpux
*) # Its linker distinguishes data from code symbols
2646 lt_cv_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2647 lt_cv_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2650 symcode
='[BCDEGRST]'
2653 symcode
='[BCDEGQRST]'
2663 # Handle CRLF in mingw tool chain
2667 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2671 # If we're using GNU nm, then use its standard symbol codes.
2672 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
2673 symcode
='[ABCDGISTW]'
2676 # Try without a prefix undercore, then with it.
2677 for ac_symprfx
in "" "_"; do
2679 # Write the raw and C identifiers.
2680 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2682 # Check to see that the pipe works correctly.
2685 cat > conftest.
$ac_ext <<EOF
2690 void nm_test_func(){}
2694 int main(){nm_test_var='a';nm_test_func();return(0);}
2697 if { (eval echo configure
:2698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2698 # Now try to grab the symbols.
2700 if { (eval echo configure
:2701: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5; } && test -s "$nlist"; then
2701 # Try sorting and uniquifying the output.
2702 if sort "$nlist" |
uniq > "$nlist"T
; then
2703 mv -f "$nlist"T
"$nlist"
2708 # Make sure that we snagged all the symbols we need.
2709 if egrep ' nm_test_var$' "$nlist" >/dev
/null
; then
2710 if egrep ' nm_test_func$' "$nlist" >/dev
/null
; then
2711 cat <<EOF > conftest.$ac_ext
2717 # Now generate the symbol file.
2718 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2720 cat <<EOF >> conftest.$ac_ext
2721 #if defined (__STDC__) && __STDC__
2722 # define lt_ptr void *
2724 # define lt_ptr char *
2728 /* The mapping between symbol names and symbols. */
2733 lt_preloaded_symbols[] =
2736 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.
$ac_ext
2737 cat <<\EOF
>> conftest.
$ac_ext
2745 # Now try linking the two files.
2746 mv conftest.
$ac_objext conftstm.
$ac_objext
2748 save_CFLAGS
="$CFLAGS"
2749 LIBS
="conftstm.$ac_objext"
2750 CFLAGS
="$CFLAGS$no_builtin_flag"
2751 if { (eval echo configure
:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
$ac_exeext; then
2755 CFLAGS
="$save_CFLAGS"
2757 echo "cannot find nm_test_func in $nlist" >&5
2760 echo "cannot find nm_test_var in $nlist" >&5
2763 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2766 echo "$progname: failed program was:" >&5
2767 cat conftest.
$ac_ext >&5
2769 rm -f conftest
* conftst
*
2771 # Do not use the global_symbol_pipe unless it works.
2772 if test "$pipe_works" = yes; then
2775 lt_cv_sys_global_symbol_pipe
=
2781 global_symbol_pipe
="$lt_cv_sys_global_symbol_pipe"
2782 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2783 global_symbol_to_cdecl
=
2784 global_symbol_to_c_name_address
=
2786 global_symbol_to_cdecl
="$lt_cv_global_symbol_to_cdecl"
2787 global_symbol_to_c_name_address
="$lt_cv_global_symbol_to_c_name_address"
2789 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2791 echo "$ac_t""failed" 1>&6
2793 echo "$ac_t""ok" 1>&6
2796 for ac_hdr
in dlfcn.h
2798 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2800 echo "configure:2801: checking for $ac_hdr" >&5
2801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2809 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2810 { (eval echo configure
:2811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2811 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2812 if test -z "$ac_err"; then
2814 eval "ac_cv_header_$ac_safe=yes"
2817 echo "configure: failed program was:" >&5
2818 cat conftest.
$ac_ext >&5
2820 eval "ac_cv_header_$ac_safe=no"
2824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2827 cat >> confdefs.h
<<EOF
2828 #define $ac_tr_hdr 1
2832 echo "$ac_t""no" 1>&6
2841 # Only perform the check for file, if the check method requires it
2842 case $deplibs_check_method in
2844 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2845 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2846 echo "configure:2847: checking for ${ac_tool_prefix}file" >&5
2847 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2852 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2855 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2858 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2859 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2860 ac_dummy
="/usr/bin:$PATH"
2861 for ac_dir
in $ac_dummy; do
2862 test -z "$ac_dir" && ac_dir
=.
2863 if test -f $ac_dir/${ac_tool_prefix}file; then
2864 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
2865 if test -n "$file_magic_test_file"; then
2866 case $deplibs_check_method in
2868 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2869 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2870 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2871 egrep "$file_magic_regex" > /dev
/null
; then
2876 *** Warning: the command libtool uses to detect shared libraries,
2877 *** $file_magic_cmd, produces output that libtool cannot recognize.
2878 *** The result is that libtool may fail to recognize shared libraries
2879 *** as such. This will affect the creation of libtool libraries that
2880 *** depend on shared libraries, but programs linked with such libtool
2881 *** libraries will work regardless of this problem. Nevertheless, you
2882 *** may want to report the problem to your system manager and/or to
2883 *** bug-libtool@gnu.org
2893 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2898 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2899 if test -n "$MAGIC_CMD"; then
2900 echo "$ac_t""$MAGIC_CMD" 1>&6
2902 echo "$ac_t""no" 1>&6
2905 if test -z "$lt_cv_path_MAGIC_CMD"; then
2906 if test -n "$ac_tool_prefix"; then
2907 echo $ac_n "checking for file""... $ac_c" 1>&6
2908 echo "configure:2909: checking for file" >&5
2909 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2914 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2917 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2920 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2921 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2922 ac_dummy
="/usr/bin:$PATH"
2923 for ac_dir
in $ac_dummy; do
2924 test -z "$ac_dir" && ac_dir
=.
2925 if test -f $ac_dir/file; then
2926 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2927 if test -n "$file_magic_test_file"; then
2928 case $deplibs_check_method in
2930 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2931 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2932 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2933 egrep "$file_magic_regex" > /dev
/null
; then
2938 *** Warning: the command libtool uses to detect shared libraries,
2939 *** $file_magic_cmd, produces output that libtool cannot recognize.
2940 *** The result is that libtool may fail to recognize shared libraries
2941 *** as such. This will affect the creation of libtool libraries that
2942 *** depend on shared libraries, but programs linked with such libtool
2943 *** libraries will work regardless of this problem. Nevertheless, you
2944 *** may want to report the problem to your system manager and/or to
2945 *** bug-libtool@gnu.org
2955 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2960 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2961 if test -n "$MAGIC_CMD"; then
2962 echo "$ac_t""$MAGIC_CMD" 1>&6
2964 echo "$ac_t""no" 1>&6
2976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2977 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2979 echo "configure:2980: checking for $ac_word" >&5
2980 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 if test -n "$RANLIB"; then
2984 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2986 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2988 for ac_dir
in $ac_dummy; do
2989 test -z "$ac_dir" && ac_dir
=.
2990 if test -f $ac_dir/$ac_word; then
2991 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2998 RANLIB
="$ac_cv_prog_RANLIB"
2999 if test -n "$RANLIB"; then
3000 echo "$ac_t""$RANLIB" 1>&6
3002 echo "$ac_t""no" 1>&6
3006 if test -z "$ac_cv_prog_RANLIB"; then
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "ranlib", so it can be a program name with args.
3009 set dummy ranlib
; ac_word
=$2
3010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3011 echo "configure:3012: checking for $ac_word" >&5
3012 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 if test -n "$RANLIB"; then
3016 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3018 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3020 for ac_dir
in $ac_dummy; do
3021 test -z "$ac_dir" && ac_dir
=.
3022 if test -f $ac_dir/$ac_word; then
3023 ac_cv_prog_RANLIB
="ranlib"
3028 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3031 RANLIB
="$ac_cv_prog_RANLIB"
3032 if test -n "$RANLIB"; then
3033 echo "$ac_t""$RANLIB" 1>&6
3035 echo "$ac_t""no" 1>&6
3043 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3044 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3046 echo "configure:3047: checking for $ac_word" >&5
3047 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 if test -n "$STRIP"; then
3051 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3053 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3055 for ac_dir
in $ac_dummy; do
3056 test -z "$ac_dir" && ac_dir
=.
3057 if test -f $ac_dir/$ac_word; then
3058 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3065 STRIP
="$ac_cv_prog_STRIP"
3066 if test -n "$STRIP"; then
3067 echo "$ac_t""$STRIP" 1>&6
3069 echo "$ac_t""no" 1>&6
3073 if test -z "$ac_cv_prog_STRIP"; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "strip", so it can be a program name with args.
3076 set dummy strip
; ac_word
=$2
3077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_word" >&5
3079 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 if test -n "$STRIP"; then
3083 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3085 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3087 for ac_dir
in $ac_dummy; do
3088 test -z "$ac_dir" && ac_dir
=.
3089 if test -f $ac_dir/$ac_word; then
3090 ac_cv_prog_STRIP
="strip"
3095 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
3098 STRIP
="$ac_cv_prog_STRIP"
3099 if test -n "$STRIP"; then
3100 echo "$ac_t""$STRIP" 1>&6
3102 echo "$ac_t""no" 1>&6
3112 enable_win32_dll
=yes
3114 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3115 if test "${enable_libtool_lock+set}" = set; then
3116 enableval
="$enable_libtool_lock"
3120 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
3122 # Some flags need to be propagated to the compiler or linker for good
3126 # Find out which ABI we are using.
3127 echo '#line 3128 "configure"' > conftest.
$ac_ext
3128 if { (eval echo configure
:3129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3129 case `/usr/bin/file conftest.$ac_objext` in
3145 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3146 SAVE_CFLAGS
="$CFLAGS"
3147 CFLAGS
="$CFLAGS -belf"
3148 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3149 echo "configure:3150: checking whether the C compiler needs -belf" >&5
3150 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3156 ac_cpp
='$CPP $CPPFLAGS'
3157 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3158 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3159 cross_compiling
=$ac_cv_prog_cc_cross
3161 cat > conftest.
$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3169 if { (eval echo configure
:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3171 lt_cv_cc_needs_belf
=yes
3173 echo "configure: failed program was:" >&5
3174 cat conftest.
$ac_ext >&5
3176 lt_cv_cc_needs_belf
=no
3180 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3181 ac_cpp
='$CPP $CPPFLAGS'
3182 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3183 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3184 cross_compiling
=$ac_cv_prog_cc_cross
3188 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3189 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
3190 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3191 CFLAGS
="$SAVE_CFLAGS"
3195 *-*-cygwin* |
*-*-mingw* |
*-*-pw32*)
3196 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3197 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_word" >&5
3200 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 if test -n "$DLLTOOL"; then
3204 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3206 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3208 for ac_dir
in $ac_dummy; do
3209 test -z "$ac_dir" && ac_dir
=.
3210 if test -f $ac_dir/$ac_word; then
3211 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3218 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3219 if test -n "$DLLTOOL"; then
3220 echo "$ac_t""$DLLTOOL" 1>&6
3222 echo "$ac_t""no" 1>&6
3226 if test -z "$ac_cv_prog_DLLTOOL"; then
3227 if test -n "$ac_tool_prefix"; then
3228 # Extract the first word of "dlltool", so it can be a program name with args.
3229 set dummy dlltool
; ac_word
=$2
3230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3231 echo "configure:3232: checking for $ac_word" >&5
3232 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 if test -n "$DLLTOOL"; then
3236 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3238 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3240 for ac_dir
in $ac_dummy; do
3241 test -z "$ac_dir" && ac_dir
=.
3242 if test -f $ac_dir/$ac_word; then
3243 ac_cv_prog_DLLTOOL
="dlltool"
3248 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
3251 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3252 if test -n "$DLLTOOL"; then
3253 echo "$ac_t""$DLLTOOL" 1>&6
3255 echo "$ac_t""no" 1>&6
3263 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3264 set dummy
${ac_tool_prefix}as
; ac_word
=$2
3265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_word" >&5
3267 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 if test -n "$AS"; then
3271 ac_cv_prog_AS
="$AS" # Let the user override the test.
3273 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3275 for ac_dir
in $ac_dummy; do
3276 test -z "$ac_dir" && ac_dir
=.
3277 if test -f $ac_dir/$ac_word; then
3278 ac_cv_prog_AS
="${ac_tool_prefix}as"
3286 if test -n "$AS"; then
3287 echo "$ac_t""$AS" 1>&6
3289 echo "$ac_t""no" 1>&6
3293 if test -z "$ac_cv_prog_AS"; then
3294 if test -n "$ac_tool_prefix"; then
3295 # Extract the first word of "as", so it can be a program name with args.
3296 set dummy as
; ac_word
=$2
3297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3298 echo "configure:3299: checking for $ac_word" >&5
3299 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 if test -n "$AS"; then
3303 ac_cv_prog_AS
="$AS" # Let the user override the test.
3305 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3307 for ac_dir
in $ac_dummy; do
3308 test -z "$ac_dir" && ac_dir
=.
3309 if test -f $ac_dir/$ac_word; then
3315 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
3319 if test -n "$AS"; then
3320 echo "$ac_t""$AS" 1>&6
3322 echo "$ac_t""no" 1>&6
3330 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3331 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
3332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_word" >&5
3334 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 if test -n "$OBJDUMP"; then
3338 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
3340 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3342 for ac_dir
in $ac_dummy; do
3343 test -z "$ac_dir" && ac_dir
=.
3344 if test -f $ac_dir/$ac_word; then
3345 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
3352 OBJDUMP
="$ac_cv_prog_OBJDUMP"
3353 if test -n "$OBJDUMP"; then
3354 echo "$ac_t""$OBJDUMP" 1>&6
3356 echo "$ac_t""no" 1>&6
3360 if test -z "$ac_cv_prog_OBJDUMP"; then
3361 if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "objdump", so it can be a program name with args.
3363 set dummy objdump
; ac_word
=$2
3364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3365 echo "configure:3366: checking for $ac_word" >&5
3366 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 if test -n "$OBJDUMP"; then
3370 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
3372 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3374 for ac_dir
in $ac_dummy; do
3375 test -z "$ac_dir" && ac_dir
=.
3376 if test -f $ac_dir/$ac_word; then
3377 ac_cv_prog_OBJDUMP
="objdump"
3382 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP
="false"
3385 OBJDUMP
="$ac_cv_prog_OBJDUMP"
3386 if test -n "$OBJDUMP"; then
3387 echo "$ac_t""$OBJDUMP" 1>&6
3389 echo "$ac_t""no" 1>&6
3398 # recent cygwin and mingw systems supply a stub DllMain which the user
3399 # can override, but on older systems we have to supply one
3400 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
3401 echo "configure:3402: checking if libtool should supply DllMain function" >&5
3402 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.
$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3410 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
3414 if { (eval echo configure
:3415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3416 lt_cv_need_dllmain
=no
3418 echo "configure: failed program was:" >&5
3419 cat conftest.
$ac_ext >&5
3421 lt_cv_need_dllmain
=yes
3426 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
3429 *-*-cygwin*/gcc
*-mno-cygwin*|
*-*-mingw*)
3430 # old mingw systems require "-dll" to link a DLL, while more recent ones
3432 SAVE_CFLAGS
="$CFLAGS"
3433 CFLAGS
="$CFLAGS -mdll"
3434 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
3435 echo "configure:3436: checking how to link DLLs" >&5
3436 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3439 cat > conftest.
$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3447 if { (eval echo configure
:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3449 lt_cv_cc_dll_switch
=-mdll
3451 echo "configure: failed program was:" >&5
3452 cat conftest.
$ac_ext >&5
3454 lt_cv_cc_dll_switch
=-dll
3459 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
3460 CFLAGS
="$SAVE_CFLAGS" ;;
3461 *-*-cygwin* |
*-*-pw32*)
3462 # cygwin systems need to pass --dll to the linker, and not link
3463 # crt.o which will require a WinMain@16 definition.
3464 lt_cv_cc_dll_switch
="-Wl,--dll -nostartfiles" ;;
3470 # Sed substitution that helps us do robust quoting. It backslashifies
3471 # metacharacters that are still active within double-quoted strings.
3472 Xsed
='sed -e s/^X//'
3473 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
3475 # Same as above, but do not quote variable references.
3476 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
3478 # Sed substitution to delay expansion of an escaped shell variable in a
3479 # double_quote_subst'ed string.
3480 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
3486 default_ofile
=libtool
3487 can_build_shared
=yes
3489 # All known linkers require a `.a' archive for static linking (except M$VC,
3490 # which needs '.lib').
3492 ltmain
="$ac_aux_dir/ltmain.sh"
3493 ofile
="$default_ofile"
3494 with_gnu_ld
="$lt_cv_prog_gnu_ld"
3495 need_locks
="$enable_libtool_lock"
3498 old_CFLAGS
="$CFLAGS"
3500 # Set sane defaults for various variables
3501 test -z "$AR" && AR
=ar
3502 test -z "$AR_FLAGS" && AR_FLAGS
=cru
3503 test -z "$AS" && AS
=as
3504 test -z "$CC" && CC
=cc
3505 test -z "$DLLTOOL" && DLLTOOL
=dlltool
3506 test -z "$LD" && LD
=ld
3507 test -z "$LN_S" && LN_S
="ln -s"
3508 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
3509 test -z "$NM" && NM
=nm
3510 test -z "$OBJDUMP" && OBJDUMP
=objdump
3511 test -z "$RANLIB" && RANLIB
=:
3512 test -z "$STRIP" && STRIP
=:
3513 test -z "$ac_objext" && ac_objext
=o
3515 if test x
"$host" != x
"$build"; then
3516 ac_tool_prefix
=${host_alias}-
3521 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3524 linux
*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3529 # AIX sometimes has problems with the GCC collect2 program. For some
3530 # reason, if we set the COLLECT_NAMES environment variable, the problems
3531 # vanish in a puff of smoke.
3532 if test "X${COLLECT_NAMES+set}" != Xset
; then
3534 export COLLECT_NAMES
3539 # Determine commands to create old-style static archives.
3540 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3541 old_postinstall_cmds
='chmod 644 $oldlib'
3542 old_postuninstall_cmds
=
3544 if test -n "$RANLIB"; then
3547 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3550 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
3553 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
3556 # Allow CC to be a program name with arguments.
3560 ## FIXME: this should be a separate macro
3562 echo $ac_n "checking for objdir""... $ac_c" 1>&6
3563 echo "configure:3564: checking for objdir" >&5
3564 rm -f .libs
2>/dev
/null
3565 mkdir .libs
2>/dev
/null
3566 if test -d .libs
; then
3569 # MS-DOS does not allow filenames that begin with a dot.
3572 rmdir .libs
2>/dev
/null
3573 echo "$ac_t""$objdir" 1>&6
3578 ## FIXME: this should be a separate macro
3580 # Check whether --with-pic or --without-pic was given.
3581 if test "${with_pic+set}" = set; then
3588 test -z "$pic_mode" && pic_mode
=default
3590 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3591 # in isolation, and that seeing it set (from the cache) indicates that
3592 # the associated values are set (in the cache) correctly too.
3593 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $compiler option to produce PIC" >&5
3595 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3599 lt_cv_prog_cc_shlib
=
3601 lt_cv_prog_cc_static
=
3602 lt_cv_prog_cc_no_builtin
=
3603 lt_cv_prog_cc_can_build_shared
=$can_build_shared
3605 if test "$GCC" = yes; then
3606 lt_cv_prog_cc_wl
='-Wl,'
3607 lt_cv_prog_cc_static
='-static'
3611 # Below there is a dirty hack to force normal static linking with -ldl
3612 # The problem is because libdl dynamically linked with both libc and
3613 # libC (AIX C++ library), which obviously doesn't included in libraries
3614 # list by gcc. This cause undefined symbols with -static flags.
3615 # This hack allows C programs to be linked with "-static -ldl", but
3616 # not sure about C++ programs.
3617 lt_cv_prog_cc_static
="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3620 # FIXME: we need at least 68020 code to build shared libraries, but
3621 # adding the `-m68020' flag to GCC prevents building anything better,
3623 lt_cv_prog_cc_pic
='-m68020 -resident32 -malways-restore-a4'
3625 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
3626 # PIC is the default for these OSes.
3628 darwin
* | rhapsody
*)
3629 # PIC is the default on this platform
3630 # Common symbols not allowed in MH_DYLIB files
3631 lt_cv_prog_cc_pic
='-fno-common'
3633 cygwin
* | mingw
* | pw32
* | os2
*)
3634 # This hack is so that the source file can tell whether it is being
3635 # built for inclusion in a dll (and should export symbols for example).
3636 lt_cv_prog_cc_pic
='-DDLL_EXPORT'
3639 if test -d /usr
/nec
; then
3640 lt_cv_prog_cc_pic
=-Kconform_pic
3644 lt_cv_prog_cc_pic
='-fPIC'
3648 # PORTME Check for PIC flags for the system compiler.
3650 aix3
* | aix4
* | aix5
*)
3651 lt_cv_prog_cc_wl
='-Wl,'
3652 # All AIX code is PIC.
3653 if test "$host_cpu" = ia64
; then
3654 # AIX 5 now supports IA64 processor
3655 lt_cv_prog_cc_static
='-Bstatic'
3657 lt_cv_prog_cc_static
='-bnso -bI:/lib/syscalls.exp'
3661 hpux9
* | hpux10
* | hpux11
*)
3662 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3663 lt_cv_prog_cc_wl
='-Wl,'
3664 lt_cv_prog_cc_static
="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3665 lt_cv_prog_cc_pic
='+Z'
3668 irix5
* | irix6
* | nonstopux
*)
3669 lt_cv_prog_cc_wl
='-Wl,'
3670 lt_cv_prog_cc_static
='-non_shared'
3671 # PIC (with -KPIC) is the default.
3674 cygwin
* | mingw
* | pw32
* | os2
*)
3675 # This hack is so that the source file can tell whether it is being
3676 # built for inclusion in a dll (and should export symbols for example).
3677 lt_cv_prog_cc_pic
='-DDLL_EXPORT'
3681 lt_cv_prog_cc_pic
='-KPIC'
3682 lt_cv_prog_cc_static
='-Bstatic'
3685 osf3
* | osf4
* | osf5
*)
3686 # All OSF/1 code is PIC.
3687 lt_cv_prog_cc_wl
='-Wl,'
3688 lt_cv_prog_cc_static
='-non_shared'
3692 lt_cv_prog_cc_pic
='-Kpic'
3693 lt_cv_prog_cc_static
='-dn'
3694 lt_cv_prog_cc_shlib
='-belf'
3698 lt_cv_prog_cc_pic
='-KPIC'
3699 lt_cv_prog_cc_static
='-Bstatic'
3700 lt_cv_prog_cc_wl
='-Wl,'
3704 lt_cv_prog_cc_pic
='-PIC'
3705 lt_cv_prog_cc_static
='-Bstatic'
3706 lt_cv_prog_cc_wl
='-Qoption ld '
3709 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
3710 lt_cv_prog_cc_pic
='-KPIC'
3711 lt_cv_prog_cc_static
='-Bstatic'
3712 lt_cv_prog_cc_wl
='-Wl,'
3716 lt_cv_prog_cc_pic
='-pic'
3717 lt_cv_prog_cc_static
='-Bstatic'
3721 if test -d /usr
/nec
;then
3722 lt_cv_prog_cc_pic
='-Kconform_pic'
3723 lt_cv_prog_cc_static
='-Bstatic'
3728 lt_cv_prog_cc_can_build_shared
=no
3735 if test -z "$lt_cv_prog_cc_pic"; then
3736 echo "$ac_t""none" 1>&6
3738 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
3740 # Check to make sure the pic_flag actually works.
3741 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
3742 echo "configure:3743: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3743 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3746 save_CFLAGS
="$CFLAGS"
3747 CFLAGS
="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3748 cat > conftest.
$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3756 if { (eval echo configure
:3757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3759 hpux9
* | hpux10
* | hpux11
*)
3760 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3761 # they create non-PIC objects. So, if there were any warnings, we
3762 # assume that PIC is not supported.
3763 if test -s conftest.err
; then
3764 lt_cv_prog_cc_pic_works
=no
3766 lt_cv_prog_cc_pic_works
=yes
3770 lt_cv_prog_cc_pic_works
=yes
3775 echo "configure: failed program was:" >&5
3776 cat conftest.
$ac_ext >&5
3778 lt_cv_prog_cc_pic_works
=no
3782 CFLAGS
="$save_CFLAGS"
3787 if test "X$lt_cv_prog_cc_pic_works" = Xno
; then
3789 lt_cv_prog_cc_can_build_shared
=no
3791 lt_cv_prog_cc_pic
=" $lt_cv_prog_cc_pic"
3794 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
3799 # Check for any special shared library compilation flags.
3800 if test -n "$lt_cv_prog_cc_shlib"; then
3801 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
3802 if echo "$old_CC $old_CFLAGS " |
egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev
/null
; then :
3804 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
3805 lt_cv_prog_cc_can_build_shared
=no
3809 ## FIXME: this should be a separate macro
3811 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
3812 echo "configure:3813: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3813 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3816 lt_cv_prog_cc_static_works
=no
3817 save_LDFLAGS
="$LDFLAGS"
3818 LDFLAGS
="$LDFLAGS $lt_cv_prog_cc_static"
3819 cat > conftest.
$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3827 if { (eval echo configure
:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3829 lt_cv_prog_cc_static_works
=yes
3831 echo "configure: failed program was:" >&5
3832 cat conftest.
$ac_ext >&5
3835 LDFLAGS
="$save_LDFLAGS"
3840 # Belt *and* braces to stop my trousers falling down:
3841 test "X$lt_cv_prog_cc_static_works" = Xno
&& lt_cv_prog_cc_static
=
3842 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
3844 pic_flag
="$lt_cv_prog_cc_pic"
3845 special_shlib_compile_flags
="$lt_cv_prog_cc_shlib"
3846 wl
="$lt_cv_prog_cc_wl"
3847 link_static_flag
="$lt_cv_prog_cc_static"
3848 no_builtin_flag
="$lt_cv_prog_cc_no_builtin"
3849 can_build_shared
="$lt_cv_prog_cc_can_build_shared"
3854 ## FIXME: this should be a separate macro
3856 # Check to see if options -o and -c are simultaneously supported by compiler
3857 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3858 echo "configure:3859: checking if $compiler supports -c -o file.$ac_objext" >&5
3859 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3863 $rm -r conftest
2>/dev
/null
3866 echo "int some_variable = 0;" > conftest.
$ac_ext
3868 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3869 # that will create temporary files in the current directory regardless of
3870 # the output directory. Thus, making CWD read-only will cause this test
3871 # to fail, enabling locking or at least warning the user not to do parallel
3874 save_CFLAGS
="$CFLAGS"
3875 CFLAGS
="$CFLAGS -o out/conftest2.$ac_objext"
3877 if { (eval echo configure
:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out
/conftest.err
; } && test -s out
/conftest2.
$ac_objext; then
3878 # The compiler can only warn and ignore the option if not recognized
3879 # So say no if there are warnings
3880 if test -s out
/conftest.err
; then
3881 lt_cv_compiler_c_o
=no
3883 lt_cv_compiler_c_o
=yes
3886 # Append any errors to the config.log.
3887 cat out
/conftest.err
1>&5
3888 lt_cv_compiler_c_o
=no
3890 CFLAGS
="$save_CFLAGS"
3896 $rm -r conftest
2>/dev
/null
3900 compiler_c_o
=$lt_cv_compiler_c_o
3901 echo "$ac_t""$compiler_c_o" 1>&6
3903 if test x
"$compiler_c_o" = x
"yes"; then
3904 # Check to see if we can write to a .lo
3905 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3906 echo "configure:3907: checking if $compiler supports -c -o file.lo" >&5
3907 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3911 lt_cv_compiler_o_lo
=no
3912 save_CFLAGS
="$CFLAGS"
3913 CFLAGS
="$CFLAGS -c -o conftest.lo"
3914 save_objext
="$ac_objext"
3916 cat > conftest.
$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3921 int some_variable = 0;
3924 if { (eval echo configure
:3925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3926 # The compiler can only warn and ignore the option if not recognized
3927 # So say no if there are warnings
3928 if test -s conftest.err
; then
3929 lt_cv_compiler_o_lo
=no
3931 lt_cv_compiler_o_lo
=yes
3935 echo "configure: failed program was:" >&5
3936 cat conftest.
$ac_ext >&5
3939 ac_objext
="$save_objext"
3940 CFLAGS
="$save_CFLAGS"
3944 compiler_o_lo
=$lt_cv_compiler_o_lo
3945 echo "$ac_t""$compiler_o_lo" 1>&6
3952 ## FIXME: this should be a separate macro
3954 # Check to see if we can do hard links to lock some files if needed
3955 hard_links
="nottested"
3956 if test "$compiler_c_o" = no
&& test "$need_locks" != no
; then
3957 # do not overwrite the value of need_locks provided by the user
3958 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3959 echo "configure:3960: checking if we can lock with hard links" >&5
3962 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
3964 ln conftest.a conftest.b
2>&5 || hard_links
=no
3965 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
3966 echo "$ac_t""$hard_links" 1>&6
3967 if test "$hard_links" = no
; then
3968 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3977 ## FIXME: this should be a separate macro
3979 if test "$GCC" = yes; then
3980 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3981 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3982 echo "configure:3983: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3983 echo "int some_variable = 0;" > conftest.
$ac_ext
3984 save_CFLAGS
="$CFLAGS"
3985 CFLAGS
="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3986 compiler_rtti_exceptions
=no
3987 cat > conftest.
$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3992 int some_variable = 0;
3995 if { (eval echo configure
:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3997 # The compiler can only warn and ignore the option if not recognized
3998 # So say no if there are warnings
3999 if test -s conftest.err
; then
4000 compiler_rtti_exceptions
=no
4002 compiler_rtti_exceptions
=yes
4006 echo "configure: failed program was:" >&5
4007 cat conftest.
$ac_ext >&5
4010 CFLAGS
="$save_CFLAGS"
4011 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
4013 if test "$compiler_rtti_exceptions" = "yes"; then
4014 no_builtin_flag
=' -fno-builtin -fno-rtti -fno-exceptions'
4016 no_builtin_flag
=' -fno-builtin'
4022 ## FIXME: this should be a separate macro
4024 # See if the linker supports building shared libraries.
4025 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
4026 echo "configure:4027: checking whether the linker ($LD) supports shared libraries" >&5
4028 allow_undefined_flag
=
4030 need_lib_prefix
=unknown
4031 need_version
=unknown
4032 # when you set need_version to no, make sure it does not cause -set_version
4033 # flags to be left without arguments
4035 archive_expsym_cmds
=
4036 old_archive_from_new_cmds
=
4037 old_archive_from_expsyms_cmds
=
4038 export_dynamic_flag_spec
=
4039 whole_archive_flag_spec
=
4040 thread_safe_flag_spec
=
4041 hardcode_into_libs
=no
4042 hardcode_libdir_flag_spec
=
4043 hardcode_libdir_separator
=
4046 hardcode_shlibpath_var
=unsupported
4048 link_all_deplibs
=unknown
4049 always_export_symbols
=no
4050 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4051 # include_expsyms should be a list of space-separated symbols to be *always*
4052 # included in the symbol list
4054 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4055 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4056 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4057 # as well as any symbol that contains `d'.
4058 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
4059 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4060 # platforms (ab)use it in PIC code, but their linkers get confused if
4061 # the symbol is explicitly referenced. Since portable code cannot
4062 # rely on this symbol name, it's probably fine to never include it in
4063 # preloaded symbol tables.
4064 extract_expsyms_cmds
=
4067 cygwin
* | mingw
* | pw32
*)
4068 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4069 # When not using gcc, we currently assume that we are using
4070 # Microsoft Visual C++.
4071 if test "$GCC" != yes; then
4081 if test "$with_gnu_ld" = yes; then
4082 # If archive_cmds runs LD, not CC, wlarc should be empty
4085 # See if GNU ld supports shared libraries.
4087 aix3
* | aix4
* | aix5
*)
4088 # On AIX, the GNU linker is very broken
4089 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4093 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4094 *** to be unable to reliably create shared libraries on AIX.
4095 *** Therefore, libtool is disabling shared libraries support. If you
4096 *** really care for shared libraries, you may want to modify your PATH
4097 *** so that a non-GNU linker is found, and then restart.
4103 archive_cmds
='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4104 hardcode_libdir_flag_spec
='-L$libdir'
4105 hardcode_minus_L
=yes
4107 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4108 # that the semantics of dynamic libraries on AmigaOS, at least up
4109 # to version 4, is to share data among multiple programs linked
4110 # with the same dynamic library. Since this doesn't match the
4111 # behavior of shared libraries on other platforms, we can use
4117 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
4118 allow_undefined_flag
=unsupported
4119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4120 # support --undefined. This deserves some investigation. FIXME
4121 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4127 cygwin
* | mingw
* | pw32
*)
4128 # hardcode_libdir_flag_spec is actually meaningless, as there is
4129 # no search path for DLLs.
4130 hardcode_libdir_flag_spec
='-L$libdir'
4131 allow_undefined_flag
=unsupported
4132 always_export_symbols
=yes
4134 extract_expsyms_cmds
='test -f $output_objdir/impgen.c || \
4135 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4136 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4137 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4138 else $CC -o impgen impgen.c ; fi)~
4139 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4141 old_archive_from_expsyms_cmds
='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4143 # cygwin and mingw dlls have different entry points and sets of symbols
4145 # FIXME: what about values for MSVC?
4146 dll_entry
=__cygwin_dll_entry@
12
4147 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12~
4151 dll_entry
=_DllMainCRTStartup@
12
4152 dll_exclude_symbols
=DllMain@
12,DllMainCRTStartup@
12,DllEntryPoint@
12~
4156 # mingw and cygwin differ, and it's simplest to just exclude the union
4157 # of the two symbol sets.
4158 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12,DllMainCRTStartup@
12,DllEntryPoint@
12
4160 # recent cygwin and mingw systems supply a stub DllMain which the user
4161 # can override, but on older systems we have to supply one (in ltdll.c)
4162 if test "x$lt_cv_need_dllmain" = "xyes"; then
4163 ltdll_obj
='$output_objdir/$soname-ltdll.'"$ac_objext "
4164 ltdll_cmds
='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
4165 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4171 # Extract the symbol export list from an `--export-all' def file,
4172 # then regenerate the def file from the symbol export list, so that
4173 # the compiled dll only exports the symbol export list.
4174 # Be careful not to strip the DATA tag left be newer dlltools.
4175 export_symbols_cmds
="$ltdll_cmds"'
4176 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4177 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4179 # If the export-symbols file already is a .def file (1st line
4180 # is EXPORTS), use it as is.
4181 # If DATA tags from a recent dlltool are present, honour them!
4182 archive_expsym_cmds
='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
4183 cp $export_symbols $output_objdir/$soname-def;
4185 echo EXPORTS > $output_objdir/$soname-def;
4187 cat $export_symbols | while read symbol; do
4190 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4191 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
4192 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4194 _lt_hint=`expr 1 + \$_lt_hint`;
4198 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4199 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4200 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4201 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4202 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4206 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
4207 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4210 archive_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4211 archive_expsym_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4216 if $LD -v 2>&1 |
egrep 'BFD 2\.8' > /dev
/null
; then
4220 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4221 *** create shared libraries on Solaris systems. Therefore, libtool
4222 *** is disabling shared libraries support. We urge you to upgrade GNU
4223 *** binutils to release 2.9.1 or newer. Another option is to modify
4224 *** your PATH or compiler configuration so that the native linker is
4225 *** used, and then restart.
4228 elif $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
4229 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4230 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4237 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4240 hardcode_shlibpath_var
=no
4244 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
4245 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4246 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4253 if test "$ld_shlibs" = yes; then
4254 runpath_var
=LD_RUN_PATH
4255 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
4256 export_dynamic_flag_spec
='${wl}--export-dynamic'
4258 cygwin
* | mingw
* | pw32
*)
4259 # dlltool doesn't understand --whole-archive et. al.
4260 whole_archive_flag_spec
=
4263 # ancient GNU ld didn't support --whole-archive et. al.
4264 if $LD --help 2>&1 |
egrep 'no-whole-archive' > /dev
/null
; then
4265 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4267 whole_archive_flag_spec
=
4273 # PORTME fill in a description of your system's linker (not GNU ld)
4276 allow_undefined_flag
=unsupported
4277 always_export_symbols
=yes
4278 archive_expsym_cmds
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4279 # Note: this linker hardcodes the directories in LIBPATH if there
4280 # are no directories specified by -L.
4281 hardcode_minus_L
=yes
4282 if test "$GCC" = yes && test -z "$link_static_flag"; then
4283 # Neither direct hardcoding nor static linking is supported with a
4285 hardcode_direct
=unsupported
4290 if test "$host_cpu" = ia64
; then
4291 # On IA64, the linker does run time linking by default, so we don't
4292 # have to do anything special.
4293 aix_use_runtimelinking
=no
4294 exp_sym_flag
='-Bexport'
4297 aix_use_runtimelinking
=no
4299 # Test if we are trying to use run time linking or normal
4300 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4301 # need to do runtime linking.
4302 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
4303 for ld_flag
in $LDFLAGS; do
4306 aix_use_runtimelinking
=yes
4313 exp_sym_flag
='-bexport'
4314 no_entry_flag
='-bnoentry'
4317 # When large executables or shared objects are built, AIX ld can
4318 # have problems creating the table of contents. If linking a library
4319 # or program results in "error TOC overflow" add -mminimal-toc to
4320 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4321 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4325 hardcode_libdir_separator
=':'
4326 if test "$GCC" = yes; then
4327 case $host_os in aix4.
[012]|aix4.
[012].
*)
4328 collect2name
=`${CC} -print-prog-name=collect2`
4329 if test -f "$collect2name" && \
4330 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
4332 # We have reworked collect2
4335 # We have old collect2
4336 hardcode_direct
=unsupported
4337 # It fails to find uninstalled libraries when the uninstalled
4338 # path is not listed in the libpath. Setting hardcode_minus_L
4339 # to unsupported forces relinking
4340 hardcode_minus_L
=yes
4341 hardcode_libdir_flag_spec
='-L$libdir'
4342 hardcode_libdir_separator
=
4346 shared_flag
='-shared'
4349 if test "$host_cpu" = ia64
; then
4350 shared_flag
='${wl}-G'
4352 if test "$aix_use_runtimelinking" = yes; then
4353 shared_flag
='${wl}-G'
4355 shared_flag
='${wl}-bM:SRE'
4360 # It seems that -bexpall can do strange things, so it is better to
4361 # generate a list of symbols to export.
4362 always_export_symbols
=yes
4363 if test "$aix_use_runtimelinking" = yes; then
4364 # Warning - without using the other runtime loading flags (-brtl),
4365 # -berok will link without error, but may produce a broken library.
4366 allow_undefined_flag
='-berok'
4367 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:/usr/lib:/lib'
4368 archive_expsym_cmds
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4370 if test "$host_cpu" = ia64; then
4371 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
4372 allow_undefined_flag="-z nodefs"
4373 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
4375 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4376 # Warning - without using the other run time loading flags,
4377 # -berok will link without error, but may produce a broken library.
4378 allow_undefined_flag='${wl}-berok'
4379 # This is a bit strange, but is similar to how AIX traditionally builds
4380 # it's shared libraries.
4381 archive_expsym_cmds="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4387 archive_cmds
='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4388 hardcode_libdir_flag_spec
='-L$libdir'
4389 hardcode_minus_L
=yes
4390 # see comment about different semantics on the GNU ld section
4394 cygwin
* | mingw
* | pw32
*)
4395 # When not using gcc, we currently assume that we are using
4396 # Microsoft Visual C++.
4397 # hardcode_libdir_flag_spec is actually meaningless, as there is
4398 # no search path for DLLs.
4399 hardcode_libdir_flag_spec
=' '
4400 allow_undefined_flag
=unsupported
4401 # Tell ltmain to make .lib files, not .a files.
4403 # FIXME: Setting linknames here is a bad hack.
4404 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4405 # The linker will automatically build a .lib file if we build a DLL.
4406 old_archive_from_new_cmds
='true'
4407 # FIXME: Should let the user specify the lib program.
4408 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
4409 fix_srcfile_path
='`cygpath -w "$srcfile"`'
4412 darwin
* | rhapsody
*)
4414 rhapsody
* | darwin1.
[012])
4415 allow_undefined_flag
='-undefined suppress'
4418 allow_undefined_flag
='-flat_namespace -undefined suppress'
4421 # FIXME: Relying on posixy $() will cause problems for
4422 # cross-compilation, but unfortunately the echo tests do not
4423 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
4424 # `"' quotes if we put them in here... so don't!
4425 archive_cmds
='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
4426 # We need to add '_' to the symbols in $export_symbols first
4427 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4429 hardcode_shlibpath_var
=no
4430 whole_archive_flag_spec
='-all_load $convenience'
4437 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4438 # support. Future versions do this automatically, but an explicit c++rt0.o
4439 # does not break anything, and helps significantly (at the cost of a little
4442 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4443 hardcode_libdir_flag_spec
='-R$libdir'
4445 hardcode_shlibpath_var
=no
4448 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4450 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4452 hardcode_minus_L
=yes
4453 hardcode_shlibpath_var
=no
4456 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4458 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4459 hardcode_libdir_flag_spec
='-R$libdir'
4461 hardcode_shlibpath_var
=no
4464 hpux9
* | hpux10
* | hpux11
*)
4466 hpux9
*) archive_cmds
='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4467 *) archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4469 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
4470 hardcode_libdir_separator
=:
4472 hardcode_minus_L
=yes # Not in the search PATH, but as the default
4473 # location of the library.
4474 export_dynamic_flag_spec
='${wl}-E'
4477 irix5
* | irix6
* | nonstopux
*)
4478 if test "$GCC" = yes; then
4479 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4480 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
4482 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4483 hardcode_libdir_flag_spec
='-rpath $libdir'
4485 hardcode_libdir_separator
=:
4486 link_all_deplibs
=yes
4490 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
4491 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4493 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4495 hardcode_libdir_flag_spec
='-R$libdir'
4497 hardcode_shlibpath_var
=no
4501 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4503 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
4504 hardcode_libdir_separator
=:
4505 hardcode_shlibpath_var
=no
4510 hardcode_shlibpath_var
=no
4511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4512 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4513 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
4514 export_dynamic_flag_spec
='${wl}-E'
4517 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
4518 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4519 hardcode_libdir_flag_spec
='-R$libdir'
4522 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4523 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
4530 hardcode_libdir_flag_spec
='-L$libdir'
4531 hardcode_minus_L
=yes
4532 allow_undefined_flag
=unsupported
4533 archive_cmds
='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4534 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4538 if test "$GCC" = yes; then
4539 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
4540 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4542 allow_undefined_flag
=' -expect_unresolved \*'
4543 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4545 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
4546 hardcode_libdir_separator
=:
4549 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
4550 if test "$GCC" = yes; then
4551 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
4552 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4553 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
4555 allow_undefined_flag
=' -expect_unresolved \*'
4556 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4557 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4558 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4560 #Both c and cxx compiler support -rpath directly
4561 hardcode_libdir_flag_spec
='-rpath $libdir'
4563 hardcode_libdir_separator
=:
4567 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4568 hardcode_shlibpath_var
=no
4569 runpath_var
=LD_RUN_PATH
4570 hardcode_runpath_var
=yes
4571 export_dynamic_flag_spec
='${wl}-Bexport'
4575 # gcc --version < 3.0 without binutils cannot create self contained
4576 # shared libraries reliably, requiring libgcc.a to resolve some of
4577 # the object symbols generated in some cases. Libraries that use
4578 # assert need libgcc.a to resolve __eprintf, for example. Linking
4579 # a copy of libgcc.a into every shared library to guarantee resolving
4580 # such symbols causes other problems: According to Tim Van Holder
4581 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4582 # (to the application) exception stack for one thing.
4583 no_undefined_flag
=' -z defs'
4584 if test "$GCC" = yes; then
4585 case `$CC --version 2>/dev/null` in
4589 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4590 *** create self contained shared libraries on Solaris systems, without
4591 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
4592 *** -no-undefined support, which will at least allow you to build shared
4593 *** libraries. However, you may find that when you link such libraries
4594 *** into an application without using GCC, you have to manually add
4595 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
4596 *** upgrade to a newer version of GCC. Another option is to rebuild your
4597 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4604 # $CC -shared without GNU ld will not create a library from C++
4605 # object files and a static libstdc++, better avoid it by now
4606 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4607 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4608 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4609 hardcode_libdir_flag_spec
='-R$libdir'
4610 hardcode_shlibpath_var
=no
4612 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
4613 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4614 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
4616 link_all_deplibs
=yes
4620 if test "x$host_vendor" = xsequent
; then
4621 # Use $CC to link under sequent, because it throws in some extra .o
4622 # files that make .init and .fini sections work.
4623 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4625 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4627 hardcode_libdir_flag_spec
='-L$libdir'
4629 hardcode_minus_L
=yes
4630 hardcode_shlibpath_var
=no
4634 case $host_vendor in
4636 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4637 hardcode_direct
=yes # is this really true???
4640 ## LD is ld it makes a PLAMLIB
4641 ## CC just makes a GrossModule.
4642 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4643 reload_cmds
='$CC -r -o $output$reload_objs'
4647 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4648 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
4651 runpath_var
='LD_RUN_PATH'
4652 hardcode_shlibpath_var
=no
4656 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4657 hardcode_shlibpath_var
=no
4658 export_dynamic_flag_spec
='-Bexport'
4662 no_undefined_flag
=' -z text'
4663 # $CC -shared without GNU ld will not create a library from C++
4664 # object files and a static libstdc++, better avoid it by now
4665 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4666 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4667 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4668 hardcode_libdir_flag_spec
=
4669 hardcode_shlibpath_var
=no
4670 runpath_var
='LD_RUN_PATH'
4674 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4675 hardcode_libdir_flag_spec
='-L$libdir'
4676 hardcode_shlibpath_var
=no
4680 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4681 hardcode_libdir_flag_spec
='-L$libdir'
4682 hardcode_shlibpath_var
=no
4686 if test -d /usr
/nec
; then
4687 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4688 hardcode_shlibpath_var
=no
4689 runpath_var
=LD_RUN_PATH
4690 hardcode_runpath_var
=yes
4696 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4699 hardcode_shlibpath_var
=no
4700 hardcode_runpath_var
=yes
4701 runpath_var
=LD_RUN_PATH
4704 sysv5uw7
* | unixware7
*)
4705 no_undefined_flag
='${wl}-z ${wl}text'
4706 if test "$GCC" = yes; then
4707 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4709 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4711 runpath_var
='LD_RUN_PATH'
4712 hardcode_shlibpath_var
=no
4720 echo "$ac_t""$ld_shlibs" 1>&6
4721 test "$ld_shlibs" = no
&& can_build_shared
=no
4725 ## FIXME: this should be a separate macro
4727 # Check hardcoding attributes.
4728 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
4729 echo "configure:4730: checking how to hardcode library paths into programs" >&5
4731 if test -n "$hardcode_libdir_flag_spec" || \
4732 test -n "$runpath_var"; then
4734 # We can hardcode non-existant directories.
4735 if test "$hardcode_direct" != no
&&
4736 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4737 # have to relink, otherwise we might link with an installed library
4738 # when we should be linking with a yet-to-be-installed one
4739 ## test "$hardcode_shlibpath_var" != no &&
4740 test "$hardcode_minus_L" != no
; then
4741 # Linking always hardcodes the temporary library directory.
4742 hardcode_action
=relink
4744 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4745 hardcode_action
=immediate
4748 # We cannot hardcode anything, or else we can only hardcode existing
4750 hardcode_action
=unsupported
4752 echo "$ac_t""$hardcode_action" 1>&6
4756 ## FIXME: this should be a separate macro
4760 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
4761 echo "configure:4762: checking whether stripping libraries is possible" >&5
4762 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
4763 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
4764 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
4765 echo "$ac_t""yes" 1>&6
4767 echo "$ac_t""no" 1>&6
4772 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4773 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4775 ## FIXME: this should be a separate macro
4777 # PORTME Fill in your ld.so characteristics
4778 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
4779 echo "configure:4780: checking dynamic linker characteristics" >&5
4781 libname_spec
='lib$name'
4788 shlibpath_overrides_runpath
=unknown
4790 dynamic_linker
="$host_os ld.so"
4791 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
4792 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
4797 library_names_spec
='${libname}${release}.so$versuffix $libname.a'
4798 shlibpath_var
=LIBPATH
4800 # AIX has no versioning support, so we append a major version to the name.
4801 soname_spec
='${libname}${release}.so$major'
4808 hardcode_into_libs
=yes
4809 if test "$host_cpu" = ia64
; then
4810 # AIX 5 supports IA64
4811 library_names_spec
='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4812 shlibpath_var
=LD_LIBRARY_PATH
4814 # With GCC up to 2.95.x, collect2 would create an import file
4815 # for dependence libraries. The import file would start with
4816 # the line `#! .'. This would cause the generated library to
4817 # depend on `.', always an invalid library. This was fixed in
4818 # development snapshots of GCC prior to 3.0.
4820 aix4 | aix4.
[01] | aix4.
[01].
*)
4821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4823 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
4830 # AIX (on Power*) has no versioning support, so currently we can
4831 # not hardcode correct soname into executable. Probably we can
4832 # add versioning support to collect2, so additional links can
4833 # be useful in future.
4834 if test "$aix_use_runtimelinking" = yes; then
4835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4836 # instead of lib<name>.a to let people know that these are not
4837 # typical AIX shared libraries.
4838 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4840 # We preserve .a as extension for shared libraries through AIX4.2
4841 # and later when we are not doing run time linking.
4842 library_names_spec
='${libname}${release}.a $libname.a'
4843 soname_spec
='${libname}${release}.so$major'
4845 shlibpath_var
=LIBPATH
4847 hardcode_into_libs
=yes
4851 library_names_spec
='$libname.ixlibrary $libname.a'
4852 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4853 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4857 library_names_spec
='${libname}.so'
4858 dynamic_linker
="$host_os ld.so"
4859 shlibpath_var
=LIBRARY_PATH
4865 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4866 soname_spec
='${libname}${release}.so$major'
4867 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
4868 shlibpath_var
=LD_LIBRARY_PATH
4869 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4870 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
4871 export_dynamic_flag_spec
=-rdynamic
4872 # the default ld.so.conf also contains /usr/contrib/lib and
4873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4874 # libtool to hard-code these into programs
4877 cygwin
* | mingw
* | pw32
*)
4878 version_type
=windows
4881 case $GCC,$host_os in
4883 library_names_spec
='$libname.dll.a'
4884 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4885 postinstall_cmds
='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4886 dldir=$destdir/`dirname \$dlpath`~
4887 test -d \$dldir || mkdir -p \$dldir~
4888 $install_prog .libs/$dlname \$dldir/$dlname'
4889 postuninstall_cmds
='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4890 dlpath=$dir/\$dldll~
4894 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4895 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
4898 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4901 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4904 dynamic_linker
='Win32 ld.exe'
4905 # FIXME: first we should search . and the directory the executable is in
4909 darwin
* | rhapsody
*)
4910 dynamic_linker
="$host_os dyld"
4914 # FIXME: Relying on posixy $() will cause problems for
4915 # cross-compilation, but unfortunately the echo tests do not
4916 # yet detect zsh echo's removal of \ escapes.
4917 library_names_spec
='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
4918 soname_spec
='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4919 shlibpath_overrides_runpath
=yes
4920 shlibpath_var
=DYLD_LIBRARY_PATH
4928 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4929 version_type
=freebsd-
$objformat
4930 case $version_type in
4932 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4937 library_names_spec
='${libname}${release}.so$versuffix $libname.so$versuffix'
4941 shlibpath_var
=LD_LIBRARY_PATH
4944 shlibpath_overrides_runpath
=yes
4947 shlibpath_overrides_runpath
=no
4948 hardcode_into_libs
=yes
4957 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4958 soname_spec
='${libname}${release}.so$major'
4959 shlibpath_var
=LD_LIBRARY_PATH
4960 hardcode_into_libs
=yes
4963 hpux9
* | hpux10
* | hpux11
*)
4964 # Give a soname corresponding to the major version so that dld.sl refuses to
4965 # link against other versions.
4966 dynamic_linker
="$host_os dld.sl"
4970 shlibpath_var
=SHLIB_PATH
4971 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
4972 library_names_spec
='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4973 soname_spec
='${libname}${release}.sl$major'
4974 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4975 postinstall_cmds
='chmod 555 $lib'
4978 irix5
* | irix6
* | nonstopux
*)
4980 nonstopux
*) version_type
=nonstopux
;;
4981 *) version_type
=irix
;;
4985 soname_spec
='${libname}${release}.so$major'
4986 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4988 irix5
* | nonstopux
*)
4992 case $LD in # libtool.m4 will add one of these switches to LD
4993 *-32|
*"-32 ") libsuff
= shlibsuff
= libmagic
=32-bit;;
4994 *-n32|
*"-n32 ") libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
4995 *-64|
*"-64 ") libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
4996 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
5000 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
5001 shlibpath_overrides_runpath
=no
5002 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5003 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
5006 # No shared lib support for Linux oldld, aout, or coff.
5007 linux-gnuoldld
* | linux-gnuaout
* | linux-gnucoff
*)
5011 # This must be Linux ELF.
5016 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5017 soname_spec
='${libname}${release}.so$major'
5018 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5019 shlibpath_var
=LD_LIBRARY_PATH
5020 shlibpath_overrides_runpath
=no
5021 # This implies no fast_install, which is unacceptable.
5022 # Some rework will be needed to allow for fast_install
5023 # before this can be enabled.
5024 hardcode_into_libs
=yes
5026 # We used to test for /lib/ld.so.1 and disable shared libraries on
5027 # powerpc, because MkLinux only supported shared libraries with the
5028 # GNU dynamic linker. Since this was broken with cross compilers,
5029 # most powerpc-linux boxes support dynamic linking these days and
5030 # people can always --disable-shared, the test was removed, and we
5031 # assume the GNU/Linux dynamic linker is in use.
5032 dynamic_linker
='GNU/Linux ld.so'
5039 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
5040 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5041 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5042 dynamic_linker
='NetBSD (a.out) ld.so'
5044 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5045 soname_spec
='${libname}${release}.so$major'
5046 dynamic_linker
='NetBSD ld.elf_so'
5048 shlibpath_var
=LD_LIBRARY_PATH
5049 shlibpath_overrides_runpath
=yes
5050 hardcode_into_libs
=yes
5055 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5056 shlibpath_var
=LD_LIBRARY_PATH
5057 shlibpath_overrides_runpath
=yes
5064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5066 openbsd2.
[89] | openbsd2.
[89].
*)
5067 shlibpath_overrides_runpath
=no
5070 shlibpath_overrides_runpath
=yes
5074 shlibpath_overrides_runpath
=yes
5076 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5077 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5078 shlibpath_var
=LD_LIBRARY_PATH
5082 libname_spec
='$name'
5084 library_names_spec
='$libname.dll $libname.a'
5085 dynamic_linker
='OS/2 ld.exe'
5086 shlibpath_var
=LIBPATH
5089 osf3
* | osf4
* | osf5
*)
5092 soname_spec
='${libname}${release}.so$major'
5093 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5094 shlibpath_var
=LD_LIBRARY_PATH
5095 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5096 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
5097 hardcode_into_libs
=yes
5102 soname_spec
='${libname}${release}.so$major'
5103 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5104 shlibpath_var
=LD_LIBRARY_PATH
5111 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5112 soname_spec
='${libname}${release}.so$major'
5113 shlibpath_var
=LD_LIBRARY_PATH
5114 shlibpath_overrides_runpath
=yes
5115 hardcode_into_libs
=yes
5116 # ldd complains unless libraries are executable
5117 postinstall_cmds
='chmod +x $lib'
5122 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5123 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5124 shlibpath_var
=LD_LIBRARY_PATH
5125 shlibpath_overrides_runpath
=yes
5126 if test "$with_gnu_ld" = yes; then
5132 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
5134 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5135 soname_spec
='${libname}${release}.so$major'
5136 shlibpath_var
=LD_LIBRARY_PATH
5137 case $host_vendor in
5139 shlibpath_overrides_runpath
=no
5141 export_dynamic_flag_spec
='${wl}-Blargedynsym'
5142 runpath_var
=LD_RUN_PATH
5150 shlibpath_overrides_runpath
=no
5151 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
5158 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5159 soname_spec
='${libname}${release}.so$major'
5160 shlibpath_var
=LD_LIBRARY_PATH
5167 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5168 soname_spec
='${libname}${release}.so$major'
5169 shlibpath_var
=LD_LIBRARY_PATH
5173 if test -d /usr
/nec
;then
5175 library_names_spec
='$libname.so.$versuffix $libname.so.$major $libname.so'
5176 soname_spec
='$libname.so.$major'
5177 shlibpath_var
=LD_LIBRARY_PATH
5185 echo "$ac_t""$dynamic_linker" 1>&6
5186 test "$dynamic_linker" = no
&& can_build_shared
=no
5190 ## FIXME: this should be a separate macro
5192 # Report the final consequences.
5193 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
5194 echo "configure:5195: checking if libtool supports shared libraries" >&5
5195 echo "$ac_t""$can_build_shared" 1>&6
5199 ## FIXME: this should be a separate macro
5201 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
5202 echo "configure:5203: checking whether to build shared libraries" >&5
5203 test "$can_build_shared" = "no" && enable_shared
=no
5205 # On AIX, shared libraries and static libraries use the same namespace, and
5206 # are all built from PIC.
5209 test "$enable_shared" = yes && enable_static
=no
5210 if test -n "$RANLIB"; then
5211 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
5212 postinstall_cmds
='$RANLIB $lib'
5217 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
5218 test "$enable_shared" = yes && enable_static
=no
5222 echo "$ac_t""$enable_shared" 1>&6
5226 ## FIXME: this should be a separate macro
5228 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
5229 echo "configure:5230: checking whether to build static libraries" >&5
5230 # Make sure either enable_shared or enable_static is yes.
5231 test "$enable_shared" = yes || enable_static
=yes
5232 echo "$ac_t""$enable_static" 1>&6
5236 if test "$hardcode_action" = relink
; then
5237 # Fast installation is not supported
5238 enable_fast_install
=no
5239 elif test "$shlibpath_overrides_runpath" = yes ||
5240 test "$enable_shared" = no
; then
5241 # Fast installation is not necessary
5242 enable_fast_install
=needless
5245 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
5246 if test "$GCC" = yes; then
5247 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5250 if test "x$enable_dlopen" != xyes
; then
5251 enable_dlopen
=unknown
5252 enable_dlopen_self
=unknown
5253 enable_dlopen_self_static
=unknown
5260 lt_cv_dlopen
="load_add_on"
5262 lt_cv_dlopen_self
=yes
5265 cygwin
* | mingw
* | pw32
*)
5266 lt_cv_dlopen
="LoadLibrary"
5271 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
5272 echo "configure:5273: checking for shl_load" >&5
5273 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5276 cat > conftest.
$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5279 /* System header to define __stub macros and hopefully few prototypes,
5280 which can conflict with char shl_load(); below. */
5282 /* Override any gcc2 internal prototype to avoid an error. */
5283 /* We use char because int might match the return type of a gcc2
5284 builtin and then its argument prototype would still apply. */
5289 /* The GNU C library defines this for functions which it implements
5290 to always fail with ENOSYS. Some functions are actually named
5291 something starting with __ and the normal name is an alias. */
5292 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5300 if { (eval echo configure
:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5302 eval "ac_cv_func_shl_load=yes"
5304 echo "configure: failed program was:" >&5
5305 cat conftest.
$ac_ext >&5
5307 eval "ac_cv_func_shl_load=no"
5312 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
5313 echo "$ac_t""yes" 1>&6
5314 lt_cv_dlopen
="shl_load"
5316 echo "$ac_t""no" 1>&6
5317 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
5318 echo "configure:5319: checking for shl_load in -ldld" >&5
5319 ac_lib_var
=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
5320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 ac_save_LIBS
="$LIBS"
5325 cat > conftest.
$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5337 if { (eval echo configure
:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5339 eval "ac_cv_lib_$ac_lib_var=yes"
5341 echo "configure: failed program was:" >&5
5342 cat conftest.
$ac_ext >&5
5344 eval "ac_cv_lib_$ac_lib_var=no"
5347 LIBS
="$ac_save_LIBS"
5350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5351 echo "$ac_t""yes" 1>&6
5352 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
5354 echo "$ac_t""no" 1>&6
5355 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
5356 echo "configure:5357: checking for dlopen" >&5
5357 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
5358 echo $ac_n "(cached) $ac_c" 1>&6
5360 cat > conftest.
$ac_ext <<EOF
5361 #line 5362 "configure"
5362 #include "confdefs.h"
5363 /* System header to define __stub macros and hopefully few prototypes,
5364 which can conflict with char dlopen(); below. */
5366 /* Override any gcc2 internal prototype to avoid an error. */
5367 /* We use char because int might match the return type of a gcc2
5368 builtin and then its argument prototype would still apply. */
5373 /* The GNU C library defines this for functions which it implements
5374 to always fail with ENOSYS. Some functions are actually named
5375 something starting with __ and the normal name is an alias. */
5376 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5384 if { (eval echo configure
:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5386 eval "ac_cv_func_dlopen=yes"
5388 echo "configure: failed program was:" >&5
5389 cat conftest.
$ac_ext >&5
5391 eval "ac_cv_func_dlopen=no"
5396 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5397 echo "$ac_t""yes" 1>&6
5398 lt_cv_dlopen
="dlopen"
5400 echo "$ac_t""no" 1>&6
5401 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5402 echo "configure:5403: checking for dlopen in -ldl" >&5
5403 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5405 echo $ac_n "(cached) $ac_c" 1>&6
5407 ac_save_LIBS
="$LIBS"
5409 cat > conftest.
$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5412 /* Override any gcc2 internal prototype to avoid an error. */
5413 /* We use char because int might match the return type of a gcc2
5414 builtin and then its argument prototype would still apply. */
5421 if { (eval echo configure
:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5423 eval "ac_cv_lib_$ac_lib_var=yes"
5425 echo "configure: failed program was:" >&5
5426 cat conftest.
$ac_ext >&5
5428 eval "ac_cv_lib_$ac_lib_var=no"
5431 LIBS
="$ac_save_LIBS"
5434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5435 echo "$ac_t""yes" 1>&6
5436 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
5438 echo "$ac_t""no" 1>&6
5439 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
5440 echo "configure:5441: checking for dlopen in -lsvld" >&5
5441 ac_lib_var
=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
5442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6
5445 ac_save_LIBS
="$LIBS"
5447 cat > conftest.
$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5450 /* Override any gcc2 internal prototype to avoid an error. */
5451 /* We use char because int might match the return type of a gcc2
5452 builtin and then its argument prototype would still apply. */
5459 if { (eval echo configure
:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5461 eval "ac_cv_lib_$ac_lib_var=yes"
5463 echo "configure: failed program was:" >&5
5464 cat conftest.
$ac_ext >&5
5466 eval "ac_cv_lib_$ac_lib_var=no"
5469 LIBS
="$ac_save_LIBS"
5472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5473 echo "$ac_t""yes" 1>&6
5474 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
5476 echo "$ac_t""no" 1>&6
5477 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
5478 echo "configure:5479: checking for dld_link in -ldld" >&5
5479 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
5480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5483 ac_save_LIBS
="$LIBS"
5485 cat > conftest.
$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5488 /* Override any gcc2 internal prototype to avoid an error. */
5489 /* We use char because int might match the return type of a gcc2
5490 builtin and then its argument prototype would still apply. */
5497 if { (eval echo configure
:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5499 eval "ac_cv_lib_$ac_lib_var=yes"
5501 echo "configure: failed program was:" >&5
5502 cat conftest.
$ac_ext >&5
5504 eval "ac_cv_lib_$ac_lib_var=no"
5507 LIBS
="$ac_save_LIBS"
5510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5511 echo "$ac_t""yes" 1>&6
5512 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
5514 echo "$ac_t""no" 1>&6
5535 if test "x$lt_cv_dlopen" != xno
; then
5541 case $lt_cv_dlopen in
5543 save_CPPFLAGS
="$CPPFLAGS"
5544 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
5546 save_LDFLAGS
="$LDFLAGS"
5547 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
5550 LIBS
="$lt_cv_dlopen_libs $LIBS"
5552 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
5553 echo "configure:5554: checking whether a program can dlopen itself" >&5
5554 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5557 if test "$cross_compiling" = yes; then :
5558 lt_cv_dlopen_self
=cross
5560 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
5561 lt_status
=$lt_dlunknown
5562 cat > conftest.
$ac_ext <<EOF
5563 #line 5564 "configure"
5564 #include "confdefs.h"
5573 # define LT_DLGLOBAL RTLD_GLOBAL
5576 # define LT_DLGLOBAL DL_GLOBAL
5578 # define LT_DLGLOBAL 0
5582 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5583 find out it does not work in some platform. */
5584 #ifndef LT_DLLAZY_OR_NOW
5586 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5589 # define LT_DLLAZY_OR_NOW DL_LAZY
5592 # define LT_DLLAZY_OR_NOW RTLD_NOW
5595 # define LT_DLLAZY_OR_NOW DL_NOW
5597 # define LT_DLLAZY_OR_NOW 0
5605 extern "C" void exit (int);
5608 void fnord() { int i=42;}
5611 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5612 int status = $lt_dlunknown;
5616 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5617 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5618 /* dlclose (self); */
5624 if { (eval echo configure
:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
5625 (.
/conftest
; exit; ) 2>/dev
/null
5628 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
5629 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
5630 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
5633 # compilation failed
5634 lt_cv_dlopen_self
=no
5642 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
5644 if test "x$lt_cv_dlopen_self" = xyes
; then
5645 LDFLAGS
="$LDFLAGS $link_static_flag"
5646 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
5647 echo "configure:5648: checking whether a statically linked program can dlopen itself" >&5
5648 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
5649 echo $ac_n "(cached) $ac_c" 1>&6
5651 if test "$cross_compiling" = yes; then :
5652 lt_cv_dlopen_self_static
=cross
5654 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
5655 lt_status
=$lt_dlunknown
5656 cat > conftest.
$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5667 # define LT_DLGLOBAL RTLD_GLOBAL
5670 # define LT_DLGLOBAL DL_GLOBAL
5672 # define LT_DLGLOBAL 0
5676 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5677 find out it does not work in some platform. */
5678 #ifndef LT_DLLAZY_OR_NOW
5680 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5683 # define LT_DLLAZY_OR_NOW DL_LAZY
5686 # define LT_DLLAZY_OR_NOW RTLD_NOW
5689 # define LT_DLLAZY_OR_NOW DL_NOW
5691 # define LT_DLLAZY_OR_NOW 0
5699 extern "C" void exit (int);
5702 void fnord() { int i=42;}
5705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5706 int status = $lt_dlunknown;
5710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5711 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5712 /* dlclose (self); */
5718 if { (eval echo configure
:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
5719 (.
/conftest
; exit; ) 2>/dev
/null
5722 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
5723 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
5724 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
5727 # compilation failed
5728 lt_cv_dlopen_self_static
=no
5736 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
5739 CPPFLAGS
="$save_CPPFLAGS"
5740 LDFLAGS
="$save_LDFLAGS"
5745 case $lt_cv_dlopen_self in
5746 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
5747 *) enable_dlopen_self
=unknown
;;
5750 case $lt_cv_dlopen_self_static in
5751 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
5752 *) enable_dlopen_self_static
=unknown
;;
5757 ## FIXME: this should be a separate macro
5759 if test "$enable_shared" = yes && test "$GCC" = yes; then
5760 case $archive_cmds in
5762 # FIXME: we may have to deal with multi-command sequences.
5765 # Test whether the compiler implicitly links with -lc since on some
5766 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5767 # to ld, don't add -lc before -lgcc.
5768 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
5769 echo "configure:5770: checking whether -lc should be explicitly linked in" >&5
5770 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5774 echo 'static int dummy;' > conftest.
$ac_ext
5776 if { (eval echo configure
:5777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5779 libobjs
=conftest.
$ac_objext
5781 wl
=$lt_cv_prog_cc_wl
5787 save_allow_undefined_flag
=$allow_undefined_flag
5788 allow_undefined_flag
=
5789 if { (eval echo configure
:5790: \"$archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1\") 1>&5; (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5; }
5791 lt_cv_archive_cmds_need_lc
=no
5793 lt_cv_archive_cmds_need_lc
=yes
5795 allow_undefined_flag
=$save_allow_undefined_flag
5797 cat conftest.err
1>&5
5801 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
5805 need_lc
=${lt_cv_archive_cmds_need_lc-yes}
5809 ## FIXME: this should be a separate macro
5811 # The second clause should only fire when bootstrapping the
5812 # libtool distribution, otherwise you forgot to ship ltmain.sh
5813 # with your package, and you will get complaints that there are
5814 # no rules to generate ltmain.sh.
5815 if test -f "$ltmain"; then
5818 # If there is no Makefile yet, we rely on a make rule to execute
5819 # `config.status --recheck' to rerun these tests and create the
5820 # libtool script then.
5821 test -f Makefile
&& make "$ltmain"
5824 if test -f "$ltmain"; then
5825 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5828 echo creating
$ofile
5830 # Now quote all the things that may contain metacharacters while being
5831 # careful not to overquote the AC_SUBSTed values. We take copies of the
5832 # variables and quote the copies for generation of the libtool script.
5833 for var
in echo old_CC old_CFLAGS SED \
5834 AR AR_FLAGS CC LD LN_S NM SHELL \
5835 reload_flag reload_cmds wl \
5836 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5837 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5838 library_names_spec soname_spec \
5839 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5840 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5841 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5842 old_striplib striplib file_magic_cmd export_symbols_cmds \
5843 deplibs_check_method allow_undefined_flag no_undefined_flag \
5844 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5845 global_symbol_to_c_name_address \
5846 hardcode_libdir_flag_spec hardcode_libdir_separator \
5847 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5848 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms
; do
5851 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5852 old_postinstall_cmds | old_postuninstall_cmds | \
5853 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5854 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5855 postinstall_cmds | postuninstall_cmds | \
5856 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
5857 # Double-quote double-evaled strings.
5858 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5861 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5866 cat <<__EOF__ > "${ofile}T"
5869 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5870 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5871 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5873 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5874 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5876 # This program is free software; you can redistribute it and/or modify
5877 # it under the terms of the GNU General Public License as published by
5878 # the Free Software Foundation; either version 2 of the License, or
5879 # (at your option) any later version.
5881 # This program is distributed in the hope that it will be useful, but
5882 # WITHOUT ANY WARRANTY; without even the implied warranty of
5883 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5884 # General Public License for more details.
5886 # You should have received a copy of the GNU General Public License
5887 # along with this program; if not, write to the Free Software
5888 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5890 # As a special exception to the GNU General Public License, if you
5891 # distribute this file as part of a program that contains a
5892 # configuration script generated by Autoconf, you may include it under
5893 # the same distribution terms that you use for the rest of that program.
5895 # A sed that does not truncate output.
5898 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5899 Xsed="${SED} -e s/^X//"
5901 # The HP-UX ksh and POSIX shell print the target directory to stdout
5903 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5905 # ### BEGIN LIBTOOL CONFIG
5907 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5909 # Shell to use when invoking shell scripts.
5912 # Whether or not to build shared libraries.
5913 build_libtool_libs=$enable_shared
5915 # Whether or not to build static libraries.
5916 build_old_libs=$enable_static
5918 # Whether or not to add -lc for building shared libraries.
5919 build_libtool_need_lc=$need_lc
5921 # Whether or not to optimize for fast installation.
5922 fast_install=$enable_fast_install
5925 host_alias=$host_alias
5928 # An echo program that does not interpret backslashes.
5933 AR_FLAGS=$lt_AR_FLAGS
5935 # The default C compiler.
5938 # Is the compiler the GNU C compiler?
5941 # The linker used to build libraries.
5944 # Whether we need hard or soft links.
5947 # A BSD-compatible nm program.
5950 # A symbol stripping program
5953 # Used to examine libraries when file_magic_cmd begins "file"
5954 MAGIC_CMD=$MAGIC_CMD
5956 # Used on cygwin: DLL creation program.
5959 # Used on cygwin: object dumper.
5962 # Used on cygwin: assembler.
5965 # The name of the directory that contains temporary libtool files.
5968 # How to create reloadable object files.
5969 reload_flag=$lt_reload_flag
5970 reload_cmds=$lt_reload_cmds
5972 # How to pass a linker flag through the compiler.
5975 # Object file suffix (normally "o").
5978 # Old archive suffix (normally "a").
5981 # Executable file suffix (normally "").
5984 # Additional compiler flags for building library objects.
5985 pic_flag=$lt_pic_flag
5988 # Does compiler simultaneously support -c and -o options?
5989 compiler_c_o=$lt_compiler_c_o
5991 # Can we write directly to a .lo ?
5992 compiler_o_lo=$lt_compiler_o_lo
5994 # Must we lock files when doing compilation ?
5995 need_locks=$lt_need_locks
5997 # Do we need the lib prefix for modules?
5998 need_lib_prefix=$need_lib_prefix
6000 # Do we need a version for libraries?
6001 need_version=$need_version
6003 # Whether dlopen is supported.
6004 dlopen_support=$enable_dlopen
6006 # Whether dlopen of programs is supported.
6007 dlopen_self=$enable_dlopen_self
6009 # Whether dlopen of statically linked programs is supported.
6010 dlopen_self_static=$enable_dlopen_self_static
6012 # Compiler flag to prevent dynamic linking.
6013 link_static_flag=$lt_link_static_flag
6015 # Compiler flag to turn off builtin functions.
6016 no_builtin_flag=$lt_no_builtin_flag
6018 # Compiler flag to allow reflexive dlopens.
6019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6021 # Compiler flag to generate shared objects directly from archives.
6022 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6024 # Compiler flag to generate thread-safe objects.
6025 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6027 # Library versioning type.
6028 version_type=$version_type
6030 # Format of library name prefix.
6031 libname_spec=$lt_libname_spec
6033 # List of archive names. First name is the real one, the rest are links.
6034 # The last name is the one that the linker finds with -lNAME.
6035 library_names_spec=$lt_library_names_spec
6037 # The coded name of the library, if different from the real name.
6038 soname_spec=$lt_soname_spec
6040 # Commands used to build and install an old-style archive.
6042 old_archive_cmds=$lt_old_archive_cmds
6043 old_postinstall_cmds=$lt_old_postinstall_cmds
6044 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6046 # Create an old-style archive from a shared archive.
6047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6049 # Create a temporary old-style archive to link instead of a shared archive.
6050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6052 # Commands used to build and install a shared archive.
6053 archive_cmds=$lt_archive_cmds
6054 archive_expsym_cmds=$lt_archive_expsym_cmds
6055 postinstall_cmds=$lt_postinstall_cmds
6056 postuninstall_cmds=$lt_postuninstall_cmds
6058 # Commands to strip libraries.
6059 old_striplib=$lt_old_striplib
6060 striplib=$lt_striplib
6062 # Method to check whether dependent libraries are shared objects.
6063 deplibs_check_method=$lt_deplibs_check_method
6065 # Command to use when deplibs_check_method == file_magic.
6066 file_magic_cmd=$lt_file_magic_cmd
6068 # Flag that allows shared libraries with undefined symbols to be built.
6069 allow_undefined_flag=$lt_allow_undefined_flag
6071 # Flag that forces no undefined symbols.
6072 no_undefined_flag=$lt_no_undefined_flag
6074 # Commands used to finish a libtool library installation in a directory.
6075 finish_cmds=$lt_finish_cmds
6077 # Same as above, but a single script fragment to be evaled but not shown.
6078 finish_eval=$lt_finish_eval
6080 # Take the output of nm and produce a listing of raw symbols and C names.
6081 global_symbol_pipe=$lt_global_symbol_pipe
6083 # Transform the output of nm in a proper C declaration
6084 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6086 # Transform the output of nm in a C name address pair
6087 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6089 # This is the shared library runtime path variable.
6090 runpath_var=$runpath_var
6092 # This is the shared library path variable.
6093 shlibpath_var=$shlibpath_var
6095 # Is shlibpath searched before the hard-coded library search path?
6096 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6098 # How to hardcode a shared library path into an executable.
6099 hardcode_action=$hardcode_action
6101 # Whether we should hardcode library paths into libraries.
6102 hardcode_into_libs=$hardcode_into_libs
6104 # Flag to hardcode \$libdir into a binary during linking.
6105 # This must work even if \$libdir does not exist.
6106 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6108 # Whether we need a single -rpath flag with a separated argument.
6109 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6111 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6113 hardcode_direct=$hardcode_direct
6115 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6117 hardcode_minus_L=$hardcode_minus_L
6119 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6120 # the resulting binary.
6121 hardcode_shlibpath_var=$hardcode_shlibpath_var
6123 # Variables whose values should be saved in libtool wrapper scripts and
6124 # restored at relink time.
6125 variables_saved_for_relink="$variables_saved_for_relink"
6127 # Whether libtool must link a program against all its dependency libraries.
6128 link_all_deplibs=$link_all_deplibs
6130 # Compile-time system search path for libraries
6131 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6133 # Run-time system search path for libraries
6134 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6136 # Fix the shell variable \$srcfile for the compiler.
6137 fix_srcfile_path="$fix_srcfile_path"
6139 # Set to yes if exported symbols are required.
6140 always_export_symbols=$always_export_symbols
6142 # The commands to list exported symbols.
6143 export_symbols_cmds=$lt_export_symbols_cmds
6145 # The commands to extract the exported symbol list from a shared archive.
6146 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6148 # Symbols that should not be listed in the preloaded symbols.
6149 exclude_expsyms=$lt_exclude_expsyms
6151 # Symbols that must always be exported.
6152 include_expsyms=$lt_include_expsyms
6154 # ### END LIBTOOL CONFIG
6160 cat <<\EOF
>> "${ofile}T"
6162 # AIX sometimes has problems with the GCC collect2 program. For some
6163 # reason, if we set the COLLECT_NAMES environment variable, the problems
6164 # vanish in a puff of smoke.
6165 if test "X${COLLECT_NAMES+set}" != Xset
; then
6167 export COLLECT_NAMES
6174 cygwin
* | mingw
* | pw32
* | os2
*)
6175 cat <<'EOF' >> "${ofile}T"
6176 # This is a source program that is used to create dlls on Windows
6177 # Don't remove nor modify the starting and closing comments
6178 # /* ltdll.c starts here */
6179 # #define WIN32_LEAN_AND_MEAN
6180 # #include <windows.h>
6181 # #undef WIN32_LEAN_AND_MEAN
6182 # #include <stdio.h>
6184 # #ifndef __CYGWIN__
6185 # # ifdef __CYGWIN32__
6186 # # define __CYGWIN__ __CYGWIN32__
6190 # #ifdef __cplusplus
6193 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6194 # #ifdef __cplusplus
6199 # #include <cygwin/cygwin_dll.h>
6200 # DECLARE_CYGWIN_DLL( DllMain );
6202 # HINSTANCE __hDllInstance_base;
6205 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6207 # __hDllInstance_base = hInst;
6210 # /* ltdll.c ends here */
6211 # This is a source program that is used to create import libraries
6212 # on Windows for dlls which lack them. Don't remove nor modify the
6213 # starting and closing comments
6214 # /* impgen.c starts here */
6215 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6217 # This file is part of GNU libtool.
6219 # This program is free software; you can redistribute it and/or modify
6220 # it under the terms of the GNU General Public License as published by
6221 # the Free Software Foundation; either version 2 of the License, or
6222 # (at your option) any later version.
6224 # This program is distributed in the hope that it will be useful,
6225 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6226 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6227 # GNU General Public License for more details.
6229 # You should have received a copy of the GNU General Public License
6230 # along with this program; if not, write to the Free Software
6231 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6234 # #include <stdio.h> /* for printf() */
6235 # #include <unistd.h> /* for open(), lseek(), read() */
6236 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6237 # #include <string.h> /* for strdup() */
6239 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6241 # #define O_BINARY 0
6244 # static unsigned int
6245 # pe_get16 (fd, offset)
6249 # unsigned char b[2];
6250 # lseek (fd, offset, SEEK_SET);
6252 # return b[0] + (b[1]<<8);
6255 # static unsigned int
6256 # pe_get32 (fd, offset)
6260 # unsigned char b[4];
6261 # lseek (fd, offset, SEEK_SET);
6263 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6266 # static unsigned int
6270 # unsigned char *b = ptr;
6271 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6280 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6281 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6282 # unsigned long name_rvas, nexp;
6283 # unsigned char *expdata, *erva;
6284 # char *filename, *dll_name;
6286 # filename = argv[1];
6288 # dll = open(filename, O_RDONLY|O_BINARY);
6292 # dll_name = filename;
6294 # for (i=0; filename[i]; i++)
6295 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6296 # dll_name = filename + i +1;
6298 # pe_header_offset = pe_get32 (dll, 0x3c);
6299 # opthdr_ofs = pe_header_offset + 4 + 20;
6300 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6302 # if (num_entries < 1) /* no exports */
6305 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6306 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6307 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6308 # secptr = (pe_header_offset + 4 + 20 +
6309 # pe_get16 (dll, pe_header_offset + 4 + 16));
6312 # for (i = 0; i < nsections; i++)
6315 # unsigned long secptr1 = secptr + 40 * i;
6316 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6317 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6318 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6319 # lseek(dll, secptr1, SEEK_SET);
6320 # read(dll, sname, 8);
6321 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6323 # expptr = fptr + (export_rva - vaddr);
6324 # if (export_rva + export_size > vaddr + vsize)
6325 # export_size = vsize - (export_rva - vaddr);
6330 # expdata = (unsigned char*)malloc(export_size);
6331 # lseek (dll, expptr, SEEK_SET);
6332 # read (dll, expdata, export_size);
6333 # erva = expdata - export_rva;
6335 # nexp = pe_as32 (expdata+24);
6336 # name_rvas = pe_as32 (expdata+32);
6338 # printf ("EXPORTS\n");
6339 # for (i = 0; i<nexp; i++)
6341 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6342 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6347 # /* impgen.c ends here */
6353 # We use sed instead of cat because bash on DJGPP gets confused if
6354 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6355 # text mode, it properly converts lines to CR/LF. This bash problem
6356 # is reportedly fixed, but why not run on old versions too?
6357 sed '$q' "$ltmain" >> "${ofile}T" ||
(rm -f "${ofile}T"; exit 1)
6359 mv -f "${ofile}T" "$ofile" || \
6360 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6370 # This can be used to rebuild libtool when needed
6371 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
6373 # Always use our own libtool.
6374 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
6376 # Prevent multiple expansion
6380 # Find a good install program. We prefer a C program (faster),
6381 # so one script is as good as another. But avoid the broken or
6382 # incompatible versions:
6383 # SysV /etc/install, /usr/sbin/install
6384 # SunOS /usr/etc/install
6385 # IRIX /sbin/install
6387 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6388 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6389 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6390 # ./install, which can be erroneously created by make from ./install.sh.
6391 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6392 echo "configure:6393: checking for a BSD compatible install" >&5
6393 if test -z "$INSTALL"; then
6394 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6397 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
6398 for ac_dir
in $PATH; do
6399 # Account for people who put trailing slashes in PATH elements.
6401 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
6403 # OSF1 and SCO ODT 3.0 have their own names for install.
6404 # Don't use installbsd from OSF since it installs stuff as root
6406 for ac_prog
in ginstall scoinst
install; do
6407 if test -f $ac_dir/$ac_prog; then
6408 if test $ac_prog = install &&
6409 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
6410 # AIX install. It has an incompatible calling convention.
6413 ac_cv_path_install
="$ac_dir/$ac_prog -c"
6424 if test "${ac_cv_path_install+set}" = set; then
6425 INSTALL
="$ac_cv_path_install"
6427 # As a last resort, use the slow shell script. We don't cache a
6428 # path for INSTALL within a source directory, because that will
6429 # break other packages using the cache if that directory is
6430 # removed, or if the path is relative.
6431 INSTALL
="$ac_install_sh"
6434 echo "$ac_t""$INSTALL" 1>&6
6436 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6437 # It thinks the first close brace ends the variable substitution.
6438 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6440 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
6442 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6444 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6445 echo "configure:6446: checking whether ln -s works" >&5
6446 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6450 if ln -s X conftestdata
2>/dev
/null
6453 ac_cv_prog_LN_S
="ln -s"
6458 LN_S
="$ac_cv_prog_LN_S"
6459 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6460 echo "$ac_t""yes" 1>&6
6462 echo "$ac_t""no" 1>&6
6465 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
6466 echo "configure:6467: checking whether ${MAKE-make} sets \${MAKE}" >&5
6467 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
6468 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
6469 echo $ac_n "(cached) $ac_c" 1>&6
6471 cat > conftestmake
<<\EOF
6473 @
echo 'ac_maketemp="${MAKE}"'
6475 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6476 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
6477 if test -n "$ac_maketemp"; then
6478 eval ac_cv_prog_make_
${ac_make}_set
=yes
6480 eval ac_cv_prog_make_
${ac_make}_set
=no
6484 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6485 echo "$ac_t""yes" 1>&6
6488 echo "$ac_t""no" 1>&6
6489 SET_MAKE
="MAKE=${MAKE-make}"
6492 # Extract the first word of "ps", so it can be a program name with args.
6493 set dummy ps
; ac_word
=$2
6494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6495 echo "configure:6496: checking for $ac_word" >&5
6496 if eval "test \"`echo '$''{'ac_cv_path_PSPROG'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6501 ac_cv_path_PSPROG
="$PSPROG" # Let the user override the test with a path.
6504 ac_cv_path_PSPROG
="$PSPROG" # Let the user override the test with a dos path.
6507 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6509 for ac_dir
in $ac_dummy; do
6510 test -z "$ac_dir" && ac_dir
=.
6511 if test -f $ac_dir/$ac_word; then
6512 ac_cv_path_PSPROG
="$ac_dir/$ac_word"
6520 PSPROG
="$ac_cv_path_PSPROG"
6521 if test -n "$PSPROG"; then
6522 echo "$ac_t""$PSPROG" 1>&6
6524 echo "$ac_t""no" 1>&6
6527 # Extract the first word of "perl", so it can be a program name with args.
6528 set dummy perl
; ac_word
=$2
6529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6530 echo "configure:6531: checking for $ac_word" >&5
6531 if eval "test \"`echo '$''{'ac_cv_path_PERLPROG'+set}'`\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6536 ac_cv_path_PERLPROG
="$PERLPROG" # Let the user override the test with a path.
6539 ac_cv_path_PERLPROG
="$PERLPROG" # Let the user override the test with a dos path.
6542 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6544 for ac_dir
in $ac_dummy; do
6545 test -z "$ac_dir" && ac_dir
=.
6546 if test -f $ac_dir/$ac_word; then
6547 ac_cv_path_PERLPROG
="$ac_dir/$ac_word"
6555 PERLPROG
="$ac_cv_path_PERLPROG"
6556 if test -n "$PERLPROG"; then
6557 echo "$ac_t""$PERLPROG" 1>&6
6559 echo "$ac_t""no" 1>&6
6562 for ac_prog
in whoami logname
6564 # Extract the first word of "$ac_prog", so it can be a program name with args.
6565 set dummy
$ac_prog; ac_word
=$2
6566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6567 echo "configure:6568: checking for $ac_word" >&5
6568 if eval "test \"`echo '$''{'ac_cv_prog_WHOAMI'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6571 if test -n "$WHOAMI"; then
6572 ac_cv_prog_WHOAMI
="$WHOAMI" # Let the user override the test.
6574 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6576 for ac_dir
in $ac_dummy; do
6577 test -z "$ac_dir" && ac_dir
=.
6578 if test -f $ac_dir/$ac_word; then
6579 ac_cv_prog_WHOAMI
="$ac_prog"
6586 WHOAMI
="$ac_cv_prog_WHOAMI"
6587 if test -n "$WHOAMI"; then
6588 echo "$ac_t""$WHOAMI" 1>&6
6590 echo "$ac_t""no" 1>&6
6593 test -n "$WHOAMI" && break
6595 test -n "$WHOAMI" || WHOAMI
="whoami"
6597 for ac_prog
in sed gsed
6599 # Extract the first word of "$ac_prog", so it can be a program name with args.
6600 set dummy
$ac_prog; ac_word
=$2
6601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6602 echo "configure:6603: checking for $ac_word" >&5
6603 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6606 if test -n "$SED"; then
6607 ac_cv_prog_SED
="$SED" # Let the user override the test.
6609 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6611 for ac_dir
in $ac_dummy; do
6612 test -z "$ac_dir" && ac_dir
=.
6613 if test -f $ac_dir/$ac_word; then
6614 ac_cv_prog_SED
="$ac_prog"
6621 SED
="$ac_cv_prog_SED"
6622 if test -n "$SED"; then
6623 echo "$ac_t""$SED" 1>&6
6625 echo "$ac_t""no" 1>&6
6628 test -n "$SED" && break
6631 # Extract the first word of "autoconf", so it can be a program name with args.
6632 set dummy autoconf
; ac_word
=$2
6633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6634 echo "configure:6635: checking for $ac_word" >&5
6635 if eval "test \"`echo '$''{'ac_cv_prog_AUTOCONF'+set}'`\" = set"; then
6636 echo $ac_n "(cached) $ac_c" 1>&6
6638 if test -n "$AUTOCONF"; then
6639 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
6641 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6643 for ac_dir
in $ac_dummy; do
6644 test -z "$ac_dir" && ac_dir
=.
6645 if test -f $ac_dir/$ac_word; then
6646 ac_cv_prog_AUTOCONF
=""
6653 AUTOCONF
="$ac_cv_prog_AUTOCONF"
6654 if test -n "$AUTOCONF"; then
6655 echo "$ac_t""$AUTOCONF" 1>&6
6657 echo "$ac_t""no" 1>&6
6660 # Extract the first word of "autoheader", so it can be a program name with args.
6661 set dummy autoheader
; ac_word
=$2
6662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6663 echo "configure:6664: checking for $ac_word" >&5
6664 if eval "test \"`echo '$''{'ac_cv_prog_AUTOHEADER'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 if test -n "$AUTOHEADER"; then
6668 ac_cv_prog_AUTOHEADER
="$AUTOHEADER" # Let the user override the test.
6670 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6672 for ac_dir
in $ac_dummy; do
6673 test -z "$ac_dir" && ac_dir
=.
6674 if test -f $ac_dir/$ac_word; then
6675 ac_cv_prog_AUTOHEADER
=""
6682 AUTOHEADER
="$ac_cv_prog_AUTOHEADER"
6683 if test -n "$AUTOHEADER"; then
6684 echo "$ac_t""$AUTOHEADER" 1>&6
6686 echo "$ac_t""no" 1>&6
6689 if test "x$ac_cv_prog_AUTOCONF" = "x"; then
6693 if test "x$ac_cv_prog_AUTOHEADER" = "x"; then
6698 # Extract the first word of "uname", so it can be a program name with args.
6699 set dummy uname
; ac_word
=$2
6700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6701 echo "configure:6702: checking for $ac_word" >&5
6702 if eval "test \"`echo '$''{'ac_cv_path_UNAMEPROG'+set}'`\" = set"; then
6703 echo $ac_n "(cached) $ac_c" 1>&6
6705 case "$UNAMEPROG" in
6707 ac_cv_path_UNAMEPROG
="$UNAMEPROG" # Let the user override the test with a path.
6710 ac_cv_path_UNAMEPROG
="$UNAMEPROG" # Let the user override the test with a dos path.
6713 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6715 for ac_dir
in $ac_dummy; do
6716 test -z "$ac_dir" && ac_dir
=.
6717 if test -f $ac_dir/$ac_word; then
6718 ac_cv_path_UNAMEPROG
="$ac_dir/$ac_word"
6726 UNAMEPROG
="$ac_cv_path_UNAMEPROG"
6727 if test -n "$UNAMEPROG"; then
6728 echo "$ac_t""$UNAMEPROG" 1>&6
6730 echo "$ac_t""no" 1>&6
6733 cat >> confdefs.h
<<EOF
6734 #define UNAMEPROG "$UNAMEPROG"
6738 echo $ac_n "checking for working const""... $ac_c" 1>&6
6739 echo "configure:6740: checking for working const" >&5
6740 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6743 cat > conftest.
$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6749 /* Ultrix mips cc rejects this. */
6750 typedef int charset[2]; const charset x;
6751 /* SunOS 4.1.1 cc rejects this. */
6752 char const *const *ccp;
6754 /* NEC SVR4.0.2 mips cc rejects this. */
6755 struct point {int x, y;};
6756 static struct point const zero = {0,0};
6757 /* AIX XL C 1.02.0.0 rejects this.
6758 It does not let you subtract one const X* pointer from another in an arm
6759 of an if-expression whose if-part is not a constant expression */
6760 const char *g = "string";
6761 ccp = &g + (g ? g-g : 0);
6762 /* HPUX 7.0 cc rejects these. */
6765 ccp = (char const *const *) p;
6766 { /* SCO 3.2v4 cc rejects this. */
6768 char const *s = 0 ? (char *) 0 : (char const *) 0;
6772 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6774 const int *foo = &x[0];
6777 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6778 typedef const int *iptr;
6782 { /* AIX XL C 1.02.0.0 rejects this saying
6783 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6784 struct s { int j; const int *ap[3]; };
6785 struct s *b; b->j = 5;
6787 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6793 if { (eval echo configure
:6794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6797 echo "configure: failed program was:" >&5
6798 cat conftest.
$ac_ext >&5
6805 echo "$ac_t""$ac_cv_c_const" 1>&6
6806 if test $ac_cv_c_const = no
; then
6807 cat >> confdefs.h
<<\EOF
6813 echo $ac_n "checking for inline""... $ac_c" 1>&6
6814 echo "configure:6815: checking for inline" >&5
6815 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6816 echo $ac_n "(cached) $ac_c" 1>&6
6819 for ac_kw
in inline __inline__ __inline
; do
6820 cat > conftest.
$ac_ext <<EOF
6821 #line 6822 "configure"
6822 #include "confdefs.h"
6828 if { (eval echo configure
:6829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6830 ac_cv_c_inline
=$ac_kw; break
6832 echo "configure: failed program was:" >&5
6833 cat conftest.
$ac_ext >&5
6840 echo "$ac_t""$ac_cv_c_inline" 1>&6
6841 case "$ac_cv_c_inline" in
6843 no
) cat >> confdefs.h
<<\EOF
6847 *) cat >> confdefs.h
<<EOF
6848 #define inline $ac_cv_c_inline
6854 echo $ac_n "checking for net-snmp version number""... $ac_c" 1>&6
6855 echo "configure:6856: checking for net-snmp version number" >&5
6856 VERSION
=`grep NetSnmpVersionInfo.*= $srcdir/snmplib/snmp_version.c | sed 's/";.*//;s/.*"//;s/pre/0./;'`
6858 RELEASEVERSION
=`echo $VERSION | sed 's/^\([0-9]\)\.\([0-9]\)/\1:\2:0/'`
6862 echo "$ac_t""$VERSION" 1>&6
6864 cat >> configure-summary
<< EOF
6865 Net-SNMP Version: $VERSION
6869 echo $ac_n "checking for developer gcc flags""... $ac_c" 1>&6
6870 echo "configure:6871: checking for developer gcc flags" >&5
6871 if test "x$developer" = "xyes" -a "x$ac_cv_prog_gcc" = "xyes"; then
6872 DEVFLAGS
="-Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno-char-subscripts"
6876 echo "$ac_t""$DEVFLAGS" 1>&6
6880 # Do some error checking and defaulting for the host and target type.
6882 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
6885 # 1. You are not allowed to specify --host, --target, and nonopt at the
6887 # 2. Host defaults to nonopt.
6888 # 3. If nonopt is not specified, then host defaults to the current host,
6889 # as determined by config.guess.
6890 # 4. Target and build default to nonopt.
6891 # 5. If nonopt is not specified, then target and build default to host.
6893 # The aliases save the names the user supplied, while $host etc.
6894 # will get canonicalized.
6895 case $host---$target---$nonopt in
6896 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
6897 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
6901 # Make sure we can run config.sub.
6902 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
6903 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
6906 echo $ac_n "checking host system type""... $ac_c" 1>&6
6907 echo "configure:6908: checking host system type" >&5
6910 case "$host_alias" in
6914 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
6915 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
6917 *) host_alias
=$nonopt ;;
6921 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
6922 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6923 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6924 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6925 echo "$ac_t""$host" 1>&6
6927 echo $ac_n "checking target system type""... $ac_c" 1>&6
6928 echo "configure:6929: checking target system type" >&5
6930 target_alias
=$target
6931 case "$target_alias" in
6934 NONE
) target_alias
=$host_alias ;;
6935 *) target_alias
=$nonopt ;;
6939 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
6940 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6941 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6942 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6943 echo "$ac_t""$target" 1>&6
6945 echo $ac_n "checking build system type""... $ac_c" 1>&6
6946 echo "configure:6947: checking build system type" >&5
6949 case "$build_alias" in
6952 NONE
) build_alias
=$host_alias ;;
6953 *) build_alias
=$nonopt ;;
6957 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
6958 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6959 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6960 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6961 echo "$ac_t""$build" 1>&6
6963 test "$host_alias" != "$target_alias" &&
6964 test "$program_prefix$program_suffix$program_transform_name" = \
6966 program_prefix
=${target_alias}-
6969 PARTIALTARGETOS
=`echo $target_os | sed 's/[-._].*//'`
6970 CFLAGS
="$CFLAGS -D$PARTIALTARGETOS"
6973 cat >> configure-summary
<< EOF
6974 Building for: $PARTIALTARGETOS
6979 echo $ac_n "checking for system include file""... $ac_c" 1>&6
6980 echo "configure:6981: checking for system include file" >&5
6983 filebase
=`echo $filebase | sed 's/elf//'`
6984 filebase
=`echo $filebase | sed 's/aout//'`
6985 filebase
=`echo $filebase | sed 's/ecoff//'`
6986 filebase
=`echo $filebase | sed 's/coff//'`
6987 while test "x$filebase" != "x$last" -a ! -f $srcdir/include
/net-snmp
/system
/$filebase.h
6990 filebase
=`echo $filebase | sed 's/[-._][^-._]*$//'`
6991 if test "x$filebase" = "x$last"; then
6992 filebase
=`echo $filebase | sed 's/[0-9]*$//'`
6996 if test "x$filebase" = "x$last"; then
6999 ac_cv_SYSTEM_INCLUDE_FILE
="net-snmp/system/$filebase.h"
7002 echo "$ac_t""$ac_cv_SYSTEM_INCLUDE_FILE" 1>&6
7003 cat >> confdefs.h
<<EOF
7004 #define SYSTEM_INCLUDE_FILE "$ac_cv_SYSTEM_INCLUDE_FILE"
7009 echo $ac_n "checking for machine-type include file""... $ac_c" 1>&6
7010 echo "configure:7011: checking for machine-type include file" >&5
7012 filebase
=$target_cpu
7013 while test "x$filebase" != "x$last" -a ! -f $srcdir/include
/net-snmp
/machine
/$filebase.h
7016 filebase
=`echo $filebase | sed 's/[-._][^-._]*$//'`
7019 if test "x$filebase" = "x$last"; then
7022 ac_cv_MACHINE_INCLUDE_FILE
="net-snmp/machine/$filebase.h"
7025 echo "$ac_t""$ac_cv_MACHINE_INCLUDE_FILE" 1>&6
7026 cat >> confdefs.h
<<EOF
7027 #define MACHINE_INCLUDE_FILE "$ac_cv_MACHINE_INCLUDE_FILE"
7031 # Extract the first word of "$CC", so it can be a program name with args.
7032 set dummy
$CC; ac_word
=$2
7033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7034 echo "configure:7035: checking for $ac_word" >&5
7035 if eval "test \"`echo '$''{'ac_cv_path_CCPATH'+set}'`\" = set"; then
7036 echo $ac_n "(cached) $ac_c" 1>&6
7040 ac_cv_path_CCPATH
="$CCPATH" # Let the user override the test with a path.
7043 ac_cv_path_CCPATH
="$CCPATH" # Let the user override the test with a dos path.
7046 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7048 for ac_dir
in $ac_dummy; do
7049 test -z "$ac_dir" && ac_dir
=.
7050 if test -f $ac_dir/$ac_word; then
7051 ac_cv_path_CCPATH
="$ac_dir/$ac_word"
7059 CCPATH
="$ac_cv_path_CCPATH"
7060 if test -n "$CCPATH"; then
7061 echo "$ac_t""$CCPATH" 1>&6
7063 echo "$ac_t""no" 1>&6
7068 if test "x$CCPATH" = "x/usr/ucb/cc" -o "x$CCPATH" = "x/usr/bin/cc"; then
7069 { echo "configure: error:
7071 *** The BSDI /usr/ucb/cc compiler does not work with this package.
7072 *** Please run configure with --with-cc=gcc
7077 if test "x$CCPATH" = "x/usr/ucb/cc"; then
7078 { echo "configure: error:
7080 *** The solaris /usr/ucb/cc compiler does not work with this package.
7081 *** Please put a different compiler in your path first or run
7082 *** configure with --with-cc=XX, where XX is the compiler you want to use.
7088 echo $ac_n "checking for additional cpp flags""... $ac_c" 1>&6
7089 echo "configure:7090: checking for additional cpp flags" >&5
7090 if test "x$GCC" = "xyes" -a "x$CPP" = "x$CC -E"; then
7091 EXTRACPPFLAGS
="-x c"
7096 if test "x$GCC" != "xyes"; then
7098 solaris
*) EXTRACPPFLAGS
="$EXTRACPPFLAGS -Xs" ;;
7103 echo "$ac_t""$EXTRACPPFLAGS" 1>&6
7106 if test "x$prefix" = "xNONE"; then
7110 fch
=`echo $prefix | sed 's/\(.\).*/\1/'`
7111 if test $fch != "/" ; then
7112 prefix
=`pwd`/$prefix
7113 echo "adjusting prefix to $prefix"
7116 if test "x$exec_prefix" = "xNONE"; then
7120 fch
=`echo $exec_prefix | sed 's/\(.\).*/\1/'`
7121 if test $fch != "/" ; then
7122 exec_prefix
=`pwd`/$exec_prefix
7123 echo "adjusting exec_prefix to $exec_prefix"
7128 tmpset
="$libdir/snmp"
7129 while test "x$tmpset" != "x$SNMPLIBPATH"; do
7130 SNMPLIBPATH
="$tmpset"
7131 eval tmpset
="$tmpset"
7133 cat >> confdefs.h
<<EOF
7134 #define SNMPLIBPATH "$SNMPLIBPATH"
7137 cat >> confdefs.h
<<EOF
7138 #define SNMPDLMODPATH "$SNMPLIBPATH/dlmod"
7143 tmpset
="$datadir/snmp"
7144 while test "x$tmpset" != "x$SNMPSHAREPATH"; do
7145 SNMPSHAREPATH
="$tmpset"
7146 eval tmpset
="$tmpset"
7148 cat >> confdefs.h
<<EOF
7149 #define SNMPSHAREPATH "$SNMPSHAREPATH"
7153 if test "x$DEFAULT_MIBDIRS" = "x"; then
7154 cat >> confdefs.h
<<EOF
7155 #define DEFAULT_MIBDIRS "\$HOME/.snmp/mibs:$SNMPSHAREPATH/mibs"
7161 tmpset
="$sysconfdir/snmp"
7162 while test "x$tmpset" != "x$SNMPCONFPATH"; do
7163 SNMPCONFPATH
="$tmpset"
7164 eval tmpset
="$tmpset"
7166 cat >> confdefs.h
<<EOF
7167 #define SNMPCONFPATH "$SNMPCONFPATH"
7172 if test "x$enable_ipv6" = "xyes"; then
7177 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
7178 echo "configure:7179: checking ipv6 stack type" >&5
7179 for i
in v6d toshiba kame inria zeta linux-glibc linux-inet6
; do
7182 cat > conftest.
$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7186 #include </usr/local/v6/include/sys/types.h>
7191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7192 egrep "yes" >/dev
/null
2>&1; then
7194 v6type
=$i; v6lib
=v6
;
7195 v6libdir
=/usr
/local
/v
6/lib
;
7196 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
7202 cat > conftest.
$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7206 #include <sys/param.h>
7207 #ifdef _TOSHIBA_INET6
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 egrep "yes" >/dev
/null
2>&1; then
7214 v6type
=$i; v6lib
=inet6
;
7215 v6libdir
=/usr
/local
/v
6/lib
;
7216 CFLAGS
="-DINET6 $CFLAGS"
7222 cat > conftest.
$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7226 #include <netinet/in.h>
7231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7232 egrep "yes" >/dev
/null
2>&1; then
7234 v6type
=$i; v6lib
=inet6
;
7235 v6libdir
=/usr
/local
/v
6/lib
;
7237 CFLAGS
="-DINET6 $CFLAGS"
7243 cat > conftest.
$ac_ext <<EOF
7244 #line 7245 "configure"
7245 #include "confdefs.h"
7247 #include <netinet/in.h>
7248 #ifdef IPV6_INRIA_VERSION
7252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7253 egrep "yes" >/dev
/null
2>&1; then
7259 CFLAGS
="-DINET6 $CFLAGS"
7265 cat > conftest.
$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7269 #include <sys/param.h>
7270 #ifdef _ZETA_MINAMI_INET6
7275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7276 egrep "yes" >/dev
/null
2>&1; then
7278 v6type
=$i; v6lib
=inet6
;
7279 v6libdir
=/usr
/local
/v
6/lib
;
7280 CFLAGS
="-DINET6 $CFLAGS"
7286 cat > conftest.
$ac_ext <<EOF
7287 #line 7288 "configure"
7288 #include "confdefs.h"
7290 #include <features.h>
7291 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC_ > 2))
7295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7296 egrep "yes" >/dev
/null
2>&1; then
7302 CFLAGS
="-DINET6 $CFLAGS"
7308 if test -d /usr
/inet6
; then
7311 v6libdir
=/usr
/inet
6/lib
7312 CFLAGS
="-DINET6 $CFLAGS"
7316 if test "$v6type" != "unknown"; then
7321 if test "$v6lib" != "none"; then
7322 if test -d $v6libdir -a -f $v6libdir/lib
$v6lib.a
; then
7323 LIBS
="-L$v6libdir -l$v6lib $LIBS"
7325 echo "$ac_t"""$v6type, $enable_ipv6, using lib
$v6lib"" 1>&6
7326 elif test "$v6trylibc" = "yes"; then
7328 echo "$ac_t"""$v6type, $enable_ipv6, using libc
"" 1>&6
7330 { echo "configure: error: no IPv6 library lib$v6lib.a found." 1>&2; exit 1; }
7335 echo "$ac_t"""$v6type, $enable_ipv6"" 1>&6
7340 if test "x$with_res_locks" = "xyes"; then
7341 cat >> confdefs.h
<<\EOF
7342 #define NS_REENTRANT 1
7350 CC_RUNTIME_ARG
="$CC_RUNTIME_ARG -lpthreads"
7359 echo $ac_n "checking whether we have to build PIC code""... $ac_c" 1>&6
7360 echo "configure:7361: checking whether we have to build PIC code" >&5
7361 echo "$with_mib_modules" |
grep "ucd-snmp/dlmod" >/dev
/null
7362 if test $?
-eq 0 ; then
7364 LIB_CFLAGS
="$LIB_CFLAGS $SHLIB_CFLAGS"
7365 echo "$ac_t""yes" 1>&6
7368 echo "$ac_t""no" 1>&6
7371 echo $ac_n "checking for and configuring transport modules to use""... $ac_c" 1>&6
7372 echo "configure:7373: checking for and configuring transport modules to use" >&5
7373 transport_src_list
=""
7374 transport_hdr_list
=""
7375 transport_def_list
=""
7376 transport_result_list
=""
7377 transport_add_list
=""
7378 new_with_transport_list
=`echo $with_transports | sed 's/,/ /g;'`
7379 new_with_out_transport_list
=`echo $with_out_transports | sed 's/,/ /g;'`
7381 if test "x$PARTIALTARGETOS" = "xcygwin"; then
7382 transport_default_list
="UDP TCP Callback"
7384 transport_default_list
="UDP TCP Unix Callback"
7386 if test "x$enable_ipv6" = "xyes"; then
7387 transport_default_list
="UDPIPv6 TCPIPv6 $transport_default_list"
7389 for i
in $transport_default_list; do
7390 if echo " $new_with_transport_list " |
grep " $i " >/dev
/null
; then
7393 transport_add_list
="$i $transport_add_list"
7396 new_transport_list
="$transport_add_list $new_with_transport_list"
7398 for i
in $new_transport_list; do
7399 if echo " $new_with_out_transport_list " |
grep " $i " >/dev
/null
; then
7400 if test "x$i" = "xUDP"; then
7402 { echo "configure: error: It is not possible to compile without UDP/IP support." 1>&2; exit 1; }
7405 if test "x$i" = "xAAL5PVC"; then
7406 if test "x$PARTIALTARGETOS" != "xlinux"; then
7408 { echo "configure: error: AAL5 PVC support unavailable for this platform (Linux only)" 1>&2; exit 1; }
7411 if test "x$i" = "xIPX"; then
7412 if test "x$PARTIALTARGETOS" != "xlinux"; then
7414 { echo "configure: error: IPX support unavailable for this platform (Linux only)" 1>&2; exit 1; }
7417 if test "x$i" = "xUnix"; then
7418 if test "x$PARTIALTARGETOS" = "xcygwin"; then
7420 { echo "configure: error: Unix domain protocol support unavailable for this platform" 1>&2; exit 1; }
7423 transport_src
="snmp"$i"Domain.c"
7424 transport_hdr
="snmp"$i"Domain.h"
7425 rel_transport_src
="snmplib/"$transport_src
7426 rel_transport_hdr
="include/net-snmp/library/"$transport_hdr
7427 if test -f "$srcdir/$rel_transport_src"; then
7428 transport_result_list
="$transport_result_list $i"
7429 transport_src_list
="$transport_src $transport_src_list"
7430 if test -f "$srcdir/$rel_transport_hdr"; then
7431 transport_hdr_list
="$transport_hdr $transport_hdr_list"
7433 transport_def
=`echo $i | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7434 transport_def_list
="SNMP_TRANSPORT_"$transport_def"_DOMAIN $transport_def_list"
7437 { echo "configure: error: Cannot find file $transport_src to support SNMP transport domain $i." 1>&2; exit 1; }
7441 transport_obj_list
=`echo " $transport_src_list " | sed 's/\.c/\.o/g'`
7442 transport_lobj_list
=`echo " $transport_src_list " | sed 's/\.c/\.lo/g'`
7447 for i
in $transport_def_list; do
7448 cat >> confdefs.h
<<EOF
7453 echo "$ac_t""$transport_result_list." 1>&6
7455 cat >> configure-summary
<< EOF
7456 Network transport support: $transport_result_list
7461 echo $ac_n "checking for security modules to use""... $ac_c" 1>&6
7462 echo "configure:7463: checking for security modules to use" >&5
7463 security_def_list
="usm"
7464 security_src_list
=""
7465 security_obj_list
=""
7466 security_lobj_list
=""
7467 security_init_file
="snmplib/snmpsm_init.h"
7468 security_incl_file
="include/net-snmp/library/snmpv3-security-includes.h"
7469 new_with_security
=`echo $with_security_modules | sed 's/,/ /g;'`
7470 new_with_out_security
=`echo $with_out_security_modules | sed 's/,/ /g;'`
7472 if test ! -d include
; then
7475 if test ! -d include
/net-snmp
; then
7476 mkdir include
/net-snmp
7478 if test ! -d include
/net-snmp
/agent
; then
7479 mkdir include
/net-snmp
/agent
7481 if test ! -d include
/net-snmp
/library
; then
7482 mkdir include
/net-snmp
/library
7484 if test ! -d include
/ucd-snmp
; then
7485 mkdir include
/ucd-snmp
7488 if test ! -d snmplib
; then
7491 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $security_init_file
7492 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $security_incl_file
7494 for i
in $security_def_list; do
7495 if echo " $new_with_out_security " |
grep " $i " > /dev
/null
; then
7496 if test "x$i" = "xusm"; then
7498 { echo "configure: error: The USM security module is mandatory" 1>&2; exit 1; }
7501 new_with_security
="$new_with_security $i"
7505 for i
in $new_with_security; do
7509 # make sure support exists for it
7510 if test -f $srcdir"/snmplib/"$cfile -a -f $srcdir"/include/net-snmp/library/"$hfile; then
7514 { echo "configure: error: No such security module: $i / $cfile / $hfile" 1>&2; exit 1; }
7517 # define a bunch of stuff to enable it
7518 security_src_list
="$security_src_list $cfile"
7519 security_hdr_list
="$security_hdr_list $hfile"
7520 security_obj_list
="$security_obj_list snmp"$i".o"
7521 security_lobj_list
="$security_lobj_list snmp"$i".lo"
7522 def_name
="SNMP_SECMOD_"`echo $i | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7523 echo "init_"$i"();" >> $security_init_file
7524 echo "#include <net-snmp/library/$hfile>" >> $security_incl_file
7525 cat >> confdefs.h
<<EOF
7535 echo "$ac_t""$new_with_security" 1>&6
7537 cat >> configure-summary
<< EOF
7538 SNMPv3 Security Modules: $new_with_security
7543 for sec
in $new_with_security
7545 if test x
$sec = xksm
; then
7546 echo $ac_n "checking to see which crypto API we need to use""... $ac_c" 1>&6
7547 echo "configure:7548: checking to see which crypto API we need to use" >&5
7549 echo $ac_n "checking for krb5_c_encrypt""... $ac_c" 1>&6
7550 echo "configure:7551: checking for krb5_c_encrypt" >&5
7551 if eval "test \"`echo '$''{'ac_cv_func_krb5_c_encrypt'+set}'`\" = set"; then
7552 echo $ac_n "(cached) $ac_c" 1>&6
7554 cat > conftest.
$ac_ext <<EOF
7555 #line 7556 "configure"
7556 #include "confdefs.h"
7557 /* System header to define __stub macros and hopefully few prototypes,
7558 which can conflict with char krb5_c_encrypt(); below. */
7560 /* Override any gcc2 internal prototype to avoid an error. */
7561 /* We use char because int might match the return type of a gcc2
7562 builtin and then its argument prototype would still apply. */
7563 char krb5_c_encrypt();
7567 /* The GNU C library defines this for functions which it implements
7568 to always fail with ENOSYS. Some functions are actually named
7569 something starting with __ and the normal name is an alias. */
7570 #if defined (__stub_krb5_c_encrypt) || defined (__stub___krb5_c_encrypt)
7578 if { (eval echo configure
:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7580 eval "ac_cv_func_krb5_c_encrypt=yes"
7582 echo "configure: failed program was:" >&5
7583 cat conftest.
$ac_ext >&5
7585 eval "ac_cv_func_krb5_c_encrypt=no"
7590 if eval "test \"`echo '$ac_cv_func_'krb5_c_encrypt`\" = yes"; then
7591 echo "$ac_t""yes" 1>&6
7593 echo "$ac_t""new MIT crypto API" 1>&6
7594 cat >> confdefs.h
<<\EOF
7595 #define MIT_NEW_CRYPTO 1
7599 echo "$ac_t""no" 1>&6
7601 echo "$ac_t""old MIT crypto API" 1>&6
7607 echo $ac_n "checking for and configuring mib modules to use""... $ac_c" 1>&6
7608 echo "configure:7609: checking for and configuring mib modules to use" >&5
7611 mibdir
="agent/mibgroup"
7614 new_with_mib_modules
=`echo $with_mib_modules | sed 's/,/ /g;'`
7615 new_with_out_mib_modules
=`echo $with_out_mib_modules | sed 's/,/ /g;'`
7616 new_module_list
="mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx agent_mibs utilities $new_with_mib_modules"
7617 default_mibs
=IP-MIB
:IF-MIB
:TCP-MIB
:UDP-MIB
:SNMPv2-MIB
:RFC1213-MIB
:NOTIFICATION-LOG-MIB
7619 if test "x$mini_agent" = "xyes"; then
7620 new_with_out_mib_modules
="mibII $new_with_out_mib_modules"
7621 new_module_list
="snmpv3mibs mibII/snmp_mib mibII/system_mib mibII/sysORTable mibII/vacm_vars $new_with_mib_modules"
7622 default_mibs
=SNMPv2-MIB
:RFC1213-MIB
7623 default_mibs_install
=" "
7627 if test "x$enable_ipv6" = "xyes"; then
7628 new_module_list
="$new_module_list mibII/ipv6"
7631 if test ! -d agent
; then
7634 if test ! -d agent
/mibgroup
; then
7635 mkdir agent
/mibgroup
7637 for i
in $mibdir/mib_module_includes.h
$mibdir/mib_module_inits.h
$mibdir/mib_module_shutdown.h include
/net-snmp
/agent
/mib_module_config.h
$mibdir/mib_module_dot_conf.h
; do
7639 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $i
7642 test_modules
="$new_module_list"
7646 for i
in $test_modules
7648 if echo " $new_with_out_mib_modules " |
grep " $i " > /dev
/null
; then
7651 new_module_list
="$new_module_list $i"
7656 echo "$ac_t""$new_module_list." 1>&6
7658 cat >> configure-summary
<< EOF
7659 Agent MIB code: $new_module_list
7663 echo $ac_n "checking for and configuring mib modules pieces to use""... $ac_c" 1>&6
7664 echo "configure:7665: checking for and configuring mib modules pieces to use" >&5
7668 while test "x$new_module_list" != "x"; do
7669 for i
in $new_module_list
7671 if echo " $new_with_out_mib_modules " |
grep " $i " > /dev
/null
; then
7674 if test -f $srcdir/$mibdir/$i.h
; then
7676 new_list_arch
=`grep config_arch_require $srcdir/$mibdir/$i.h | sed 's/.*config_arch_require(\(.*\), *\(.*\)).*/\1-xarchx-\2/'`
7677 if test "x$new_list_arch" != "x"; then
7678 for j
in $new_list_arch
7680 archtest
=`echo $j | sed 's/-xarchx-.*//'`
7681 if test "x$target_os" = "x$archtest" -o "x$PARTIALTARGETOS" = "x$archtest"; then
7682 new_list
="$new_list `echo $j | sed 's/.*-xarchx-//'`"
7686 new_list
="$new_list `grep config_require $srcdir/$mibdir/$i.h | sed 's/.*config_require(\(.*\)).*/\1/'`"
7687 if test "x$new_list" != "x"; then
7690 if test ! -f $srcdir/$mibdir/$j.h
; then
7692 { echo "configure: error: mib module "$i" requires module "$j" but $j.h or $j.c could not be found in $srcdir/$mibdir" 1>&2; exit 1; }
7694 elif echo " $new_with_out_mib_modules " |
grep " $j " > /dev
/null
; then
7696 echo "configure: warning: mib module "$i" requires module "$j" but you told me to compile without it" 1>&2
7698 elif echo " $module_list $new_list_two $new_module_list " |
grep " $j " > /dev
/null
; then
7701 new_list_two
="$new_list_two $j"
7705 new_mibs
=`grep config_add_mib $srcdir/$mibdir/$i.h | sed 's/.*config_add_mib(\(.*\)).*/\1/'`
7706 if test "x$new_mibs" != "x"; then
7709 if test "x`echo :$default_mibs: | grep :$j:`" = "x"; then
7710 default_mibs
="$default_mibs:$j"
7712 if test -f $srcdir/mibs
/$j.txt
; then
7713 if echo $default_mibs_install |
grep " $j " > /dev
/null
; then
7716 default_mibs_install
="$default_mibs_install $j.txt"
7723 { echo "configure: error: module files $i.h or $i.c could not be found in $srcdir/$mibdir" 1>&2; exit 1; }
7726 module_list
="$module_list $i"
7727 echo '#include "'"mibgroup/$i.h"'"' >> $mibdir/mib_module_includes.h
7728 module_list_h
="$module_list_h mibgroup/$i.h"
7729 if test -f $srcdir/$mibdir/$i.c
; then
7730 module_list_code
="$module_list_code $i"
7731 mnm
=`echo $i | sed 's/.*\///;s/\.c$//;'`
7732 temp_init
=`grep init_$mnm $srcdir/$mibdir/$i.c | grep -v _init_$mnm`
7733 if test "x$temp_init" != "x"; then
7734 echo " if (should_init(\"$mnm\")) init_$mnm();" >> $mibdir/mib_module_inits.h
7736 if grep shutdown_
`basename $i` $srcdir/$mibdir/$i.c
> /dev
/null
; then
7737 echo " if (should_init(\"`basename $i`\")) shutdown_`basename $i`();" >> $mibdir/mib_module_shutdown.h
7740 if test "x`echo $i | sed 's/\///g;'`" != "x$i"; then
7741 mnd
=`echo $i | sed 's/\/[^/]*$//;'`
7742 if test ! -d .
/$mibdir/$mnd; then
7743 module_directories
="$module_directories ./$mibdir/$mnd"
7746 if grep config_load_mib
$srcdir/$mibdir/$i.h
> /dev
/null
2>&1; then
7748 echo "configure: warning: mib module "$i" uses the "config_load_mib
" directive" 1>&2
7751 grep config_parse_dot_conf
$srcdir/$mibdir/$i.h |
sed 's@.*config_parse_dot_conf(\([^)]*\), *\([^),]*\), *\([^),]*\), *\([^),]*\)).*@register_config_handler("snmpd",\1, \2, \3, \4);@' >> $mibdir/mib_module_dot_conf.h
7752 sym
="`echo ${i} | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`"
7753 echo "/* Define if compiling with the ${i} module files. */" >> include
/net-snmp
/agent
/mib_module_config.h
7754 echo "#define USING_${sym}_MODULE 1" >> include
/net-snmp
/agent
/mib_module_config.h
7755 echo " " >> include
/net-snmp
/agent
/mib_module_config.h
7756 echo $ac_n " $i$ac_c" >&$FD
7759 new_module_list
="$new_list_two"
7762 module_list_o
=`echo "$module_list_code " | sed 's/\([^ ]\) /\1.o /g'`
7763 module_list_lo
=`echo "$module_list_code " | sed 's/\([^ ]\) /\1.lo /g'`
7764 module_list_c
=`echo "$module_list_code " | sed 's/\([^ ]\) /\1.c /g'`
7765 mibgroup_list_o
=`echo " $module_list_o " | sed 's@ \([^ ]*\)\.o@ mibgroup/\1.o @g'`
7766 mibgroup_list_lo
=`echo " $module_list_lo " | sed 's@ \([^ ]*\)\.lo@ mibgroup/\1.lo @g'`
7768 MODULE_LIST
=$module_list_code
7779 echo "$ac_t""." 1>&6
7781 echo $ac_n "checking if directories need to be created""... $ac_c" 1>&6
7782 echo "configure:7783: checking if directories need to be created" >&5
7783 for i
in $module_directories; do
7784 $srcdir/mkinstalldirs
$i
7786 echo "$ac_t""." 1>&6
7788 echo $ac_n "checking default mib files to read""... $ac_c" 1>&6
7789 echo "configure:7790: checking default mib files to read" >&5
7790 if test "x$DEFAULT_MIBS" = "x"; then
7791 DEFAULT_MIBS
="$default_mibs"
7793 cat >> confdefs.h
<<EOF
7794 #define DEFAULT_MIBS "$DEFAULT_MIBS"
7797 echo "$ac_t""$DEFAULT_MIBS" 1>&6
7800 echo $ac_n "checking for location of system kernel""... $ac_c" 1>&6
7801 echo "configure:7802: checking for location of system kernel" >&5
7802 if eval "test \"`echo '$''{'ac_cv_KERNEL_LOC'+set}'`\" = set"; then
7803 echo $ac_n "(cached) $ac_c" 1>&6
7805 ac_cv_KERNEL_LOC
="unknown"
7807 if test -c /dev
/null
; then
7809 elif test -f /dev
/null
; then
7814 for i
in /vmunix
/hp-ux
/stand
/vmunix
/dev
/ksyms
/kernel
/unix
/kernel
/genunix
/netbsd
/unix
/kernel
/bsd
/mach_kernel
7816 if test -f $i -o $CFLAG $i; then
7817 ac_cv_KERNEL_LOC
="$i"
7821 if test $i = "unknown"; then
7822 echo "configure: warning: Can't find system kernel... Setting to /vmunix" 1>&2
7823 ac_cv_KERNEL_LOC
="/vmunix"
7828 echo "$ac_t""$ac_cv_KERNEL_LOC" 1>&6
7830 cat >> confdefs.h
<<EOF
7831 #define KERNEL_LOC "$ac_cv_KERNEL_LOC"
7836 echo $ac_n "checking for mount table location""... $ac_c" 1>&6
7837 echo "configure:7838: checking for mount table location" >&5
7838 if eval "test \"`echo '$''{'ac_cv_ETC_MNTTAB'+set}'`\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7841 ac_cv_ETC_MNTTAB
="unknown"
7842 for i
in /etc
/mnttab
/etc
/mtab
/etc
/filesystems
7845 ac_cv_ETC_MNTTAB
="$i"
7852 echo "$ac_t""$ac_cv_ETC_MNTTAB" 1>&6
7854 cat >> confdefs.h
<<EOF
7855 #define ETC_MNTTAB "$ac_cv_ETC_MNTTAB"
7859 echo $ac_n "checking for location of swap device""... $ac_c" 1>&6
7860 echo "configure:7861: checking for location of swap device" >&5
7861 if eval "test \"`echo '$''{'ac_cv_DMEM_LOC'+set}'`\" = set"; then
7862 echo $ac_n "(cached) $ac_c" 1>&6
7866 if test -f /dev
/kmem
; then
7868 elif test -c /dev
/kmem
; then
7874 if $CTEST /dev
/dmem
; then
7875 ac_cv_DMEM_LOC
="/dev/dmem"
7876 elif $CTEST /dev
/drum
; then
7877 ac_cv_DMEM_LOC
="/dev/drum"
7879 ac_cv_DMEM_LOC
="none"
7884 echo "$ac_t""$ac_cv_DMEM_LOC" 1>&6
7886 if test "x$ac_cv_DMEM_LOC" != "xnone"; then
7887 cat >> confdefs.h
<<EOF
7888 #define DMEM_LOC "$ac_cv_DMEM_LOC"
7894 if test "x$use_efence" = "xyes"; then
7895 echo $ac_n "checking for EF_Exit in -lefence""... $ac_c" 1>&6
7896 echo "configure:7897: checking for EF_Exit in -lefence" >&5
7897 ac_lib_var
=`echo efence'_'EF_Exit | sed 'y%./+-%__p_%'`
7898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7899 echo $ac_n "(cached) $ac_c" 1>&6
7901 ac_save_LIBS
="$LIBS"
7902 LIBS
="-lefence $LIBS"
7903 cat > conftest.
$ac_ext <<EOF
7904 #line 7905 "configure"
7905 #include "confdefs.h"
7906 /* Override any gcc2 internal prototype to avoid an error. */
7907 /* We use char because int might match the return type of a gcc2
7908 builtin and then its argument prototype would still apply. */
7915 if { (eval echo configure
:7916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7917 eval "ac_cv_lib_$ac_lib_var=yes"
7919 echo "configure: failed program was:" >&5
7920 cat conftest.
$ac_ext >&5
7922 eval "ac_cv_lib_$ac_lib_var=no"
7925 LIBS
="$ac_save_LIBS"
7928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7929 echo "$ac_t""yes" 1>&6
7930 ac_tr_lib
=HAVE_LIB
`echo efence | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7931 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7932 cat >> confdefs.h
<<EOF
7933 #define $ac_tr_lib 1
7936 LIBS
="-lefence $LIBS"
7939 echo "$ac_t""no" 1>&6
7944 echo $ac_n "checking for asin in -lm""... $ac_c" 1>&6
7945 echo "configure:7946: checking for asin in -lm" >&5
7946 ac_lib_var
=`echo m'_'asin | sed 'y%./+-%__p_%'`
7947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7948 echo $ac_n "(cached) $ac_c" 1>&6
7950 ac_save_LIBS
="$LIBS"
7952 cat > conftest.
$ac_ext <<EOF
7953 #line 7954 "configure"
7954 #include "confdefs.h"
7955 /* Override any gcc2 internal prototype to avoid an error. */
7956 /* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */
7964 if { (eval echo configure
:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7966 eval "ac_cv_lib_$ac_lib_var=yes"
7968 echo "configure: failed program was:" >&5
7969 cat conftest.
$ac_ext >&5
7971 eval "ac_cv_lib_$ac_lib_var=no"
7974 LIBS
="$ac_save_LIBS"
7977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7978 echo "$ac_t""yes" 1>&6
7979 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7980 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7981 cat >> confdefs.h
<<EOF
7982 #define $ac_tr_lib 1
7988 echo "$ac_t""no" 1>&6
7991 echo $ac_n "checking for nlist in -lelf""... $ac_c" 1>&6
7992 echo "configure:7993: checking for nlist in -lelf" >&5
7993 ac_lib_var
=`echo elf'_'nlist | sed 'y%./+-%__p_%'`
7994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7995 echo $ac_n "(cached) $ac_c" 1>&6
7997 ac_save_LIBS
="$LIBS"
7999 cat > conftest.
$ac_ext <<EOF
8000 #line 8001 "configure"
8001 #include "confdefs.h"
8002 /* Override any gcc2 internal prototype to avoid an error. */
8003 /* We use char because int might match the return type of a gcc2
8004 builtin and then its argument prototype would still apply. */
8011 if { (eval echo configure
:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8013 eval "ac_cv_lib_$ac_lib_var=yes"
8015 echo "configure: failed program was:" >&5
8016 cat conftest.
$ac_ext >&5
8018 eval "ac_cv_lib_$ac_lib_var=no"
8021 LIBS
="$ac_save_LIBS"
8024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8025 echo "$ac_t""yes" 1>&6
8026 ac_tr_lib
=HAVE_LIB
`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8027 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8028 cat >> confdefs.h
<<EOF
8029 #define $ac_tr_lib 1
8035 echo "$ac_t""no" 1>&6
8039 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
8040 echo "configure:8041: checking for gethostbyname" >&5
8041 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8042 echo $ac_n "(cached) $ac_c" 1>&6
8044 cat > conftest.
$ac_ext <<EOF
8045 #line 8046 "configure"
8046 #include "confdefs.h"
8047 /* System header to define __stub macros and hopefully few prototypes,
8048 which can conflict with char gethostbyname(); below. */
8050 /* Override any gcc2 internal prototype to avoid an error. */
8051 /* We use char because int might match the return type of a gcc2
8052 builtin and then its argument prototype would still apply. */
8053 char gethostbyname();
8057 /* The GNU C library defines this for functions which it implements
8058 to always fail with ENOSYS. Some functions are actually named
8059 something starting with __ and the normal name is an alias. */
8060 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8068 if { (eval echo configure
:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8070 eval "ac_cv_func_gethostbyname=yes"
8072 echo "configure: failed program was:" >&5
8073 cat conftest.
$ac_ext >&5
8075 eval "ac_cv_func_gethostbyname=no"
8080 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8081 echo "$ac_t""yes" 1>&6
8082 cat >> confdefs.h
<<\EOF
8083 #define HAVE_GETHOSTBYNAME 1
8087 echo "$ac_t""no" 1>&6
8088 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8089 echo "configure:8090: checking for gethostbyname in -lnsl" >&5
8090 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
8094 ac_save_LIBS
="$LIBS"
8096 cat > conftest.
$ac_ext <<EOF
8097 #line 8098 "configure"
8098 #include "confdefs.h"
8099 /* Override any gcc2 internal prototype to avoid an error. */
8100 /* We use char because int might match the return type of a gcc2
8101 builtin and then its argument prototype would still apply. */
8102 char gethostbyname();
8108 if { (eval echo configure
:8109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8110 eval "ac_cv_lib_$ac_lib_var=yes"
8112 echo "configure: failed program was:" >&5
8113 cat conftest.
$ac_ext >&5
8115 eval "ac_cv_lib_$ac_lib_var=no"
8118 LIBS
="$ac_save_LIBS"
8121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8122 echo "$ac_t""yes" 1>&6
8123 cat >> confdefs.h
<<\EOF
8124 #define HAVE_GETHOSTBYNAME 1
8127 LIBS
="${LIBS} -lnsl"
8129 echo "$ac_t""no" 1>&6
8134 echo $ac_n "checking for getservbyname""... $ac_c" 1>&6
8135 echo "configure:8136: checking for getservbyname" >&5
8136 if eval "test \"`echo '$''{'ac_cv_func_getservbyname'+set}'`\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8139 cat > conftest.
$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 /* System header to define __stub macros and hopefully few prototypes,
8143 which can conflict with char getservbyname(); below. */
8145 /* Override any gcc2 internal prototype to avoid an error. */
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8148 char getservbyname();
8152 /* The GNU C library defines this for functions which it implements
8153 to always fail with ENOSYS. Some functions are actually named
8154 something starting with __ and the normal name is an alias. */
8155 #if defined (__stub_getservbyname) || defined (__stub___getservbyname)
8163 if { (eval echo configure
:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8165 eval "ac_cv_func_getservbyname=yes"
8167 echo "configure: failed program was:" >&5
8168 cat conftest.
$ac_ext >&5
8170 eval "ac_cv_func_getservbyname=no"
8175 if eval "test \"`echo '$ac_cv_func_'getservbyname`\" = yes"; then
8176 echo "$ac_t""yes" 1>&6
8177 cat >> confdefs.h
<<\EOF
8178 #define HAVE_GETSERVBYNAME 1
8182 echo "$ac_t""no" 1>&6
8183 echo $ac_n "checking for getservbyname in -lsocket""... $ac_c" 1>&6
8184 echo "configure:8185: checking for getservbyname in -lsocket" >&5
8185 ac_lib_var
=`echo socket'_'getservbyname | sed 'y%./+-%__p_%'`
8186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8187 echo $ac_n "(cached) $ac_c" 1>&6
8189 ac_save_LIBS
="$LIBS"
8190 LIBS
="-lsocket $LIBS"
8191 cat > conftest.
$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8194 /* Override any gcc2 internal prototype to avoid an error. */
8195 /* We use char because int might match the return type of a gcc2
8196 builtin and then its argument prototype would still apply. */
8197 char getservbyname();
8203 if { (eval echo configure
:8204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8205 eval "ac_cv_lib_$ac_lib_var=yes"
8207 echo "configure: failed program was:" >&5
8208 cat conftest.
$ac_ext >&5
8210 eval "ac_cv_lib_$ac_lib_var=no"
8213 LIBS
="$ac_save_LIBS"
8216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8217 echo "$ac_t""yes" 1>&6
8218 cat >> confdefs.h
<<\EOF
8219 #define HAVE_GETSERVBYNAME 1
8222 LIBS
="${LIBS} -lsocket"
8224 echo "$ac_t""no" 1>&6
8230 echo $ac_n "checking for kstat_lookup in -lkstat""... $ac_c" 1>&6
8231 echo "configure:8232: checking for kstat_lookup in -lkstat" >&5
8232 ac_lib_var
=`echo kstat'_'kstat_lookup | sed 'y%./+-%__p_%'`
8233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8234 echo $ac_n "(cached) $ac_c" 1>&6
8236 ac_save_LIBS
="$LIBS"
8237 LIBS
="-lkstat $LIBS"
8238 cat > conftest.
$ac_ext <<EOF
8239 #line 8240 "configure"
8240 #include "confdefs.h"
8241 /* Override any gcc2 internal prototype to avoid an error. */
8242 /* We use char because int might match the return type of a gcc2
8243 builtin and then its argument prototype would still apply. */
8244 char kstat_lookup();
8250 if { (eval echo configure
:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8252 eval "ac_cv_lib_$ac_lib_var=yes"
8254 echo "configure: failed program was:" >&5
8255 cat conftest.
$ac_ext >&5
8257 eval "ac_cv_lib_$ac_lib_var=no"
8260 LIBS
="$ac_save_LIBS"
8263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8264 echo "$ac_t""yes" 1>&6
8265 ac_tr_lib
=HAVE_LIB
`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8266 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8267 cat >> confdefs.h
<<EOF
8268 #define $ac_tr_lib 1
8271 LIBS
="-lkstat $LIBS"
8274 echo "$ac_t""no" 1>&6
8277 echo $ac_n "checking for nlist in -lmld""... $ac_c" 1>&6
8278 echo "configure:8279: checking for nlist in -lmld" >&5
8279 ac_lib_var
=`echo mld'_'nlist | sed 'y%./+-%__p_%'`
8280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8281 echo $ac_n "(cached) $ac_c" 1>&6
8283 ac_save_LIBS
="$LIBS"
8285 cat > conftest.
$ac_ext <<EOF
8286 #line 8287 "configure"
8287 #include "confdefs.h"
8288 /* Override any gcc2 internal prototype to avoid an error. */
8289 /* We use char because int might match the return type of a gcc2
8290 builtin and then its argument prototype would still apply. */
8297 if { (eval echo configure
:8298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8299 eval "ac_cv_lib_$ac_lib_var=yes"
8301 echo "configure: failed program was:" >&5
8302 cat conftest.
$ac_ext >&5
8304 eval "ac_cv_lib_$ac_lib_var=no"
8307 LIBS
="$ac_save_LIBS"
8310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8311 echo "$ac_t""yes" 1>&6
8312 ac_tr_lib
=HAVE_LIB
`echo mld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8313 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8314 cat >> confdefs.h
<<EOF
8315 #define $ac_tr_lib 1
8321 echo "$ac_t""no" 1>&6
8325 if test "x$tryopenssl" != "xno"; then
8326 if test "x$tryrsaref" != "xno"; then
8327 echo $ac_n "checking for RSAPrivateDecrypt in -lrsaref""... $ac_c" 1>&6
8328 echo "configure:8329: checking for RSAPrivateDecrypt in -lrsaref" >&5
8329 ac_lib_var
=`echo rsaref'_'RSAPrivateDecrypt | sed 'y%./+-%__p_%'`
8330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8333 ac_save_LIBS
="$LIBS"
8334 LIBS
="-lrsaref $LIBS"
8335 cat > conftest.
$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 /* Override any gcc2 internal prototype to avoid an error. */
8339 /* We use char because int might match the return type of a gcc2
8340 builtin and then its argument prototype would still apply. */
8341 char RSAPrivateDecrypt();
8347 if { (eval echo configure
:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8349 eval "ac_cv_lib_$ac_lib_var=yes"
8351 echo "configure: failed program was:" >&5
8352 cat conftest.
$ac_ext >&5
8354 eval "ac_cv_lib_$ac_lib_var=no"
8357 LIBS
="$ac_save_LIBS"
8360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8361 echo "$ac_t""yes" 1>&6
8362 ac_tr_lib
=HAVE_LIB
`echo rsaref | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8364 cat >> confdefs.h
<<EOF
8365 #define $ac_tr_lib 1
8368 LIBS
="-lrsaref $LIBS"
8371 echo "$ac_t""no" 1>&6
8374 echo $ac_n "checking for RSA_PKCS1_RSAref in -lRSAglue""... $ac_c" 1>&6
8375 echo "configure:8376: checking for RSA_PKCS1_RSAref in -lRSAglue" >&5
8376 ac_lib_var
=`echo RSAglue'_'RSA_PKCS1_RSAref | sed 'y%./+-%__p_%'`
8377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8378 echo $ac_n "(cached) $ac_c" 1>&6
8380 ac_save_LIBS
="$LIBS"
8381 LIBS
="-lRSAglue $LIBS"
8382 cat > conftest.
$ac_ext <<EOF
8383 #line 8384 "configure"
8384 #include "confdefs.h"
8385 /* Override any gcc2 internal prototype to avoid an error. */
8386 /* We use char because int might match the return type of a gcc2
8387 builtin and then its argument prototype would still apply. */
8388 char RSA_PKCS1_RSAref();
8394 if { (eval echo configure
:8395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8396 eval "ac_cv_lib_$ac_lib_var=yes"
8398 echo "configure: failed program was:" >&5
8399 cat conftest.
$ac_ext >&5
8401 eval "ac_cv_lib_$ac_lib_var=no"
8404 LIBS
="$ac_save_LIBS"
8407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8408 echo "$ac_t""yes" 1>&6
8409 ac_tr_lib
=HAVE_LIB
`echo RSAglue | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8410 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8411 cat >> confdefs.h
<<EOF
8412 #define $ac_tr_lib 1
8415 LIBS
="-lRSAglue $LIBS"
8418 echo "$ac_t""no" 1>&6
8423 echo $ac_n "checking for EVP_md5 in -lcrypto""... $ac_c" 1>&6
8424 echo "configure:8425: checking for EVP_md5 in -lcrypto" >&5
8425 ac_lib_var
=`echo crypto'_'EVP_md5 | sed 'y%./+-%__p_%'`
8426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8427 echo $ac_n "(cached) $ac_c" 1>&6
8429 ac_save_LIBS
="$LIBS"
8430 LIBS
="-lcrypto $LIBS"
8431 cat > conftest.
$ac_ext <<EOF
8432 #line 8433 "configure"
8433 #include "confdefs.h"
8434 /* Override any gcc2 internal prototype to avoid an error. */
8435 /* We use char because int might match the return type of a gcc2
8436 builtin and then its argument prototype would still apply. */
8443 if { (eval echo configure
:8444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8445 eval "ac_cv_lib_$ac_lib_var=yes"
8447 echo "configure: failed program was:" >&5
8448 cat conftest.
$ac_ext >&5
8450 eval "ac_cv_lib_$ac_lib_var=no"
8453 LIBS
="$ac_save_LIBS"
8456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8457 echo "$ac_t""yes" 1>&6
8458 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8459 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8460 cat >> confdefs.h
<<EOF
8461 #define $ac_tr_lib 1
8464 LIBS
="-lcrypto $LIBS"
8467 echo "$ac_t""no" 1>&6
8470 for ac_func
in AES_cfb128_encrypt
8472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8473 echo "configure:8474: checking for $ac_func" >&5
8474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8475 echo $ac_n "(cached) $ac_c" 1>&6
8477 cat > conftest.
$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8480 /* System header to define __stub macros and hopefully few prototypes,
8481 which can conflict with char $ac_func(); below. */
8483 /* Override any gcc2 internal prototype to avoid an error. */
8484 /* We use char because int might match the return type of a gcc2
8485 builtin and then its argument prototype would still apply. */
8490 /* The GNU C library defines this for functions which it implements
8491 to always fail with ENOSYS. Some functions are actually named
8492 something starting with __ and the normal name is an alias. */
8493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8501 if { (eval echo configure
:8502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8503 eval "ac_cv_func_$ac_func=yes"
8505 echo "configure: failed program was:" >&5
8506 cat conftest.
$ac_ext >&5
8508 eval "ac_cv_func_$ac_func=no"
8513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8514 echo "$ac_t""yes" 1>&6
8515 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8516 cat >> confdefs.h
<<EOF
8517 #define $ac_tr_func 1
8521 echo "$ac_t""no" 1>&6
8529 _cppflags
="${CPPFLAGS}"
8530 _ldflags
="${LDFLAGS}"
8532 # Check whether --with-libwrap or --without-libwrap was given.
8533 if test "${with_libwrap+set}" = set; then
8534 withval
="$with_libwrap"
8536 if test "$with_libwrap" != "no"; then
8537 if test "$with_libwrap" != "yes"; then
8538 CPPFLAGS
="${CPPFLAGS} -I$with_libwrap/include"
8539 LDFLAGS
="${LDFLAGS} -L$with_libwrap/lib"
8543 ac_safe
=`echo "tcpd.h" | sed 'y%./+-%__p_%'`
8544 echo $ac_n "checking for tcpd.h""... $ac_c" 1>&6
8545 echo "configure:8546: checking for tcpd.h" >&5
8546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8547 echo $ac_n "(cached) $ac_c" 1>&6
8549 cat > conftest.
$ac_ext <<EOF
8550 #line 8551 "configure"
8551 #include "confdefs.h"
8554 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8555 { (eval echo configure
:8556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8556 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8557 if test -z "$ac_err"; then
8559 eval "ac_cv_header_$ac_safe=yes"
8562 echo "configure: failed program was:" >&5
8563 cat conftest.
$ac_ext >&5
8565 eval "ac_cv_header_$ac_safe=no"
8569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8570 echo "$ac_t""yes" 1>&6
8573 echo "$ac_t""no" 1>&6
8574 { echo "configure: error: Asked to use libwrap but I couldn't find tcpd.h." 1>&2; exit 1; }
8579 echo $ac_n "checking for TCP wrappers library -lwrap""... $ac_c" 1>&6
8580 echo "configure:8581: checking for TCP wrappers library -lwrap" >&5
8581 cat > conftest.
$ac_ext <<EOF
8582 #line 8583 "configure"
8583 #include "confdefs.h"
8585 int allow_severity = 0;
8586 int deny_severity = 0;
8589 hosts_access((void *)0)
8592 if { (eval echo configure
:8593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8595 echo "$ac_t""yes" 1>&6
8596 cat >> confdefs.h
<<\EOF
8597 #define USE_LIBWRAP 1
8600 test "$with_libwrap" != no
-a "$with_libwrap" != yes && WRAPLIBS
="-L$with_libwrap/lib"
8601 WRAPLIBS
="$WRAPLIBS -lwrap"
8603 echo "configure: failed program was:" >&5
8604 cat conftest.
$ac_ext >&5
8607 echo "$ac_t""no" 1>&6
8608 echo $ac_n "checking for yp_get_default_domain""... $ac_c" 1>&6
8609 echo "configure:8610: checking for yp_get_default_domain" >&5
8610 if eval "test \"`echo '$''{'ac_cv_func_yp_get_default_domain'+set}'`\" = set"; then
8611 echo $ac_n "(cached) $ac_c" 1>&6
8613 cat > conftest.
$ac_ext <<EOF
8614 #line 8615 "configure"
8615 #include "confdefs.h"
8616 /* System header to define __stub macros and hopefully few prototypes,
8617 which can conflict with char yp_get_default_domain(); below. */
8619 /* Override any gcc2 internal prototype to avoid an error. */
8620 /* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8622 char yp_get_default_domain();
8626 /* The GNU C library defines this for functions which it implements
8627 to always fail with ENOSYS. Some functions are actually named
8628 something starting with __ and the normal name is an alias. */
8629 #if defined (__stub_yp_get_default_domain) || defined (__stub___yp_get_default_domain)
8632 yp_get_default_domain();
8637 if { (eval echo configure
:8638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8639 eval "ac_cv_func_yp_get_default_domain=yes"
8641 echo "configure: failed program was:" >&5
8642 cat conftest.
$ac_ext >&5
8644 eval "ac_cv_func_yp_get_default_domain=no"
8649 if eval "test \"`echo '$ac_cv_func_'yp_get_default_domain`\" = yes"; then
8650 echo "$ac_t""yes" 1>&6
8653 echo "$ac_t""no" 1>&6
8654 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
8655 echo "configure:8656: checking for yp_get_default_domain in -lnsl" >&5
8656 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
8657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8658 echo $ac_n "(cached) $ac_c" 1>&6
8660 ac_save_LIBS
="$LIBS"
8662 cat > conftest.
$ac_ext <<EOF
8663 #line 8664 "configure"
8664 #include "confdefs.h"
8665 /* Override any gcc2 internal prototype to avoid an error. */
8666 /* We use char because int might match the return type of a gcc2
8667 builtin and then its argument prototype would still apply. */
8668 char yp_get_default_domain();
8671 yp_get_default_domain()
8674 if { (eval echo configure
:8675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8676 eval "ac_cv_lib_$ac_lib_var=yes"
8678 echo "configure: failed program was:" >&5
8679 cat conftest.
$ac_ext >&5
8681 eval "ac_cv_lib_$ac_lib_var=no"
8684 LIBS
="$ac_save_LIBS"
8687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8688 echo "$ac_t""yes" 1>&6
8689 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
8690 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8691 cat >> confdefs.h
<<EOF
8692 #define $ac_tr_lib 1
8698 echo "$ac_t""no" 1>&6
8703 echo $ac_n "checking for TCP wrappers library -lwrap linked with -lnsl""... $ac_c" 1>&6
8704 echo "configure:8705: checking for TCP wrappers library -lwrap linked with -lnsl" >&5
8705 cat > conftest.
$ac_ext <<EOF
8706 #line 8707 "configure"
8707 #include "confdefs.h"
8709 int allow_severity = 0;
8710 int deny_severity = 0;
8713 hosts_access((void *)0)
8716 if { (eval echo configure
:8717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8718 echo "$ac_t""yes" 1>&6
8719 cat >> confdefs.h
<<\EOF
8720 #define USE_LIBWRAP 1
8723 test "$with_libwrap" != no
-a "$with_libwrap" != yes && WRAPLIBS
="-L$with_libwrap/lib"
8724 WRAPLIBS
="$WRAPLIBS -lwrap -lnsl"
8726 echo "configure: failed program was:" >&5
8727 cat conftest.
$ac_ext >&5
8729 echo "$ac_t""no" 1>&6
8730 { echo "configure: error: Asked to use libwrap but I couldn't find it." 1>&2; exit 1; }
8736 CPPFLAGS
=${_cppflags}
8744 if echo " $module_list " |
grep " host/hr_swinst " > /dev
/null
; then
8747 _cppflags
="${CPPFLAGS}"
8748 _ldflags
="${LDFLAGS}"
8750 # Check whether --with-zlib or --without-zlib was given.
8751 if test "${with_zlib+set}" = set; then
8752 withval
="$with_zlib"
8754 if test -d "$withval"; then
8755 CPPFLAGS
="${CPPFLAGS} -I$withval/include"
8756 LDFLAGS
="${LDFLAGS} -L$withval/lib"
8762 ac_safe
=`echo "zlib.h" | sed 'y%./+-%__p_%'`
8763 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
8764 echo "configure:8765: checking for zlib.h" >&5
8765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8766 echo $ac_n "(cached) $ac_c" 1>&6
8768 cat > conftest.
$ac_ext <<EOF
8769 #line 8770 "configure"
8770 #include "confdefs.h"
8773 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8774 { (eval echo configure
:8775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8775 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8776 if test -z "$ac_err"; then
8778 eval "ac_cv_header_$ac_safe=yes"
8781 echo "configure: failed program was:" >&5
8782 cat conftest.
$ac_ext >&5
8784 eval "ac_cv_header_$ac_safe=no"
8788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8789 echo "$ac_t""yes" 1>&6
8790 echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
8791 echo "configure:8792: checking for gzread in -lz" >&5
8792 ac_lib_var
=`echo z'_'gzread | sed 'y%./+-%__p_%'`
8793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8794 echo $ac_n "(cached) $ac_c" 1>&6
8796 ac_save_LIBS
="$LIBS"
8798 cat > conftest.
$ac_ext <<EOF
8799 #line 8800 "configure"
8800 #include "confdefs.h"
8801 /* Override any gcc2 internal prototype to avoid an error. */
8802 /* We use char because int might match the return type of a gcc2
8803 builtin and then its argument prototype would still apply. */
8810 if { (eval echo configure
:8811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8812 eval "ac_cv_lib_$ac_lib_var=yes"
8814 echo "configure: failed program was:" >&5
8815 cat conftest.
$ac_ext >&5
8817 eval "ac_cv_lib_$ac_lib_var=no"
8820 LIBS
="$ac_save_LIBS"
8823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8824 echo "$ac_t""yes" 1>&6
8825 ac_tr_lib
=HAVE_LIB
`echo z | sed -e 's/^a-zA-Z0-9_/_/g' \
8826 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8827 cat >> confdefs.h
<<EOF
8828 #define $ac_tr_lib 1
8834 echo "$ac_t""no" 1>&6
8835 CPPFLAGS
=${_cppflags} LDFLAGS
=${_ldflags}
8839 echo "$ac_t""no" 1>&6
8840 CPPFLAGS
=${_cppflags} LDFLAGS
=${_ldflags}
8844 echo $ac_n "checking for bzread in -lbz2""... $ac_c" 1>&6
8845 echo "configure:8846: checking for bzread in -lbz2" >&5
8846 ac_lib_var
=`echo bz2'_'bzread | sed 'y%./+-%__p_%'`
8847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8848 echo $ac_n "(cached) $ac_c" 1>&6
8850 ac_save_LIBS
="$LIBS"
8852 cat > conftest.
$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8855 /* Override any gcc2 internal prototype to avoid an error. */
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8864 if { (eval echo configure
:8865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8866 eval "ac_cv_lib_$ac_lib_var=yes"
8868 echo "configure: failed program was:" >&5
8869 cat conftest.
$ac_ext >&5
8871 eval "ac_cv_lib_$ac_lib_var=no"
8874 LIBS
="$ac_save_LIBS"
8877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8878 echo "$ac_t""yes" 1>&6
8879 _rpmlibs
="$_rpmlibs -lbz2"
8881 echo "$ac_t""no" 1>&6
8882 echo $ac_n "checking for BZ2_bzread in -lbz2""... $ac_c" 1>&6
8883 echo "configure:8884: checking for BZ2_bzread in -lbz2" >&5
8884 ac_lib_var
=`echo bz2'_'BZ2_bzread | sed 'y%./+-%__p_%'`
8885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8886 echo $ac_n "(cached) $ac_c" 1>&6
8888 ac_save_LIBS
="$LIBS"
8890 cat > conftest.
$ac_ext <<EOF
8891 #line 8892 "configure"
8892 #include "confdefs.h"
8893 /* Override any gcc2 internal prototype to avoid an error. */
8894 /* We use char because int might match the return type of a gcc2
8895 builtin and then its argument prototype would still apply. */
8902 if { (eval echo configure
:8903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8904 eval "ac_cv_lib_$ac_lib_var=yes"
8906 echo "configure: failed program was:" >&5
8907 cat conftest.
$ac_ext >&5
8909 eval "ac_cv_lib_$ac_lib_var=no"
8912 LIBS
="$ac_save_LIBS"
8915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8916 echo "$ac_t""yes" 1>&6
8917 _rpmlibs
="$_rpmlibs -lbz2"
8919 echo "$ac_t""no" 1>&6
8925 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
8926 echo "configure:8927: checking for dbopen in -ldb1" >&5
8927 ac_lib_var
=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
8928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8929 echo $ac_n "(cached) $ac_c" 1>&6
8931 ac_save_LIBS
="$LIBS"
8933 cat > conftest.
$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8936 /* Override any gcc2 internal prototype to avoid an error. */
8937 /* We use char because int might match the return type of a gcc2
8938 builtin and then its argument prototype would still apply. */
8945 if { (eval echo configure
:8946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8947 eval "ac_cv_lib_$ac_lib_var=yes"
8949 echo "configure: failed program was:" >&5
8950 cat conftest.
$ac_ext >&5
8952 eval "ac_cv_lib_$ac_lib_var=no"
8955 LIBS
="$ac_save_LIBS"
8958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8959 echo "$ac_t""yes" 1>&6
8960 _rpmlibs
="-ldb1 $_rpmlibs"
8962 echo "$ac_t""no" 1>&6
8963 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
8964 echo "configure:8965: checking for dbopen in -ldb" >&5
8965 ac_lib_var
=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
8966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8967 echo $ac_n "(cached) $ac_c" 1>&6
8969 ac_save_LIBS
="$LIBS"
8971 cat > conftest.
$ac_ext <<EOF
8972 #line 8973 "configure"
8973 #include "confdefs.h"
8974 /* Override any gcc2 internal prototype to avoid an error. */
8975 /* We use char because int might match the return type of a gcc2
8976 builtin and then its argument prototype would still apply. */
8983 if { (eval echo configure
:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8985 eval "ac_cv_lib_$ac_lib_var=yes"
8987 echo "configure: failed program was:" >&5
8988 cat conftest.
$ac_ext >&5
8990 eval "ac_cv_lib_$ac_lib_var=no"
8993 LIBS
="$ac_save_LIBS"
8996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8997 echo "$ac_t""yes" 1>&6
8998 _rpmlibs
="-ldb $_rpmlibs"
9000 echo "$ac_t""no" 1>&6
9006 echo $ac_n "checking for db_create in -ldb-3.1""... $ac_c" 1>&6
9007 echo "configure:9008: checking for db_create in -ldb-3.1" >&5
9008 ac_lib_var
=`echo db-3.1'_'db_create | sed 'y%./+-%__p_%'`
9009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9010 echo $ac_n "(cached) $ac_c" 1>&6
9012 ac_save_LIBS
="$LIBS"
9013 LIBS
="-ldb-3.1 $LIBS"
9014 cat > conftest.
$ac_ext <<EOF
9015 #line 9016 "configure"
9016 #include "confdefs.h"
9017 /* Override any gcc2 internal prototype to avoid an error. */
9018 /* We use char because int might match the return type of a gcc2
9019 builtin and then its argument prototype would still apply. */
9026 if { (eval echo configure
:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9028 eval "ac_cv_lib_$ac_lib_var=yes"
9030 echo "configure: failed program was:" >&5
9031 cat conftest.
$ac_ext >&5
9033 eval "ac_cv_lib_$ac_lib_var=no"
9036 LIBS
="$ac_save_LIBS"
9039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9040 echo "$ac_t""yes" 1>&6
9041 _rpmlibs
="-ldb-3.1 $_rpmlibs"
9043 echo "$ac_t""no" 1>&6
9044 echo $ac_n "checking for db_create in -ldb-3.0""... $ac_c" 1>&6
9045 echo "configure:9046: checking for db_create in -ldb-3.0" >&5
9046 ac_lib_var
=`echo db-3.0'_'db_create | sed 'y%./+-%__p_%'`
9047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9048 echo $ac_n "(cached) $ac_c" 1>&6
9050 ac_save_LIBS
="$LIBS"
9051 LIBS
="-ldb-3.0 $LIBS"
9052 cat > conftest.
$ac_ext <<EOF
9053 #line 9054 "configure"
9054 #include "confdefs.h"
9055 /* Override any gcc2 internal prototype to avoid an error. */
9056 /* We use char because int might match the return type of a gcc2
9057 builtin and then its argument prototype would still apply. */
9064 if { (eval echo configure
:9065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9066 eval "ac_cv_lib_$ac_lib_var=yes"
9068 echo "configure: failed program was:" >&5
9069 cat conftest.
$ac_ext >&5
9071 eval "ac_cv_lib_$ac_lib_var=no"
9074 LIBS
="$ac_save_LIBS"
9077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9078 echo "$ac_t""yes" 1>&6
9079 _rpmlibs
="-ldb-3.0 $_rpmlibs"
9081 echo "$ac_t""no" 1>&6
9087 echo $ac_n "checking for poptParseArgvString in -lpopt""... $ac_c" 1>&6
9088 echo "configure:9089: checking for poptParseArgvString in -lpopt" >&5
9089 ac_lib_var
=`echo popt'_'poptParseArgvString | sed 'y%./+-%__p_%'`
9090 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9093 ac_save_LIBS
="$LIBS"
9095 cat > conftest.
$ac_ext <<EOF
9096 #line 9097 "configure"
9097 #include "confdefs.h"
9098 /* Override any gcc2 internal prototype to avoid an error. */
9099 /* We use char because int might match the return type of a gcc2
9100 builtin and then its argument prototype would still apply. */
9101 char poptParseArgvString();
9104 poptParseArgvString()
9107 if { (eval echo configure
:9108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9109 eval "ac_cv_lib_$ac_lib_var=yes"
9111 echo "configure: failed program was:" >&5
9112 cat conftest.
$ac_ext >&5
9114 eval "ac_cv_lib_$ac_lib_var=no"
9117 LIBS
="$ac_save_LIBS"
9120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9121 echo "$ac_t""yes" 1>&6
9122 _rpmlibs
="-lpopt $_rpmlibs"
9124 echo "$ac_t""no" 1>&6
9128 echo $ac_n "checking for Fopen in -lrpmio""... $ac_c" 1>&6
9129 echo "configure:9130: checking for Fopen in -lrpmio" >&5
9130 ac_lib_var
=`echo rpmio'_'Fopen | sed 'y%./+-%__p_%'`
9131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9132 echo $ac_n "(cached) $ac_c" 1>&6
9134 ac_save_LIBS
="$LIBS"
9135 LIBS
="-lrpmio $_rpmlibs $LIBS"
9136 cat > conftest.
$ac_ext <<EOF
9137 #line 9138 "configure"
9138 #include "confdefs.h"
9139 /* Override any gcc2 internal prototype to avoid an error. */
9140 /* We use char because int might match the return type of a gcc2
9141 builtin and then its argument prototype would still apply. */
9148 if { (eval echo configure
:9149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9150 eval "ac_cv_lib_$ac_lib_var=yes"
9152 echo "configure: failed program was:" >&5
9153 cat conftest.
$ac_ext >&5
9155 eval "ac_cv_lib_$ac_lib_var=no"
9158 LIBS
="$ac_save_LIBS"
9161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9162 echo "$ac_t""yes" 1>&6
9163 _rpmlibs
="-lrpmio $_rpmlibs"
9165 echo "$ac_t""no" 1>&6
9169 echo $ac_n "checking for rpmGetFilesystemList in -lrpm""... $ac_c" 1>&6
9170 echo "configure:9171: checking for rpmGetFilesystemList in -lrpm" >&5
9171 ac_lib_var
=`echo rpm'_'rpmGetFilesystemList | sed 'y%./+-%__p_%'`
9172 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9173 echo $ac_n "(cached) $ac_c" 1>&6
9175 ac_save_LIBS
="$LIBS"
9177 cat > conftest.
$ac_ext <<EOF
9178 #line 9179 "configure"
9179 #include "confdefs.h"
9180 /* Override any gcc2 internal prototype to avoid an error. */
9181 /* We use char because int might match the return type of a gcc2
9182 builtin and then its argument prototype would still apply. */
9183 char rpmGetFilesystemList();
9186 rpmGetFilesystemList()
9189 if { (eval echo configure
:9190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9191 eval "ac_cv_lib_$ac_lib_var=yes"
9193 echo "configure: failed program was:" >&5
9194 cat conftest.
$ac_ext >&5
9196 eval "ac_cv_lib_$ac_lib_var=no"
9199 LIBS
="$ac_save_LIBS"
9202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9203 echo "$ac_t""yes" 1>&6
9205 cat >> confdefs.h
<<\EOF
9206 #define HAVE_LIBRPM 1
9209 LIBS
="-lrpm $_rpmlibs $LIBS"
9210 CFLAGS
="$CFLAGS -I/usr/include/rpm"
9213 echo "$ac_t""no" 1>&6
9215 echo $ac_n "checking for rpmdbOpen in -lrpmdb""... $ac_c" 1>&6
9216 echo "configure:9217: checking for rpmdbOpen in -lrpmdb" >&5
9217 ac_lib_var
=`echo rpmdb'_'rpmdbOpen | sed 'y%./+-%__p_%'`
9218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9219 echo $ac_n "(cached) $ac_c" 1>&6
9221 ac_save_LIBS
="$LIBS"
9222 LIBS
="-lrpmdb -lrpm $_rpmlibs $LIBS"
9223 cat > conftest.
$ac_ext <<EOF
9224 #line 9225 "configure"
9225 #include "confdefs.h"
9226 /* Override any gcc2 internal prototype to avoid an error. */
9227 /* We use char because int might match the return type of a gcc2
9228 builtin and then its argument prototype would still apply. */
9235 if { (eval echo configure
:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9237 eval "ac_cv_lib_$ac_lib_var=yes"
9239 echo "configure: failed program was:" >&5
9240 cat conftest.
$ac_ext >&5
9242 eval "ac_cv_lib_$ac_lib_var=no"
9245 LIBS
="$ac_save_LIBS"
9248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9249 echo "$ac_t""yes" 1>&6
9251 cat >> confdefs.h
<<\EOF
9252 #define HAVE_LIBRPM 1
9255 LIBS
="-lrpmdb -lrpm $_rpmlibs $LIBS"
9256 CFLAGS
="$CFLAGS -I/usr/include/rpm"
9259 echo "$ac_t""no" 1>&6
9267 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9268 echo "configure:9269: checking for kvm_read in -lkvm" >&5
9269 ac_lib_var
=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9271 echo $ac_n "(cached) $ac_c" 1>&6
9273 ac_save_LIBS
="$LIBS"
9275 cat > conftest.
$ac_ext <<EOF
9276 #line 9277 "configure"
9277 #include "confdefs.h"
9278 /* Override any gcc2 internal prototype to avoid an error. */
9279 /* We use char because int might match the return type of a gcc2
9280 builtin and then its argument prototype would still apply. */
9287 if { (eval echo configure
:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9289 eval "ac_cv_lib_$ac_lib_var=yes"
9291 echo "configure: failed program was:" >&5
9292 cat conftest.
$ac_ext >&5
9294 eval "ac_cv_lib_$ac_lib_var=no"
9297 LIBS
="$ac_save_LIBS"
9300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9301 echo "$ac_t""yes" 1>&6
9302 ac_tr_lib
=HAVE_LIB
`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9304 cat >> confdefs.h
<<EOF
9305 #define $ac_tr_lib 1
9311 echo "$ac_t""no" 1>&6
9314 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9315 echo "configure:9316: checking for dlopen in -ldl" >&5
9316 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
9317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9318 echo $ac_n "(cached) $ac_c" 1>&6
9320 ac_save_LIBS
="$LIBS"
9322 cat > conftest.
$ac_ext <<EOF
9323 #line 9324 "configure"
9324 #include "confdefs.h"
9325 /* Override any gcc2 internal prototype to avoid an error. */
9326 /* We use char because int might match the return type of a gcc2
9327 builtin and then its argument prototype would still apply. */
9334 if { (eval echo configure
:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9336 eval "ac_cv_lib_$ac_lib_var=yes"
9338 echo "configure: failed program was:" >&5
9339 cat conftest.
$ac_ext >&5
9341 eval "ac_cv_lib_$ac_lib_var=no"
9344 LIBS
="$ac_save_LIBS"
9347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9348 echo "$ac_t""yes" 1>&6
9349 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9351 cat >> confdefs.h
<<EOF
9352 #define $ac_tr_lib 1
9358 echo "$ac_t""no" 1>&6
9361 for ac_func
in dlopen
9363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9364 echo "configure:9365: checking for $ac_func" >&5
9365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9366 echo $ac_n "(cached) $ac_c" 1>&6
9368 cat > conftest.
$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9371 /* System header to define __stub macros and hopefully few prototypes,
9372 which can conflict with char $ac_func(); below. */
9374 /* Override any gcc2 internal prototype to avoid an error. */
9375 /* We use char because int might match the return type of a gcc2
9376 builtin and then its argument prototype would still apply. */
9381 /* The GNU C library defines this for functions which it implements
9382 to always fail with ENOSYS. Some functions are actually named
9383 something starting with __ and the normal name is an alias. */
9384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9392 if { (eval echo configure
:9393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9394 eval "ac_cv_func_$ac_func=yes"
9396 echo "configure: failed program was:" >&5
9397 cat conftest.
$ac_ext >&5
9399 eval "ac_cv_func_$ac_func=no"
9404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9405 echo "$ac_t""yes" 1>&6
9406 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9407 cat >> confdefs.h
<<EOF
9408 #define $ac_tr_func 1
9412 echo "$ac_t""no" 1>&6
9417 for ac_func
in kvm_openfiles nlist knlist kvm_getprocs
9419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9420 echo "configure:9421: checking for $ac_func" >&5
9421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9422 echo $ac_n "(cached) $ac_c" 1>&6
9424 cat > conftest.
$ac_ext <<EOF
9425 #line 9426 "configure"
9426 #include "confdefs.h"
9427 /* System header to define __stub macros and hopefully few prototypes,
9428 which can conflict with char $ac_func(); below. */
9430 /* Override any gcc2 internal prototype to avoid an error. */
9431 /* We use char because int might match the return type of a gcc2
9432 builtin and then its argument prototype would still apply. */
9437 /* The GNU C library defines this for functions which it implements
9438 to always fail with ENOSYS. Some functions are actually named
9439 something starting with __ and the normal name is an alias. */
9440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9448 if { (eval echo configure
:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9450 eval "ac_cv_func_$ac_func=yes"
9452 echo "configure: failed program was:" >&5
9453 cat conftest.
$ac_ext >&5
9455 eval "ac_cv_func_$ac_func=no"
9460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9461 echo "$ac_t""yes" 1>&6
9462 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9463 cat >> confdefs.h
<<EOF
9464 #define $ac_tr_func 1
9468 echo "$ac_t""no" 1>&6
9472 echo "$with_mib_modules" |
grep "ucd-snmp/diskio" >/dev
/null
9473 if test $?
-eq 0 ; then
9474 echo $ac_n "checking for getdevs""... $ac_c" 1>&6
9475 echo "configure:9476: checking for getdevs" >&5
9476 if eval "test \"`echo '$''{'ac_cv_func_getdevs'+set}'`\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
9479 cat > conftest.
$ac_ext <<EOF
9480 #line 9481 "configure"
9481 #include "confdefs.h"
9482 /* System header to define __stub macros and hopefully few prototypes,
9483 which can conflict with char getdevs(); below. */
9485 /* Override any gcc2 internal prototype to avoid an error. */
9486 /* We use char because int might match the return type of a gcc2
9487 builtin and then its argument prototype would still apply. */
9492 /* The GNU C library defines this for functions which it implements
9493 to always fail with ENOSYS. Some functions are actually named
9494 something starting with __ and the normal name is an alias. */
9495 #if defined (__stub_getdevs) || defined (__stub___getdevs)
9503 if { (eval echo configure
:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9505 eval "ac_cv_func_getdevs=yes"
9507 echo "configure: failed program was:" >&5
9508 cat conftest.
$ac_ext >&5
9510 eval "ac_cv_func_getdevs=no"
9515 if eval "test \"`echo '$ac_cv_func_'getdevs`\" = yes"; then
9516 echo "$ac_t""yes" 1>&6
9517 cat >> confdefs.h
<<\EOF
9518 #define HAVE_GETDEVS 1
9522 echo "$ac_t""no" 1>&6
9523 echo $ac_n "checking for getdevs in -ldevstat""... $ac_c" 1>&6
9524 echo "configure:9525: checking for getdevs in -ldevstat" >&5
9525 ac_lib_var
=`echo devstat'_'getdevs | sed 'y%./+-%__p_%'`
9526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9529 ac_save_LIBS
="$LIBS"
9530 LIBS
="-ldevstat $LIBS"
9531 cat > conftest.
$ac_ext <<EOF
9532 #line 9533 "configure"
9533 #include "confdefs.h"
9534 /* Override any gcc2 internal prototype to avoid an error. */
9535 /* We use char because int might match the return type of a gcc2
9536 builtin and then its argument prototype would still apply. */
9543 if { (eval echo configure
:9544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9545 eval "ac_cv_lib_$ac_lib_var=yes"
9547 echo "configure: failed program was:" >&5
9548 cat conftest.
$ac_ext >&5
9550 eval "ac_cv_lib_$ac_lib_var=no"
9553 LIBS
="$ac_save_LIBS"
9556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9557 echo "$ac_t""yes" 1>&6
9558 cat >> confdefs.h
<<\EOF
9559 #define HAVE_GETDEVS 1
9562 LIBS
="${LIBS} -ldevstat"
9564 echo "$ac_t""no" 1>&6
9573 if test "x$embed_perl" = "xyes" -a "x$install_perl" = "xno" ; then
9576 if test "x$install_perl" != "x" -a "x$install_perl" != "xno"; then
9577 PERLTARGS
="perlmodules"
9578 PERLINSTALLTARGS
="perlinstall"
9583 cat >> configure-summary
<< EOF
9584 SNMP Perl modules: enabled
9589 if test "x$embed_perl" = "xyes"; then
9590 myperl
=$ac_cv_path_PERLPROG
9591 if test $myperl = "no"; then
9592 { echo "configure: error: --enable-embedded-perl requested but no perl executable found" 1>&2; exit 1; }
9595 echo $ac_n "checking for perl CFLAGS""... $ac_c" 1>&6
9596 echo "configure:9597: checking for perl CFLAGS" >&5
9597 perlcflags
=`$myperl -MExtUtils::Embed -e ccopts`
9598 echo "$ac_t""$perlcflags" 1>&6
9599 CPPFLAGS
="$CPPFLAGS $perlcflags"
9601 echo $ac_n "checking for perl LDFLAGS""... $ac_c" 1>&6
9602 echo "configure:9603: checking for perl LDFLAGS" >&5
9603 perlldopts
=`$myperl -MExtUtils::Embed -e ldopts`
9604 echo "$ac_t""$perlldopts" 1>&6
9605 LIBS
="$LIBS $perlldopts"
9607 for ac_func
in eval_pv perl_eval_pv
9609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9610 echo "configure:9611: checking for $ac_func" >&5
9611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9612 echo $ac_n "(cached) $ac_c" 1>&6
9614 cat > conftest.
$ac_ext <<EOF
9615 #line 9616 "configure"
9616 #include "confdefs.h"
9617 /* System header to define __stub macros and hopefully few prototypes,
9618 which can conflict with char $ac_func(); below. */
9620 /* Override any gcc2 internal prototype to avoid an error. */
9621 /* We use char because int might match the return type of a gcc2
9622 builtin and then its argument prototype would still apply. */
9627 /* The GNU C library defines this for functions which it implements
9628 to always fail with ENOSYS. Some functions are actually named
9629 something starting with __ and the normal name is an alias. */
9630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9638 if { (eval echo configure
:9639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9640 eval "ac_cv_func_$ac_func=yes"
9642 echo "configure: failed program was:" >&5
9643 cat conftest.
$ac_ext >&5
9645 eval "ac_cv_func_$ac_func=no"
9650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9651 echo "$ac_t""yes" 1>&6
9652 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9653 cat >> confdefs.h
<<EOF
9654 #define $ac_tr_func 1
9658 echo "$ac_t""no" 1>&6
9663 cat >> confdefs.h
<<\EOF
9664 #define NETSNMP_EMBEDDED_PERL 1
9667 OTHERAGENTLIBOBJS
="snmp_perl.o"
9668 OTHERAGENTLIBLOBJS
="snmp_perl.lo"
9670 EMBEDPERLINSTALL
="embedperlinstall"
9673 cat >> configure-summary
<< EOF
9674 Embedded perl support: enabled
9682 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9683 echo "configure:9684: checking for ANSI C header files" >&5
9684 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9685 echo $ac_n "(cached) $ac_c" 1>&6
9687 cat > conftest.
$ac_ext <<EOF
9688 #line 9689 "configure"
9689 #include "confdefs.h"
9695 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9696 { (eval echo configure
:9697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9697 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9698 if test -z "$ac_err"; then
9700 ac_cv_header_stdc
=yes
9703 echo "configure: failed program was:" >&5
9704 cat conftest.
$ac_ext >&5
9706 ac_cv_header_stdc
=no
9710 if test $ac_cv_header_stdc = yes; then
9711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9712 cat > conftest.
$ac_ext <<EOF
9713 #line 9714 "configure"
9714 #include "confdefs.h"
9717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9718 egrep "memchr" >/dev
/null
2>&1; then
9722 ac_cv_header_stdc
=no
9728 if test $ac_cv_header_stdc = yes; then
9729 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9730 cat > conftest.
$ac_ext <<EOF
9731 #line 9732 "configure"
9732 #include "confdefs.h"
9735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9736 egrep "free" >/dev
/null
2>&1; then
9740 ac_cv_header_stdc
=no
9746 if test $ac_cv_header_stdc = yes; then
9747 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9748 if test "$cross_compiling" = yes; then
9751 cat > conftest.
$ac_ext <<EOF
9752 #line 9753 "configure"
9753 #include "confdefs.h"
9755 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9756 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9758 int main () { int i; for (i = 0; i < 256; i++)
9759 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9763 if { (eval echo configure
:9764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9767 echo "configure: failed program was:" >&5
9768 cat conftest.
$ac_ext >&5
9770 ac_cv_header_stdc
=no
9778 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9779 if test $ac_cv_header_stdc = yes; then
9780 cat >> confdefs.h
<<\EOF
9781 #define STDC_HEADERS 1
9787 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
9789 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9790 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9791 echo "configure:9792: checking for $ac_hdr that defines DIR" >&5
9792 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9793 echo $ac_n "(cached) $ac_c" 1>&6
9795 cat > conftest.
$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 #include <sys/types.h>
9804 if { (eval echo configure
:9805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9806 eval "ac_cv_header_dirent_$ac_safe=yes"
9808 echo "configure: failed program was:" >&5
9809 cat conftest.
$ac_ext >&5
9811 eval "ac_cv_header_dirent_$ac_safe=no"
9815 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9816 echo "$ac_t""yes" 1>&6
9817 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9818 cat >> confdefs.h
<<EOF
9819 #define $ac_tr_hdr 1
9821 ac_header_dirent
=$ac_hdr; break
9823 echo "$ac_t""no" 1>&6
9826 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9827 if test $ac_header_dirent = dirent.h
; then
9828 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9829 echo "configure:9830: checking for opendir in -ldir" >&5
9830 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9832 echo $ac_n "(cached) $ac_c" 1>&6
9834 ac_save_LIBS
="$LIBS"
9836 cat > conftest.
$ac_ext <<EOF
9837 #line 9838 "configure"
9838 #include "confdefs.h"
9839 /* Override any gcc2 internal prototype to avoid an error. */
9840 /* We use char because int might match the return type of a gcc2
9841 builtin and then its argument prototype would still apply. */
9848 if { (eval echo configure
:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9850 eval "ac_cv_lib_$ac_lib_var=yes"
9852 echo "configure: failed program was:" >&5
9853 cat conftest.
$ac_ext >&5
9855 eval "ac_cv_lib_$ac_lib_var=no"
9858 LIBS
="$ac_save_LIBS"
9861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9862 echo "$ac_t""yes" 1>&6
9865 echo "$ac_t""no" 1>&6
9869 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9870 echo "configure:9871: checking for opendir in -lx" >&5
9871 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9873 echo $ac_n "(cached) $ac_c" 1>&6
9875 ac_save_LIBS
="$LIBS"
9877 cat > conftest.
$ac_ext <<EOF
9878 #line 9879 "configure"
9879 #include "confdefs.h"
9880 /* Override any gcc2 internal prototype to avoid an error. */
9881 /* We use char because int might match the return type of a gcc2
9882 builtin and then its argument prototype would still apply. */
9889 if { (eval echo configure
:9890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9891 eval "ac_cv_lib_$ac_lib_var=yes"
9893 echo "configure: failed program was:" >&5
9894 cat conftest.
$ac_ext >&5
9896 eval "ac_cv_lib_$ac_lib_var=no"
9899 LIBS
="$ac_save_LIBS"
9902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9903 echo "$ac_t""yes" 1>&6
9906 echo "$ac_t""no" 1>&6
9911 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9912 echo "configure:9913: checking for sys/wait.h that is POSIX.1 compatible" >&5
9913 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9914 echo $ac_n "(cached) $ac_c" 1>&6
9916 cat > conftest.
$ac_ext <<EOF
9917 #line 9918 "configure"
9918 #include "confdefs.h"
9919 #include <sys/types.h>
9920 #include <sys/wait.h>
9922 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9925 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9930 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9933 if { (eval echo configure
:9934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9935 ac_cv_header_sys_wait_h
=yes
9937 echo "configure: failed program was:" >&5
9938 cat conftest.
$ac_ext >&5
9940 ac_cv_header_sys_wait_h
=no
9945 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9946 if test $ac_cv_header_sys_wait_h = yes; then
9947 cat >> confdefs.h
<<\EOF
9948 #define HAVE_SYS_WAIT_H 1
9953 for ac_hdr
in stdarg.h string.h fcntl.h limits.h sys
/file.h sys
/ioctl.h syslog.h unistd.h netinet
/tcpip.h netinet
/in.h netinet
/ip.h netinet
/ip_icmp.h net
/if.h netdb.h sys
/dmap.h machine
/pte.h xti.h sys
/sockio.h sys
/socket.h sys
/un.h fstab.h sys
/fs.h mtab.h ufs
/fs.h ufs
/ffs
/fs.h sys
/fixpoint.h machine
/param.h sys
/vm.h vm
/vm.h sys
/vmmeter.h sys
/vmparam.h sys
/vmmac.h sys
/vmsystm.h sys
/mbuf.h sys
/time.h sys
/swap.h inet
/mib2.h sys
/statvfs.h sys
/vfs.h sys
/mnttab.h sys
/user.h sys
/proc.h sys
/select.h mntent.h sys
/mntent.h kstat.h utsname.h sys
/utsname.h sys
/cdefs.h getopt.h locale.h pthread.h sys
/loadavg.h regex.h linux
/tasks.h
pwd.h grp.h utmpx.h
9955 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9957 echo "configure:9958: checking for $ac_hdr" >&5
9958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9959 echo $ac_n "(cached) $ac_c" 1>&6
9961 cat > conftest.
$ac_ext <<EOF
9962 #line 9963 "configure"
9963 #include "confdefs.h"
9966 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9967 { (eval echo configure
:9968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9968 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9969 if test -z "$ac_err"; then
9971 eval "ac_cv_header_$ac_safe=yes"
9974 echo "configure: failed program was:" >&5
9975 cat conftest.
$ac_ext >&5
9977 eval "ac_cv_header_$ac_safe=no"
9981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9982 echo "$ac_t""yes" 1>&6
9983 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9984 cat >> confdefs.h
<<EOF
9985 #define $ac_tr_hdr 1
9989 echo "$ac_t""no" 1>&6
9993 for ac_hdr
in malloc.h sys
/param.h net
/if_dl.h sys
/sysctl.h stdlib.h net
/if_mib.h net
/if_types.h net
/if_var.h sys
/queue.h osreldate.h machine
/types.h sys
/socketvar.h
9995 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9997 echo "configure:9998: checking for $ac_hdr" >&5
9998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9999 echo $ac_n "(cached) $ac_c" 1>&6
10001 cat > conftest.
$ac_ext <<EOF
10002 #line 10003 "configure"
10003 #include "confdefs.h"
10006 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10007 { (eval echo configure
:10008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10008 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10009 if test -z "$ac_err"; then
10011 eval "ac_cv_header_$ac_safe=yes"
10014 echo "configure: failed program was:" >&5
10015 cat conftest.
$ac_ext >&5
10017 eval "ac_cv_header_$ac_safe=no"
10021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10022 echo "$ac_t""yes" 1>&6
10023 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10024 cat >> confdefs.h
<<EOF
10025 #define $ac_tr_hdr 1
10029 echo "$ac_t""no" 1>&6
10033 for ac_hdr
in sys
/conf.h netinet
/in_systm.h netinet
/tcp.h netinet
/udp.h netinet
/in_var.h netinet
/if_ether.h netinet
/ip_var.h netinet
/tcp_timer.h netinet
/tcp_var.h netinet
/tcp_fsm.h netinet
/udp_var.h netinet
/icmp_var.h sys
/protosw.h nlist.h ioctls.h asm
/page.h netipx
/ipx.h
10035 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10037 echo "configure:10038: checking for $ac_hdr" >&5
10038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10039 echo $ac_n "(cached) $ac_c" 1>&6
10041 cat > conftest.
$ac_ext <<EOF
10042 #line 10043 "configure"
10043 #include "confdefs.h"
10046 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10047 { (eval echo configure
:10048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10048 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10049 if test -z "$ac_err"; then
10051 eval "ac_cv_header_$ac_safe=yes"
10054 echo "configure: failed program was:" >&5
10055 cat conftest.
$ac_ext >&5
10057 eval "ac_cv_header_$ac_safe=no"
10061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10062 echo "$ac_t""yes" 1>&6
10063 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10064 cat >> confdefs.h
<<EOF
10065 #define $ac_tr_hdr 1
10069 echo "$ac_t""no" 1>&6
10073 for ac_hdr
in arpa
/inet.h kvm.h sys
/pool.h uvm
/uvm_param.h uvm
/uvm_extern.h vm
/vm_param.h vm
/vm_extern.h
10075 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10077 echo "configure:10078: checking for $ac_hdr" >&5
10078 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10079 echo $ac_n "(cached) $ac_c" 1>&6
10081 cat > conftest.
$ac_ext <<EOF
10082 #line 10083 "configure"
10083 #include "confdefs.h"
10086 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10087 { (eval echo configure
:10088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10088 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10089 if test -z "$ac_err"; then
10091 eval "ac_cv_header_$ac_safe=yes"
10094 echo "configure: failed program was:" >&5
10095 cat conftest.
$ac_ext >&5
10097 eval "ac_cv_header_$ac_safe=no"
10101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10102 echo "$ac_t""yes" 1>&6
10103 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10104 cat >> confdefs.h
<<EOF
10105 #define $ac_tr_hdr 1
10109 echo "$ac_t""no" 1>&6
10113 for ac_hdr
in sys
/mount.h vm
/swap_pager.h ufs
/ufs
/dinode.h
10115 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10117 echo "configure:10118: checking for $ac_hdr" >&5
10118 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
10121 cat > conftest.
$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10126 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10127 { (eval echo configure
:10128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10128 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10129 if test -z "$ac_err"; then
10131 eval "ac_cv_header_$ac_safe=yes"
10134 echo "configure: failed program was:" >&5
10135 cat conftest.
$ac_ext >&5
10137 eval "ac_cv_header_$ac_safe=no"
10141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10142 echo "$ac_t""yes" 1>&6
10143 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10144 cat >> confdefs.h
<<EOF
10145 #define $ac_tr_hdr 1
10149 echo "$ac_t""no" 1>&6
10153 for ac_hdr
in sys
/stat.h sys
/vnode.h ufs
/ufs
/quota.h ufs
/ufs
/inode.h
10155 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10157 echo "configure:10158: checking for $ac_hdr" >&5
10158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10159 echo $ac_n "(cached) $ac_c" 1>&6
10161 cat > conftest.
$ac_ext <<EOF
10162 #line 10163 "configure"
10163 #include "confdefs.h"
10166 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10167 { (eval echo configure
:10168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10168 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10169 if test -z "$ac_err"; then
10171 eval "ac_cv_header_$ac_safe=yes"
10174 echo "configure: failed program was:" >&5
10175 cat conftest.
$ac_ext >&5
10177 eval "ac_cv_header_$ac_safe=no"
10181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10182 echo "$ac_t""yes" 1>&6
10183 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10184 cat >> confdefs.h
<<EOF
10185 #define $ac_tr_hdr 1
10189 echo "$ac_t""no" 1>&6
10193 for ac_hdr
in sys
/hashing.h sys
/tcpipstats.h sys
/sysmp.h
10195 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10196 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10197 echo "configure:10198: checking for $ac_hdr" >&5
10198 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10199 echo $ac_n "(cached) $ac_c" 1>&6
10201 cat > conftest.
$ac_ext <<EOF
10202 #line 10203 "configure"
10203 #include "confdefs.h"
10206 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10207 { (eval echo configure
:10208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10208 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10209 if test -z "$ac_err"; then
10211 eval "ac_cv_header_$ac_safe=yes"
10214 echo "configure: failed program was:" >&5
10215 cat conftest.
$ac_ext >&5
10217 eval "ac_cv_header_$ac_safe=no"
10221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10222 echo "$ac_t""yes" 1>&6
10223 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10224 cat >> confdefs.h
<<EOF
10225 #define $ac_tr_hdr 1
10229 echo "$ac_t""no" 1>&6
10233 for ac_hdr
in err.h sys
/filio.h sgtty.h
10235 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10237 echo "configure:10238: checking for $ac_hdr" >&5
10238 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10239 echo $ac_n "(cached) $ac_c" 1>&6
10241 cat > conftest.
$ac_ext <<EOF
10242 #line 10243 "configure"
10243 #include "confdefs.h"
10246 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10247 { (eval echo configure
:10248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10248 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10249 if test -z "$ac_err"; then
10251 eval "ac_cv_header_$ac_safe=yes"
10254 echo "configure: failed program was:" >&5
10255 cat conftest.
$ac_ext >&5
10257 eval "ac_cv_header_$ac_safe=no"
10261 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10262 echo "$ac_t""yes" 1>&6
10263 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10264 cat >> confdefs.h
<<EOF
10265 #define $ac_tr_hdr 1
10269 echo "$ac_t""no" 1>&6
10273 for ac_hdr
in sys
/statfs.h
10275 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10277 echo "configure:10278: checking for $ac_hdr" >&5
10278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10279 echo $ac_n "(cached) $ac_c" 1>&6
10281 cat > conftest.
$ac_ext <<EOF
10282 #line 10283 "configure"
10283 #include "confdefs.h"
10286 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10287 { (eval echo configure
:10288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10288 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10289 if test -z "$ac_err"; then
10291 eval "ac_cv_header_$ac_safe=yes"
10294 echo "configure: failed program was:" >&5
10295 cat conftest.
$ac_ext >&5
10297 eval "ac_cv_header_$ac_safe=no"
10301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10302 echo "$ac_t""yes" 1>&6
10303 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10304 cat >> confdefs.h
<<EOF
10305 #define $ac_tr_hdr 1
10309 echo "$ac_t""no" 1>&6
10313 for ac_hdr
in net
/route.h
10315 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10317 echo "configure:10318: checking for $ac_hdr" >&5
10318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10319 echo $ac_n "(cached) $ac_c" 1>&6
10321 cat > conftest.
$ac_ext <<EOF
10322 #line 10323 "configure"
10323 #include "confdefs.h"
10326 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10327 { (eval echo configure
:10328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10328 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10329 if test -z "$ac_err"; then
10331 eval "ac_cv_header_$ac_safe=yes"
10334 echo "configure: failed program was:" >&5
10335 cat conftest.
$ac_ext >&5
10337 eval "ac_cv_header_$ac_safe=no"
10341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10342 echo "$ac_t""yes" 1>&6
10343 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10344 cat >> confdefs.h
<<EOF
10345 #define $ac_tr_hdr 1
10349 echo "$ac_t""no" 1>&6
10353 for ac_hdr
in sys
/dkio.h sys
/diskio.h sys
/pstat.h linux
/hdreg.h pkglocs.h
10355 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10356 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10357 echo "configure:10358: checking for $ac_hdr" >&5
10358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10359 echo $ac_n "(cached) $ac_c" 1>&6
10361 cat > conftest.
$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10366 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10367 { (eval echo configure
:10368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10368 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10369 if test -z "$ac_err"; then
10371 eval "ac_cv_header_$ac_safe=yes"
10374 echo "configure: failed program was:" >&5
10375 cat conftest.
$ac_ext >&5
10377 eval "ac_cv_header_$ac_safe=no"
10381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10382 echo "$ac_t""yes" 1>&6
10383 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10384 cat >> confdefs.h
<<EOF
10385 #define $ac_tr_hdr 1
10389 echo "$ac_t""no" 1>&6
10393 for ac_hdr
in pkginfo.h
10395 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10397 echo "configure:10398: checking for $ac_hdr" >&5
10398 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10399 echo $ac_n "(cached) $ac_c" 1>&6
10401 cat > conftest.
$ac_ext <<EOF
10402 #line 10403 "configure"
10403 #include "confdefs.h"
10406 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10407 { (eval echo configure
:10408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10408 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10409 if test -z "$ac_err"; then
10411 eval "ac_cv_header_$ac_safe=yes"
10414 echo "configure: failed program was:" >&5
10415 cat conftest.
$ac_ext >&5
10417 eval "ac_cv_header_$ac_safe=no"
10421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10422 echo "$ac_t""yes" 1>&6
10423 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10424 cat >> confdefs.h
<<EOF
10425 #define $ac_tr_hdr 1
10427 echo $ac_n "checking for pkginfo in -ladm""... $ac_c" 1>&6
10428 echo "configure:10429: checking for pkginfo in -ladm" >&5
10429 ac_lib_var
=`echo adm'_'pkginfo | sed 'y%./+-%__p_%'`
10430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10431 echo $ac_n "(cached) $ac_c" 1>&6
10433 ac_save_LIBS
="$LIBS"
10435 cat > conftest.
$ac_ext <<EOF
10436 #line 10437 "configure"
10437 #include "confdefs.h"
10438 /* Override any gcc2 internal prototype to avoid an error. */
10439 /* We use char because int might match the return type of a gcc2
10440 builtin and then its argument prototype would still apply. */
10447 if { (eval echo configure
:10448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10449 eval "ac_cv_lib_$ac_lib_var=yes"
10451 echo "configure: failed program was:" >&5
10452 cat conftest.
$ac_ext >&5
10454 eval "ac_cv_lib_$ac_lib_var=no"
10457 LIBS
="$ac_save_LIBS"
10460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10461 echo "$ac_t""yes" 1>&6
10462 cat >> confdefs.h
<<\EOF
10463 #define HAVE_PKGINFO 1
10466 LIBS
="${LIBS} -ladm"
10467 AGENTLIBS
="${AGENTLIBS} -ladm"
10469 echo "$ac_t""no" 1>&6
10473 echo "$ac_t""no" 1>&6
10477 for ac_hdr
in winsock.h
10479 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10481 echo "configure:10482: checking for $ac_hdr" >&5
10482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10483 echo $ac_n "(cached) $ac_c" 1>&6
10485 cat > conftest.
$ac_ext <<EOF
10486 #line 10487 "configure"
10487 #include "confdefs.h"
10490 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10491 { (eval echo configure
:10492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10492 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10493 if test -z "$ac_err"; then
10495 eval "ac_cv_header_$ac_safe=yes"
10498 echo "configure: failed program was:" >&5
10499 cat conftest.
$ac_ext >&5
10501 eval "ac_cv_header_$ac_safe=no"
10505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10506 echo "$ac_t""yes" 1>&6
10507 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10508 cat >> confdefs.h
<<EOF
10509 #define $ac_tr_hdr 1
10511 AGENTLIBS
="${AGENTLIBS} -liphlpapi"
10513 echo "$ac_t""no" 1>&6
10519 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10521 echo "configure:10522: checking for $ac_hdr" >&5
10522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10523 echo $ac_n "(cached) $ac_c" 1>&6
10525 cat > conftest.
$ac_ext <<EOF
10526 #line 10527 "configure"
10527 #include "confdefs.h"
10530 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10531 { (eval echo configure
:10532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10532 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10533 if test -z "$ac_err"; then
10535 eval "ac_cv_header_$ac_safe=yes"
10538 echo "configure: failed program was:" >&5
10539 cat conftest.
$ac_ext >&5
10541 eval "ac_cv_header_$ac_safe=no"
10545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10546 echo "$ac_t""yes" 1>&6
10547 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10548 cat >> confdefs.h
<<EOF
10549 #define $ac_tr_hdr 1
10553 echo "$ac_t""no" 1>&6
10557 for ac_hdr
in sys
/stream.h
10559 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10561 echo "configure:10562: checking for $ac_hdr" >&5
10562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10563 echo $ac_n "(cached) $ac_c" 1>&6
10565 cat > conftest.
$ac_ext <<EOF
10566 #line 10567 "configure"
10567 #include "confdefs.h"
10570 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10571 { (eval echo configure
:10572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10572 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10573 if test -z "$ac_err"; then
10575 eval "ac_cv_header_$ac_safe=yes"
10578 echo "configure: failed program was:" >&5
10579 cat conftest.
$ac_ext >&5
10581 eval "ac_cv_header_$ac_safe=no"
10585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10586 echo "$ac_t""yes" 1>&6
10587 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10588 cat >> confdefs.h
<<EOF
10589 #define $ac_tr_hdr 1
10593 echo "$ac_t""no" 1>&6
10597 for ac_hdr
in netinet
/ip6.h netinet
6/in6_var.h netinet
6/in6_pcb.h netinet
6/ip6_var.h netinet
6/tcp6.h netinet
6/tcp6_fsm.h netinet
6/nd6.h netinet
6/tcp6_timer.h netinet
6/tcp6_var.h
10599 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10601 echo "configure:10602: checking for $ac_hdr" >&5
10602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10603 echo $ac_n "(cached) $ac_c" 1>&6
10605 cat > conftest.
$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10610 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10611 { (eval echo configure
:10612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10612 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10613 if test -z "$ac_err"; then
10615 eval "ac_cv_header_$ac_safe=yes"
10618 echo "configure: failed program was:" >&5
10619 cat conftest.
$ac_ext >&5
10621 eval "ac_cv_header_$ac_safe=no"
10625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10626 echo "$ac_t""yes" 1>&6
10627 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10628 cat >> confdefs.h
<<EOF
10629 #define $ac_tr_hdr 1
10633 echo "$ac_t""no" 1>&6
10637 for ac_hdr
in dlfcn.h
10639 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10641 echo "configure:10642: checking for $ac_hdr" >&5
10642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10643 echo $ac_n "(cached) $ac_c" 1>&6
10645 cat > conftest.
$ac_ext <<EOF
10646 #line 10647 "configure"
10647 #include "confdefs.h"
10650 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10651 { (eval echo configure
:10652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10652 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10653 if test -z "$ac_err"; then
10655 eval "ac_cv_header_$ac_safe=yes"
10658 echo "configure: failed program was:" >&5
10659 cat conftest.
$ac_ext >&5
10661 eval "ac_cv_header_$ac_safe=no"
10665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10666 echo "$ac_t""yes" 1>&6
10667 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10668 cat >> confdefs.h
<<EOF
10669 #define $ac_tr_hdr 1
10673 echo "$ac_t""no" 1>&6
10677 for ac_hdr
in search.h
10679 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10681 echo "configure:10682: checking for $ac_hdr" >&5
10682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10683 echo $ac_n "(cached) $ac_c" 1>&6
10685 cat > conftest.
$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10690 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10691 { (eval echo configure
:10692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10692 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10693 if test -z "$ac_err"; then
10695 eval "ac_cv_header_$ac_safe=yes"
10698 echo "configure: failed program was:" >&5
10699 cat conftest.
$ac_ext >&5
10701 eval "ac_cv_header_$ac_safe=no"
10705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10706 echo "$ac_t""yes" 1>&6
10707 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10708 cat >> confdefs.h
<<EOF
10709 #define $ac_tr_hdr 1
10713 echo "$ac_t""no" 1>&6
10718 if echo " $module_list " |
grep " host/hr_swinst " > /dev
/null
; then
10719 for ac_hdr
in rpmio.h
10721 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10723 echo "configure:10724: checking for $ac_hdr" >&5
10724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10725 echo $ac_n "(cached) $ac_c" 1>&6
10727 cat > conftest.
$ac_ext <<EOF
10728 #line 10729 "configure"
10729 #include "confdefs.h"
10732 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10733 { (eval echo configure
:10734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10734 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10735 if test -z "$ac_err"; then
10737 eval "ac_cv_header_$ac_safe=yes"
10740 echo "configure: failed program was:" >&5
10741 cat conftest.
$ac_ext >&5
10743 eval "ac_cv_header_$ac_safe=no"
10747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10748 echo "$ac_t""yes" 1>&6
10749 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10750 cat >> confdefs.h
<<EOF
10751 #define $ac_tr_hdr 1
10755 echo "$ac_t""no" 1>&6
10756 for ac_hdr
in rpm
/rpmio.h
10758 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10760 echo "configure:10761: checking for $ac_hdr" >&5
10761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10762 echo $ac_n "(cached) $ac_c" 1>&6
10764 cat > conftest.
$ac_ext <<EOF
10765 #line 10766 "configure"
10766 #include "confdefs.h"
10769 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10770 { (eval echo configure
:10771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10771 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10772 if test -z "$ac_err"; then
10774 eval "ac_cv_header_$ac_safe=yes"
10777 echo "configure: failed program was:" >&5
10778 cat conftest.
$ac_ext >&5
10780 eval "ac_cv_header_$ac_safe=no"
10784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10785 echo "$ac_t""yes" 1>&6
10786 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10787 cat >> confdefs.h
<<EOF
10788 #define $ac_tr_hdr 1
10790 CFLAGS
="-I/usr/include/rpm $CFLAGS"
10792 echo "$ac_t""no" 1>&6
10802 echo $ac_n "checking for netinet/in_pcb.h""... $ac_c" 1>&6
10803 echo "configure:10804: checking for netinet/in_pcb.h" >&5
10804 if eval "test \"`echo '$''{'cv_have_netinet_in_pcb_h'+set}'`\" = set"; then
10805 echo $ac_n "(cached) $ac_c" 1>&6
10807 cat > conftest.
$ac_ext <<EOF
10808 #line 10809 "configure"
10809 #include "confdefs.h"
10811 #include <netinet/in.h>
10812 #include <netinet/in_pcb.h>
10815 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10816 { (eval echo configure
:10817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10817 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10818 if test -z "$ac_err"; then
10820 cv_have_netinet_in_pcb_h
=yes
10823 echo "configure: failed program was:" >&5
10824 cat conftest.
$ac_ext >&5
10826 cv_have_netinet_in_pcb_h
=no
10831 echo "$ac_t""$cv_have_netinet_in_pcb_h" 1>&6
10832 if test $cv_have_netinet_in_pcb_h = yes; then
10833 cat >> confdefs.h
<<\EOF
10834 #define HAVE_NETINET_IN_PCB_H 1
10839 echo $ac_n "checking for sys/disklabel.h""... $ac_c" 1>&6
10840 echo "configure:10841: checking for sys/disklabel.h" >&5
10841 if eval "test \"`echo '$''{'cv_have_sys_disklabel_h'+set}'`\" = set"; then
10842 echo $ac_n "(cached) $ac_c" 1>&6
10844 cat > conftest.
$ac_ext <<EOF
10845 #line 10846 "configure"
10846 #include "confdefs.h"
10848 #include <machine/types.h>
10849 #include <sys/disklabel.h>
10852 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10853 { (eval echo configure
:10854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10854 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10855 if test -z "$ac_err"; then
10857 cv_have_sys_disklabel_h
=yes
10860 echo "configure: failed program was:" >&5
10861 cat conftest.
$ac_ext >&5
10863 cv_have_sys_disklabel_h
=no
10868 echo "$ac_t""$cv_have_sys_disklabel_h" 1>&6
10869 if test $cv_have_sys_disklabel_h = yes; then
10870 cat >> confdefs.h
<<\EOF
10871 #define HAVE_SYS_DISKLABEL_H 1
10876 for ac_hdr
in openssl
/hmac.h openssl
/evp.h openssl
/aes.h openssl
/des.h
10878 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10880 echo "configure:10881: checking for $ac_hdr" >&5
10881 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10882 echo $ac_n "(cached) $ac_c" 1>&6
10884 cat > conftest.
$ac_ext <<EOF
10885 #line 10886 "configure"
10886 #include "confdefs.h"
10889 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10890 { (eval echo configure
:10891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10891 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10892 if test -z "$ac_err"; then
10894 eval "ac_cv_header_$ac_safe=yes"
10897 echo "configure: failed program was:" >&5
10898 cat conftest.
$ac_ext >&5
10900 eval "ac_cv_header_$ac_safe=no"
10904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10905 echo "$ac_t""yes" 1>&6
10906 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10907 cat >> confdefs.h
<<EOF
10908 #define $ac_tr_hdr 1
10912 echo "$ac_t""no" 1>&6
10917 # Extract the first word of "lpstat", so it can be a program name with args.
10918 set dummy lpstat
; ac_word
=$2
10919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10920 echo "configure:10921: checking for $ac_word" >&5
10921 if eval "test \"`echo '$''{'ac_cv_path_LPSTAT_PATH'+set}'`\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10924 case "$LPSTAT_PATH" in
10926 ac_cv_path_LPSTAT_PATH
="$LPSTAT_PATH" # Let the user override the test with a path.
10929 ac_cv_path_LPSTAT_PATH
="$LPSTAT_PATH" # Let the user override the test with a dos path.
10932 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
10934 for ac_dir
in $ac_dummy; do
10935 test -z "$ac_dir" && ac_dir
=.
10936 if test -f $ac_dir/$ac_word; then
10937 ac_cv_path_LPSTAT_PATH
="$ac_dir/$ac_word"
10945 LPSTAT_PATH
="$ac_cv_path_LPSTAT_PATH"
10946 if test -n "$LPSTAT_PATH"; then
10947 echo "$ac_t""$LPSTAT_PATH" 1>&6
10949 echo "$ac_t""no" 1>&6
10952 if test x
$LPSTAT_PATH != x
; then
10953 cat >> confdefs.h
<<EOF
10954 #define LPSTAT_PATH "$LPSTAT_PATH"
10957 cat >> confdefs.h
<<\EOF
10958 #define HAVE_LPSTAT 1
10962 for ac_func
in cgetnext
10964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10965 echo "configure:10966: checking for $ac_func" >&5
10966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10967 echo $ac_n "(cached) $ac_c" 1>&6
10969 cat > conftest.
$ac_ext <<EOF
10970 #line 10971 "configure"
10971 #include "confdefs.h"
10972 /* System header to define __stub macros and hopefully few prototypes,
10973 which can conflict with char $ac_func(); below. */
10974 #include <assert.h>
10975 /* Override any gcc2 internal prototype to avoid an error. */
10976 /* We use char because int might match the return type of a gcc2
10977 builtin and then its argument prototype would still apply. */
10982 /* The GNU C library defines this for functions which it implements
10983 to always fail with ENOSYS. Some functions are actually named
10984 something starting with __ and the normal name is an alias. */
10985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10993 if { (eval echo configure
:10994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10995 eval "ac_cv_func_$ac_func=yes"
10997 echo "configure: failed program was:" >&5
10998 cat conftest.
$ac_ext >&5
11000 eval "ac_cv_func_$ac_func=no"
11005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11006 echo "$ac_t""yes" 1>&6
11007 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11008 cat >> confdefs.h
<<EOF
11009 #define $ac_tr_func 1
11013 echo "$ac_t""no" 1>&6
11017 if test -r /etc
/printcap
; then
11018 cat >> confdefs.h
<<\EOF
11019 #define HAVE_PRINTCAP 1
11024 echo $ac_n "checking for authentication support""... $ac_c" 1>&6
11025 echo "configure:11026: checking for authentication support" >&5
11026 if test "x$ac_cv_lib_crypto_EVP_md5" != "xyes" -o "x$ac_cv_header_openssl_hmac_h" != "xyes" -o "x$ac_cv_header_openssl_hmac_h" != "xyes"; then
11027 cat >> confdefs.h
<<\EOF
11028 #define USE_INTERNAL_MD5 1
11033 echo "$ac_t""Internal MD5 Support" 1>&6
11034 if test "x$askedopenssl" = "xyes"; then
11035 { echo "configure: error: Asked to use OpenSSL but I couldn't find it." 1>&2; exit 1; }
11038 if test "x$tryopenssl" = "xno"; then
11041 cat >> confdefs.h
<<\EOF
11042 #define USE_INTERNAL_MD5 1
11045 echo "$ac_t""Internal MD5 Support" 1>&6
11047 authmodes
="MD5 SHA1"
11048 if test "x$enable_privacy" != "xno" ; then
11049 if test $ac_cv_header_openssl_aes_h = "yes" ; then
11050 encrmodes
="DES AES128 AES192 AES256"
11055 encrmodes
="disabled"
11057 cat >> confdefs.h
<<\EOF
11058 #define USE_OPENSSL 1
11061 echo "$ac_t""OpenSSL Support" 1>&6
11066 cat >> configure-summary
<< EOF
11067 Authentication support: $authmodes
11071 cat >> configure-summary
<< EOF
11072 Encryption support: $encrmodes
11076 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11077 echo "configure:11078: checking for off_t" >&5
11078 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11079 echo $ac_n "(cached) $ac_c" 1>&6
11081 cat > conftest.
$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11084 #include <sys/types.h>
11086 #include <stdlib.h>
11087 #include <stddef.h>
11090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11091 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
11093 ac_cv_type_off_t
=yes
11096 ac_cv_type_off_t
=no
11101 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11102 if test $ac_cv_type_off_t = no
; then
11103 cat >> confdefs.h
<<\EOF
11109 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11110 echo "configure:11111: checking for pid_t" >&5
11111 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11112 echo $ac_n "(cached) $ac_c" 1>&6
11114 cat > conftest.
$ac_ext <<EOF
11115 #line 11116 "configure"
11116 #include "confdefs.h"
11117 #include <sys/types.h>
11119 #include <stdlib.h>
11120 #include <stddef.h>
11123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11124 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
11126 ac_cv_type_pid_t
=yes
11129 ac_cv_type_pid_t
=no
11134 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11135 if test $ac_cv_type_pid_t = no
; then
11136 cat >> confdefs.h
<<\EOF
11142 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
11143 echo "configure:11144: checking whether time.h and sys/time.h may both be included" >&5
11144 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
11145 echo $ac_n "(cached) $ac_c" 1>&6
11147 cat > conftest.
$ac_ext <<EOF
11148 #line 11149 "configure"
11149 #include "confdefs.h"
11150 #include <sys/types.h>
11151 #include <sys/time.h>
11157 if { (eval echo configure
:11158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11159 ac_cv_header_time
=yes
11161 echo "configure: failed program was:" >&5
11162 cat conftest.
$ac_ext >&5
11164 ac_cv_header_time
=no
11169 echo "$ac_t""$ac_cv_header_time" 1>&6
11170 if test $ac_cv_header_time = yes; then
11171 cat >> confdefs.h
<<\EOF
11172 #define TIME_WITH_SYS_TIME 1
11178 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
11179 echo "configure:11180: checking for socklen_t" >&5
11180 if eval "test \"`echo '$''{'ac_cv_type_$1'+set}'`\" = set"; then
11181 echo $ac_n "(cached) $ac_c" 1>&6
11183 cat > conftest.
$ac_ext <<EOF
11184 #line 11185 "configure"
11185 #include "confdefs.h"
11186 #include <sys/types.h>
11188 #include <stdlib.h>
11189 #include <stddef.h>
11191 #ifdef HAVE_SYS_SOCKET_H
11192 #include <sys/socket.h>
11195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11196 egrep "socklen_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
11198 ac_cv_type_socklen_t
=yes
11201 ac_cv_type_socklen_t
=no
11207 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
11208 if test $ac_cv_type_socklen_t = yes; then
11209 cat >> confdefs.h
<<\EOF
11210 #define HAVE_SOCKLEN_T 1
11215 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
11216 echo "configure:11217: checking for in_addr_t" >&5
11217 if eval "test \"`echo '$''{'ac_cv_type_$1'+set}'`\" = set"; then
11218 echo $ac_n "(cached) $ac_c" 1>&6
11220 cat > conftest.
$ac_ext <<EOF
11221 #line 11222 "configure"
11222 #include "confdefs.h"
11223 #include <sys/types.h>
11225 #include <stdlib.h>
11226 #include <stddef.h>
11228 #ifdef HAVE_NETINET_IN_H
11229 #include <netinet/in.h>
11232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11233 egrep "in_addr_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
11235 ac_cv_type_in_addr_t
=yes
11238 ac_cv_type_in_addr_t
=no
11244 echo "$ac_t""$ac_cv_type_in_addr_t" 1>&6
11245 if test $ac_cv_type_in_addr_t = yes; then
11246 cat >> confdefs.h
<<\EOF
11247 #define HAVE_IN_ADDR_T 1
11252 echo $ac_n "checking for correct flags to ps""... $ac_c" 1>&6
11253 echo "configure:11254: checking for correct flags to ps" >&5
11254 if eval "test \"`echo '$''{'ac_cv_ps_flags'+set}'`\" = set"; then
11255 echo $ac_n "(cached) $ac_c" 1>&6
11257 if test "`($PSPROG -e 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
11258 ac_cv_ps_flags
="-e"
11259 elif test "`($PSPROG -el 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
11260 ac_cv_ps_flags
="-el"
11261 elif test "`($PSPROG acx 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
11262 ac_cv_ps_flags
="acx"
11263 elif test "`($PSPROG -acx 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
11264 ac_cv_ps_flags
="-acx"
11265 elif test "`($PSPROG -o pid,tt,state,time,ucomm 2>&1) | egrep ' ps *$' | awk '{print $NF}'`" = "ps" ; then
11266 ac_cv_ps_flags
="-o pid,tt,state,time,ucomm"
11267 elif test "`($PSPROG ax 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
11268 ac_cv_ps_flags
="ax"
11270 echo "configure: warning: Unable to determine valid ps flags... defaulting..." 1>&2
11271 ac_cv_ps_flags
="-acx"
11276 echo "$ac_t""$ac_cv_ps_flags" 1>&6
11278 PSCMD
="$PSPROG $ac_cv_ps_flags"
11280 cat >> confdefs.h
<<EOF
11281 #define PSCMD "$PSPROG $ac_cv_ps_flags"
11285 if test $cross_compiling = yes; then
11286 if test $with_endianness = "big"; then
11287 cat >> confdefs.h
<<\EOF
11288 #define WORDS_BIGENDIAN 1
11291 elif test -z $with_endianness; then
11292 { echo "configure: error: You are cross-compiling, but you have not specified the target's endianness" 1>&2; exit 1; }
11295 if test $with_endianness; then
11296 { echo "configure: error: Endianness has been specified, but you are not cross-compiling." 1>&2; exit 1; }
11298 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11299 echo "configure:11300: checking whether byte ordering is bigendian" >&5
11300 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11301 echo $ac_n "(cached) $ac_c" 1>&6
11303 ac_cv_c_bigendian
=unknown
11304 # See if sys/param.h defines the BYTE_ORDER macro.
11305 cat > conftest.
$ac_ext <<EOF
11306 #line 11307 "configure"
11307 #include "confdefs.h"
11308 #include <sys/types.h>
11309 #include <sys/param.h>
11312 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11313 bogus endian macros
11317 if { (eval echo configure
:11318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11319 # It does; now see whether it defined to BIG_ENDIAN or not.
11320 cat > conftest.
$ac_ext <<EOF
11321 #line 11322 "configure"
11322 #include "confdefs.h"
11323 #include <sys/types.h>
11324 #include <sys/param.h>
11327 #if BYTE_ORDER != BIG_ENDIAN
11332 if { (eval echo configure
:11333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11334 ac_cv_c_bigendian
=yes
11336 echo "configure: failed program was:" >&5
11337 cat conftest.
$ac_ext >&5
11339 ac_cv_c_bigendian
=no
11343 echo "configure: failed program was:" >&5
11344 cat conftest.
$ac_ext >&5
11347 if test $ac_cv_c_bigendian = unknown
; then
11348 if test "$cross_compiling" = yes; then
11349 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11351 cat > conftest.
$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11355 /* Are we little or big endian? From Harbison&Steele. */
11359 char c[sizeof (long)];
11362 exit (u.c[sizeof (long) - 1] == 1);
11365 if { (eval echo configure
:11366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11367 ac_cv_c_bigendian
=no
11369 echo "configure: failed program was:" >&5
11370 cat conftest.
$ac_ext >&5
11372 ac_cv_c_bigendian
=yes
11380 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11381 if test $ac_cv_c_bigendian = yes; then
11382 cat >> confdefs.h
<<\EOF
11383 #define WORDS_BIGENDIAN 1
11390 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11391 # for constant arguments. Useless!
11392 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11393 echo "configure:11394: checking for working alloca.h" >&5
11394 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
11395 echo $ac_n "(cached) $ac_c" 1>&6
11397 cat > conftest.
$ac_ext <<EOF
11398 #line 11399 "configure"
11399 #include "confdefs.h"
11400 #include <alloca.h>
11402 char *p = alloca(2 * sizeof(int));
11405 if { (eval echo configure
:11406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11407 ac_cv_header_alloca_h
=yes
11409 echo "configure: failed program was:" >&5
11410 cat conftest.
$ac_ext >&5
11412 ac_cv_header_alloca_h
=no
11417 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11418 if test $ac_cv_header_alloca_h = yes; then
11419 cat >> confdefs.h
<<\EOF
11420 #define HAVE_ALLOCA_H 1
11425 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11426 echo "configure:11427: checking for alloca" >&5
11427 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
11428 echo $ac_n "(cached) $ac_c" 1>&6
11430 cat > conftest.
$ac_ext <<EOF
11431 #line 11432 "configure"
11432 #include "confdefs.h"
11435 # define alloca __builtin_alloca
11438 # include <malloc.h>
11439 # define alloca _alloca
11442 # include <alloca.h>
11447 # ifndef alloca /* predefined by HP cc +Olibcalls */
11456 char *p = (char *) alloca(1);
11459 if { (eval echo configure
:11460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11461 ac_cv_func_alloca_works
=yes
11463 echo "configure: failed program was:" >&5
11464 cat conftest.
$ac_ext >&5
11466 ac_cv_func_alloca_works
=no
11471 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11472 if test $ac_cv_func_alloca_works = yes; then
11473 cat >> confdefs.h
<<\EOF
11474 #define HAVE_ALLOCA 1
11479 if test $ac_cv_func_alloca_works = no
; then
11480 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11481 # that cause trouble. Some versions do not even contain alloca or
11482 # contain a buggy version. If you still want to use their alloca,
11483 # use ar to extract alloca.o from them instead of compiling alloca.c.
11484 ALLOCA
=alloca.
${ac_objext}
11485 cat >> confdefs.h
<<\EOF
11490 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11491 echo "configure:11492: checking whether alloca needs Cray hooks" >&5
11492 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
11493 echo $ac_n "(cached) $ac_c" 1>&6
11495 cat > conftest.
$ac_ext <<EOF
11496 #line 11497 "configure"
11497 #include "confdefs.h"
11498 #if defined(CRAY) && ! defined(CRAY2)
11505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11506 egrep "webecray" >/dev
/null
2>&1; then
11517 echo "$ac_t""$ac_cv_os_cray" 1>&6
11518 if test $ac_cv_os_cray = yes; then
11519 for ac_func
in _getb67 GETB67 getb67
; do
11520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11521 echo "configure:11522: checking for $ac_func" >&5
11522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11523 echo $ac_n "(cached) $ac_c" 1>&6
11525 cat > conftest.
$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11528 /* System header to define __stub macros and hopefully few prototypes,
11529 which can conflict with char $ac_func(); below. */
11530 #include <assert.h>
11531 /* Override any gcc2 internal prototype to avoid an error. */
11532 /* We use char because int might match the return type of a gcc2
11533 builtin and then its argument prototype would still apply. */
11538 /* The GNU C library defines this for functions which it implements
11539 to always fail with ENOSYS. Some functions are actually named
11540 something starting with __ and the normal name is an alias. */
11541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11549 if { (eval echo configure
:11550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11551 eval "ac_cv_func_$ac_func=yes"
11553 echo "configure: failed program was:" >&5
11554 cat conftest.
$ac_ext >&5
11556 eval "ac_cv_func_$ac_func=no"
11561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11562 echo "$ac_t""yes" 1>&6
11563 cat >> confdefs.h
<<EOF
11564 #define CRAY_STACKSEG_END $ac_func
11569 echo "$ac_t""no" 1>&6
11575 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11576 echo "configure:11577: checking stack direction for C alloca" >&5
11577 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
11578 echo $ac_n "(cached) $ac_c" 1>&6
11580 if test "$cross_compiling" = yes; then
11581 ac_cv_c_stack_direction
=0
11583 cat > conftest.
$ac_ext <<EOF
11584 #line 11585 "configure"
11585 #include "confdefs.h"
11586 find_stack_direction ()
11588 static char *addr = 0;
11593 return find_stack_direction ();
11596 return (&dummy > addr) ? 1 : -1;
11600 exit (find_stack_direction() < 0);
11603 if { (eval echo configure
:11604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11605 ac_cv_c_stack_direction
=1
11607 echo "configure: failed program was:" >&5
11608 cat conftest.
$ac_ext >&5
11610 ac_cv_c_stack_direction
=-1
11617 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11618 cat >> confdefs.h
<<EOF
11619 #define STACK_DIRECTION $ac_cv_c_stack_direction
11624 if test $ac_cv_prog_gcc = yes; then
11625 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
11626 echo "configure:11627: checking whether ${CC-cc} needs -traditional" >&5
11627 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
11628 echo $ac_n "(cached) $ac_c" 1>&6
11630 ac_pattern
="Autoconf.*'x'"
11631 cat > conftest.
$ac_ext <<EOF
11632 #line 11633 "configure"
11633 #include "confdefs.h"
11637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11638 egrep "$ac_pattern" >/dev
/null
2>&1; then
11640 ac_cv_prog_gcc_traditional
=yes
11643 ac_cv_prog_gcc_traditional
=no
11648 if test $ac_cv_prog_gcc_traditional = no
; then
11649 cat > conftest.
$ac_ext <<EOF
11650 #line 11651 "configure"
11651 #include "confdefs.h"
11652 #include <termio.h>
11655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11656 egrep "$ac_pattern" >/dev
/null
2>&1; then
11658 ac_cv_prog_gcc_traditional
=yes
11665 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
11666 if test $ac_cv_prog_gcc_traditional = yes; then
11667 CC
="$CC -traditional"
11671 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
11672 echo "configure:11673: checking for 8-bit clean memcmp" >&5
11673 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
11674 echo $ac_n "(cached) $ac_c" 1>&6
11676 if test "$cross_compiling" = yes; then
11677 ac_cv_func_memcmp_clean
=no
11679 cat > conftest.
$ac_ext <<EOF
11680 #line 11681 "configure"
11681 #include "confdefs.h"
11685 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11686 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
11690 if { (eval echo configure
:11691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11692 ac_cv_func_memcmp_clean
=yes
11694 echo "configure: failed program was:" >&5
11695 cat conftest.
$ac_ext >&5
11697 ac_cv_func_memcmp_clean
=no
11704 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
11705 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
11707 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
11708 echo "configure:11709: checking return type of signal handlers" >&5
11709 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
11710 echo $ac_n "(cached) $ac_c" 1>&6
11712 cat > conftest.
$ac_ext <<EOF
11713 #line 11714 "configure"
11714 #include "confdefs.h"
11715 #include <sys/types.h>
11716 #include <signal.h>
11721 extern "C" void (*signal (int, void (*)(int)))(int);
11723 void (*signal ()) ();
11730 if { (eval echo configure
:11731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11732 ac_cv_type_signal
=void
11734 echo "configure: failed program was:" >&5
11735 cat conftest.
$ac_ext >&5
11737 ac_cv_type_signal
=int
11742 echo "$ac_t""$ac_cv_type_signal" 1>&6
11743 cat >> confdefs.h
<<EOF
11744 #define RETSIGTYPE $ac_cv_type_signal
11748 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11749 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
11750 echo "configure:11751: checking for getmntent in -lsun" >&5
11751 ac_lib_var
=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
11752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11753 echo $ac_n "(cached) $ac_c" 1>&6
11755 ac_save_LIBS
="$LIBS"
11757 cat > conftest.
$ac_ext <<EOF
11758 #line 11759 "configure"
11759 #include "confdefs.h"
11760 /* Override any gcc2 internal prototype to avoid an error. */
11761 /* We use char because int might match the return type of a gcc2
11762 builtin and then its argument prototype would still apply. */
11769 if { (eval echo configure
:11770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11771 eval "ac_cv_lib_$ac_lib_var=yes"
11773 echo "configure: failed program was:" >&5
11774 cat conftest.
$ac_ext >&5
11776 eval "ac_cv_lib_$ac_lib_var=no"
11779 LIBS
="$ac_save_LIBS"
11782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11783 echo "$ac_t""yes" 1>&6
11786 echo "$ac_t""no" 1>&6
11787 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
11788 echo "configure:11789: checking for getmntent in -lseq" >&5
11789 ac_lib_var
=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
11790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11791 echo $ac_n "(cached) $ac_c" 1>&6
11793 ac_save_LIBS
="$LIBS"
11795 cat > conftest.
$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11798 /* Override any gcc2 internal prototype to avoid an error. */
11799 /* We use char because int might match the return type of a gcc2
11800 builtin and then its argument prototype would still apply. */
11807 if { (eval echo configure
:11808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11809 eval "ac_cv_lib_$ac_lib_var=yes"
11811 echo "configure: failed program was:" >&5
11812 cat conftest.
$ac_ext >&5
11814 eval "ac_cv_lib_$ac_lib_var=no"
11817 LIBS
="$ac_save_LIBS"
11820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11821 echo "$ac_t""yes" 1>&6
11824 echo "$ac_t""no" 1>&6
11825 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
11826 echo "configure:11827: checking for getmntent in -lgen" >&5
11827 ac_lib_var
=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
11828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11829 echo $ac_n "(cached) $ac_c" 1>&6
11831 ac_save_LIBS
="$LIBS"
11833 cat > conftest.
$ac_ext <<EOF
11834 #line 11835 "configure"
11835 #include "confdefs.h"
11836 /* Override any gcc2 internal prototype to avoid an error. */
11837 /* We use char because int might match the return type of a gcc2
11838 builtin and then its argument prototype would still apply. */
11845 if { (eval echo configure
:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11847 eval "ac_cv_lib_$ac_lib_var=yes"
11849 echo "configure: failed program was:" >&5
11850 cat conftest.
$ac_ext >&5
11852 eval "ac_cv_lib_$ac_lib_var=no"
11855 LIBS
="$ac_save_LIBS"
11858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11859 echo "$ac_t""yes" 1>&6
11862 echo "$ac_t""no" 1>&6
11869 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
11870 echo "configure:11871: checking for getmntent" >&5
11871 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
11872 echo $ac_n "(cached) $ac_c" 1>&6
11874 cat > conftest.
$ac_ext <<EOF
11875 #line 11876 "configure"
11876 #include "confdefs.h"
11877 /* System header to define __stub macros and hopefully few prototypes,
11878 which can conflict with char getmntent(); below. */
11879 #include <assert.h>
11880 /* Override any gcc2 internal prototype to avoid an error. */
11881 /* We use char because int might match the return type of a gcc2
11882 builtin and then its argument prototype would still apply. */
11887 /* The GNU C library defines this for functions which it implements
11888 to always fail with ENOSYS. Some functions are actually named
11889 something starting with __ and the normal name is an alias. */
11890 #if defined (__stub_getmntent) || defined (__stub___getmntent)
11898 if { (eval echo configure
:11899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11900 eval "ac_cv_func_getmntent=yes"
11902 echo "configure: failed program was:" >&5
11903 cat conftest.
$ac_ext >&5
11905 eval "ac_cv_func_getmntent=no"
11910 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
11911 echo "$ac_t""yes" 1>&6
11912 cat >> confdefs.h
<<\EOF
11913 #define HAVE_GETMNTENT 1
11917 echo "$ac_t""no" 1>&6
11920 for ac_func
in setmntent gethostname uname gettimeofday
select socket strtol strtoul strlcpy
11922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11923 echo "configure:11924: checking for $ac_func" >&5
11924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11925 echo $ac_n "(cached) $ac_c" 1>&6
11927 cat > conftest.
$ac_ext <<EOF
11928 #line 11929 "configure"
11929 #include "confdefs.h"
11930 /* System header to define __stub macros and hopefully few prototypes,
11931 which can conflict with char $ac_func(); below. */
11932 #include <assert.h>
11933 /* Override any gcc2 internal prototype to avoid an error. */
11934 /* We use char because int might match the return type of a gcc2
11935 builtin and then its argument prototype would still apply. */
11940 /* The GNU C library defines this for functions which it implements
11941 to always fail with ENOSYS. Some functions are actually named
11942 something starting with __ and the normal name is an alias. */
11943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11951 if { (eval echo configure
:11952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11953 eval "ac_cv_func_$ac_func=yes"
11955 echo "configure: failed program was:" >&5
11956 cat conftest.
$ac_ext >&5
11958 eval "ac_cv_func_$ac_func=no"
11963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11964 echo "$ac_t""yes" 1>&6
11965 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11966 cat >> confdefs.h
<<EOF
11967 #define $ac_tr_func 1
11971 echo "$ac_t""no" 1>&6
11975 for ac_func
in strchr strdup memcpy memmove index bcopy strcasestr regcomp
11977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11978 echo "configure:11979: checking for $ac_func" >&5
11979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11980 echo $ac_n "(cached) $ac_c" 1>&6
11982 cat > conftest.
$ac_ext <<EOF
11983 #line 11984 "configure"
11984 #include "confdefs.h"
11985 /* System header to define __stub macros and hopefully few prototypes,
11986 which can conflict with char $ac_func(); below. */
11987 #include <assert.h>
11988 /* Override any gcc2 internal prototype to avoid an error. */
11989 /* We use char because int might match the return type of a gcc2
11990 builtin and then its argument prototype would still apply. */
11995 /* The GNU C library defines this for functions which it implements
11996 to always fail with ENOSYS. Some functions are actually named
11997 something starting with __ and the normal name is an alias. */
11998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12006 if { (eval echo configure
:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12008 eval "ac_cv_func_$ac_func=yes"
12010 echo "configure: failed program was:" >&5
12011 cat conftest.
$ac_ext >&5
12013 eval "ac_cv_func_$ac_func=no"
12018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12019 echo "$ac_t""yes" 1>&6
12020 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12021 cat >> confdefs.h
<<EOF
12022 #define $ac_tr_func 1
12026 echo "$ac_t""no" 1>&6
12030 for ac_func
in signal setsid sigset sigblock sighold strerror setenv vsnprintf snprintf
12032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12033 echo "configure:12034: checking for $ac_func" >&5
12034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12035 echo $ac_n "(cached) $ac_c" 1>&6
12037 cat > conftest.
$ac_ext <<EOF
12038 #line 12039 "configure"
12039 #include "confdefs.h"
12040 /* System header to define __stub macros and hopefully few prototypes,
12041 which can conflict with char $ac_func(); below. */
12042 #include <assert.h>
12043 /* Override any gcc2 internal prototype to avoid an error. */
12044 /* We use char because int might match the return type of a gcc2
12045 builtin and then its argument prototype would still apply. */
12050 /* The GNU C library defines this for functions which it implements
12051 to always fail with ENOSYS. Some functions are actually named
12052 something starting with __ and the normal name is an alias. */
12053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12061 if { (eval echo configure
:12062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12063 eval "ac_cv_func_$ac_func=yes"
12065 echo "configure: failed program was:" >&5
12066 cat conftest.
$ac_ext >&5
12068 eval "ac_cv_func_$ac_func=no"
12073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12074 echo "$ac_t""yes" 1>&6
12075 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12076 cat >> confdefs.h
<<EOF
12077 #define $ac_tr_func 1
12081 echo "$ac_t""no" 1>&6
12085 for ac_func
in sigaction
12087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12088 echo "configure:12089: checking for $ac_func" >&5
12089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12090 echo $ac_n "(cached) $ac_c" 1>&6
12092 cat > conftest.
$ac_ext <<EOF
12093 #line 12094 "configure"
12094 #include "confdefs.h"
12095 /* System header to define __stub macros and hopefully few prototypes,
12096 which can conflict with char $ac_func(); below. */
12097 #include <assert.h>
12098 /* Override any gcc2 internal prototype to avoid an error. */
12099 /* We use char because int might match the return type of a gcc2
12100 builtin and then its argument prototype would still apply. */
12105 /* The GNU C library defines this for functions which it implements
12106 to always fail with ENOSYS. Some functions are actually named
12107 something starting with __ and the normal name is an alias. */
12108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12116 if { (eval echo configure
:12117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12118 eval "ac_cv_func_$ac_func=yes"
12120 echo "configure: failed program was:" >&5
12121 cat conftest.
$ac_ext >&5
12123 eval "ac_cv_func_$ac_func=no"
12128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12129 echo "$ac_t""yes" 1>&6
12130 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12131 cat >> confdefs.h
<<EOF
12132 #define $ac_tr_func 1
12136 echo "$ac_t""no" 1>&6
12140 for ac_func
in snprintf strtoul
12142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12143 echo "configure:12144: checking for $ac_func" >&5
12144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12145 echo $ac_n "(cached) $ac_c" 1>&6
12147 cat > conftest.
$ac_ext <<EOF
12148 #line 12149 "configure"
12149 #include "confdefs.h"
12150 /* System header to define __stub macros and hopefully few prototypes,
12151 which can conflict with char $ac_func(); below. */
12152 #include <assert.h>
12153 /* Override any gcc2 internal prototype to avoid an error. */
12154 /* We use char because int might match the return type of a gcc2
12155 builtin and then its argument prototype would still apply. */
12160 /* The GNU C library defines this for functions which it implements
12161 to always fail with ENOSYS. Some functions are actually named
12162 something starting with __ and the normal name is an alias. */
12163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12171 if { (eval echo configure
:12172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12173 eval "ac_cv_func_$ac_func=yes"
12175 echo "configure: failed program was:" >&5
12176 cat conftest.
$ac_ext >&5
12178 eval "ac_cv_func_$ac_func=no"
12183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12184 echo "$ac_t""yes" 1>&6
12185 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12186 cat >> confdefs.h
<<EOF
12187 #define $ac_tr_func 1
12191 echo "$ac_t""no" 1>&6
12195 for ac_func
in random lrand48 rand
12197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12198 echo "configure:12199: checking for $ac_func" >&5
12199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12200 echo $ac_n "(cached) $ac_c" 1>&6
12202 cat > conftest.
$ac_ext <<EOF
12203 #line 12204 "configure"
12204 #include "confdefs.h"
12205 /* System header to define __stub macros and hopefully few prototypes,
12206 which can conflict with char $ac_func(); below. */
12207 #include <assert.h>
12208 /* Override any gcc2 internal prototype to avoid an error. */
12209 /* We use char because int might match the return type of a gcc2
12210 builtin and then its argument prototype would still apply. */
12215 /* The GNU C library defines this for functions which it implements
12216 to always fail with ENOSYS. Some functions are actually named
12217 something starting with __ and the normal name is an alias. */
12218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12226 if { (eval echo configure
:12227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12228 eval "ac_cv_func_$ac_func=yes"
12230 echo "configure: failed program was:" >&5
12231 cat conftest.
$ac_ext >&5
12233 eval "ac_cv_func_$ac_func=no"
12238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12239 echo "$ac_t""yes" 1>&6
12240 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12241 cat >> confdefs.h
<<EOF
12242 #define $ac_tr_func 1
12246 echo "$ac_t""no" 1>&6
12250 for ac_func
in execv system fork getpid strncasecmp sigalrm
12252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12253 echo "configure:12254: checking for $ac_func" >&5
12254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12255 echo $ac_n "(cached) $ac_c" 1>&6
12257 cat > conftest.
$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 /* System header to define __stub macros and hopefully few prototypes,
12261 which can conflict with char $ac_func(); below. */
12262 #include <assert.h>
12263 /* Override any gcc2 internal prototype to avoid an error. */
12264 /* We use char because int might match the return type of a gcc2
12265 builtin and then its argument prototype would still apply. */
12270 /* The GNU C library defines this for functions which it implements
12271 to always fail with ENOSYS. Some functions are actually named
12272 something starting with __ and the normal name is an alias. */
12273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12281 if { (eval echo configure
:12282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12283 eval "ac_cv_func_$ac_func=yes"
12285 echo "configure: failed program was:" >&5
12286 cat conftest.
$ac_ext >&5
12288 eval "ac_cv_func_$ac_func=no"
12293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12294 echo "$ac_t""yes" 1>&6
12295 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12296 cat >> confdefs.h
<<EOF
12297 #define $ac_tr_func 1
12301 echo "$ac_t""no" 1>&6
12305 if echo " $module_list " |
grep " host/hr_swinst " > /dev
/null
; then
12308 for ac_func
in rpmGetPath
12310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12311 echo "configure:12312: checking for $ac_func" >&5
12312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12313 echo $ac_n "(cached) $ac_c" 1>&6
12315 cat > conftest.
$ac_ext <<EOF
12316 #line 12317 "configure"
12317 #include "confdefs.h"
12318 /* System header to define __stub macros and hopefully few prototypes,
12319 which can conflict with char $ac_func(); below. */
12320 #include <assert.h>
12321 /* Override any gcc2 internal prototype to avoid an error. */
12322 /* We use char because int might match the return type of a gcc2
12323 builtin and then its argument prototype would still apply. */
12328 /* The GNU C library defines this for functions which it implements
12329 to always fail with ENOSYS. Some functions are actually named
12330 something starting with __ and the normal name is an alias. */
12331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12339 if { (eval echo configure
:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12341 eval "ac_cv_func_$ac_func=yes"
12343 echo "configure: failed program was:" >&5
12344 cat conftest.
$ac_ext >&5
12346 eval "ac_cv_func_$ac_func=no"
12351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12352 echo "$ac_t""yes" 1>&6
12353 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12354 cat >> confdefs.h
<<EOF
12355 #define $ac_tr_func 1
12359 echo "$ac_t""no" 1>&6
12366 for ac_func
in getloadavg
12368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12369 echo "configure:12370: checking for $ac_func" >&5
12370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12371 echo $ac_n "(cached) $ac_c" 1>&6
12373 cat > conftest.
$ac_ext <<EOF
12374 #line 12375 "configure"
12375 #include "confdefs.h"
12376 /* System header to define __stub macros and hopefully few prototypes,
12377 which can conflict with char $ac_func(); below. */
12378 #include <assert.h>
12379 /* Override any gcc2 internal prototype to avoid an error. */
12380 /* We use char because int might match the return type of a gcc2
12381 builtin and then its argument prototype would still apply. */
12386 /* The GNU C library defines this for functions which it implements
12387 to always fail with ENOSYS. Some functions are actually named
12388 something starting with __ and the normal name is an alias. */
12389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12397 if { (eval echo configure
:12398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12399 eval "ac_cv_func_$ac_func=yes"
12401 echo "configure: failed program was:" >&5
12402 cat conftest.
$ac_ext >&5
12404 eval "ac_cv_func_$ac_func=no"
12409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12410 echo "$ac_t""yes" 1>&6
12411 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12412 cat >> confdefs.h
<<EOF
12413 #define $ac_tr_func 1
12417 echo "$ac_t""no" 1>&6
12421 for ac_func
in getaddrinfo getipnodebyname
12423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12424 echo "configure:12425: checking for $ac_func" >&5
12425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12426 echo $ac_n "(cached) $ac_c" 1>&6
12428 cat > conftest.
$ac_ext <<EOF
12429 #line 12430 "configure"
12430 #include "confdefs.h"
12431 /* System header to define __stub macros and hopefully few prototypes,
12432 which can conflict with char $ac_func(); below. */
12433 #include <assert.h>
12434 /* Override any gcc2 internal prototype to avoid an error. */
12435 /* We use char because int might match the return type of a gcc2
12436 builtin and then its argument prototype would still apply. */
12441 /* The GNU C library defines this for functions which it implements
12442 to always fail with ENOSYS. Some functions are actually named
12443 something starting with __ and the normal name is an alias. */
12444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12452 if { (eval echo configure
:12453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12454 eval "ac_cv_func_$ac_func=yes"
12456 echo "configure: failed program was:" >&5
12457 cat conftest.
$ac_ext >&5
12459 eval "ac_cv_func_$ac_func=no"
12464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12465 echo "$ac_t""yes" 1>&6
12466 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12467 cat >> confdefs.h
<<EOF
12468 #define $ac_tr_func 1
12472 echo "$ac_t""no" 1>&6
12476 for ac_func
in statvfs statfs
12478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12479 echo "configure:12480: checking for $ac_func" >&5
12480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12481 echo $ac_n "(cached) $ac_c" 1>&6
12483 cat > conftest.
$ac_ext <<EOF
12484 #line 12485 "configure"
12485 #include "confdefs.h"
12486 /* System header to define __stub macros and hopefully few prototypes,
12487 which can conflict with char $ac_func(); below. */
12488 #include <assert.h>
12489 /* Override any gcc2 internal prototype to avoid an error. */
12490 /* We use char because int might match the return type of a gcc2
12491 builtin and then its argument prototype would still apply. */
12496 /* The GNU C library defines this for functions which it implements
12497 to always fail with ENOSYS. Some functions are actually named
12498 something starting with __ and the normal name is an alias. */
12499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12507 if { (eval echo configure
:12508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12509 eval "ac_cv_func_$ac_func=yes"
12511 echo "configure: failed program was:" >&5
12512 cat conftest.
$ac_ext >&5
12514 eval "ac_cv_func_$ac_func=no"
12519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12520 echo "$ac_t""yes" 1>&6
12521 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12522 cat >> confdefs.h
<<EOF
12523 #define $ac_tr_func 1
12527 echo "$ac_t""no" 1>&6
12531 for ac_func
in getdtablesize
12533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12534 echo "configure:12535: checking for $ac_func" >&5
12535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12536 echo $ac_n "(cached) $ac_c" 1>&6
12538 cat > conftest.
$ac_ext <<EOF
12539 #line 12540 "configure"
12540 #include "confdefs.h"
12541 /* System header to define __stub macros and hopefully few prototypes,
12542 which can conflict with char $ac_func(); below. */
12543 #include <assert.h>
12544 /* Override any gcc2 internal prototype to avoid an error. */
12545 /* We use char because int might match the return type of a gcc2
12546 builtin and then its argument prototype would still apply. */
12551 /* The GNU C library defines this for functions which it implements
12552 to always fail with ENOSYS. Some functions are actually named
12553 something starting with __ and the normal name is an alias. */
12554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12562 if { (eval echo configure
:12563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12564 eval "ac_cv_func_$ac_func=yes"
12566 echo "configure: failed program was:" >&5
12567 cat conftest.
$ac_ext >&5
12569 eval "ac_cv_func_$ac_func=no"
12574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12575 echo "$ac_t""yes" 1>&6
12576 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12577 cat >> confdefs.h
<<EOF
12578 #define $ac_tr_func 1
12582 echo "$ac_t""no" 1>&6
12586 for ac_func
in getfsstat
12588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12589 echo "configure:12590: checking for $ac_func" >&5
12590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12591 echo $ac_n "(cached) $ac_c" 1>&6
12593 cat > conftest.
$ac_ext <<EOF
12594 #line 12595 "configure"
12595 #include "confdefs.h"
12596 /* System header to define __stub macros and hopefully few prototypes,
12597 which can conflict with char $ac_func(); below. */
12598 #include <assert.h>
12599 /* Override any gcc2 internal prototype to avoid an error. */
12600 /* We use char because int might match the return type of a gcc2
12601 builtin and then its argument prototype would still apply. */
12606 /* The GNU C library defines this for functions which it implements
12607 to always fail with ENOSYS. Some functions are actually named
12608 something starting with __ and the normal name is an alias. */
12609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12617 if { (eval echo configure
:12618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12619 eval "ac_cv_func_$ac_func=yes"
12621 echo "configure: failed program was:" >&5
12622 cat conftest.
$ac_ext >&5
12624 eval "ac_cv_func_$ac_func=no"
12629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12630 echo "$ac_t""yes" 1>&6
12631 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12632 cat >> confdefs.h
<<EOF
12633 #define $ac_tr_func 1
12637 echo "$ac_t""no" 1>&6
12641 for ac_func
in usleep
12643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12644 echo "configure:12645: checking for $ac_func" >&5
12645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12646 echo $ac_n "(cached) $ac_c" 1>&6
12648 cat > conftest.
$ac_ext <<EOF
12649 #line 12650 "configure"
12650 #include "confdefs.h"
12651 /* System header to define __stub macros and hopefully few prototypes,
12652 which can conflict with char $ac_func(); below. */
12653 #include <assert.h>
12654 /* Override any gcc2 internal prototype to avoid an error. */
12655 /* We use char because int might match the return type of a gcc2
12656 builtin and then its argument prototype would still apply. */
12661 /* The GNU C library defines this for functions which it implements
12662 to always fail with ENOSYS. Some functions are actually named
12663 something starting with __ and the normal name is an alias. */
12664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12672 if { (eval echo configure
:12673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12674 eval "ac_cv_func_$ac_func=yes"
12676 echo "configure: failed program was:" >&5
12677 cat conftest.
$ac_ext >&5
12679 eval "ac_cv_func_$ac_func=no"
12684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12685 echo "$ac_t""yes" 1>&6
12686 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12687 cat >> confdefs.h
<<EOF
12688 #define $ac_tr_func 1
12692 echo "$ac_t""no" 1>&6
12696 for ac_func
in setlocale
12698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12699 echo "configure:12700: checking for $ac_func" >&5
12700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12701 echo $ac_n "(cached) $ac_c" 1>&6
12703 cat > conftest.
$ac_ext <<EOF
12704 #line 12705 "configure"
12705 #include "confdefs.h"
12706 /* System header to define __stub macros and hopefully few prototypes,
12707 which can conflict with char $ac_func(); below. */
12708 #include <assert.h>
12709 /* Override any gcc2 internal prototype to avoid an error. */
12710 /* We use char because int might match the return type of a gcc2
12711 builtin and then its argument prototype would still apply. */
12716 /* The GNU C library defines this for functions which it implements
12717 to always fail with ENOSYS. Some functions are actually named
12718 something starting with __ and the normal name is an alias. */
12719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12727 if { (eval echo configure
:12728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12729 eval "ac_cv_func_$ac_func=yes"
12731 echo "configure: failed program was:" >&5
12732 cat conftest.
$ac_ext >&5
12734 eval "ac_cv_func_$ac_func=no"
12739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12740 echo "$ac_t""yes" 1>&6
12741 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12742 cat >> confdefs.h
<<EOF
12743 #define $ac_tr_func 1
12747 echo "$ac_t""no" 1>&6
12751 for ac_func
in tcgetattr
12753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12754 echo "configure:12755: checking for $ac_func" >&5
12755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12756 echo $ac_n "(cached) $ac_c" 1>&6
12758 cat > conftest.
$ac_ext <<EOF
12759 #line 12760 "configure"
12760 #include "confdefs.h"
12761 /* System header to define __stub macros and hopefully few prototypes,
12762 which can conflict with char $ac_func(); below. */
12763 #include <assert.h>
12764 /* Override any gcc2 internal prototype to avoid an error. */
12765 /* We use char because int might match the return type of a gcc2
12766 builtin and then its argument prototype would still apply. */
12771 /* The GNU C library defines this for functions which it implements
12772 to always fail with ENOSYS. Some functions are actually named
12773 something starting with __ and the normal name is an alias. */
12774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12782 if { (eval echo configure
:12783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12784 eval "ac_cv_func_$ac_func=yes"
12786 echo "configure: failed program was:" >&5
12787 cat conftest.
$ac_ext >&5
12789 eval "ac_cv_func_$ac_func=no"
12794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12795 echo "$ac_t""yes" 1>&6
12796 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12797 cat >> confdefs.h
<<EOF
12798 #define $ac_tr_func 1
12802 echo "$ac_t""no" 1>&6
12806 for ac_func
in if_nameindex if_freenameindex
12808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12809 echo "configure:12810: checking for $ac_func" >&5
12810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12811 echo $ac_n "(cached) $ac_c" 1>&6
12813 cat > conftest.
$ac_ext <<EOF
12814 #line 12815 "configure"
12815 #include "confdefs.h"
12816 /* System header to define __stub macros and hopefully few prototypes,
12817 which can conflict with char $ac_func(); below. */
12818 #include <assert.h>
12819 /* Override any gcc2 internal prototype to avoid an error. */
12820 /* We use char because int might match the return type of a gcc2
12821 builtin and then its argument prototype would still apply. */
12826 /* The GNU C library defines this for functions which it implements
12827 to always fail with ENOSYS. Some functions are actually named
12828 something starting with __ and the normal name is an alias. */
12829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12837 if { (eval echo configure
:12838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12839 eval "ac_cv_func_$ac_func=yes"
12841 echo "configure: failed program was:" >&5
12842 cat conftest.
$ac_ext >&5
12844 eval "ac_cv_func_$ac_func=no"
12849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12850 echo "$ac_t""yes" 1>&6
12851 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12852 cat >> confdefs.h
<<EOF
12853 #define $ac_tr_func 1
12857 echo "$ac_t""no" 1>&6
12861 for ac_func
in getpagesize
12863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12864 echo "configure:12865: checking for $ac_func" >&5
12865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12866 echo $ac_n "(cached) $ac_c" 1>&6
12868 cat > conftest.
$ac_ext <<EOF
12869 #line 12870 "configure"
12870 #include "confdefs.h"
12871 /* System header to define __stub macros and hopefully few prototypes,
12872 which can conflict with char $ac_func(); below. */
12873 #include <assert.h>
12874 /* Override any gcc2 internal prototype to avoid an error. */
12875 /* We use char because int might match the return type of a gcc2
12876 builtin and then its argument prototype would still apply. */
12881 /* The GNU C library defines this for functions which it implements
12882 to always fail with ENOSYS. Some functions are actually named
12883 something starting with __ and the normal name is an alias. */
12884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12892 if { (eval echo configure
:12893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12894 eval "ac_cv_func_$ac_func=yes"
12896 echo "configure: failed program was:" >&5
12897 cat conftest.
$ac_ext >&5
12899 eval "ac_cv_func_$ac_func=no"
12904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12905 echo "$ac_t""yes" 1>&6
12906 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12907 cat >> confdefs.h
<<EOF
12908 #define $ac_tr_func 1
12912 echo "$ac_t""no" 1>&6
12916 for ac_func
in mkstemp
12918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12919 echo "configure:12920: checking for $ac_func" >&5
12920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12921 echo $ac_n "(cached) $ac_c" 1>&6
12923 cat > conftest.
$ac_ext <<EOF
12924 #line 12925 "configure"
12925 #include "confdefs.h"
12926 /* System header to define __stub macros and hopefully few prototypes,
12927 which can conflict with char $ac_func(); below. */
12928 #include <assert.h>
12929 /* Override any gcc2 internal prototype to avoid an error. */
12930 /* We use char because int might match the return type of a gcc2
12931 builtin and then its argument prototype would still apply. */
12936 /* The GNU C library defines this for functions which it implements
12937 to always fail with ENOSYS. Some functions are actually named
12938 something starting with __ and the normal name is an alias. */
12939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12947 if { (eval echo configure
:12948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12949 eval "ac_cv_func_$ac_func=yes"
12951 echo "configure: failed program was:" >&5
12952 cat conftest.
$ac_ext >&5
12954 eval "ac_cv_func_$ac_func=no"
12959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12960 echo "$ac_t""yes" 1>&6
12961 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12962 cat >> confdefs.h
<<EOF
12963 #define $ac_tr_func 1
12967 echo "$ac_t""no" 1>&6
12971 for ac_func
in getpwnam getgrnam setgid setuid setgroups
12973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12974 echo "configure:12975: checking for $ac_func" >&5
12975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12976 echo $ac_n "(cached) $ac_c" 1>&6
12978 cat > conftest.
$ac_ext <<EOF
12979 #line 12980 "configure"
12980 #include "confdefs.h"
12981 /* System header to define __stub macros and hopefully few prototypes,
12982 which can conflict with char $ac_func(); below. */
12983 #include <assert.h>
12984 /* Override any gcc2 internal prototype to avoid an error. */
12985 /* We use char because int might match the return type of a gcc2
12986 builtin and then its argument prototype would still apply. */
12991 /* The GNU C library defines this for functions which it implements
12992 to always fail with ENOSYS. Some functions are actually named
12993 something starting with __ and the normal name is an alias. */
12994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13002 if { (eval echo configure
:13003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13004 eval "ac_cv_func_$ac_func=yes"
13006 echo "configure: failed program was:" >&5
13007 cat conftest.
$ac_ext >&5
13009 eval "ac_cv_func_$ac_func=no"
13014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13015 echo "$ac_t""yes" 1>&6
13016 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13017 cat >> confdefs.h
<<EOF
13018 #define $ac_tr_func 1
13022 echo "$ac_t""no" 1>&6
13026 for ac_func
in setitimer
13028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13029 echo "configure:13030: checking for $ac_func" >&5
13030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13031 echo $ac_n "(cached) $ac_c" 1>&6
13033 cat > conftest.
$ac_ext <<EOF
13034 #line 13035 "configure"
13035 #include "confdefs.h"
13036 /* System header to define __stub macros and hopefully few prototypes,
13037 which can conflict with char $ac_func(); below. */
13038 #include <assert.h>
13039 /* Override any gcc2 internal prototype to avoid an error. */
13040 /* We use char because int might match the return type of a gcc2
13041 builtin and then its argument prototype would still apply. */
13046 /* The GNU C library defines this for functions which it implements
13047 to always fail with ENOSYS. Some functions are actually named
13048 something starting with __ and the normal name is an alias. */
13049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13057 if { (eval echo configure
:13058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13059 eval "ac_cv_func_$ac_func=yes"
13061 echo "configure: failed program was:" >&5
13062 cat conftest.
$ac_ext >&5
13064 eval "ac_cv_func_$ac_func=no"
13069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13070 echo "$ac_t""yes" 1>&6
13071 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13072 cat >> confdefs.h
<<EOF
13073 #define $ac_tr_func 1
13077 echo "$ac_t""no" 1>&6
13082 echo $ac_n "checking for SIOCGIFADDR in sys/ioctl.h""... $ac_c" 1>&6
13083 echo "configure:13084: checking for SIOCGIFADDR in sys/ioctl.h" >&5
13084 if eval "test \"`echo '$''{'cv_sys_ioctl_h_has_SIOCGIFADDR'+set}'`\" = set"; then
13085 echo $ac_n "(cached) $ac_c" 1>&6
13087 cat > conftest.
$ac_ext <<EOF
13088 #line 13089 "configure"
13089 #include "confdefs.h"
13091 #ifdef HAVE_SYS_IOCTL_H
13092 #include <sys/ioctl.h>
13099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13100 egrep "xxxyesxxx" >/dev
/null
2>&1; then
13102 cv_sys_ioctl_h_has_SIOCGIFADDR
=yes
13105 cv_sys_ioctl_h_has_SIOCGIFADDR
=no
13111 echo "$ac_t""$cv_sys_ioctl_h_has_SIOCGIFADDR" 1>&6
13112 if test $cv_sys_ioctl_h_has_SIOCGIFADDR = yes; then
13113 cat >> confdefs.h
<<\EOF
13114 #define SYS_IOCTL_H_HAS_SIOCGIFADDR 1
13120 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13121 echo "configure:13122: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13122 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13123 echo $ac_n "(cached) $ac_c" 1>&6
13125 if test "$cross_compiling" = yes; then
13126 fu_cv_sys_stat_fs_data
=no
13128 cat > conftest.
$ac_ext <<EOF
13129 #line 13130 "configure"
13130 #include "confdefs.h"
13132 #ifdef HAVE_SYS_PARAM_H
13133 #include <sys/param.h>
13135 #include <sys/types.h>
13136 #ifdef HAVE_SYS_MOUNT_H
13137 #include <sys/mount.h>
13139 #ifdef HAVE_SYS_FS_TYPES_H
13140 #include <sys/fs_types.h>
13144 struct fs_data fsd;
13145 /* Ultrix's statfs returns 1 for success,
13146 0 for not mounted, -1 for failure. */
13147 exit (statfs (".", &fsd) != 1);
13150 if { (eval echo configure
:13151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13152 fu_cv_sys_stat_fs_data
=yes
13154 echo "configure: failed program was:" >&5
13155 cat conftest.
$ac_ext >&5
13157 fu_cv_sys_stat_fs_data
=no
13164 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13165 if test $fu_cv_sys_stat_fs_data = yes; then
13166 cat >> confdefs.h
<<\EOF
13167 #define STAT_STATFS_FS_DATA 1
13172 echo $ac_n "checking if __FUNCTION__ is defined""... $ac_c" 1>&6
13173 echo "configure:13174: checking if __FUNCTION__ is defined" >&5
13174 if eval "test \"`echo '$''{'ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED'+set}'`\" = set"; then
13175 echo $ac_n "(cached) $ac_c" 1>&6
13178 cat > conftest.
$ac_ext <<EOF
13179 #line 13180 "configure"
13180 #include "confdefs.h"
13184 char *cp = __FUNCTION__;
13188 if { (eval echo configure
:13189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13190 ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED
=yes
13192 echo "configure: failed program was:" >&5
13193 cat conftest.
$ac_ext >&5
13195 ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED
=no
13200 echo "$ac_t""$ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED" 1>&6
13202 if test "x$ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED" = "xyes"; then
13203 cat >> confdefs.h
<<\EOF
13204 #define HAVE_CPP_UNDERBAR_FUNCTION_DEFINED 1
13211 ac_safe_struct
=`echo "sigaction" | sed 'y%./+-%__p_%'`
13212 ac_safe_member
=`echo "sa_sigaction" | sed 'y%./+-%__p_%'`
13213 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13214 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13216 echo $ac_n "checking for sigaction.sa_sigaction""... $ac_c" 1>&6
13217 echo "configure:13218: checking for sigaction.sa_sigaction" >&5
13218 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13219 echo $ac_n "(cached) $ac_c" 1>&6
13222 if test "xno" = "x"; then
13224 elif test "xno" = "xno"; then
13229 cat > conftest.
$ac_ext <<EOF
13230 #line 13231 "configure"
13231 #include "confdefs.h"
13234 #ifdef HAVE_SYS_PARAM_H
13235 #include <sys/param.h>
13237 #include <sys/types.h>
13238 #include <sys/signal.h>
13243 struct sigaction testit;
13244 testit.sa_sigaction $defineit;
13248 if { (eval echo configure
:13249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13250 eval "${ac_safe_all}=yes"
13252 echo "configure: failed program was:" >&5
13253 cat conftest.
$ac_ext >&5
13255 eval "${ac_safe_all}=no"
13262 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13263 echo "$ac_t""yes" 1>&6
13264 cat >> confdefs.h
<<EOF
13265 #define $ac_uc_define 1
13269 echo "$ac_t""no" 1>&6
13276 ac_safe_struct
=`echo "sockaddr" | sed 'y%./+-%__p_%'`
13277 ac_safe_member
=`echo "sa_len" | sed 'y%./+-%__p_%'`
13278 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13279 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13281 echo $ac_n "checking for sockaddr.sa_len""... $ac_c" 1>&6
13282 echo "configure:13283: checking for sockaddr.sa_len" >&5
13283 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13284 echo $ac_n "(cached) $ac_c" 1>&6
13287 if test "xno" = "x"; then
13289 elif test "xno" = "xno"; then
13294 cat > conftest.
$ac_ext <<EOF
13295 #line 13296 "configure"
13296 #include "confdefs.h"
13299 #ifdef HAVE_SYS_PARAM_H
13300 #include <sys/param.h>
13302 #include <sys/types.h>
13305 #include <sys/socket.h>
13312 struct sockaddr testit;
13313 testit.sa_len $defineit;
13317 if { (eval echo configure
:13318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13319 eval "${ac_safe_all}=yes"
13321 echo "configure: failed program was:" >&5
13322 cat conftest.
$ac_ext >&5
13324 eval "${ac_safe_all}=no"
13331 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13332 echo "$ac_t""yes" 1>&6
13333 cat >> confdefs.h
<<EOF
13334 #define $ac_uc_define 1
13338 echo "$ac_t""no" 1>&6
13345 ac_safe_struct
=`echo "sockaddr" | sed 'y%./+-%__p_%'`
13346 ac_safe_member
=`echo "sa_union.sa_generic.sa_family2" | sed 'y%./+-%__p_%'`
13347 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13348 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13350 echo $ac_n "checking for sockaddr.sa_union.sa_generic.sa_family2""... $ac_c" 1>&6
13351 echo "configure:13352: checking for sockaddr.sa_union.sa_generic.sa_family2" >&5
13352 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13353 echo $ac_n "(cached) $ac_c" 1>&6
13356 if test "xno" = "x"; then
13358 elif test "xno" = "xno"; then
13363 cat > conftest.
$ac_ext <<EOF
13364 #line 13365 "configure"
13365 #include "confdefs.h"
13368 #ifdef HAVE_SYS_PARAM_H
13369 #include <sys/param.h>
13371 #include <sys/types.h>
13374 #include <sys/socket.h>
13381 struct sockaddr testit;
13382 testit.sa_union.sa_generic.sa_family2 $defineit;
13386 if { (eval echo configure
:13387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13388 eval "${ac_safe_all}=yes"
13390 echo "configure: failed program was:" >&5
13391 cat conftest.
$ac_ext >&5
13393 eval "${ac_safe_all}=no"
13400 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13401 echo "$ac_t""yes" 1>&6
13402 cat >> confdefs.h
<<EOF
13403 #define $ac_uc_define 1
13407 echo "$ac_t""no" 1>&6
13414 ac_safe_struct
=`echo "rtentry" | sed 'y%./+-%__p_%'`
13415 ac_safe_member
=`echo "rt_dst" | sed 'y%./+-%__p_%'`
13416 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13417 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13419 echo $ac_n "checking for rtentry.rt_dst""... $ac_c" 1>&6
13420 echo "configure:13421: checking for rtentry.rt_dst" >&5
13421 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13422 echo $ac_n "(cached) $ac_c" 1>&6
13425 if test "xno" = "x"; then
13427 elif test "xno" = "xno"; then
13432 cat > conftest.
$ac_ext <<EOF
13433 #line 13434 "configure"
13434 #include "confdefs.h"
13437 #ifdef HAVE_SYS_PARAM_H
13438 #include <sys/param.h>
13440 #include <sys/types.h>
13443 #include <sys/socket.h>
13446 #include <net/route.h>
13451 struct rtentry testit;
13452 testit.rt_dst $defineit;
13456 if { (eval echo configure
:13457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13458 eval "${ac_safe_all}=yes"
13460 echo "configure: failed program was:" >&5
13461 cat conftest.
$ac_ext >&5
13463 eval "${ac_safe_all}=no"
13470 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13471 echo "$ac_t""yes" 1>&6
13472 cat >> confdefs.h
<<EOF
13473 #define $ac_uc_define 1
13477 echo "$ac_t""no" 1>&6
13482 echo $ac_n "checking type of rtentry structure""... $ac_c" 1>&6
13483 echo "configure:13484: checking type of rtentry structure" >&5
13484 if eval "test \"`echo '$''{'ac_cv_RTENTRY_TYPE'+set}'`\" = set"; then
13485 echo $ac_n "(cached) $ac_c" 1>&6
13489 cat > conftest.
$ac_ext <<EOF
13490 #line 13491 "configure"
13491 #include "confdefs.h"
13493 #ifdef HAVE_SYS_PARAM_H
13494 #include <sys/param.h>
13496 #include <sys/types.h>
13499 #include <sys/socket.h>
13502 #include <net/route.h>
13507 #ifndef STRUCT_RTENTRY_HAS_RT_DST
13508 #define rt_dst rt_nodes->rn_key
13512 rt.rt_nodes[0].rn_flags = 1;
13517 if { (eval echo configure
:13518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13519 ac_cv_RTENTRY_TYPE
="BSD-4.4"
13521 echo "configure: failed program was:" >&5
13522 cat conftest.
$ac_ext >&5
13526 if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
13527 cat > conftest.
$ac_ext <<EOF
13528 #line 13529 "configure"
13529 #include "confdefs.h"
13531 #ifdef HAVE_SYS_PARAM_H
13532 #include <sys/param.h>
13534 #include <sys/types.h>
13537 #include <sys/socket.h>
13540 #include <net/route.h>
13549 if { (eval echo configure
:13550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13551 ac_cv_RTENTRY_TYPE
="BSD-4.3"
13553 echo "configure: failed program was:" >&5
13554 cat conftest.
$ac_ext >&5
13559 if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
13560 echo "$ac_t""Unknown" 1>&6
13561 ac_cv_RTENTRY_TYPE
="unknown"
13567 echo "$ac_t""$ac_cv_RTENTRY_TYPE" 1>&6
13569 if test "x$ac_cv_RTENTRY_TYPE" = "xBSD-4.4"; then
13570 cat >> confdefs.h
<<\EOF
13571 #define RTENTRY_4_4 1
13576 if test "x$ac_cv_RTENTRY_TYPE" = "xunknown"; then
13577 echo $ac_n "checking for struct rtentry""... $ac_c" 1>&6
13578 echo "configure:13579: checking for struct rtentry" >&5
13579 if eval "test \"`echo '$''{'ac_cv_struct_rtentry'+set}'`\" = set"; then
13580 echo $ac_n "(cached) $ac_c" 1>&6
13582 cat > conftest.
$ac_ext <<EOF
13583 #line 13584 "configure"
13584 #include "confdefs.h"
13586 #include <net/route.h>
13589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13590 egrep "ortentry" >/dev
/null
2>&1; then
13592 ac_cv_struct_rtentry
=ortentry
13595 ac_cv_struct_rtentry
=rtentry
13599 if test "x$ac_cv_struct_rtentry" = "xrtentry" ; then
13600 ac_cv_struct_rtentry
="rtentry"
13602 ac_cv_struct_rtentry
="ortentry"
13607 echo "$ac_t""$ac_cv_struct_rtentry" 1>&6
13609 RTENTRY_TYPE
="rtentry"
13610 ac_cv_struct_rtentry
="rtentry"
13613 if test "x$ac_cv_struct_rtentry" != "x"; then
13614 cat >> confdefs.h
<<EOF
13615 #define RTENTRY struct ${ac_cv_struct_rtentry}
13619 cat >> confdefs.h
<<\EOF
13620 #define RTENTRY struct rtentry
13625 if test "x$ac_cv_RTENTRY_TYPE" = "xBSD-4.3"; then
13626 echo $ac_n "checking for struct rtentry has a rt_next node""... $ac_c" 1>&6
13627 echo "configure:13628: checking for struct rtentry has a rt_next node" >&5
13628 if eval "test \"`echo '$''{'ac_cv_struct_rtentry_rt_next'+set}'`\" = set"; then
13629 echo $ac_n "(cached) $ac_c" 1>&6
13632 cat > conftest.
$ac_ext <<EOF
13633 #line 13634 "configure"
13634 #include "confdefs.h"
13636 #ifdef HAVE_SYS_PARAM_H
13637 #include <sys/param.h>
13639 #include <sys/types.h>
13642 #include <sys/socket.h>
13645 #include <net/route.h>
13654 if { (eval echo configure
:13655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13656 ac_cv_struct_rtentry_rt_next
=yes
13658 echo "configure: failed program was:" >&5
13659 cat conftest.
$ac_ext >&5
13661 ac_cv_struct_rtentry_rt_next
=no
13667 echo "$ac_t""$ac_cv_struct_rtentry_rt_next" 1>&6
13669 if test "x$ac_cv_struct_rtentry_rt_next" = "xyes"; then
13670 cat >> confdefs.h
<<\EOF
13671 #define RTENTRY_RT_NEXT 1
13680 ac_safe_struct
=`echo "rtentry" | sed 'y%./+-%__p_%'`
13681 ac_safe_member
=`echo "rt_unit" | sed 'y%./+-%__p_%'`
13682 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13683 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13685 echo $ac_n "checking for rtentry.rt_unit""... $ac_c" 1>&6
13686 echo "configure:13687: checking for rtentry.rt_unit" >&5
13687 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13688 echo $ac_n "(cached) $ac_c" 1>&6
13691 if test "x" = "x"; then
13693 elif test "x" = "xno"; then
13698 cat > conftest.
$ac_ext <<EOF
13699 #line 13700 "configure"
13700 #include "confdefs.h"
13703 #ifdef HAVE_SYS_PARAM_H
13704 #include <sys/param.h>
13706 #include <sys/types.h>
13709 #include <sys/socket.h>
13712 #include <net/route.h>
13717 struct rtentry testit;
13718 testit.rt_unit $defineit;
13722 if { (eval echo configure
:13723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13724 eval "${ac_safe_all}=yes"
13726 echo "configure: failed program was:" >&5
13727 cat conftest.
$ac_ext >&5
13729 eval "${ac_safe_all}=no"
13736 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13737 echo "$ac_t""yes" 1>&6
13738 cat >> confdefs.h
<<EOF
13739 #define $ac_uc_define 1
13743 echo "$ac_t""no" 1>&6
13750 ac_safe_struct
=`echo "rtentry" | sed 'y%./+-%__p_%'`
13751 ac_safe_member
=`echo "rt_refcnt" | sed 'y%./+-%__p_%'`
13752 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13753 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13755 echo $ac_n "checking for rtentry.rt_refcnt""... $ac_c" 1>&6
13756 echo "configure:13757: checking for rtentry.rt_refcnt" >&5
13757 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13758 echo $ac_n "(cached) $ac_c" 1>&6
13761 if test "x" = "x"; then
13763 elif test "x" = "xno"; then
13768 cat > conftest.
$ac_ext <<EOF
13769 #line 13770 "configure"
13770 #include "confdefs.h"
13773 #ifdef HAVE_SYS_PARAM_H
13774 #include <sys/param.h>
13776 #include <sys/types.h>
13779 #include <sys/socket.h>
13782 #include <net/route.h>
13787 struct rtentry testit;
13788 testit.rt_refcnt $defineit;
13792 if { (eval echo configure
:13793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13794 eval "${ac_safe_all}=yes"
13796 echo "configure: failed program was:" >&5
13797 cat conftest.
$ac_ext >&5
13799 eval "${ac_safe_all}=no"
13806 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13807 echo "$ac_t""yes" 1>&6
13808 cat >> confdefs.h
<<EOF
13809 #define $ac_uc_define 1
13813 echo "$ac_t""no" 1>&6
13820 ac_safe_struct
=`echo "rtentry" | sed 'y%./+-%__p_%'`
13821 ac_safe_member
=`echo "rt_hash" | sed 'y%./+-%__p_%'`
13822 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13823 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13825 echo $ac_n "checking for rtentry.rt_hash""... $ac_c" 1>&6
13826 echo "configure:13827: checking for rtentry.rt_hash" >&5
13827 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13828 echo $ac_n "(cached) $ac_c" 1>&6
13831 if test "x" = "x"; then
13833 elif test "x" = "xno"; then
13838 cat > conftest.
$ac_ext <<EOF
13839 #line 13840 "configure"
13840 #include "confdefs.h"
13843 #ifdef HAVE_SYS_PARAM_H
13844 #include <sys/param.h>
13846 #include <sys/types.h>
13849 #include <sys/socket.h>
13852 #include <net/route.h>
13857 struct rtentry testit;
13858 testit.rt_hash $defineit;
13862 if { (eval echo configure
:13863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13864 eval "${ac_safe_all}=yes"
13866 echo "configure: failed program was:" >&5
13867 cat conftest.
$ac_ext >&5
13869 eval "${ac_safe_all}=no"
13876 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13877 echo "$ac_t""yes" 1>&6
13878 cat >> confdefs.h
<<EOF
13879 #define $ac_uc_define 1
13883 echo "$ac_t""no" 1>&6
13890 ac_safe_struct
=`echo "rtentry" | sed 'y%./+-%__p_%'`
13891 ac_safe_member
=`echo "rt_use" | sed 'y%./+-%__p_%'`
13892 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13893 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13895 echo $ac_n "checking for rtentry.rt_use""... $ac_c" 1>&6
13896 echo "configure:13897: checking for rtentry.rt_use" >&5
13897 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13898 echo $ac_n "(cached) $ac_c" 1>&6
13901 if test "x" = "x"; then
13903 elif test "x" = "xno"; then
13908 cat > conftest.
$ac_ext <<EOF
13909 #line 13910 "configure"
13910 #include "confdefs.h"
13913 #ifdef HAVE_SYS_PARAM_H
13914 #include <sys/param.h>
13916 #include <sys/types.h>
13919 #include <sys/socket.h>
13922 #include <net/route.h>
13927 struct rtentry testit;
13928 testit.rt_use $defineit;
13932 if { (eval echo configure
:13933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13934 eval "${ac_safe_all}=yes"
13936 echo "configure: failed program was:" >&5
13937 cat conftest.
$ac_ext >&5
13939 eval "${ac_safe_all}=no"
13946 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13947 echo "$ac_t""yes" 1>&6
13948 cat >> confdefs.h
<<EOF
13949 #define $ac_uc_define 1
13953 echo "$ac_t""no" 1>&6
13960 ac_safe_struct
=`echo "tcpstat" | sed 'y%./+-%__p_%'`
13961 ac_safe_member
=`echo "tcp_rcvmemdrop" | sed 'y%./+-%__p_%'`
13962 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13963 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13965 echo $ac_n "checking for tcpstat.tcp_rcvmemdrop""... $ac_c" 1>&6
13966 echo "configure:13967: checking for tcpstat.tcp_rcvmemdrop" >&5
13967 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13968 echo $ac_n "(cached) $ac_c" 1>&6
13971 if test "x" = "x"; then
13973 elif test "x" = "xno"; then
13978 cat > conftest.
$ac_ext <<EOF
13979 #line 13980 "configure"
13980 #include "confdefs.h"
13983 #ifdef HAVE_SYS_PARAM_H
13984 #include <sys/param.h>
13986 #include <sys/types.h>
13987 #include <netinet/tcp.h>
13988 #ifdef HAVE_NETINET_TCP_TIMER_H
13989 #include <netinet/tcp_timer.h>
13992 #ifdef HAVE_NETINET_TCP_VAR_H
13993 #include <netinet/tcp_var.h>
13999 struct tcpstat testit;
14000 testit.tcp_rcvmemdrop $defineit;
14004 if { (eval echo configure
:14005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14006 eval "${ac_safe_all}=yes"
14008 echo "configure: failed program was:" >&5
14009 cat conftest.
$ac_ext >&5
14011 eval "${ac_safe_all}=no"
14018 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14019 echo "$ac_t""yes" 1>&6
14020 cat >> confdefs.h
<<EOF
14021 #define $ac_uc_define 1
14025 echo "$ac_t""no" 1>&6
14033 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14034 ac_safe_member
=`echo "if_mtu" | sed 'y%./+-%__p_%'`
14035 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14036 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14038 echo $ac_n "checking for ifnet.if_mtu""... $ac_c" 1>&6
14039 echo "configure:14040: checking for ifnet.if_mtu" >&5
14040 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14041 echo $ac_n "(cached) $ac_c" 1>&6
14044 if test "x" = "x"; then
14046 elif test "x" = "xno"; then
14051 cat > conftest.
$ac_ext <<EOF
14052 #line 14053 "configure"
14053 #include "confdefs.h"
14056 #ifdef HAVE_SYS_PARAM_H
14057 #include <sys/param.h>
14059 #include <sys/types.h>
14060 #include <sys/socket.h>
14061 #include <net/if.h>
14062 #ifdef HAVE_NET_IF_VAR_H
14063 #include <net/if_var.h>
14069 struct ifnet testit;
14070 testit.if_mtu $defineit;
14074 if { (eval echo configure
:14075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14076 eval "${ac_safe_all}=yes"
14078 echo "configure: failed program was:" >&5
14079 cat conftest.
$ac_ext >&5
14081 eval "${ac_safe_all}=no"
14088 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14089 echo "$ac_t""yes" 1>&6
14090 cat >> confdefs.h
<<EOF
14091 #define $ac_uc_define 1
14095 echo "$ac_t""no" 1>&6
14100 if test "x$ac_cv_struct_ifnet_has_if_mtu" = "xno"; then
14101 echo $ac_n "checking if _KERNEL needs to be defined for if_mtu""... $ac_c" 1>&6
14102 echo "configure:14103: checking if _KERNEL needs to be defined for if_mtu" >&5
14103 if eval "test \"`echo '$''{'ac_cv_IFNET_NEEDS_KERNEL'+set}'`\" = set"; then
14104 echo $ac_n "(cached) $ac_c" 1>&6
14107 if test "x$ac_cv_struct_ifnet_has_if_mtu" = "xyes"; then
14108 ac_cv_IFNET_NEEDS_KERNEL
=no
14110 cat > conftest.
$ac_ext <<EOF
14111 #line 14112 "configure"
14112 #include "confdefs.h"
14115 #ifdef HAVE_SYS_PARAM_H
14116 #include <sys/param.h>
14118 #include <sys/types.h>
14119 #include <sys/socket.h>
14120 #ifdef HAVE_SYS_TIME_H
14121 #include <sys/time.h>
14123 #include <net/if.h>
14124 #ifdef HAVE_NET_IF_VAR_H
14125 #include <net/if_var.h>
14130 struct ifnet testit;
14135 if { (eval echo configure
:14136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14137 ac_cv_IFNET_NEEDS_KERNEL
=yes
14139 echo "configure: failed program was:" >&5
14140 cat conftest.
$ac_ext >&5
14142 ac_cv_IFNET_NEEDS_KERNEL
=no
14149 echo "$ac_t""$ac_cv_IFNET_NEEDS_KERNEL" 1>&6
14151 if test "x$ac_cv_IFNET_NEEDS_KERNEL" = "xyes"; then
14152 cat >> confdefs.h
<<\EOF
14153 #define IFNET_NEEDS_KERNEL 1
14161 ac_safe_struct
=`echo "ifaddr" | sed 'y%./+-%__p_%'`
14162 ac_safe_member
=`echo "ifa_next" | sed 'y%./+-%__p_%'`
14163 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14164 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14166 echo $ac_n "checking for ifaddr.ifa_next""... $ac_c" 1>&6
14167 echo "configure:14168: checking for ifaddr.ifa_next" >&5
14168 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14169 echo $ac_n "(cached) $ac_c" 1>&6
14172 if test "x" = "x"; then
14174 elif test "x" = "xno"; then
14179 cat > conftest.
$ac_ext <<EOF
14180 #line 14181 "configure"
14181 #include "confdefs.h"
14184 #ifdef IFNET_NEEDS_KERNEL
14187 #ifdef HAVE_SYS_PARAM_H
14188 #include <sys/param.h>
14190 #include <sys/types.h>
14191 #include <sys/socket.h>
14192 #ifdef HAVE_SYS_TIME_H
14193 #include <sys/time.h>
14195 #include <net/if.h>
14196 #ifdef HAVE_NET_IF_VAR_H
14197 #include <net/if_var.h>
14203 struct ifaddr testit;
14204 testit.ifa_next $defineit;
14208 if { (eval echo configure
:14209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14210 eval "${ac_safe_all}=yes"
14212 echo "configure: failed program was:" >&5
14213 cat conftest.
$ac_ext >&5
14215 eval "${ac_safe_all}=no"
14222 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14223 echo "$ac_t""yes" 1>&6
14224 cat >> confdefs.h
<<EOF
14225 #define $ac_uc_define 1
14229 echo "$ac_t""no" 1>&6
14237 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14238 ac_safe_member
=`echo "if_baudrate" | sed 'y%./+-%__p_%'`
14239 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14240 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14242 echo $ac_n "checking for ifnet.if_baudrate""... $ac_c" 1>&6
14243 echo "configure:14244: checking for ifnet.if_baudrate" >&5
14244 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14245 echo $ac_n "(cached) $ac_c" 1>&6
14248 if test "x" = "x"; then
14250 elif test "x" = "xno"; then
14255 cat > conftest.
$ac_ext <<EOF
14256 #line 14257 "configure"
14257 #include "confdefs.h"
14260 #ifdef IFNET_NEEDS_KERNEL
14263 #include <sys/types.h>
14264 #include <sys/socket.h>
14265 #ifdef HAVE_SYS_TIME_H
14266 #include <sys/time.h>
14268 #include <net/if.h>
14269 #ifdef HAVE_NET_IF_VAR_H
14270 #include <net/if_var.h>
14272 #ifdef HAVE_SYS_QUEUE_H
14273 #include <sys/queue.h>
14277 char *if_name; /* name, e.g. "en" or "lo" */
14278 short if_unit; /* sub-unit for lower level driver */
14279 short if_mtu; /* maximum transmission unit */
14280 short if_flags; /* up/down, broadcast, etc. */
14281 int if_metric; /* routing metric (external only) */
14282 char if_hwaddr [6]; /* ethernet address */
14283 int if_type; /* interface type: 1=generic,
14284 28=slip, ether=6, loopback=24 */
14285 int if_speed; /* interface speed: in bits/sec */
14287 struct sockaddr if_addr; /* interface's address */
14288 struct sockaddr ifu_broadaddr; /* broadcast address */
14289 struct sockaddr ia_subnetmask; /* interface's mask */
14294 } if_snd; /* output queue */
14295 int if_ibytes; /* octets received on interface */
14296 int if_ipackets; /* packets received on interface */
14297 int if_ierrors; /* input errors on interface */
14298 int if_iqdrops; /* input queue overruns */
14299 int if_obytes; /* octets sent on interface */
14300 int if_opackets; /* packets sent on interface */
14301 int if_oerrors; /* output errors on interface */
14302 int if_collisions; /* collisions on csma interfaces */
14303 /* end statistics */
14304 struct ifnet *if_next;
14311 struct ifnet testit;
14312 testit.if_baudrate $defineit;
14316 if { (eval echo configure
:14317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14318 eval "${ac_safe_all}=yes"
14320 echo "configure: failed program was:" >&5
14321 cat conftest.
$ac_ext >&5
14323 eval "${ac_safe_all}=no"
14330 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14331 echo "$ac_t""yes" 1>&6
14332 cat >> confdefs.h
<<EOF
14333 #define $ac_uc_define 1
14337 echo "$ac_t""no" 1>&6
14345 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14346 ac_safe_member
=`echo "if_baudrate.ifs_value" | sed 'y%./+-%__p_%'`
14347 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14348 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14350 echo $ac_n "checking for ifnet.if_baudrate.ifs_value""... $ac_c" 1>&6
14351 echo "configure:14352: checking for ifnet.if_baudrate.ifs_value" >&5
14352 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14353 echo $ac_n "(cached) $ac_c" 1>&6
14356 if test "x" = "x"; then
14358 elif test "x" = "xno"; then
14363 cat > conftest.
$ac_ext <<EOF
14364 #line 14365 "configure"
14365 #include "confdefs.h"
14368 #ifdef IFNET_NEEDS_KERNEL
14371 #include <sys/types.h>
14372 #include <sys/socket.h>
14373 #ifdef HAVE_SYS_TIME_H
14374 #include <sys/time.h>
14376 #include <net/if.h>
14377 #ifdef HAVE_NET_IF_VAR_H
14378 #include <net/if_var.h>
14380 #ifdef HAVE_SYS_QUEUE_H
14381 #include <sys/queue.h>
14385 char *if_name; /* name, e.g. "en" or "lo" */
14386 short if_unit; /* sub-unit for lower level driver */
14387 short if_mtu; /* maximum transmission unit */
14388 short if_flags; /* up/down, broadcast, etc. */
14389 int if_metric; /* routing metric (external only) */
14390 char if_hwaddr [6]; /* ethernet address */
14391 int if_type; /* interface type: 1=generic,
14392 28=slip, ether=6, loopback=24 */
14393 int if_speed; /* interface speed: in bits/sec */
14395 struct sockaddr if_addr; /* interface's address */
14396 struct sockaddr ifu_broadaddr; /* broadcast address */
14397 struct sockaddr ia_subnetmask; /* interface's mask */
14402 } if_snd; /* output queue */
14403 int if_ibytes; /* octets received on interface */
14404 int if_ipackets; /* packets received on interface */
14405 int if_ierrors; /* input errors on interface */
14406 int if_iqdrops; /* input queue overruns */
14407 int if_obytes; /* octets sent on interface */
14408 int if_opackets; /* packets sent on interface */
14409 int if_oerrors; /* output errors on interface */
14410 int if_collisions; /* collisions on csma interfaces */
14411 /* end statistics */
14412 struct ifnet *if_next;
14419 struct ifnet testit;
14420 testit.if_baudrate.ifs_value $defineit;
14424 if { (eval echo configure
:14425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14426 eval "${ac_safe_all}=yes"
14428 echo "configure: failed program was:" >&5
14429 cat conftest.
$ac_ext >&5
14431 eval "${ac_safe_all}=no"
14438 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14439 echo "$ac_t""yes" 1>&6
14440 cat >> confdefs.h
<<EOF
14441 #define $ac_uc_define 1
14445 echo "$ac_t""no" 1>&6
14453 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14454 ac_safe_member
=`echo "if_speed" | sed 'y%./+-%__p_%'`
14455 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14456 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14458 echo $ac_n "checking for ifnet.if_speed""... $ac_c" 1>&6
14459 echo "configure:14460: checking for ifnet.if_speed" >&5
14460 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14461 echo $ac_n "(cached) $ac_c" 1>&6
14464 if test "x" = "x"; then
14466 elif test "x" = "xno"; then
14471 cat > conftest.
$ac_ext <<EOF
14472 #line 14473 "configure"
14473 #include "confdefs.h"
14476 #ifdef IFNET_NEEDS_KERNEL
14479 #include <sys/types.h>
14480 #include <sys/socket.h>
14481 #ifdef HAVE_SYS_TIME_H
14482 #include <sys/time.h>
14484 #include <net/if.h>
14485 #ifdef HAVE_NET_IF_VAR_H
14486 #include <net/if_var.h>
14488 #ifdef HAVE_SYS_QUEUE_H
14489 #include <sys/queue.h>
14493 char *if_name; /* name, e.g. "en" or "lo" */
14494 short if_unit; /* sub-unit for lower level driver */
14495 short if_mtu; /* maximum transmission unit */
14496 short if_flags; /* up/down, broadcast, etc. */
14497 int if_metric; /* routing metric (external only) */
14498 char if_hwaddr [6]; /* ethernet address */
14499 int if_type; /* interface type: 1=generic,
14500 28=slip, ether=6, loopback=24 */
14501 int if_speed; /* interface speed: in bits/sec */
14503 struct sockaddr if_addr; /* interface's address */
14504 struct sockaddr ifu_broadaddr; /* broadcast address */
14505 struct sockaddr ia_subnetmask; /* interface's mask */
14510 } if_snd; /* output queue */
14511 int if_ibytes; /* octets received on interface */
14512 int if_ipackets; /* packets received on interface */
14513 int if_ierrors; /* input errors on interface */
14514 int if_iqdrops; /* input queue overruns */
14515 int if_obytes; /* octets sent on interface */
14516 int if_opackets; /* packets sent on interface */
14517 int if_oerrors; /* output errors on interface */
14518 int if_collisions; /* collisions on csma interfaces */
14519 /* end statistics */
14520 struct ifnet *if_next;
14527 struct ifnet testit;
14528 testit.if_speed $defineit;
14532 if { (eval echo configure
:14533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14534 eval "${ac_safe_all}=yes"
14536 echo "configure: failed program was:" >&5
14537 cat conftest.
$ac_ext >&5
14539 eval "${ac_safe_all}=no"
14546 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14547 echo "$ac_t""yes" 1>&6
14548 cat >> confdefs.h
<<EOF
14549 #define $ac_uc_define 1
14553 echo "$ac_t""no" 1>&6
14561 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14562 ac_safe_member
=`echo "if_type" | sed 'y%./+-%__p_%'`
14563 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14564 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14566 echo $ac_n "checking for ifnet.if_type""... $ac_c" 1>&6
14567 echo "configure:14568: checking for ifnet.if_type" >&5
14568 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14569 echo $ac_n "(cached) $ac_c" 1>&6
14572 if test "x" = "x"; then
14574 elif test "x" = "xno"; then
14579 cat > conftest.
$ac_ext <<EOF
14580 #line 14581 "configure"
14581 #include "confdefs.h"
14584 #ifdef IFNET_NEEDS_KERNEL
14587 #include <sys/types.h>
14588 #include <sys/socket.h>
14589 #ifdef HAVE_SYS_TIME_H
14590 #include <sys/time.h>
14592 #include <net/if.h>
14593 #ifdef HAVE_NET_IF_VAR_H
14594 #include <net/if_var.h>
14596 #ifdef HAVE_SYS_QUEUE_H
14597 #include <sys/queue.h>
14601 char *if_name; /* name, e.g. "en" or "lo" */
14602 short if_unit; /* sub-unit for lower level driver */
14603 short if_mtu; /* maximum transmission unit */
14604 short if_flags; /* up/down, broadcast, etc. */
14605 int if_metric; /* routing metric (external only) */
14606 char if_hwaddr [6]; /* ethernet address */
14607 int if_type; /* interface type: 1=generic,
14608 28=slip, ether=6, loopback=24 */
14609 int if_speed; /* interface speed: in bits/sec */
14611 struct sockaddr if_addr; /* interface's address */
14612 struct sockaddr ifu_broadaddr; /* broadcast address */
14613 struct sockaddr ia_subnetmask; /* interface's mask */
14618 } if_snd; /* output queue */
14619 int if_ibytes; /* octets received on interface */
14620 int if_ipackets; /* packets received on interface */
14621 int if_ierrors; /* input errors on interface */
14622 int if_iqdrops; /* input queue overruns */
14623 int if_obytes; /* octets sent on interface */
14624 int if_opackets; /* packets sent on interface */
14625 int if_oerrors; /* output errors on interface */
14626 int if_collisions; /* collisions on csma interfaces */
14627 /* end statistics */
14628 struct ifnet *if_next;
14635 struct ifnet testit;
14636 testit.if_type $defineit;
14640 if { (eval echo configure
:14641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14642 eval "${ac_safe_all}=yes"
14644 echo "configure: failed program was:" >&5
14645 cat conftest.
$ac_ext >&5
14647 eval "${ac_safe_all}=no"
14654 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14655 echo "$ac_t""yes" 1>&6
14656 cat >> confdefs.h
<<EOF
14657 #define $ac_uc_define 1
14661 echo "$ac_t""no" 1>&6
14669 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14670 ac_safe_member
=`echo "if_imcasts" | sed 'y%./+-%__p_%'`
14671 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14672 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14674 echo $ac_n "checking for ifnet.if_imcasts""... $ac_c" 1>&6
14675 echo "configure:14676: checking for ifnet.if_imcasts" >&5
14676 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14677 echo $ac_n "(cached) $ac_c" 1>&6
14680 if test "x" = "x"; then
14682 elif test "x" = "xno"; then
14687 cat > conftest.
$ac_ext <<EOF
14688 #line 14689 "configure"
14689 #include "confdefs.h"
14692 #ifdef IFNET_NEEDS_KERNEL
14695 #include <sys/types.h>
14696 #include <sys/socket.h>
14697 #ifdef HAVE_SYS_TIME_H
14698 #include <sys/time.h>
14700 #include <net/if.h>
14701 #ifdef HAVE_NET_IF_VAR_H
14702 #include <net/if_var.h>
14704 #ifdef HAVE_SYS_QUEUE_H
14705 #include <sys/queue.h>
14709 char *if_name; /* name, e.g. "en" or "lo" */
14710 short if_unit; /* sub-unit for lower level driver */
14711 short if_mtu; /* maximum transmission unit */
14712 short if_flags; /* up/down, broadcast, etc. */
14713 int if_metric; /* routing metric (external only) */
14714 char if_hwaddr [6]; /* ethernet address */
14715 int if_type; /* interface type: 1=generic,
14716 28=slip, ether=6, loopback=24 */
14717 int if_speed; /* interface speed: in bits/sec */
14719 struct sockaddr if_addr; /* interface's address */
14720 struct sockaddr ifu_broadaddr; /* broadcast address */
14721 struct sockaddr ia_subnetmask; /* interface's mask */
14726 } if_snd; /* output queue */
14727 int if_ibytes; /* octets received on interface */
14728 int if_ipackets; /* packets received on interface */
14729 int if_ierrors; /* input errors on interface */
14730 int if_iqdrops; /* input queue overruns */
14731 int if_obytes; /* octets sent on interface */
14732 int if_opackets; /* packets sent on interface */
14733 int if_oerrors; /* output errors on interface */
14734 int if_collisions; /* collisions on csma interfaces */
14735 /* end statistics */
14736 struct ifnet *if_next;
14743 struct ifnet testit;
14744 testit.if_imcasts $defineit;
14748 if { (eval echo configure
:14749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14750 eval "${ac_safe_all}=yes"
14752 echo "configure: failed program was:" >&5
14753 cat conftest.
$ac_ext >&5
14755 eval "${ac_safe_all}=no"
14762 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14763 echo "$ac_t""yes" 1>&6
14764 cat >> confdefs.h
<<EOF
14765 #define $ac_uc_define 1
14769 echo "$ac_t""no" 1>&6
14777 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14778 ac_safe_member
=`echo "if_iqdrops" | sed 'y%./+-%__p_%'`
14779 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14780 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14782 echo $ac_n "checking for ifnet.if_iqdrops""... $ac_c" 1>&6
14783 echo "configure:14784: checking for ifnet.if_iqdrops" >&5
14784 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14785 echo $ac_n "(cached) $ac_c" 1>&6
14788 if test "x" = "x"; then
14790 elif test "x" = "xno"; then
14795 cat > conftest.
$ac_ext <<EOF
14796 #line 14797 "configure"
14797 #include "confdefs.h"
14800 #ifdef IFNET_NEEDS_KERNEL
14803 #include <sys/types.h>
14804 #include <sys/socket.h>
14805 #ifdef HAVE_SYS_TIME_H
14806 #include <sys/time.h>
14808 #include <net/if.h>
14809 #ifdef HAVE_NET_IF_VAR_H
14810 #include <net/if_var.h>
14812 #ifdef HAVE_SYS_QUEUE_H
14813 #include <sys/queue.h>
14817 char *if_name; /* name, e.g. "en" or "lo" */
14818 short if_unit; /* sub-unit for lower level driver */
14819 short if_mtu; /* maximum transmission unit */
14820 short if_flags; /* up/down, broadcast, etc. */
14821 int if_metric; /* routing metric (external only) */
14822 char if_hwaddr [6]; /* ethernet address */
14823 int if_type; /* interface type: 1=generic,
14824 28=slip, ether=6, loopback=24 */
14825 int if_speed; /* interface speed: in bits/sec */
14827 struct sockaddr if_addr; /* interface's address */
14828 struct sockaddr ifu_broadaddr; /* broadcast address */
14829 struct sockaddr ia_subnetmask; /* interface's mask */
14834 } if_snd; /* output queue */
14835 int if_ibytes; /* octets received on interface */
14836 int if_ipackets; /* packets received on interface */
14837 int if_ierrors; /* input errors on interface */
14838 int if_iqdrops; /* input queue overruns */
14839 int if_obytes; /* octets sent on interface */
14840 int if_opackets; /* packets sent on interface */
14841 int if_oerrors; /* output errors on interface */
14842 int if_collisions; /* collisions on csma interfaces */
14843 /* end statistics */
14844 struct ifnet *if_next;
14851 struct ifnet testit;
14852 testit.if_iqdrops $defineit;
14856 if { (eval echo configure
:14857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14858 eval "${ac_safe_all}=yes"
14860 echo "configure: failed program was:" >&5
14861 cat conftest.
$ac_ext >&5
14863 eval "${ac_safe_all}=no"
14870 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14871 echo "$ac_t""yes" 1>&6
14872 cat >> confdefs.h
<<EOF
14873 #define $ac_uc_define 1
14877 echo "$ac_t""no" 1>&6
14885 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14886 ac_safe_member
=`echo "if_noproto" | sed 'y%./+-%__p_%'`
14887 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14888 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14890 echo $ac_n "checking for ifnet.if_noproto""... $ac_c" 1>&6
14891 echo "configure:14892: checking for ifnet.if_noproto" >&5
14892 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14893 echo $ac_n "(cached) $ac_c" 1>&6
14896 if test "x" = "x"; then
14898 elif test "x" = "xno"; then
14903 cat > conftest.
$ac_ext <<EOF
14904 #line 14905 "configure"
14905 #include "confdefs.h"
14908 #ifdef IFNET_NEEDS_KERNEL
14911 #include <sys/types.h>
14912 #include <sys/socket.h>
14913 #ifdef HAVE_SYS_TIME_H
14914 #include <sys/time.h>
14916 #include <net/if.h>
14917 #ifdef HAVE_NET_IF_VAR_H
14918 #include <net/if_var.h>
14920 #ifdef HAVE_SYS_QUEUE_H
14921 #include <sys/queue.h>
14925 char *if_name; /* name, e.g. "en" or "lo" */
14926 short if_unit; /* sub-unit for lower level driver */
14927 short if_mtu; /* maximum transmission unit */
14928 short if_flags; /* up/down, broadcast, etc. */
14929 int if_metric; /* routing metric (external only) */
14930 char if_hwaddr [6]; /* ethernet address */
14931 int if_type; /* interface type: 1=generic,
14932 28=slip, ether=6, loopback=24 */
14933 int if_speed; /* interface speed: in bits/sec */
14935 struct sockaddr if_addr; /* interface's address */
14936 struct sockaddr ifu_broadaddr; /* broadcast address */
14937 struct sockaddr ia_subnetmask; /* interface's mask */
14942 } if_snd; /* output queue */
14943 int if_ibytes; /* octets received on interface */
14944 int if_ipackets; /* packets received on interface */
14945 int if_ierrors; /* input errors on interface */
14946 int if_iqdrops; /* input queue overruns */
14947 int if_obytes; /* octets sent on interface */
14948 int if_opackets; /* packets sent on interface */
14949 int if_oerrors; /* output errors on interface */
14950 int if_collisions; /* collisions on csma interfaces */
14951 /* end statistics */
14952 struct ifnet *if_next;
14959 struct ifnet testit;
14960 testit.if_noproto $defineit;
14964 if { (eval echo configure
:14965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14966 eval "${ac_safe_all}=yes"
14968 echo "configure: failed program was:" >&5
14969 cat conftest.
$ac_ext >&5
14971 eval "${ac_safe_all}=no"
14978 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14979 echo "$ac_t""yes" 1>&6
14980 cat >> confdefs.h
<<EOF
14981 #define $ac_uc_define 1
14985 echo "$ac_t""no" 1>&6
14993 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14994 ac_safe_member
=`echo "if_omcasts" | sed 'y%./+-%__p_%'`
14995 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14996 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14998 echo $ac_n "checking for ifnet.if_omcasts""... $ac_c" 1>&6
14999 echo "configure:15000: checking for ifnet.if_omcasts" >&5
15000 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15001 echo $ac_n "(cached) $ac_c" 1>&6
15004 if test "x" = "x"; then
15006 elif test "x" = "xno"; then
15011 cat > conftest.
$ac_ext <<EOF
15012 #line 15013 "configure"
15013 #include "confdefs.h"
15016 #ifdef IFNET_NEEDS_KERNEL
15019 #include <sys/types.h>
15020 #include <sys/socket.h>
15021 #ifdef HAVE_SYS_TIME_H
15022 #include <sys/time.h>
15024 #include <net/if.h>
15025 #ifdef HAVE_NET_IF_VAR_H
15026 #include <net/if_var.h>
15028 #ifdef HAVE_SYS_QUEUE_H
15029 #include <sys/queue.h>
15033 char *if_name; /* name, e.g. "en" or "lo" */
15034 short if_unit; /* sub-unit for lower level driver */
15035 short if_mtu; /* maximum transmission unit */
15036 short if_flags; /* up/down, broadcast, etc. */
15037 int if_metric; /* routing metric (external only) */
15038 char if_hwaddr [6]; /* ethernet address */
15039 int if_type; /* interface type: 1=generic,
15040 28=slip, ether=6, loopback=24 */
15041 int if_speed; /* interface speed: in bits/sec */
15043 struct sockaddr if_addr; /* interface's address */
15044 struct sockaddr ifu_broadaddr; /* broadcast address */
15045 struct sockaddr ia_subnetmask; /* interface's mask */
15050 } if_snd; /* output queue */
15051 int if_ibytes; /* octets received on interface */
15052 int if_ipackets; /* packets received on interface */
15053 int if_ierrors; /* input errors on interface */
15054 int if_iqdrops; /* input queue overruns */
15055 int if_obytes; /* octets sent on interface */
15056 int if_opackets; /* packets sent on interface */
15057 int if_oerrors; /* output errors on interface */
15058 int if_collisions; /* collisions on csma interfaces */
15059 /* end statistics */
15060 struct ifnet *if_next;
15067 struct ifnet testit;
15068 testit.if_omcasts $defineit;
15072 if { (eval echo configure
:15073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15074 eval "${ac_safe_all}=yes"
15076 echo "configure: failed program was:" >&5
15077 cat conftest.
$ac_ext >&5
15079 eval "${ac_safe_all}=no"
15086 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15087 echo "$ac_t""yes" 1>&6
15088 cat >> confdefs.h
<<EOF
15089 #define $ac_uc_define 1
15093 echo "$ac_t""no" 1>&6
15101 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
15102 ac_safe_member
=`echo "if_xname" | sed 'y%./+-%__p_%'`
15103 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15104 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15106 echo $ac_n "checking for ifnet.if_xname""... $ac_c" 1>&6
15107 echo "configure:15108: checking for ifnet.if_xname" >&5
15108 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15109 echo $ac_n "(cached) $ac_c" 1>&6
15112 if test "xno" = "x"; then
15114 elif test "xno" = "xno"; then
15119 cat > conftest.
$ac_ext <<EOF
15120 #line 15121 "configure"
15121 #include "confdefs.h"
15124 #ifdef IFNET_NEEDS_KERNEL
15127 #include <sys/types.h>
15128 #include <sys/socket.h>
15129 #ifdef HAVE_SYS_TIME_H
15130 #include <sys/time.h>
15132 #include <net/if.h>
15133 #ifdef HAVE_NET_IF_VAR_H
15134 #include <net/if_var.h>
15136 #ifdef HAVE_SYS_QUEUE_H
15137 #include <sys/queue.h>
15141 char *if_name; /* name, e.g. "en" or "lo" */
15142 short if_unit; /* sub-unit for lower level driver */
15143 short if_mtu; /* maximum transmission unit */
15144 short if_flags; /* up/down, broadcast, etc. */
15145 int if_metric; /* routing metric (external only) */
15146 char if_hwaddr [6]; /* ethernet address */
15147 int if_type; /* interface type: 1=generic,
15148 28=slip, ether=6, loopback=24 */
15149 int if_speed; /* interface speed: in bits/sec */
15151 struct sockaddr if_addr; /* interface's address */
15152 struct sockaddr ifu_broadaddr; /* broadcast address */
15153 struct sockaddr ia_subnetmask; /* interface's mask */
15158 } if_snd; /* output queue */
15159 int if_ibytes; /* octets received on interface */
15160 int if_ipackets; /* packets received on interface */
15161 int if_ierrors; /* input errors on interface */
15162 int if_iqdrops; /* input queue overruns */
15163 int if_obytes; /* octets sent on interface */
15164 int if_opackets; /* packets sent on interface */
15165 int if_oerrors; /* output errors on interface */
15166 int if_collisions; /* collisions on csma interfaces */
15167 /* end statistics */
15168 struct ifnet *if_next;
15175 struct ifnet testit;
15176 testit.if_xname $defineit;
15180 if { (eval echo configure
:15181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15182 eval "${ac_safe_all}=yes"
15184 echo "configure: failed program was:" >&5
15185 cat conftest.
$ac_ext >&5
15187 eval "${ac_safe_all}=no"
15194 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15195 echo "$ac_t""yes" 1>&6
15196 cat >> confdefs.h
<<EOF
15197 #define $ac_uc_define 1
15201 echo "$ac_t""no" 1>&6
15209 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
15210 ac_safe_member
=`echo "if_lastchange.tv_sec" | sed 'y%./+-%__p_%'`
15211 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15212 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15214 echo $ac_n "checking for ifnet.if_lastchange.tv_sec""... $ac_c" 1>&6
15215 echo "configure:15216: checking for ifnet.if_lastchange.tv_sec" >&5
15216 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15217 echo $ac_n "(cached) $ac_c" 1>&6
15220 if test "x" = "x"; then
15222 elif test "x" = "xno"; then
15227 cat > conftest.
$ac_ext <<EOF
15228 #line 15229 "configure"
15229 #include "confdefs.h"
15232 #ifdef IFNET_NEEDS_KERNEL
15235 #include <sys/types.h>
15236 #include <sys/socket.h>
15237 #ifdef HAVE_SYS_TIME_H
15238 #include <sys/time.h>
15240 #include <net/if.h>
15241 #ifdef HAVE_NET_IF_VAR_H
15242 #include <net/if_var.h>
15244 #ifdef HAVE_SYS_QUEUE_H
15245 #include <sys/queue.h>
15249 char *if_name; /* name, e.g. "en" or "lo" */
15250 short if_unit; /* sub-unit for lower level driver */
15251 short if_mtu; /* maximum transmission unit */
15252 short if_flags; /* up/down, broadcast, etc. */
15253 int if_metric; /* routing metric (external only) */
15254 char if_hwaddr [6]; /* ethernet address */
15255 int if_type; /* interface type: 1=generic,
15256 28=slip, ether=6, loopback=24 */
15257 int if_speed; /* interface speed: in bits/sec */
15259 struct sockaddr if_addr; /* interface's address */
15260 struct sockaddr ifu_broadaddr; /* broadcast address */
15261 struct sockaddr ia_subnetmask; /* interface's mask */
15266 } if_snd; /* output queue */
15267 int if_ibytes; /* octets received on interface */
15268 int if_ipackets; /* packets received on interface */
15269 int if_ierrors; /* input errors on interface */
15270 int if_iqdrops; /* input queue overruns */
15271 int if_obytes; /* octets sent on interface */
15272 int if_opackets; /* packets sent on interface */
15273 int if_oerrors; /* output errors on interface */
15274 int if_collisions; /* collisions on csma interfaces */
15275 /* end statistics */
15276 struct ifnet *if_next;
15283 struct ifnet testit;
15284 testit.if_lastchange.tv_sec $defineit;
15288 if { (eval echo configure
:15289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15290 eval "${ac_safe_all}=yes"
15292 echo "configure: failed program was:" >&5
15293 cat conftest.
$ac_ext >&5
15295 eval "${ac_safe_all}=no"
15302 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15303 echo "$ac_t""yes" 1>&6
15304 cat >> confdefs.h
<<EOF
15305 #define $ac_uc_define 1
15309 echo "$ac_t""no" 1>&6
15317 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
15318 ac_safe_member
=`echo "if_obytes" | sed 'y%./+-%__p_%'`
15319 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15320 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15322 echo $ac_n "checking for ifnet.if_obytes""... $ac_c" 1>&6
15323 echo "configure:15324: checking for ifnet.if_obytes" >&5
15324 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15325 echo $ac_n "(cached) $ac_c" 1>&6
15328 if test "x" = "x"; then
15330 elif test "x" = "xno"; then
15335 cat > conftest.
$ac_ext <<EOF
15336 #line 15337 "configure"
15337 #include "confdefs.h"
15340 #ifdef IFNET_NEEDS_KERNEL
15343 #include <sys/types.h>
15344 #include <sys/socket.h>
15345 #ifdef HAVE_SYS_TIME_H
15346 #include <sys/time.h>
15348 #include <net/if.h>
15349 #ifdef HAVE_NET_IF_VAR_H
15350 #include <net/if_var.h>
15352 #ifdef HAVE_SYS_QUEUE_H
15353 #include <sys/queue.h>
15357 char *if_name; /* name, e.g. "en" or "lo" */
15358 short if_unit; /* sub-unit for lower level driver */
15359 short if_mtu; /* maximum transmission unit */
15360 short if_flags; /* up/down, broadcast, etc. */
15361 int if_metric; /* routing metric (external only) */
15362 char if_hwaddr [6]; /* ethernet address */
15363 int if_type; /* interface type: 1=generic,
15364 28=slip, ether=6, loopback=24 */
15365 int if_speed; /* interface speed: in bits/sec */
15367 struct sockaddr if_addr; /* interface's address */
15368 struct sockaddr ifu_broadaddr; /* broadcast address */
15369 struct sockaddr ia_subnetmask; /* interface's mask */
15374 } if_snd; /* output queue */
15375 int if_ibytes; /* octets received on interface */
15376 int if_ipackets; /* packets received on interface */
15377 int if_ierrors; /* input errors on interface */
15378 int if_iqdrops; /* input queue overruns */
15379 int if_obytes; /* octets sent on interface */
15380 int if_opackets; /* packets sent on interface */
15381 int if_oerrors; /* output errors on interface */
15382 int if_collisions; /* collisions on csma interfaces */
15383 /* end statistics */
15384 struct ifnet *if_next;
15391 struct ifnet testit;
15392 testit.if_obytes $defineit;
15396 if { (eval echo configure
:15397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15398 eval "${ac_safe_all}=yes"
15400 echo "configure: failed program was:" >&5
15401 cat conftest.
$ac_ext >&5
15403 eval "${ac_safe_all}=no"
15410 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15411 echo "$ac_t""yes" 1>&6
15412 cat >> confdefs.h
<<EOF
15413 #define $ac_uc_define 1
15417 echo "$ac_t""no" 1>&6
15425 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
15426 ac_safe_member
=`echo "if_ibytes" | sed 'y%./+-%__p_%'`
15427 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15428 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15430 echo $ac_n "checking for ifnet.if_ibytes""... $ac_c" 1>&6
15431 echo "configure:15432: checking for ifnet.if_ibytes" >&5
15432 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15433 echo $ac_n "(cached) $ac_c" 1>&6
15436 if test "x" = "x"; then
15438 elif test "x" = "xno"; then
15443 cat > conftest.
$ac_ext <<EOF
15444 #line 15445 "configure"
15445 #include "confdefs.h"
15448 #ifdef IFNET_NEEDS_KERNEL
15451 #include <sys/types.h>
15452 #include <sys/socket.h>
15453 #ifdef HAVE_SYS_TIME_H
15454 #include <sys/time.h>
15456 #include <net/if.h>
15457 #ifdef HAVE_NET_IF_VAR_H
15458 #include <net/if_var.h>
15460 #ifdef HAVE_SYS_QUEUE_H
15461 #include <sys/queue.h>
15465 char *if_name; /* name, e.g. "en" or "lo" */
15466 short if_unit; /* sub-unit for lower level driver */
15467 short if_mtu; /* maximum transmission unit */
15468 short if_flags; /* up/down, broadcast, etc. */
15469 int if_metric; /* routing metric (external only) */
15470 char if_hwaddr [6]; /* ethernet address */
15471 int if_type; /* interface type: 1=generic,
15472 28=slip, ether=6, loopback=24 */
15473 int if_speed; /* interface speed: in bits/sec */
15475 struct sockaddr if_addr; /* interface's address */
15476 struct sockaddr ifu_broadaddr; /* broadcast address */
15477 struct sockaddr ia_subnetmask; /* interface's mask */
15482 } if_snd; /* output queue */
15483 int if_ibytes; /* octets received on interface */
15484 int if_ipackets; /* packets received on interface */
15485 int if_ierrors; /* input errors on interface */
15486 int if_iqdrops; /* input queue overruns */
15487 int if_obytes; /* octets sent on interface */
15488 int if_opackets; /* packets sent on interface */
15489 int if_oerrors; /* output errors on interface */
15490 int if_collisions; /* collisions on csma interfaces */
15491 /* end statistics */
15492 struct ifnet *if_next;
15499 struct ifnet testit;
15500 testit.if_ibytes $defineit;
15504 if { (eval echo configure
:15505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15506 eval "${ac_safe_all}=yes"
15508 echo "configure: failed program was:" >&5
15509 cat conftest.
$ac_ext >&5
15511 eval "${ac_safe_all}=no"
15518 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15519 echo "$ac_t""yes" 1>&6
15520 cat >> confdefs.h
<<EOF
15521 #define $ac_uc_define 1
15525 echo "$ac_t""no" 1>&6
15533 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
15534 ac_safe_member
=`echo "if_addrlist" | sed 'y%./+-%__p_%'`
15535 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15536 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15538 echo $ac_n "checking for ifnet.if_addrlist""... $ac_c" 1>&6
15539 echo "configure:15540: checking for ifnet.if_addrlist" >&5
15540 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15541 echo $ac_n "(cached) $ac_c" 1>&6
15544 if test "x" = "x"; then
15546 elif test "x" = "xno"; then
15551 cat > conftest.
$ac_ext <<EOF
15552 #line 15553 "configure"
15553 #include "confdefs.h"
15556 #ifdef IFNET_NEEDS_KERNEL
15559 #include <sys/types.h>
15560 #include <sys/socket.h>
15561 #ifdef HAVE_SYS_TIME_H
15562 #include <sys/time.h>
15564 #include <net/if.h>
15565 #ifdef HAVE_NET_IF_VAR_H
15566 #include <net/if_var.h>
15568 #ifdef HAVE_SYS_QUEUE_H
15569 #include <sys/queue.h>
15573 char *if_name; /* name, e.g. "en" or "lo" */
15574 short if_unit; /* sub-unit for lower level driver */
15575 short if_mtu; /* maximum transmission unit */
15576 short if_flags; /* up/down, broadcast, etc. */
15577 int if_metric; /* routing metric (external only) */
15578 char if_hwaddr [6]; /* ethernet address */
15579 int if_type; /* interface type: 1=generic,
15580 28=slip, ether=6, loopback=24 */
15581 int if_speed; /* interface speed: in bits/sec */
15583 struct sockaddr if_addr; /* interface's address */
15584 struct sockaddr ifu_broadaddr; /* broadcast address */
15585 struct sockaddr ia_subnetmask; /* interface's mask */
15590 } if_snd; /* output queue */
15591 int if_ibytes; /* octets received on interface */
15592 int if_ipackets; /* packets received on interface */
15593 int if_ierrors; /* input errors on interface */
15594 int if_iqdrops; /* input queue overruns */
15595 int if_obytes; /* octets sent on interface */
15596 int if_opackets; /* packets sent on interface */
15597 int if_oerrors; /* output errors on interface */
15598 int if_collisions; /* collisions on csma interfaces */
15599 /* end statistics */
15600 struct ifnet *if_next;
15607 struct ifnet testit;
15608 testit.if_addrlist $defineit;
15612 if { (eval echo configure
:15613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15614 eval "${ac_safe_all}=yes"
15616 echo "configure: failed program was:" >&5
15617 cat conftest.
$ac_ext >&5
15619 eval "${ac_safe_all}=no"
15626 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15627 echo "$ac_t""yes" 1>&6
15628 cat >> confdefs.h
<<EOF
15629 #define $ac_uc_define 1
15633 echo "$ac_t""no" 1>&6
15641 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
15642 ac_safe_member
=`echo "if_addrhead.tqh_first" | sed 'y%./+-%__p_%'`
15643 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15644 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15646 echo $ac_n "checking for ifnet.if_addrhead.tqh_first""... $ac_c" 1>&6
15647 echo "configure:15648: checking for ifnet.if_addrhead.tqh_first" >&5
15648 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15649 echo $ac_n "(cached) $ac_c" 1>&6
15652 if test "x" = "x"; then
15654 elif test "x" = "xno"; then
15659 cat > conftest.
$ac_ext <<EOF
15660 #line 15661 "configure"
15661 #include "confdefs.h"
15664 #ifdef IFNET_NEEDS_KERNEL
15667 #include <sys/types.h>
15668 #include <sys/socket.h>
15669 #ifdef HAVE_SYS_TIME_H
15670 #include <sys/time.h>
15672 #include <net/if.h>
15673 #ifdef HAVE_NET_IF_VAR_H
15674 #include <net/if_var.h>
15676 #ifdef HAVE_SYS_QUEUE_H
15677 #include <sys/queue.h>
15681 char *if_name; /* name, e.g. "en" or "lo" */
15682 short if_unit; /* sub-unit for lower level driver */
15683 short if_mtu; /* maximum transmission unit */
15684 short if_flags; /* up/down, broadcast, etc. */
15685 int if_metric; /* routing metric (external only) */
15686 char if_hwaddr [6]; /* ethernet address */
15687 int if_type; /* interface type: 1=generic,
15688 28=slip, ether=6, loopback=24 */
15689 int if_speed; /* interface speed: in bits/sec */
15691 struct sockaddr if_addr; /* interface's address */
15692 struct sockaddr ifu_broadaddr; /* broadcast address */
15693 struct sockaddr ia_subnetmask; /* interface's mask */
15698 } if_snd; /* output queue */
15699 int if_ibytes; /* octets received on interface */
15700 int if_ipackets; /* packets received on interface */
15701 int if_ierrors; /* input errors on interface */
15702 int if_iqdrops; /* input queue overruns */
15703 int if_obytes; /* octets sent on interface */
15704 int if_opackets; /* packets sent on interface */
15705 int if_oerrors; /* output errors on interface */
15706 int if_collisions; /* collisions on csma interfaces */
15707 /* end statistics */
15708 struct ifnet *if_next;
15715 struct ifnet testit;
15716 testit.if_addrhead.tqh_first $defineit;
15720 if { (eval echo configure
:15721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15722 eval "${ac_safe_all}=yes"
15724 echo "configure: failed program was:" >&5
15725 cat conftest.
$ac_ext >&5
15727 eval "${ac_safe_all}=no"
15734 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15735 echo "$ac_t""yes" 1>&6
15736 cat >> confdefs.h
<<EOF
15737 #define $ac_uc_define 1
15741 echo "$ac_t""no" 1>&6
15749 ac_safe_struct
=`echo "udpstat" | sed 'y%./+-%__p_%'`
15750 ac_safe_member
=`echo "udps_discard" | sed 'y%./+-%__p_%'`
15751 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15752 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15754 echo $ac_n "checking for udpstat.udps_discard""... $ac_c" 1>&6
15755 echo "configure:15756: checking for udpstat.udps_discard" >&5
15756 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15757 echo $ac_n "(cached) $ac_c" 1>&6
15760 if test "x" = "x"; then
15762 elif test "x" = "xno"; then
15767 cat > conftest.
$ac_ext <<EOF
15768 #line 15769 "configure"
15769 #include "confdefs.h"
15772 #include <sys/types.h>
15773 #if HAVE_NETINET_IN_H
15774 #include <netinet/in.h>
15776 #if HAVE_NETINET_IP_VAR_H
15777 #include <netinet/ip_var.h>
15779 #if HAVE_NETINET_UDP_H
15780 #include <netinet/udp.h>
15782 #if HAVE_NETINET_UDP_VAR_H
15783 #include <netinet/udp_var.h>
15789 struct udpstat testit;
15790 testit.udps_discard $defineit;
15794 if { (eval echo configure
:15795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15796 eval "${ac_safe_all}=yes"
15798 echo "configure: failed program was:" >&5
15799 cat conftest.
$ac_ext >&5
15801 eval "${ac_safe_all}=no"
15808 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15809 echo "$ac_t""yes" 1>&6
15810 cat >> confdefs.h
<<EOF
15811 #define $ac_uc_define 1
15815 echo "$ac_t""no" 1>&6
15822 ac_safe_struct
=`echo "udpstat" | sed 'y%./+-%__p_%'`
15823 ac_safe_member
=`echo "udps_noport" | sed 'y%./+-%__p_%'`
15824 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15825 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15827 echo $ac_n "checking for udpstat.udps_noport""... $ac_c" 1>&6
15828 echo "configure:15829: checking for udpstat.udps_noport" >&5
15829 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15830 echo $ac_n "(cached) $ac_c" 1>&6
15833 if test "x" = "x"; then
15835 elif test "x" = "xno"; then
15840 cat > conftest.
$ac_ext <<EOF
15841 #line 15842 "configure"
15842 #include "confdefs.h"
15845 #include <sys/types.h>
15846 #if HAVE_NETINET_IN_H
15847 #include <netinet/in.h>
15849 #if HAVE_NETINET_IP_VAR_H
15850 #include <netinet/ip_var.h>
15852 #if HAVE_NETINET_UDP_H
15853 #include <netinet/udp.h>
15855 #if HAVE_NETINET_UDP_VAR_H
15856 #include <netinet/udp_var.h>
15862 struct udpstat testit;
15863 testit.udps_noport $defineit;
15867 if { (eval echo configure
:15868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15869 eval "${ac_safe_all}=yes"
15871 echo "configure: failed program was:" >&5
15872 cat conftest.
$ac_ext >&5
15874 eval "${ac_safe_all}=no"
15881 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15882 echo "$ac_t""yes" 1>&6
15883 cat >> confdefs.h
<<EOF
15884 #define $ac_uc_define 1
15888 echo "$ac_t""no" 1>&6
15895 ac_safe_struct
=`echo "udpstat" | sed 'y%./+-%__p_%'`
15896 ac_safe_member
=`echo "udps_noportbcast" | sed 'y%./+-%__p_%'`
15897 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15898 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15900 echo $ac_n "checking for udpstat.udps_noportbcast""... $ac_c" 1>&6
15901 echo "configure:15902: checking for udpstat.udps_noportbcast" >&5
15902 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15903 echo $ac_n "(cached) $ac_c" 1>&6
15906 if test "x" = "x"; then
15908 elif test "x" = "xno"; then
15913 cat > conftest.
$ac_ext <<EOF
15914 #line 15915 "configure"
15915 #include "confdefs.h"
15918 #include <sys/types.h>
15919 #if HAVE_NETINET_IN_H
15920 #include <netinet/in.h>
15922 #if HAVE_NETINET_IP_VAR_H
15923 #include <netinet/ip_var.h>
15925 #if HAVE_NETINET_UDP_H
15926 #include <netinet/udp.h>
15928 #if HAVE_NETINET_UDP_VAR_H
15929 #include <netinet/udp_var.h>
15935 struct udpstat testit;
15936 testit.udps_noportbcast $defineit;
15940 if { (eval echo configure
:15941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15942 eval "${ac_safe_all}=yes"
15944 echo "configure: failed program was:" >&5
15945 cat conftest.
$ac_ext >&5
15947 eval "${ac_safe_all}=no"
15954 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15955 echo "$ac_t""yes" 1>&6
15956 cat >> confdefs.h
<<EOF
15957 #define $ac_uc_define 1
15961 echo "$ac_t""no" 1>&6
15968 ac_safe_struct
=`echo "udpstat" | sed 'y%./+-%__p_%'`
15969 ac_safe_member
=`echo "udps_fullsock" | sed 'y%./+-%__p_%'`
15970 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15971 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15973 echo $ac_n "checking for udpstat.udps_fullsock""... $ac_c" 1>&6
15974 echo "configure:15975: checking for udpstat.udps_fullsock" >&5
15975 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15976 echo $ac_n "(cached) $ac_c" 1>&6
15979 if test "x" = "x"; then
15981 elif test "x" = "xno"; then
15986 cat > conftest.
$ac_ext <<EOF
15987 #line 15988 "configure"
15988 #include "confdefs.h"
15991 #include <sys/types.h>
15992 #if HAVE_NETINET_IN_H
15993 #include <netinet/in.h>
15995 #if HAVE_NETINET_IP_VAR_H
15996 #include <netinet/ip_var.h>
15998 #if HAVE_NETINET_UDP_H
15999 #include <netinet/udp.h>
16001 #if HAVE_NETINET_UDP_VAR_H
16002 #include <netinet/udp_var.h>
16008 struct udpstat testit;
16009 testit.udps_fullsock $defineit;
16013 if { (eval echo configure
:16014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16015 eval "${ac_safe_all}=yes"
16017 echo "configure: failed program was:" >&5
16018 cat conftest.
$ac_ext >&5
16020 eval "${ac_safe_all}=no"
16027 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16028 echo "$ac_t""yes" 1>&6
16029 cat >> confdefs.h
<<EOF
16030 #define $ac_uc_define 1
16034 echo "$ac_t""no" 1>&6
16041 ac_safe_struct
=`echo "arphd" | sed 'y%./+-%__p_%'`
16042 ac_safe_member
=`echo "at_next" | sed 'y%./+-%__p_%'`
16043 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16044 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16046 echo $ac_n "checking for arphd.at_next""... $ac_c" 1>&6
16047 echo "configure:16048: checking for arphd.at_next" >&5
16048 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16049 echo $ac_n "(cached) $ac_c" 1>&6
16052 if test "x" = "x"; then
16054 elif test "x" = "xno"; then
16059 cat > conftest.
$ac_ext <<EOF
16060 #line 16061 "configure"
16061 #include "confdefs.h"
16064 #ifdef HAVE_SYS_PARAM_H
16065 #include <sys/param.h>
16067 #include <sys/types.h>
16068 #include <sys/socket.h>
16069 #ifdef HAVE_SYS_TIME_H
16070 #include <sys/time.h>
16072 #include <net/if.h>
16073 #if HAVE_NETINET_IN_H
16074 #include <netinet/in.h>
16076 #if HAVE_NETINET_IF_ETHER_H
16077 #include <netinet/if_ether.h>
16083 struct arphd testit;
16084 testit.at_next $defineit;
16088 if { (eval echo configure
:16089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16090 eval "${ac_safe_all}=yes"
16092 echo "configure: failed program was:" >&5
16093 cat conftest.
$ac_ext >&5
16095 eval "${ac_safe_all}=no"
16102 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16103 echo "$ac_t""yes" 1>&6
16104 cat >> confdefs.h
<<EOF
16105 #define $ac_uc_define 1
16109 echo "$ac_t""no" 1>&6
16116 ac_safe_struct
=`echo "swdevt" | sed 'y%./+-%__p_%'`
16117 ac_safe_member
=`echo "sw_nblksenabled" | sed 'y%./+-%__p_%'`
16118 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16119 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16121 echo $ac_n "checking for swdevt.sw_nblksenabled""... $ac_c" 1>&6
16122 echo "configure:16123: checking for swdevt.sw_nblksenabled" >&5
16123 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16124 echo $ac_n "(cached) $ac_c" 1>&6
16127 if test "x" = "x"; then
16129 elif test "x" = "xno"; then
16134 cat > conftest.
$ac_ext <<EOF
16135 #line 16136 "configure"
16136 #include "confdefs.h"
16139 #if HAVE_SYS_CONF_H
16140 #include <sys/conf.h>
16146 struct swdevt testit;
16147 testit.sw_nblksenabled $defineit;
16151 if { (eval echo configure
:16152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16153 eval "${ac_safe_all}=yes"
16155 echo "configure: failed program was:" >&5
16156 cat conftest.
$ac_ext >&5
16158 eval "${ac_safe_all}=no"
16165 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16166 echo "$ac_t""yes" 1>&6
16167 cat >> confdefs.h
<<EOF
16168 #define $ac_uc_define 1
16172 echo "$ac_t""no" 1>&6
16179 ac_safe_struct
=`echo "statvfs" | sed 'y%./+-%__p_%'`
16180 ac_safe_member
=`echo "f_frsize" | sed 'y%./+-%__p_%'`
16181 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16182 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16184 echo $ac_n "checking for statvfs.f_frsize""... $ac_c" 1>&6
16185 echo "configure:16186: checking for statvfs.f_frsize" >&5
16186 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16187 echo $ac_n "(cached) $ac_c" 1>&6
16190 if test "x" = "x"; then
16192 elif test "x" = "xno"; then
16197 cat > conftest.
$ac_ext <<EOF
16198 #line 16199 "configure"
16199 #include "confdefs.h"
16202 #ifdef HAVE_SYS_STAT_H
16203 #include <sys/stat.h>
16205 #if HAVE_SYS_STATFS_H
16206 #include <sys/statfs.h>
16208 #if HAVE_SYS_STATVFS_H
16209 #include <sys/statvfs.h>
16215 struct statvfs testit;
16216 testit.f_frsize $defineit;
16220 if { (eval echo configure
:16221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16222 eval "${ac_safe_all}=yes"
16224 echo "configure: failed program was:" >&5
16225 cat conftest.
$ac_ext >&5
16227 eval "${ac_safe_all}=no"
16234 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16235 echo "$ac_t""yes" 1>&6
16236 cat >> confdefs.h
<<EOF
16237 #define $ac_uc_define 1
16241 echo "$ac_t""no" 1>&6
16248 ac_safe_struct
=`echo "statvfs" | sed 'y%./+-%__p_%'`
16249 ac_safe_member
=`echo "f_files" | sed 'y%./+-%__p_%'`
16250 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16251 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16253 echo $ac_n "checking for statvfs.f_files""... $ac_c" 1>&6
16254 echo "configure:16255: checking for statvfs.f_files" >&5
16255 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16256 echo $ac_n "(cached) $ac_c" 1>&6
16259 if test "x" = "x"; then
16261 elif test "x" = "xno"; then
16266 cat > conftest.
$ac_ext <<EOF
16267 #line 16268 "configure"
16268 #include "confdefs.h"
16271 #ifdef HAVE_SYS_STAT_H
16272 #include <sys/stat.h>
16274 #if HAVE_SYS_STATFS_H
16275 #include <sys/statfs.h>
16277 #if HAVE_SYS_STATVFS_H
16278 #include <sys/statvfs.h>
16284 struct statvfs testit;
16285 testit.f_files $defineit;
16289 if { (eval echo configure
:16290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16291 eval "${ac_safe_all}=yes"
16293 echo "configure: failed program was:" >&5
16294 cat conftest.
$ac_ext >&5
16296 eval "${ac_safe_all}=no"
16303 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16304 echo "$ac_t""yes" 1>&6
16305 cat >> confdefs.h
<<EOF
16306 #define $ac_uc_define 1
16310 echo "$ac_t""no" 1>&6
16317 ac_safe_struct
=`echo "statfs" | sed 'y%./+-%__p_%'`
16318 ac_safe_member
=`echo "f_files" | sed 'y%./+-%__p_%'`
16319 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16320 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16322 echo $ac_n "checking for statfs.f_files""... $ac_c" 1>&6
16323 echo "configure:16324: checking for statfs.f_files" >&5
16324 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16325 echo $ac_n "(cached) $ac_c" 1>&6
16328 if test "x" = "x"; then
16330 elif test "x" = "xno"; then
16335 cat > conftest.
$ac_ext <<EOF
16336 #line 16337 "configure"
16337 #include "confdefs.h"
16340 #ifdef HAVE_SYS_STAT_H
16341 #include <sys/stat.h>
16343 #if HAVE_SYS_STATFS_H
16344 #include <sys/statfs.h>
16346 #ifdef HAVE_SYS_PARAM_H
16347 #include <sys/param.h>
16348 #include <sys/types.h>
16350 #ifdef HAVE_SYS_MOUNT_H
16351 #include <sys/mount.h>
16357 struct statfs testit;
16358 testit.f_files $defineit;
16362 if { (eval echo configure
:16363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16364 eval "${ac_safe_all}=yes"
16366 echo "configure: failed program was:" >&5
16367 cat conftest.
$ac_ext >&5
16369 eval "${ac_safe_all}=no"
16376 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16377 echo "$ac_t""yes" 1>&6
16378 cat >> confdefs.h
<<EOF
16379 #define $ac_uc_define 1
16383 echo "$ac_t""no" 1>&6
16390 ac_safe_struct
=`echo "statfs" | sed 'y%./+-%__p_%'`
16391 ac_safe_member
=`echo "f_ffree" | sed 'y%./+-%__p_%'`
16392 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16393 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16395 echo $ac_n "checking for statfs.f_ffree""... $ac_c" 1>&6
16396 echo "configure:16397: checking for statfs.f_ffree" >&5
16397 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16398 echo $ac_n "(cached) $ac_c" 1>&6
16401 if test "x" = "x"; then
16403 elif test "x" = "xno"; then
16408 cat > conftest.
$ac_ext <<EOF
16409 #line 16410 "configure"
16410 #include "confdefs.h"
16413 #ifdef HAVE_SYS_STAT_H
16414 #include <sys/stat.h>
16416 #if HAVE_SYS_STATFS_H
16417 #include <sys/statfs.h>
16419 #ifdef HAVE_SYS_PARAM_H
16420 #include <sys/param.h>
16421 #include <sys/types.h>
16423 #ifdef HAVE_SYS_MOUNT_H
16424 #include <sys/mount.h>
16430 struct statfs testit;
16431 testit.f_ffree $defineit;
16435 if { (eval echo configure
:16436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16437 eval "${ac_safe_all}=yes"
16439 echo "configure: failed program was:" >&5
16440 cat conftest.
$ac_ext >&5
16442 eval "${ac_safe_all}=no"
16449 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16450 echo "$ac_t""yes" 1>&6
16451 cat >> confdefs.h
<<EOF
16452 #define $ac_uc_define 1
16456 echo "$ac_t""no" 1>&6
16463 ac_safe_struct
=`echo "statfs" | sed 'y%./+-%__p_%'`
16464 ac_safe_member
=`echo "f_favail" | sed 'y%./+-%__p_%'`
16465 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16466 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16468 echo $ac_n "checking for statfs.f_favail""... $ac_c" 1>&6
16469 echo "configure:16470: checking for statfs.f_favail" >&5
16470 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16471 echo $ac_n "(cached) $ac_c" 1>&6
16474 if test "x" = "x"; then
16476 elif test "x" = "xno"; then
16481 cat > conftest.
$ac_ext <<EOF
16482 #line 16483 "configure"
16483 #include "confdefs.h"
16486 #ifdef HAVE_SYS_STAT_H
16487 #include <sys/stat.h>
16489 #if HAVE_SYS_STATFS_H
16490 #include <sys/statfs.h>
16492 #ifdef HAVE_SYS_PARAM_H
16493 #include <sys/param.h>
16494 #include <sys/types.h>
16496 #ifdef HAVE_SYS_MOUNT_H
16497 #include <sys/mount.h>
16503 struct statfs testit;
16504 testit.f_favail $defineit;
16508 if { (eval echo configure
:16509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16510 eval "${ac_safe_all}=yes"
16512 echo "configure: failed program was:" >&5
16513 cat conftest.
$ac_ext >&5
16515 eval "${ac_safe_all}=no"
16522 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16523 echo "$ac_t""yes" 1>&6
16524 cat >> confdefs.h
<<EOF
16525 #define $ac_uc_define 1
16529 echo "$ac_t""no" 1>&6
16536 ac_safe_struct
=`echo "nlist" | sed 'y%./+-%__p_%'`
16537 ac_safe_member
=`echo "n_value" | sed 'y%./+-%__p_%'`
16538 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16539 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16541 echo $ac_n "checking for nlist.n_value""... $ac_c" 1>&6
16542 echo "configure:16543: checking for nlist.n_value" >&5
16543 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16544 echo $ac_n "(cached) $ac_c" 1>&6
16547 if test "x" = "x"; then
16549 elif test "x" = "xno"; then
16554 cat > conftest.
$ac_ext <<EOF
16555 #line 16556 "configure"
16556 #include "confdefs.h"
16566 struct nlist testit;
16567 testit.n_value $defineit;
16571 if { (eval echo configure
:16572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16573 eval "${ac_safe_all}=yes"
16575 echo "configure: failed program was:" >&5
16576 cat conftest.
$ac_ext >&5
16578 eval "${ac_safe_all}=no"
16585 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16586 echo "$ac_t""yes" 1>&6
16587 cat >> confdefs.h
<<EOF
16588 #define $ac_uc_define 1
16592 echo "$ac_t""no" 1>&6
16599 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16600 ac_safe_member
=`echo "ips_cantforward" | sed 'y%./+-%__p_%'`
16601 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16602 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16604 echo $ac_n "checking for ipstat.ips_cantforward""... $ac_c" 1>&6
16605 echo "configure:16606: checking for ipstat.ips_cantforward" >&5
16606 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16607 echo $ac_n "(cached) $ac_c" 1>&6
16610 if test "x" = "x"; then
16612 elif test "x" = "xno"; then
16617 cat > conftest.
$ac_ext <<EOF
16618 #line 16619 "configure"
16619 #include "confdefs.h"
16622 #include <sys/types.h>
16623 #if HAVE_NETINET_IN_H
16624 #include <netinet/in.h>
16626 #if HAVE_NETINET_IP_VAR_H
16627 #include <netinet/ip_var.h>
16633 struct ipstat testit;
16634 testit.ips_cantforward $defineit;
16638 if { (eval echo configure
:16639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16640 eval "${ac_safe_all}=yes"
16642 echo "configure: failed program was:" >&5
16643 cat conftest.
$ac_ext >&5
16645 eval "${ac_safe_all}=no"
16652 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16653 echo "$ac_t""yes" 1>&6
16654 cat >> confdefs.h
<<EOF
16655 #define $ac_uc_define 1
16659 echo "$ac_t""no" 1>&6
16666 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16667 ac_safe_member
=`echo "ips_cantfrag" | sed 'y%./+-%__p_%'`
16668 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16669 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16671 echo $ac_n "checking for ipstat.ips_cantfrag""... $ac_c" 1>&6
16672 echo "configure:16673: checking for ipstat.ips_cantfrag" >&5
16673 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16674 echo $ac_n "(cached) $ac_c" 1>&6
16677 if test "x" = "x"; then
16679 elif test "x" = "xno"; then
16684 cat > conftest.
$ac_ext <<EOF
16685 #line 16686 "configure"
16686 #include "confdefs.h"
16689 #include <sys/types.h>
16690 #if HAVE_NETINET_IN_H
16691 #include <netinet/in.h>
16693 #if HAVE_NETINET_IP_VAR_H
16694 #include <netinet/ip_var.h>
16700 struct ipstat testit;
16701 testit.ips_cantfrag $defineit;
16705 if { (eval echo configure
:16706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16707 eval "${ac_safe_all}=yes"
16709 echo "configure: failed program was:" >&5
16710 cat conftest.
$ac_ext >&5
16712 eval "${ac_safe_all}=no"
16719 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16720 echo "$ac_t""yes" 1>&6
16721 cat >> confdefs.h
<<EOF
16722 #define $ac_uc_define 1
16726 echo "$ac_t""no" 1>&6
16733 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16734 ac_safe_member
=`echo "ips_delivered" | sed 'y%./+-%__p_%'`
16735 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16736 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16738 echo $ac_n "checking for ipstat.ips_delivered""... $ac_c" 1>&6
16739 echo "configure:16740: checking for ipstat.ips_delivered" >&5
16740 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16741 echo $ac_n "(cached) $ac_c" 1>&6
16744 if test "x" = "x"; then
16746 elif test "x" = "xno"; then
16751 cat > conftest.
$ac_ext <<EOF
16752 #line 16753 "configure"
16753 #include "confdefs.h"
16756 #include <sys/types.h>
16757 #if HAVE_NETINET_IN_H
16758 #include <netinet/in.h>
16760 #if HAVE_NETINET_IP_VAR_H
16761 #include <netinet/ip_var.h>
16767 struct ipstat testit;
16768 testit.ips_delivered $defineit;
16772 if { (eval echo configure
:16773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16774 eval "${ac_safe_all}=yes"
16776 echo "configure: failed program was:" >&5
16777 cat conftest.
$ac_ext >&5
16779 eval "${ac_safe_all}=no"
16786 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16787 echo "$ac_t""yes" 1>&6
16788 cat >> confdefs.h
<<EOF
16789 #define $ac_uc_define 1
16793 echo "$ac_t""no" 1>&6
16800 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16801 ac_safe_member
=`echo "ips_fragdropped" | sed 'y%./+-%__p_%'`
16802 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16803 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16805 echo $ac_n "checking for ipstat.ips_fragdropped""... $ac_c" 1>&6
16806 echo "configure:16807: checking for ipstat.ips_fragdropped" >&5
16807 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16808 echo $ac_n "(cached) $ac_c" 1>&6
16811 if test "x" = "x"; then
16813 elif test "x" = "xno"; then
16818 cat > conftest.
$ac_ext <<EOF
16819 #line 16820 "configure"
16820 #include "confdefs.h"
16823 #include <sys/types.h>
16824 #if HAVE_NETINET_IN_H
16825 #include <netinet/in.h>
16827 #if HAVE_NETINET_IP_VAR_H
16828 #include <netinet/ip_var.h>
16834 struct ipstat testit;
16835 testit.ips_fragdropped $defineit;
16839 if { (eval echo configure
:16840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16841 eval "${ac_safe_all}=yes"
16843 echo "configure: failed program was:" >&5
16844 cat conftest.
$ac_ext >&5
16846 eval "${ac_safe_all}=no"
16853 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16854 echo "$ac_t""yes" 1>&6
16855 cat >> confdefs.h
<<EOF
16856 #define $ac_uc_define 1
16860 echo "$ac_t""no" 1>&6
16867 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16868 ac_safe_member
=`echo "ips_fragtimeout" | sed 'y%./+-%__p_%'`
16869 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16870 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16872 echo $ac_n "checking for ipstat.ips_fragtimeout""... $ac_c" 1>&6
16873 echo "configure:16874: checking for ipstat.ips_fragtimeout" >&5
16874 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16875 echo $ac_n "(cached) $ac_c" 1>&6
16878 if test "x" = "x"; then
16880 elif test "x" = "xno"; then
16885 cat > conftest.
$ac_ext <<EOF
16886 #line 16887 "configure"
16887 #include "confdefs.h"
16890 #include <sys/types.h>
16891 #if HAVE_NETINET_IN_H
16892 #include <netinet/in.h>
16894 #if HAVE_NETINET_IP_VAR_H
16895 #include <netinet/ip_var.h>
16901 struct ipstat testit;
16902 testit.ips_fragtimeout $defineit;
16906 if { (eval echo configure
:16907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16908 eval "${ac_safe_all}=yes"
16910 echo "configure: failed program was:" >&5
16911 cat conftest.
$ac_ext >&5
16913 eval "${ac_safe_all}=no"
16920 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16921 echo "$ac_t""yes" 1>&6
16922 cat >> confdefs.h
<<EOF
16923 #define $ac_uc_define 1
16927 echo "$ac_t""no" 1>&6
16934 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16935 ac_safe_member
=`echo "ips_localout" | sed 'y%./+-%__p_%'`
16936 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16937 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16939 echo $ac_n "checking for ipstat.ips_localout""... $ac_c" 1>&6
16940 echo "configure:16941: checking for ipstat.ips_localout" >&5
16941 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16942 echo $ac_n "(cached) $ac_c" 1>&6
16945 if test "x" = "x"; then
16947 elif test "x" = "xno"; then
16952 cat > conftest.
$ac_ext <<EOF
16953 #line 16954 "configure"
16954 #include "confdefs.h"
16957 #include <sys/types.h>
16958 #if HAVE_NETINET_IN_H
16959 #include <netinet/in.h>
16961 #if HAVE_NETINET_IP_VAR_H
16962 #include <netinet/ip_var.h>
16968 struct ipstat testit;
16969 testit.ips_localout $defineit;
16973 if { (eval echo configure
:16974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16975 eval "${ac_safe_all}=yes"
16977 echo "configure: failed program was:" >&5
16978 cat conftest.
$ac_ext >&5
16980 eval "${ac_safe_all}=no"
16987 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16988 echo "$ac_t""yes" 1>&6
16989 cat >> confdefs.h
<<EOF
16990 #define $ac_uc_define 1
16994 echo "$ac_t""no" 1>&6
17001 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
17002 ac_safe_member
=`echo "ips_noproto" | sed 'y%./+-%__p_%'`
17003 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17004 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17006 echo $ac_n "checking for ipstat.ips_noproto""... $ac_c" 1>&6
17007 echo "configure:17008: checking for ipstat.ips_noproto" >&5
17008 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17009 echo $ac_n "(cached) $ac_c" 1>&6
17012 if test "x" = "x"; then
17014 elif test "x" = "xno"; then
17019 cat > conftest.
$ac_ext <<EOF
17020 #line 17021 "configure"
17021 #include "confdefs.h"
17024 #include <sys/types.h>
17025 #if HAVE_NETINET_IN_H
17026 #include <netinet/in.h>
17028 #if HAVE_NETINET_IP_VAR_H
17029 #include <netinet/ip_var.h>
17035 struct ipstat testit;
17036 testit.ips_noproto $defineit;
17040 if { (eval echo configure
:17041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17042 eval "${ac_safe_all}=yes"
17044 echo "configure: failed program was:" >&5
17045 cat conftest.
$ac_ext >&5
17047 eval "${ac_safe_all}=no"
17054 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17055 echo "$ac_t""yes" 1>&6
17056 cat >> confdefs.h
<<EOF
17057 #define $ac_uc_define 1
17061 echo "$ac_t""no" 1>&6
17068 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
17069 ac_safe_member
=`echo "ips_noroute" | sed 'y%./+-%__p_%'`
17070 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17071 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17073 echo $ac_n "checking for ipstat.ips_noroute""... $ac_c" 1>&6
17074 echo "configure:17075: checking for ipstat.ips_noroute" >&5
17075 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17076 echo $ac_n "(cached) $ac_c" 1>&6
17079 if test "x" = "x"; then
17081 elif test "x" = "xno"; then
17086 cat > conftest.
$ac_ext <<EOF
17087 #line 17088 "configure"
17088 #include "confdefs.h"
17091 #include <sys/types.h>
17092 #if HAVE_NETINET_IN_H
17093 #include <netinet/in.h>
17095 #if HAVE_NETINET_IP_VAR_H
17096 #include <netinet/ip_var.h>
17102 struct ipstat testit;
17103 testit.ips_noroute $defineit;
17107 if { (eval echo configure
:17108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17109 eval "${ac_safe_all}=yes"
17111 echo "configure: failed program was:" >&5
17112 cat conftest.
$ac_ext >&5
17114 eval "${ac_safe_all}=no"
17121 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17122 echo "$ac_t""yes" 1>&6
17123 cat >> confdefs.h
<<EOF
17124 #define $ac_uc_define 1
17128 echo "$ac_t""no" 1>&6
17135 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
17136 ac_safe_member
=`echo "ips_odropped" | sed 'y%./+-%__p_%'`
17137 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17138 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17140 echo $ac_n "checking for ipstat.ips_odropped""... $ac_c" 1>&6
17141 echo "configure:17142: checking for ipstat.ips_odropped" >&5
17142 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17143 echo $ac_n "(cached) $ac_c" 1>&6
17146 if test "x" = "x"; then
17148 elif test "x" = "xno"; then
17153 cat > conftest.
$ac_ext <<EOF
17154 #line 17155 "configure"
17155 #include "confdefs.h"
17158 #include <sys/types.h>
17159 #if HAVE_NETINET_IN_H
17160 #include <netinet/in.h>
17162 #if HAVE_NETINET_IP_VAR_H
17163 #include <netinet/ip_var.h>
17169 struct ipstat testit;
17170 testit.ips_odropped $defineit;
17174 if { (eval echo configure
:17175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17176 eval "${ac_safe_all}=yes"
17178 echo "configure: failed program was:" >&5
17179 cat conftest.
$ac_ext >&5
17181 eval "${ac_safe_all}=no"
17188 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17189 echo "$ac_t""yes" 1>&6
17190 cat >> confdefs.h
<<EOF
17191 #define $ac_uc_define 1
17195 echo "$ac_t""no" 1>&6
17202 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
17203 ac_safe_member
=`echo "ips_ofragments" | sed 'y%./+-%__p_%'`
17204 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17205 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17207 echo $ac_n "checking for ipstat.ips_ofragments""... $ac_c" 1>&6
17208 echo "configure:17209: checking for ipstat.ips_ofragments" >&5
17209 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17210 echo $ac_n "(cached) $ac_c" 1>&6
17213 if test "x" = "x"; then
17215 elif test "x" = "xno"; then
17220 cat > conftest.
$ac_ext <<EOF
17221 #line 17222 "configure"
17222 #include "confdefs.h"
17225 #include <sys/types.h>
17226 #if HAVE_NETINET_IN_H
17227 #include <netinet/in.h>
17229 #if HAVE_NETINET_IP_VAR_H
17230 #include <netinet/ip_var.h>
17236 struct ipstat testit;
17237 testit.ips_ofragments $defineit;
17241 if { (eval echo configure
:17242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17243 eval "${ac_safe_all}=yes"
17245 echo "configure: failed program was:" >&5
17246 cat conftest.
$ac_ext >&5
17248 eval "${ac_safe_all}=no"
17255 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17256 echo "$ac_t""yes" 1>&6
17257 cat >> confdefs.h
<<EOF
17258 #define $ac_uc_define 1
17262 echo "$ac_t""no" 1>&6
17269 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
17270 ac_safe_member
=`echo "ips_reassembled" | sed 'y%./+-%__p_%'`
17271 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17272 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17274 echo $ac_n "checking for ipstat.ips_reassembled""... $ac_c" 1>&6
17275 echo "configure:17276: checking for ipstat.ips_reassembled" >&5
17276 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17277 echo $ac_n "(cached) $ac_c" 1>&6
17280 if test "x" = "x"; then
17282 elif test "x" = "xno"; then
17287 cat > conftest.
$ac_ext <<EOF
17288 #line 17289 "configure"
17289 #include "confdefs.h"
17292 #include <sys/types.h>
17293 #if HAVE_NETINET_IN_H
17294 #include <netinet/in.h>
17296 #if HAVE_NETINET_IP_VAR_H
17297 #include <netinet/ip_var.h>
17303 struct ipstat testit;
17304 testit.ips_reassembled $defineit;
17308 if { (eval echo configure
:17309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17310 eval "${ac_safe_all}=yes"
17312 echo "configure: failed program was:" >&5
17313 cat conftest.
$ac_ext >&5
17315 eval "${ac_safe_all}=no"
17322 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17323 echo "$ac_t""yes" 1>&6
17324 cat >> confdefs.h
<<EOF
17325 #define $ac_uc_define 1
17329 echo "$ac_t""no" 1>&6
17334 if test "x$ac_cv_header_openssl_des_h" = "xyes" ; then
17337 ac_safe_struct
=`echo "des_ks_struct" | sed 'y%./+-%__p_%'`
17338 ac_safe_member
=`echo "weak_key" | sed 'y%./+-%__p_%'`
17339 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17340 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17342 echo $ac_n "checking for des_ks_struct.weak_key""... $ac_c" 1>&6
17343 echo "configure:17344: checking for des_ks_struct.weak_key" >&5
17344 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17345 echo $ac_n "(cached) $ac_c" 1>&6
17348 if test "x" = "x"; then
17350 elif test "x" = "xno"; then
17355 cat > conftest.
$ac_ext <<EOF
17356 #line 17357 "configure"
17357 #include "confdefs.h"
17360 #include <openssl/des.h>
17365 struct des_ks_struct testit;
17366 testit.weak_key $defineit;
17370 if { (eval echo configure
:17371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17372 eval "${ac_safe_all}=yes"
17374 echo "configure: failed program was:" >&5
17375 cat conftest.
$ac_ext >&5
17377 eval "${ac_safe_all}=no"
17384 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17385 echo "$ac_t""yes" 1>&6
17386 cat >> confdefs.h
<<EOF
17387 #define $ac_uc_define 1
17391 echo "$ac_t""no" 1>&6
17398 if test $cross_compiling = yes; then
17399 echo "configure: warning: Can't check sysctl, manually define CAN_USE_SYSCTL if platform support available" 1>&2
17401 echo $ac_n "checking if sysctl can read kernel information""... $ac_c" 1>&6
17402 echo "configure:17403: checking if sysctl can read kernel information" >&5
17403 if eval "test \"`echo '$''{'ac_cv_CAN_USE_SYSCTL'+set}'`\" = set"; then
17404 echo $ac_n "(cached) $ac_c" 1>&6
17406 if test "$cross_compiling" = yes; then
17407 ac_cv_CAN_USE_SYSCTL
=no
17409 cat > conftest.
$ac_ext <<EOF
17410 #line 17411 "configure"
17411 #include "confdefs.h"
17413 #if TIME_WITH_SYS_TIME
17414 # include <sys/time.h>
17417 # if HAVE_SYS_TIME_H
17418 # include <sys/time.h>
17423 #if HAVE_SYS_PARAM_H
17424 # include <sys/param.h>
17426 #include <sys/types.h>
17427 #if HAVE_SYS_SYSCTL_H
17428 # include <sys/sysctl.h>
17434 struct timeval boottime;
17437 mib[1] = KERN_BOOTTIME;
17439 len = sizeof(boottime);
17440 sysctl(mib, 2, &boottime, &len, NULL, NULL);
17441 if (boottime.tv_sec != 0)
17448 if { (eval echo configure
:17449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
17450 ac_cv_CAN_USE_SYSCTL
=yes
17452 echo "configure: failed program was:" >&5
17453 cat conftest.
$ac_ext >&5
17455 ac_cv_CAN_USE_SYSCTL
=no
17462 echo "$ac_t""$ac_cv_CAN_USE_SYSCTL" 1>&6
17465 if test "x$ac_cv_CAN_USE_SYSCTL" = "xyes"; then
17466 cat >> confdefs.h
<<\EOF
17467 #define CAN_USE_SYSCTL 1
17472 echo $ac_n "checking whether TCP timers depend on \`hz'""... $ac_c" 1>&6
17473 echo "configure:17474: checking whether TCP timers depend on \`hz'" >&5
17474 if eval "test \"`echo '$''{'ac_cv_TCPTV_NEEDS_HZ'+set}'`\" = set"; then
17475 echo $ac_n "(cached) $ac_c" 1>&6
17477 cat > conftest.
$ac_ext <<EOF
17478 #line 17479 "configure"
17479 #include "confdefs.h"
17480 #include <netinet/tcp_timer.h>
17484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17485 egrep "hz" >/dev
/null
2>&1; then
17487 ac_cv_TCPTV_NEEDS_HZ
=yes
17490 ac_cv_TCPTV_NEEDS_HZ
=no
17496 echo "$ac_t""$ac_cv_TCPTV_NEEDS_HZ" 1>&6
17498 if test "x$ac_cv_TCPTV_NEEDS_HZ" = "xyes"; then
17499 cat >> confdefs.h
<<\EOF
17500 #define TCPTV_NEEDS_HZ 1
17510 if test "x$ac_cv_user_prompt_LOGFILE" = "x" -o "x$ac_cv_user_prompt_SYS_LOC" = "x" -o "x$ac_cv_user_prompt_SYS_CONTACT" = "x" -o "x$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" = "x"; then
17511 echo $ac_n "checking if you have run configure before""... $ac_c" 1>&6
17512 echo "configure:17513: checking if you have run configure before" >&5
17513 if eval "test \"`echo '$''{'ac_cv_have_warned'+set}'`\" = set"; then
17514 echo $ac_n "(cached) $ac_c" 1>&6
17517 if test "x$defaults" = "xno"; then
17520 ************** Configuration Section **************
17522 You are about to be prompted with a series of questions. Answer
17523 them carefully, as they determine how the SNMP agent and related
17524 applications are to function.
17526 After the configure script finishes, you can browse the newly
17527 created config.h file for further - less important - parameters to
17528 modify. Be careful if you re-run configure though, since config.h will
17531 -Press return to continue-
17535 ac_cv_have_warned
="yes"
17536 echo $ac_n "disabling above prompt for future runs... $ac_c"
17538 ac_cv_have_warned
="no"
17543 echo "$ac_t""$ac_cv_have_warned" 1>&6
17545 ac_cv_have_warned
="yes"
17549 if test -f /etc
/resolv.conf
; then
17550 LOC
=`cat /etc/resolv.conf | grep '^domain' | tail -1 | awk '{print $NF}'`
17558 *** Default SNMP Version:
17560 Starting with Net-SNMP 5.0, you can choose the default version of
17561 the SNMP protocol to use when no version is given explicitly on the
17562 command line, or via an 'snmp.conf' file. In the past this was set to
17563 SNMPv1, but you can use this to switch to SNMPv3 if desired. SNMPv3
17564 will provide a more secure management environment (and thus you're
17565 encouraged to switch to SNMPv3), but may break existing scripts that
17566 rely on the old behaviour. (Though such scripts will probably need to
17567 be changed to use the '-c' community flag anyway, as the SNMPv1
17568 command line usage has changed as well.).
17569 At this prompt you can select \"1\", \"2\" (for SNMPv2c), or \"3\" as
17570 the default version for the command tools (snmpget, ...) to use. This
17571 can always be overridden at runtime using the -v flag to the tools, or
17572 by using the \"defVersion\" token in your snmp.conf file.
17573 Providing the --with-default-snmp-version=\"x\" parameter to ./configure
17574 will avoid this prompt.
17576 Default version of SNMP to use" | tail -1`
17577 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17578 echo "configure:17579: checking $MSG_CHECK" >&5
17579 if eval "test \"`echo '$''{'ac_cv_user_prompt_DEFAULT_SNMP_VERSION'+set}'`\" = set"; then
17580 echo $ac_n "(cached) $ac_c" 1>&6
17584 if test "x$defaults" = "xno"; then
17587 *** Default SNMP Version:
17589 Starting with Net-SNMP 5.0, you can choose the default version of
17590 the SNMP protocol to use when no version is given explicitly on the
17591 command line, or via an 'snmp.conf' file. In the past this was set to
17592 SNMPv1, but you can use this to switch to SNMPv3 if desired. SNMPv3
17593 will provide a more secure management environment (and thus you're
17594 encouraged to switch to SNMPv3), but may break existing scripts that
17595 rely on the old behaviour. (Though such scripts will probably need to
17596 be changed to use the '-c' community flag anyway, as the SNMPv1
17597 command line usage has changed as well.).
17598 At this prompt you can select \"1\", \"2\" (for SNMPv2c), or \"3\" as
17599 the default version for the command tools (snmpget, ...) to use. This
17600 can always be overridden at runtime using the -v flag to the tools, or
17601 by using the \"defVersion\" token in your snmp.conf file.
17602 Providing the --with-default-snmp-version=\"x\" parameter to ./configure
17603 will avoid this prompt.
17605 Default version of SNMP to use (3): $ac_c"
17607 if test "$tmpinput" = "" -a "3" != ""; then
17610 eval DEFAULT_SNMP_VERSION
=\"$tmpinput\"
17613 eval DEFAULT_SNMP_VERSION
=\"$tmpinput\"
17617 eval ac_cv_user_prompt_DEFAULT_SNMP_VERSION
=\
$DEFAULT_SNMP_VERSION
17618 echo $ac_n "setting $MSG_CHECK to... $ac_c" >&6
17622 echo "$ac_t""$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" 1>&6
17623 if test "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "none"; then
17624 if test "xunquoted" = "xquoted" -o "xunquoted" = "xQUOTED"; then
17625 cat >> confdefs.h
<<EOF
17626 #define DEFAULT_SNMP_VERSION "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION"
17630 cat >> confdefs.h
<<EOF
17631 #define DEFAULT_SNMP_VERSION $ac_cv_user_prompt_DEFAULT_SNMP_VERSION
17638 if test "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "1" -a "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "2" -a "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "3"; then
17639 { echo "configure: error: Illegal version number. Only 1, 2 (for SNMPv2c) and 3 are supported." 1>&2; exit 1; }
17645 *** System Contact Information:
17647 Describes who should be contacted about the host the agent is
17648 running on. This information is available in the MIB-II tree. This
17649 can also be over-ridden using the \"syscontact\" syntax in the agent's
17650 configuration files.
17651 Providing the --with-sys-contact=\"contact\" parameter to ./configure
17652 will avoid this prompt.
17654 System Contact Information" | tail -1`
17655 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17656 echo "configure:17657: checking $MSG_CHECK" >&5
17657 if eval "test \"`echo '$''{'ac_cv_user_prompt_SYS_CONTACT'+set}'`\" = set"; then
17658 echo $ac_n "(cached) $ac_c" 1>&6
17662 if test "x$defaults" = "xno"; then
17665 *** System Contact Information:
17667 Describes who should be contacted about the host the agent is
17668 running on. This information is available in the MIB-II tree. This
17669 can also be over-ridden using the \"syscontact\" syntax in the agent's
17670 configuration files.
17671 Providing the --with-sys-contact=\"contact\" parameter to ./configure
17672 will avoid this prompt.
17674 System Contact Information ($ME@$LOC): $ac_c"
17676 if test "$tmpinput" = "" -a "$ME@$LOC" != ""; then
17677 tmpinput
="$ME@$LOC"
17679 eval SYS_CONTACT
=\"$tmpinput\"
17681 tmpinput
="$ME@$LOC"
17682 eval SYS_CONTACT
=\"$tmpinput\"
17686 eval ac_cv_user_prompt_SYS_CONTACT
=\
$SYS_CONTACT
17687 echo $ac_n "setting $MSG_CHECK to... $ac_c" >&6
17691 echo "$ac_t""$ac_cv_user_prompt_SYS_CONTACT" 1>&6
17692 if test "$ac_cv_user_prompt_SYS_CONTACT" != "none"; then
17693 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
17694 cat >> confdefs.h
<<EOF
17695 #define SYS_CONTACT "$ac_cv_user_prompt_SYS_CONTACT"
17699 cat >> confdefs.h
<<EOF
17700 #define SYS_CONTACT $ac_cv_user_prompt_SYS_CONTACT
17710 *** System Location:
17712 Describes the location of the system. This information is
17713 available in the MIB-II tree. this can also be over-ridden using the
17714 \"syslocation\" syntax in the agent's configuration files.
17715 Providing the --with-sys-location=\"location\" parameter to ./configure
17716 will avoid this prompt.
17718 System Location" | tail -1`
17719 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17720 echo "configure:17721: checking $MSG_CHECK" >&5
17721 if eval "test \"`echo '$''{'ac_cv_user_prompt_SYS_LOC'+set}'`\" = set"; then
17722 echo $ac_n "(cached) $ac_c" 1>&6
17726 if test "x$defaults" = "xno"; then
17729 *** System Location:
17731 Describes the location of the system. This information is
17732 available in the MIB-II tree. this can also be over-ridden using the
17733 \"syslocation\" syntax in the agent's configuration files.
17734 Providing the --with-sys-location=\"location\" parameter to ./configure
17735 will avoid this prompt.
17737 System Location (Unknown): $ac_c"
17739 if test "$tmpinput" = "" -a "Unknown" != ""; then
17742 eval SYS_LOC
=\"$tmpinput\"
17745 eval SYS_LOC
=\"$tmpinput\"
17749 eval ac_cv_user_prompt_SYS_LOC
=\
$SYS_LOC
17750 echo $ac_n "setting $MSG_CHECK to... $ac_c" >&6
17754 echo "$ac_t""$ac_cv_user_prompt_SYS_LOC" 1>&6
17755 if test "$ac_cv_user_prompt_SYS_LOC" != "none"; then
17756 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
17757 cat >> confdefs.h
<<EOF
17758 #define SYS_LOC "$ac_cv_user_prompt_SYS_LOC"
17762 cat >> confdefs.h
<<EOF
17763 #define SYS_LOC $ac_cv_user_prompt_SYS_LOC
17770 if test -d /var
/log
; then
17771 defaultlog
="/var/log/snmpd.log"
17773 defaultlog
="/usr/adm/snmpd.log"
17779 *** Logfile location:
17781 Enter the default location for the snmpd agent to dump
17782 information & errors to. If not defined (enter the keyword \"none\"
17783 at the prompt below) the agent will use stdout and stderr instead.
17784 (Note: This value can be over-ridden using command line options.)
17785 Providing the --with-logfile=\"path\" parameter to ./configure
17786 will avoid this prompt.
17788 Location to write logfile" | tail -1`
17789 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17790 echo "configure:17791: checking $MSG_CHECK" >&5
17791 if eval "test \"`echo '$''{'ac_cv_user_prompt_LOGFILE'+set}'`\" = set"; then
17792 echo $ac_n "(cached) $ac_c" 1>&6
17796 if test "x$defaults" = "xno"; then
17799 *** Logfile location:
17801 Enter the default location for the snmpd agent to dump
17802 information & errors to. If not defined (enter the keyword \"none\"
17803 at the prompt below) the agent will use stdout and stderr instead.
17804 (Note: This value can be over-ridden using command line options.)
17805 Providing the --with-logfile=\"path\" parameter to ./configure
17806 will avoid this prompt.
17808 Location to write logfile ($defaultlog): $ac_c"
17810 if test "$tmpinput" = "" -a "$defaultlog" != ""; then
17811 tmpinput
="$defaultlog"
17813 eval LOGFILE
=\"$tmpinput\"
17815 tmpinput
="$defaultlog"
17816 eval LOGFILE
=\"$tmpinput\"
17820 eval ac_cv_user_prompt_LOGFILE
=\
$LOGFILE
17821 echo $ac_n "setting $MSG_CHECK to... $ac_c" >&6
17825 echo "$ac_t""$ac_cv_user_prompt_LOGFILE" 1>&6
17826 if test "$ac_cv_user_prompt_LOGFILE" != "none"; then
17827 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
17828 cat >> confdefs.h
<<EOF
17829 #define LOGFILE "$ac_cv_user_prompt_LOGFILE"
17833 cat >> confdefs.h
<<EOF
17834 #define LOGFILE $ac_cv_user_prompt_LOGFILE
17841 if test -d /var
; then
17842 defaultstore
="/var/net-snmp"
17843 ucddefaultstore
="/var/ucd-snmp"
17845 defaultstore
="/etc/net-snmp"
17846 ucddefaultstore
="/etc/ucd-snmp"
17852 *** snmpd persistent storage location:
17854 Enter a directory for the SNMP library to store persistent
17855 data in the form of a configuration file. This default location is
17856 different than the old default location (which was for ucd-snmp). If
17857 you stay with the new path, I'll ask you in a second if you wish to
17858 copy your files over to the new location (once only). If you pick
17859 some other path than the default, you'll have to copy them yourself.
17860 There is nothing wrong with picking the old path ($ucddefaultstore) if
17862 Providing the --with-persistent-directory=\"path\" parameter to
17863 ./configure will avoid this prompt.
17865 Location to write persistent information" | tail -1`
17866 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17867 echo "configure:17868: checking $MSG_CHECK" >&5
17868 if eval "test \"`echo '$''{'ac_cv_user_prompt_PERSISTENT_DIRECTORY'+set}'`\" = set"; then
17869 echo $ac_n "(cached) $ac_c" 1>&6
17873 if test "x$defaults" = "xno"; then
17876 *** snmpd persistent storage location:
17878 Enter a directory for the SNMP library to store persistent
17879 data in the form of a configuration file. This default location is
17880 different than the old default location (which was for ucd-snmp). If
17881 you stay with the new path, I'll ask you in a second if you wish to
17882 copy your files over to the new location (once only). If you pick
17883 some other path than the default, you'll have to copy them yourself.
17884 There is nothing wrong with picking the old path ($ucddefaultstore) if
17886 Providing the --with-persistent-directory=\"path\" parameter to
17887 ./configure will avoid this prompt.
17889 Location to write persistent information ($defaultstore): $ac_c"
17891 if test "$tmpinput" = "" -a "$defaultstore" != ""; then
17892 tmpinput
="$defaultstore"
17894 eval PERSISTENT_DIRECTORY
=\"$tmpinput\"
17896 tmpinput
="$defaultstore"
17897 eval PERSISTENT_DIRECTORY
=\"$tmpinput\"
17901 eval ac_cv_user_prompt_PERSISTENT_DIRECTORY
=\
$PERSISTENT_DIRECTORY
17902 echo $ac_n "setting $MSG_CHECK to... $ac_c" >&6
17906 echo "$ac_t""$ac_cv_user_prompt_PERSISTENT_DIRECTORY" 1>&6
17907 if test "$ac_cv_user_prompt_PERSISTENT_DIRECTORY" != "none"; then
17908 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
17909 cat >> confdefs.h
<<EOF
17910 #define PERSISTENT_DIRECTORY "$ac_cv_user_prompt_PERSISTENT_DIRECTORY"
17914 cat >> confdefs.h
<<EOF
17915 #define PERSISTENT_DIRECTORY $ac_cv_user_prompt_PERSISTENT_DIRECTORY
17922 PERSISTENT_DIRECTORY
=$ac_cv_user_prompt_PERSISTENT_DIRECTORY
17924 UCDPERSISTENT_DIRECTORY
=$ucddefaultstore
17927 if test $PERSISTENT_DIRECTORY = "$defaultstore" -a -d "$ucddefaultstore" -a ! -d "$defaultstore" ; then
17928 echo $ac_n "checking If we should copy the old persistent directory""... $ac_c" 1>&6
17929 echo "configure:17930: checking If we should copy the old persistent directory" >&5
17930 if eval "test \"`echo '$''{'ac_cv_user_prompt_COPY_PERSISTENT_FILES'+set}'`\" = set"; then
17931 echo $ac_n "(cached) $ac_c" 1>&6
17935 if test "x$defaults" = "xno"; then
17938 *** Copying old ucd-snmp persistent files to net-snmp persistent directory:
17940 Would you like to copy the older ucd-snmp persistent files
17941 into your new net-snmp persistent file path? This will functionally
17942 save all your ucd-snmp data and let it be used within the net-snmp
17943 tools. This will only be done once when you run make install. If you
17944 wish to do this, enter "yes" at the prompt.
17945 Providing the --with-copy-persistent-files=\"no\" (or \"yes\")
17946 parameters to ./configure will avoid this prompt.
17948 Copy ucd-snmp data into the net-snmp data directory ("yes"): $ac_c"
17950 if test "$tmpinput" = "" -a ""yes"" != ""; then
17953 eval ac_cv_user_prompt_COPY_PERSISTENT_FILES
=\"$tmpinput\"
17956 eval ac_cv_user_prompt_COPY_PERSISTENT_FILES
=\"$tmpinput\"
17963 echo "$ac_t""$ac_cv_user_prompt_COPY_PERSISTENT_FILES" 1>&6
17965 ac_cv_user_prompt_COPY_PERSISTENT_FILES
="no"
17967 COPY_PERSISTENT_FILES
="$ac_cv_user_prompt_COPY_PERSISTENT_FILES"
17973 cat > confcache
<<\EOF
17974 # This file is a shell script that caches the results of configure
17975 # tests run on this system so they can be shared between configure
17976 # scripts and configure runs. It is not useful on other systems.
17977 # If it contains results you don't want to keep, you may remove or edit it.
17979 # By default, configure uses ./config.cache as the cache file,
17980 # creating it if it does not exist already. You can give configure
17981 # the --cache-file=FILE option to use a different cache file; that is
17982 # what configure does when it calls configure scripts in
17983 # subdirectories, so they share the cache.
17984 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17985 # config.status only pays attention to the cache file if you give it the
17986 # --recheck option to rerun configure.
17989 # The following way of writing the cache mishandles newlines in values,
17990 # but we know of no workaround that is simple, portable, and efficient.
17991 # So, don't put newlines in cache variables' values.
17992 # Ultrix sh set writes to stderr and can't be redirected directly,
17993 # and sets the high bit in the cache file unless we assign to the vars.
17995 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17997 # `set' does not quote correctly, so add quotes (double-quote substitution
17998 # turns \\\\ into \\, and sed turns \\ into \).
18000 -e "s/'/'\\\\''/g" \
18001 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18004 # `set' quotes correctly as required by POSIX, so do not add quotes.
18005 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18008 if cmp -s $cache_file confcache
; then
18011 if test -w $cache_file; then
18012 echo "updating cache $cache_file"
18013 cat confcache
> $cache_file
18015 echo "not updating unwritable cache $cache_file"
18020 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18022 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18023 # Let make expand exec_prefix.
18024 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18026 # Any assignment to VPATH causes Sun make to only execute
18027 # the first set of double-colon rules, so remove it if not needed.
18028 # If there is a colon in the path, we need to keep it.
18029 if test "x$srcdir" = x.
; then
18030 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
18033 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18035 DEFS
=-DHAVE_CONFIG_H
18037 # Without the "./", some shells look in PATH for config.status.
18038 : ${CONFIG_STATUS=./config.status}
18040 echo creating
$CONFIG_STATUS
18041 rm -f $CONFIG_STATUS
18042 cat > $CONFIG_STATUS <<EOF
18044 # Generated automatically by configure.
18045 # Run this file to recreate the current configuration.
18046 # This directory was configured as follows,
18047 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18049 # $0 $ac_configure_args
18051 # Compiler output produced by configure, useful for debugging
18052 # configure, is in ./config.log if it exists.
18054 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18057 case "\$ac_option" in
18058 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18059 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18060 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18061 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18062 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18064 -help | --help | --hel | --he | --h)
18065 echo "\$ac_cs_usage"; exit 0 ;;
18066 *) echo "\$ac_cs_usage"; exit 1 ;;
18070 ac_given_srcdir=$srcdir
18071 ac_given_INSTALL="$INSTALL"
18073 trap 'rm -fr `echo "
18074 Makefile:Makefile.top:Makefile.in:Makefile.rules
18075 snmplib/Makefile:Makefile.top:snmplib/Makefile.in:Makefile.rules:snmplib/Makefile.depend
18076 apps/Makefile:Makefile.top:apps/Makefile.in:Makefile.rules:apps/Makefile.depend
18077 apps/snmpnetstat/Makefile:Makefile.top:apps/snmpnetstat/Makefile.in:Makefile.rules:apps/snmpnetstat/Makefile.depend
18078 agent/Makefile:Makefile.top:agent/Makefile.in:Makefile.rules:agent/Makefile.depend
18079 agent/helpers/Makefile:Makefile.top:agent/helpers/Makefile.in:Makefile.rules:agent/helpers/Makefile.depend
18080 agent/mibgroup/Makefile:Makefile.top:agent/mibgroup/Makefile.in:Makefile.rules:agent/mibgroup/Makefile.depend
18081 local/Makefile:Makefile.top:local/Makefile.in:Makefile.rules
18082 testing/Makefile:Makefile.top:testing/Makefile.in
18083 man/Makefile:Makefile.top:man/Makefile.in:Makefile.rules
18084 mibs/Makefile:Makefile.top:mibs/Makefile.in:Makefile.rules
18085 net-snmp-config:net-snmp-config.in
18086 include/net-snmp/net-snmp-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18088 cat >> $CONFIG_STATUS <<EOF
18090 # Protect against being on the right side of a sed subst in config.status.
18091 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18092 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18096 s%@CFLAGS@%$CFLAGS%g
18097 s%@CPPFLAGS@%$CPPFLAGS%g
18098 s%@CXXFLAGS@%$CXXFLAGS%g
18099 s%@FFLAGS@%$FFLAGS%g
18101 s%@LDFLAGS@%$LDFLAGS%g
18103 s%@exec_prefix@%$exec_prefix%g
18104 s%@prefix@%$prefix%g
18105 s%@program_transform_name@%$program_transform_name%g
18106 s%@bindir@%$bindir%g
18107 s%@sbindir@%$sbindir%g
18108 s%@libexecdir@%$libexecdir%g
18109 s%@datadir@%$datadir%g
18110 s%@sysconfdir@%$sysconfdir%g
18111 s%@sharedstatedir@%$sharedstatedir%g
18112 s%@localstatedir@%$localstatedir%g
18113 s%@libdir@%$libdir%g
18114 s%@includedir@%$includedir%g
18115 s%@oldincludedir@%$oldincludedir%g
18116 s%@infodir@%$infodir%g
18117 s%@mandir@%$mandir%g
18118 s%@CONFIGURE_OPTIONS@%$CONFIGURE_OPTIONS%g
18119 s%@LIBTOOLFLAGS@%$LIBTOOLFLAGS%g
18120 s%@HAVE_DMALLOC_H@%$HAVE_DMALLOC_H%g
18121 s%@WRAPLIBS@%$WRAPLIBS%g
18122 s%@installucdheaders@%$installucdheaders%g
18123 s%@installucdlibs@%$installucdlibs%g
18126 s%@EXEEXT@%$EXEEXT%g
18128 s%@host_alias@%$host_alias%g
18129 s%@host_cpu@%$host_cpu%g
18130 s%@host_vendor@%$host_vendor%g
18131 s%@host_os@%$host_os%g
18133 s%@build_alias@%$build_alias%g
18134 s%@build_cpu@%$build_cpu%g
18135 s%@build_vendor@%$build_vendor%g
18136 s%@build_os@%$build_os%g
18138 s%@OBJEXT@%$OBJEXT%g
18140 s%@RANLIB@%$RANLIB%g
18142 s%@DLLTOOL@%$DLLTOOL%g
18144 s%@OBJDUMP@%$OBJDUMP%g
18145 s%@LIBTOOL@%$LIBTOOL%g
18146 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18147 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18148 s%@INSTALL_DATA@%$INSTALL_DATA%g
18149 s%@SET_MAKE@%$SET_MAKE%g
18150 s%@PSPROG@%$PSPROG%g
18151 s%@PERLPROG@%$PERLPROG%g
18152 s%@WHOAMI@%$WHOAMI%g
18154 s%@AUTOCONF@%$AUTOCONF%g
18155 s%@AUTOHEADER@%$AUTOHEADER%g
18156 s%@UNAMEPROG@%$UNAMEPROG%g
18157 s%@VERSION@%$VERSION%g
18158 s%@RELEASEVERSION@%$RELEASEVERSION%g
18159 s%@DEVFLAGS@%$DEVFLAGS%g
18160 s%@target@%$target%g
18161 s%@target_alias@%$target_alias%g
18162 s%@target_cpu@%$target_cpu%g
18163 s%@target_vendor@%$target_vendor%g
18164 s%@target_os@%$target_os%g
18165 s%@CCPATH@%$CCPATH%g
18166 s%@EXTRACPPFLAGS@%$EXTRACPPFLAGS%g
18167 s%@SNMPCONFPATH@%$SNMPCONFPATH%g
18168 s%@transport_hdr_list@%$transport_hdr_list%g
18169 s%@transport_src_list@%$transport_src_list%g
18170 s%@transport_obj_list@%$transport_obj_list%g
18171 s%@transport_lobj_list@%$transport_lobj_list%g
18172 s%@security_src_list@%$security_src_list%g
18173 s%@security_obj_list@%$security_obj_list%g
18174 s%@security_lobj_list@%$security_lobj_list%g
18175 s%@security_hdr_list@%$security_hdr_list%g
18176 s%@MODULE_LIST@%$MODULE_LIST%g
18177 s%@module_list_c@%$module_list_c%g
18178 s%@module_list_h@%$module_list_h%g
18179 s%@module_list_o@%$module_list_o%g
18180 s%@module_list_lo@%$module_list_lo%g
18181 s%@mibgroup_list_o@%$mibgroup_list_o%g
18182 s%@mibgroup_list_lo@%$mibgroup_list_lo%g
18183 s%@module_list@%$module_list%g
18184 s%@default_mibs_install@%$default_mibs_install%g
18185 s%@PERLTARGS@%$PERLTARGS%g
18186 s%@PERLINSTALLTARGS@%$PERLINSTALLTARGS%g
18187 s%@PERLARGS@%$PERLARGS%g
18188 s%@EMBEDPERLINSTALL@%$EMBEDPERLINSTALL%g
18189 s%@LPSTAT_PATH@%$LPSTAT_PATH%g
18191 s%@ALLOCA@%$ALLOCA%g
18192 s%@LIBOBJS@%$LIBOBJS%g
18193 s%@AGENTLIBS@%$AGENTLIBS%g
18194 s%@OTHERAGENTLIBOBJS@%$OTHERAGENTLIBOBJS%g
18195 s%@OTHERAGENTLIBLOBJS@%$OTHERAGENTLIBLOBJS%g
18196 s%@PERSISTENT_DIRECTORY@%$PERSISTENT_DIRECTORY%g
18197 s%@UCDPERSISTENT_DIRECTORY@%$UCDPERSISTENT_DIRECTORY%g
18198 s%@COPY_PERSISTENT_FILES@%$COPY_PERSISTENT_FILES%g
18199 s%@DLLIBS@%$DLLIBS%g
18204 cat >> $CONFIG_STATUS <<\EOF
18206 # Split the substitutions into bite-sized pieces for seds with
18207 # small command number limits, like on Digital OSF/1 and HP-UX.
18208 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
18209 ac_file
=1 # Number of current file.
18210 ac_beg
=1 # First line for current file.
18211 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
18214 while $ac_more_lines; do
18215 if test $ac_beg -gt 1; then
18216 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
18218 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
18220 if test ! -s conftest.s
$ac_file; then
18221 ac_more_lines
=false
18222 rm -f conftest.s
$ac_file
18224 if test -z "$ac_sed_cmds"; then
18225 ac_sed_cmds
="sed -f conftest.s$ac_file"
18227 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
18229 ac_file
=`expr $ac_file + 1`
18231 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
18234 if test -z "$ac_sed_cmds"; then
18239 cat >> $CONFIG_STATUS <<EOF
18241 CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.top:Makefile.in:Makefile.rules
18242 snmplib/Makefile:Makefile.top:snmplib/Makefile.in:Makefile.rules:snmplib/Makefile.depend
18243 apps/Makefile:Makefile.top:apps/Makefile.in:Makefile.rules:apps/Makefile.depend
18244 apps/snmpnetstat/Makefile:Makefile.top:apps/snmpnetstat/Makefile.in:Makefile.rules:apps/snmpnetstat/Makefile.depend
18245 agent/Makefile:Makefile.top:agent/Makefile.in:Makefile.rules:agent/Makefile.depend
18246 agent/helpers/Makefile:Makefile.top:agent/helpers/Makefile.in:Makefile.rules:agent/helpers/Makefile.depend
18247 agent/mibgroup/Makefile:Makefile.top:agent/mibgroup/Makefile.in:Makefile.rules:agent/mibgroup/Makefile.depend
18248 local/Makefile:Makefile.top:local/Makefile.in:Makefile.rules
18249 testing/Makefile:Makefile.top:testing/Makefile.in
18250 man/Makefile:Makefile.top:man/Makefile.in:Makefile.rules
18251 mibs/Makefile:Makefile.top:mibs/Makefile.in:Makefile.rules
18252 net-snmp-config:net-snmp-config.in
18255 cat >> $CONFIG_STATUS <<\EOF
18256 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
18257 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18259 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
18260 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
18261 *) ac_file_in
="${ac_file}.in" ;;
18264 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18266 # Remove last slash and all that follows it. Not all systems have dirname.
18267 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18268 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
18269 # The file is in a subdirectory.
18270 test ! -d "$ac_dir" && mkdir
"$ac_dir"
18271 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
18272 # A "../" for each directory in $ac_dir_suffix.
18273 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18275 ac_dir_suffix
= ac_dots
=
18278 case "$ac_given_srcdir" in
18280 if test -z "$ac_dots"; then top_srcdir
=.
18281 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18282 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
18283 *) # Relative path.
18284 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18285 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
18288 case "$ac_given_INSTALL" in
18289 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
18290 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
18293 echo creating
"$ac_file"
18295 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18297 *Makefile
*) ac_comsub
="1i\\
18298 # $configure_input" ;;
18302 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18304 s%@configure_input@%$configure_input%g
18305 s%@srcdir@%$srcdir%g
18306 s%@top_srcdir@%$top_srcdir%g
18307 s%@INSTALL@%$INSTALL%g
18308 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
18312 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18313 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18315 # ac_d sets the value in "#define NAME VALUE" lines.
18316 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18317 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
18320 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18321 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18322 ac_uB
='\([ ]\)%\1#\2define\3'
18325 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18326 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18327 ac_eB
='$%\1#\2define\3'
18331 if test "${CONFIG_HEADERS+set}" != set; then
18333 cat >> $CONFIG_STATUS <<EOF
18334 CONFIG_HEADERS="include/net-snmp/net-snmp-config.h"
18336 cat >> $CONFIG_STATUS <<\EOF
18338 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
18339 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18341 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
18342 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
18343 *) ac_file_in
="${ac_file}.in" ;;
18346 echo creating
$ac_file
18348 rm -f conftest.frag conftest.
in conftest.out
18349 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18350 cat $ac_file_inputs > conftest.
in
18354 # Transform confdefs.h into a sed script conftest.vals that substitutes
18355 # the proper values into config.h.in to produce config.h. And first:
18356 # Protect against being on the right side of a sed subst in config.status.
18357 # Protect against being in an unquoted here document in config.status.
18358 rm -f conftest.vals
18359 cat > conftest.hdr
<<\EOF
18362 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18366 sed -n -f conftest.hdr confdefs.h > conftest.vals
18369 # This sed command replaces #undef with comments. This is necessary, for
18370 # example, in the case of _POSIX_SOURCE, which is predefined and required
18371 # on some systems where configure will not decide to define it.
18372 cat >> conftest.vals <<\EOF
18373 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18376 # Break up conftest.vals because some shells have a limit on
18377 # the size of here documents, and old seds have small limits too.
18379 rm -f conftest.tail
18382 ac_lines=`grep -c . conftest.vals
`
18383 # grep -c gives empty output for an empty file on some AIX systems.
18384 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18385 # Write a limited-size here document to conftest.frag.
18386 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18387 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18389 sed -f conftest.frag conftest.in > conftest.out
18391 mv conftest.out conftest.in
18392 ' >> $CONFIG_STATUS
18393 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18394 rm -f conftest.vals
18395 mv conftest.tail conftest.vals
18397 rm -f conftest.vals
18399 cat >> $CONFIG_STATUS <<\EOF
18400 rm -f conftest.frag conftest.h
18401 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18402 cat conftest.in >> conftest.h
18404 if cmp -s $ac_file conftest.h 2>/dev/null; then
18405 echo "$ac_file is unchanged"
18408 # Remove last slash and all that follows it. Not all systems have dirname.
18409 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
18410 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18411 # The file is in a subdirectory.
18412 test ! -d "$ac_dir" && mkdir "$ac_dir"
18415 mv conftest.h $ac_file
18420 cat >> $CONFIG_STATUS <<EOF
18423 cat >> $CONFIG_STATUS <<\EOF
18425 echo timestamp > stamp-h
18426 chmod 755 net-snmp-config
18430 chmod +x $CONFIG_STATUS
18431 rm -fr confdefs* $ac_clean_files
18432 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18437 echo "---------------------------------------------------------"
18438 echo " Net-SNMP configuration summary:"
18439 echo "---------------------------------------------------------"
18441 cat configure-summary
18443 echo "---------------------------------------------------------"