usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src / router / snmp / configure.mnttab
blobbefefcee804516c5c0eb20c8f15cf9ab73f8f3e0
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
16 Compiler Options:
17 --with-cc=CC use CC to compile (default=gcc)."
18 ac_help="$ac_help
19 --with-ar=AR use AR as the archiver."
20 ac_help="$ac_help
21 --with-endianness=big|little define endianness of target platform when
22 cross-compiling."
23 ac_help="$ac_help
24 --with-cflags=CFLAGS use CFLAGS as compile time arguments."
25 ac_help="$ac_help
26 --with-ldflags=LDFLAGS use LDFLAGS as link time arguments to ld."
27 ac_help="$ac_help
28 --with-libs=LIBS use LIBS as link time arguments to ld."
29 ac_help="$ac_help
30 --enable-silent-libtool Pass --silent to libtool."
31 ac_help="$ac_help
32 --enable-mini-agent Build a minimal agent."
33 ac_help="$ac_help
34 --enable-ipv6 Generate IPv6 ready version."
35 ac_help="$ac_help
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."
42 ac_help="$ac_help
43 --enable-developer Turns on super-duper-extra-compile-warnings
44 when using gcc."
45 ac_help="$ac_help
46 --with-dmalloc=PATH Use dmalloc library (www.dmalloc.com)"
47 ac_help="$ac_help
48 --with-efence Look for and use libefence (malloc)."
49 ac_help="$ac_help
50 --with-rsaref=PATH Look for librsaref in PATH/lib."
51 ac_help="$ac_help
52 --with-openssl=PATH Look for openssl in PATH/lib."
53 ac_help="$ac_help
54 --disable-privacy Don't compile in support for privacy."
55 ac_help="$ac_help
56 --enable-internal-md5 Use the internal MD5 support."
57 ac_help="$ac_help
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
64 (in a legal way)"
65 ac_help="$ac_help
66 --with-mibdirs=\"dir1:dir2:\" Default directories to look for mibs.
67 (Default: \$HOME/.snmp/mibs:DATADIR/snmp/mibs)"
68 ac_help="$ac_help
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
74 configured with)"
75 ac_help="$ac_help
76 --with-mibfiles=\"file1:file2\" Default mib files to load.
77 (Default: none. uses IDs above instead.)"
78 ac_help="$ac_help
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."
83 ac_help="$ac_help
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."
89 ac_help="$ac_help
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."
95 ac_help="$ac_help
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."
101 ac_help="$ac_help
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."
107 ac_help="$ac_help
108 --with-persistent-directory=\"directory\"
109 Default directory for persistent data storage."
110 ac_help="$ac_help
111 --with-copy-persistent-files=\"no\" Don't copy persistent files
112 (or use \"yes\" to copy them).
113 (Default: yes)"
114 ac_help="$ac_help
115 --with-default-snmp-version=\"3\" Default version of SNMP to use.
116 (Default: 3)
117 Legal values: 1, 2 (for SNMPv2c) or 3."
118 ac_help="$ac_help
119 --with-sys-contact=\"who@where\" Default system contact.
120 (Default: LOGIN@DOMAINNAME)"
121 ac_help="$ac_help
122 --with-sys-location=\"location\" Default system location.
123 (Default: Unknown)"
124 ac_help="$ac_help
125 --with-logfile=\"location\" Default log file location for snmpd."
126 ac_help="$ac_help
127 --with-transports=\"t1 t2 ...\" Compile in the given SNMP transport
128 modules (space separated list)."
129 ac_help="$ac_help
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
139 FreeBSD.
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
143 FreeBSD.
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
151 of snmp_sessions.
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.
159 ac_help="$ac_help
161 ac_help="$ac_help
163 ac_help="$ac_help
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
173 ac_help="$ac_help
174 --with-mib-modules=\"item1 ...\" Compile with additional mib modules
175 (Space separated list)."
176 ac_help="$ac_help
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
185 agentx (see below)
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."
216 ac_help="$ac_help
217 Enterprise OIDs: (warning: this should be used with caution.)
219 --with-enterprise-oid The enterprise number assigned to the
220 vendor by IANA. See
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")"
225 ac_help="$ac_help
227 --with-enterprise-sysoid The base OID for the sysObjectID
228 of the system group
229 (default .1.3.6.1.4.1.8072.3.2... =
230 "netSnmpAgentOIDs...")"
231 ac_help="$ac_help
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")"
236 ac_help="$ac_help
238 ac_help="$ac_help
240 ac_help="$ac_help
242 Perl:
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
246 Makefile.PL script."
247 ac_help="$ac_help
249 --enable-embedded-perl Embed perl in the SNMP agent.
250 [forces --with-perl-modules as well.]"
251 ac_help="$ac_help
253 Miscellaneous:
254 --with-defaults Use defaults for prompted values."
255 ac_help="$ac_help
256 --enable-ucd-snmp-compatibility Install ucd-snmp look-alike headers and libs."
257 ac_help="$ac_help
258 --enable-shared[=PKGS] build shared libraries [default=yes]"
259 ac_help="$ac_help
260 --enable-static[=PKGS] build static libraries [default=yes]"
261 ac_help="$ac_help
262 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
263 ac_help="$ac_help
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`}
270 case X$UNAME in
271 *-DOS) lt_cv_sys_path_separator=';' ;;
272 *) lt_cv_sys_path_separator=':' ;;
273 esac
274 PATH_SEPARATOR=$lt_cv_sys_path_separator
278 # Check that we are running under the correct shell.
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 case X$ECHO in
282 X*--fallback-echo)
283 # Remove one level of quotation (which was required for Make).
284 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
286 esac
288 echo=${ECHO-echo}
289 if test "X$1" = X--no-reexec; then
290 # Discard the --no-reexec flag, and continue.
291 shift
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!
298 else
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
305 shift
306 cat <<EOF
309 exit 0
312 # The HP-UX ksh and POSIX shell print the target directory to stdout
313 # if CDPATH is set.
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
324 then
325 break
327 done
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
334 else
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
347 echo="$dir/echo"
348 break
350 done
351 IFS="$save_ifs"
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.
359 echo='print -r'
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
366 export CONFIG_SHELL
367 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
368 else
369 # Try using printf.
370 echo='printf %s\n'
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
374 # Cool, printf works
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
381 export CONFIG_SHELL
382 SHELL="$CONFIG_SHELL"
383 export 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"
390 else
391 # maybe with a smaller string...
392 prev=:
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
396 then
397 break
399 prev="$cmd"
400 done
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+"$@"}
406 else
407 # Oops. We lost completely, so just stick with echo.
408 echo=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.
418 ECHO=$echo
419 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
420 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
424 ac_help="$ac_help
425 --disable-libtool-lock avoid locking (might break parallel builds)"
426 ac_help="$ac_help
427 --with-pic try to use only PIC/non-PIC objects [default=use both]"
428 ac_help="$ac_help
429 --with-libwrap[=LIBPATH] Compile in libwrap (tcp_wrappers) support."
430 ac_help="$ac_help
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.
436 build=NONE
437 cache_file=./config.cache
438 exec_prefix=NONE
439 host=NONE
440 no_create=
441 nonopt=NONE
442 no_recursion=
443 prefix=NONE
444 program_prefix=NONE
445 program_suffix=NONE
446 program_transform_name=s,x,x,
447 silent=
448 site=
449 srcdir=
450 target=NONE
451 verbose=
452 x_includes=NONE
453 x_libraries=NONE
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.
468 subdirs=
469 MFLAGS= MAKEFLAGS=
470 SHELL=${CONFIG_SHELL-/bin/sh}
471 # Maximum number of lines to put in a shell here document.
472 ac_max_here_lines=12
474 ac_prev=
475 for ac_option
478 # If the previous option needs an argument, assign it.
479 if test -n "$ac_prev"; then
480 eval "$ac_prev=\$ac_option"
481 ac_prev=
482 continue
485 case "$ac_option" in
486 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
487 *) ac_optarg= ;;
488 esac
490 # Accept the important Cygnus configure options, so we can diagnose typos.
492 case "$ac_option" in
494 -bindir | --bindir | --bindi | --bind | --bin | --bi)
495 ac_prev=bindir ;;
496 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
497 bindir="$ac_optarg" ;;
499 -build | --build | --buil | --bui | --bu)
500 ac_prev=build ;;
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)
512 ac_prev=datadir ;;
513 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
514 | --da=*)
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'`
533 case "$ac_option" in
534 *=*) ;;
535 *) ac_optarg=yes ;;
536 esac
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.
550 with_gas=yes ;;
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.
555 cat << EOF
556 Usage: configure [options] [host]
557 Options: [defaults in brackets after descriptions]
558 Configuration:
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
566 [$ac_default_prefix]
567 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
568 [same as prefix]
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
573 [PREFIX/share]
574 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
575 --sharedstatedir=DIR modifiable architecture-independent data in DIR
576 [PREFIX/com]
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
589 cat << EOF
590 Host type:
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"
605 exit 0 ;;
607 -host | --host | --hos | --ho)
608 ac_prev=host ;;
609 -host=* | --host=* | --hos=* | --ho=*)
610 host="$ac_optarg" ;;
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)
620 ac_prev=infodir ;;
621 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
622 infodir="$ac_optarg" ;;
624 -libdir | --libdir | --libdi | --libd)
625 ac_prev=libdir ;;
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)
646 ac_prev=mandir ;;
647 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648 mandir="$ac_optarg" ;;
650 -nfp | --nfp | --nf)
651 # Obsolete; use --without-fp.
652 with_fp=no ;;
654 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
655 | --no-cr | --no-c)
656 no_create=yes ;;
658 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
659 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
660 no_recursion=yes ;;
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)
672 ac_prev=prefix ;;
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)
709 silent=yes ;;
711 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
712 ac_prev=sbindir ;;
713 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
714 | --sbi=* | --sb=*)
715 sbindir="$ac_optarg" ;;
717 -sharedstatedir | --sharedstatedir | --sharedstatedi \
718 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
719 | --sharedst | --shareds | --shared | --share | --shar \
720 | --sha | --sh)
721 ac_prev=sharedstatedir ;;
722 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
723 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
724 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
725 | --sha=* | --sh=*)
726 sharedstatedir="$ac_optarg" ;;
728 -site | --site | --sit)
729 ac_prev=site ;;
730 -site=* | --site=* | --sit=*)
731 site="$ac_optarg" ;;
733 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
734 ac_prev=srcdir ;;
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)
746 ac_prev=target ;;
747 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
748 target="$ac_optarg" ;;
750 -v | -verbose | --verbose | --verbos | --verbo | --verb)
751 verbose=yes ;;
753 -version | --version | --versio | --versi | --vers)
754 echo "configure generated by autoconf version 2.13"
755 exit 0 ;;
757 -with-* | --with-*)
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'`
764 case "$ac_option" in
765 *=*) ;;
766 *) ac_optarg=yes ;;
767 esac
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" ;;
779 --x)
780 # Obsolete; use --with-x.
781 with_x=yes ;;
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; }
807 nonopt="$ac_option"
810 esac
811 done
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:
820 # 0 standard input
821 # 1 file creation
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
828 exec 6>/dev/null
829 else
830 exec 6>&1
832 exec 5>./config.log
834 echo "\
835 This file contains any messages produced by compilers while
836 running configure, to aid debugging if configure makes a mistake.
837 " 1>&5
839 # Strip out --no-create and --no-recursion so they do not pile up.
840 # Also quote any args containing shell metacharacters.
841 ac_configure_args=
842 for ac_arg
844 case "$ac_arg" in
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" ;;
852 esac
853 done
855 # NLS nuisances.
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.
868 echo > confdefs.h
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.
878 ac_prog=$0
879 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
880 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
881 srcdir=$ac_confdir
882 if test ! -r $srcdir/$ac_unique_file; then
883 srcdir=..
885 else
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; }
891 else
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"
901 else
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"
908 . "$ac_site_file"
910 done
912 if test -r "$cache_file"; then
913 echo "loading cache $cache_file"
914 . $cache_file
915 else
916 echo "creating cache $cache_file"
917 > $cache_file
920 ac_ext=c
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
927 ac_exeext=
928 ac_objext=o
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
932 ac_n= ac_c='
933 ' ac_t=' '
934 else
935 ac_n=-n ac_c= ac_t=
937 else
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
956 withval="$with_cc"
957 CC=$with_cc;export CC
961 # Check whether --with-ar or --without-ar was given.
962 if test "${with_ar+set}" = set; then
963 withval="$with_ar"
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
994 withval="$with_libs"
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"
1010 mini_agent="yes"
1011 else
1012 mini_agent="no"
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
1021 #define INET6 1
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"
1041 developer=yes
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"
1090 tryrsaref=no
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
1095 tryrsaref=yes
1096 elif test "x$withval" = "xno"; then
1097 tryrsaref=no
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"
1109 tryrsaref=yes
1114 tryopenssl=defaultyes
1115 askedopenssl=no
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
1120 tryopenssl=yes
1121 askedopenssl=yes
1122 elif test "x$withval" = "xno"; then
1123 tryopenssl=no
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"
1135 tryopenssl=yes
1136 askedopenssl=yes
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"
1151 tryopenssl=yes
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"
1229 else
1230 with_res_locks="no"
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
1378 else
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
1409 else
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
1440 else
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"
1463 install_perl=yes
1464 if test "$withval" = yes; then
1465 PERLARGS=""
1466 else
1467 PERLARGS="$withval"
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"
1476 embed_perl="yes"
1477 else
1478 embed_perl="no"
1482 # Check whether --with-defaults or --without-defaults was given.
1483 if test "${with_defaults+set}" = set; then
1484 withval="$with_defaults"
1485 defaults="yes"
1486 else
1487 defaults="no"
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"
1494 ucd_compat=yes
1495 else
1496 ucd_compat=no
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
1546 else
1547 echo "$ac_t""yes" 1>&6
1548 if test "x$1" = "x"; then
1549 exec /bin/ksh $0
1550 else
1551 exec /bin/ksh $0 "$@"
1554 else
1555 echo "$ac_t""no" 1>&6
1558 if test "x$developer" != "xno" -a -f $srcdir/remove-files; then
1559 developer="yes"
1562 if test "x$developer" = "xyes"; then
1563 if test "${enable_shared+set}" != set; then
1564 enable_shared=no
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
1580 else
1581 if test -n "$CC"; then
1582 ac_cv_prog_CC="$CC" # Let the user override the test.
1583 else
1584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1585 ac_dummy="$PATH"
1586 for ac_dir in $ac_dummy; do
1587 test -z "$ac_dir" && ac_dir=.
1588 if test -f $ac_dir/$ac_word; then
1589 ac_cv_prog_CC="gcc"
1590 break
1592 done
1593 IFS="$ac_save_ifs"
1596 CC="$ac_cv_prog_CC"
1597 if test -n "$CC"; then
1598 echo "$ac_t""$CC" 1>&6
1599 else
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
1610 else
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1615 ac_prog_rejected=no
1616 ac_dummy="$PATH"
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
1622 continue
1624 ac_cv_prog_CC="cc"
1625 break
1627 done
1628 IFS="$ac_save_ifs"
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
1632 shift
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.
1637 shift
1638 set dummy "$ac_dir/$ac_word" "$@"
1639 shift
1640 ac_cv_prog_CC="$@"
1645 CC="$ac_cv_prog_CC"
1646 if test -n "$CC"; then
1647 echo "$ac_t""$CC" 1>&6
1648 else
1649 echo "$ac_t""no" 1>&6
1652 if test -z "$CC"; then
1653 case "`uname -s`" in
1654 *win32* | *WIN32*)
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
1661 else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664 else
1665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1666 ac_dummy="$PATH"
1667 for ac_dir in $ac_dummy; do
1668 test -z "$ac_dir" && ac_dir=.
1669 if test -f $ac_dir/$ac_word; then
1670 ac_cv_prog_CC="cl"
1671 break
1673 done
1674 IFS="$ac_save_ifs"
1677 CC="$ac_cv_prog_CC"
1678 if test -n "$CC"; then
1679 echo "$ac_t""$CC" 1>&6
1680 else
1681 echo "$ac_t""no" 1>&6
1684 esac
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
1692 ac_ext=c
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"
1704 main(){return(0);}
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
1711 else
1712 ac_cv_prog_cc_cross=yes
1714 else
1715 echo "configure: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1717 ac_cv_prog_cc_works=no
1719 rm -fr conftest*
1720 ac_ext=c
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
1740 else
1741 cat > conftest.c <<EOF
1742 #ifdef __GNUC__
1743 yes;
1744 #endif
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
1747 ac_cv_prog_gcc=yes
1748 else
1749 ac_cv_prog_gcc=no
1753 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1755 if test $ac_cv_prog_gcc = yes; then
1756 GCC=yes
1757 else
1758 GCC=
1761 ac_test_CFLAGS="${CFLAGS+set}"
1762 ac_save_CFLAGS="$CFLAGS"
1763 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
1768 else
1769 echo 'void f(){}' > conftest.c
1770 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1771 ac_cv_prog_cc_g=yes
1772 else
1773 ac_cv_prog_cc_g=no
1775 rm -f conftest*
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
1784 CFLAGS="-g -O2"
1785 else
1786 CFLAGS="-g"
1788 else
1789 if test "$GCC" = yes; then
1790 CFLAGS="-O2"
1791 else
1792 CFLAGS=
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
1800 CPP=
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
1805 else
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.
1808 CPP="${CC-cc} -E"
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"
1814 #include <assert.h>
1815 Syntax Error
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
1822 else
1823 echo "$ac_err" >&5
1824 echo "configure: failed program was:" >&5
1825 cat conftest.$ac_ext >&5
1826 rm -rf conftest*
1827 CPP="${CC-cc} -E -traditional-cpp"
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1831 #include <assert.h>
1832 Syntax Error
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
1839 else
1840 echo "$ac_err" >&5
1841 echo "configure: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
1843 rm -rf conftest*
1844 CPP="${CC-cc} -nologo -E"
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 #include <assert.h>
1849 Syntax Error
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
1856 else
1857 echo "$ac_err" >&5
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1860 rm -rf conftest*
1861 CPP=/lib/cpp
1863 rm -f conftest*
1865 rm -f conftest*
1867 rm -f conftest*
1868 ac_cv_prog_CPP="$CPP"
1870 CPP="$ac_cv_prog_CPP"
1871 else
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"
1881 #ifdef _AIX
1883 #endif
1886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1887 egrep "yes" >/dev/null 2>&1; then
1888 rm -rf conftest*
1889 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1890 #define _ALL_SOURCE 1
1893 else
1894 rm -rf conftest*
1895 echo "$ac_t""no" 1>&6
1897 rm -f conftest*
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
1904 else
1905 cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1909 int main() {
1911 #ifndef __CYGWIN__
1912 #define __CYGWIN__ __CYGWIN32__
1913 #endif
1914 return __CYGWIN__;
1915 ; return 0; }
1917 if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1918 rm -rf conftest*
1919 ac_cv_cygwin=yes
1920 else
1921 echo "configure: failed program was:" >&5
1922 cat conftest.$ac_ext >&5
1923 rm -rf conftest*
1924 ac_cv_cygwin=no
1926 rm -f conftest*
1927 rm -f conftest*
1930 echo "$ac_t""$ac_cv_cygwin" 1>&6
1931 CYGWIN=
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
1937 else
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1942 int main() {
1943 return __MINGW32__;
1944 ; return 0; }
1946 if { (eval echo configure:1947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1947 rm -rf conftest*
1948 ac_cv_mingw32=yes
1949 else
1950 echo "configure: failed program was:" >&5
1951 cat conftest.$ac_ext >&5
1952 rm -rf conftest*
1953 ac_cv_mingw32=no
1955 rm -f conftest*
1956 rm -f conftest*
1959 echo "$ac_t""$ac_cv_mingw32" 1>&6
1960 MINGW32=
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
1968 else
1969 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1970 ac_cv_exeext=.exe
1971 else
1972 rm -f conftest*
1973 echo 'int main () { return 0; }' > conftest.$ac_ext
1974 ac_cv_exeext=
1975 if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1976 for file in conftest.*; do
1977 case $file in
1978 *.c | *.o | *.obj) ;;
1979 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1980 esac
1981 done
1982 else
1983 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1985 rm -f conftest*
1986 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1990 EXEEXT=""
1991 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1992 echo "$ac_t""${ac_cv_exeext}" 1>&6
1993 ac_exeext=$EXEEXT
1998 ac_aux_dir=
1999 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2000 if test -f $ac_dir/install-sh; then
2001 ac_aux_dir=$ac_dir
2002 ac_install_sh="$ac_aux_dir/install-sh -c"
2003 break
2004 elif test -f $ac_dir/install.sh; then
2005 ac_aux_dir=$ac_dir
2006 ac_install_sh="$ac_aux_dir/install.sh -c"
2007 break
2009 done
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`}
2021 case X$UNAME in
2022 *-DOS) lt_cv_sys_path_separator=';' ;;
2023 *) lt_cv_sys_path_separator=':' ;;
2024 esac
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}
2032 case $enableval in
2033 yes) enable_shared=yes ;;
2034 no) enable_shared=no ;;
2036 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
2041 enable_shared=yes
2043 done
2044 IFS="$ac_save_ifs"
2046 esac
2047 else
2048 enable_shared=yes
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}
2055 case $enableval in
2056 yes) enable_static=yes ;;
2057 no) enable_static=no ;;
2059 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
2064 enable_static=yes
2066 done
2067 IFS="$ac_save_ifs"
2069 esac
2070 else
2071 enable_static=yes
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}
2078 case $enableval in
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
2089 done
2090 IFS="$ac_save_ifs"
2092 esac
2093 else
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
2106 host_alias=$host
2107 case "$host_alias" in
2108 NONE)
2109 case $nonopt in
2110 NONE)
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; }
2113 fi ;;
2114 *) host_alias=$nonopt ;;
2115 esac ;;
2116 esac
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
2127 build_alias=$build
2128 case "$build_alias" in
2129 NONE)
2130 case $nonopt in
2131 NONE) build_alias=$host_alias ;;
2132 *) build_alias=$nonopt ;;
2133 esac ;;
2134 esac
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
2146 else
2147 with_gnu_ld=no
2150 ac_prog=ld
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
2155 case $host in
2156 *-*-mingw*)
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` ;;
2161 esac
2162 case $ac_prog in
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%/%"`
2170 done
2171 test -z "$LD" && LD="$ac_prog"
2174 # If it fails, then pretend we aren't using GCC.
2175 ac_prog=ld
2178 # If it is relative, then search for the first ld in PATH.
2179 with_gnu_ld=unknown
2181 esac
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
2185 else
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
2191 else
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
2203 else
2204 test "$with_gnu_ld" != yes && break
2207 done
2208 IFS="$ac_save_ifs"
2209 else
2210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2214 LD="$lt_cv_path_LD"
2215 if test -n "$LD"; then
2216 echo "$ac_t""$LD" 1>&6
2217 else
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
2225 else
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
2229 else
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
2242 else
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
2254 else
2255 if test -n "$NM"; then
2256 # Let the user override the test.
2257 lt_cv_path_NM="$NM"
2258 else
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"
2270 break
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"
2273 break
2274 else
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
2279 done
2280 IFS="$ac_save_ifs"
2281 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2285 NM="$lt_cv_path_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
2292 else
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
2297 for as_dir in $PATH
2299 IFS=$as_save_IFS
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"
2306 done
2307 done
2308 done
2310 # Create a temporary directory, and hook for its removal unless debugging.
2311 $debug ||
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.
2318 : ${TMPDIR=/tmp}
2320 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
2321 test -n "$tmp" && test -d "$tmp"
2322 } ||
2324 tmp=$TMPDIR/sed$$-$RANDOM
2325 (umask 077 && mkdir $tmp)
2326 } ||
2328 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2329 { (exit 1); exit 1; }
2331 _max=0
2332 _count=0
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/xpg4/bin/sed; do
2336 test ! -f ${_sed} && break
2337 cat /dev/null > "$tmp/sed.in"
2338 _count=0
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}
2343 break
2345 while true; do
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
2356 _max=$_count
2357 lt_cv_path_SED=$_sed
2359 done
2360 done
2361 rm -rf "$tmp"
2365 if test "X$SED" != "X"; then
2366 lt_cv_path_SED=$SED
2367 else
2368 SED=$lt_cv_path_SED
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
2376 else
2377 rm -f conftestdata
2378 if ln -s X conftestdata 2>/dev/null
2379 then
2380 rm -f conftestdata
2381 ac_cv_prog_LN_S="ln -s"
2382 else
2383 ac_cv_prog_LN_S=ln
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
2389 else
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
2397 else
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.
2412 case $host_os in
2413 aix4* | aix5*)
2414 lt_cv_deplibs_check_method=pass_all
2417 beos*)
2418 lt_cv_deplibs_check_method=pass_all
2421 bsdi4*)
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'
2435 case "$host_os" in
2436 rhapsody* | darwin1.[012])
2437 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2439 *) # Darwin 1.3 on
2440 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2442 esac
2445 freebsd*)
2446 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2447 case $host_cpu in
2448 i*86 )
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.*`
2455 esac
2456 else
2457 lt_cv_deplibs_check_method=pass_all
2461 gnu*)
2462 lt_cv_deplibs_check_method=pass_all
2465 hpux10.20*|hpux11*)
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*)
2472 case $host_os in
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"
2478 case $LD in
2479 *-32|*"-32 ") libmagic=32-bit;;
2480 *-n32|*"-n32 ") libmagic=N32;;
2481 *-64|*"-64 ") libmagic=64-bit;;
2482 *) libmagic=never-match;;
2483 esac
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"
2487 esac
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.
2493 linux-gnu*)
2494 case $host_cpu in
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 )' ;;
2500 esac
2501 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2504 netbsd*)
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]+$'
2507 else
2508 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2512 newos6*)
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
2518 openbsd*)
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'
2523 else
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
2535 sco3.2v5*)
2536 lt_cv_deplibs_check_method=pass_all
2539 solaris*)
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
2550 motorola)
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*`
2554 ncr)
2555 lt_cv_deplibs_check_method=pass_all
2557 sequent)
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 )'
2561 sni)
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
2566 siemens)
2567 lt_cv_deplibs_check_method=pass_all
2569 esac
2571 esac
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
2583 else
2584 rm -f conftest*
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
2588 case $ac_file in
2589 *.c) ;;
2590 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2591 esac
2592 done
2593 else
2594 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2596 rm -f conftest*
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}-
2605 else
2606 ac_tool_prefix=
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
2617 else
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.
2638 case $host_os in
2639 aix*)
2640 symcode='[BCDT]'
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'"
2649 irix* | nonstopux*)
2650 symcode='[BCDEGRST]'
2652 osf*)
2653 symcode='[BCDEGQRST]'
2655 solaris* | sysv5*)
2656 symcode='[BDT]'
2658 sysv4)
2659 symcode='[DFNSTU]'
2661 esac
2663 # Handle CRLF in mingw tool chain
2664 opt_cr=
2665 case $host_os in
2666 mingw*)
2667 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2669 esac
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.
2683 pipe_works=no
2684 rm -f conftest*
2685 cat > conftest.$ac_ext <<EOF
2686 #ifdef __cplusplus
2687 extern "C" {
2688 #endif
2689 char nm_test_var;
2690 void nm_test_func(){}
2691 #ifdef __cplusplus
2693 #endif
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.
2699 nlist=conftest.nm
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"
2704 else
2705 rm -f "$nlist"T
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
2712 #ifdef __cplusplus
2713 extern "C" {
2714 #endif
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 *
2723 #else
2724 # define lt_ptr char *
2725 # define const
2726 #endif
2728 /* The mapping between symbol names and symbols. */
2729 const struct {
2730 const char *name;
2731 lt_ptr address;
2733 lt_preloaded_symbols[] =
2736 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2737 cat <<\EOF >> conftest.$ac_ext
2738 {0, (lt_ptr) 0}
2741 #ifdef __cplusplus
2743 #endif
2745 # Now try linking the two files.
2746 mv conftest.$ac_objext conftstm.$ac_objext
2747 save_LIBS="$LIBS"
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
2752 pipe_works=yes
2754 LIBS="$save_LIBS"
2755 CFLAGS="$save_CFLAGS"
2756 else
2757 echo "cannot find nm_test_func in $nlist" >&5
2759 else
2760 echo "cannot find nm_test_var in $nlist" >&5
2762 else
2763 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2765 else
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
2773 break
2774 else
2775 lt_cv_sys_global_symbol_pipe=
2777 done
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=
2785 else
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";
2790 then
2791 echo "$ac_t""failed" 1>&6
2792 else
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
2803 else
2804 cat > conftest.$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2807 #include <$ac_hdr>
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
2813 rm -rf conftest*
2814 eval "ac_cv_header_$ac_safe=yes"
2815 else
2816 echo "$ac_err" >&5
2817 echo "configure: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2819 rm -rf conftest*
2820 eval "ac_cv_header_$ac_safe=no"
2822 rm -f conftest*
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
2831 else
2832 echo "$ac_t""no" 1>&6
2834 done
2841 # Only perform the check for file, if the check method requires it
2842 case $deplibs_check_method in
2843 file_magic*)
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
2849 else
2850 case $MAGIC_CMD in
2852 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2854 ?:/*)
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
2867 "file_magic "*)
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
2873 else
2874 cat <<EOF 1>&2
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
2886 fi ;;
2887 esac
2889 break
2891 done
2892 IFS="$ac_save_ifs"
2893 MAGIC_CMD="$ac_save_MAGIC_CMD"
2895 esac
2898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2899 if test -n "$MAGIC_CMD"; then
2900 echo "$ac_t""$MAGIC_CMD" 1>&6
2901 else
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
2911 else
2912 case $MAGIC_CMD in
2914 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2916 ?:/*)
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
2929 "file_magic "*)
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
2935 else
2936 cat <<EOF 1>&2
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
2948 fi ;;
2949 esac
2951 break
2953 done
2954 IFS="$ac_save_ifs"
2955 MAGIC_CMD="$ac_save_MAGIC_CMD"
2957 esac
2960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2961 if test -n "$MAGIC_CMD"; then
2962 echo "$ac_t""$MAGIC_CMD" 1>&6
2963 else
2964 echo "$ac_t""no" 1>&6
2967 else
2968 MAGIC_CMD=:
2974 esac
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
2982 else
2983 if test -n "$RANLIB"; then
2984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2985 else
2986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2987 ac_dummy="$PATH"
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"
2992 break
2994 done
2995 IFS="$ac_save_ifs"
2998 RANLIB="$ac_cv_prog_RANLIB"
2999 if test -n "$RANLIB"; then
3000 echo "$ac_t""$RANLIB" 1>&6
3001 else
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
3014 else
3015 if test -n "$RANLIB"; then
3016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3017 else
3018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3019 ac_dummy="$PATH"
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"
3024 break
3026 done
3027 IFS="$ac_save_ifs"
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
3034 else
3035 echo "$ac_t""no" 1>&6
3038 else
3039 RANLIB=":"
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
3049 else
3050 if test -n "$STRIP"; then
3051 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3052 else
3053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3054 ac_dummy="$PATH"
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"
3059 break
3061 done
3062 IFS="$ac_save_ifs"
3065 STRIP="$ac_cv_prog_STRIP"
3066 if test -n "$STRIP"; then
3067 echo "$ac_t""$STRIP" 1>&6
3068 else
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
3081 else
3082 if test -n "$STRIP"; then
3083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3084 else
3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3086 ac_dummy="$PATH"
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"
3091 break
3093 done
3094 IFS="$ac_save_ifs"
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
3101 else
3102 echo "$ac_t""no" 1>&6
3105 else
3106 STRIP=":"
3111 enable_dlopen=yes
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
3123 # libtool support.
3124 case $host in
3125 *-*-irix6*)
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
3130 *32-bit*)
3131 LD="${LD-ld} -32"
3133 *N32*)
3134 LD="${LD-ld} -n32"
3136 *64-bit*)
3137 LD="${LD-ld} -64"
3139 esac
3141 rm -rf conftest*
3144 *-*-sco3.2v5*)
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
3152 else
3154 ac_ext=c
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"
3165 int main() {
3167 ; return 0; }
3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3170 rm -rf conftest*
3171 lt_cv_cc_needs_belf=yes
3172 else
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -rf conftest*
3176 lt_cv_cc_needs_belf=no
3178 rm -f conftest*
3179 ac_ext=c
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
3202 else
3203 if test -n "$DLLTOOL"; then
3204 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3205 else
3206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3207 ac_dummy="$PATH"
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"
3212 break
3214 done
3215 IFS="$ac_save_ifs"
3218 DLLTOOL="$ac_cv_prog_DLLTOOL"
3219 if test -n "$DLLTOOL"; then
3220 echo "$ac_t""$DLLTOOL" 1>&6
3221 else
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
3234 else
3235 if test -n "$DLLTOOL"; then
3236 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3237 else
3238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3239 ac_dummy="$PATH"
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"
3244 break
3246 done
3247 IFS="$ac_save_ifs"
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
3254 else
3255 echo "$ac_t""no" 1>&6
3258 else
3259 DLLTOOL="false"
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
3269 else
3270 if test -n "$AS"; then
3271 ac_cv_prog_AS="$AS" # Let the user override the test.
3272 else
3273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3274 ac_dummy="$PATH"
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"
3279 break
3281 done
3282 IFS="$ac_save_ifs"
3285 AS="$ac_cv_prog_AS"
3286 if test -n "$AS"; then
3287 echo "$ac_t""$AS" 1>&6
3288 else
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
3301 else
3302 if test -n "$AS"; then
3303 ac_cv_prog_AS="$AS" # Let the user override the test.
3304 else
3305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3306 ac_dummy="$PATH"
3307 for ac_dir in $ac_dummy; do
3308 test -z "$ac_dir" && ac_dir=.
3309 if test -f $ac_dir/$ac_word; then
3310 ac_cv_prog_AS="as"
3311 break
3313 done
3314 IFS="$ac_save_ifs"
3315 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3318 AS="$ac_cv_prog_AS"
3319 if test -n "$AS"; then
3320 echo "$ac_t""$AS" 1>&6
3321 else
3322 echo "$ac_t""no" 1>&6
3325 else
3326 AS="false"
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
3336 else
3337 if test -n "$OBJDUMP"; then
3338 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3339 else
3340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3341 ac_dummy="$PATH"
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"
3346 break
3348 done
3349 IFS="$ac_save_ifs"
3352 OBJDUMP="$ac_cv_prog_OBJDUMP"
3353 if test -n "$OBJDUMP"; then
3354 echo "$ac_t""$OBJDUMP" 1>&6
3355 else
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
3368 else
3369 if test -n "$OBJDUMP"; then
3370 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3371 else
3372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3373 ac_dummy="$PATH"
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"
3378 break
3380 done
3381 IFS="$ac_save_ifs"
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
3388 else
3389 echo "$ac_t""no" 1>&6
3392 else
3393 OBJDUMP="false"
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
3404 else
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3409 int main() {
3410 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
3411 DllMain (0, 0, 0);
3412 ; return 0; }
3414 if { (eval echo configure:3415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3415 rm -rf conftest*
3416 lt_cv_need_dllmain=no
3417 else
3418 echo "configure: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3420 rm -rf conftest*
3421 lt_cv_need_dllmain=yes
3423 rm -f conftest*
3426 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
3428 case $host/$CC in
3429 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
3430 # old mingw systems require "-dll" to link a DLL, while more recent ones
3431 # require "-mdll"
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
3438 else
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3443 int main() {
3445 ; return 0; }
3447 if { (eval echo configure:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3448 rm -rf conftest*
3449 lt_cv_cc_dll_switch=-mdll
3450 else
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3453 rm -rf conftest*
3454 lt_cv_cc_dll_switch=-dll
3456 rm -f conftest*
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" ;;
3465 esac
3468 esac
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'
3482 # Constants:
3483 rm="rm -f"
3485 # Global variables:
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').
3491 libext=a
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"
3497 old_CC="$CC"
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}-
3517 else
3518 ac_tool_prefix=
3521 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3522 case $host_os in
3523 linux-gnu*) ;;
3524 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3525 esac
3527 case $host_os in
3528 aix3*)
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
3533 COLLECT_NAMES=
3534 export COLLECT_NAMES
3537 esac
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
3545 case $host_os in
3546 openbsd*)
3547 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3550 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3552 esac
3553 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3556 # Allow CC to be a program name with arguments.
3557 set dummy $CC
3558 compiler="$2"
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
3567 objdir=.libs
3568 else
3569 # MS-DOS does not allow filenames that begin with a dot.
3570 objdir=_libs
3572 rmdir .libs 2>/dev/null
3573 echo "$ac_t""$objdir" 1>&6
3575 ## END FIXME
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
3582 withval="$with_pic"
3583 pic_mode="$withval"
3584 else
3585 pic_mode=default
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
3597 else
3598 lt_cv_prog_cc_pic=
3599 lt_cv_prog_cc_shlib=
3600 lt_cv_prog_cc_wl=
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'
3609 case $host_os in
3610 aix*)
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"
3619 amigaos*)
3620 # FIXME: we need at least 68020 code to build shared libraries, but
3621 # adding the `-m68020' flag to GCC prevents building anything better,
3622 # like `-m68040'.
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'
3638 sysv4*MP*)
3639 if test -d /usr/nec; then
3640 lt_cv_prog_cc_pic=-Kconform_pic
3644 lt_cv_prog_cc_pic='-fPIC'
3646 esac
3647 else
3648 # PORTME Check for PIC flags for the system compiler.
3649 case $host_os in
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'
3656 else
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'
3680 newsos6)
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'
3691 sco3.2v5*)
3692 lt_cv_prog_cc_pic='-Kpic'
3693 lt_cv_prog_cc_static='-dn'
3694 lt_cv_prog_cc_shlib='-belf'
3697 solaris*)
3698 lt_cv_prog_cc_pic='-KPIC'
3699 lt_cv_prog_cc_static='-Bstatic'
3700 lt_cv_prog_cc_wl='-Wl,'
3703 sunos4*)
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,'
3715 uts4*)
3716 lt_cv_prog_cc_pic='-pic'
3717 lt_cv_prog_cc_static='-Bstatic'
3720 sysv4*MP*)
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
3730 esac
3735 if test -z "$lt_cv_prog_cc_pic"; then
3736 echo "$ac_t""none" 1>&6
3737 else
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
3745 else
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"
3752 int main() {
3754 ; return 0; }
3756 if { (eval echo configure:3757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3757 rm -rf conftest*
3758 case $host_os in
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
3765 else
3766 lt_cv_prog_cc_pic_works=yes
3770 lt_cv_prog_cc_pic_works=yes
3772 esac
3774 else
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3777 rm -rf conftest*
3778 lt_cv_prog_cc_pic_works=no
3781 rm -f conftest*
3782 CFLAGS="$save_CFLAGS"
3787 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3788 lt_cv_prog_cc_pic=
3789 lt_cv_prog_cc_can_build_shared=no
3790 else
3791 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3794 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
3797 ## END FIXME
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 :
3803 else
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
3815 else
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"
3823 int main() {
3825 ; return 0; }
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828 rm -rf conftest*
3829 lt_cv_prog_cc_static_works=yes
3830 else
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3834 rm -f conftest*
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"
3851 ## END FIXME
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
3861 else
3863 $rm -r conftest 2>/dev/null
3864 mkdir conftest
3865 cd conftest
3866 echo "int some_variable = 0;" > conftest.$ac_ext
3867 mkdir out
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
3872 # builds.
3873 chmod -w .
3874 save_CFLAGS="$CFLAGS"
3875 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3876 compiler_c_o=no
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
3882 else
3883 lt_cv_compiler_c_o=yes
3885 else
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"
3891 chmod u+w .
3892 $rm conftest* out/*
3893 rmdir out
3894 cd ..
3895 rmdir conftest
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
3909 else
3911 lt_cv_compiler_o_lo=no
3912 save_CFLAGS="$CFLAGS"
3913 CFLAGS="$CFLAGS -c -o conftest.lo"
3914 save_objext="$ac_objext"
3915 ac_objext=lo
3916 cat > conftest.$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3920 int main() {
3921 int some_variable = 0;
3922 ; return 0; }
3924 if { (eval echo configure:3925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3925 rm -rf conftest*
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
3930 else
3931 lt_cv_compiler_o_lo=yes
3934 else
3935 echo "configure: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3938 rm -f conftest*
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
3946 else
3947 compiler_o_lo=no
3950 ## END FIXME
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
3960 hard_links=yes
3961 $rm conftest*
3962 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3963 touch conftest.a
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
3969 need_locks=warn
3971 else
3972 need_locks=no
3975 ## END FIXME
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"
3991 int main() {
3992 int some_variable = 0;
3993 ; return 0; }
3995 if { (eval echo configure:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3996 rm -rf conftest*
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
4001 else
4002 compiler_rtti_exceptions=yes
4005 else
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4009 rm -f conftest*
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'
4015 else
4016 no_builtin_flag=' -fno-builtin'
4020 ## END FIXME
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=
4029 no_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
4034 archive_cmds=
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=
4044 hardcode_direct=no
4045 hardcode_minus_L=no
4046 hardcode_shlibpath_var=unsupported
4047 runpath_var=
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
4053 include_expsyms=
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=
4066 case $host_os in
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
4072 with_gnu_ld=no
4075 openbsd*)
4076 with_gnu_ld=no
4078 esac
4080 ld_shlibs=yes
4081 if test "$with_gnu_ld" = yes; then
4082 # If archive_cmds runs LD, not CC, wlarc should be empty
4083 wlarc='${wl}'
4085 # See if GNU ld supports shared libraries.
4086 case $host_os in
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.
4090 ld_shlibs=no
4091 cat <<EOF 1>&2
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.
4102 amigaos*)
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
4112 # them.
4113 ld_shlibs=no
4116 beos*)
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'
4122 else
4123 ld_shlibs=no
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
4144 # to exclude.
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~
4148 case $host_os in
4149 mingw*)
4150 # mingw values
4151 dll_entry=_DllMainCRTStartup@12
4152 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4154 esac
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)~'
4166 else
4167 ltdll_obj=
4168 ltdll_cmds=
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;
4184 else
4185 echo EXPORTS > $output_objdir/$soname-def;
4186 _lt_hint=1;
4187 cat $export_symbols | while read symbol; do
4188 set dummy \$symbol;
4189 case \$# in
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;;
4193 esac;
4194 _lt_hint=`expr 1 + \$_lt_hint`;
4195 done;
4197 '"$ltdll_cmds"'
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'
4205 netbsd*)
4206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4207 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4208 wlarc=
4209 else
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'
4215 solaris* | sysv5*)
4216 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4217 ld_shlibs=no
4218 cat <<EOF 1>&2
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'
4231 else
4232 ld_shlibs=no
4236 sunos4*)
4237 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4238 wlarc=
4239 hardcode_direct=yes
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'
4247 else
4248 ld_shlibs=no
4251 esac
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'
4257 case $host_os in
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'
4266 else
4267 whole_archive_flag_spec=
4270 esac
4272 else
4273 # PORTME fill in a description of your system's linker (not GNU ld)
4274 case $host_os in
4275 aix3*)
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
4284 # broken collect2.
4285 hardcode_direct=unsupported
4289 aix4* | aix5*)
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'
4295 no_entry_flag=""
4296 else
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
4304 case $ld_flag in
4305 *-brtl*)
4306 aix_use_runtimelinking=yes
4307 break
4309 esac
4310 done
4311 esac
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.
4323 hardcode_direct=yes
4324 archive_cmds=''
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
4331 then
4332 # We have reworked collect2
4333 hardcode_direct=yes
4334 else
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=
4344 esac
4346 shared_flag='-shared'
4347 else
4348 # not using gcc
4349 if test "$host_cpu" = ia64; then
4350 shared_flag='${wl}-G'
4351 else
4352 if test "$aix_use_runtimelinking" = yes; then
4353 shared_flag='${wl}-G'
4354 else
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"
4369 else
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"
4374 else
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'
4386 amigaos*)
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
4391 ld_shlibs=no
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.
4402 libext=lib
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*)
4413 case "$host_os" in
4414 rhapsody* | darwin1.[012])
4415 allow_undefined_flag='-undefined suppress'
4417 *) # Darwin 1.3 on
4418 allow_undefined_flag='-flat_namespace -undefined suppress'
4420 esac
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'
4428 hardcode_direct=yes
4429 hardcode_shlibpath_var=no
4430 whole_archive_flag_spec='-all_load $convenience'
4433 freebsd1*)
4434 ld_shlibs=no
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
4440 # extra space).
4441 freebsd2.2*)
4442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4443 hardcode_libdir_flag_spec='-R$libdir'
4444 hardcode_direct=yes
4445 hardcode_shlibpath_var=no
4448 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4449 freebsd2*)
4450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4451 hardcode_direct=yes
4452 hardcode_minus_L=yes
4453 hardcode_shlibpath_var=no
4456 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4457 freebsd*)
4458 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4459 hardcode_libdir_flag_spec='-R$libdir'
4460 hardcode_direct=yes
4461 hardcode_shlibpath_var=no
4464 hpux9* | hpux10* | hpux11*)
4465 case $host_os in
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' ;;
4468 esac
4469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4470 hardcode_libdir_separator=:
4471 hardcode_direct=yes
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'
4481 else
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
4489 netbsd*)
4490 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4492 else
4493 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4495 hardcode_libdir_flag_spec='-R$libdir'
4496 hardcode_direct=yes
4497 hardcode_shlibpath_var=no
4500 newsos6)
4501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4502 hardcode_direct=yes
4503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4504 hardcode_libdir_separator=:
4505 hardcode_shlibpath_var=no
4508 openbsd*)
4509 hardcode_direct=yes
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'
4515 else
4516 case "$host_os" in
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'
4525 esac
4529 os2*)
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'
4537 osf3*)
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'
4541 else
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'
4554 else
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=:
4566 sco3.2v5*)
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'
4574 solaris*)
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
4586 [12].*)
4587 cat <<EOF 1>&2
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.
4600 no_undefined_flag=
4602 esac
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
4611 case $host_os in
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' ;;
4615 esac
4616 link_all_deplibs=yes
4619 sunos4*)
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'
4624 else
4625 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4627 hardcode_libdir_flag_spec='-L$libdir'
4628 hardcode_direct=yes
4629 hardcode_minus_L=yes
4630 hardcode_shlibpath_var=no
4633 sysv4)
4634 case $host_vendor in
4635 sni)
4636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4637 hardcode_direct=yes # is this really true???
4639 siemens)
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'
4644 hardcode_direct=no
4646 motorola)
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
4650 esac
4651 runpath_var='LD_RUN_PATH'
4652 hardcode_shlibpath_var=no
4655 sysv4.3*)
4656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4657 hardcode_shlibpath_var=no
4658 export_dynamic_flag_spec='-Bexport'
4661 sysv5*)
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'
4673 uts4*)
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
4679 dgux*)
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
4685 sysv4*MP*)
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
4691 ld_shlibs=yes
4695 sysv4.2uw2*)
4696 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4697 hardcode_direct=yes
4698 hardcode_minus_L=no
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'
4708 else
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
4716 ld_shlibs=no
4718 esac
4720 echo "$ac_t""$ld_shlibs" 1>&6
4721 test "$ld_shlibs" = no && can_build_shared=no
4723 ## END FIXME
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
4730 hardcode_action=
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
4743 else
4744 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4745 hardcode_action=immediate
4747 else
4748 # We cannot hardcode anything, or else we can only hardcode existing
4749 # directories.
4750 hardcode_action=unsupported
4752 echo "$ac_t""$hardcode_action" 1>&6
4754 ## END FIXME
4756 ## FIXME: this should be a separate macro
4758 striplib=
4759 old_striplib=
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
4766 else
4767 echo "$ac_t""no" 1>&6
4770 ## END FIXME
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
4780 library_names_spec=
4781 libname_spec='lib$name'
4782 soname_spec=
4783 postinstall_cmds=
4784 postuninstall_cmds=
4785 finish_cmds=
4786 finish_eval=
4787 shlibpath_var=
4788 shlibpath_overrides_runpath=unknown
4789 version_type=none
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"
4794 case $host_os in
4795 aix3*)
4796 version_type=linux
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'
4804 aix4* | aix5*)
4805 version_type=linux
4806 need_lib_prefix=no
4807 need_version=no
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
4813 else
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.
4819 case $host_os in
4820 aix4 | aix4.[01] | aix4.[01].*)
4821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4822 echo ' yes '
4823 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4825 else
4826 can_build_shared=no
4829 esac
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'
4839 else
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
4850 amigaos*)
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'
4856 beos*)
4857 library_names_spec='${libname}.so'
4858 dynamic_linker="$host_os ld.so"
4859 shlibpath_var=LIBRARY_PATH
4862 bsdi4*)
4863 version_type=linux
4864 need_version=no
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
4879 need_version=no
4880 need_lib_prefix=no
4881 case $GCC,$host_os in
4882 yes,cygwin*)
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~
4891 $rm \$dlpath'
4893 yes,mingw*)
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"`
4897 yes,pw32*)
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'
4903 esac
4904 dynamic_linker='Win32 ld.exe'
4905 # FIXME: first we should search . and the directory the executable is in
4906 shlibpath_var=PATH
4909 darwin* | rhapsody*)
4910 dynamic_linker="$host_os dyld"
4911 version_type=darwin
4912 need_lib_prefix=no
4913 need_version=no
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
4923 freebsd1*)
4924 dynamic_linker=no
4927 freebsd*)
4928 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4929 version_type=freebsd-$objformat
4930 case $version_type in
4931 freebsd-elf*)
4932 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4933 need_version=no
4934 need_lib_prefix=no
4936 freebsd-*)
4937 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4938 need_version=yes
4940 esac
4941 shlibpath_var=LD_LIBRARY_PATH
4942 case $host_os in
4943 freebsd2*)
4944 shlibpath_overrides_runpath=yes
4947 shlibpath_overrides_runpath=no
4948 hardcode_into_libs=yes
4950 esac
4953 gnu*)
4954 version_type=linux
4955 need_lib_prefix=no
4956 need_version=no
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"
4967 version_type=sunos
4968 need_lib_prefix=no
4969 need_version=no
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*)
4979 case $host_os in
4980 nonstopux*) version_type=nonstopux ;;
4981 *) version_type=irix ;;
4982 esac
4983 need_lib_prefix=no
4984 need_version=no
4985 soname_spec='${libname}${release}.so$major'
4986 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4987 case $host_os in
4988 irix5* | nonstopux*)
4989 libsuff= shlibsuff=
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;;
4997 esac
4999 esac
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*)
5008 dynamic_linker=no
5011 # This must be Linux ELF.
5012 linux-gnu*)
5013 version_type=linux
5014 need_lib_prefix=no
5015 need_version=no
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'
5035 netbsd*)
5036 version_type=sunos
5037 need_lib_prefix=no
5038 need_version=no
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'
5043 else
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
5053 newsos6)
5054 version_type=linux
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
5060 openbsd*)
5061 version_type=sunos
5062 need_lib_prefix=no
5063 need_version=no
5064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5065 case "$host_os" in
5066 openbsd2.[89] | openbsd2.[89].*)
5067 shlibpath_overrides_runpath=no
5070 shlibpath_overrides_runpath=yes
5072 esac
5073 else
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
5081 os2*)
5082 libname_spec='$name'
5083 need_lib_prefix=no
5084 library_names_spec='$libname.dll $libname.a'
5085 dynamic_linker='OS/2 ld.exe'
5086 shlibpath_var=LIBPATH
5089 osf3* | osf4* | osf5*)
5090 version_type=osf
5091 need_version=no
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
5100 sco3.2v5*)
5101 version_type=osf
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
5107 solaris*)
5108 version_type=linux
5109 need_lib_prefix=no
5110 need_version=no
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'
5120 sunos4*)
5121 version_type=sunos
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
5127 need_lib_prefix=no
5129 need_version=yes
5132 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5133 version_type=linux
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
5138 sni)
5139 shlibpath_overrides_runpath=no
5140 need_lib_prefix=no
5141 export_dynamic_flag_spec='${wl}-Blargedynsym'
5142 runpath_var=LD_RUN_PATH
5144 siemens)
5145 need_lib_prefix=no
5147 motorola)
5148 need_lib_prefix=no
5149 need_version=no
5150 shlibpath_overrides_runpath=no
5151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5153 esac
5156 uts4*)
5157 version_type=linux
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
5163 dgux*)
5164 version_type=linux
5165 need_lib_prefix=no
5166 need_version=no
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
5172 sysv4*MP*)
5173 if test -d /usr/nec ;then
5174 version_type=linux
5175 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5176 soname_spec='$libname.so.$major'
5177 shlibpath_var=LD_LIBRARY_PATH
5182 dynamic_linker=no
5184 esac
5185 echo "$ac_t""$dynamic_linker" 1>&6
5186 test "$dynamic_linker" = no && can_build_shared=no
5188 ## END FIXME
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
5197 ## END FIXME
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.
5207 case "$host_os" in
5208 aix3*)
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'
5216 aix4*)
5217 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5218 test "$enable_shared" = yes && enable_static=no
5221 esac
5222 echo "$ac_t""$enable_shared" 1>&6
5224 ## END FIXME
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
5234 ## END FIXME
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
5254 else
5255 lt_cv_dlopen=no
5256 lt_cv_dlopen_libs=
5258 case $host_os in
5259 beos*)
5260 lt_cv_dlopen="load_add_on"
5261 lt_cv_dlopen_libs=
5262 lt_cv_dlopen_self=yes
5265 cygwin* | mingw* | pw32*)
5266 lt_cv_dlopen="LoadLibrary"
5267 lt_cv_dlopen_libs=
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
5275 else
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. */
5281 #include <assert.h>
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. */
5285 char shl_load();
5287 int main() {
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)
5293 choke me
5294 #else
5295 shl_load();
5296 #endif
5298 ; return 0; }
5300 if { (eval echo configure:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5301 rm -rf conftest*
5302 eval "ac_cv_func_shl_load=yes"
5303 else
5304 echo "configure: failed program was:" >&5
5305 cat conftest.$ac_ext >&5
5306 rm -rf conftest*
5307 eval "ac_cv_func_shl_load=no"
5309 rm -f conftest*
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"
5315 else
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
5322 else
5323 ac_save_LIBS="$LIBS"
5324 LIBS="-ldld $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. */
5331 char shl_load();
5333 int main() {
5334 shl_load()
5335 ; return 0; }
5337 if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5338 rm -rf conftest*
5339 eval "ac_cv_lib_$ac_lib_var=yes"
5340 else
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5343 rm -rf conftest*
5344 eval "ac_cv_lib_$ac_lib_var=no"
5346 rm -f conftest*
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"
5353 else
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
5359 else
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. */
5365 #include <assert.h>
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. */
5369 char dlopen();
5371 int main() {
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)
5377 choke me
5378 #else
5379 dlopen();
5380 #endif
5382 ; return 0; }
5384 if { (eval echo configure:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5385 rm -rf conftest*
5386 eval "ac_cv_func_dlopen=yes"
5387 else
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5390 rm -rf conftest*
5391 eval "ac_cv_func_dlopen=no"
5393 rm -f conftest*
5396 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5397 echo "$ac_t""yes" 1>&6
5398 lt_cv_dlopen="dlopen"
5399 else
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
5406 else
5407 ac_save_LIBS="$LIBS"
5408 LIBS="-ldl $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. */
5415 char dlopen();
5417 int main() {
5418 dlopen()
5419 ; return 0; }
5421 if { (eval echo configure:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5422 rm -rf conftest*
5423 eval "ac_cv_lib_$ac_lib_var=yes"
5424 else
5425 echo "configure: failed program was:" >&5
5426 cat conftest.$ac_ext >&5
5427 rm -rf conftest*
5428 eval "ac_cv_lib_$ac_lib_var=no"
5430 rm -f conftest*
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"
5437 else
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
5444 else
5445 ac_save_LIBS="$LIBS"
5446 LIBS="-lsvld $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. */
5453 char dlopen();
5455 int main() {
5456 dlopen()
5457 ; return 0; }
5459 if { (eval echo configure:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5460 rm -rf conftest*
5461 eval "ac_cv_lib_$ac_lib_var=yes"
5462 else
5463 echo "configure: failed program was:" >&5
5464 cat conftest.$ac_ext >&5
5465 rm -rf conftest*
5466 eval "ac_cv_lib_$ac_lib_var=no"
5468 rm -f conftest*
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"
5475 else
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
5482 else
5483 ac_save_LIBS="$LIBS"
5484 LIBS="-ldld $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. */
5491 char dld_link();
5493 int main() {
5494 dld_link()
5495 ; return 0; }
5497 if { (eval echo configure:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5498 rm -rf conftest*
5499 eval "ac_cv_lib_$ac_lib_var=yes"
5500 else
5501 echo "configure: failed program was:" >&5
5502 cat conftest.$ac_ext >&5
5503 rm -rf conftest*
5504 eval "ac_cv_lib_$ac_lib_var=no"
5506 rm -f conftest*
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"
5513 else
5514 echo "$ac_t""no" 1>&6
5533 esac
5535 if test "x$lt_cv_dlopen" != xno; then
5536 enable_dlopen=yes
5537 else
5538 enable_dlopen=no
5541 case $lt_cv_dlopen in
5542 dlopen)
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\"
5549 save_LIBS="$LIBS"
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
5556 else
5557 if test "$cross_compiling" = yes; then :
5558 lt_cv_dlopen_self=cross
5559 else
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"
5566 #if HAVE_DLFCN_H
5567 #include <dlfcn.h>
5568 #endif
5570 #include <stdio.h>
5572 #ifdef RTLD_GLOBAL
5573 # define LT_DLGLOBAL RTLD_GLOBAL
5574 #else
5575 # ifdef DL_GLOBAL
5576 # define LT_DLGLOBAL DL_GLOBAL
5577 # else
5578 # define LT_DLGLOBAL 0
5579 # endif
5580 #endif
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
5585 # ifdef RTLD_LAZY
5586 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5587 # else
5588 # ifdef DL_LAZY
5589 # define LT_DLLAZY_OR_NOW DL_LAZY
5590 # else
5591 # ifdef RTLD_NOW
5592 # define LT_DLLAZY_OR_NOW RTLD_NOW
5593 # else
5594 # ifdef DL_NOW
5595 # define LT_DLLAZY_OR_NOW DL_NOW
5596 # else
5597 # define LT_DLLAZY_OR_NOW 0
5598 # endif
5599 # endif
5600 # endif
5601 # endif
5602 #endif
5604 #ifdef __cplusplus
5605 extern "C" void exit (int);
5606 #endif
5608 void fnord() { int i=42;}
5609 int main ()
5611 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5612 int status = $lt_dlunknown;
5614 if (self)
5616 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5617 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5618 /* dlclose (self); */
5621 exit (status);
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
5626 lt_status=$?
5627 case x$lt_status in
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 ;;
5631 esac
5632 else :
5633 # compilation failed
5634 lt_cv_dlopen_self=no
5637 rm -fr conftest*
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
5650 else
5651 if test "$cross_compiling" = yes; then :
5652 lt_cv_dlopen_self_static=cross
5653 else
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"
5660 #if HAVE_DLFCN_H
5661 #include <dlfcn.h>
5662 #endif
5664 #include <stdio.h>
5666 #ifdef RTLD_GLOBAL
5667 # define LT_DLGLOBAL RTLD_GLOBAL
5668 #else
5669 # ifdef DL_GLOBAL
5670 # define LT_DLGLOBAL DL_GLOBAL
5671 # else
5672 # define LT_DLGLOBAL 0
5673 # endif
5674 #endif
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
5679 # ifdef RTLD_LAZY
5680 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5681 # else
5682 # ifdef DL_LAZY
5683 # define LT_DLLAZY_OR_NOW DL_LAZY
5684 # else
5685 # ifdef RTLD_NOW
5686 # define LT_DLLAZY_OR_NOW RTLD_NOW
5687 # else
5688 # ifdef DL_NOW
5689 # define LT_DLLAZY_OR_NOW DL_NOW
5690 # else
5691 # define LT_DLLAZY_OR_NOW 0
5692 # endif
5693 # endif
5694 # endif
5695 # endif
5696 #endif
5698 #ifdef __cplusplus
5699 extern "C" void exit (int);
5700 #endif
5702 void fnord() { int i=42;}
5703 int main ()
5705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5706 int status = $lt_dlunknown;
5708 if (self)
5710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5711 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5712 /* dlclose (self); */
5715 exit (status);
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
5720 lt_status=$?
5721 case x$lt_status in
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 ;;
5725 esac
5726 else :
5727 # compilation failed
5728 lt_cv_dlopen_self_static=no
5731 rm -fr conftest*
5736 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
5739 CPPFLAGS="$save_CPPFLAGS"
5740 LDFLAGS="$save_LDFLAGS"
5741 LIBS="$save_LIBS"
5743 esac
5745 case $lt_cv_dlopen_self in
5746 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5747 *) enable_dlopen_self=unknown ;;
5748 esac
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 ;;
5753 esac
5757 ## FIXME: this should be a separate macro
5759 if test "$enable_shared" = yes && test "$GCC" = yes; then
5760 case $archive_cmds in
5761 *'~'*)
5762 # FIXME: we may have to deal with multi-command sequences.
5764 '$CC '*)
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
5772 else
5773 $rm conftest*
5774 echo 'static int dummy;' > conftest.$ac_ext
5776 if { (eval echo configure:5777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5777 soname=conftest
5778 lib=conftest
5779 libobjs=conftest.$ac_objext
5780 deplibs=
5781 wl=$lt_cv_prog_cc_wl
5782 compiler_flags=-v
5783 linker_flags=-v
5784 verstring=
5785 output_objdir=.
5786 libname=conftest
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; }
5790 then
5791 lt_cv_archive_cmds_need_lc=no
5792 else
5793 lt_cv_archive_cmds_need_lc=yes
5795 allow_undefined_flag=$save_allow_undefined_flag
5796 else
5797 cat conftest.err 1>&5
5801 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
5803 esac
5805 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5807 ## END FIXME
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
5817 else
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
5826 $rm -f "${ofile}T"
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
5850 case $var in
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\"\`\\\""
5863 esac
5864 done
5866 cat <<__EOF__ > "${ofile}T"
5867 #! $SHELL
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.
5896 SED=$lt_SED
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
5902 # if CDPATH is set.
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.
5910 SHELL=$lt_SHELL
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
5924 # The host system.
5925 host_alias=$host_alias
5926 host=$host
5928 # An echo program that does not interpret backslashes.
5929 echo=$lt_echo
5931 # The archiver.
5932 AR=$lt_AR
5933 AR_FLAGS=$lt_AR_FLAGS
5935 # The default C compiler.
5936 CC=$lt_CC
5938 # Is the compiler the GNU C compiler?
5939 with_gcc=$GCC
5941 # The linker used to build libraries.
5942 LD=$lt_LD
5944 # Whether we need hard or soft links.
5945 LN_S=$lt_LN_S
5947 # A BSD-compatible nm program.
5948 NM=$lt_NM
5950 # A symbol stripping program
5951 STRIP=$STRIP
5953 # Used to examine libraries when file_magic_cmd begins "file"
5954 MAGIC_CMD=$MAGIC_CMD
5956 # Used on cygwin: DLL creation program.
5957 DLLTOOL="$DLLTOOL"
5959 # Used on cygwin: object dumper.
5960 OBJDUMP="$OBJDUMP"
5962 # Used on cygwin: assembler.
5963 AS="$AS"
5965 # The name of the directory that contains temporary libtool files.
5966 objdir=$objdir
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.
5973 wl=$lt_wl
5975 # Object file suffix (normally "o").
5976 objext="$ac_objext"
5978 # Old archive suffix (normally "a").
5979 libext="$libext"
5981 # Executable file suffix (normally "").
5982 exeext="$exeext"
5984 # Additional compiler flags for building library objects.
5985 pic_flag=$lt_pic_flag
5986 pic_mode=$pic_mode
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.
6041 RANLIB=$lt_RANLIB
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
6112 # resulting binary.
6113 hardcode_direct=$hardcode_direct
6115 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6116 # resulting binary.
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
6156 __EOF__
6158 case $host_os in
6159 aix3*)
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
6166 COLLECT_NAMES=
6167 export COLLECT_NAMES
6171 esac
6173 case $host_os in
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__
6187 # # endif
6188 # #endif
6190 # #ifdef __cplusplus
6191 # extern "C" {
6192 # #endif
6193 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6194 # #ifdef __cplusplus
6196 # #endif
6198 # #ifdef __CYGWIN__
6199 # #include <cygwin/cygwin_dll.h>
6200 # DECLARE_CYGWIN_DLL( DllMain );
6201 # #endif
6202 # HINSTANCE __hDllInstance_base;
6204 # BOOL APIENTRY
6205 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6207 # __hDllInstance_base = hInst;
6208 # return TRUE;
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.
6232 # */
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 */
6240 # #ifndef O_BINARY
6241 # #define O_BINARY 0
6242 # #endif
6244 # static unsigned int
6245 # pe_get16 (fd, offset)
6246 # int fd;
6247 # int offset;
6249 # unsigned char b[2];
6250 # lseek (fd, offset, SEEK_SET);
6251 # read (fd, b, 2);
6252 # return b[0] + (b[1]<<8);
6255 # static unsigned int
6256 # pe_get32 (fd, offset)
6257 # int fd;
6258 # int offset;
6260 # unsigned char b[4];
6261 # lseek (fd, offset, SEEK_SET);
6262 # read (fd, b, 4);
6263 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6266 # static unsigned int
6267 # pe_as32 (ptr)
6268 # void *ptr;
6270 # unsigned char *b = ptr;
6271 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6274 # int
6275 # main (argc, argv)
6276 # int argc;
6277 # char *argv[];
6279 # int dll;
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);
6289 # if (dll < 1)
6290 # return 1;
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 */
6303 # return 1;
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));
6311 # expptr = 0;
6312 # for (i = 0; i < nsections; i++)
6314 # char sname[8];
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);
6326 # break;
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);
6345 # return 0;
6347 # /* impgen.c ends here */
6351 esac
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")
6361 chmod +x "$ofile"
6364 ## END FIXME
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
6386 # AIX /bin/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
6396 else
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.
6400 case "$ac_dir/" in
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
6405 # by default.
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.
6412 else
6413 ac_cv_path_install="$ac_dir/$ac_prog -c"
6414 break 2
6417 done
6419 esac
6420 done
6421 IFS="$ac_save_IFS"
6424 if test "${ac_cv_path_install+set}" = set; then
6425 INSTALL="$ac_cv_path_install"
6426 else
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
6448 else
6449 rm -f conftestdata
6450 if ln -s X conftestdata 2>/dev/null
6451 then
6452 rm -f conftestdata
6453 ac_cv_prog_LN_S="ln -s"
6454 else
6455 ac_cv_prog_LN_S=ln
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
6461 else
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
6470 else
6471 cat > conftestmake <<\EOF
6472 all:
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
6479 else
6480 eval ac_cv_prog_make_${ac_make}_set=no
6482 rm -f conftestmake
6484 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6485 echo "$ac_t""yes" 1>&6
6486 SET_MAKE=
6487 else
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
6498 else
6499 case "$PSPROG" in
6501 ac_cv_path_PSPROG="$PSPROG" # Let the user override the test with a path.
6503 ?:/*)
6504 ac_cv_path_PSPROG="$PSPROG" # Let the user override the test with a dos path.
6507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6508 ac_dummy="$PATH"
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"
6513 break
6515 done
6516 IFS="$ac_save_ifs"
6518 esac
6520 PSPROG="$ac_cv_path_PSPROG"
6521 if test -n "$PSPROG"; then
6522 echo "$ac_t""$PSPROG" 1>&6
6523 else
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
6533 else
6534 case "$PERLPROG" in
6536 ac_cv_path_PERLPROG="$PERLPROG" # Let the user override the test with a path.
6538 ?:/*)
6539 ac_cv_path_PERLPROG="$PERLPROG" # Let the user override the test with a dos path.
6542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6543 ac_dummy="$PATH"
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"
6548 break
6550 done
6551 IFS="$ac_save_ifs"
6553 esac
6555 PERLPROG="$ac_cv_path_PERLPROG"
6556 if test -n "$PERLPROG"; then
6557 echo "$ac_t""$PERLPROG" 1>&6
6558 else
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
6570 else
6571 if test -n "$WHOAMI"; then
6572 ac_cv_prog_WHOAMI="$WHOAMI" # Let the user override the test.
6573 else
6574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6575 ac_dummy="$PATH"
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"
6580 break
6582 done
6583 IFS="$ac_save_ifs"
6586 WHOAMI="$ac_cv_prog_WHOAMI"
6587 if test -n "$WHOAMI"; then
6588 echo "$ac_t""$WHOAMI" 1>&6
6589 else
6590 echo "$ac_t""no" 1>&6
6593 test -n "$WHOAMI" && break
6594 done
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
6605 else
6606 if test -n "$SED"; then
6607 ac_cv_prog_SED="$SED" # Let the user override the test.
6608 else
6609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6610 ac_dummy="$PATH"
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"
6615 break
6617 done
6618 IFS="$ac_save_ifs"
6621 SED="$ac_cv_prog_SED"
6622 if test -n "$SED"; then
6623 echo "$ac_t""$SED" 1>&6
6624 else
6625 echo "$ac_t""no" 1>&6
6628 test -n "$SED" && break
6629 done
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
6637 else
6638 if test -n "$AUTOCONF"; then
6639 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6640 else
6641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6642 ac_dummy="$PATH"
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=""
6647 break
6649 done
6650 IFS="$ac_save_ifs"
6653 AUTOCONF="$ac_cv_prog_AUTOCONF"
6654 if test -n "$AUTOCONF"; then
6655 echo "$ac_t""$AUTOCONF" 1>&6
6656 else
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
6666 else
6667 if test -n "$AUTOHEADER"; then
6668 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
6669 else
6670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6671 ac_dummy="$PATH"
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=""
6676 break
6678 done
6679 IFS="$ac_save_ifs"
6682 AUTOHEADER="$ac_cv_prog_AUTOHEADER"
6683 if test -n "$AUTOHEADER"; then
6684 echo "$ac_t""$AUTOHEADER" 1>&6
6685 else
6686 echo "$ac_t""no" 1>&6
6689 if test "x$ac_cv_prog_AUTOCONF" = "x"; then
6690 AUTOCONF=":"
6693 if test "x$ac_cv_prog_AUTOHEADER" = "x"; then
6694 AUTOHEADER=":"
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
6704 else
6705 case "$UNAMEPROG" in
6707 ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path.
6709 ?:/*)
6710 ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a dos path.
6713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6714 ac_dummy="$PATH"
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"
6719 break
6721 done
6722 IFS="$ac_save_ifs"
6724 esac
6726 UNAMEPROG="$ac_cv_path_UNAMEPROG"
6727 if test -n "$UNAMEPROG"; then
6728 echo "$ac_t""$UNAMEPROG" 1>&6
6729 else
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
6742 else
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6747 int main() {
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;
6753 char **p;
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. */
6763 ++ccp;
6764 p = (char**) ccp;
6765 ccp = (char const *const *) p;
6766 { /* SCO 3.2v4 cc rejects this. */
6767 char *t;
6768 char const *s = 0 ? (char *) 0 : (char const *) 0;
6770 *t++ = 0;
6772 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6773 int x[] = {25, 17};
6774 const int *foo = &x[0];
6775 ++foo;
6777 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6778 typedef const int *iptr;
6779 iptr p = 0;
6780 ++p;
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 */
6788 const int foo = 10;
6791 ; return 0; }
6793 if { (eval echo configure:6794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6794 rm -rf conftest*
6795 ac_cv_c_const=yes
6796 else
6797 echo "configure: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6799 rm -rf conftest*
6800 ac_cv_c_const=no
6802 rm -f conftest*
6805 echo "$ac_t""$ac_cv_c_const" 1>&6
6806 if test $ac_cv_c_const = no; then
6807 cat >> confdefs.h <<\EOF
6808 #define const
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
6817 else
6818 ac_cv_c_inline=no
6819 for ac_kw in inline __inline__ __inline; do
6820 cat > conftest.$ac_ext <<EOF
6821 #line 6822 "configure"
6822 #include "confdefs.h"
6824 int main() {
6825 } $ac_kw foo() {
6826 ; return 0; }
6828 if { (eval echo configure:6829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6829 rm -rf conftest*
6830 ac_cv_c_inline=$ac_kw; break
6831 else
6832 echo "configure: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6835 rm -f conftest*
6836 done
6840 echo "$ac_t""$ac_cv_c_inline" 1>&6
6841 case "$ac_cv_c_inline" in
6842 inline | yes) ;;
6843 no) cat >> confdefs.h <<\EOF
6844 #define inline
6847 *) cat >> confdefs.h <<EOF
6848 #define inline $ac_cv_c_inline
6851 esac
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"
6873 else
6874 DEVFLAGS=""
6876 echo "$ac_t""$DEVFLAGS" 1>&6
6880 # Do some error checking and defaulting for the host and target type.
6881 # The inputs are:
6882 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
6884 # The rules are:
6885 # 1. You are not allowed to specify --host, --target, and nonopt at the
6886 # same time.
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; } ;;
6898 esac
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
6909 host_alias=$host
6910 case "$host_alias" in
6911 NONE)
6912 case $nonopt in
6913 NONE)
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; }
6916 fi ;;
6917 *) host_alias=$nonopt ;;
6918 esac ;;
6919 esac
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
6932 NONE)
6933 case $nonopt in
6934 NONE) target_alias=$host_alias ;;
6935 *) target_alias=$nonopt ;;
6936 esac ;;
6937 esac
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
6948 build_alias=$build
6949 case "$build_alias" in
6950 NONE)
6951 case $nonopt in
6952 NONE) build_alias=$host_alias ;;
6953 *) build_alias=$nonopt ;;
6954 esac ;;
6955 esac
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" = \
6965 NONENONEs,x,x, &&
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
6982 filebase=$target_os
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
6989 last=$filebase
6990 filebase=`echo $filebase | sed 's/[-._][^-._]*$//'`
6991 if test "x$filebase" = "x$last"; then
6992 filebase=`echo $filebase | sed 's/[0-9]*$//'`
6994 done
6996 if test "x$filebase" = "x$last"; then
6997 filebase="generic"
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
7015 last=$filebase
7016 filebase=`echo $filebase | sed 's/[-._][^-._]*$//'`
7017 done
7019 if test "x$filebase" = "x$last"; then
7020 filebase="generic"
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
7037 else
7038 case "$CCPATH" in
7040 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
7042 ?:/*)
7043 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a dos path.
7046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7047 ac_dummy="$PATH"
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"
7052 break
7054 done
7055 IFS="$ac_save_ifs"
7057 esac
7059 CCPATH="$ac_cv_path_CCPATH"
7060 if test -n "$CCPATH"; then
7061 echo "$ac_t""$CCPATH" 1>&6
7062 else
7063 echo "$ac_t""no" 1>&6
7066 case $target_os in
7067 bsdi*)
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
7073 " 1>&2; exit 1; }
7076 solaris*)
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.
7083 " 1>&2; exit 1; }
7086 esac
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"
7092 else
7093 EXTRACPPFLAGS=""
7096 if test "x$GCC" != "xyes"; then
7097 case $target_os in
7098 solaris*) EXTRACPPFLAGS="$EXTRACPPFLAGS -Xs" ;;
7099 esac
7103 echo "$ac_t""$EXTRACPPFLAGS" 1>&6
7106 if test "x$prefix" = "xNONE"; then
7107 prefix=/usr/local
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
7117 exec_prefix=$prefix
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"
7127 SNMPLIBPATH=""
7128 tmpset="$libdir/snmp"
7129 while test "x$tmpset" != "x$SNMPLIBPATH"; do
7130 SNMPLIBPATH="$tmpset"
7131 eval tmpset="$tmpset"
7132 done
7133 cat >> confdefs.h <<EOF
7134 #define SNMPLIBPATH "$SNMPLIBPATH"
7137 cat >> confdefs.h <<EOF
7138 #define SNMPDLMODPATH "$SNMPLIBPATH/dlmod"
7142 SNMPSHAREPATH=""
7143 tmpset="$datadir/snmp"
7144 while test "x$tmpset" != "x$SNMPSHAREPATH"; do
7145 SNMPSHAREPATH="$tmpset"
7146 eval tmpset="$tmpset"
7147 done
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"
7160 SNMPCONFPATH=""
7161 tmpset="$sysconfdir/snmp"
7162 while test "x$tmpset" != "x$SNMPCONFPATH"; do
7163 SNMPCONFPATH="$tmpset"
7164 eval tmpset="$tmpset"
7165 done
7166 cat >> confdefs.h <<EOF
7167 #define SNMPCONFPATH "$SNMPCONFPATH"
7172 if test "x$enable_ipv6" = "xyes"; then
7173 v6type=unknown
7174 v6lib=none
7175 v6trylibc=no
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
7180 case $i in
7181 v6d)
7182 cat > conftest.$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7186 #include </usr/local/v6/include/sys/types.h>
7187 #ifdef __V6D__
7189 #endif
7191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7192 egrep "yes" >/dev/null 2>&1; then
7193 rm -rf conftest*
7194 v6type=$i; v6lib=v6;
7195 v6libdir=/usr/local/v6/lib;
7196 CFLAGS="-I/usr/local/v6/include $CFLAGS"
7198 rm -f conftest*
7201 toshiba)
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7206 #include <sys/param.h>
7207 #ifdef _TOSHIBA_INET6
7209 #endif
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 egrep "yes" >/dev/null 2>&1; then
7213 rm -rf conftest*
7214 v6type=$i; v6lib=inet6;
7215 v6libdir=/usr/local/v6/lib;
7216 CFLAGS="-DINET6 $CFLAGS"
7218 rm -f conftest*
7221 kame)
7222 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7226 #include <netinet/in.h>
7227 #ifdef __KAME__
7229 #endif
7231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7232 egrep "yes" >/dev/null 2>&1; then
7233 rm -rf conftest*
7234 v6type=$i; v6lib=inet6;
7235 v6libdir=/usr/local/v6/lib;
7236 v6trylibc=yes;
7237 CFLAGS="-DINET6 $CFLAGS"
7239 rm -f conftest*
7242 inria)
7243 cat > conftest.$ac_ext <<EOF
7244 #line 7245 "configure"
7245 #include "confdefs.h"
7247 #include <netinet/in.h>
7248 #ifdef IPV6_INRIA_VERSION
7250 #endif
7252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7253 egrep "yes" >/dev/null 2>&1; then
7254 rm -rf conftest*
7255 v6type=$i;
7256 v6lib=dummy;
7257 v6libdir=none;
7258 v6trylibc=yes;
7259 CFLAGS="-DINET6 $CFLAGS"
7261 rm -f conftest*
7264 zeta)
7265 cat > conftest.$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7269 #include <sys/param.h>
7270 #ifdef _ZETA_MINAMI_INET6
7273 #endif
7275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7276 egrep "yes" >/dev/null 2>&1; then
7277 rm -rf conftest*
7278 v6type=$i; v6lib=inet6;
7279 v6libdir=/usr/local/v6/lib;
7280 CFLAGS="-DINET6 $CFLAGS"
7282 rm -f conftest*
7285 linux-glibc)
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))
7293 #endif
7295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7296 egrep "yes" >/dev/null 2>&1; then
7297 rm -rf conftest*
7298 v6type=$i;
7299 v6lib=dummy;
7300 v6libdir=none;
7301 v6trylibc=yes;
7302 CFLAGS="-DINET6 $CFLAGS"
7304 rm -f conftest*
7307 linux-inet6)
7308 if test -d /usr/inet6; then
7309 v6type=$i
7310 v6lib=inet6
7311 v6libdir=/usr/inet6/lib
7312 CFLAGS="-DINET6 $CFLAGS"
7315 esac
7316 if test "$v6type" != "unknown"; then
7317 break
7319 done
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"
7324 enable_ipv6="yes"
7325 echo "$ac_t"""$v6type, $enable_ipv6, using lib$v6lib"" 1>&6
7326 elif test "$v6trylibc" = "yes"; then
7327 enable_ipv6="yes"
7328 echo "$ac_t"""$v6type, $enable_ipv6, using libc"" 1>&6
7329 else
7330 { echo "configure: error: no IPv6 library lib$v6lib.a found." 1>&2; exit 1; }
7331 exit 1
7333 else
7334 enable_ipv6="no"
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
7347 case $target_os in
7349 aix*)
7350 CC_RUNTIME_ARG="$CC_RUNTIME_ARG -lpthreads"
7356 esac
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
7363 DLLIBS="-ldl"
7364 LIB_CFLAGS="$LIB_CFLAGS $SHLIB_CFLAGS"
7365 echo "$ac_t""yes" 1>&6
7366 else
7367 DLLIBS=""
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"
7383 else
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
7392 else
7393 transport_add_list="$i $transport_add_list"
7395 done
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
7401 echo
7402 { echo "configure: error: It is not possible to compile without UDP/IP support." 1>&2; exit 1; }
7404 else
7405 if test "x$i" = "xAAL5PVC"; then
7406 if test "x$PARTIALTARGETOS" != "xlinux"; then
7407 echo
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
7413 echo
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
7419 echo
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"
7435 else
7436 echo
7437 { echo "configure: error: Cannot find file $transport_src to support SNMP transport domain $i." 1>&2; exit 1; }
7440 done
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
7449 #define $i 1
7452 done
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
7473 mkdir include
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
7489 mkdir snmplib
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
7497 echo
7498 { echo "configure: error: The USM security module is mandatory" 1>&2; exit 1; }
7500 else
7501 new_with_security="$new_with_security $i"
7503 done
7505 for i in $new_with_security; do
7506 cfile="snmp"$i".c"
7507 hfile="snmp"$i".h"
7509 # make sure support exists for it
7510 if test -f $srcdir"/snmplib/"$cfile -a -f $srcdir"/include/net-snmp/library/"$hfile; then
7512 else
7513 echo
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
7526 #define $def_name 1
7529 done
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
7553 else
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. */
7559 #include <assert.h>
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();
7565 int main() {
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)
7571 choke me
7572 #else
7573 krb5_c_encrypt();
7574 #endif
7576 ; return 0; }
7578 if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7579 rm -rf conftest*
7580 eval "ac_cv_func_krb5_c_encrypt=yes"
7581 else
7582 echo "configure: failed program was:" >&5
7583 cat conftest.$ac_ext >&5
7584 rm -rf conftest*
7585 eval "ac_cv_func_krb5_c_encrypt=no"
7587 rm -f conftest*
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
7598 else
7599 echo "$ac_t""no" 1>&6
7601 echo "$ac_t""old MIT crypto API" 1>&6
7605 done
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"
7612 module_list=""
7613 module_list_code=""
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
7632 mkdir agent
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
7638 rm -f $i
7639 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $i
7640 done
7642 test_modules="$new_module_list"
7643 new_module_list=""
7644 module_list_h=""
7646 for i in $test_modules
7648 if echo " $new_with_out_mib_modules " | grep " $i " > /dev/null; then
7650 else
7651 new_module_list="$new_module_list $i"
7653 done
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
7665 FD=6
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
7673 else
7674 if test -f $srcdir/$mibdir/$i.h; then
7675 new_list=""
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-//'`"
7684 done
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
7688 for j in $new_list
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
7700 else
7701 new_list_two="$new_list_two $j"
7703 done
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
7707 for j in $new_mibs
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
7715 else
7716 default_mibs_install="$default_mibs_install $j.txt"
7719 done
7721 else
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
7758 done
7759 new_module_list="$new_list_two"
7760 new_list_two=""
7761 done
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
7785 done
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
7804 else
7805 ac_cv_KERNEL_LOC="unknown"
7807 if test -c /dev/null; then
7808 CFLAG="-c"
7809 elif test -f /dev/null; then
7810 CFLAG="-f"
7811 else
7812 CFLAG="-f"
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"
7818 break;
7820 done
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
7840 else
7841 ac_cv_ETC_MNTTAB="unknown"
7842 for i in /etc/mnttab /etc/mtab /etc/filesystems
7844 if test -f $i; then
7845 ac_cv_ETC_MNTTAB="$i"
7846 break;
7848 done
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
7863 else
7866 if test -f /dev/kmem; then
7867 CTEST="test -f"
7868 elif test -c /dev/kmem; then
7869 CTEST="test -c"
7870 else
7871 CTEST="test -f"
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"
7878 else
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
7900 else
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. */
7909 char EF_Exit();
7911 int main() {
7912 EF_Exit()
7913 ; return 0; }
7915 if { (eval echo configure:7916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7916 rm -rf conftest*
7917 eval "ac_cv_lib_$ac_lib_var=yes"
7918 else
7919 echo "configure: failed program was:" >&5
7920 cat conftest.$ac_ext >&5
7921 rm -rf conftest*
7922 eval "ac_cv_lib_$ac_lib_var=no"
7924 rm -f conftest*
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"
7938 else
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
7949 else
7950 ac_save_LIBS="$LIBS"
7951 LIBS="-lm $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. */
7958 char asin();
7960 int main() {
7961 asin()
7962 ; return 0; }
7964 if { (eval echo configure:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7965 rm -rf conftest*
7966 eval "ac_cv_lib_$ac_lib_var=yes"
7967 else
7968 echo "configure: failed program was:" >&5
7969 cat conftest.$ac_ext >&5
7970 rm -rf conftest*
7971 eval "ac_cv_lib_$ac_lib_var=no"
7973 rm -f conftest*
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
7985 LIBS="-lm $LIBS"
7987 else
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
7996 else
7997 ac_save_LIBS="$LIBS"
7998 LIBS="-lelf $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. */
8005 char nlist();
8007 int main() {
8008 nlist()
8009 ; return 0; }
8011 if { (eval echo configure:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8012 rm -rf conftest*
8013 eval "ac_cv_lib_$ac_lib_var=yes"
8014 else
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8017 rm -rf conftest*
8018 eval "ac_cv_lib_$ac_lib_var=no"
8020 rm -f conftest*
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
8032 LIBS="-lelf $LIBS"
8034 else
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
8043 else
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. */
8049 #include <assert.h>
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();
8055 int main() {
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)
8061 choke me
8062 #else
8063 gethostbyname();
8064 #endif
8066 ; return 0; }
8068 if { (eval echo configure:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8069 rm -rf conftest*
8070 eval "ac_cv_func_gethostbyname=yes"
8071 else
8072 echo "configure: failed program was:" >&5
8073 cat conftest.$ac_ext >&5
8074 rm -rf conftest*
8075 eval "ac_cv_func_gethostbyname=no"
8077 rm -f conftest*
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
8086 else
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
8093 else
8094 ac_save_LIBS="$LIBS"
8095 LIBS="-lnsl $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();
8104 int main() {
8105 gethostbyname()
8106 ; return 0; }
8108 if { (eval echo configure:8109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8109 rm -rf conftest*
8110 eval "ac_cv_lib_$ac_lib_var=yes"
8111 else
8112 echo "configure: failed program was:" >&5
8113 cat conftest.$ac_ext >&5
8114 rm -rf conftest*
8115 eval "ac_cv_lib_$ac_lib_var=no"
8117 rm -f conftest*
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"
8128 else
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
8138 else
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. */
8144 #include <assert.h>
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();
8150 int main() {
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)
8156 choke me
8157 #else
8158 getservbyname();
8159 #endif
8161 ; return 0; }
8163 if { (eval echo configure:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8164 rm -rf conftest*
8165 eval "ac_cv_func_getservbyname=yes"
8166 else
8167 echo "configure: failed program was:" >&5
8168 cat conftest.$ac_ext >&5
8169 rm -rf conftest*
8170 eval "ac_cv_func_getservbyname=no"
8172 rm -f conftest*
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
8181 else
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
8188 else
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();
8199 int main() {
8200 getservbyname()
8201 ; return 0; }
8203 if { (eval echo configure:8204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8204 rm -rf conftest*
8205 eval "ac_cv_lib_$ac_lib_var=yes"
8206 else
8207 echo "configure: failed program was:" >&5
8208 cat conftest.$ac_ext >&5
8209 rm -rf conftest*
8210 eval "ac_cv_lib_$ac_lib_var=no"
8212 rm -f conftest*
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"
8223 else
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
8235 else
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();
8246 int main() {
8247 kstat_lookup()
8248 ; return 0; }
8250 if { (eval echo configure:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8251 rm -rf conftest*
8252 eval "ac_cv_lib_$ac_lib_var=yes"
8253 else
8254 echo "configure: failed program was:" >&5
8255 cat conftest.$ac_ext >&5
8256 rm -rf conftest*
8257 eval "ac_cv_lib_$ac_lib_var=no"
8259 rm -f conftest*
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"
8273 else
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
8282 else
8283 ac_save_LIBS="$LIBS"
8284 LIBS="-lmld $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. */
8291 char nlist();
8293 int main() {
8294 nlist()
8295 ; return 0; }
8297 if { (eval echo configure:8298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8298 rm -rf conftest*
8299 eval "ac_cv_lib_$ac_lib_var=yes"
8300 else
8301 echo "configure: failed program was:" >&5
8302 cat conftest.$ac_ext >&5
8303 rm -rf conftest*
8304 eval "ac_cv_lib_$ac_lib_var=no"
8306 rm -f conftest*
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
8318 LIBS="-lmld $LIBS"
8320 else
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
8332 else
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();
8343 int main() {
8344 RSAPrivateDecrypt()
8345 ; return 0; }
8347 if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8348 rm -rf conftest*
8349 eval "ac_cv_lib_$ac_lib_var=yes"
8350 else
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8353 rm -rf conftest*
8354 eval "ac_cv_lib_$ac_lib_var=no"
8356 rm -f conftest*
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"
8370 else
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
8379 else
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();
8390 int main() {
8391 RSA_PKCS1_RSAref()
8392 ; return 0; }
8394 if { (eval echo configure:8395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8395 rm -rf conftest*
8396 eval "ac_cv_lib_$ac_lib_var=yes"
8397 else
8398 echo "configure: failed program was:" >&5
8399 cat conftest.$ac_ext >&5
8400 rm -rf conftest*
8401 eval "ac_cv_lib_$ac_lib_var=no"
8403 rm -f conftest*
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"
8417 else
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
8428 else
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. */
8437 char EVP_md5();
8439 int main() {
8440 EVP_md5()
8441 ; return 0; }
8443 if { (eval echo configure:8444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8444 rm -rf conftest*
8445 eval "ac_cv_lib_$ac_lib_var=yes"
8446 else
8447 echo "configure: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8449 rm -rf conftest*
8450 eval "ac_cv_lib_$ac_lib_var=no"
8452 rm -f conftest*
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"
8466 else
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
8476 else
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. */
8482 #include <assert.h>
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. */
8486 char $ac_func();
8488 int main() {
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)
8494 choke me
8495 #else
8496 $ac_func();
8497 #endif
8499 ; return 0; }
8501 if { (eval echo configure:8502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8502 rm -rf conftest*
8503 eval "ac_cv_func_$ac_func=yes"
8504 else
8505 echo "configure: failed program was:" >&5
8506 cat conftest.$ac_ext >&5
8507 rm -rf conftest*
8508 eval "ac_cv_func_$ac_func=no"
8510 rm -f conftest*
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
8520 else
8521 echo "$ac_t""no" 1>&6
8523 done
8527 NONAGENTLIBS=$LIBS
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"
8542 _libs=${LIBS}
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
8548 else
8549 cat > conftest.$ac_ext <<EOF
8550 #line 8551 "configure"
8551 #include "confdefs.h"
8552 #include <tcpd.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
8558 rm -rf conftest*
8559 eval "ac_cv_header_$ac_safe=yes"
8560 else
8561 echo "$ac_err" >&5
8562 echo "configure: failed program was:" >&5
8563 cat conftest.$ac_ext >&5
8564 rm -rf conftest*
8565 eval "ac_cv_header_$ac_safe=no"
8567 rm -f conftest*
8569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8570 echo "$ac_t""yes" 1>&6
8572 else
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; }
8578 LIBS="$LIBS -lwrap"
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"
8584 #include <tcpd.h>
8585 int allow_severity = 0;
8586 int deny_severity = 0;
8588 int main() {
8589 hosts_access((void *)0)
8590 ; return 0; }
8592 if { (eval echo configure:8593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8593 rm -rf conftest*
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"
8602 else
8603 echo "configure: failed program was:" >&5
8604 cat conftest.$ac_ext >&5
8605 rm -rf conftest*
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
8612 else
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. */
8618 #include <assert.h>
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();
8624 int main() {
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)
8630 choke me
8631 #else
8632 yp_get_default_domain();
8633 #endif
8635 ; return 0; }
8637 if { (eval echo configure:8638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8638 rm -rf conftest*
8639 eval "ac_cv_func_yp_get_default_domain=yes"
8640 else
8641 echo "configure: failed program was:" >&5
8642 cat conftest.$ac_ext >&5
8643 rm -rf conftest*
8644 eval "ac_cv_func_yp_get_default_domain=no"
8646 rm -f conftest*
8649 if eval "test \"`echo '$ac_cv_func_'yp_get_default_domain`\" = yes"; then
8650 echo "$ac_t""yes" 1>&6
8652 else
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
8659 else
8660 ac_save_LIBS="$LIBS"
8661 LIBS="-lnsl $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();
8670 int main() {
8671 yp_get_default_domain()
8672 ; return 0; }
8674 if { (eval echo configure:8675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8675 rm -rf conftest*
8676 eval "ac_cv_lib_$ac_lib_var=yes"
8677 else
8678 echo "configure: failed program was:" >&5
8679 cat conftest.$ac_ext >&5
8680 rm -rf conftest*
8681 eval "ac_cv_lib_$ac_lib_var=no"
8683 rm -f conftest*
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
8695 LIBS="-lnsl $LIBS"
8697 else
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"
8708 #include <tcpd.h>
8709 int allow_severity = 0;
8710 int deny_severity = 0;
8712 int main() {
8713 hosts_access((void *)0)
8714 ; return 0; }
8716 if { (eval echo configure:8717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8717 rm -rf conftest*
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"
8725 else
8726 echo "configure: failed program was:" >&5
8727 cat conftest.$ac_ext >&5
8728 rm -rf conftest*
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; }
8732 rm -f conftest*
8735 rm -f conftest*
8736 CPPFLAGS=${_cppflags}
8737 LDFLAGS=${_ldflags}
8738 LIBS=${_libs}
8744 if echo " $module_list " | grep " host/hr_swinst " > /dev/null; then
8745 _rpmlibs=""
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
8767 else
8768 cat > conftest.$ac_ext <<EOF
8769 #line 8770 "configure"
8770 #include "confdefs.h"
8771 #include <zlib.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
8777 rm -rf conftest*
8778 eval "ac_cv_header_$ac_safe=yes"
8779 else
8780 echo "$ac_err" >&5
8781 echo "configure: failed program was:" >&5
8782 cat conftest.$ac_ext >&5
8783 rm -rf conftest*
8784 eval "ac_cv_header_$ac_safe=no"
8786 rm -f conftest*
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
8795 else
8796 ac_save_LIBS="$LIBS"
8797 LIBS="-lz $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. */
8804 char gzread();
8806 int main() {
8807 gzread()
8808 ; return 0; }
8810 if { (eval echo configure:8811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8811 rm -rf conftest*
8812 eval "ac_cv_lib_$ac_lib_var=yes"
8813 else
8814 echo "configure: failed program was:" >&5
8815 cat conftest.$ac_ext >&5
8816 rm -rf conftest*
8817 eval "ac_cv_lib_$ac_lib_var=no"
8819 rm -f conftest*
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
8831 LIBS="-lz $LIBS"
8833 else
8834 echo "$ac_t""no" 1>&6
8835 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
8838 else
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
8849 else
8850 ac_save_LIBS="$LIBS"
8851 LIBS="-lbz2 $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. */
8858 char bzread();
8860 int main() {
8861 bzread()
8862 ; return 0; }
8864 if { (eval echo configure:8865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8865 rm -rf conftest*
8866 eval "ac_cv_lib_$ac_lib_var=yes"
8867 else
8868 echo "configure: failed program was:" >&5
8869 cat conftest.$ac_ext >&5
8870 rm -rf conftest*
8871 eval "ac_cv_lib_$ac_lib_var=no"
8873 rm -f conftest*
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"
8880 else
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
8887 else
8888 ac_save_LIBS="$LIBS"
8889 LIBS="-lbz2 $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. */
8896 char BZ2_bzread();
8898 int main() {
8899 BZ2_bzread()
8900 ; return 0; }
8902 if { (eval echo configure:8903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8903 rm -rf conftest*
8904 eval "ac_cv_lib_$ac_lib_var=yes"
8905 else
8906 echo "configure: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8908 rm -rf conftest*
8909 eval "ac_cv_lib_$ac_lib_var=no"
8911 rm -f conftest*
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"
8918 else
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
8930 else
8931 ac_save_LIBS="$LIBS"
8932 LIBS="-ldb1 $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. */
8939 char dbopen();
8941 int main() {
8942 dbopen()
8943 ; return 0; }
8945 if { (eval echo configure:8946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8946 rm -rf conftest*
8947 eval "ac_cv_lib_$ac_lib_var=yes"
8948 else
8949 echo "configure: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8951 rm -rf conftest*
8952 eval "ac_cv_lib_$ac_lib_var=no"
8954 rm -f conftest*
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"
8961 else
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
8968 else
8969 ac_save_LIBS="$LIBS"
8970 LIBS="-ldb $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. */
8977 char dbopen();
8979 int main() {
8980 dbopen()
8981 ; return 0; }
8983 if { (eval echo configure:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8984 rm -rf conftest*
8985 eval "ac_cv_lib_$ac_lib_var=yes"
8986 else
8987 echo "configure: failed program was:" >&5
8988 cat conftest.$ac_ext >&5
8989 rm -rf conftest*
8990 eval "ac_cv_lib_$ac_lib_var=no"
8992 rm -f conftest*
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"
8999 else
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
9011 else
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. */
9020 char db_create();
9022 int main() {
9023 db_create()
9024 ; return 0; }
9026 if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9027 rm -rf conftest*
9028 eval "ac_cv_lib_$ac_lib_var=yes"
9029 else
9030 echo "configure: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9032 rm -rf conftest*
9033 eval "ac_cv_lib_$ac_lib_var=no"
9035 rm -f conftest*
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"
9042 else
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
9049 else
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. */
9058 char db_create();
9060 int main() {
9061 db_create()
9062 ; return 0; }
9064 if { (eval echo configure:9065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9065 rm -rf conftest*
9066 eval "ac_cv_lib_$ac_lib_var=yes"
9067 else
9068 echo "configure: failed program was:" >&5
9069 cat conftest.$ac_ext >&5
9070 rm -rf conftest*
9071 eval "ac_cv_lib_$ac_lib_var=no"
9073 rm -f conftest*
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"
9080 else
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
9092 else
9093 ac_save_LIBS="$LIBS"
9094 LIBS="-lpopt $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();
9103 int main() {
9104 poptParseArgvString()
9105 ; return 0; }
9107 if { (eval echo configure:9108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9108 rm -rf conftest*
9109 eval "ac_cv_lib_$ac_lib_var=yes"
9110 else
9111 echo "configure: failed program was:" >&5
9112 cat conftest.$ac_ext >&5
9113 rm -rf conftest*
9114 eval "ac_cv_lib_$ac_lib_var=no"
9116 rm -f conftest*
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"
9123 else
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
9133 else
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. */
9142 char Fopen();
9144 int main() {
9145 Fopen()
9146 ; return 0; }
9148 if { (eval echo configure:9149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9149 rm -rf conftest*
9150 eval "ac_cv_lib_$ac_lib_var=yes"
9151 else
9152 echo "configure: failed program was:" >&5
9153 cat conftest.$ac_ext >&5
9154 rm -rf conftest*
9155 eval "ac_cv_lib_$ac_lib_var=no"
9157 rm -f conftest*
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"
9164 else
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
9174 else
9175 ac_save_LIBS="$LIBS"
9176 LIBS="-lrpm $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();
9185 int main() {
9186 rpmGetFilesystemList()
9187 ; return 0; }
9189 if { (eval echo configure:9190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9190 rm -rf conftest*
9191 eval "ac_cv_lib_$ac_lib_var=yes"
9192 else
9193 echo "configure: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9195 rm -rf conftest*
9196 eval "ac_cv_lib_$ac_lib_var=no"
9198 rm -f conftest*
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"
9212 else
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
9220 else
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. */
9229 char rpmdbOpen();
9231 int main() {
9232 rpmdbOpen()
9233 ; return 0; }
9235 if { (eval echo configure:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9236 rm -rf conftest*
9237 eval "ac_cv_lib_$ac_lib_var=yes"
9238 else
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9241 rm -rf conftest*
9242 eval "ac_cv_lib_$ac_lib_var=no"
9244 rm -f conftest*
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"
9258 else
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
9272 else
9273 ac_save_LIBS="$LIBS"
9274 LIBS="-lkvm $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. */
9281 char kvm_read();
9283 int main() {
9284 kvm_read()
9285 ; return 0; }
9287 if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9288 rm -rf conftest*
9289 eval "ac_cv_lib_$ac_lib_var=yes"
9290 else
9291 echo "configure: failed program was:" >&5
9292 cat conftest.$ac_ext >&5
9293 rm -rf conftest*
9294 eval "ac_cv_lib_$ac_lib_var=no"
9296 rm -f conftest*
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
9308 LIBS="-lkvm $LIBS"
9310 else
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
9319 else
9320 ac_save_LIBS="$LIBS"
9321 LIBS="-ldl $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. */
9328 char dlopen();
9330 int main() {
9331 dlopen()
9332 ; return 0; }
9334 if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9335 rm -rf conftest*
9336 eval "ac_cv_lib_$ac_lib_var=yes"
9337 else
9338 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9340 rm -rf conftest*
9341 eval "ac_cv_lib_$ac_lib_var=no"
9343 rm -f conftest*
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
9355 LIBS="-ldl $LIBS"
9357 else
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
9367 else
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. */
9373 #include <assert.h>
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. */
9377 char $ac_func();
9379 int main() {
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)
9385 choke me
9386 #else
9387 $ac_func();
9388 #endif
9390 ; return 0; }
9392 if { (eval echo configure:9393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9393 rm -rf conftest*
9394 eval "ac_cv_func_$ac_func=yes"
9395 else
9396 echo "configure: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9398 rm -rf conftest*
9399 eval "ac_cv_func_$ac_func=no"
9401 rm -f conftest*
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
9411 else
9412 echo "$ac_t""no" 1>&6
9414 done
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
9423 else
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. */
9429 #include <assert.h>
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. */
9433 char $ac_func();
9435 int main() {
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)
9441 choke me
9442 #else
9443 $ac_func();
9444 #endif
9446 ; return 0; }
9448 if { (eval echo configure:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9449 rm -rf conftest*
9450 eval "ac_cv_func_$ac_func=yes"
9451 else
9452 echo "configure: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9454 rm -rf conftest*
9455 eval "ac_cv_func_$ac_func=no"
9457 rm -f conftest*
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
9467 else
9468 echo "$ac_t""no" 1>&6
9470 done
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
9478 else
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. */
9484 #include <assert.h>
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. */
9488 char getdevs();
9490 int main() {
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)
9496 choke me
9497 #else
9498 getdevs();
9499 #endif
9501 ; return 0; }
9503 if { (eval echo configure:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9504 rm -rf conftest*
9505 eval "ac_cv_func_getdevs=yes"
9506 else
9507 echo "configure: failed program was:" >&5
9508 cat conftest.$ac_ext >&5
9509 rm -rf conftest*
9510 eval "ac_cv_func_getdevs=no"
9512 rm -f conftest*
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
9521 else
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
9528 else
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. */
9537 char getdevs();
9539 int main() {
9540 getdevs()
9541 ; return 0; }
9543 if { (eval echo configure:9544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9544 rm -rf conftest*
9545 eval "ac_cv_lib_$ac_lib_var=yes"
9546 else
9547 echo "configure: failed program was:" >&5
9548 cat conftest.$ac_ext >&5
9549 rm -rf conftest*
9550 eval "ac_cv_lib_$ac_lib_var=no"
9552 rm -f conftest*
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"
9563 else
9564 echo "$ac_t""no" 1>&6
9573 if test "x$embed_perl" = "xyes" -a "x$install_perl" = "xno" ; then
9574 install_perl="yes"
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
9613 else
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. */
9619 #include <assert.h>
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. */
9623 char $ac_func();
9625 int main() {
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)
9631 choke me
9632 #else
9633 $ac_func();
9634 #endif
9636 ; return 0; }
9638 if { (eval echo configure:9639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9639 rm -rf conftest*
9640 eval "ac_cv_func_$ac_func=yes"
9641 else
9642 echo "configure: failed program was:" >&5
9643 cat conftest.$ac_ext >&5
9644 rm -rf conftest*
9645 eval "ac_cv_func_$ac_func=no"
9647 rm -f conftest*
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
9657 else
9658 echo "$ac_t""no" 1>&6
9660 done
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
9679 AGENTLIBS=$LIBS
9680 LIBS=$NONAGENTLIBS
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
9686 else
9687 cat > conftest.$ac_ext <<EOF
9688 #line 9689 "configure"
9689 #include "confdefs.h"
9690 #include <stdlib.h>
9691 #include <stdarg.h>
9692 #include <string.h>
9693 #include <float.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
9699 rm -rf conftest*
9700 ac_cv_header_stdc=yes
9701 else
9702 echo "$ac_err" >&5
9703 echo "configure: failed program was:" >&5
9704 cat conftest.$ac_ext >&5
9705 rm -rf conftest*
9706 ac_cv_header_stdc=no
9708 rm -f conftest*
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"
9715 #include <string.h>
9717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9718 egrep "memchr" >/dev/null 2>&1; then
9720 else
9721 rm -rf conftest*
9722 ac_cv_header_stdc=no
9724 rm -f conftest*
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"
9733 #include <stdlib.h>
9735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9736 egrep "free" >/dev/null 2>&1; then
9738 else
9739 rm -rf conftest*
9740 ac_cv_header_stdc=no
9742 rm -f conftest*
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
9750 else
9751 cat > conftest.$ac_ext <<EOF
9752 #line 9753 "configure"
9753 #include "confdefs.h"
9754 #include <ctype.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);
9760 exit (0); }
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
9764 then
9766 else
9767 echo "configure: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9769 rm -fr conftest*
9770 ac_cv_header_stdc=no
9772 rm -fr conftest*
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
9786 ac_header_dirent=no
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
9794 else
9795 cat > conftest.$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 #include <sys/types.h>
9799 #include <$ac_hdr>
9800 int main() {
9801 DIR *dirp = 0;
9802 ; return 0; }
9804 if { (eval echo configure:9805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9805 rm -rf conftest*
9806 eval "ac_cv_header_dirent_$ac_safe=yes"
9807 else
9808 echo "configure: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9810 rm -rf conftest*
9811 eval "ac_cv_header_dirent_$ac_safe=no"
9813 rm -f conftest*
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
9822 else
9823 echo "$ac_t""no" 1>&6
9825 done
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
9833 else
9834 ac_save_LIBS="$LIBS"
9835 LIBS="-ldir $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. */
9842 char opendir();
9844 int main() {
9845 opendir()
9846 ; return 0; }
9848 if { (eval echo configure:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9849 rm -rf conftest*
9850 eval "ac_cv_lib_$ac_lib_var=yes"
9851 else
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9854 rm -rf conftest*
9855 eval "ac_cv_lib_$ac_lib_var=no"
9857 rm -f conftest*
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
9863 LIBS="$LIBS -ldir"
9864 else
9865 echo "$ac_t""no" 1>&6
9868 else
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
9874 else
9875 ac_save_LIBS="$LIBS"
9876 LIBS="-lx $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. */
9883 char opendir();
9885 int main() {
9886 opendir()
9887 ; return 0; }
9889 if { (eval echo configure:9890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9890 rm -rf conftest*
9891 eval "ac_cv_lib_$ac_lib_var=yes"
9892 else
9893 echo "configure: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9895 rm -rf conftest*
9896 eval "ac_cv_lib_$ac_lib_var=no"
9898 rm -f conftest*
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
9904 LIBS="$LIBS -lx"
9905 else
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
9915 else
9916 cat > conftest.$ac_ext <<EOF
9917 #line 9918 "configure"
9918 #include "confdefs.h"
9919 #include <sys/types.h>
9920 #include <sys/wait.h>
9921 #ifndef WEXITSTATUS
9922 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9923 #endif
9924 #ifndef WIFEXITED
9925 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9926 #endif
9927 int main() {
9928 int s;
9929 wait (&s);
9930 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9931 ; return 0; }
9933 if { (eval echo configure:9934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9934 rm -rf conftest*
9935 ac_cv_header_sys_wait_h=yes
9936 else
9937 echo "configure: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9939 rm -rf conftest*
9940 ac_cv_header_sys_wait_h=no
9942 rm -f conftest*
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
9960 else
9961 cat > conftest.$ac_ext <<EOF
9962 #line 9963 "configure"
9963 #include "confdefs.h"
9964 #include <$ac_hdr>
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
9970 rm -rf conftest*
9971 eval "ac_cv_header_$ac_safe=yes"
9972 else
9973 echo "$ac_err" >&5
9974 echo "configure: failed program was:" >&5
9975 cat conftest.$ac_ext >&5
9976 rm -rf conftest*
9977 eval "ac_cv_header_$ac_safe=no"
9979 rm -f conftest*
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
9988 else
9989 echo "$ac_t""no" 1>&6
9991 done
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
10000 else
10001 cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure"
10003 #include "confdefs.h"
10004 #include <$ac_hdr>
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
10010 rm -rf conftest*
10011 eval "ac_cv_header_$ac_safe=yes"
10012 else
10013 echo "$ac_err" >&5
10014 echo "configure: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10016 rm -rf conftest*
10017 eval "ac_cv_header_$ac_safe=no"
10019 rm -f conftest*
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
10028 else
10029 echo "$ac_t""no" 1>&6
10031 done
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
10040 else
10041 cat > conftest.$ac_ext <<EOF
10042 #line 10043 "configure"
10043 #include "confdefs.h"
10044 #include <$ac_hdr>
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
10050 rm -rf conftest*
10051 eval "ac_cv_header_$ac_safe=yes"
10052 else
10053 echo "$ac_err" >&5
10054 echo "configure: failed program was:" >&5
10055 cat conftest.$ac_ext >&5
10056 rm -rf conftest*
10057 eval "ac_cv_header_$ac_safe=no"
10059 rm -f conftest*
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
10068 else
10069 echo "$ac_t""no" 1>&6
10071 done
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
10080 else
10081 cat > conftest.$ac_ext <<EOF
10082 #line 10083 "configure"
10083 #include "confdefs.h"
10084 #include <$ac_hdr>
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
10090 rm -rf conftest*
10091 eval "ac_cv_header_$ac_safe=yes"
10092 else
10093 echo "$ac_err" >&5
10094 echo "configure: failed program was:" >&5
10095 cat conftest.$ac_ext >&5
10096 rm -rf conftest*
10097 eval "ac_cv_header_$ac_safe=no"
10099 rm -f conftest*
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
10108 else
10109 echo "$ac_t""no" 1>&6
10111 done
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
10120 else
10121 cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10124 #include <$ac_hdr>
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
10130 rm -rf conftest*
10131 eval "ac_cv_header_$ac_safe=yes"
10132 else
10133 echo "$ac_err" >&5
10134 echo "configure: failed program was:" >&5
10135 cat conftest.$ac_ext >&5
10136 rm -rf conftest*
10137 eval "ac_cv_header_$ac_safe=no"
10139 rm -f conftest*
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
10148 else
10149 echo "$ac_t""no" 1>&6
10151 done
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
10160 else
10161 cat > conftest.$ac_ext <<EOF
10162 #line 10163 "configure"
10163 #include "confdefs.h"
10164 #include <$ac_hdr>
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
10170 rm -rf conftest*
10171 eval "ac_cv_header_$ac_safe=yes"
10172 else
10173 echo "$ac_err" >&5
10174 echo "configure: failed program was:" >&5
10175 cat conftest.$ac_ext >&5
10176 rm -rf conftest*
10177 eval "ac_cv_header_$ac_safe=no"
10179 rm -f conftest*
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
10188 else
10189 echo "$ac_t""no" 1>&6
10191 done
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
10200 else
10201 cat > conftest.$ac_ext <<EOF
10202 #line 10203 "configure"
10203 #include "confdefs.h"
10204 #include <$ac_hdr>
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
10210 rm -rf conftest*
10211 eval "ac_cv_header_$ac_safe=yes"
10212 else
10213 echo "$ac_err" >&5
10214 echo "configure: failed program was:" >&5
10215 cat conftest.$ac_ext >&5
10216 rm -rf conftest*
10217 eval "ac_cv_header_$ac_safe=no"
10219 rm -f conftest*
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
10228 else
10229 echo "$ac_t""no" 1>&6
10231 done
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
10240 else
10241 cat > conftest.$ac_ext <<EOF
10242 #line 10243 "configure"
10243 #include "confdefs.h"
10244 #include <$ac_hdr>
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
10250 rm -rf conftest*
10251 eval "ac_cv_header_$ac_safe=yes"
10252 else
10253 echo "$ac_err" >&5
10254 echo "configure: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10256 rm -rf conftest*
10257 eval "ac_cv_header_$ac_safe=no"
10259 rm -f conftest*
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
10268 else
10269 echo "$ac_t""no" 1>&6
10271 done
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
10280 else
10281 cat > conftest.$ac_ext <<EOF
10282 #line 10283 "configure"
10283 #include "confdefs.h"
10284 #include <$ac_hdr>
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
10290 rm -rf conftest*
10291 eval "ac_cv_header_$ac_safe=yes"
10292 else
10293 echo "$ac_err" >&5
10294 echo "configure: failed program was:" >&5
10295 cat conftest.$ac_ext >&5
10296 rm -rf conftest*
10297 eval "ac_cv_header_$ac_safe=no"
10299 rm -f conftest*
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
10308 else
10309 echo "$ac_t""no" 1>&6
10311 done
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
10320 else
10321 cat > conftest.$ac_ext <<EOF
10322 #line 10323 "configure"
10323 #include "confdefs.h"
10324 #include <$ac_hdr>
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
10330 rm -rf conftest*
10331 eval "ac_cv_header_$ac_safe=yes"
10332 else
10333 echo "$ac_err" >&5
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10336 rm -rf conftest*
10337 eval "ac_cv_header_$ac_safe=no"
10339 rm -f conftest*
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
10348 else
10349 echo "$ac_t""no" 1>&6
10351 done
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
10360 else
10361 cat > conftest.$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10364 #include <$ac_hdr>
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
10370 rm -rf conftest*
10371 eval "ac_cv_header_$ac_safe=yes"
10372 else
10373 echo "$ac_err" >&5
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10376 rm -rf conftest*
10377 eval "ac_cv_header_$ac_safe=no"
10379 rm -f conftest*
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
10388 else
10389 echo "$ac_t""no" 1>&6
10391 done
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
10400 else
10401 cat > conftest.$ac_ext <<EOF
10402 #line 10403 "configure"
10403 #include "confdefs.h"
10404 #include <$ac_hdr>
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
10410 rm -rf conftest*
10411 eval "ac_cv_header_$ac_safe=yes"
10412 else
10413 echo "$ac_err" >&5
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10416 rm -rf conftest*
10417 eval "ac_cv_header_$ac_safe=no"
10419 rm -f conftest*
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
10432 else
10433 ac_save_LIBS="$LIBS"
10434 LIBS="-ladm $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. */
10441 char pkginfo();
10443 int main() {
10444 pkginfo()
10445 ; return 0; }
10447 if { (eval echo configure:10448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10448 rm -rf conftest*
10449 eval "ac_cv_lib_$ac_lib_var=yes"
10450 else
10451 echo "configure: failed program was:" >&5
10452 cat conftest.$ac_ext >&5
10453 rm -rf conftest*
10454 eval "ac_cv_lib_$ac_lib_var=no"
10456 rm -f conftest*
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"
10468 else
10469 echo "$ac_t""no" 1>&6
10472 else
10473 echo "$ac_t""no" 1>&6
10475 done
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
10484 else
10485 cat > conftest.$ac_ext <<EOF
10486 #line 10487 "configure"
10487 #include "confdefs.h"
10488 #include <$ac_hdr>
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
10494 rm -rf conftest*
10495 eval "ac_cv_header_$ac_safe=yes"
10496 else
10497 echo "$ac_err" >&5
10498 echo "configure: failed program was:" >&5
10499 cat conftest.$ac_ext >&5
10500 rm -rf conftest*
10501 eval "ac_cv_header_$ac_safe=no"
10503 rm -f conftest*
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"
10512 else
10513 echo "$ac_t""no" 1>&6
10515 done
10517 for ac_hdr in io.h
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
10524 else
10525 cat > conftest.$ac_ext <<EOF
10526 #line 10527 "configure"
10527 #include "confdefs.h"
10528 #include <$ac_hdr>
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
10534 rm -rf conftest*
10535 eval "ac_cv_header_$ac_safe=yes"
10536 else
10537 echo "$ac_err" >&5
10538 echo "configure: failed program was:" >&5
10539 cat conftest.$ac_ext >&5
10540 rm -rf conftest*
10541 eval "ac_cv_header_$ac_safe=no"
10543 rm -f conftest*
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
10552 else
10553 echo "$ac_t""no" 1>&6
10555 done
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
10564 else
10565 cat > conftest.$ac_ext <<EOF
10566 #line 10567 "configure"
10567 #include "confdefs.h"
10568 #include <$ac_hdr>
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
10574 rm -rf conftest*
10575 eval "ac_cv_header_$ac_safe=yes"
10576 else
10577 echo "$ac_err" >&5
10578 echo "configure: failed program was:" >&5
10579 cat conftest.$ac_ext >&5
10580 rm -rf conftest*
10581 eval "ac_cv_header_$ac_safe=no"
10583 rm -f conftest*
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
10592 else
10593 echo "$ac_t""no" 1>&6
10595 done
10597 for ac_hdr in netinet/ip6.h netinet6/in6_var.h netinet6/in6_pcb.h netinet6/ip6_var.h netinet6/tcp6.h netinet6/tcp6_fsm.h netinet6/nd6.h netinet6/tcp6_timer.h netinet6/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
10604 else
10605 cat > conftest.$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10608 #include <$ac_hdr>
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
10614 rm -rf conftest*
10615 eval "ac_cv_header_$ac_safe=yes"
10616 else
10617 echo "$ac_err" >&5
10618 echo "configure: failed program was:" >&5
10619 cat conftest.$ac_ext >&5
10620 rm -rf conftest*
10621 eval "ac_cv_header_$ac_safe=no"
10623 rm -f conftest*
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
10632 else
10633 echo "$ac_t""no" 1>&6
10635 done
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
10644 else
10645 cat > conftest.$ac_ext <<EOF
10646 #line 10647 "configure"
10647 #include "confdefs.h"
10648 #include <$ac_hdr>
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
10654 rm -rf conftest*
10655 eval "ac_cv_header_$ac_safe=yes"
10656 else
10657 echo "$ac_err" >&5
10658 echo "configure: failed program was:" >&5
10659 cat conftest.$ac_ext >&5
10660 rm -rf conftest*
10661 eval "ac_cv_header_$ac_safe=no"
10663 rm -f conftest*
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
10672 else
10673 echo "$ac_t""no" 1>&6
10675 done
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
10684 else
10685 cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10688 #include <$ac_hdr>
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
10694 rm -rf conftest*
10695 eval "ac_cv_header_$ac_safe=yes"
10696 else
10697 echo "$ac_err" >&5
10698 echo "configure: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10700 rm -rf conftest*
10701 eval "ac_cv_header_$ac_safe=no"
10703 rm -f conftest*
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
10712 else
10713 echo "$ac_t""no" 1>&6
10715 done
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
10726 else
10727 cat > conftest.$ac_ext <<EOF
10728 #line 10729 "configure"
10729 #include "confdefs.h"
10730 #include <$ac_hdr>
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
10736 rm -rf conftest*
10737 eval "ac_cv_header_$ac_safe=yes"
10738 else
10739 echo "$ac_err" >&5
10740 echo "configure: failed program was:" >&5
10741 cat conftest.$ac_ext >&5
10742 rm -rf conftest*
10743 eval "ac_cv_header_$ac_safe=no"
10745 rm -f conftest*
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
10754 else
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
10763 else
10764 cat > conftest.$ac_ext <<EOF
10765 #line 10766 "configure"
10766 #include "confdefs.h"
10767 #include <$ac_hdr>
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
10773 rm -rf conftest*
10774 eval "ac_cv_header_$ac_safe=yes"
10775 else
10776 echo "$ac_err" >&5
10777 echo "configure: failed program was:" >&5
10778 cat conftest.$ac_ext >&5
10779 rm -rf conftest*
10780 eval "ac_cv_header_$ac_safe=no"
10782 rm -f conftest*
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"
10791 else
10792 echo "$ac_t""no" 1>&6
10794 done
10798 done
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
10806 else
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
10819 rm -rf conftest*
10820 cv_have_netinet_in_pcb_h=yes
10821 else
10822 echo "$ac_err" >&5
10823 echo "configure: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10825 rm -rf conftest*
10826 cv_have_netinet_in_pcb_h=no
10828 rm -f conftest*
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
10843 else
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
10856 rm -rf conftest*
10857 cv_have_sys_disklabel_h=yes
10858 else
10859 echo "$ac_err" >&5
10860 echo "configure: failed program was:" >&5
10861 cat conftest.$ac_ext >&5
10862 rm -rf conftest*
10863 cv_have_sys_disklabel_h=no
10865 rm -f conftest*
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
10883 else
10884 cat > conftest.$ac_ext <<EOF
10885 #line 10886 "configure"
10886 #include "confdefs.h"
10887 #include <$ac_hdr>
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
10893 rm -rf conftest*
10894 eval "ac_cv_header_$ac_safe=yes"
10895 else
10896 echo "$ac_err" >&5
10897 echo "configure: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10899 rm -rf conftest*
10900 eval "ac_cv_header_$ac_safe=no"
10902 rm -f conftest*
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
10911 else
10912 echo "$ac_t""no" 1>&6
10914 done
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
10923 else
10924 case "$LPSTAT_PATH" in
10926 ac_cv_path_LPSTAT_PATH="$LPSTAT_PATH" # Let the user override the test with a path.
10928 ?:/*)
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=":"
10933 ac_dummy="$PATH"
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"
10938 break
10940 done
10941 IFS="$ac_save_ifs"
10943 esac
10945 LPSTAT_PATH="$ac_cv_path_LPSTAT_PATH"
10946 if test -n "$LPSTAT_PATH"; then
10947 echo "$ac_t""$LPSTAT_PATH" 1>&6
10948 else
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
10968 else
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. */
10978 char $ac_func();
10980 int main() {
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)
10986 choke me
10987 #else
10988 $ac_func();
10989 #endif
10991 ; return 0; }
10993 if { (eval echo configure:10994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10994 rm -rf conftest*
10995 eval "ac_cv_func_$ac_func=yes"
10996 else
10997 echo "configure: failed program was:" >&5
10998 cat conftest.$ac_ext >&5
10999 rm -rf conftest*
11000 eval "ac_cv_func_$ac_func=no"
11002 rm -f conftest*
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
11012 else
11013 echo "$ac_t""no" 1>&6
11015 done
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
11031 authmodes="MD5"
11032 encrmodes=""
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; }
11037 else
11038 if test "x$tryopenssl" = "xno"; then
11039 authmodes="MD5"
11040 encrmodes=""
11041 cat >> confdefs.h <<\EOF
11042 #define USE_INTERNAL_MD5 1
11045 echo "$ac_t""Internal MD5 Support" 1>&6
11046 else
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"
11051 else
11052 encrmodes="DES"
11054 else
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
11080 else
11081 cat > conftest.$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11084 #include <sys/types.h>
11085 #if STDC_HEADERS
11086 #include <stdlib.h>
11087 #include <stddef.h>
11088 #endif
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
11092 rm -rf conftest*
11093 ac_cv_type_off_t=yes
11094 else
11095 rm -rf conftest*
11096 ac_cv_type_off_t=no
11098 rm -f conftest*
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
11104 #define off_t long
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
11113 else
11114 cat > conftest.$ac_ext <<EOF
11115 #line 11116 "configure"
11116 #include "confdefs.h"
11117 #include <sys/types.h>
11118 #if STDC_HEADERS
11119 #include <stdlib.h>
11120 #include <stddef.h>
11121 #endif
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
11125 rm -rf conftest*
11126 ac_cv_type_pid_t=yes
11127 else
11128 rm -rf conftest*
11129 ac_cv_type_pid_t=no
11131 rm -f conftest*
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
11137 #define pid_t int
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
11146 else
11147 cat > conftest.$ac_ext <<EOF
11148 #line 11149 "configure"
11149 #include "confdefs.h"
11150 #include <sys/types.h>
11151 #include <sys/time.h>
11152 #include <time.h>
11153 int main() {
11154 struct tm *tp;
11155 ; return 0; }
11157 if { (eval echo configure:11158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11158 rm -rf conftest*
11159 ac_cv_header_time=yes
11160 else
11161 echo "configure: failed program was:" >&5
11162 cat conftest.$ac_ext >&5
11163 rm -rf conftest*
11164 ac_cv_header_time=no
11166 rm -f conftest*
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
11182 else
11183 cat > conftest.$ac_ext <<EOF
11184 #line 11185 "configure"
11185 #include "confdefs.h"
11186 #include <sys/types.h>
11187 #if STDC_HEADERS
11188 #include <stdlib.h>
11189 #include <stddef.h>
11190 #endif
11191 #ifdef HAVE_SYS_SOCKET_H
11192 #include <sys/socket.h>
11193 #endif
11195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11196 egrep "socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11197 rm -rf conftest*
11198 ac_cv_type_socklen_t=yes
11199 else
11200 rm -rf conftest*
11201 ac_cv_type_socklen_t=no
11203 rm -f conftest*
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
11219 else
11220 cat > conftest.$ac_ext <<EOF
11221 #line 11222 "configure"
11222 #include "confdefs.h"
11223 #include <sys/types.h>
11224 #if STDC_HEADERS
11225 #include <stdlib.h>
11226 #include <stddef.h>
11227 #endif
11228 #ifdef HAVE_NETINET_IN_H
11229 #include <netinet/in.h>
11230 #endif
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
11234 rm -rf conftest*
11235 ac_cv_type_in_addr_t=yes
11236 else
11237 rm -rf conftest*
11238 ac_cv_type_in_addr_t=no
11240 rm -f conftest*
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
11256 else
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"
11269 else
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; }
11294 else
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
11302 else
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>
11310 int main() {
11312 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11313 bogus endian macros
11314 #endif
11315 ; return 0; }
11317 if { (eval echo configure:11318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11318 rm -rf conftest*
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>
11325 int main() {
11327 #if BYTE_ORDER != BIG_ENDIAN
11328 not big endian
11329 #endif
11330 ; return 0; }
11332 if { (eval echo configure:11333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11333 rm -rf conftest*
11334 ac_cv_c_bigendian=yes
11335 else
11336 echo "configure: failed program was:" >&5
11337 cat conftest.$ac_ext >&5
11338 rm -rf conftest*
11339 ac_cv_c_bigendian=no
11341 rm -f conftest*
11342 else
11343 echo "configure: failed program was:" >&5
11344 cat conftest.$ac_ext >&5
11346 rm -f conftest*
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; }
11350 else
11351 cat > conftest.$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11354 main () {
11355 /* Are we little or big endian? From Harbison&Steele. */
11356 union
11358 long l;
11359 char c[sizeof (long)];
11360 } u;
11361 u.l = 1;
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
11366 then
11367 ac_cv_c_bigendian=no
11368 else
11369 echo "configure: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11371 rm -fr conftest*
11372 ac_cv_c_bigendian=yes
11374 rm -fr conftest*
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
11396 else
11397 cat > conftest.$ac_ext <<EOF
11398 #line 11399 "configure"
11399 #include "confdefs.h"
11400 #include <alloca.h>
11401 int main() {
11402 char *p = alloca(2 * sizeof(int));
11403 ; return 0; }
11405 if { (eval echo configure:11406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11406 rm -rf conftest*
11407 ac_cv_header_alloca_h=yes
11408 else
11409 echo "configure: failed program was:" >&5
11410 cat conftest.$ac_ext >&5
11411 rm -rf conftest*
11412 ac_cv_header_alloca_h=no
11414 rm -f conftest*
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
11429 else
11430 cat > conftest.$ac_ext <<EOF
11431 #line 11432 "configure"
11432 #include "confdefs.h"
11434 #ifdef __GNUC__
11435 # define alloca __builtin_alloca
11436 #else
11437 # ifdef _MSC_VER
11438 # include <malloc.h>
11439 # define alloca _alloca
11440 # else
11441 # if HAVE_ALLOCA_H
11442 # include <alloca.h>
11443 # else
11444 # ifdef _AIX
11445 #pragma alloca
11446 # else
11447 # ifndef alloca /* predefined by HP cc +Olibcalls */
11448 char *alloca ();
11449 # endif
11450 # endif
11451 # endif
11452 # endif
11453 #endif
11455 int main() {
11456 char *p = (char *) alloca(1);
11457 ; return 0; }
11459 if { (eval echo configure:11460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11460 rm -rf conftest*
11461 ac_cv_func_alloca_works=yes
11462 else
11463 echo "configure: failed program was:" >&5
11464 cat conftest.$ac_ext >&5
11465 rm -rf conftest*
11466 ac_cv_func_alloca_works=no
11468 rm -f conftest*
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
11486 #define C_ALLOCA 1
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
11494 else
11495 cat > conftest.$ac_ext <<EOF
11496 #line 11497 "configure"
11497 #include "confdefs.h"
11498 #if defined(CRAY) && ! defined(CRAY2)
11499 webecray
11500 #else
11501 wenotbecray
11502 #endif
11505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11506 egrep "webecray" >/dev/null 2>&1; then
11507 rm -rf conftest*
11508 ac_cv_os_cray=yes
11509 else
11510 rm -rf conftest*
11511 ac_cv_os_cray=no
11513 rm -f conftest*
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
11524 else
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. */
11534 char $ac_func();
11536 int main() {
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)
11542 choke me
11543 #else
11544 $ac_func();
11545 #endif
11547 ; return 0; }
11549 if { (eval echo configure:11550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11550 rm -rf conftest*
11551 eval "ac_cv_func_$ac_func=yes"
11552 else
11553 echo "configure: failed program was:" >&5
11554 cat conftest.$ac_ext >&5
11555 rm -rf conftest*
11556 eval "ac_cv_func_$ac_func=no"
11558 rm -f conftest*
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
11567 break
11568 else
11569 echo "$ac_t""no" 1>&6
11572 done
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
11579 else
11580 if test "$cross_compiling" = yes; then
11581 ac_cv_c_stack_direction=0
11582 else
11583 cat > conftest.$ac_ext <<EOF
11584 #line 11585 "configure"
11585 #include "confdefs.h"
11586 find_stack_direction ()
11588 static char *addr = 0;
11589 auto char dummy;
11590 if (addr == 0)
11592 addr = &dummy;
11593 return find_stack_direction ();
11595 else
11596 return (&dummy > addr) ? 1 : -1;
11598 main ()
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
11604 then
11605 ac_cv_c_stack_direction=1
11606 else
11607 echo "configure: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 rm -fr conftest*
11610 ac_cv_c_stack_direction=-1
11612 rm -fr conftest*
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
11629 else
11630 ac_pattern="Autoconf.*'x'"
11631 cat > conftest.$ac_ext <<EOF
11632 #line 11633 "configure"
11633 #include "confdefs.h"
11634 #include <sgtty.h>
11635 Autoconf TIOCGETP
11637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11638 egrep "$ac_pattern" >/dev/null 2>&1; then
11639 rm -rf conftest*
11640 ac_cv_prog_gcc_traditional=yes
11641 else
11642 rm -rf conftest*
11643 ac_cv_prog_gcc_traditional=no
11645 rm -f conftest*
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>
11653 Autoconf TCGETA
11655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11656 egrep "$ac_pattern" >/dev/null 2>&1; then
11657 rm -rf conftest*
11658 ac_cv_prog_gcc_traditional=yes
11660 rm -f conftest*
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
11675 else
11676 if test "$cross_compiling" = yes; then
11677 ac_cv_func_memcmp_clean=no
11678 else
11679 cat > conftest.$ac_ext <<EOF
11680 #line 11681 "configure"
11681 #include "confdefs.h"
11683 main()
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
11691 then
11692 ac_cv_func_memcmp_clean=yes
11693 else
11694 echo "configure: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11696 rm -fr conftest*
11697 ac_cv_func_memcmp_clean=no
11699 rm -fr conftest*
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
11711 else
11712 cat > conftest.$ac_ext <<EOF
11713 #line 11714 "configure"
11714 #include "confdefs.h"
11715 #include <sys/types.h>
11716 #include <signal.h>
11717 #ifdef signal
11718 #undef signal
11719 #endif
11720 #ifdef __cplusplus
11721 extern "C" void (*signal (int, void (*)(int)))(int);
11722 #else
11723 void (*signal ()) ();
11724 #endif
11726 int main() {
11727 int i;
11728 ; return 0; }
11730 if { (eval echo configure:11731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11731 rm -rf conftest*
11732 ac_cv_type_signal=void
11733 else
11734 echo "configure: failed program was:" >&5
11735 cat conftest.$ac_ext >&5
11736 rm -rf conftest*
11737 ac_cv_type_signal=int
11739 rm -f conftest*
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
11754 else
11755 ac_save_LIBS="$LIBS"
11756 LIBS="-lsun $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. */
11763 char getmntent();
11765 int main() {
11766 getmntent()
11767 ; return 0; }
11769 if { (eval echo configure:11770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11770 rm -rf conftest*
11771 eval "ac_cv_lib_$ac_lib_var=yes"
11772 else
11773 echo "configure: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 rm -rf conftest*
11776 eval "ac_cv_lib_$ac_lib_var=no"
11778 rm -f conftest*
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
11784 LIBS="-lsun $LIBS"
11785 else
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
11792 else
11793 ac_save_LIBS="$LIBS"
11794 LIBS="-lseq $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. */
11801 char getmntent();
11803 int main() {
11804 getmntent()
11805 ; return 0; }
11807 if { (eval echo configure:11808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11808 rm -rf conftest*
11809 eval "ac_cv_lib_$ac_lib_var=yes"
11810 else
11811 echo "configure: failed program was:" >&5
11812 cat conftest.$ac_ext >&5
11813 rm -rf conftest*
11814 eval "ac_cv_lib_$ac_lib_var=no"
11816 rm -f conftest*
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
11822 LIBS="-lseq $LIBS"
11823 else
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
11830 else
11831 ac_save_LIBS="$LIBS"
11832 LIBS="-lgen $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. */
11839 char getmntent();
11841 int main() {
11842 getmntent()
11843 ; return 0; }
11845 if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11846 rm -rf conftest*
11847 eval "ac_cv_lib_$ac_lib_var=yes"
11848 else
11849 echo "configure: failed program was:" >&5
11850 cat conftest.$ac_ext >&5
11851 rm -rf conftest*
11852 eval "ac_cv_lib_$ac_lib_var=no"
11854 rm -f conftest*
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
11860 LIBS="-lgen $LIBS"
11861 else
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
11873 else
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. */
11883 char getmntent();
11885 int main() {
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)
11891 choke me
11892 #else
11893 getmntent();
11894 #endif
11896 ; return 0; }
11898 if { (eval echo configure:11899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11899 rm -rf conftest*
11900 eval "ac_cv_func_getmntent=yes"
11901 else
11902 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11904 rm -rf conftest*
11905 eval "ac_cv_func_getmntent=no"
11907 rm -f conftest*
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
11916 else
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
11926 else
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. */
11936 char $ac_func();
11938 int main() {
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)
11944 choke me
11945 #else
11946 $ac_func();
11947 #endif
11949 ; return 0; }
11951 if { (eval echo configure:11952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11952 rm -rf conftest*
11953 eval "ac_cv_func_$ac_func=yes"
11954 else
11955 echo "configure: failed program was:" >&5
11956 cat conftest.$ac_ext >&5
11957 rm -rf conftest*
11958 eval "ac_cv_func_$ac_func=no"
11960 rm -f conftest*
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
11970 else
11971 echo "$ac_t""no" 1>&6
11973 done
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
11981 else
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. */
11991 char $ac_func();
11993 int main() {
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)
11999 choke me
12000 #else
12001 $ac_func();
12002 #endif
12004 ; return 0; }
12006 if { (eval echo configure:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12007 rm -rf conftest*
12008 eval "ac_cv_func_$ac_func=yes"
12009 else
12010 echo "configure: failed program was:" >&5
12011 cat conftest.$ac_ext >&5
12012 rm -rf conftest*
12013 eval "ac_cv_func_$ac_func=no"
12015 rm -f conftest*
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
12025 else
12026 echo "$ac_t""no" 1>&6
12028 done
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
12036 else
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. */
12046 char $ac_func();
12048 int main() {
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)
12054 choke me
12055 #else
12056 $ac_func();
12057 #endif
12059 ; return 0; }
12061 if { (eval echo configure:12062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12062 rm -rf conftest*
12063 eval "ac_cv_func_$ac_func=yes"
12064 else
12065 echo "configure: failed program was:" >&5
12066 cat conftest.$ac_ext >&5
12067 rm -rf conftest*
12068 eval "ac_cv_func_$ac_func=no"
12070 rm -f conftest*
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
12080 else
12081 echo "$ac_t""no" 1>&6
12083 done
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
12091 else
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. */
12101 char $ac_func();
12103 int main() {
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)
12109 choke me
12110 #else
12111 $ac_func();
12112 #endif
12114 ; return 0; }
12116 if { (eval echo configure:12117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12117 rm -rf conftest*
12118 eval "ac_cv_func_$ac_func=yes"
12119 else
12120 echo "configure: failed program was:" >&5
12121 cat conftest.$ac_ext >&5
12122 rm -rf conftest*
12123 eval "ac_cv_func_$ac_func=no"
12125 rm -f conftest*
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
12135 else
12136 echo "$ac_t""no" 1>&6
12138 done
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
12146 else
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. */
12156 char $ac_func();
12158 int main() {
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)
12164 choke me
12165 #else
12166 $ac_func();
12167 #endif
12169 ; return 0; }
12171 if { (eval echo configure:12172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12172 rm -rf conftest*
12173 eval "ac_cv_func_$ac_func=yes"
12174 else
12175 echo "configure: failed program was:" >&5
12176 cat conftest.$ac_ext >&5
12177 rm -rf conftest*
12178 eval "ac_cv_func_$ac_func=no"
12180 rm -f conftest*
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
12190 else
12191 echo "$ac_t""no" 1>&6
12193 done
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
12201 else
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. */
12211 char $ac_func();
12213 int main() {
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)
12219 choke me
12220 #else
12221 $ac_func();
12222 #endif
12224 ; return 0; }
12226 if { (eval echo configure:12227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12227 rm -rf conftest*
12228 eval "ac_cv_func_$ac_func=yes"
12229 else
12230 echo "configure: failed program was:" >&5
12231 cat conftest.$ac_ext >&5
12232 rm -rf conftest*
12233 eval "ac_cv_func_$ac_func=no"
12235 rm -f conftest*
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
12245 else
12246 echo "$ac_t""no" 1>&6
12248 done
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
12256 else
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. */
12266 char $ac_func();
12268 int main() {
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)
12274 choke me
12275 #else
12276 $ac_func();
12277 #endif
12279 ; return 0; }
12281 if { (eval echo configure:12282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12282 rm -rf conftest*
12283 eval "ac_cv_func_$ac_func=yes"
12284 else
12285 echo "configure: failed program was:" >&5
12286 cat conftest.$ac_ext >&5
12287 rm -rf conftest*
12288 eval "ac_cv_func_$ac_func=no"
12290 rm -f conftest*
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
12300 else
12301 echo "$ac_t""no" 1>&6
12303 done
12305 if echo " $module_list " | grep " host/hr_swinst " > /dev/null; then
12306 OLDLIBS=$LIBS
12307 LIBS=$AGENTLIBS
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
12314 else
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. */
12324 char $ac_func();
12326 int main() {
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)
12332 choke me
12333 #else
12334 $ac_func();
12335 #endif
12337 ; return 0; }
12339 if { (eval echo configure:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12340 rm -rf conftest*
12341 eval "ac_cv_func_$ac_func=yes"
12342 else
12343 echo "configure: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 rm -rf conftest*
12346 eval "ac_cv_func_$ac_func=no"
12348 rm -f conftest*
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
12358 else
12359 echo "$ac_t""no" 1>&6
12361 done
12363 LIBS=$OLDLIBS
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
12372 else
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. */
12382 char $ac_func();
12384 int main() {
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)
12390 choke me
12391 #else
12392 $ac_func();
12393 #endif
12395 ; return 0; }
12397 if { (eval echo configure:12398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12398 rm -rf conftest*
12399 eval "ac_cv_func_$ac_func=yes"
12400 else
12401 echo "configure: failed program was:" >&5
12402 cat conftest.$ac_ext >&5
12403 rm -rf conftest*
12404 eval "ac_cv_func_$ac_func=no"
12406 rm -f conftest*
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
12416 else
12417 echo "$ac_t""no" 1>&6
12419 done
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
12427 else
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. */
12437 char $ac_func();
12439 int main() {
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)
12445 choke me
12446 #else
12447 $ac_func();
12448 #endif
12450 ; return 0; }
12452 if { (eval echo configure:12453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12453 rm -rf conftest*
12454 eval "ac_cv_func_$ac_func=yes"
12455 else
12456 echo "configure: failed program was:" >&5
12457 cat conftest.$ac_ext >&5
12458 rm -rf conftest*
12459 eval "ac_cv_func_$ac_func=no"
12461 rm -f conftest*
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
12471 else
12472 echo "$ac_t""no" 1>&6
12474 done
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
12482 else
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. */
12492 char $ac_func();
12494 int main() {
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)
12500 choke me
12501 #else
12502 $ac_func();
12503 #endif
12505 ; return 0; }
12507 if { (eval echo configure:12508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12508 rm -rf conftest*
12509 eval "ac_cv_func_$ac_func=yes"
12510 else
12511 echo "configure: failed program was:" >&5
12512 cat conftest.$ac_ext >&5
12513 rm -rf conftest*
12514 eval "ac_cv_func_$ac_func=no"
12516 rm -f conftest*
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
12526 else
12527 echo "$ac_t""no" 1>&6
12529 done
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
12537 else
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. */
12547 char $ac_func();
12549 int main() {
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)
12555 choke me
12556 #else
12557 $ac_func();
12558 #endif
12560 ; return 0; }
12562 if { (eval echo configure:12563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12563 rm -rf conftest*
12564 eval "ac_cv_func_$ac_func=yes"
12565 else
12566 echo "configure: failed program was:" >&5
12567 cat conftest.$ac_ext >&5
12568 rm -rf conftest*
12569 eval "ac_cv_func_$ac_func=no"
12571 rm -f conftest*
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
12581 else
12582 echo "$ac_t""no" 1>&6
12584 done
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
12592 else
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. */
12602 char $ac_func();
12604 int main() {
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)
12610 choke me
12611 #else
12612 $ac_func();
12613 #endif
12615 ; return 0; }
12617 if { (eval echo configure:12618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12618 rm -rf conftest*
12619 eval "ac_cv_func_$ac_func=yes"
12620 else
12621 echo "configure: failed program was:" >&5
12622 cat conftest.$ac_ext >&5
12623 rm -rf conftest*
12624 eval "ac_cv_func_$ac_func=no"
12626 rm -f conftest*
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
12636 else
12637 echo "$ac_t""no" 1>&6
12639 done
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
12647 else
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. */
12657 char $ac_func();
12659 int main() {
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)
12665 choke me
12666 #else
12667 $ac_func();
12668 #endif
12670 ; return 0; }
12672 if { (eval echo configure:12673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12673 rm -rf conftest*
12674 eval "ac_cv_func_$ac_func=yes"
12675 else
12676 echo "configure: failed program was:" >&5
12677 cat conftest.$ac_ext >&5
12678 rm -rf conftest*
12679 eval "ac_cv_func_$ac_func=no"
12681 rm -f conftest*
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
12691 else
12692 echo "$ac_t""no" 1>&6
12694 done
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
12702 else
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. */
12712 char $ac_func();
12714 int main() {
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)
12720 choke me
12721 #else
12722 $ac_func();
12723 #endif
12725 ; return 0; }
12727 if { (eval echo configure:12728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12728 rm -rf conftest*
12729 eval "ac_cv_func_$ac_func=yes"
12730 else
12731 echo "configure: failed program was:" >&5
12732 cat conftest.$ac_ext >&5
12733 rm -rf conftest*
12734 eval "ac_cv_func_$ac_func=no"
12736 rm -f conftest*
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
12746 else
12747 echo "$ac_t""no" 1>&6
12749 done
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
12757 else
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. */
12767 char $ac_func();
12769 int main() {
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)
12775 choke me
12776 #else
12777 $ac_func();
12778 #endif
12780 ; return 0; }
12782 if { (eval echo configure:12783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12783 rm -rf conftest*
12784 eval "ac_cv_func_$ac_func=yes"
12785 else
12786 echo "configure: failed program was:" >&5
12787 cat conftest.$ac_ext >&5
12788 rm -rf conftest*
12789 eval "ac_cv_func_$ac_func=no"
12791 rm -f conftest*
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
12801 else
12802 echo "$ac_t""no" 1>&6
12804 done
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
12812 else
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. */
12822 char $ac_func();
12824 int main() {
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)
12830 choke me
12831 #else
12832 $ac_func();
12833 #endif
12835 ; return 0; }
12837 if { (eval echo configure:12838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12838 rm -rf conftest*
12839 eval "ac_cv_func_$ac_func=yes"
12840 else
12841 echo "configure: failed program was:" >&5
12842 cat conftest.$ac_ext >&5
12843 rm -rf conftest*
12844 eval "ac_cv_func_$ac_func=no"
12846 rm -f conftest*
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
12856 else
12857 echo "$ac_t""no" 1>&6
12859 done
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
12867 else
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. */
12877 char $ac_func();
12879 int main() {
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)
12885 choke me
12886 #else
12887 $ac_func();
12888 #endif
12890 ; return 0; }
12892 if { (eval echo configure:12893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12893 rm -rf conftest*
12894 eval "ac_cv_func_$ac_func=yes"
12895 else
12896 echo "configure: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12898 rm -rf conftest*
12899 eval "ac_cv_func_$ac_func=no"
12901 rm -f conftest*
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
12911 else
12912 echo "$ac_t""no" 1>&6
12914 done
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
12922 else
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. */
12932 char $ac_func();
12934 int main() {
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)
12940 choke me
12941 #else
12942 $ac_func();
12943 #endif
12945 ; return 0; }
12947 if { (eval echo configure:12948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12948 rm -rf conftest*
12949 eval "ac_cv_func_$ac_func=yes"
12950 else
12951 echo "configure: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12953 rm -rf conftest*
12954 eval "ac_cv_func_$ac_func=no"
12956 rm -f conftest*
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
12966 else
12967 echo "$ac_t""no" 1>&6
12969 done
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
12977 else
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. */
12987 char $ac_func();
12989 int main() {
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)
12995 choke me
12996 #else
12997 $ac_func();
12998 #endif
13000 ; return 0; }
13002 if { (eval echo configure:13003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13003 rm -rf conftest*
13004 eval "ac_cv_func_$ac_func=yes"
13005 else
13006 echo "configure: failed program was:" >&5
13007 cat conftest.$ac_ext >&5
13008 rm -rf conftest*
13009 eval "ac_cv_func_$ac_func=no"
13011 rm -f conftest*
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
13021 else
13022 echo "$ac_t""no" 1>&6
13024 done
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
13032 else
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. */
13042 char $ac_func();
13044 int main() {
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)
13050 choke me
13051 #else
13052 $ac_func();
13053 #endif
13055 ; return 0; }
13057 if { (eval echo configure:13058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13058 rm -rf conftest*
13059 eval "ac_cv_func_$ac_func=yes"
13060 else
13061 echo "configure: failed program was:" >&5
13062 cat conftest.$ac_ext >&5
13063 rm -rf conftest*
13064 eval "ac_cv_func_$ac_func=no"
13066 rm -f conftest*
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
13076 else
13077 echo "$ac_t""no" 1>&6
13079 done
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
13086 else
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>
13093 #endif
13094 #ifdef SIOCGIFADDR
13095 xxxyesxxx
13096 #endif
13099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13100 egrep "xxxyesxxx" >/dev/null 2>&1; then
13101 rm -rf conftest*
13102 cv_sys_ioctl_h_has_SIOCGIFADDR=yes
13103 else
13104 rm -rf conftest*
13105 cv_sys_ioctl_h_has_SIOCGIFADDR=no
13107 rm -f conftest*
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
13119 # ultrix
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
13124 else
13125 if test "$cross_compiling" = yes; then
13126 fu_cv_sys_stat_fs_data=no
13127 else
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>
13134 #endif
13135 #include <sys/types.h>
13136 #ifdef HAVE_SYS_MOUNT_H
13137 #include <sys/mount.h>
13138 #endif
13139 #ifdef HAVE_SYS_FS_TYPES_H
13140 #include <sys/fs_types.h>
13141 #endif
13142 main ()
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
13151 then
13152 fu_cv_sys_stat_fs_data=yes
13153 else
13154 echo "configure: failed program was:" >&5
13155 cat conftest.$ac_ext >&5
13156 rm -fr conftest*
13157 fu_cv_sys_stat_fs_data=no
13159 rm -fr conftest*
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
13176 else
13178 cat > conftest.$ac_ext <<EOF
13179 #line 13180 "configure"
13180 #include "confdefs.h"
13182 int main() {
13184 char *cp = __FUNCTION__;
13186 ; return 0; }
13188 if { (eval echo configure:13189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13189 rm -rf conftest*
13190 ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED=yes
13191 else
13192 echo "configure: failed program was:" >&5
13193 cat conftest.$ac_ext >&5
13194 rm -rf conftest*
13195 ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED=no
13197 rm -f conftest*
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
13220 else
13222 if test "xno" = "x"; then
13223 defineit="= 0"
13224 elif test "xno" = "xno"; then
13225 defineit=""
13226 else
13227 defineit="no"
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>
13236 #endif
13237 #include <sys/types.h>
13238 #include <sys/signal.h>
13241 int main() {
13243 struct sigaction testit;
13244 testit.sa_sigaction $defineit;
13246 ; return 0; }
13248 if { (eval echo configure:13249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13249 rm -rf conftest*
13250 eval "${ac_safe_all}=yes"
13251 else
13252 echo "configure: failed program was:" >&5
13253 cat conftest.$ac_ext >&5
13254 rm -rf conftest*
13255 eval "${ac_safe_all}=no"
13257 rm -f conftest*
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
13268 else
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
13285 else
13287 if test "xno" = "x"; then
13288 defineit="= 0"
13289 elif test "xno" = "xno"; then
13290 defineit=""
13291 else
13292 defineit="no"
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>
13301 #endif
13302 #include <sys/types.h>
13303 #define KERNEL
13304 #define _KERNEL
13305 #include <sys/socket.h>
13306 #undef KERNEL
13307 #undef _KERNEL
13310 int main() {
13312 struct sockaddr testit;
13313 testit.sa_len $defineit;
13315 ; return 0; }
13317 if { (eval echo configure:13318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13318 rm -rf conftest*
13319 eval "${ac_safe_all}=yes"
13320 else
13321 echo "configure: failed program was:" >&5
13322 cat conftest.$ac_ext >&5
13323 rm -rf conftest*
13324 eval "${ac_safe_all}=no"
13326 rm -f conftest*
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
13337 else
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
13354 else
13356 if test "xno" = "x"; then
13357 defineit="= 0"
13358 elif test "xno" = "xno"; then
13359 defineit=""
13360 else
13361 defineit="no"
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>
13370 #endif
13371 #include <sys/types.h>
13372 #define KERNEL
13373 #define _KERNEL
13374 #include <sys/socket.h>
13375 #undef KERNEL
13376 #undef _KERNEL
13379 int main() {
13381 struct sockaddr testit;
13382 testit.sa_union.sa_generic.sa_family2 $defineit;
13384 ; return 0; }
13386 if { (eval echo configure:13387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13387 rm -rf conftest*
13388 eval "${ac_safe_all}=yes"
13389 else
13390 echo "configure: failed program was:" >&5
13391 cat conftest.$ac_ext >&5
13392 rm -rf conftest*
13393 eval "${ac_safe_all}=no"
13395 rm -f conftest*
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
13406 else
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
13423 else
13425 if test "xno" = "x"; then
13426 defineit="= 0"
13427 elif test "xno" = "xno"; then
13428 defineit=""
13429 else
13430 defineit="no"
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>
13439 #endif
13440 #include <sys/types.h>
13441 #define KERNEL
13442 #define _KERNEL
13443 #include <sys/socket.h>
13444 #undef KERNEL
13445 #undef _KERNEL
13446 #include <net/route.h>
13449 int main() {
13451 struct rtentry testit;
13452 testit.rt_dst $defineit;
13454 ; return 0; }
13456 if { (eval echo configure:13457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13457 rm -rf conftest*
13458 eval "${ac_safe_all}=yes"
13459 else
13460 echo "configure: failed program was:" >&5
13461 cat conftest.$ac_ext >&5
13462 rm -rf conftest*
13463 eval "${ac_safe_all}=no"
13465 rm -f conftest*
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
13476 else
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
13486 else
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>
13495 #endif
13496 #include <sys/types.h>
13497 #define KERNEL
13498 #define _KERNEL
13499 #include <sys/socket.h>
13500 #undef KERNEL
13501 #undef _KERNEL
13502 #include <net/route.h>
13504 int main() {
13507 #ifndef STRUCT_RTENTRY_HAS_RT_DST
13508 #define rt_dst rt_nodes->rn_key
13509 #endif
13511 struct rtentry rt;
13512 rt.rt_nodes[0].rn_flags = 1;
13513 rt.rt_dst;
13515 ; return 0; }
13517 if { (eval echo configure:13518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13518 rm -rf conftest*
13519 ac_cv_RTENTRY_TYPE="BSD-4.4"
13520 else
13521 echo "configure: failed program was:" >&5
13522 cat conftest.$ac_ext >&5
13524 rm -f conftest*
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>
13533 #endif
13534 #include <sys/types.h>
13535 #define KERNEL
13536 #define _KERNEL
13537 #include <sys/socket.h>
13538 #undef KERNEL
13539 #undef _KERNEL
13540 #include <net/route.h>
13542 int main() {
13544 struct rtentry rt;
13545 rt.rt_hash;
13547 ; return 0; }
13549 if { (eval echo configure:13550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13550 rm -rf conftest*
13551 ac_cv_RTENTRY_TYPE="BSD-4.3"
13552 else
13553 echo "configure: failed program was:" >&5
13554 cat conftest.$ac_ext >&5
13556 rm -f conftest*
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
13581 else
13582 cat > conftest.$ac_ext <<EOF
13583 #line 13584 "configure"
13584 #include "confdefs.h"
13585 #define KERNEL
13586 #include <net/route.h>
13589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13590 egrep "ortentry" >/dev/null 2>&1; then
13591 rm -rf conftest*
13592 ac_cv_struct_rtentry=ortentry
13593 else
13594 rm -rf conftest*
13595 ac_cv_struct_rtentry=rtentry
13597 rm -f conftest*
13599 if test "x$ac_cv_struct_rtentry" = "xrtentry" ; then
13600 ac_cv_struct_rtentry="rtentry"
13601 else
13602 ac_cv_struct_rtentry="ortentry"
13607 echo "$ac_t""$ac_cv_struct_rtentry" 1>&6
13608 else
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}
13618 else
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
13630 else
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>
13638 #endif
13639 #include <sys/types.h>
13640 #define KERNEL
13641 #define _KERNEL
13642 #include <sys/socket.h>
13643 #undef KERNEL
13644 #undef _KERNEL
13645 #include <net/route.h>
13647 int main() {
13649 struct rtentry rt;
13650 rt.rt_next;
13652 ; return 0; }
13654 if { (eval echo configure:13655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13655 rm -rf conftest*
13656 ac_cv_struct_rtentry_rt_next=yes
13657 else
13658 echo "configure: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13660 rm -rf conftest*
13661 ac_cv_struct_rtentry_rt_next=no
13663 rm -f conftest*
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
13689 else
13691 if test "x" = "x"; then
13692 defineit="= 0"
13693 elif test "x" = "xno"; then
13694 defineit=""
13695 else
13696 defineit=""
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>
13705 #endif
13706 #include <sys/types.h>
13707 #define KERNEL
13708 #define _KERNEL
13709 #include <sys/socket.h>
13710 #undef KERNEL
13711 #undef _KERNEL
13712 #include <net/route.h>
13715 int main() {
13717 struct rtentry testit;
13718 testit.rt_unit $defineit;
13720 ; return 0; }
13722 if { (eval echo configure:13723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13723 rm -rf conftest*
13724 eval "${ac_safe_all}=yes"
13725 else
13726 echo "configure: failed program was:" >&5
13727 cat conftest.$ac_ext >&5
13728 rm -rf conftest*
13729 eval "${ac_safe_all}=no"
13731 rm -f conftest*
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
13742 else
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
13759 else
13761 if test "x" = "x"; then
13762 defineit="= 0"
13763 elif test "x" = "xno"; then
13764 defineit=""
13765 else
13766 defineit=""
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>
13775 #endif
13776 #include <sys/types.h>
13777 #define KERNEL
13778 #define _KERNEL
13779 #include <sys/socket.h>
13780 #undef KERNEL
13781 #undef _KERNEL
13782 #include <net/route.h>
13785 int main() {
13787 struct rtentry testit;
13788 testit.rt_refcnt $defineit;
13790 ; return 0; }
13792 if { (eval echo configure:13793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13793 rm -rf conftest*
13794 eval "${ac_safe_all}=yes"
13795 else
13796 echo "configure: failed program was:" >&5
13797 cat conftest.$ac_ext >&5
13798 rm -rf conftest*
13799 eval "${ac_safe_all}=no"
13801 rm -f conftest*
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
13812 else
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
13829 else
13831 if test "x" = "x"; then
13832 defineit="= 0"
13833 elif test "x" = "xno"; then
13834 defineit=""
13835 else
13836 defineit=""
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>
13845 #endif
13846 #include <sys/types.h>
13847 #define KERNEL
13848 #define _KERNEL
13849 #include <sys/socket.h>
13850 #undef KERNEL
13851 #undef _KERNEL
13852 #include <net/route.h>
13855 int main() {
13857 struct rtentry testit;
13858 testit.rt_hash $defineit;
13860 ; return 0; }
13862 if { (eval echo configure:13863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13863 rm -rf conftest*
13864 eval "${ac_safe_all}=yes"
13865 else
13866 echo "configure: failed program was:" >&5
13867 cat conftest.$ac_ext >&5
13868 rm -rf conftest*
13869 eval "${ac_safe_all}=no"
13871 rm -f conftest*
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
13882 else
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
13899 else
13901 if test "x" = "x"; then
13902 defineit="= 0"
13903 elif test "x" = "xno"; then
13904 defineit=""
13905 else
13906 defineit=""
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>
13915 #endif
13916 #include <sys/types.h>
13917 #define KERNEL
13918 #define _KERNEL
13919 #include <sys/socket.h>
13920 #undef KERNEL
13921 #undef _KERNEL
13922 #include <net/route.h>
13925 int main() {
13927 struct rtentry testit;
13928 testit.rt_use $defineit;
13930 ; return 0; }
13932 if { (eval echo configure:13933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13933 rm -rf conftest*
13934 eval "${ac_safe_all}=yes"
13935 else
13936 echo "configure: failed program was:" >&5
13937 cat conftest.$ac_ext >&5
13938 rm -rf conftest*
13939 eval "${ac_safe_all}=no"
13941 rm -f conftest*
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
13952 else
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
13969 else
13971 if test "x" = "x"; then
13972 defineit="= 0"
13973 elif test "x" = "xno"; then
13974 defineit=""
13975 else
13976 defineit=""
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>
13985 #endif
13986 #include <sys/types.h>
13987 #include <netinet/tcp.h>
13988 #ifdef HAVE_NETINET_TCP_TIMER_H
13989 #include <netinet/tcp_timer.h>
13990 #endif
13992 #ifdef HAVE_NETINET_TCP_VAR_H
13993 #include <netinet/tcp_var.h>
13994 #endif
13997 int main() {
13999 struct tcpstat testit;
14000 testit.tcp_rcvmemdrop $defineit;
14002 ; return 0; }
14004 if { (eval echo configure:14005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14005 rm -rf conftest*
14006 eval "${ac_safe_all}=yes"
14007 else
14008 echo "configure: failed program was:" >&5
14009 cat conftest.$ac_ext >&5
14010 rm -rf conftest*
14011 eval "${ac_safe_all}=no"
14013 rm -f conftest*
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
14024 else
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
14042 else
14044 if test "x" = "x"; then
14045 defineit="= 0"
14046 elif test "x" = "xno"; then
14047 defineit=""
14048 else
14049 defineit=""
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>
14058 #endif
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>
14064 #endif
14067 int main() {
14069 struct ifnet testit;
14070 testit.if_mtu $defineit;
14072 ; return 0; }
14074 if { (eval echo configure:14075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14075 rm -rf conftest*
14076 eval "${ac_safe_all}=yes"
14077 else
14078 echo "configure: failed program was:" >&5
14079 cat conftest.$ac_ext >&5
14080 rm -rf conftest*
14081 eval "${ac_safe_all}=no"
14083 rm -f conftest*
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
14094 else
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
14105 else
14107 if test "x$ac_cv_struct_ifnet_has_if_mtu" = "xyes"; then
14108 ac_cv_IFNET_NEEDS_KERNEL=no
14109 else
14110 cat > conftest.$ac_ext <<EOF
14111 #line 14112 "configure"
14112 #include "confdefs.h"
14114 #define _KERNEL 1
14115 #ifdef HAVE_SYS_PARAM_H
14116 #include <sys/param.h>
14117 #endif
14118 #include <sys/types.h>
14119 #include <sys/socket.h>
14120 #ifdef HAVE_SYS_TIME_H
14121 #include <sys/time.h>
14122 #endif
14123 #include <net/if.h>
14124 #ifdef HAVE_NET_IF_VAR_H
14125 #include <net/if_var.h>
14126 #endif
14128 int main() {
14130 struct ifnet testit;
14131 testit.if_mtu = 0;
14133 ; return 0; }
14135 if { (eval echo configure:14136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14136 rm -rf conftest*
14137 ac_cv_IFNET_NEEDS_KERNEL=yes
14138 else
14139 echo "configure: failed program was:" >&5
14140 cat conftest.$ac_ext >&5
14141 rm -rf conftest*
14142 ac_cv_IFNET_NEEDS_KERNEL=no
14144 rm -f conftest*
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
14170 else
14172 if test "x" = "x"; then
14173 defineit="= 0"
14174 elif test "x" = "xno"; then
14175 defineit=""
14176 else
14177 defineit=""
14179 cat > conftest.$ac_ext <<EOF
14180 #line 14181 "configure"
14181 #include "confdefs.h"
14184 #ifdef IFNET_NEEDS_KERNEL
14185 #define _KERNEL 1
14186 #endif
14187 #ifdef HAVE_SYS_PARAM_H
14188 #include <sys/param.h>
14189 #endif
14190 #include <sys/types.h>
14191 #include <sys/socket.h>
14192 #ifdef HAVE_SYS_TIME_H
14193 #include <sys/time.h>
14194 #endif
14195 #include <net/if.h>
14196 #ifdef HAVE_NET_IF_VAR_H
14197 #include <net/if_var.h>
14198 #endif
14201 int main() {
14203 struct ifaddr testit;
14204 testit.ifa_next $defineit;
14206 ; return 0; }
14208 if { (eval echo configure:14209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14209 rm -rf conftest*
14210 eval "${ac_safe_all}=yes"
14211 else
14212 echo "configure: failed program was:" >&5
14213 cat conftest.$ac_ext >&5
14214 rm -rf conftest*
14215 eval "${ac_safe_all}=no"
14217 rm -f conftest*
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
14228 else
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
14246 else
14248 if test "x" = "x"; then
14249 defineit="= 0"
14250 elif test "x" = "xno"; then
14251 defineit=""
14252 else
14253 defineit=""
14255 cat > conftest.$ac_ext <<EOF
14256 #line 14257 "configure"
14257 #include "confdefs.h"
14260 #ifdef IFNET_NEEDS_KERNEL
14261 #define _KERNEL 1
14262 #endif
14263 #include <sys/types.h>
14264 #include <sys/socket.h>
14265 #ifdef HAVE_SYS_TIME_H
14266 #include <sys/time.h>
14267 #endif
14268 #include <net/if.h>
14269 #ifdef HAVE_NET_IF_VAR_H
14270 #include <net/if_var.h>
14271 #endif
14272 #ifdef HAVE_SYS_QUEUE_H
14273 #include <sys/queue.h>
14274 #endif
14275 #ifdef linux
14276 struct ifnet {
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 */
14291 struct ifqueue {
14292 int ifq_len;
14293 int ifq_drops;
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;
14306 #endif
14309 int main() {
14311 struct ifnet testit;
14312 testit.if_baudrate $defineit;
14314 ; return 0; }
14316 if { (eval echo configure:14317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14317 rm -rf conftest*
14318 eval "${ac_safe_all}=yes"
14319 else
14320 echo "configure: failed program was:" >&5
14321 cat conftest.$ac_ext >&5
14322 rm -rf conftest*
14323 eval "${ac_safe_all}=no"
14325 rm -f conftest*
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
14336 else
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
14354 else
14356 if test "x" = "x"; then
14357 defineit="= 0"
14358 elif test "x" = "xno"; then
14359 defineit=""
14360 else
14361 defineit=""
14363 cat > conftest.$ac_ext <<EOF
14364 #line 14365 "configure"
14365 #include "confdefs.h"
14368 #ifdef IFNET_NEEDS_KERNEL
14369 #define _KERNEL 1
14370 #endif
14371 #include <sys/types.h>
14372 #include <sys/socket.h>
14373 #ifdef HAVE_SYS_TIME_H
14374 #include <sys/time.h>
14375 #endif
14376 #include <net/if.h>
14377 #ifdef HAVE_NET_IF_VAR_H
14378 #include <net/if_var.h>
14379 #endif
14380 #ifdef HAVE_SYS_QUEUE_H
14381 #include <sys/queue.h>
14382 #endif
14383 #ifdef linux
14384 struct ifnet {
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 */
14399 struct ifqueue {
14400 int ifq_len;
14401 int ifq_drops;
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;
14414 #endif
14417 int main() {
14419 struct ifnet testit;
14420 testit.if_baudrate.ifs_value $defineit;
14422 ; return 0; }
14424 if { (eval echo configure:14425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14425 rm -rf conftest*
14426 eval "${ac_safe_all}=yes"
14427 else
14428 echo "configure: failed program was:" >&5
14429 cat conftest.$ac_ext >&5
14430 rm -rf conftest*
14431 eval "${ac_safe_all}=no"
14433 rm -f conftest*
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
14444 else
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
14462 else
14464 if test "x" = "x"; then
14465 defineit="= 0"
14466 elif test "x" = "xno"; then
14467 defineit=""
14468 else
14469 defineit=""
14471 cat > conftest.$ac_ext <<EOF
14472 #line 14473 "configure"
14473 #include "confdefs.h"
14476 #ifdef IFNET_NEEDS_KERNEL
14477 #define _KERNEL 1
14478 #endif
14479 #include <sys/types.h>
14480 #include <sys/socket.h>
14481 #ifdef HAVE_SYS_TIME_H
14482 #include <sys/time.h>
14483 #endif
14484 #include <net/if.h>
14485 #ifdef HAVE_NET_IF_VAR_H
14486 #include <net/if_var.h>
14487 #endif
14488 #ifdef HAVE_SYS_QUEUE_H
14489 #include <sys/queue.h>
14490 #endif
14491 #ifdef linux
14492 struct ifnet {
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 */
14507 struct ifqueue {
14508 int ifq_len;
14509 int ifq_drops;
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;
14522 #endif
14525 int main() {
14527 struct ifnet testit;
14528 testit.if_speed $defineit;
14530 ; return 0; }
14532 if { (eval echo configure:14533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14533 rm -rf conftest*
14534 eval "${ac_safe_all}=yes"
14535 else
14536 echo "configure: failed program was:" >&5
14537 cat conftest.$ac_ext >&5
14538 rm -rf conftest*
14539 eval "${ac_safe_all}=no"
14541 rm -f conftest*
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
14552 else
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
14570 else
14572 if test "x" = "x"; then
14573 defineit="= 0"
14574 elif test "x" = "xno"; then
14575 defineit=""
14576 else
14577 defineit=""
14579 cat > conftest.$ac_ext <<EOF
14580 #line 14581 "configure"
14581 #include "confdefs.h"
14584 #ifdef IFNET_NEEDS_KERNEL
14585 #define _KERNEL 1
14586 #endif
14587 #include <sys/types.h>
14588 #include <sys/socket.h>
14589 #ifdef HAVE_SYS_TIME_H
14590 #include <sys/time.h>
14591 #endif
14592 #include <net/if.h>
14593 #ifdef HAVE_NET_IF_VAR_H
14594 #include <net/if_var.h>
14595 #endif
14596 #ifdef HAVE_SYS_QUEUE_H
14597 #include <sys/queue.h>
14598 #endif
14599 #ifdef linux
14600 struct ifnet {
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 */
14615 struct ifqueue {
14616 int ifq_len;
14617 int ifq_drops;
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;
14630 #endif
14633 int main() {
14635 struct ifnet testit;
14636 testit.if_type $defineit;
14638 ; return 0; }
14640 if { (eval echo configure:14641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14641 rm -rf conftest*
14642 eval "${ac_safe_all}=yes"
14643 else
14644 echo "configure: failed program was:" >&5
14645 cat conftest.$ac_ext >&5
14646 rm -rf conftest*
14647 eval "${ac_safe_all}=no"
14649 rm -f conftest*
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
14660 else
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
14678 else
14680 if test "x" = "x"; then
14681 defineit="= 0"
14682 elif test "x" = "xno"; then
14683 defineit=""
14684 else
14685 defineit=""
14687 cat > conftest.$ac_ext <<EOF
14688 #line 14689 "configure"
14689 #include "confdefs.h"
14692 #ifdef IFNET_NEEDS_KERNEL
14693 #define _KERNEL 1
14694 #endif
14695 #include <sys/types.h>
14696 #include <sys/socket.h>
14697 #ifdef HAVE_SYS_TIME_H
14698 #include <sys/time.h>
14699 #endif
14700 #include <net/if.h>
14701 #ifdef HAVE_NET_IF_VAR_H
14702 #include <net/if_var.h>
14703 #endif
14704 #ifdef HAVE_SYS_QUEUE_H
14705 #include <sys/queue.h>
14706 #endif
14707 #ifdef linux
14708 struct ifnet {
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 */
14723 struct ifqueue {
14724 int ifq_len;
14725 int ifq_drops;
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;
14738 #endif
14741 int main() {
14743 struct ifnet testit;
14744 testit.if_imcasts $defineit;
14746 ; return 0; }
14748 if { (eval echo configure:14749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14749 rm -rf conftest*
14750 eval "${ac_safe_all}=yes"
14751 else
14752 echo "configure: failed program was:" >&5
14753 cat conftest.$ac_ext >&5
14754 rm -rf conftest*
14755 eval "${ac_safe_all}=no"
14757 rm -f conftest*
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
14768 else
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
14786 else
14788 if test "x" = "x"; then
14789 defineit="= 0"
14790 elif test "x" = "xno"; then
14791 defineit=""
14792 else
14793 defineit=""
14795 cat > conftest.$ac_ext <<EOF
14796 #line 14797 "configure"
14797 #include "confdefs.h"
14800 #ifdef IFNET_NEEDS_KERNEL
14801 #define _KERNEL 1
14802 #endif
14803 #include <sys/types.h>
14804 #include <sys/socket.h>
14805 #ifdef HAVE_SYS_TIME_H
14806 #include <sys/time.h>
14807 #endif
14808 #include <net/if.h>
14809 #ifdef HAVE_NET_IF_VAR_H
14810 #include <net/if_var.h>
14811 #endif
14812 #ifdef HAVE_SYS_QUEUE_H
14813 #include <sys/queue.h>
14814 #endif
14815 #ifdef linux
14816 struct ifnet {
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 */
14831 struct ifqueue {
14832 int ifq_len;
14833 int ifq_drops;
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;
14846 #endif
14849 int main() {
14851 struct ifnet testit;
14852 testit.if_iqdrops $defineit;
14854 ; return 0; }
14856 if { (eval echo configure:14857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14857 rm -rf conftest*
14858 eval "${ac_safe_all}=yes"
14859 else
14860 echo "configure: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14862 rm -rf conftest*
14863 eval "${ac_safe_all}=no"
14865 rm -f conftest*
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
14876 else
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
14894 else
14896 if test "x" = "x"; then
14897 defineit="= 0"
14898 elif test "x" = "xno"; then
14899 defineit=""
14900 else
14901 defineit=""
14903 cat > conftest.$ac_ext <<EOF
14904 #line 14905 "configure"
14905 #include "confdefs.h"
14908 #ifdef IFNET_NEEDS_KERNEL
14909 #define _KERNEL 1
14910 #endif
14911 #include <sys/types.h>
14912 #include <sys/socket.h>
14913 #ifdef HAVE_SYS_TIME_H
14914 #include <sys/time.h>
14915 #endif
14916 #include <net/if.h>
14917 #ifdef HAVE_NET_IF_VAR_H
14918 #include <net/if_var.h>
14919 #endif
14920 #ifdef HAVE_SYS_QUEUE_H
14921 #include <sys/queue.h>
14922 #endif
14923 #ifdef linux
14924 struct ifnet {
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 */
14939 struct ifqueue {
14940 int ifq_len;
14941 int ifq_drops;
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;
14954 #endif
14957 int main() {
14959 struct ifnet testit;
14960 testit.if_noproto $defineit;
14962 ; return 0; }
14964 if { (eval echo configure:14965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14965 rm -rf conftest*
14966 eval "${ac_safe_all}=yes"
14967 else
14968 echo "configure: failed program was:" >&5
14969 cat conftest.$ac_ext >&5
14970 rm -rf conftest*
14971 eval "${ac_safe_all}=no"
14973 rm -f conftest*
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
14984 else
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
15002 else
15004 if test "x" = "x"; then
15005 defineit="= 0"
15006 elif test "x" = "xno"; then
15007 defineit=""
15008 else
15009 defineit=""
15011 cat > conftest.$ac_ext <<EOF
15012 #line 15013 "configure"
15013 #include "confdefs.h"
15016 #ifdef IFNET_NEEDS_KERNEL
15017 #define _KERNEL 1
15018 #endif
15019 #include <sys/types.h>
15020 #include <sys/socket.h>
15021 #ifdef HAVE_SYS_TIME_H
15022 #include <sys/time.h>
15023 #endif
15024 #include <net/if.h>
15025 #ifdef HAVE_NET_IF_VAR_H
15026 #include <net/if_var.h>
15027 #endif
15028 #ifdef HAVE_SYS_QUEUE_H
15029 #include <sys/queue.h>
15030 #endif
15031 #ifdef linux
15032 struct ifnet {
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 */
15047 struct ifqueue {
15048 int ifq_len;
15049 int ifq_drops;
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;
15062 #endif
15065 int main() {
15067 struct ifnet testit;
15068 testit.if_omcasts $defineit;
15070 ; return 0; }
15072 if { (eval echo configure:15073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15073 rm -rf conftest*
15074 eval "${ac_safe_all}=yes"
15075 else
15076 echo "configure: failed program was:" >&5
15077 cat conftest.$ac_ext >&5
15078 rm -rf conftest*
15079 eval "${ac_safe_all}=no"
15081 rm -f conftest*
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
15092 else
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
15110 else
15112 if test "xno" = "x"; then
15113 defineit="= 0"
15114 elif test "xno" = "xno"; then
15115 defineit=""
15116 else
15117 defineit="no"
15119 cat > conftest.$ac_ext <<EOF
15120 #line 15121 "configure"
15121 #include "confdefs.h"
15124 #ifdef IFNET_NEEDS_KERNEL
15125 #define _KERNEL 1
15126 #endif
15127 #include <sys/types.h>
15128 #include <sys/socket.h>
15129 #ifdef HAVE_SYS_TIME_H
15130 #include <sys/time.h>
15131 #endif
15132 #include <net/if.h>
15133 #ifdef HAVE_NET_IF_VAR_H
15134 #include <net/if_var.h>
15135 #endif
15136 #ifdef HAVE_SYS_QUEUE_H
15137 #include <sys/queue.h>
15138 #endif
15139 #ifdef linux
15140 struct ifnet {
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 */
15155 struct ifqueue {
15156 int ifq_len;
15157 int ifq_drops;
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;
15170 #endif
15173 int main() {
15175 struct ifnet testit;
15176 testit.if_xname $defineit;
15178 ; return 0; }
15180 if { (eval echo configure:15181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15181 rm -rf conftest*
15182 eval "${ac_safe_all}=yes"
15183 else
15184 echo "configure: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 rm -rf conftest*
15187 eval "${ac_safe_all}=no"
15189 rm -f conftest*
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
15200 else
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
15218 else
15220 if test "x" = "x"; then
15221 defineit="= 0"
15222 elif test "x" = "xno"; then
15223 defineit=""
15224 else
15225 defineit=""
15227 cat > conftest.$ac_ext <<EOF
15228 #line 15229 "configure"
15229 #include "confdefs.h"
15232 #ifdef IFNET_NEEDS_KERNEL
15233 #define _KERNEL 1
15234 #endif
15235 #include <sys/types.h>
15236 #include <sys/socket.h>
15237 #ifdef HAVE_SYS_TIME_H
15238 #include <sys/time.h>
15239 #endif
15240 #include <net/if.h>
15241 #ifdef HAVE_NET_IF_VAR_H
15242 #include <net/if_var.h>
15243 #endif
15244 #ifdef HAVE_SYS_QUEUE_H
15245 #include <sys/queue.h>
15246 #endif
15247 #ifdef linux
15248 struct ifnet {
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 */
15263 struct ifqueue {
15264 int ifq_len;
15265 int ifq_drops;
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;
15278 #endif
15281 int main() {
15283 struct ifnet testit;
15284 testit.if_lastchange.tv_sec $defineit;
15286 ; return 0; }
15288 if { (eval echo configure:15289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15289 rm -rf conftest*
15290 eval "${ac_safe_all}=yes"
15291 else
15292 echo "configure: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15294 rm -rf conftest*
15295 eval "${ac_safe_all}=no"
15297 rm -f conftest*
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
15308 else
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
15326 else
15328 if test "x" = "x"; then
15329 defineit="= 0"
15330 elif test "x" = "xno"; then
15331 defineit=""
15332 else
15333 defineit=""
15335 cat > conftest.$ac_ext <<EOF
15336 #line 15337 "configure"
15337 #include "confdefs.h"
15340 #ifdef IFNET_NEEDS_KERNEL
15341 #define _KERNEL 1
15342 #endif
15343 #include <sys/types.h>
15344 #include <sys/socket.h>
15345 #ifdef HAVE_SYS_TIME_H
15346 #include <sys/time.h>
15347 #endif
15348 #include <net/if.h>
15349 #ifdef HAVE_NET_IF_VAR_H
15350 #include <net/if_var.h>
15351 #endif
15352 #ifdef HAVE_SYS_QUEUE_H
15353 #include <sys/queue.h>
15354 #endif
15355 #ifdef linux
15356 struct ifnet {
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 */
15371 struct ifqueue {
15372 int ifq_len;
15373 int ifq_drops;
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;
15386 #endif
15389 int main() {
15391 struct ifnet testit;
15392 testit.if_obytes $defineit;
15394 ; return 0; }
15396 if { (eval echo configure:15397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15397 rm -rf conftest*
15398 eval "${ac_safe_all}=yes"
15399 else
15400 echo "configure: failed program was:" >&5
15401 cat conftest.$ac_ext >&5
15402 rm -rf conftest*
15403 eval "${ac_safe_all}=no"
15405 rm -f conftest*
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
15416 else
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
15434 else
15436 if test "x" = "x"; then
15437 defineit="= 0"
15438 elif test "x" = "xno"; then
15439 defineit=""
15440 else
15441 defineit=""
15443 cat > conftest.$ac_ext <<EOF
15444 #line 15445 "configure"
15445 #include "confdefs.h"
15448 #ifdef IFNET_NEEDS_KERNEL
15449 #define _KERNEL 1
15450 #endif
15451 #include <sys/types.h>
15452 #include <sys/socket.h>
15453 #ifdef HAVE_SYS_TIME_H
15454 #include <sys/time.h>
15455 #endif
15456 #include <net/if.h>
15457 #ifdef HAVE_NET_IF_VAR_H
15458 #include <net/if_var.h>
15459 #endif
15460 #ifdef HAVE_SYS_QUEUE_H
15461 #include <sys/queue.h>
15462 #endif
15463 #ifdef linux
15464 struct ifnet {
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 */
15479 struct ifqueue {
15480 int ifq_len;
15481 int ifq_drops;
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;
15494 #endif
15497 int main() {
15499 struct ifnet testit;
15500 testit.if_ibytes $defineit;
15502 ; return 0; }
15504 if { (eval echo configure:15505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15505 rm -rf conftest*
15506 eval "${ac_safe_all}=yes"
15507 else
15508 echo "configure: failed program was:" >&5
15509 cat conftest.$ac_ext >&5
15510 rm -rf conftest*
15511 eval "${ac_safe_all}=no"
15513 rm -f conftest*
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
15524 else
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
15542 else
15544 if test "x" = "x"; then
15545 defineit="= 0"
15546 elif test "x" = "xno"; then
15547 defineit=""
15548 else
15549 defineit=""
15551 cat > conftest.$ac_ext <<EOF
15552 #line 15553 "configure"
15553 #include "confdefs.h"
15556 #ifdef IFNET_NEEDS_KERNEL
15557 #define _KERNEL 1
15558 #endif
15559 #include <sys/types.h>
15560 #include <sys/socket.h>
15561 #ifdef HAVE_SYS_TIME_H
15562 #include <sys/time.h>
15563 #endif
15564 #include <net/if.h>
15565 #ifdef HAVE_NET_IF_VAR_H
15566 #include <net/if_var.h>
15567 #endif
15568 #ifdef HAVE_SYS_QUEUE_H
15569 #include <sys/queue.h>
15570 #endif
15571 #ifdef linux
15572 struct ifnet {
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 */
15587 struct ifqueue {
15588 int ifq_len;
15589 int ifq_drops;
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;
15602 #endif
15605 int main() {
15607 struct ifnet testit;
15608 testit.if_addrlist $defineit;
15610 ; return 0; }
15612 if { (eval echo configure:15613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15613 rm -rf conftest*
15614 eval "${ac_safe_all}=yes"
15615 else
15616 echo "configure: failed program was:" >&5
15617 cat conftest.$ac_ext >&5
15618 rm -rf conftest*
15619 eval "${ac_safe_all}=no"
15621 rm -f conftest*
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
15632 else
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
15650 else
15652 if test "x" = "x"; then
15653 defineit="= 0"
15654 elif test "x" = "xno"; then
15655 defineit=""
15656 else
15657 defineit=""
15659 cat > conftest.$ac_ext <<EOF
15660 #line 15661 "configure"
15661 #include "confdefs.h"
15664 #ifdef IFNET_NEEDS_KERNEL
15665 #define _KERNEL 1
15666 #endif
15667 #include <sys/types.h>
15668 #include <sys/socket.h>
15669 #ifdef HAVE_SYS_TIME_H
15670 #include <sys/time.h>
15671 #endif
15672 #include <net/if.h>
15673 #ifdef HAVE_NET_IF_VAR_H
15674 #include <net/if_var.h>
15675 #endif
15676 #ifdef HAVE_SYS_QUEUE_H
15677 #include <sys/queue.h>
15678 #endif
15679 #ifdef linux
15680 struct ifnet {
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 */
15695 struct ifqueue {
15696 int ifq_len;
15697 int ifq_drops;
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;
15710 #endif
15713 int main() {
15715 struct ifnet testit;
15716 testit.if_addrhead.tqh_first $defineit;
15718 ; return 0; }
15720 if { (eval echo configure:15721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15721 rm -rf conftest*
15722 eval "${ac_safe_all}=yes"
15723 else
15724 echo "configure: failed program was:" >&5
15725 cat conftest.$ac_ext >&5
15726 rm -rf conftest*
15727 eval "${ac_safe_all}=no"
15729 rm -f conftest*
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
15740 else
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
15758 else
15760 if test "x" = "x"; then
15761 defineit="= 0"
15762 elif test "x" = "xno"; then
15763 defineit=""
15764 else
15765 defineit=""
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>
15775 #endif
15776 #if HAVE_NETINET_IP_VAR_H
15777 #include <netinet/ip_var.h>
15778 #endif
15779 #if HAVE_NETINET_UDP_H
15780 #include <netinet/udp.h>
15781 #endif
15782 #if HAVE_NETINET_UDP_VAR_H
15783 #include <netinet/udp_var.h>
15784 #endif
15787 int main() {
15789 struct udpstat testit;
15790 testit.udps_discard $defineit;
15792 ; return 0; }
15794 if { (eval echo configure:15795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15795 rm -rf conftest*
15796 eval "${ac_safe_all}=yes"
15797 else
15798 echo "configure: failed program was:" >&5
15799 cat conftest.$ac_ext >&5
15800 rm -rf conftest*
15801 eval "${ac_safe_all}=no"
15803 rm -f conftest*
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
15814 else
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
15831 else
15833 if test "x" = "x"; then
15834 defineit="= 0"
15835 elif test "x" = "xno"; then
15836 defineit=""
15837 else
15838 defineit=""
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>
15848 #endif
15849 #if HAVE_NETINET_IP_VAR_H
15850 #include <netinet/ip_var.h>
15851 #endif
15852 #if HAVE_NETINET_UDP_H
15853 #include <netinet/udp.h>
15854 #endif
15855 #if HAVE_NETINET_UDP_VAR_H
15856 #include <netinet/udp_var.h>
15857 #endif
15860 int main() {
15862 struct udpstat testit;
15863 testit.udps_noport $defineit;
15865 ; return 0; }
15867 if { (eval echo configure:15868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15868 rm -rf conftest*
15869 eval "${ac_safe_all}=yes"
15870 else
15871 echo "configure: failed program was:" >&5
15872 cat conftest.$ac_ext >&5
15873 rm -rf conftest*
15874 eval "${ac_safe_all}=no"
15876 rm -f conftest*
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
15887 else
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
15904 else
15906 if test "x" = "x"; then
15907 defineit="= 0"
15908 elif test "x" = "xno"; then
15909 defineit=""
15910 else
15911 defineit=""
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>
15921 #endif
15922 #if HAVE_NETINET_IP_VAR_H
15923 #include <netinet/ip_var.h>
15924 #endif
15925 #if HAVE_NETINET_UDP_H
15926 #include <netinet/udp.h>
15927 #endif
15928 #if HAVE_NETINET_UDP_VAR_H
15929 #include <netinet/udp_var.h>
15930 #endif
15933 int main() {
15935 struct udpstat testit;
15936 testit.udps_noportbcast $defineit;
15938 ; return 0; }
15940 if { (eval echo configure:15941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15941 rm -rf conftest*
15942 eval "${ac_safe_all}=yes"
15943 else
15944 echo "configure: failed program was:" >&5
15945 cat conftest.$ac_ext >&5
15946 rm -rf conftest*
15947 eval "${ac_safe_all}=no"
15949 rm -f conftest*
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
15960 else
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
15977 else
15979 if test "x" = "x"; then
15980 defineit="= 0"
15981 elif test "x" = "xno"; then
15982 defineit=""
15983 else
15984 defineit=""
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>
15994 #endif
15995 #if HAVE_NETINET_IP_VAR_H
15996 #include <netinet/ip_var.h>
15997 #endif
15998 #if HAVE_NETINET_UDP_H
15999 #include <netinet/udp.h>
16000 #endif
16001 #if HAVE_NETINET_UDP_VAR_H
16002 #include <netinet/udp_var.h>
16003 #endif
16006 int main() {
16008 struct udpstat testit;
16009 testit.udps_fullsock $defineit;
16011 ; return 0; }
16013 if { (eval echo configure:16014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16014 rm -rf conftest*
16015 eval "${ac_safe_all}=yes"
16016 else
16017 echo "configure: failed program was:" >&5
16018 cat conftest.$ac_ext >&5
16019 rm -rf conftest*
16020 eval "${ac_safe_all}=no"
16022 rm -f conftest*
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
16033 else
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
16050 else
16052 if test "x" = "x"; then
16053 defineit="= 0"
16054 elif test "x" = "xno"; then
16055 defineit=""
16056 else
16057 defineit=""
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>
16066 #endif
16067 #include <sys/types.h>
16068 #include <sys/socket.h>
16069 #ifdef HAVE_SYS_TIME_H
16070 #include <sys/time.h>
16071 #endif
16072 #include <net/if.h>
16073 #if HAVE_NETINET_IN_H
16074 #include <netinet/in.h>
16075 #endif
16076 #if HAVE_NETINET_IF_ETHER_H
16077 #include <netinet/if_ether.h>
16078 #endif
16081 int main() {
16083 struct arphd testit;
16084 testit.at_next $defineit;
16086 ; return 0; }
16088 if { (eval echo configure:16089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16089 rm -rf conftest*
16090 eval "${ac_safe_all}=yes"
16091 else
16092 echo "configure: failed program was:" >&5
16093 cat conftest.$ac_ext >&5
16094 rm -rf conftest*
16095 eval "${ac_safe_all}=no"
16097 rm -f conftest*
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
16108 else
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
16125 else
16127 if test "x" = "x"; then
16128 defineit="= 0"
16129 elif test "x" = "xno"; then
16130 defineit=""
16131 else
16132 defineit=""
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>
16141 #endif
16144 int main() {
16146 struct swdevt testit;
16147 testit.sw_nblksenabled $defineit;
16149 ; return 0; }
16151 if { (eval echo configure:16152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16152 rm -rf conftest*
16153 eval "${ac_safe_all}=yes"
16154 else
16155 echo "configure: failed program was:" >&5
16156 cat conftest.$ac_ext >&5
16157 rm -rf conftest*
16158 eval "${ac_safe_all}=no"
16160 rm -f conftest*
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
16171 else
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
16188 else
16190 if test "x" = "x"; then
16191 defineit="= 0"
16192 elif test "x" = "xno"; then
16193 defineit=""
16194 else
16195 defineit=""
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>
16204 #endif
16205 #if HAVE_SYS_STATFS_H
16206 #include <sys/statfs.h>
16207 #endif
16208 #if HAVE_SYS_STATVFS_H
16209 #include <sys/statvfs.h>
16210 #endif
16213 int main() {
16215 struct statvfs testit;
16216 testit.f_frsize $defineit;
16218 ; return 0; }
16220 if { (eval echo configure:16221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16221 rm -rf conftest*
16222 eval "${ac_safe_all}=yes"
16223 else
16224 echo "configure: failed program was:" >&5
16225 cat conftest.$ac_ext >&5
16226 rm -rf conftest*
16227 eval "${ac_safe_all}=no"
16229 rm -f conftest*
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
16240 else
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
16257 else
16259 if test "x" = "x"; then
16260 defineit="= 0"
16261 elif test "x" = "xno"; then
16262 defineit=""
16263 else
16264 defineit=""
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>
16273 #endif
16274 #if HAVE_SYS_STATFS_H
16275 #include <sys/statfs.h>
16276 #endif
16277 #if HAVE_SYS_STATVFS_H
16278 #include <sys/statvfs.h>
16279 #endif
16282 int main() {
16284 struct statvfs testit;
16285 testit.f_files $defineit;
16287 ; return 0; }
16289 if { (eval echo configure:16290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16290 rm -rf conftest*
16291 eval "${ac_safe_all}=yes"
16292 else
16293 echo "configure: failed program was:" >&5
16294 cat conftest.$ac_ext >&5
16295 rm -rf conftest*
16296 eval "${ac_safe_all}=no"
16298 rm -f conftest*
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
16309 else
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
16326 else
16328 if test "x" = "x"; then
16329 defineit="= 0"
16330 elif test "x" = "xno"; then
16331 defineit=""
16332 else
16333 defineit=""
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>
16342 #endif
16343 #if HAVE_SYS_STATFS_H
16344 #include <sys/statfs.h>
16345 #endif
16346 #ifdef HAVE_SYS_PARAM_H
16347 #include <sys/param.h>
16348 #include <sys/types.h>
16349 #endif
16350 #ifdef HAVE_SYS_MOUNT_H
16351 #include <sys/mount.h>
16352 #endif
16355 int main() {
16357 struct statfs testit;
16358 testit.f_files $defineit;
16360 ; return 0; }
16362 if { (eval echo configure:16363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16363 rm -rf conftest*
16364 eval "${ac_safe_all}=yes"
16365 else
16366 echo "configure: failed program was:" >&5
16367 cat conftest.$ac_ext >&5
16368 rm -rf conftest*
16369 eval "${ac_safe_all}=no"
16371 rm -f conftest*
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
16382 else
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
16399 else
16401 if test "x" = "x"; then
16402 defineit="= 0"
16403 elif test "x" = "xno"; then
16404 defineit=""
16405 else
16406 defineit=""
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>
16415 #endif
16416 #if HAVE_SYS_STATFS_H
16417 #include <sys/statfs.h>
16418 #endif
16419 #ifdef HAVE_SYS_PARAM_H
16420 #include <sys/param.h>
16421 #include <sys/types.h>
16422 #endif
16423 #ifdef HAVE_SYS_MOUNT_H
16424 #include <sys/mount.h>
16425 #endif
16428 int main() {
16430 struct statfs testit;
16431 testit.f_ffree $defineit;
16433 ; return 0; }
16435 if { (eval echo configure:16436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16436 rm -rf conftest*
16437 eval "${ac_safe_all}=yes"
16438 else
16439 echo "configure: failed program was:" >&5
16440 cat conftest.$ac_ext >&5
16441 rm -rf conftest*
16442 eval "${ac_safe_all}=no"
16444 rm -f conftest*
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
16455 else
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
16472 else
16474 if test "x" = "x"; then
16475 defineit="= 0"
16476 elif test "x" = "xno"; then
16477 defineit=""
16478 else
16479 defineit=""
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>
16488 #endif
16489 #if HAVE_SYS_STATFS_H
16490 #include <sys/statfs.h>
16491 #endif
16492 #ifdef HAVE_SYS_PARAM_H
16493 #include <sys/param.h>
16494 #include <sys/types.h>
16495 #endif
16496 #ifdef HAVE_SYS_MOUNT_H
16497 #include <sys/mount.h>
16498 #endif
16501 int main() {
16503 struct statfs testit;
16504 testit.f_favail $defineit;
16506 ; return 0; }
16508 if { (eval echo configure:16509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16509 rm -rf conftest*
16510 eval "${ac_safe_all}=yes"
16511 else
16512 echo "configure: failed program was:" >&5
16513 cat conftest.$ac_ext >&5
16514 rm -rf conftest*
16515 eval "${ac_safe_all}=no"
16517 rm -f conftest*
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
16528 else
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
16545 else
16547 if test "x" = "x"; then
16548 defineit="= 0"
16549 elif test "x" = "xno"; then
16550 defineit=""
16551 else
16552 defineit=""
16554 cat > conftest.$ac_ext <<EOF
16555 #line 16556 "configure"
16556 #include "confdefs.h"
16559 #if HAVE_NLIST_H
16560 #include <nlist.h>
16561 #endif
16564 int main() {
16566 struct nlist testit;
16567 testit.n_value $defineit;
16569 ; return 0; }
16571 if { (eval echo configure:16572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16572 rm -rf conftest*
16573 eval "${ac_safe_all}=yes"
16574 else
16575 echo "configure: failed program was:" >&5
16576 cat conftest.$ac_ext >&5
16577 rm -rf conftest*
16578 eval "${ac_safe_all}=no"
16580 rm -f conftest*
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
16591 else
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
16608 else
16610 if test "x" = "x"; then
16611 defineit="= 0"
16612 elif test "x" = "xno"; then
16613 defineit=""
16614 else
16615 defineit=""
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>
16625 #endif
16626 #if HAVE_NETINET_IP_VAR_H
16627 #include <netinet/ip_var.h>
16628 #endif
16631 int main() {
16633 struct ipstat testit;
16634 testit.ips_cantforward $defineit;
16636 ; return 0; }
16638 if { (eval echo configure:16639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16639 rm -rf conftest*
16640 eval "${ac_safe_all}=yes"
16641 else
16642 echo "configure: failed program was:" >&5
16643 cat conftest.$ac_ext >&5
16644 rm -rf conftest*
16645 eval "${ac_safe_all}=no"
16647 rm -f conftest*
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
16658 else
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
16675 else
16677 if test "x" = "x"; then
16678 defineit="= 0"
16679 elif test "x" = "xno"; then
16680 defineit=""
16681 else
16682 defineit=""
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>
16692 #endif
16693 #if HAVE_NETINET_IP_VAR_H
16694 #include <netinet/ip_var.h>
16695 #endif
16698 int main() {
16700 struct ipstat testit;
16701 testit.ips_cantfrag $defineit;
16703 ; return 0; }
16705 if { (eval echo configure:16706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16706 rm -rf conftest*
16707 eval "${ac_safe_all}=yes"
16708 else
16709 echo "configure: failed program was:" >&5
16710 cat conftest.$ac_ext >&5
16711 rm -rf conftest*
16712 eval "${ac_safe_all}=no"
16714 rm -f conftest*
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
16725 else
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
16742 else
16744 if test "x" = "x"; then
16745 defineit="= 0"
16746 elif test "x" = "xno"; then
16747 defineit=""
16748 else
16749 defineit=""
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>
16759 #endif
16760 #if HAVE_NETINET_IP_VAR_H
16761 #include <netinet/ip_var.h>
16762 #endif
16765 int main() {
16767 struct ipstat testit;
16768 testit.ips_delivered $defineit;
16770 ; return 0; }
16772 if { (eval echo configure:16773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16773 rm -rf conftest*
16774 eval "${ac_safe_all}=yes"
16775 else
16776 echo "configure: failed program was:" >&5
16777 cat conftest.$ac_ext >&5
16778 rm -rf conftest*
16779 eval "${ac_safe_all}=no"
16781 rm -f conftest*
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
16792 else
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
16809 else
16811 if test "x" = "x"; then
16812 defineit="= 0"
16813 elif test "x" = "xno"; then
16814 defineit=""
16815 else
16816 defineit=""
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>
16826 #endif
16827 #if HAVE_NETINET_IP_VAR_H
16828 #include <netinet/ip_var.h>
16829 #endif
16832 int main() {
16834 struct ipstat testit;
16835 testit.ips_fragdropped $defineit;
16837 ; return 0; }
16839 if { (eval echo configure:16840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16840 rm -rf conftest*
16841 eval "${ac_safe_all}=yes"
16842 else
16843 echo "configure: failed program was:" >&5
16844 cat conftest.$ac_ext >&5
16845 rm -rf conftest*
16846 eval "${ac_safe_all}=no"
16848 rm -f conftest*
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
16859 else
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
16876 else
16878 if test "x" = "x"; then
16879 defineit="= 0"
16880 elif test "x" = "xno"; then
16881 defineit=""
16882 else
16883 defineit=""
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>
16893 #endif
16894 #if HAVE_NETINET_IP_VAR_H
16895 #include <netinet/ip_var.h>
16896 #endif
16899 int main() {
16901 struct ipstat testit;
16902 testit.ips_fragtimeout $defineit;
16904 ; return 0; }
16906 if { (eval echo configure:16907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16907 rm -rf conftest*
16908 eval "${ac_safe_all}=yes"
16909 else
16910 echo "configure: failed program was:" >&5
16911 cat conftest.$ac_ext >&5
16912 rm -rf conftest*
16913 eval "${ac_safe_all}=no"
16915 rm -f conftest*
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
16926 else
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
16943 else
16945 if test "x" = "x"; then
16946 defineit="= 0"
16947 elif test "x" = "xno"; then
16948 defineit=""
16949 else
16950 defineit=""
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>
16960 #endif
16961 #if HAVE_NETINET_IP_VAR_H
16962 #include <netinet/ip_var.h>
16963 #endif
16966 int main() {
16968 struct ipstat testit;
16969 testit.ips_localout $defineit;
16971 ; return 0; }
16973 if { (eval echo configure:16974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16974 rm -rf conftest*
16975 eval "${ac_safe_all}=yes"
16976 else
16977 echo "configure: failed program was:" >&5
16978 cat conftest.$ac_ext >&5
16979 rm -rf conftest*
16980 eval "${ac_safe_all}=no"
16982 rm -f conftest*
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
16993 else
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
17010 else
17012 if test "x" = "x"; then
17013 defineit="= 0"
17014 elif test "x" = "xno"; then
17015 defineit=""
17016 else
17017 defineit=""
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>
17027 #endif
17028 #if HAVE_NETINET_IP_VAR_H
17029 #include <netinet/ip_var.h>
17030 #endif
17033 int main() {
17035 struct ipstat testit;
17036 testit.ips_noproto $defineit;
17038 ; return 0; }
17040 if { (eval echo configure:17041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17041 rm -rf conftest*
17042 eval "${ac_safe_all}=yes"
17043 else
17044 echo "configure: failed program was:" >&5
17045 cat conftest.$ac_ext >&5
17046 rm -rf conftest*
17047 eval "${ac_safe_all}=no"
17049 rm -f conftest*
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
17060 else
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
17077 else
17079 if test "x" = "x"; then
17080 defineit="= 0"
17081 elif test "x" = "xno"; then
17082 defineit=""
17083 else
17084 defineit=""
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>
17094 #endif
17095 #if HAVE_NETINET_IP_VAR_H
17096 #include <netinet/ip_var.h>
17097 #endif
17100 int main() {
17102 struct ipstat testit;
17103 testit.ips_noroute $defineit;
17105 ; return 0; }
17107 if { (eval echo configure:17108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17108 rm -rf conftest*
17109 eval "${ac_safe_all}=yes"
17110 else
17111 echo "configure: failed program was:" >&5
17112 cat conftest.$ac_ext >&5
17113 rm -rf conftest*
17114 eval "${ac_safe_all}=no"
17116 rm -f conftest*
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
17127 else
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
17144 else
17146 if test "x" = "x"; then
17147 defineit="= 0"
17148 elif test "x" = "xno"; then
17149 defineit=""
17150 else
17151 defineit=""
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>
17161 #endif
17162 #if HAVE_NETINET_IP_VAR_H
17163 #include <netinet/ip_var.h>
17164 #endif
17167 int main() {
17169 struct ipstat testit;
17170 testit.ips_odropped $defineit;
17172 ; return 0; }
17174 if { (eval echo configure:17175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17175 rm -rf conftest*
17176 eval "${ac_safe_all}=yes"
17177 else
17178 echo "configure: failed program was:" >&5
17179 cat conftest.$ac_ext >&5
17180 rm -rf conftest*
17181 eval "${ac_safe_all}=no"
17183 rm -f conftest*
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
17194 else
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
17211 else
17213 if test "x" = "x"; then
17214 defineit="= 0"
17215 elif test "x" = "xno"; then
17216 defineit=""
17217 else
17218 defineit=""
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>
17228 #endif
17229 #if HAVE_NETINET_IP_VAR_H
17230 #include <netinet/ip_var.h>
17231 #endif
17234 int main() {
17236 struct ipstat testit;
17237 testit.ips_ofragments $defineit;
17239 ; return 0; }
17241 if { (eval echo configure:17242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17242 rm -rf conftest*
17243 eval "${ac_safe_all}=yes"
17244 else
17245 echo "configure: failed program was:" >&5
17246 cat conftest.$ac_ext >&5
17247 rm -rf conftest*
17248 eval "${ac_safe_all}=no"
17250 rm -f conftest*
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
17261 else
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
17278 else
17280 if test "x" = "x"; then
17281 defineit="= 0"
17282 elif test "x" = "xno"; then
17283 defineit=""
17284 else
17285 defineit=""
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>
17295 #endif
17296 #if HAVE_NETINET_IP_VAR_H
17297 #include <netinet/ip_var.h>
17298 #endif
17301 int main() {
17303 struct ipstat testit;
17304 testit.ips_reassembled $defineit;
17306 ; return 0; }
17308 if { (eval echo configure:17309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17309 rm -rf conftest*
17310 eval "${ac_safe_all}=yes"
17311 else
17312 echo "configure: failed program was:" >&5
17313 cat conftest.$ac_ext >&5
17314 rm -rf conftest*
17315 eval "${ac_safe_all}=no"
17317 rm -f conftest*
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
17328 else
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
17346 else
17348 if test "x" = "x"; then
17349 defineit="= 0"
17350 elif test "x" = "xno"; then
17351 defineit=""
17352 else
17353 defineit=""
17355 cat > conftest.$ac_ext <<EOF
17356 #line 17357 "configure"
17357 #include "confdefs.h"
17360 #include <openssl/des.h>
17363 int main() {
17365 struct des_ks_struct testit;
17366 testit.weak_key $defineit;
17368 ; return 0; }
17370 if { (eval echo configure:17371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17371 rm -rf conftest*
17372 eval "${ac_safe_all}=yes"
17373 else
17374 echo "configure: failed program was:" >&5
17375 cat conftest.$ac_ext >&5
17376 rm -rf conftest*
17377 eval "${ac_safe_all}=no"
17379 rm -f conftest*
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
17390 else
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
17400 else
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
17405 else
17406 if test "$cross_compiling" = yes; then
17407 ac_cv_CAN_USE_SYSCTL=no
17408 else
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>
17415 # include <time.h>
17416 #else
17417 # if HAVE_SYS_TIME_H
17418 # include <sys/time.h>
17419 # else
17420 # include <time.h>
17421 # endif
17422 #endif
17423 #if HAVE_SYS_PARAM_H
17424 # include <sys/param.h>
17425 #endif
17426 #include <sys/types.h>
17427 #if HAVE_SYS_SYSCTL_H
17428 # include <sys/sysctl.h>
17429 #endif
17431 main() {
17432 int mib[2];
17433 size_t len;
17434 struct timeval boottime;
17436 mib[0] = CTL_KERN;
17437 mib[1] = KERN_BOOTTIME;
17439 len = sizeof(boottime);
17440 sysctl(mib, 2, &boottime, &len, NULL, NULL);
17441 if (boottime.tv_sec != 0)
17442 exit(0);
17443 else
17444 exit(1);
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
17449 then
17450 ac_cv_CAN_USE_SYSCTL=yes
17451 else
17452 echo "configure: failed program was:" >&5
17453 cat conftest.$ac_ext >&5
17454 rm -fr conftest*
17455 ac_cv_CAN_USE_SYSCTL=no
17457 rm -fr conftest*
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
17476 else
17477 cat > conftest.$ac_ext <<EOF
17478 #line 17479 "configure"
17479 #include "confdefs.h"
17480 #include <netinet/tcp_timer.h>
17481 TCPTV_SRTTDFLT
17484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17485 egrep "hz" >/dev/null 2>&1; then
17486 rm -rf conftest*
17487 ac_cv_TCPTV_NEEDS_HZ=yes
17488 else
17489 rm -rf conftest*
17490 ac_cv_TCPTV_NEEDS_HZ=no
17492 rm -f conftest*
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
17515 else
17517 if test "x$defaults" = "xno"; then
17518 cat << EOF
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
17529 be overwritten.
17531 -Press return to continue-
17534 read tmpinput
17535 ac_cv_have_warned="yes"
17536 echo $ac_n "disabling above prompt for future runs... $ac_c"
17537 else
17538 ac_cv_have_warned="no"
17543 echo "$ac_t""$ac_cv_have_warned" 1>&6
17544 else
17545 ac_cv_have_warned="yes"
17548 ME=`$WHOAMI`
17549 if test -f /etc/resolv.conf; then
17550 LOC=`cat /etc/resolv.conf | grep '^domain' | tail -1 | awk '{print $NF}'`
17551 else
17552 LOC="@no.where"
17556 MSG_CHECK=`echo "
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
17581 else
17582 echo "" >&6
17584 if test "x$defaults" = "xno"; then
17585 echo $ac_n "
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"
17606 read tmpinput
17607 if test "$tmpinput" = "" -a "3" != ""; then
17608 tmpinput="3"
17610 eval DEFAULT_SNMP_VERSION=\"$tmpinput\"
17611 else
17612 tmpinput="3"
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"
17629 else
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; }
17643 MSG_CHECK=`echo "
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
17659 else
17660 echo "" >&6
17662 if test "x$defaults" = "xno"; then
17663 echo $ac_n "
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"
17675 read tmpinput
17676 if test "$tmpinput" = "" -a "$ME@$LOC" != ""; then
17677 tmpinput="$ME@$LOC"
17679 eval SYS_CONTACT=\"$tmpinput\"
17680 else
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"
17698 else
17699 cat >> confdefs.h <<EOF
17700 #define SYS_CONTACT $ac_cv_user_prompt_SYS_CONTACT
17708 MSG_CHECK=`echo "
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
17723 else
17724 echo "" >&6
17726 if test "x$defaults" = "xno"; then
17727 echo $ac_n "
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"
17738 read tmpinput
17739 if test "$tmpinput" = "" -a "Unknown" != ""; then
17740 tmpinput="Unknown"
17742 eval SYS_LOC=\"$tmpinput\"
17743 else
17744 tmpinput="Unknown"
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"
17761 else
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"
17772 else
17773 defaultlog="/usr/adm/snmpd.log"
17777 MSG_CHECK=`echo "
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
17793 else
17794 echo "" >&6
17796 if test "x$defaults" = "xno"; then
17797 echo $ac_n "
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"
17809 read tmpinput
17810 if test "$tmpinput" = "" -a "$defaultlog" != ""; then
17811 tmpinput="$defaultlog"
17813 eval LOGFILE=\"$tmpinput\"
17814 else
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"
17832 else
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"
17844 else
17845 defaultstore="/etc/net-snmp"
17846 ucddefaultstore="/etc/ucd-snmp"
17850 MSG_CHECK=`echo "
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
17861 you'd rather.
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
17870 else
17871 echo "" >&6
17873 if test "x$defaults" = "xno"; then
17874 echo $ac_n "
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
17885 you'd rather.
17886 Providing the --with-persistent-directory=\"path\" parameter to
17887 ./configure will avoid this prompt.
17889 Location to write persistent information ($defaultstore): $ac_c"
17890 read tmpinput
17891 if test "$tmpinput" = "" -a "$defaultstore" != ""; then
17892 tmpinput="$defaultstore"
17894 eval PERSISTENT_DIRECTORY=\"$tmpinput\"
17895 else
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"
17913 else
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
17932 else
17935 if test "x$defaults" = "xno"; then
17936 echo $ac_n "
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"
17949 read tmpinput
17950 if test "$tmpinput" = "" -a ""yes"" != ""; then
17951 tmpinput=""yes""
17953 eval ac_cv_user_prompt_COPY_PERSISTENT_FILES=\"$tmpinput\"
17954 else
17955 tmpinput=""yes""
17956 eval ac_cv_user_prompt_COPY_PERSISTENT_FILES=\"$tmpinput\"
17963 echo "$ac_t""$ac_cv_user_prompt_COPY_PERSISTENT_FILES" 1>&6
17964 else
17965 ac_cv_user_prompt_COPY_PERSISTENT_FILES="no"
17967 COPY_PERSISTENT_FILES="$ac_cv_user_prompt_COPY_PERSISTENT_FILES"
17972 trap '' 1 2 15
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.
17994 (set) 2>&1 |
17995 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17996 *ac_space=\ *)
17997 # `set' does not quote correctly, so add quotes (double-quote substitution
17998 # turns \\\\ into \\, and sed turns \\ into \).
17999 sed -n \
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'
18007 esac >> confcache
18008 if cmp -s $cache_file confcache; then
18010 else
18011 if test -w $cache_file; then
18012 echo "updating cache $cache_file"
18013 cat confcache > $cache_file
18014 else
18015 echo "not updating unwritable cache $cache_file"
18018 rm -f confcache
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
18043 #! /bin/sh
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]"
18055 for ac_option
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"
18063 exit 0 ;;
18064 -help | --help | --hel | --he | --h)
18065 echo "\$ac_cs_usage"; exit 0 ;;
18066 *) echo "\$ac_cs_usage"; exit 1 ;;
18067 esac
18068 done
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
18093 $ac_vpsub
18094 $extrasub
18095 s%@SHELL@%$SHELL%g
18096 s%@CFLAGS@%$CFLAGS%g
18097 s%@CPPFLAGS@%$CPPFLAGS%g
18098 s%@CXXFLAGS@%$CXXFLAGS%g
18099 s%@FFLAGS@%$FFLAGS%g
18100 s%@DEFS@%$DEFS%g
18101 s%@LDFLAGS@%$LDFLAGS%g
18102 s%@LIBS@%$LIBS%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
18124 s%@CC@%$CC%g
18125 s%@CPP@%$CPP%g
18126 s%@EXEEXT@%$EXEEXT%g
18127 s%@host@%$host%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
18132 s%@build@%$build%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
18137 s%@LN_S@%$LN_S%g
18138 s%@OBJEXT@%$OBJEXT%g
18139 s%@ECHO@%$ECHO%g
18140 s%@RANLIB@%$RANLIB%g
18141 s%@STRIP@%$STRIP%g
18142 s%@DLLTOOL@%$DLLTOOL%g
18143 s%@AS@%$AS%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
18153 s%@SED@%$SED%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
18190 s%@PSCMD@%$PSCMD%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
18201 CEOF
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.
18212 ac_more_lines=:
18213 ac_sed_cmds=""
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
18217 else
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
18223 else
18224 if test -z "$ac_sed_cmds"; then
18225 ac_sed_cmds="sed -f conftest.s$ac_file"
18226 else
18227 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18229 ac_file=`expr $ac_file + 1`
18230 ac_beg=$ac_end
18231 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18233 done
18234 if test -z "$ac_sed_cmds"; then
18235 ac_sed_cmds=cat
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".
18258 case "$ac_file" 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" ;;
18262 esac
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'`
18274 else
18275 ac_dir_suffix= ac_dots=
18278 case "$ac_given_srcdir" in
18279 .) srcdir=.
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" ;;
18286 esac
18288 case "$ac_given_INSTALL" in
18289 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18290 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18291 esac
18293 echo creating "$ac_file"
18294 rm -f "$ac_file"
18295 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18296 case "$ac_file" in
18297 *Makefile*) ac_comsub="1i\\
18298 # $configure_input" ;;
18299 *) ac_comsub= ;;
18300 esac
18302 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18303 sed -e "$ac_comsub
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
18309 fi; done
18310 rm -f conftest.s*
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'
18318 ac_dC='\3'
18319 ac_dD='%g'
18320 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18321 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18322 ac_uB='\([ ]\)%\1#\2define\3'
18323 ac_uC=' '
18324 ac_uD='\4%g'
18325 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18326 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18327 ac_eB='$%\1#\2define\3'
18328 ac_eC=' '
18329 ac_eD='%g'
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".
18340 case "$ac_file" 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" ;;
18344 esac
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
18360 s/[\\&%]/\\&/g
18361 s%[\\$`]%\\&%g
18362 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18363 s%ac_d%ac_u%gp
18364 s%ac_u%ac_e%gp
18366 sed -n -f conftest.hdr confdefs.h > conftest.vals
18367 rm -f conftest.hdr
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
18380 while :
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
18388 echo 'CEOF
18389 sed -f conftest.frag conftest.in > conftest.out
18390 rm -f conftest.in
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
18396 done
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
18403 rm -f conftest.in
18404 if cmp -s $ac_file conftest.h 2>/dev/null; then
18405 echo "$ac_file is unchanged"
18406 rm -f conftest.h
18407 else
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"
18414 rm -f $ac_file
18415 mv conftest.h $ac_file
18417 fi; done
18420 cat >> $CONFIG_STATUS <<EOF
18423 cat >> $CONFIG_STATUS <<\EOF
18425 echo timestamp > stamp-h
18426 chmod 755 net-snmp-config
18428 exit 0
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
18436 echo ""
18437 echo "---------------------------------------------------------"
18438 echo " Net-SNMP configuration summary:"
18439 echo "---------------------------------------------------------"
18440 echo ""
18441 cat configure-summary
18442 echo ""
18443 echo "---------------------------------------------------------"
18444 echo ""