Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.72 for Net-SNMP 5.9.5.2.
5 #
6 # Report bugs to <[email protected]>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else case e in #(
30 e) case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac ;;
36 esac
37 fi
38
39
40
41 # Reset variables that may have inherited troublesome values from
42 # the environment.
43
44 # IFS needs to be set, to space, tab, and newline, in precisely that order.
45 # (If _AS_PATH_WALK were called with IFS unset, it would have the
46 # side effect of setting IFS to empty, thus disabling word splitting.)
47 # Quoting is to prevent editors from complaining about space-tab.
48 as_nl='
49 '
50 export as_nl
51 IFS=" "" $as_nl"
52
53 PS1='$ '
54 PS2='> '
55 PS4='+ '
56
57 # Ensure predictable behavior from utilities with locale-dependent output.
58 LC_ALL=C
59 export LC_ALL
60 LANGUAGE=C
61 export LANGUAGE
62
63 # We cannot yet rely on "unset" to work, but we need these variables
64 # to be unset--not just set to an empty or harmless value--now, to
65 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
66 # also avoids known problems related to "unset" and subshell syntax
67 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
68 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
69 do eval test \${$as_var+y} \
70 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
71 done
72
73 # Ensure that fds 0, 1, and 2 are open.
74 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
75 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
76 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77
78 # The user is always right.
79 if ${PATH_SEPARATOR+false} :; then
80 PATH_SEPARATOR=:
81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 PATH_SEPARATOR=';'
84 }
85 fi
86
87
88 # Find who we are. Look in the path if we contain no directory separator.
89 as_myself=
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 case $as_dir in #(((
97 '') as_dir=./ ;;
98 */) ;;
99 *) as_dir=$as_dir/ ;;
100 esac
101 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as 'sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117
118 # Use a proper internal environment variable to ensure we don't fall
119 # into an infinite loop, continuously re-executing ourselves.
120 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
121 _as_can_reexec=no; export _as_can_reexec;
122 # We cannot yet assume a decent shell, so we have to provide a
123 # neutralization value for shells without unset; and this also
124 # works around shells that cannot unset nonexistent variables.
125 # Preserve -v and -x to the replacement shell.
126 BASH_ENV=/dev/null
127 ENV=/dev/null
128 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 case $- in # ((((
130 *v*x* | *x*v* ) as_opts=-vx ;;
131 *v* ) as_opts=-v ;;
132 *x* ) as_opts=-x ;;
133 * ) as_opts= ;;
134 esac
135 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
136 # Admittedly, this is quite paranoid, since all the known shells bail
137 # out after a failed 'exec'.
138 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
139 exit 255
140 fi
141 # We don't want this to propagate to other subprocesses.
142 { _as_can_reexec=; unset _as_can_reexec;}
143 if test "x$CONFIG_SHELL" = x; then
144 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else case e in #(
153 e) case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac ;;
159 esac
160 fi
161 "
162 as_required="as_fn_return () { (exit \$1); }
163 as_fn_success () { as_fn_return 0; }
164 as_fn_failure () { as_fn_return 1; }
165 as_fn_ret_success () { return 0; }
166 as_fn_ret_failure () { return 1; }
167
168 exitcode=0
169 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
170 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
171 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
172 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
173 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 then :
175
176 else case e in #(
177 e) exitcode=1; echo positional parameters were not saved. ;;
178 esac
179 fi
180 test x\$exitcode = x0 || exit 1
181 blah=\$(echo \$(echo blah))
182 test x\"\$blah\" = xblah || exit 1
183 test -x / || exit 1"
184 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
185 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
186 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
187 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
188 test \$(( 1 + 1 )) = 2 || exit 1
189
190 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
191 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
194 PATH=/empty FPATH=/empty; export PATH FPATH
195 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
196 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
197 if (eval "$as_required") 2>/dev/null
198 then :
199 as_have_required=yes
200 else case e in #(
201 e) as_have_required=no ;;
202 esac
203 fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 then :
206
207 else case e in #(
208 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 case $as_dir in #(((
214 '') as_dir=./ ;;
215 */) ;;
216 *) as_dir=$as_dir/ ;;
217 esac
218 as_found=:
219 case $as_dir in #(
220 /*)
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
226 then :
227 CONFIG_SHELL=$as_shell as_have_required=yes
228 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
229 then :
230 break 2
231 fi
232 fi
233 done;;
234 esac
235 as_found=false
236 done
237 IFS=$as_save_IFS
238 if $as_found
239 then :
240
241 else case e in #(
242 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
244 then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi ;;
247 esac
248 fi
249
250
251 if test "x$CONFIG_SHELL" != x
252 then :
253 export CONFIG_SHELL
254 # We cannot yet assume a decent shell, so we have to provide a
255 # neutralization value for shells without unset; and this also
256 # works around shells that cannot unset nonexistent variables.
257 # Preserve -v and -x to the replacement shell.
258 BASH_ENV=/dev/null
259 ENV=/dev/null
260 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
261 case $- in # ((((
262 *v*x* | *x*v* ) as_opts=-vx ;;
263 *v* ) as_opts=-v ;;
264 *x* ) as_opts=-x ;;
265 * ) as_opts= ;;
266 esac
267 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
268 # Admittedly, this is quite paranoid, since all the known shells bail
269 # out after a failed 'exec'.
270 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
271 exit 255
272 fi
273
274 if test x$as_have_required = xno
275 then :
276 printf "%s\n" "$0: This script requires a shell more modern than all"
277 printf "%s\n" "$0: the shells that I found on your system."
278 if test ${ZSH_VERSION+y} ; then
279 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
280 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
281 else
282 printf "%s\n" "$0: Please tell [email protected] and
283 $0: [email protected] about your
284 $0: system, including any error possibly output before this
285 $0: message. Then install a modern shell, or manually run
286 $0: the script under such a shell if you do have one."
287 fi
288 exit 1
289 fi ;;
290 esac
291 fi
292 fi
293 SHELL=${CONFIG_SHELL-/bin/sh}
294 export SHELL
295 # Unset more variables known to interfere with behavior of common tools.
296 CLICOLOR_FORCE= GREP_OPTIONS=
297 unset CLICOLOR_FORCE GREP_OPTIONS
298
299 ## --------------------- ##
300 ## M4sh Shell Functions. ##
301 ## --------------------- ##
302 # as_fn_unset VAR
303 # ---------------
304 # Portably unset VAR.
305 as_fn_unset ()
306 {
307 { eval $1=; unset $1;}
308 }
309 as_unset=as_fn_unset
310
311
312 # as_fn_set_status STATUS
313 # -----------------------
314 # Set $? to STATUS, without forking.
315 as_fn_set_status ()
316 {
317 return $1
318 } # as_fn_set_status
319
320 # as_fn_exit STATUS
321 # -----------------
322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 as_fn_exit ()
324 {
325 set +e
326 as_fn_set_status $1
327 exit $1
328 } # as_fn_exit
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else case e in #(
398 e) as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 } ;;
402 esac
403 fi # as_fn_append
404
405 # as_fn_arith ARG...
406 # ------------------
407 # Perform arithmetic evaluation on the ARGs, and store the result in the
408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
409 # must be portable across $(()) and expr.
410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411 then :
412 eval 'as_fn_arith ()
413 {
414 as_val=$(( $* ))
415 }'
416 else case e in #(
417 e) as_fn_arith ()
418 {
419 as_val=`expr "$@" || test $? -eq 1`
420 } ;;
421 esac
422 fi # as_fn_arith
423
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 t clear
498 :clear
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560 # In both cases, we have to default to 'cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588 # Sed expression to map a string onto a valid variable name.
589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595 test -n "$DJDIR" || exec 7<&0 </dev/null
596 exec 6>&1
597
598 # Name of the host.
599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600 # so uname gets run too.
601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603 #
604 # Initializations.
605 #
606 ac_default_prefix=/usr/local
607 ac_clean_files=
608 ac_config_libobj_dir=.
609 LIBOBJS=
610 cross_compiling=no
611 subdirs=
612 MFLAGS=
613 MAKEFLAGS=
614
615 # Identity of this package.
616 PACKAGE_NAME='Net-SNMP'
617 PACKAGE_TARNAME='net-snmp'
618 PACKAGE_VERSION='5.9.5.2'
619 PACKAGE_STRING='Net-SNMP 5.9.5.2'
620 PACKAGE_BUGREPORT='[email protected]'
621 PACKAGE_URL=''
622
623 ac_unique_file="agent/snmpd.c"
624 # Factoring default headers for most tests.
625 ac_includes_default="\
626 #include <stddef.h>
627 #ifdef HAVE_STDIO_H
628 # include <stdio.h>
629 #endif
630 #ifdef HAVE_STDLIB_H
631 # include <stdlib.h>
632 #endif
633 #ifdef HAVE_STRING_H
634 # include <string.h>
635 #endif
636 #ifdef HAVE_INTTYPES_H
637 # include <inttypes.h>
638 #endif
639 #ifdef HAVE_STDINT_H
640 # include <stdint.h>
641 #endif
642 #ifdef HAVE_STRINGS_H
643 # include <strings.h>
644 #endif
645 #ifdef HAVE_SYS_TYPES_H
646 # include <sys/types.h>
647 #endif
648 #ifdef HAVE_SYS_STAT_H
649 # include <sys/stat.h>
650 #endif
651 #ifdef HAVE_UNISTD_H
652 # include <unistd.h>
653 #endif"
654
655 ac_header_c_list=
656 ac_config_libobj_dir=snmplib
657 ac_subst_vars='LTLIBOBJS
658 ac_cv_NETSNMP_SYSTEM_INCLUDE_FILE
659 PARTIALTARGETFLAGS
660 DLLIBS
661 OTHERAGENTLIBLFTS
662 OTHERAGENTLIBLOBJS
663 OTHERAGENTLIBOBJS
664 AGENTLIBS
665 PSCMD
666 LPSTAT_PATH
667 LIBOBJS
668 ALLOCA
669 VAL_LIBS
670 LNETSNMPLIBS
671 PYTHONFEATURES
672 PYTHONARGS
673 PYTHONCLEANTARGS
674 PYTHONUNINSTALLTARGS
675 PYTHONINSTALLTARGS
676 PYTHONTARGS
677 PERLFEATURES
678 PERLARGS
679 PERLUNINSTALLTARGS
680 PERLINSTALLTARGS
681 PERLTARGS
682 PERLLDOPTS_FOR_APPS
683 PERLLDOPTS_FOR_LIBS
684 EMBEDPERLUNINSTALL
685 EMBEDPERLINSTALL
686 LIBCURSES
687 HAVE_LIBCURSES
688 NETSNMP_BUILD_PCAP_PROG_FALSE
689 NETSNMP_BUILD_PCAP_PROG_TRUE
690 MYSQL_INCLUDES
691 MYSQL_LIBS
692 MYSQLCONFIG
693 crypto_files_lo
694 crypto_files_o
695 crypto_files_c
696 NETSNMP_BUILD_SET_PROG_FALSE
697 NETSNMP_BUILD_SET_PROG_TRUE
698 NETSNMP_BUILD_USM_PROG_FALSE
699 NETSNMP_BUILD_USM_PROG_TRUE
700 NETSNMP_BUILD_TLS_PROG_FALSE
701 NETSNMP_BUILD_TLS_PROG_TRUE
702 NETSNMP_BUILD_SSH_PROG_FALSE
703 NETSNMP_BUILD_SSH_PROG_TRUE
704 OPENSSL_LIBS
705 OPENSSL_CFLAGS
706 NETSNMP_HAVE_AGENTX_LIBS_FALSE
707 NETSNMP_HAVE_AGENTX_LIBS_TRUE
708 NETSNMP_DEFAULT_MIBS
709 ENV_SEPARATOR
710 dllcleans
711 default_mibs_install
712 LIBNLROUTE3_LIBS
713 LIBNLROUTE3_CFLAGS
714 LIBNL3_LIBS
715 LIBNL3_CFLAGS
716 PKG_CONFIG_LIBDIR
717 PKG_CONFIG_PATH
718 PKG_CONFIG
719 LMIBLIBS
720 LAGENTLIBS
721 krb5_config
722 security_ftobj_list
723 security_lobj_list
724 security_obj_list
725 security_hdr_list
726 security_src_list
727 transport_ftobj_list
728 transport_lobj_list
729 transport_obj_list
730 transport_src_list
731 transport_hdr_list
732 other_trapd_objects
733 other_ftagentobjs
734 other_lagentobjs
735 other_agentobjs
736 other_ftobjs_list
737 other_lobjs_list
738 other_objs_list
739 other_src_list
740 SNMPCONFPATH
741 NETSNMP_DEFAULT_MIBDIRS
742 SNMPSHAREPATH
743 SNMPLIBPATH
744 VERSION
745 DPKG_QUERY_PATH
746 CCPATH
747 EXTRACPPFLAGS
748 LD_NO_UNDEFINED
749 target_os
750 target_vendor
751 target_cpu
752 target
753 NON_GNU_VPATH
754 GNU_vpath
755 EXTERNAL_MIBGROUP_INCLUDES
756 MIBGROUP_INCLUDES
757 HELPER_INCLUDES
758 AGENT_INCLUDES
759 SNMPLIB_INCLUDES
760 TOP_INCLUDES
761 DEVFLAGS
762 LIBTOOL_DEPS
763 RC
764 LT_SYS_LIBRARY_PATH
765 OTOOL64
766 OTOOL
767 LIPO
768 NMEDIT
769 DSYMUTIL
770 MANIFEST_TOOL
771 AWK
772 RANLIB
773 STRIP
774 ac_ct_AR
775 AR
776 NM
777 ac_ct_DUMPBIN
778 DUMPBIN
779 LD
780 FGREP
781 host_os
782 host_vendor
783 host_cpu
784 host
785 build_os
786 build_vendor
787 build_cpu
788 build
789 LIBTOOL
790 OBJDUMP
791 DLLTOOL
792 AS
793 LINKCC
794 CPP
795 PERL_SYSTEM_INVOKES_POSIX_SHELL
796 UNAMEPROG
797 PYTHONPROG
798 PSPROG
799 PERLPROG
800 AUTOHEADER
801 AUTOCONF
802 WHOAMI
803 FIND
804 FILE
805 SED
806 SET_MAKE
807 LN_S
808 INSTALL_DATA
809 INSTALL_SCRIPT
810 INSTALL_PROGRAM
811 EGREP
812 GREP
813 COPY_PERSISTENT_FILES
814 UCDPERSISTENT_DIRECTORY
815 PERSISTENT_DIRECTORY
816 FEATUREHEADERS
817 FEATURETARGS
818 FEATURE_REMOVE_FLAGS
819 FEATURE_ADD_FLAGS
820 installucdlibs
821 installucdheaders
822 FTMAINSUBS
823 MAINSUBS
824 USETRAPLIBS
825 TRAPLIBS
826 SNMPD
827 INSTALL_PREFIX
828 LIBTOOLFLAGS
829 OBJEXT
830 EXEEXT
831 ac_ct_CC
832 CPPFLAGS
833 LDFLAGS
834 CFLAGS
835 CC
836 CONFIGURE_OPTIONS
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 runstatedir
857 localstatedir
858 sharedstatedir
859 sysconfdir
860 datadir
861 datarootdir
862 libexecdir
863 sbindir
864 bindir
865 program_transform_name
866 prefix
867 exec_prefix
868 PACKAGE_URL
869 PACKAGE_BUGREPORT
870 PACKAGE_STRING
871 PACKAGE_VERSION
872 PACKAGE_TARNAME
873 PACKAGE_NAME
874 PATH_SEPARATOR
875 SHELL'
876 ac_subst_files='MODULE_LIST
877 module_list_c
878 module_list_o
879 module_list_lo
880 module_list_ft
881 mib_module_list_c
882 mib_module_list_o
883 mib_module_list_lo
884 mib_module_list_ft
885 agent_module_list_c
886 agent_module_list_o
887 agent_module_list_lo
888 agent_module_list_ft
889 mibgroup_list_o
890 mibgroup_list_lo
891 mibgroup_list_ft
892 agentgroup_list_o
893 agentgroup_list_lo
894 agentgroup_list_ft
895 module_rules
896 module_list_deps
897 mib_module_list_deps
898 agent_module_list_deps'
899 ac_user_opts='
900 enable_option_checking
901 with_cc
902 with_linkcc
903 with_ar
904 with_endianness
905 with_cflags
906 with_ldflags
907 enable_as_needed
908 with_libs
909 enable_silent_libtool
910 with_rsaref
911 enable_rsaref
912 with_openssl
913 enable_openssl
914 with_wolfssl
915 enable_wolfssl
916 with_ssl
917 enable_ssl
918 with_pkcs
919 enable_pkcs
920 with_krb5
921 enable_krb5
922 with_dnssec_local_validation
923 enable_dnssec_local_validation
924 with_dnssec
925 enable_dnssec
926 with_rpm
927 enable_rpm
928 with_pcre
929 enable_pcre
930 with_install_prefix
931 enable_agent
932 with_agent
933 enable_applications
934 with_applications
935 enable_manuals
936 with_manuals
937 enable_scripts
938 with_scripts
939 enable_mibs
940 enable_mib_config_checking
941 with_mib_config_checking
942 enable_mib_config_debug
943 with_mib_config_debug
944 enable_new_features
945 enable_old_features
946 with_features_of
947 with_defaults
948 enable_defaults
949 enable_ucd_snmp_compatibility
950 with_ucd_snmp_compatibility
951 enable_mib_loading
952 with_mib_loading
953 with_mibdirs
954 enable_mibdirs
955 with_mibs
956 with_mibfiles
957 enable_mibfiles
958 enable_des
959 with_des
960 enable_privacy
961 with_privacy
962 enable_md5
963 with_md5
964 enable_internal_md5
965 with_internal_md5
966 enable_blumenthal_aes
967 with_blumenthal_aes
968 with_opaque_special_types
969 enable_opaque_special_types
970 enable_ipv6
971 with_ipv6
972 with_logfile
973 enable_logfile
974 enable_usmUser_uses_default_auth_priv
975 with_usmUser_uses_default_auth_priv
976 enable_daemons_syslog_as_default
977 with_daemons_syslog_as_default
978 with_persistent_directory
979 enable_persistent_directory
980 with_persistent_mask
981 enable_persistent_mask
982 with_copy_persistent_files
983 enable_copy_persistent_files
984 with_temp_file_pattern
985 enable_temp_file_pattern
986 enable_snmpv1
987 with_snmpv1
988 enable_snmpv2c
989 with_snmpv2c
990 with_default_snmp_version
991 enable_default_snmp_version
992 with_transports
993 with_out_transports
994 with_transport
995 with_out_transport
996 with_security_modules
997 enable_security_modules
998 with_out_security_modules
999 enable_out_security_modules
1000 enable_debugging
1001 with_debugging
1002 enable_developer
1003 with_developer
1004 enable_testing_code
1005 with_testing_code
1006 enable_reentrant
1007 with_reentrant
1008 enable_deprecated
1009 with_deprecated
1010 with_root_access
1011 enable_root_access
1012 with_kmem_usage
1013 enable_kmem_usage
1014 with_dummy_values
1015 enable_dummy_values
1016 with_systemd
1017 enable_systemd
1018 enable_set_support
1019 with_set_support
1020 with_sys_contact
1021 enable_sys_contact
1022 with_sys_location
1023 enable_sys_location
1024 enable_local_smux
1025 with_local_smux
1026 enable_agentx_dom_sock_only
1027 with_agentx_dom_sock_only
1028 enable_snmptrapd_subagent
1029 with_snmptrapd_subagent
1030 with_agentx_socket
1031 enable_agentx_socket
1032 with_features
1033 enable_features
1034 with_out_features
1035 enable_out_features
1036 with_feature
1037 with_out_feature
1038 enable_minimalist
1039 with_minimalist
1040 enable_notify_only
1041 with_notify_only
1042 enable_notifyonly
1043 enable_no_listen
1044 with_no_listen
1045 enable_nolisten
1046 enable_read_only
1047 with_read_only
1048 enable_readonly
1049 enable_mini_agent
1050 with_mini_agent
1051 with_miniagent
1052 enable_miniagent
1053 enable_mfd_rewrites
1054 with_mfd_rewrites
1055 with_mib_modules
1056 enable_mib_modules
1057 with_out_mib_modules
1058 enable_out_mib_modules
1059 with_mib_module
1060 with_module
1061 with_modules
1062 with_out_mib_module
1063 with_out_module
1064 with_out_modules
1065 with_enterprise_oid
1066 enable_enterprise_oid
1067 with_enterprise_sysoid
1068 enable_enterprise_sysoid
1069 with_enterprise_notification_oid
1070 enable_enterprise_notification_oid
1071 with_perl_modules
1072 enable_perl_modules
1073 enable_embedded_perl
1074 with_embedded_perl
1075 enable_perl_cc_checks
1076 with_perl_cc_checks
1077 with_python_modules
1078 with_server_send_buf
1079 enable_server_send_buf
1080 with_server_recv_buf
1081 enable_server_recv_buf
1082 with_client_send_buf
1083 enable_client_send_buf
1084 with_client_recv_buf
1085 enable_client_recv_buf
1086 with_elf
1087 enable_elf
1088 with_nl
1089 enable_nl
1090 with_libwrap
1091 enable_libwrap
1092 with_zlib
1093 enable_zlib
1094 with_bzip2
1095 with_mnttab
1096 enable_mnttab
1097 with_mysql
1098 enable_mysql
1099 enable_shared
1100 enable_static
1101 with_pic
1102 enable_fast_install
1103 with_aix_soname
1104 with_gnu_ld
1105 with_sysroot
1106 enable_libtool_lock
1107 '
1108 ac_precious_vars='build_alias
1109 host_alias
1110 target_alias
1111 CC
1112 CFLAGS
1113 LDFLAGS
1114 LIBS
1115 CPPFLAGS
1116 CPP
1117 LT_SYS_LIBRARY_PATH
1118 PKG_CONFIG
1119 PKG_CONFIG_PATH
1120 PKG_CONFIG_LIBDIR
1121 LIBNL3_CFLAGS
1122 LIBNL3_LIBS
1123 LIBNLROUTE3_CFLAGS
1124 LIBNLROUTE3_LIBS
1125 OPENSSL_CFLAGS
1126 OPENSSL_LIBS'
1127
1128
1129 # Initialize some variables set by options.
1130 ac_init_help=
1131 ac_init_version=false
1132 ac_unrecognized_opts=
1133 ac_unrecognized_sep=
1134 # The variables have the same names as the options, with
1135 # dashes changed to underlines.
1136 cache_file=/dev/null
1137 exec_prefix=NONE
1138 no_create=
1139 no_recursion=
1140 prefix=NONE
1141 program_prefix=NONE
1142 program_suffix=NONE
1143 program_transform_name=s,x,x,
1144 silent=
1145 site=
1146 srcdir=
1147 verbose=
1148 x_includes=NONE
1149 x_libraries=NONE
1150
1151 # Installation directory options.
1152 # These are left unexpanded so users can "make install exec_prefix=/foo"
1153 # and all the variables that are supposed to be based on exec_prefix
1154 # by default will actually change.
1155 # Use braces instead of parens because sh, perl, etc. also accept them.
1156 # (The list follows the same order as the GNU Coding Standards.)
1157 bindir='${exec_prefix}/bin'
1158 sbindir='${exec_prefix}/sbin'
1159 libexecdir='${exec_prefix}/libexec'
1160 datarootdir='${prefix}/share'
1161 datadir='${datarootdir}'
1162 sysconfdir='${prefix}/etc'
1163 sharedstatedir='${prefix}/com'
1164 localstatedir='${prefix}/var'
1165 runstatedir='${localstatedir}/run'
1166 includedir='${prefix}/include'
1167 oldincludedir='/usr/include'
1168 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1169 infodir='${datarootdir}/info'
1170 htmldir='${docdir}'
1171 dvidir='${docdir}'
1172 pdfdir='${docdir}'
1173 psdir='${docdir}'
1174 libdir='${exec_prefix}/lib'
1175 localedir='${datarootdir}/locale'
1176 mandir='${datarootdir}/man'
1177
1178 ac_prev=
1179 ac_dashdash=
1180 for ac_option
1181 do
1182 # If the previous option needs an argument, assign it.
1183 if test -n "$ac_prev"; then
1184 eval $ac_prev=\$ac_option
1185 ac_prev=
1186 continue
1187 fi
1188
1189 case $ac_option in
1190 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1191 *=) ac_optarg= ;;
1192 *) ac_optarg=yes ;;
1193 esac
1194
1195 case $ac_dashdash$ac_option in
1196 --)
1197 ac_dashdash=yes ;;
1198
1199 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1200 ac_prev=bindir ;;
1201 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1202 bindir=$ac_optarg ;;
1203
1204 -build | --build | --buil | --bui | --bu)
1205 ac_prev=build_alias ;;
1206 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1207 build_alias=$ac_optarg ;;
1208
1209 -cache-file | --cache-file | --cache-fil | --cache-fi \
1210 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1211 ac_prev=cache_file ;;
1212 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1213 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1214 cache_file=$ac_optarg ;;
1215
1216 --config-cache | -C)
1217 cache_file=config.cache ;;
1218
1219 -datadir | --datadir | --datadi | --datad)
1220 ac_prev=datadir ;;
1221 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1222 datadir=$ac_optarg ;;
1223
1224 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1225 | --dataroo | --dataro | --datar)
1226 ac_prev=datarootdir ;;
1227 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1228 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1229 datarootdir=$ac_optarg ;;
1230
1231 -disable-* | --disable-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error $? "invalid feature name: '$ac_useropt'"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240 "enable_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval enable_$ac_useropt=no ;;
1246
1247 -docdir | --docdir | --docdi | --doc | --do)
1248 ac_prev=docdir ;;
1249 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1250 docdir=$ac_optarg ;;
1251
1252 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1253 ac_prev=dvidir ;;
1254 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1255 dvidir=$ac_optarg ;;
1256
1257 -enable-* | --enable-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid feature name: '$ac_useropt'"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1265 *"
1266 "enable_$ac_useropt"
1267 "*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval enable_$ac_useropt=\$ac_optarg ;;
1272
1273 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1274 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1275 | --exec | --exe | --ex)
1276 ac_prev=exec_prefix ;;
1277 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1278 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1279 | --exec=* | --exe=* | --ex=*)
1280 exec_prefix=$ac_optarg ;;
1281
1282 -gas | --gas | --ga | --g)
1283 # Obsolete; use --with-gas.
1284 with_gas=yes ;;
1285
1286 -help | --help | --hel | --he | -h)
1287 ac_init_help=long ;;
1288 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1289 ac_init_help=recursive ;;
1290 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1291 ac_init_help=short ;;
1292
1293 -host | --host | --hos | --ho)
1294 ac_prev=host_alias ;;
1295 -host=* | --host=* | --hos=* | --ho=*)
1296 host_alias=$ac_optarg ;;
1297
1298 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1299 ac_prev=htmldir ;;
1300 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1301 | --ht=*)
1302 htmldir=$ac_optarg ;;
1303
1304 -includedir | --includedir | --includedi | --included | --include \
1305 | --includ | --inclu | --incl | --inc)
1306 ac_prev=includedir ;;
1307 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1308 | --includ=* | --inclu=* | --incl=* | --inc=*)
1309 includedir=$ac_optarg ;;
1310
1311 -infodir | --infodir | --infodi | --infod | --info | --inf)
1312 ac_prev=infodir ;;
1313 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1314 infodir=$ac_optarg ;;
1315
1316 -libdir | --libdir | --libdi | --libd)
1317 ac_prev=libdir ;;
1318 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1319 libdir=$ac_optarg ;;
1320
1321 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1322 | --libexe | --libex | --libe)
1323 ac_prev=libexecdir ;;
1324 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1325 | --libexe=* | --libex=* | --libe=*)
1326 libexecdir=$ac_optarg ;;
1327
1328 -localedir | --localedir | --localedi | --localed | --locale)
1329 ac_prev=localedir ;;
1330 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1331 localedir=$ac_optarg ;;
1332
1333 -localstatedir | --localstatedir | --localstatedi | --localstated \
1334 | --localstate | --localstat | --localsta | --localst | --locals)
1335 ac_prev=localstatedir ;;
1336 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1337 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1338 localstatedir=$ac_optarg ;;
1339
1340 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1341 ac_prev=mandir ;;
1342 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1343 mandir=$ac_optarg ;;
1344
1345 -nfp | --nfp | --nf)
1346 # Obsolete; use --without-fp.
1347 with_fp=no ;;
1348
1349 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1350 | --no-cr | --no-c | -n)
1351 no_create=yes ;;
1352
1353 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1354 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1355 no_recursion=yes ;;
1356
1357 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1358 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1359 | --oldin | --oldi | --old | --ol | --o)
1360 ac_prev=oldincludedir ;;
1361 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1362 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1363 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1364 oldincludedir=$ac_optarg ;;
1365
1366 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1367 ac_prev=prefix ;;
1368 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1369 prefix=$ac_optarg ;;
1370
1371 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1372 | --program-pre | --program-pr | --program-p)
1373 ac_prev=program_prefix ;;
1374 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1375 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1376 program_prefix=$ac_optarg ;;
1377
1378 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1379 | --program-suf | --program-su | --program-s)
1380 ac_prev=program_suffix ;;
1381 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1382 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1383 program_suffix=$ac_optarg ;;
1384
1385 -program-transform-name | --program-transform-name \
1386 | --program-transform-nam | --program-transform-na \
1387 | --program-transform-n | --program-transform- \
1388 | --program-transform | --program-transfor \
1389 | --program-transfo | --program-transf \
1390 | --program-trans | --program-tran \
1391 | --progr-tra | --program-tr | --program-t)
1392 ac_prev=program_transform_name ;;
1393 -program-transform-name=* | --program-transform-name=* \
1394 | --program-transform-nam=* | --program-transform-na=* \
1395 | --program-transform-n=* | --program-transform-=* \
1396 | --program-transform=* | --program-transfor=* \
1397 | --program-transfo=* | --program-transf=* \
1398 | --program-trans=* | --program-tran=* \
1399 | --progr-tra=* | --program-tr=* | --program-t=*)
1400 program_transform_name=$ac_optarg ;;
1401
1402 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1403 ac_prev=pdfdir ;;
1404 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1405 pdfdir=$ac_optarg ;;
1406
1407 -psdir | --psdir | --psdi | --psd | --ps)
1408 ac_prev=psdir ;;
1409 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1410 psdir=$ac_optarg ;;
1411
1412 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1413 | -silent | --silent | --silen | --sile | --sil)
1414 silent=yes ;;
1415
1416 -runstatedir | --runstatedir | --runstatedi | --runstated \
1417 | --runstate | --runstat | --runsta | --runst | --runs \
1418 | --run | --ru | --r)
1419 ac_prev=runstatedir ;;
1420 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1421 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1422 | --run=* | --ru=* | --r=*)
1423 runstatedir=$ac_optarg ;;
1424
1425 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1426 ac_prev=sbindir ;;
1427 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1428 | --sbi=* | --sb=*)
1429 sbindir=$ac_optarg ;;
1430
1431 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1432 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1433 | --sharedst | --shareds | --shared | --share | --shar \
1434 | --sha | --sh)
1435 ac_prev=sharedstatedir ;;
1436 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1437 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1438 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1439 | --sha=* | --sh=*)
1440 sharedstatedir=$ac_optarg ;;
1441
1442 -site | --site | --sit)
1443 ac_prev=site ;;
1444 -site=* | --site=* | --sit=*)
1445 site=$ac_optarg ;;
1446
1447 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1448 ac_prev=srcdir ;;
1449 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1450 srcdir=$ac_optarg ;;
1451
1452 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1453 | --syscon | --sysco | --sysc | --sys | --sy)
1454 ac_prev=sysconfdir ;;
1455 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1456 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1457 sysconfdir=$ac_optarg ;;
1458
1459 -target | --target | --targe | --targ | --tar | --ta | --t)
1460 ac_prev=target_alias ;;
1461 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1462 target_alias=$ac_optarg ;;
1463
1464 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1465 verbose=yes ;;
1466
1467 -version | --version | --versio | --versi | --vers | -V)
1468 ac_init_version=: ;;
1469
1470 -with-* | --with-*)
1471 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1472 # Reject names that are not valid shell variable names.
1473 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1474 as_fn_error $? "invalid package name: '$ac_useropt'"
1475 ac_useropt_orig=$ac_useropt
1476 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1477 case $ac_user_opts in
1478 *"
1479 "with_$ac_useropt"
1480 "*) ;;
1481 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1482 ac_unrecognized_sep=', ';;
1483 esac
1484 eval with_$ac_useropt=\$ac_optarg ;;
1485
1486 -without-* | --without-*)
1487 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1488 # Reject names that are not valid shell variable names.
1489 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1490 as_fn_error $? "invalid package name: '$ac_useropt'"
1491 ac_useropt_orig=$ac_useropt
1492 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1493 case $ac_user_opts in
1494 *"
1495 "with_$ac_useropt"
1496 "*) ;;
1497 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1498 ac_unrecognized_sep=', ';;
1499 esac
1500 eval with_$ac_useropt=no ;;
1501
1502 --x)
1503 # Obsolete; use --with-x.
1504 with_x=yes ;;
1505
1506 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1507 | --x-incl | --x-inc | --x-in | --x-i)
1508 ac_prev=x_includes ;;
1509 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1510 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1511 x_includes=$ac_optarg ;;
1512
1513 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1514 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1515 ac_prev=x_libraries ;;
1516 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1517 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1518 x_libraries=$ac_optarg ;;
1519
1520 -*) as_fn_error $? "unrecognized option: '$ac_option'
1521 Try '$0 --help' for more information"
1522 ;;
1523
1524 *=*)
1525 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1526 # Reject names that are not valid shell variable names.
1527 case $ac_envvar in #(
1528 '' | [0-9]* | *[!_$as_cr_alnum]* )
1529 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1530 esac
1531 eval $ac_envvar=\$ac_optarg
1532 export $ac_envvar ;;
1533
1534 *)
1535 # FIXME: should be removed in autoconf 3.0.
1536 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1537 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1538 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1539 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1540 ;;
1541
1542 esac
1543 done
1544
1545 if test -n "$ac_prev"; then
1546 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1547 as_fn_error $? "missing argument to $ac_option"
1548 fi
1549
1550 if test -n "$ac_unrecognized_opts"; then
1551 case $enable_option_checking in
1552 no) ;;
1553 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1554 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1555 esac
1556 fi
1557
1558 # Check all directory arguments for consistency.
1559 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1560 datadir sysconfdir sharedstatedir localstatedir includedir \
1561 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1562 libdir localedir mandir runstatedir
1563 do
1564 eval ac_val=\$$ac_var
1565 # Remove trailing slashes.
1566 case $ac_val in
1567 */ )
1568 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1569 eval $ac_var=\$ac_val;;
1570 esac
1571 # Be sure to have absolute directory names.
1572 case $ac_val in
1573 [\\/$]* | ?:[\\/]* ) continue;;
1574 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1575 esac
1576 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1577 done
1578
1579 # There might be people who depend on the old broken behavior: '$host'
1580 # used to hold the argument of --host etc.
1581 # FIXME: To remove some day.
1582 build=$build_alias
1583 host=$host_alias
1584 target=$target_alias
1585
1586 # FIXME: To remove some day.
1587 if test "x$host_alias" != x; then
1588 if test "x$build_alias" = x; then
1589 cross_compiling=maybe
1590 elif test "x$build_alias" != "x$host_alias"; then
1591 cross_compiling=yes
1592 fi
1593 fi
1594
1595 ac_tool_prefix=
1596 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1597
1598 test "$silent" = yes && exec 6>/dev/null
1599
1600
1601 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1602 ac_ls_di=`ls -di .` &&
1603 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1604 as_fn_error $? "working directory cannot be determined"
1605 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1606 as_fn_error $? "pwd does not report name of working directory"
1607
1608
1609 # Find the source files, if location was not specified.
1610 if test -z "$srcdir"; then
1611 ac_srcdir_defaulted=yes
1612 # Try the directory containing this script, then the parent directory.
1613 ac_confdir=`$as_dirname -- "$as_myself" ||
1614 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1615 X"$as_myself" : 'X\(//\)[^/]' \| \
1616 X"$as_myself" : 'X\(//\)$' \| \
1617 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1618 printf "%s\n" X"$as_myself" |
1619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1620 s//\1/
1621 q
1622 }
1623 /^X\(\/\/\)[^/].*/{
1624 s//\1/
1625 q
1626 }
1627 /^X\(\/\/\)$/{
1628 s//\1/
1629 q
1630 }
1631 /^X\(\/\).*/{
1632 s//\1/
1633 q
1634 }
1635 s/.*/./; q'`
1636 srcdir=$ac_confdir
1637 if test ! -r "$srcdir/$ac_unique_file"; then
1638 srcdir=..
1639 fi
1640 else
1641 ac_srcdir_defaulted=no
1642 fi
1643 if test ! -r "$srcdir/$ac_unique_file"; then
1644 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1645 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1646 fi
1647 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1648 ac_abs_confdir=`(
1649 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1650 pwd)`
1651 # When building in place, set srcdir=.
1652 if test "$ac_abs_confdir" = "$ac_pwd"; then
1653 srcdir=.
1654 fi
1655 # Remove unnecessary trailing slashes from srcdir.
1656 # Double slashes in file names in object file debugging info
1657 # mess up M-x gdb in Emacs.
1658 case $srcdir in
1659 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1660 esac
1661 for ac_var in $ac_precious_vars; do
1662 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1663 eval ac_env_${ac_var}_value=\$${ac_var}
1664 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1665 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1666 done
1667
1668 #
1669 # Report the --help message.
1670 #
1671 if test "$ac_init_help" = "long"; then
1672 # Omit some internal or obsolete options to make the list less imposing.
1673 # This message is too long to be a string in the A/UX 3.1 sh.
1674 cat <<_ACEOF
1675 'configure' configures Net-SNMP 5.9.5.2 to adapt to many kinds of systems.
1676
1677 Usage: $0 [OPTION]... [VAR=VALUE]...
1678
1679 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1680 VAR=VALUE. See below for descriptions of some of the useful variables.
1681
1682 Defaults for the options are specified in brackets.
1683
1684 Configuration:
1685 -h, --help display this help and exit
1686 --help=short display options specific to this package
1687 --help=recursive display the short help of all the included packages
1688 -V, --version display version information and exit
1689 -q, --quiet, --silent do not print 'checking ...' messages
1690 --cache-file=FILE cache test results in FILE [disabled]
1691 -C, --config-cache alias for '--cache-file=config.cache'
1692 -n, --no-create do not create output files
1693 --srcdir=DIR find the sources in DIR [configure dir or '..']
1694
1695 Installation directories:
1696 --prefix=PREFIX install architecture-independent files in PREFIX
1697 [$ac_default_prefix]
1698 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1699 [PREFIX]
1700
1701 By default, 'make install' will install all the files in
1702 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1703 an installation prefix other than '$ac_default_prefix' using '--prefix',
1704 for instance '--prefix=\$HOME'.
1705
1706 For better control, use the options below.
1707
1708 Fine tuning of the installation directories:
1709 --bindir=DIR user executables [EPREFIX/bin]
1710 --sbindir=DIR system admin executables [EPREFIX/sbin]
1711 --libexecdir=DIR program executables [EPREFIX/libexec]
1712 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1713 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1714 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1715 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1716 --libdir=DIR object code libraries [EPREFIX/lib]
1717 --includedir=DIR C header files [PREFIX/include]
1718 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1719 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1720 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1721 --infodir=DIR info documentation [DATAROOTDIR/info]
1722 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1723 --mandir=DIR man documentation [DATAROOTDIR/man]
1724 --docdir=DIR documentation root [DATAROOTDIR/doc/net-snmp]
1725 --htmldir=DIR html documentation [DOCDIR]
1726 --dvidir=DIR dvi documentation [DOCDIR]
1727 --pdfdir=DIR pdf documentation [DOCDIR]
1728 --psdir=DIR ps documentation [DOCDIR]
1729 _ACEOF
1730
1731 cat <<\_ACEOF
1732
1733 System types:
1734 --build=BUILD configure for building on BUILD [guessed]
1735 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1736 --target=TARGET configure for building compilers for TARGET [HOST]
1737 _ACEOF
1738 fi
1739
1740 if test -n "$ac_init_help"; then
1741 case $ac_init_help in
1742 short | recursive ) echo "Configuration of Net-SNMP 5.9.5.2:";;
1743 esac
1744 cat <<\_ACEOF
1745
1746 Optional Features:
1747 --disable-option-checking ignore unrecognized --enable/--with options
1748 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1749 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1750 --disable-as-needed Link libperl against applications rather
1751 than Net-SNMP libraries. Use only if the other
1752 way doesn't work.
1753 --enable-silent-libtool Pass --silent to libtool.
1754
1755 --disable-agent Do not build the agent (snmpd).
1756 --disable-applications Do not build the apps (snmpget, ...).
1757 --disable-manuals Do not install the manuals.
1758 --disable-scripts Do not install the scripts (mib2c, ...).
1759 --disable-mibs Do not install the mib files.
1760 --enable-mib-config-checking Turns on extra checks during configuration
1761 of mib modules. Any conflicts will cause
1762 configure to abort (default is to issue a
1763 warning and continue.)
1764 --enable-mib-config-debug Turns on verbose output during mib module
1765 configure processing.
1766 --enable-new-features Compile in new MIB modules and other experimental
1767 features which are due to be included in future
1768 releases.
1769 --enable-old-features Compile in old MIB modules and other deprecated
1770 features which were replaced in the default build of
1771 this release.
1772 --enable-ucd-snmp-compatibility Install ucd-snmp look-alike headers and libs.
1773
1774 --disable-mib-loading Do not include code that parses and
1775 manipulates the mib files.
1776 --disable-des Do not support DES encryption.
1777 --disable-privacy Don't compile in support for privacy (encryption).
1778 --disable-md5 Do not support MD5 authentication.
1779 --enable-internal-md5 Use the internal MD5 support.
1780 --enable-blumenthal-aes Enable AES-192/AES-256 (Blumenthal draft)
1781 --disable-ipv6 Disable IPv6 support.
1782 --enable-usmUser-uses-default-auth-priv Use default auth/priv protocols; createUser
1783 only needs auth/priv passphrases.
1784 --enable-daemons-syslog-as-default Use syslog when no other log destination defined.
1785 --disable-snmpv1 Do not include code that implements SNMPv1.
1786 --disable-snmpv2c Do not include code that implements SNMPv2c.
1787 --enable-debugging Outputs extra debugging information at all
1788 times. Normally, you should not enable this,
1789 but instead use the -D flag of the commands,
1790 which toggles debuging output at runtime.
1791 --disable-debugging Disallows debugging code to be built in.
1792 This might provide some speed benefits.
1793 --enable-developer Turns on super-duper-extra-compile-warnings
1794 when using gcc.
1795 --enable-testing-code Enables some code sections that should
1796 only be used for testing of certain
1797 SNMP functionalities. This should *not*
1798 be turned on for production use. Ever.
1799 --enable-reentrant Enables locking functions that protect
1800 library resources in some multi-threading
1801 environments. This does not guarantee
1802 thread-safe operation.
1803 Currently an experimental setting.
1804 --disable-deprecated Don't compile in deprecated functions.
1805 --disable-set-support Do not allow SNMP set requests.
1806 --enable-local-smux Restrict SMUX connections to localhost (by default).
1807 --enable-agentx-dom-sock-only Disable UDP/TCP transports for agentx.
1808 --disable-snmptrapd-subagent Disable agentx subagent code in snmptrapd.
1809 --enable-minimalist Remove all non-essential code features.
1810 --enable-notify-only Build tools that can only send notifications.
1811 --enable-no-listen Build tools that can't listen to ports.
1812 --enable-read-only Remove all SET support from the code.
1813 --enable-mini-agent Build a minimal agent.
1814 --enable-mfd-rewrites Use new MFD rewrites of mib modules,
1815 where available. (default is to use
1816 original mib module code).
1817 --disable-embedded-perl Disable embedded Perl in the SNMP agent and
1818 snmptrapd. enabled by default
1819 --disable-perl-cc-checks Disable configure checks for whether Perl's
1820 C Compiler is compatible with ours when
1821 embedded Perl is enabled.
1822 --enable-shared[=PKGS] build shared libraries [default=yes]
1823 --enable-static[=PKGS] build static libraries [default=yes]
1824 --enable-fast-install[=PKGS]
1825 optimize for fast installation [default=yes]
1826 --disable-libtool-lock avoid locking (might break parallel builds)
1827
1828 Optional Packages:
1829 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1830 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1831
1832 Compiler Options:
1833 --with-cc=CC use CC to compile (default=gcc).
1834
1835 --with-linkcc=CC use CC to link (default=gcc).
1836 --with-ar=AR use AR as the archiver.
1837 --with-endianness=big|little define endianness of target platform when
1838 cross-compiling.
1839 --with-cflags=CFLAGS use CFLAGS as compile time arguments.
1840 --with-ldflags=LDFLAGS use LDFLAGS as link time arguments to ld.
1841 --with-libs=LIBS use LIBS as link time arguments to ld.
1842 --with-rsaref=PATH Look for librsaref in PATH/lib.
1843 --with-openssl=PATH Look for openssl in PATH/lib,
1844 or PATH may be "internal" to build with
1845 minimal copied OpenSSL code for USM only.
1846 --with-wolfssl=PATH Look for wolfssl in PATH/lib.
1847
1848 --with-pkcs=PATH Look for pkcs11 in PATH/lib.
1849 --with-krb5=PATH Look for krb5 in PATH/lib.
1850 --with-dnssec-local-validation Enable local DNSSEC validation using libval (no)
1851 --without-rpm Don't include support for the RPM package
1852 management system when building the host MIB
1853 module.
1854 --without-pcre Don't include pcre process searching
1855 support in the agent.
1856 --with-install-prefix=PATH Just for installing, prefix all
1857 directories with PATH. This is known not
1858 to work on some systems with shared
1859 libraries (eg, HPUX)
1860 --with-features-of=version
1861 Compile in MIB modules and other features as if this
1862 was release "version" (default is 5.9.5.2).
1863
1864 Miscellaneous:
1865 --with-defaults Use defaults for prompted values.
1866 --with-mibdirs="dir1:dir2:" Default directories to look for mibs.
1867 (Default: \$HOME/.snmp/mibs:DATADIR/snmp/mibs)
1868 --with-mibs="item1:item2:" Default mib IDs to read.
1869 (The default list is
1870 "SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB"
1871 with the addition of any mibs used
1872 by the mib modules the agent is
1873 configured with)
1874 --with-mibfiles="file1:file2" Default mib files to load.
1875 (Default: none. uses IDs above instead.)
1876 --without-opaque-special-types Don't use special opaque encodings.
1877 SNMP normally cannot handle
1878 floating numbers, nor large 64 bit
1879 integers well. By default, the
1880 net-snmp package compiles in
1881 support for these extra datatypes
1882 (in a legal way)
1883 --with-logfile="location" Default log file location for snmpd.
1884 --with-persistent-directory="directory"
1885 Default directory for persistent data storage.
1886 --with-persistent-mask="mask" Default mask for persistent data storage.
1887 (Default: 077)
1888 --with-copy-persistent-files="no" Don't copy persistent files
1889 (or use "yes" to copy them).
1890 (Default: yes)
1891 --with-temp-file-pattern=PATTERN Pattern of temporary files (Default: /tmp/snmpdXXXXXX)
1892 --with-default-snmp-version="3" Default version of SNMP to use.
1893 (Default: 3)
1894 Legal values: 1, 2 (for SNMPv2c) or 3.
1895 --with-transports="t1 t2 ..." Compile in the given SNMP transport
1896 modules (space or comma separated list).
1897 --with-out-transports="t1 ..." Exclude listed SNMP transports
1898 (space or comma separated list).
1899
1900 Available SNMP transport modules are:
1901
1902 UDP support for SNMP over UDP/IP.
1903 This transport is always compiled in.
1904 UDPIPv6 support for SNMP over UDP/IPv6.
1905 This transport is available for Linux, Solaris and
1906 FreeBSD at least.
1907 This transport is compiled in by default if IPv6 support is enabled.
1908 UDPshared Allows a UDP port to be shared with multiple transports. It
1909 enables multiple notification destinations to share a single
1910 source address/port.
1911 TCPIPv6 support for SNMP over UDP/IPv6.
1912 This transport is available for Linux, Solaris and
1913 FreeBSD at least.
1914 This transport is compiled in by default if IPv6 support is enabled.
1915 TCP support for SNMP over TCP/IP.
1916 This transport is compiled in by default, but may be omitted.
1917 Unix support for SNMP over Unix domain protocols.
1918 This transport is compiled in by default except on Win32
1919 platforms, and may be omitted.
1920 Callback support for SNMP over an internal locally connected pair
1921 of snmp_sessions.
1922 Alias The alias transport simply lets you define more complex
1923 transport strings and alias them to simple names in
1924 the snmp.conf file.
1925 AAL5PVC support for SNMP over AAL5 PVCs.
1926 This transport is presently only available for Linux,
1927 is never compiled in by default and may be omitted.
1928 IPX support for SNMP over IPX per RFC 1420.
1929 This transport is presently only available for Linux,
1930 is never compiled in by default and may be omitted.
1931 DTLSUDP support for tunneling SNMP over DTLS/UDP
1932 TLSTCP support for tunneling SNMP over TLS/TCP
1933 SSH (alpha) support for tunneling SNMP over SSH
1934
1935 --with-security-modules="s1 s2 ..." Compile in the given SNMP security
1936 module services (space separated list).
1937
1938 Available SNMP security services:
1939
1940 usm support for user based SNMP security
1941 ksm support for kerberos based SNMP security
1942 tsm support for the Transport-based security
1943 (for use with the SSH, DTLSUDP and TLSTCP transports)
1944
1945 --with-out-security-modules="s1 s2 ..." Removes the given SNMP security
1946 module services from the default list.
1947
1948
1949 Configuring the agent:
1950 --without-root-access The snmpd agent won't require root access to
1951 run it. The information it returns in the
1952 mib-II tree may not be correct, however.
1953 --without-kmem-usage Do not include any code related to the use
1954 of kmem.
1955 --with-dummy-values Provide 'placeholder' dummy values where
1956 the necessary information is not available.
1957 This is technically not compliant with the
1958 SNMP specifications, but was how the agent
1959 operated for versions < 4.0.
1960 --with-systemd Provide systemd support. See README.systemd
1961 for details.
1962 --with-sys-contact="who@where" Default system contact.
1963 (Default: LOGIN@DOMAINNAME)
1964 --with-sys-location="location" Default system location.
1965 (Default: Unknown)
1966 --with-agentx-socket=FILE AgentX socket (Default: /var/agentx/master as specified in RFC2741)
1967 --with-features="feat1 feat2" Request extra features to be turned on.
1968 (only useful with --enable-minimalist)
1969 --with-out-features="feat1..." Remove specific features.
1970 (implies --enable-minimalist)
1971 --with-mib-modules="item1 ..." Compile with additional mib modules
1972 (Space separated list).
1973 --with-out-mib-modules="list" Compile without these mib modules.
1974
1975 Default mib modules compiled into the agent (which can be removed):
1976
1977 mibII support for the mib-II tree.
1978 snmpv3mibs support for the snmpv3 mib modules.
1979 ucd_snmp UCD-SNMP-MIB specific extensions.
1980 agent_mibs NET-SNMP-AGENT-MIB extensions
1981 agentx AgentX support (see below)
1982 notification mibs supporting specification of trap destinations.
1983 target Support for the SNMP WGs TARGET-MIB.
1984 utilities general agent configuration utilities.
1985 disman/event support for the DISMAN-EVENT-MIB
1986 (supports self monitoring and notification
1987 delivery when error conditions are found)
1988 disman/schedule support for the DISMAN-SCHEDULE-MIB
1989 (trigger SET requests at specified times)
1990 host host resources mib support.
1991 (only on major supported platforms)
1992
1993 Optional mib modules that can be built into the agent include:
1994 smux smux support to allow subagents to attach to snmpd.
1995 mibII/mta_sendmail Sendmail statistics monitoring (MTA-MIB)
1996 ucd-snmp/diskio Table of io-devices and how much data they have
1997 read/written. (only tested on Solaris, Linux)
1998 disman/old-event-mib previous implementation of the DISMAN-EVENT-MIB
1999
2000 Optional modules for specific platforms
2001 Linux
2002 ucd-snmp/lmSensors hardware monitoring (LM-SENSORS-MIB)
2003 ip-mib/ipv4InterfaceTable (experimental)
2004 ip-mib/ipv6InterfaceTable (experimental)
2005 tunnel Linux TUNNEL-MIB support (ifTable extension)
2006 mibII/interfaces (old ifTable implementation)
2007 misc/ipfwacc accounting rules IP firewall information
2008 ipfwchains/ipfwchains firewall chains under ipfw
2009 (See agent/mibgroup/ipfwchains/README)
2010 sctp-mib support for the SCTP-MIB
2011 etherlike-mib support for the EtherLike-MIB
2012
2013 Solaris
2014 ucd-snmp/lmSensors hardware monitoring (LM-SENSORS-MIB)
2015 if-mib IF-MIB rewrite (add --enable-mfd-rewrites)
2016 tcp-mib TCP-MIB rewrite (tcpConnectionTable and
2017 tcpListenerTable; add --enable-mfd-rewrites)
2018 udp-mib UDP-MIB rewrite (udpEndpointTable;
2019 add --enable-mfd-rewrites)
2020
2021 FreeBSD/OpenBSD
2022 if-mib IF-MIB rewrite (add --enable-mfd-rewrites)
2023
2024 AgentX support:
2025 agentx/subagent allows the agent to run as either a snmp agent
2026 or as an agentX sub-agent.
2027 agentx/master makes the agent run as an agentX master agent
2028 as well as a normal snmp agent.
2029 agentx includes both agentx/master and agentx/client.
2030
2031 Optional modules for C coders to look at and/or include as extension examples:
2032
2033 examples/ucdDemoPublic SNMPv3 interoperability testing mib.
2034 examples/example example C code extension.
2035 Enterprise OIDs: (warning: this should be used with caution.)
2036
2037 --with-enterprise-oid The enterprise number assigned to the
2038 vendor by IANA. See
2039 http://www.iana.org/cgi-bin/enterprise.pl
2040 to get one, though using the default is
2041 probably the right choice is most cases.
2042 (default 8072 = "enterprise.net-snmp")
2043
2044 --with-enterprise-sysoid The base OID for the sysObjectID
2045 of the system group
2046 (default .1.3.6.1.4.1.8072.3.2... =
2047 "netSnmpAgentOIDs...")
2048
2049 --with-enterprise-notification-oid The OID used for the root of
2050 enterprise specific notifications.
2051 (default .1.3.6.1.4.1.8072.4 =
2052 "netSnmpNotificationPrefix")
2053
2054 Perl:
2055 --with-perl-modules=ARGS Install the Perl modules along with the rest
2056 of the net-snmp toolkit. If ARGS is specified,
2057 they're passed to the Makefile.PL script. Use
2058 --with-perl-modules=verbose while debugging
2059 the Makefile.PL files
2060
2061 Python:
2062 --with-python-modules=ARGS Install the python bindings along with the
2063 rest of the net-snmp toolkit. If ARGS is
2064 specified, they're passed to the
2065 setup.py script as arguments.
2066
2067 Network Buffers:
2068 --with-server-send-buf=ARG Use ARG for the default UDP/TCP send buffer instead
2069 of the OS buffer for server sockets that are
2070 created (snmpd, snmptrapd).
2071 This default can be overridden in the runtime
2072 configuration files.
2073 The ARG should be the size in bytes
2074 --with-server-recv-buf=ARG Similar as previous option, but for receive buffer
2075 --with-client-send-buf=ARG Similar as previous options, but for the
2076 receive buffer of client sockets
2077 --with-client-recv-buf=ARG Similar as previous options, but for the send buffer
2078 --without-elf use elf libraries
2079 --with-nl use libnl to get netlink data (linux only).
2080 --with-libwrap=LIBPATH Compile in libwrap (tcp_wrappers) support.
2081 --with-zlib=DIR use libz in DIR
2082 --with-bzip2=DIR use libbz2 in DIR
2083 --with-mnttab="/etc/mnttab"
2084 Mount table location. The default is to autodetect
2085 this.
2086 --with-mysql Include support for MySQL.
2087 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2088 both]
2089 --with-aix-soname=aix|svr4|both
2090 shared library versioning (aka "SONAME") variant to
2091 provide on AIX, [default=aix].
2092 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2093 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2094 compiler's sysroot if not specified).
2095
2096 Some influential environment variables:
2097 CC C compiler command
2098 CFLAGS C compiler flags
2099 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2100 nonstandard directory <lib dir>
2101 LIBS libraries to pass to the linker, e.g. -l<library>
2102 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2103 you have headers in a nonstandard directory <include dir>
2104 CPP C preprocessor
2105 LT_SYS_LIBRARY_PATH
2106 User-defined run-time library search path.
2107 PKG_CONFIG path to pkg-config utility
2108 PKG_CONFIG_PATH
2109 directories to add to pkg-config's search path
2110 PKG_CONFIG_LIBDIR
2111 path overriding pkg-config's built-in search path
2112 LIBNL3_CFLAGS
2113 C compiler flags for LIBNL3, overriding pkg-config
2114 LIBNL3_LIBS linker flags for LIBNL3, overriding pkg-config
2115 LIBNLROUTE3_CFLAGS
2116 C compiler flags for LIBNLROUTE3, overriding pkg-config
2117 LIBNLROUTE3_LIBS
2118 linker flags for LIBNLROUTE3, overriding pkg-config
2119 OPENSSL_CFLAGS
2120 C compiler flags for OPENSSL, overriding pkg-config
2121 OPENSSL_LIBS
2122 linker flags for OPENSSL, overriding pkg-config
2123
2124 Use these variables to override the choices made by 'configure' or to help
2125 it to find libraries and programs with nonstandard names/locations.
2126
2127 Report bugs to <[email protected]>.
2128 _ACEOF
2129 ac_status=$?
2130 fi
2131
2132 if test "$ac_init_help" = "recursive"; then
2133 # If there are subdirs, report their specific --help.
2134 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2135 test -d "$ac_dir" ||
2136 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2137 continue
2138 ac_builddir=.
2139
2140 case "$ac_dir" in
2141 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2142 *)
2143 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2144 # A ".." for each directory in $ac_dir_suffix.
2145 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2146 case $ac_top_builddir_sub in
2147 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2148 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2149 esac ;;
2150 esac
2151 ac_abs_top_builddir=$ac_pwd
2152 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2153 # for backward compatibility:
2154 ac_top_builddir=$ac_top_build_prefix
2155
2156 case $srcdir in
2157 .) # We are building in place.
2158 ac_srcdir=.
2159 ac_top_srcdir=$ac_top_builddir_sub
2160 ac_abs_top_srcdir=$ac_pwd ;;
2161 [\\/]* | ?:[\\/]* ) # Absolute name.
2162 ac_srcdir=$srcdir$ac_dir_suffix;
2163 ac_top_srcdir=$srcdir
2164 ac_abs_top_srcdir=$srcdir ;;
2165 *) # Relative name.
2166 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2167 ac_top_srcdir=$ac_top_build_prefix$srcdir
2168 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2169 esac
2170 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2171
2172 cd "$ac_dir" || { ac_status=$?; continue; }
2173 # Check for configure.gnu first; this name is used for a wrapper for
2174 # Metaconfig's "Configure" on case-insensitive file systems.
2175 if test -f "$ac_srcdir/configure.gnu"; then
2176 echo &&
2177 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2178 elif test -f "$ac_srcdir/configure"; then
2179 echo &&
2180 $SHELL "$ac_srcdir/configure" --help=recursive
2181 else
2182 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2183 fi || ac_status=$?
2184 cd "$ac_pwd" || { ac_status=$?; break; }
2185 done
2186 fi
2187
2188 test -n "$ac_init_help" && exit $ac_status
2189 if $ac_init_version; then
2190 cat <<\_ACEOF
2191 Net-SNMP configure 5.9.5.2
2192 generated by GNU Autoconf 2.72
2193
2194 Copyright (C) 2023 Free Software Foundation, Inc.
2195 This configure script is free software; the Free Software Foundation
2196 gives unlimited permission to copy, distribute and modify it.
2197 _ACEOF
2198 exit
2199 fi
2200
2201 ## ------------------------ ##
2202 ## Autoconf initialization. ##
2203 ## ------------------------ ##
2204
2205 # ac_fn_c_try_compile LINENO
2206 # --------------------------
2207 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2208 ac_fn_c_try_compile ()
2209 {
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 rm -f conftest.$ac_objext conftest.beam
2212 if { { ac_try="$ac_compile"
2213 case "(($ac_try" in
2214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215 *) ac_try_echo=$ac_try;;
2216 esac
2217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2218 printf "%s\n" "$ac_try_echo"; } >&5
2219 (eval "$ac_compile") 2>conftest.err
2220 ac_status=$?
2221 if test -s conftest.err; then
2222 grep -v '^ *+' conftest.err >conftest.er1
2223 cat conftest.er1 >&5
2224 mv -f conftest.er1 conftest.err
2225 fi
2226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227 test $ac_status = 0; } && {
2228 test -z "$ac_c_werror_flag" ||
2229 test ! -s conftest.err
2230 } && test -s conftest.$ac_objext
2231 then :
2232 ac_retval=0
2233 else case e in #(
2234 e) printf "%s\n" "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2236
2237 ac_retval=1 ;;
2238 esac
2239 fi
2240 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241 as_fn_set_status $ac_retval
2242
2243 } # ac_fn_c_try_compile
2244
2245 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2246 # -------------------------------------------------------
2247 # Tests whether HEADER exists and can be compiled using the include files in
2248 # INCLUDES, setting the cache variable VAR accordingly.
2249 ac_fn_c_check_header_compile ()
2250 {
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 printf %s "checking for $2... " >&6; }
2254 if eval test \${$3+y}
2255 then :
2256 printf %s "(cached) " >&6
2257 else case e in #(
2258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2260 $4
2261 #include <$2>
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"
2264 then :
2265 eval "$3=yes"
2266 else case e in #(
2267 e) eval "$3=no" ;;
2268 esac
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2271 esac
2272 fi
2273 eval ac_res=\$$3
2274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 printf "%s\n" "$ac_res" >&6; }
2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277
2278 } # ac_fn_c_check_header_compile
2279
2280 # ac_fn_c_try_cpp LINENO
2281 # ----------------------
2282 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2283 ac_fn_c_try_cpp ()
2284 {
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 if { { ac_try="$ac_cpp conftest.$ac_ext"
2287 case "(($ac_try" in
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2290 esac
2291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2292 printf "%s\n" "$ac_try_echo"; } >&5
2293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2294 ac_status=$?
2295 if test -s conftest.err; then
2296 grep -v '^ *+' conftest.err >conftest.er1
2297 cat conftest.er1 >&5
2298 mv -f conftest.er1 conftest.err
2299 fi
2300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2301 test $ac_status = 0; } > conftest.i && {
2302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2303 test ! -s conftest.err
2304 }
2305 then :
2306 ac_retval=0
2307 else case e in #(
2308 e) printf "%s\n" "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2310
2311 ac_retval=1 ;;
2312 esac
2313 fi
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 as_fn_set_status $ac_retval
2316
2317 } # ac_fn_c_try_cpp
2318
2319 # ac_fn_c_try_link LINENO
2320 # -----------------------
2321 # Try to link conftest.$ac_ext, and return whether this succeeded.
2322 ac_fn_c_try_link ()
2323 {
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2326 if { { ac_try="$ac_link"
2327 case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2330 esac
2331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332 printf "%s\n" "$ac_try_echo"; } >&5
2333 (eval "$ac_link") 2>conftest.err
2334 ac_status=$?
2335 if test -s conftest.err; then
2336 grep -v '^ *+' conftest.err >conftest.er1
2337 cat conftest.er1 >&5
2338 mv -f conftest.er1 conftest.err
2339 fi
2340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && {
2342 test -z "$ac_c_werror_flag" ||
2343 test ! -s conftest.err
2344 } && test -s conftest$ac_exeext && {
2345 test "$cross_compiling" = yes ||
2346 test -x conftest$ac_exeext
2347 }
2348 then :
2349 ac_retval=0
2350 else case e in #(
2351 e) printf "%s\n" "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2353
2354 ac_retval=1 ;;
2355 esac
2356 fi
2357 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2358 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2359 # interfere with the next link command; also delete a directory that is
2360 # left behind by Apple's compiler. We do this before executing the actions.
2361 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363 as_fn_set_status $ac_retval
2364
2365 } # ac_fn_c_try_link
2366
2367 # ac_fn_c_check_func LINENO FUNC VAR
2368 # ----------------------------------
2369 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2370 ac_fn_c_check_func ()
2371 {
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374 printf %s "checking for $2... " >&6; }
2375 if eval test \${$3+y}
2376 then :
2377 printf %s "(cached) " >&6
2378 else case e in #(
2379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2381 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2383 #define $2 innocuous_$2
2384
2385 /* System header to define __stub macros and hopefully few prototypes,
2386 which can conflict with char $2 (void); below. */
2387
2388 #include <limits.h>
2389 #undef $2
2390
2391 /* Override any GCC internal prototype to avoid an error.
2392 Use char because int might match the return type of a GCC
2393 builtin and then its argument prototype would still apply. */
2394 #ifdef __cplusplus
2395 extern "C"
2396 #endif
2397 char $2 (void);
2398 /* The GNU C library defines this for functions which it implements
2399 to always fail with ENOSYS. Some functions are actually named
2400 something starting with __ and the normal name is an alias. */
2401 #if defined __stub_$2 || defined __stub___$2
2402 choke me
2403 #endif
2404
2405 int
2406 main (void)
2407 {
2408 return $2 ();
2409 ;
2410 return 0;
2411 }
2412 _ACEOF
2413 if ac_fn_c_try_link "$LINENO"
2414 then :
2415 eval "$3=yes"
2416 else case e in #(
2417 e) eval "$3=no" ;;
2418 esac
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2421 conftest$ac_exeext conftest.$ac_ext ;;
2422 esac
2423 fi
2424 eval ac_res=\$$3
2425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2426 printf "%s\n" "$ac_res" >&6; }
2427 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2428
2429 } # ac_fn_c_check_func
2430
2431 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2432 # ----------------------------------------------------
2433 # Tries to find if the field MEMBER exists in type AGGR, after including
2434 # INCLUDES, setting cache variable VAR accordingly.
2435 ac_fn_c_check_member ()
2436 {
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2439 printf %s "checking for $2.$3... " >&6; }
2440 if eval test \${$4+y}
2441 then :
2442 printf %s "(cached) " >&6
2443 else case e in #(
2444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2446 $5
2447 int
2448 main (void)
2449 {
2450 static $2 ac_aggr;
2451 if (ac_aggr.$3)
2452 return 0;
2453 ;
2454 return 0;
2455 }
2456 _ACEOF
2457 if ac_fn_c_try_compile "$LINENO"
2458 then :
2459 eval "$4=yes"
2460 else case e in #(
2461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2463 $5
2464 int
2465 main (void)
2466 {
2467 static $2 ac_aggr;
2468 if (sizeof ac_aggr.$3)
2469 return 0;
2470 ;
2471 return 0;
2472 }
2473 _ACEOF
2474 if ac_fn_c_try_compile "$LINENO"
2475 then :
2476 eval "$4=yes"
2477 else case e in #(
2478 e) eval "$4=no" ;;
2479 esac
2480 fi
2481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2482 esac
2483 fi
2484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2485 esac
2486 fi
2487 eval ac_res=\$$4
2488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 printf "%s\n" "$ac_res" >&6; }
2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2491
2492 } # ac_fn_c_check_member
2493
2494 # ac_fn_c_try_run LINENO
2495 # ----------------------
2496 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2497 # executables *can* be run.
2498 ac_fn_c_try_run ()
2499 {
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 if { { ac_try="$ac_link"
2502 case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2505 esac
2506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2507 printf "%s\n" "$ac_try_echo"; } >&5
2508 (eval "$ac_link") 2>&5
2509 ac_status=$?
2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2512 { { case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515 esac
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 printf "%s\n" "$ac_try_echo"; } >&5
2518 (eval "$ac_try") 2>&5
2519 ac_status=$?
2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521 test $ac_status = 0; }; }
2522 then :
2523 ac_retval=0
2524 else case e in #(
2525 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2526 printf "%s\n" "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2528
2529 ac_retval=$ac_status ;;
2530 esac
2531 fi
2532 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2534 as_fn_set_status $ac_retval
2535
2536 } # ac_fn_c_try_run
2537
2538 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2539 # --------------------------------------------
2540 # Tries to find the compile-time value of EXPR in a program that includes
2541 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2542 # computed
2543 ac_fn_c_compute_int ()
2544 {
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 if test "$cross_compiling" = yes; then
2547 # Depending upon the size, compute the lo and hi bounds.
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2550 $4
2551 int
2552 main (void)
2553 {
2554 static int test_array [1 - 2 * !(($2) >= 0)];
2555 test_array [0] = 0;
2556 return test_array [0];
2557
2558 ;
2559 return 0;
2560 }
2561 _ACEOF
2562 if ac_fn_c_try_compile "$LINENO"
2563 then :
2564 ac_lo=0 ac_mid=0
2565 while :; do
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2568 $4
2569 int
2570 main (void)
2571 {
2572 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2573 test_array [0] = 0;
2574 return test_array [0];
2575
2576 ;
2577 return 0;
2578 }
2579 _ACEOF
2580 if ac_fn_c_try_compile "$LINENO"
2581 then :
2582 ac_hi=$ac_mid; break
2583 else case e in #(
2584 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2585 if test $ac_lo -le $ac_mid; then
2586 ac_lo= ac_hi=
2587 break
2588 fi
2589 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2590 esac
2591 fi
2592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2593 done
2594 else case e in #(
2595 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2597 $4
2598 int
2599 main (void)
2600 {
2601 static int test_array [1 - 2 * !(($2) < 0)];
2602 test_array [0] = 0;
2603 return test_array [0];
2604
2605 ;
2606 return 0;
2607 }
2608 _ACEOF
2609 if ac_fn_c_try_compile "$LINENO"
2610 then :
2611 ac_hi=-1 ac_mid=-1
2612 while :; do
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h. */
2615 $4
2616 int
2617 main (void)
2618 {
2619 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2620 test_array [0] = 0;
2621 return test_array [0];
2622
2623 ;
2624 return 0;
2625 }
2626 _ACEOF
2627 if ac_fn_c_try_compile "$LINENO"
2628 then :
2629 ac_lo=$ac_mid; break
2630 else case e in #(
2631 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2632 if test $ac_mid -le $ac_hi; then
2633 ac_lo= ac_hi=
2634 break
2635 fi
2636 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2637 esac
2638 fi
2639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2640 done
2641 else case e in #(
2642 e) ac_lo= ac_hi= ;;
2643 esac
2644 fi
2645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2646 esac
2647 fi
2648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2649 # Binary search between lo and hi bounds.
2650 while test "x$ac_lo" != "x$ac_hi"; do
2651 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2654 $4
2655 int
2656 main (void)
2657 {
2658 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2659 test_array [0] = 0;
2660 return test_array [0];
2661
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 if ac_fn_c_try_compile "$LINENO"
2667 then :
2668 ac_hi=$ac_mid
2669 else case e in #(
2670 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2671 esac
2672 fi
2673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2674 done
2675 case $ac_lo in #((
2676 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2677 '') ac_retval=1 ;;
2678 esac
2679 else
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2682 $4
2683 static long int longval (void) { return $2; }
2684 static unsigned long int ulongval (void) { return $2; }
2685 #include <stdio.h>
2686 #include <stdlib.h>
2687 int
2688 main (void)
2689 {
2690
2691 FILE *f = fopen ("conftest.val", "w");
2692 if (! f)
2693 return 1;
2694 if (($2) < 0)
2695 {
2696 long int i = longval ();
2697 if (i != ($2))
2698 return 1;
2699 fprintf (f, "%ld", i);
2700 }
2701 else
2702 {
2703 unsigned long int i = ulongval ();
2704 if (i != ($2))
2705 return 1;
2706 fprintf (f, "%lu", i);
2707 }
2708 /* Do not output a trailing newline, as this causes \r\n confusion
2709 on some platforms. */
2710 return ferror (f) || fclose (f) != 0;
2711
2712 ;
2713 return 0;
2714 }
2715 _ACEOF
2716 if ac_fn_c_try_run "$LINENO"
2717 then :
2718 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2719 else case e in #(
2720 e) ac_retval=1 ;;
2721 esac
2722 fi
2723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2724 conftest.$ac_objext conftest.beam conftest.$ac_ext
2725 rm -f conftest.val
2726
2727 fi
2728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2729 as_fn_set_status $ac_retval
2730
2731 } # ac_fn_c_compute_int
2732
2733 # ac_fn_c_find_intX_t LINENO BITS VAR
2734 # -----------------------------------
2735 # Finds a signed integer type with width BITS, setting cache variable VAR
2736 # accordingly.
2737 ac_fn_c_find_intX_t ()
2738 {
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2741 printf %s "checking for int$2_t... " >&6; }
2742 if eval test \${$3+y}
2743 then :
2744 printf %s "(cached) " >&6
2745 else case e in #(
2746 e) eval "$3=no"
2747 # Order is important - never check a type that is potentially smaller
2748 # than half of the expected target width.
2749 for ac_type in int$2_t 'int' 'long int' \
2750 'long long int' 'short int' 'signed char'; do
2751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2753 $ac_includes_default
2754 enum { N = $2 / 2 - 1 };
2755 int
2756 main (void)
2757 {
2758 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2759 test_array [0] = 0;
2760 return test_array [0];
2761
2762 ;
2763 return 0;
2764 }
2765 _ACEOF
2766 if ac_fn_c_try_compile "$LINENO"
2767 then :
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769 /* end confdefs.h. */
2770 $ac_includes_default
2771 enum { N = $2 / 2 - 1 };
2772 int
2773 main (void)
2774 {
2775 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2776 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2777 test_array [0] = 0;
2778 return test_array [0];
2779
2780 ;
2781 return 0;
2782 }
2783 _ACEOF
2784 if ac_fn_c_try_compile "$LINENO"
2785 then :
2786
2787 else case e in #(
2788 e) case $ac_type in #(
2789 int$2_t) :
2790 eval "$3=yes" ;; #(
2791 *) :
2792 eval "$3=\$ac_type" ;;
2793 esac ;;
2794 esac
2795 fi
2796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2797 fi
2798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2799 if eval test \"x\$"$3"\" = x"no"
2800 then :
2801
2802 else case e in #(
2803 e) break ;;
2804 esac
2805 fi
2806 done ;;
2807 esac
2808 fi
2809 eval ac_res=\$$3
2810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2811 printf "%s\n" "$ac_res" >&6; }
2812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2813
2814 } # ac_fn_c_find_intX_t
2815
2816 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2817 # -------------------------------------------
2818 # Tests whether TYPE exists after having included INCLUDES, setting cache
2819 # variable VAR accordingly.
2820 ac_fn_c_check_type ()
2821 {
2822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2824 printf %s "checking for $2... " >&6; }
2825 if eval test \${$3+y}
2826 then :
2827 printf %s "(cached) " >&6
2828 else case e in #(
2829 e) eval "$3=no"
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h. */
2832 $4
2833 int
2834 main (void)
2835 {
2836 if (sizeof ($2))
2837 return 0;
2838 ;
2839 return 0;
2840 }
2841 _ACEOF
2842 if ac_fn_c_try_compile "$LINENO"
2843 then :
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h. */
2846 $4
2847 int
2848 main (void)
2849 {
2850 if (sizeof (($2)))
2851 return 0;
2852 ;
2853 return 0;
2854 }
2855 _ACEOF
2856 if ac_fn_c_try_compile "$LINENO"
2857 then :
2858
2859 else case e in #(
2860 e) eval "$3=yes" ;;
2861 esac
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2864 fi
2865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2866 esac
2867 fi
2868 eval ac_res=\$$3
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2870 printf "%s\n" "$ac_res" >&6; }
2871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2872
2873 } # ac_fn_c_check_type
2874
2875 # ac_fn_c_find_uintX_t LINENO BITS VAR
2876 # ------------------------------------
2877 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2878 # accordingly.
2879 ac_fn_c_find_uintX_t ()
2880 {
2881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2883 printf %s "checking for uint$2_t... " >&6; }
2884 if eval test \${$3+y}
2885 then :
2886 printf %s "(cached) " >&6
2887 else case e in #(
2888 e) eval "$3=no"
2889 # Order is important - never check a type that is potentially smaller
2890 # than half of the expected target width.
2891 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2892 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894 /* end confdefs.h. */
2895 $ac_includes_default
2896 int
2897 main (void)
2898 {
2899 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2900 test_array [0] = 0;
2901 return test_array [0];
2902
2903 ;
2904 return 0;
2905 }
2906 _ACEOF
2907 if ac_fn_c_try_compile "$LINENO"
2908 then :
2909 case $ac_type in #(
2910 uint$2_t) :
2911 eval "$3=yes" ;; #(
2912 *) :
2913 eval "$3=\$ac_type" ;;
2914 esac
2915 fi
2916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2917 if eval test \"x\$"$3"\" = x"no"
2918 then :
2919
2920 else case e in #(
2921 e) break ;;
2922 esac
2923 fi
2924 done ;;
2925 esac
2926 fi
2927 eval ac_res=\$$3
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2929 printf "%s\n" "$ac_res" >&6; }
2930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2931
2932 } # ac_fn_c_find_uintX_t
2933
2934 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2935 # ------------------------------------------------------------------
2936 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2937 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2938 ac_fn_check_decl ()
2939 {
2940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2941 as_decl_name=`echo $2|sed 's/ *(.*//'`
2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2943 printf %s "checking whether $as_decl_name is declared... " >&6; }
2944 if eval test \${$3+y}
2945 then :
2946 printf %s "(cached) " >&6
2947 else case e in #(
2948 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2949 eval ac_save_FLAGS=\$$6
2950 as_fn_append $6 " $5"
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2953 $4
2954 int
2955 main (void)
2956 {
2957 #ifndef $as_decl_name
2958 #ifdef __cplusplus
2959 (void) $as_decl_use;
2960 #else
2961 (void) $as_decl_name;
2962 #endif
2963 #endif
2964
2965 ;
2966 return 0;
2967 }
2968 _ACEOF
2969 if ac_fn_c_try_compile "$LINENO"
2970 then :
2971 eval "$3=yes"
2972 else case e in #(
2973 e) eval "$3=no" ;;
2974 esac
2975 fi
2976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2977 eval $6=\$ac_save_FLAGS
2978 ;;
2979 esac
2980 fi
2981 eval ac_res=\$$3
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2983 printf "%s\n" "$ac_res" >&6; }
2984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2985
2986 } # ac_fn_check_decl
2987 ac_configure_args_raw=
2988 for ac_arg
2989 do
2990 case $ac_arg in
2991 *\'*)
2992 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2993 esac
2994 as_fn_append ac_configure_args_raw " '$ac_arg'"
2995 done
2996
2997 case $ac_configure_args_raw in
2998 *$as_nl*)
2999 ac_safe_unquote= ;;
3000 *)
3001 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
3002 ac_unsafe_a="$ac_unsafe_z#~"
3003 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3004 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3005 esac
3006
3007 cat >config.log <<_ACEOF
3008 This file contains any messages produced by compilers while
3009 running configure, to aid debugging if configure makes a mistake.
3010
3011 It was created by Net-SNMP $as_me 5.9.5.2, which was
3012 generated by GNU Autoconf 2.72. Invocation command line was
3013
3014 $ $0$ac_configure_args_raw
3015
3016 _ACEOF
3017 exec 5>>config.log
3018 {
3019 cat <<_ASUNAME
3020 ## --------- ##
3021 ## Platform. ##
3022 ## --------- ##
3023
3024 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3025 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3026 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3027 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3028 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3029
3030 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3031 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3032
3033 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3034 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3035 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3036 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3037 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3038 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3039 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3040
3041 _ASUNAME
3042
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046 IFS=$as_save_IFS
3047 case $as_dir in #(((
3048 '') as_dir=./ ;;
3049 */) ;;
3050 *) as_dir=$as_dir/ ;;
3051 esac
3052 printf "%s\n" "PATH: $as_dir"
3053 done
3054 IFS=$as_save_IFS
3055
3056 } >&5
3057
3058 cat >&5 <<_ACEOF
3059
3060
3061 ## ----------- ##
3062 ## Core tests. ##
3063 ## ----------- ##
3064
3065 _ACEOF
3066
3067
3068 # Keep a trace of the command line.
3069 # Strip out --no-create and --no-recursion so they do not pile up.
3070 # Strip out --silent because we don't want to record it for future runs.
3071 # Also quote any args containing shell meta-characters.
3072 # Make two passes to allow for proper duplicate-argument suppression.
3073 ac_configure_args=
3074 ac_configure_args0=
3075 ac_configure_args1=
3076 ac_must_keep_next=false
3077 for ac_pass in 1 2
3078 do
3079 for ac_arg
3080 do
3081 case $ac_arg in
3082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3084 | -silent | --silent | --silen | --sile | --sil)
3085 continue ;;
3086 *\'*)
3087 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3088 esac
3089 case $ac_pass in
3090 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3091 2)
3092 as_fn_append ac_configure_args1 " '$ac_arg'"
3093 if test $ac_must_keep_next = true; then
3094 ac_must_keep_next=false # Got value, back to normal.
3095 else
3096 case $ac_arg in
3097 *=* | --config-cache | -C | -disable-* | --disable-* \
3098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3100 | -with-* | --with-* | -without-* | --without-* | --x)
3101 case "$ac_configure_args0 " in
3102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3103 esac
3104 ;;
3105 -* ) ac_must_keep_next=true ;;
3106 esac
3107 fi
3108 as_fn_append ac_configure_args " '$ac_arg'"
3109 ;;
3110 esac
3111 done
3112 done
3113 { ac_configure_args0=; unset ac_configure_args0;}
3114 { ac_configure_args1=; unset ac_configure_args1;}
3115
3116 # When interrupted or exit'd, cleanup temporary files, and complete
3117 # config.log. We remove comments because anyway the quotes in there
3118 # would cause problems or look ugly.
3119 # WARNING: Use '\'' to represent an apostrophe within the trap.
3120 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3121 trap 'exit_status=$?
3122 # Sanitize IFS.
3123 IFS=" "" $as_nl"
3124 # Save into config.log some information that might help in debugging.
3125 {
3126 echo
3127
3128 printf "%s\n" "## ---------------- ##
3129 ## Cache variables. ##
3130 ## ---------------- ##"
3131 echo
3132 # The following way of writing the cache mishandles newlines in values,
3133 (
3134 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3135 eval ac_val=\$$ac_var
3136 case $ac_val in #(
3137 *${as_nl}*)
3138 case $ac_var in #(
3139 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3140 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3141 esac
3142 case $ac_var in #(
3143 _ | IFS | as_nl) ;; #(
3144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3145 *) { eval $ac_var=; unset $ac_var;} ;;
3146 esac ;;
3147 esac
3148 done
3149 (set) 2>&1 |
3150 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3151 *${as_nl}ac_space=\ *)
3152 sed -n \
3153 "s/'\''/'\''\\\\'\'''\''/g;
3154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3155 ;; #(
3156 *)
3157 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3158 ;;
3159 esac |
3160 sort
3161 )
3162 echo
3163
3164 printf "%s\n" "## ----------------- ##
3165 ## Output variables. ##
3166 ## ----------------- ##"
3167 echo
3168 for ac_var in $ac_subst_vars
3169 do
3170 eval ac_val=\$$ac_var
3171 case $ac_val in
3172 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3173 esac
3174 printf "%s\n" "$ac_var='\''$ac_val'\''"
3175 done | sort
3176 echo
3177
3178 if test -n "$ac_subst_files"; then
3179 printf "%s\n" "## ------------------- ##
3180 ## File substitutions. ##
3181 ## ------------------- ##"
3182 echo
3183 for ac_var in $ac_subst_files
3184 do
3185 eval ac_val=\$$ac_var
3186 case $ac_val in
3187 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3188 esac
3189 printf "%s\n" "$ac_var='\''$ac_val'\''"
3190 done | sort
3191 echo
3192 fi
3193
3194 if test -s confdefs.h; then
3195 printf "%s\n" "## ----------- ##
3196 ## confdefs.h. ##
3197 ## ----------- ##"
3198 echo
3199 cat confdefs.h
3200 echo
3201 fi
3202 test "$ac_signal" != 0 &&
3203 printf "%s\n" "$as_me: caught signal $ac_signal"
3204 printf "%s\n" "$as_me: exit $exit_status"
3205 } >&5
3206 rm -f core *.core core.conftest.* &&
3207 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3208 exit $exit_status
3209 ' 0
3210 for ac_signal in 1 2 13 15; do
3211 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3212 done
3213 ac_signal=0
3214
3215 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3216 rm -f -r conftest* confdefs.h
3217
3218 printf "%s\n" "/* confdefs.h */" > confdefs.h
3219
3220 # Predefined preprocessor variables.
3221
3222 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3223
3224 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3225
3226 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3227
3228 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3229
3230 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3231
3232 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3233
3234
3235 # Let the site file select an alternate cache file if it wants to.
3236 # Prefer an explicitly selected file to automatically selected ones.
3237 if test -n "$CONFIG_SITE"; then
3238 ac_site_files="$CONFIG_SITE"
3239 elif test "x$prefix" != xNONE; then
3240 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3241 else
3242 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3243 fi
3244
3245 for ac_site_file in $ac_site_files
3246 do
3247 case $ac_site_file in #(
3248 */*) :
3249 ;; #(
3250 *) :
3251 ac_site_file=./$ac_site_file ;;
3252 esac
3253 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3255 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3256 sed 's/^/| /' "$ac_site_file" >&5
3257 . "$ac_site_file" \
3258 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3259 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3260 as_fn_error $? "failed to load site script $ac_site_file
3261 See 'config.log' for more details" "$LINENO" 5; }
3262 fi
3263 done
3264
3265 if test -r "$cache_file"; then
3266 # Some versions of bash will fail to source /dev/null (special files
3267 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3268 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3270 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3271 case $cache_file in
3272 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3273 *) . "./$cache_file";;
3274 esac
3275 fi
3276 else
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3278 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3279 >$cache_file
3280 fi
3281
3282 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3283 # Test code for whether the C compiler supports C89 (global declarations)
3284 ac_c_conftest_c89_globals='
3285 /* Does the compiler advertise C89 conformance?
3286 Do not test the value of __STDC__, because some compilers set it to 0
3287 while being otherwise adequately conformant. */
3288 #if !defined __STDC__
3289 # error "Compiler does not advertise C89 conformance"
3290 #endif
3291
3292 #include <stddef.h>
3293 #include <stdarg.h>
3294 struct stat;
3295 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3296 struct buf { int x; };
3297 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3298 static char *e (char **p, int i)
3299 {
3300 return p[i];
3301 }
3302 static char *f (char * (*g) (char **, int), char **p, ...)
3303 {
3304 char *s;
3305 va_list v;
3306 va_start (v,p);
3307 s = g (p, va_arg (v,int));
3308 va_end (v);
3309 return s;
3310 }
3311
3312 /* C89 style stringification. */
3313 #define noexpand_stringify(a) #a
3314 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
3315
3316 /* C89 style token pasting. Exercises some of the corner cases that
3317 e.g. old MSVC gets wrong, but not very hard. */
3318 #define noexpand_concat(a,b) a##b
3319 #define expand_concat(a,b) noexpand_concat(a,b)
3320 extern int vA;
3321 extern int vbee;
3322 #define aye A
3323 #define bee B
3324 int *pvA = &expand_concat(v,aye);
3325 int *pvbee = &noexpand_concat(v,bee);
3326
3327 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3328 function prototypes and stuff, but not \xHH hex character constants.
3329 These do not provoke an error unfortunately, instead are silently treated
3330 as an "x". The following induces an error, until -std is added to get
3331 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3332 array size at least. It is necessary to write \x00 == 0 to get something
3333 that is true only with -std. */
3334 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3335
3336 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3337 inside strings and character constants. */
3338 #define FOO(x) '\''x'\''
3339 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3340
3341 int test (int i, double x);
3342 struct s1 {int (*f) (int a);};
3343 struct s2 {int (*f) (double a);};
3344 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3345 int, int);'
3346
3347 # Test code for whether the C compiler supports C89 (body of main).
3348 ac_c_conftest_c89_main='
3349 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3350 '
3351
3352 # Test code for whether the C compiler supports C99 (global declarations)
3353 ac_c_conftest_c99_globals='
3354 /* Does the compiler advertise C99 conformance? */
3355 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3356 # error "Compiler does not advertise C99 conformance"
3357 #endif
3358
3359 // See if C++-style comments work.
3360
3361 #include <stdbool.h>
3362 extern int puts (const char *);
3363 extern int printf (const char *, ...);
3364 extern int dprintf (int, const char *, ...);
3365 extern void *malloc (size_t);
3366 extern void free (void *);
3367
3368 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3369 // dprintf is used instead of fprintf to avoid needing to declare
3370 // FILE and stderr.
3371 #define debug(...) dprintf (2, __VA_ARGS__)
3372 #define showlist(...) puts (#__VA_ARGS__)
3373 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3374 static void
3375 test_varargs_macros (void)
3376 {
3377 int x = 1234;
3378 int y = 5678;
3379 debug ("Flag");
3380 debug ("X = %d\n", x);
3381 showlist (The first, second, and third items.);
3382 report (x>y, "x is %d but y is %d", x, y);
3383 }
3384
3385 // Check long long types.
3386 #define BIG64 18446744073709551615ull
3387 #define BIG32 4294967295ul
3388 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3389 #if !BIG_OK
3390 #error "your preprocessor is broken"
3391 #endif
3392 #if BIG_OK
3393 #else
3394 #error "your preprocessor is broken"
3395 #endif
3396 static long long int bignum = -9223372036854775807LL;
3397 static unsigned long long int ubignum = BIG64;
3398
3399 struct incomplete_array
3400 {
3401 int datasize;
3402 double data[];
3403 };
3404
3405 struct named_init {
3406 int number;
3407 const wchar_t *name;
3408 double average;
3409 };
3410
3411 typedef const char *ccp;
3412
3413 static inline int
3414 test_restrict (ccp restrict text)
3415 {
3416 // Iterate through items via the restricted pointer.
3417 // Also check for declarations in for loops.
3418 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3419 continue;
3420 return 0;
3421 }
3422
3423 // Check varargs and va_copy.
3424 static bool
3425 test_varargs (const char *format, ...)
3426 {
3427 va_list args;
3428 va_start (args, format);
3429 va_list args_copy;
3430 va_copy (args_copy, args);
3431
3432 const char *str = "";
3433 int number = 0;
3434 float fnumber = 0;
3435
3436 while (*format)
3437 {
3438 switch (*format++)
3439 {
3440 case '\''s'\'': // string
3441 str = va_arg (args_copy, const char *);
3442 break;
3443 case '\''d'\'': // int
3444 number = va_arg (args_copy, int);
3445 break;
3446 case '\''f'\'': // float
3447 fnumber = va_arg (args_copy, double);
3448 break;
3449 default:
3450 break;
3451 }
3452 }
3453 va_end (args_copy);
3454 va_end (args);
3455
3456 return *str && number && fnumber;
3457 }
3458 '
3459
3460 # Test code for whether the C compiler supports C99 (body of main).
3461 ac_c_conftest_c99_main='
3462 // Check bool.
3463 _Bool success = false;
3464 success |= (argc != 0);
3465
3466 // Check restrict.
3467 if (test_restrict ("String literal") == 0)
3468 success = true;
3469 char *restrict newvar = "Another string";
3470
3471 // Check varargs.
3472 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3473 test_varargs_macros ();
3474
3475 // Check flexible array members.
3476 struct incomplete_array *ia =
3477 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3478 ia->datasize = 10;
3479 for (int i = 0; i < ia->datasize; ++i)
3480 ia->data[i] = i * 1.234;
3481 // Work around memory leak warnings.
3482 free (ia);
3483
3484 // Check named initializers.
3485 struct named_init ni = {
3486 .number = 34,
3487 .name = L"Test wide string",
3488 .average = 543.34343,
3489 };
3490
3491 ni.number = 58;
3492
3493 int dynamic_array[ni.number];
3494 dynamic_array[0] = argv[0][0];
3495 dynamic_array[ni.number - 1] = 543;
3496
3497 // work around unused variable warnings
3498 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3499 || dynamic_array[ni.number - 1] != 543);
3500 '
3501
3502 # Test code for whether the C compiler supports C11 (global declarations)
3503 ac_c_conftest_c11_globals='
3504 /* Does the compiler advertise C11 conformance? */
3505 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3506 # error "Compiler does not advertise C11 conformance"
3507 #endif
3508
3509 // Check _Alignas.
3510 char _Alignas (double) aligned_as_double;
3511 char _Alignas (0) no_special_alignment;
3512 extern char aligned_as_int;
3513 char _Alignas (0) _Alignas (int) aligned_as_int;
3514
3515 // Check _Alignof.
3516 enum
3517 {
3518 int_alignment = _Alignof (int),
3519 int_array_alignment = _Alignof (int[100]),
3520 char_alignment = _Alignof (char)
3521 };
3522 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3523
3524 // Check _Noreturn.
3525 int _Noreturn does_not_return (void) { for (;;) continue; }
3526
3527 // Check _Static_assert.
3528 struct test_static_assert
3529 {
3530 int x;
3531 _Static_assert (sizeof (int) <= sizeof (long int),
3532 "_Static_assert does not work in struct");
3533 long int y;
3534 };
3535
3536 // Check UTF-8 literals.
3537 #define u8 syntax error!
3538 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3539
3540 // Check duplicate typedefs.
3541 typedef long *long_ptr;
3542 typedef long int *long_ptr;
3543 typedef long_ptr long_ptr;
3544
3545 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3546 struct anonymous
3547 {
3548 union {
3549 struct { int i; int j; };
3550 struct { int k; long int l; } w;
3551 };
3552 int m;
3553 } v1;
3554 '
3555
3556 # Test code for whether the C compiler supports C11 (body of main).
3557 ac_c_conftest_c11_main='
3558 _Static_assert ((offsetof (struct anonymous, i)
3559 == offsetof (struct anonymous, w.k)),
3560 "Anonymous union alignment botch");
3561 v1.i = 2;
3562 v1.w.k = 5;
3563 ok |= v1.i != 5;
3564 '
3565
3566 # Test code for whether the C compiler supports C11 (complete).
3567 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3568 ${ac_c_conftest_c99_globals}
3569 ${ac_c_conftest_c11_globals}
3570
3571 int
3572 main (int argc, char **argv)
3573 {
3574 int ok = 0;
3575 ${ac_c_conftest_c89_main}
3576 ${ac_c_conftest_c99_main}
3577 ${ac_c_conftest_c11_main}
3578 return ok;
3579 }
3580 "
3581
3582 # Test code for whether the C compiler supports C99 (complete).
3583 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3584 ${ac_c_conftest_c99_globals}
3585
3586 int
3587 main (int argc, char **argv)
3588 {
3589 int ok = 0;
3590 ${ac_c_conftest_c89_main}
3591 ${ac_c_conftest_c99_main}
3592 return ok;
3593 }
3594 "
3595
3596 # Test code for whether the C compiler supports C89 (complete).
3597 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3598
3599 int
3600 main (int argc, char **argv)
3601 {
3602 int ok = 0;
3603 ${ac_c_conftest_c89_main}
3604 return ok;
3605 }
3606 "
3607
3608 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3609 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3610 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3611 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3612 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3613 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3614 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3615 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3616 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3617 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3618 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3619
3620 # Auxiliary files required by this configure script.
3621 ac_aux_files="config.guess config.sub ltmain.sh install-sh"
3622
3623 # Locations in which to look for auxiliary files.
3624 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3625
3626 # Search for a directory containing all of the required auxiliary files,
3627 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3628 # If we don't find one directory that contains all the files we need,
3629 # we report the set of missing files from the *first* directory in
3630 # $ac_aux_dir_candidates and give up.
3631 ac_missing_aux_files=""
3632 ac_first_candidate=:
3633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 as_found=false
3636 for as_dir in $ac_aux_dir_candidates
3637 do
3638 IFS=$as_save_IFS
3639 case $as_dir in #(((
3640 '') as_dir=./ ;;
3641 */) ;;
3642 *) as_dir=$as_dir/ ;;
3643 esac
3644 as_found=:
3645
3646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3647 ac_aux_dir_found=yes
3648 ac_install_sh=
3649 for ac_aux in $ac_aux_files
3650 do
3651 # As a special case, if "install-sh" is required, that requirement
3652 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3653 # and $ac_install_sh is set appropriately for whichever one is found.
3654 if test x"$ac_aux" = x"install-sh"
3655 then
3656 if test -f "${as_dir}install-sh"; then
3657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3658 ac_install_sh="${as_dir}install-sh -c"
3659 elif test -f "${as_dir}install.sh"; then
3660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3661 ac_install_sh="${as_dir}install.sh -c"
3662 elif test -f "${as_dir}shtool"; then
3663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3664 ac_install_sh="${as_dir}shtool install -c"
3665 else
3666 ac_aux_dir_found=no
3667 if $ac_first_candidate; then
3668 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3669 else
3670 break
3671 fi
3672 fi
3673 else
3674 if test -f "${as_dir}${ac_aux}"; then
3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3676 else
3677 ac_aux_dir_found=no
3678 if $ac_first_candidate; then
3679 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3680 else
3681 break
3682 fi
3683 fi
3684 fi
3685 done
3686 if test "$ac_aux_dir_found" = yes; then
3687 ac_aux_dir="$as_dir"
3688 break
3689 fi
3690 ac_first_candidate=false
3691
3692 as_found=false
3693 done
3694 IFS=$as_save_IFS
3695 if $as_found
3696 then :
3697
3698 else case e in #(
3699 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3700 esac
3701 fi
3702
3703
3704 # These three variables are undocumented and unsupported,
3705 # and are intended to be withdrawn in a future Autoconf release.
3706 # They can cause serious problems if a builder's source tree is in a directory
3707 # whose full name contains unusual characters.
3708 if test -f "${ac_aux_dir}config.guess"; then
3709 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3710 fi
3711 if test -f "${ac_aux_dir}config.sub"; then
3712 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3713 fi
3714 if test -f "$ac_aux_dir/configure"; then
3715 ac_configure="$SHELL ${ac_aux_dir}configure"
3716 fi
3717
3718 # Check that the precious variables saved in the cache have kept the same
3719 # value.
3720 ac_cache_corrupted=false
3721 for ac_var in $ac_precious_vars; do
3722 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3723 eval ac_new_set=\$ac_env_${ac_var}_set
3724 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3725 eval ac_new_val=\$ac_env_${ac_var}_value
3726 case $ac_old_set,$ac_new_set in
3727 set,)
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3729 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3730 ac_cache_corrupted=: ;;
3731 ,set)
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3733 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3734 ac_cache_corrupted=: ;;
3735 ,);;
3736 *)
3737 if test "x$ac_old_val" != "x$ac_new_val"; then
3738 # differences in whitespace do not lead to failure.
3739 ac_old_val_w=`echo x $ac_old_val`
3740 ac_new_val_w=`echo x $ac_new_val`
3741 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3743 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3744 ac_cache_corrupted=:
3745 else
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3747 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3748 eval $ac_var=\$ac_old_val
3749 fi
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3751 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3753 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3754 fi;;
3755 esac
3756 # Pass precious variables to config.status.
3757 if test "$ac_new_set" = set; then
3758 case $ac_new_val in
3759 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3760 *) ac_arg=$ac_var=$ac_new_val ;;
3761 esac
3762 case " $ac_configure_args " in
3763 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3764 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3765 esac
3766 fi
3767 done
3768 if $ac_cache_corrupted; then
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3770 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3772 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3773 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3774 and start over" "$LINENO" 5
3775 fi
3776 ## -------------------- ##
3777 ## Main body of script. ##
3778 ## -------------------- ##
3779
3780 ac_ext=c
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785
3786
3787
3788
3789
3790
3791
3792 ac_config_headers="$ac_config_headers include/net-snmp/net-snmp-config.h"
3793
3794
3795
3796 rm -f configure-summary
3797
3798
3799 #
3800 # save the configure arguments
3801 #
3802
3803 printf "%s\n" "#define NETSNMP_CONFIGURE_OPTIONS \"${NETSNMP_CONFIGURE_OPTIONS-$ac_configure_args}\"" >>confdefs.h
3804
3805 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3806
3807
3808 #
3809 # Check whether _GNU_SOURCE etc. should be defined
3810 #
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820 ac_ext=c
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3825 if test -n "$ac_tool_prefix"; then
3826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829 printf %s "checking for $ac_word... " >&6; }
3830 if test ${ac_cv_prog_CC+y}
3831 then :
3832 printf %s "(cached) " >&6
3833 else case e in #(
3834 e) if test -n "$CC"; then
3835 ac_cv_prog_CC="$CC" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3839 do
3840 IFS=$as_save_IFS
3841 case $as_dir in #(((
3842 '') as_dir=./ ;;
3843 */) ;;
3844 *) as_dir=$as_dir/ ;;
3845 esac
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3850 break 2
3851 fi
3852 done
3853 done
3854 IFS=$as_save_IFS
3855
3856 fi ;;
3857 esac
3858 fi
3859 CC=$ac_cv_prog_CC
3860 if test -n "$CC"; then
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3862 printf "%s\n" "$CC" >&6; }
3863 else
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 printf "%s\n" "no" >&6; }
3866 fi
3867
3868
3869 fi
3870 if test -z "$ac_cv_prog_CC"; then
3871 ac_ct_CC=$CC
3872 # Extract the first word of "gcc", so it can be a program name with args.
3873 set dummy gcc; ac_word=$2
3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 printf %s "checking for $ac_word... " >&6; }
3876 if test ${ac_cv_prog_ac_ct_CC+y}
3877 then :
3878 printf %s "(cached) " >&6
3879 else case e in #(
3880 e) if test -n "$ac_ct_CC"; then
3881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886 IFS=$as_save_IFS
3887 case $as_dir in #(((
3888 '') as_dir=./ ;;
3889 */) ;;
3890 *) as_dir=$as_dir/ ;;
3891 esac
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3894 ac_cv_prog_ac_ct_CC="gcc"
3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898 done
3899 done
3900 IFS=$as_save_IFS
3901
3902 fi ;;
3903 esac
3904 fi
3905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3906 if test -n "$ac_ct_CC"; then
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3908 printf "%s\n" "$ac_ct_CC" >&6; }
3909 else
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 printf "%s\n" "no" >&6; }
3912 fi
3913
3914 if test "x$ac_ct_CC" = x; then
3915 CC=""
3916 else
3917 case $cross_compiling:$ac_tool_warned in
3918 yes:)
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3920 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3921 ac_tool_warned=yes ;;
3922 esac
3923 CC=$ac_ct_CC
3924 fi
3925 else
3926 CC="$ac_cv_prog_CC"
3927 fi
3928
3929 if test -z "$CC"; then
3930 if test -n "$ac_tool_prefix"; then
3931 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3932 set dummy ${ac_tool_prefix}cc; ac_word=$2
3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 printf %s "checking for $ac_word... " >&6; }
3935 if test ${ac_cv_prog_CC+y}
3936 then :
3937 printf %s "(cached) " >&6
3938 else case e in #(
3939 e) if test -n "$CC"; then
3940 ac_cv_prog_CC="$CC" # Let the user override the test.
3941 else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3944 do
3945 IFS=$as_save_IFS
3946 case $as_dir in #(((
3947 '') as_dir=./ ;;
3948 */) ;;
3949 *) as_dir=$as_dir/ ;;
3950 esac
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_CC="${ac_tool_prefix}cc"
3954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3955 break 2
3956 fi
3957 done
3958 done
3959 IFS=$as_save_IFS
3960
3961 fi ;;
3962 esac
3963 fi
3964 CC=$ac_cv_prog_CC
3965 if test -n "$CC"; then
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3967 printf "%s\n" "$CC" >&6; }
3968 else
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 printf "%s\n" "no" >&6; }
3971 fi
3972
3973
3974 fi
3975 fi
3976 if test -z "$CC"; then
3977 # Extract the first word of "cc", so it can be a program name with args.
3978 set dummy cc; ac_word=$2
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 printf %s "checking for $ac_word... " >&6; }
3981 if test ${ac_cv_prog_CC+y}
3982 then :
3983 printf %s "(cached) " >&6
3984 else case e in #(
3985 e) if test -n "$CC"; then
3986 ac_cv_prog_CC="$CC" # Let the user override the test.
3987 else
3988 ac_prog_rejected=no
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992 IFS=$as_save_IFS
3993 case $as_dir in #(((
3994 '') as_dir=./ ;;
3995 */) ;;
3996 *) as_dir=$as_dir/ ;;
3997 esac
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4000 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4001 ac_prog_rejected=yes
4002 continue
4003 fi
4004 ac_cv_prog_CC="cc"
4005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008 done
4009 done
4010 IFS=$as_save_IFS
4011
4012 if test $ac_prog_rejected = yes; then
4013 # We found a bogon in the path, so make sure we never use it.
4014 set dummy $ac_cv_prog_CC
4015 shift
4016 if test $# != 0; then
4017 # We chose a different compiler from the bogus one.
4018 # However, it has the same basename, so the bogon will be chosen
4019 # first if we set CC to just the basename; use the full file name.
4020 shift
4021 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4022 fi
4023 fi
4024 fi ;;
4025 esac
4026 fi
4027 CC=$ac_cv_prog_CC
4028 if test -n "$CC"; then
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4030 printf "%s\n" "$CC" >&6; }
4031 else
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 printf "%s\n" "no" >&6; }
4034 fi
4035
4036
4037 fi
4038 if test -z "$CC"; then
4039 if test -n "$ac_tool_prefix"; then
4040 for ac_prog in cl.exe
4041 do
4042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 printf %s "checking for $ac_word... " >&6; }
4046 if test ${ac_cv_prog_CC+y}
4047 then :
4048 printf %s "(cached) " >&6
4049 else case e in #(
4050 e) if test -n "$CC"; then
4051 ac_cv_prog_CC="$CC" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056 IFS=$as_save_IFS
4057 case $as_dir in #(((
4058 '') as_dir=./ ;;
4059 */) ;;
4060 *) as_dir=$as_dir/ ;;
4061 esac
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4066 break 2
4067 fi
4068 done
4069 done
4070 IFS=$as_save_IFS
4071
4072 fi ;;
4073 esac
4074 fi
4075 CC=$ac_cv_prog_CC
4076 if test -n "$CC"; then
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4078 printf "%s\n" "$CC" >&6; }
4079 else
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 printf "%s\n" "no" >&6; }
4082 fi
4083
4084
4085 test -n "$CC" && break
4086 done
4087 fi
4088 if test -z "$CC"; then
4089 ac_ct_CC=$CC
4090 for ac_prog in cl.exe
4091 do
4092 # Extract the first word of "$ac_prog", so it can be a program name with args.
4093 set dummy $ac_prog; ac_word=$2
4094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095 printf %s "checking for $ac_word... " >&6; }
4096 if test ${ac_cv_prog_ac_ct_CC+y}
4097 then :
4098 printf %s "(cached) " >&6
4099 else case e in #(
4100 e) if test -n "$ac_ct_CC"; then
4101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4102 else
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4105 do
4106 IFS=$as_save_IFS
4107 case $as_dir in #(((
4108 '') as_dir=./ ;;
4109 */) ;;
4110 *) as_dir=$as_dir/ ;;
4111 esac
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_ac_ct_CC="$ac_prog"
4115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4116 break 2
4117 fi
4118 done
4119 done
4120 IFS=$as_save_IFS
4121
4122 fi ;;
4123 esac
4124 fi
4125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4126 if test -n "$ac_ct_CC"; then
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4128 printf "%s\n" "$ac_ct_CC" >&6; }
4129 else
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 printf "%s\n" "no" >&6; }
4132 fi
4133
4134
4135 test -n "$ac_ct_CC" && break
4136 done
4137
4138 if test "x$ac_ct_CC" = x; then
4139 CC=""
4140 else
4141 case $cross_compiling:$ac_tool_warned in
4142 yes:)
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4144 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4145 ac_tool_warned=yes ;;
4146 esac
4147 CC=$ac_ct_CC
4148 fi
4149 fi
4150
4151 fi
4152 if test -z "$CC"; then
4153 if test -n "$ac_tool_prefix"; then
4154 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4155 set dummy ${ac_tool_prefix}clang; ac_word=$2
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4157 printf %s "checking for $ac_word... " >&6; }
4158 if test ${ac_cv_prog_CC+y}
4159 then :
4160 printf %s "(cached) " >&6
4161 else case e in #(
4162 e) if test -n "$CC"; then
4163 ac_cv_prog_CC="$CC" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168 IFS=$as_save_IFS
4169 case $as_dir in #(((
4170 '') as_dir=./ ;;
4171 */) ;;
4172 *) as_dir=$as_dir/ ;;
4173 esac
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4176 ac_cv_prog_CC="${ac_tool_prefix}clang"
4177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4178 break 2
4179 fi
4180 done
4181 done
4182 IFS=$as_save_IFS
4183
4184 fi ;;
4185 esac
4186 fi
4187 CC=$ac_cv_prog_CC
4188 if test -n "$CC"; then
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4190 printf "%s\n" "$CC" >&6; }
4191 else
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 printf "%s\n" "no" >&6; }
4194 fi
4195
4196
4197 fi
4198 if test -z "$ac_cv_prog_CC"; then
4199 ac_ct_CC=$CC
4200 # Extract the first word of "clang", so it can be a program name with args.
4201 set dummy clang; ac_word=$2
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 printf %s "checking for $ac_word... " >&6; }
4204 if test ${ac_cv_prog_ac_ct_CC+y}
4205 then :
4206 printf %s "(cached) " >&6
4207 else case e in #(
4208 e) if test -n "$ac_ct_CC"; then
4209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214 IFS=$as_save_IFS
4215 case $as_dir in #(((
4216 '') as_dir=./ ;;
4217 */) ;;
4218 *) as_dir=$as_dir/ ;;
4219 esac
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_ac_ct_CC="clang"
4223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 fi ;;
4231 esac
4232 fi
4233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4234 if test -n "$ac_ct_CC"; then
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4236 printf "%s\n" "$ac_ct_CC" >&6; }
4237 else
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 printf "%s\n" "no" >&6; }
4240 fi
4241
4242 if test "x$ac_ct_CC" = x; then
4243 CC=""
4244 else
4245 case $cross_compiling:$ac_tool_warned in
4246 yes:)
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4248 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4249 ac_tool_warned=yes ;;
4250 esac
4251 CC=$ac_ct_CC
4252 fi
4253 else
4254 CC="$ac_cv_prog_CC"
4255 fi
4256
4257 fi
4258
4259
4260 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4261 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4262 as_fn_error $? "no acceptable C compiler found in \$PATH
4263 See 'config.log' for more details" "$LINENO" 5; }
4264
4265 # Provide some information about the compiler.
4266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4267 set X $ac_compile
4268 ac_compiler=$2
4269 for ac_option in --version -v -V -qversion -version; do
4270 { { ac_try="$ac_compiler $ac_option >&5"
4271 case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274 esac
4275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276 printf "%s\n" "$ac_try_echo"; } >&5
4277 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4278 ac_status=$?
4279 if test -s conftest.err; then
4280 sed '10a\
4281 ... rest of stderr output deleted ...
4282 10q' conftest.err >conftest.er1
4283 cat conftest.er1 >&5
4284 fi
4285 rm -f conftest.er1 conftest.err
4286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; }
4288 done
4289
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292
4293 int
4294 main (void)
4295 {
4296
4297 ;
4298 return 0;
4299 }
4300 _ACEOF
4301 ac_clean_files_save=$ac_clean_files
4302 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4303 # Try to create an executable without -o first, disregard a.out.
4304 # It will help us diagnose broken compilers, and finding out an intuition
4305 # of exeext.
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4307 printf %s "checking whether the C compiler works... " >&6; }
4308 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4309
4310 # The possible output files:
4311 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4312
4313 ac_rmfiles=
4314 for ac_file in $ac_files
4315 do
4316 case $ac_file in
4317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4318 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4319 esac
4320 done
4321 rm -f $ac_rmfiles
4322
4323 if { { ac_try="$ac_link_default"
4324 case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327 esac
4328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4329 printf "%s\n" "$ac_try_echo"; } >&5
4330 (eval "$ac_link_default") 2>&5
4331 ac_status=$?
4332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4333 test $ac_status = 0; }
4334 then :
4335 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4336 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4337 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4338 # so that the user can short-circuit this test for compilers unknown to
4339 # Autoconf.
4340 for ac_file in $ac_files ''
4341 do
4342 test -f "$ac_file" || continue
4343 case $ac_file in
4344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4345 ;;
4346 [ab].out )
4347 # We found the default executable, but exeext='' is most
4348 # certainly right.
4349 break;;
4350 *.* )
4351 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4352 then :; else
4353 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4354 fi
4355 # We set ac_cv_exeext here because the later test for it is not
4356 # safe: cross compilers may not add the suffix if given an '-o'
4357 # argument, so we may need to know it at that point already.
4358 # Even if this section looks crufty: it has the advantage of
4359 # actually working.
4360 break;;
4361 * )
4362 break;;
4363 esac
4364 done
4365 test "$ac_cv_exeext" = no && ac_cv_exeext=
4366
4367 else case e in #(
4368 e) ac_file='' ;;
4369 esac
4370 fi
4371 if test -z "$ac_file"
4372 then :
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 printf "%s\n" "no" >&6; }
4375 printf "%s\n" "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4379 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4380 as_fn_error 77 "C compiler cannot create executables
4381 See 'config.log' for more details" "$LINENO" 5; }
4382 else case e in #(
4383 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4384 printf "%s\n" "yes" >&6; } ;;
4385 esac
4386 fi
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4388 printf %s "checking for C compiler default output file name... " >&6; }
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4390 printf "%s\n" "$ac_file" >&6; }
4391 ac_exeext=$ac_cv_exeext
4392
4393 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4394 ac_clean_files=$ac_clean_files_save
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4396 printf %s "checking for suffix of executables... " >&6; }
4397 if { { ac_try="$ac_link"
4398 case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401 esac
4402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403 printf "%s\n" "$ac_try_echo"; } >&5
4404 (eval "$ac_link") 2>&5
4405 ac_status=$?
4406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }
4408 then :
4409 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4410 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4411 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4412 # 'rm'.
4413 for ac_file in conftest.exe conftest conftest.*; do
4414 test -f "$ac_file" || continue
4415 case $ac_file in
4416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4417 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4418 break;;
4419 * ) break;;
4420 esac
4421 done
4422 else case e in #(
4423 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4424 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4425 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4426 See 'config.log' for more details" "$LINENO" 5; } ;;
4427 esac
4428 fi
4429 rm -f conftest conftest$ac_cv_exeext
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4431 printf "%s\n" "$ac_cv_exeext" >&6; }
4432
4433 rm -f conftest.$ac_ext
4434 EXEEXT=$ac_cv_exeext
4435 ac_exeext=$EXEEXT
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 #include <stdio.h>
4439 int
4440 main (void)
4441 {
4442 FILE *f = fopen ("conftest.out", "w");
4443 if (!f)
4444 return 1;
4445 return ferror (f) || fclose (f) != 0;
4446
4447 ;
4448 return 0;
4449 }
4450 _ACEOF
4451 ac_clean_files="$ac_clean_files conftest.out"
4452 # Check that the compiler produces executables we can run. If not, either
4453 # the compiler is broken, or we cross compile.
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4455 printf %s "checking whether we are cross compiling... " >&6; }
4456 if test "$cross_compiling" != yes; then
4457 { { ac_try="$ac_link"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463 printf "%s\n" "$ac_try_echo"; } >&5
4464 (eval "$ac_link") 2>&5
4465 ac_status=$?
4466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }
4468 if { ac_try='./conftest$ac_cv_exeext'
4469 { { case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472 esac
4473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4474 printf "%s\n" "$ac_try_echo"; } >&5
4475 (eval "$ac_try") 2>&5
4476 ac_status=$?
4477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4478 test $ac_status = 0; }; }; then
4479 cross_compiling=no
4480 else
4481 if test "$cross_compiling" = maybe; then
4482 cross_compiling=yes
4483 else
4484 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4485 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4486 as_fn_error 77 "cannot run C compiled programs.
4487 If you meant to cross compile, use '--host'.
4488 See 'config.log' for more details" "$LINENO" 5; }
4489 fi
4490 fi
4491 fi
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4493 printf "%s\n" "$cross_compiling" >&6; }
4494
4495 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4496 conftest.o conftest.obj conftest.out
4497 ac_clean_files=$ac_clean_files_save
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4499 printf %s "checking for suffix of object files... " >&6; }
4500 if test ${ac_cv_objext+y}
4501 then :
4502 printf %s "(cached) " >&6
4503 else case e in #(
4504 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506
4507 int
4508 main (void)
4509 {
4510
4511 ;
4512 return 0;
4513 }
4514 _ACEOF
4515 rm -f conftest.o conftest.obj
4516 if { { ac_try="$ac_compile"
4517 case "(($ac_try" in
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4520 esac
4521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4522 printf "%s\n" "$ac_try_echo"; } >&5
4523 (eval "$ac_compile") 2>&5
4524 ac_status=$?
4525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4526 test $ac_status = 0; }
4527 then :
4528 for ac_file in conftest.o conftest.obj conftest.*; do
4529 test -f "$ac_file" || continue;
4530 case $ac_file in
4531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4532 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4533 break;;
4534 esac
4535 done
4536 else case e in #(
4537 e) printf "%s\n" "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4539
4540 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4541 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4542 as_fn_error $? "cannot compute suffix of object files: cannot compile
4543 See 'config.log' for more details" "$LINENO" 5; } ;;
4544 esac
4545 fi
4546 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4547 esac
4548 fi
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4550 printf "%s\n" "$ac_cv_objext" >&6; }
4551 OBJEXT=$ac_cv_objext
4552 ac_objext=$OBJEXT
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4554 printf %s "checking whether the compiler supports GNU C... " >&6; }
4555 if test ${ac_cv_c_compiler_gnu+y}
4556 then :
4557 printf %s "(cached) " >&6
4558 else case e in #(
4559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561
4562 int
4563 main (void)
4564 {
4565 #ifndef __GNUC__
4566 choke me
4567 #endif
4568
4569 ;
4570 return 0;
4571 }
4572 _ACEOF
4573 if ac_fn_c_try_compile "$LINENO"
4574 then :
4575 ac_compiler_gnu=yes
4576 else case e in #(
4577 e) ac_compiler_gnu=no ;;
4578 esac
4579 fi
4580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4582 ;;
4583 esac
4584 fi
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4586 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588
4589 if test $ac_compiler_gnu = yes; then
4590 GCC=yes
4591 else
4592 GCC=
4593 fi
4594 ac_test_CFLAGS=${CFLAGS+y}
4595 ac_save_CFLAGS=$CFLAGS
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4597 printf %s "checking whether $CC accepts -g... " >&6; }
4598 if test ${ac_cv_prog_cc_g+y}
4599 then :
4600 printf %s "(cached) " >&6
4601 else case e in #(
4602 e) ac_save_c_werror_flag=$ac_c_werror_flag
4603 ac_c_werror_flag=yes
4604 ac_cv_prog_cc_g=no
4605 CFLAGS="-g"
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608
4609 int
4610 main (void)
4611 {
4612
4613 ;
4614 return 0;
4615 }
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"
4618 then :
4619 ac_cv_prog_cc_g=yes
4620 else case e in #(
4621 e) CFLAGS=""
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624
4625 int
4626 main (void)
4627 {
4628
4629 ;
4630 return 0;
4631 }
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"
4634 then :
4635
4636 else case e in #(
4637 e) ac_c_werror_flag=$ac_save_c_werror_flag
4638 CFLAGS="-g"
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4641
4642 int
4643 main (void)
4644 {
4645
4646 ;
4647 return 0;
4648 }
4649 _ACEOF
4650 if ac_fn_c_try_compile "$LINENO"
4651 then :
4652 ac_cv_prog_cc_g=yes
4653 fi
4654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4655 esac
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4658 esac
4659 fi
4660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4661 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4662 esac
4663 fi
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4665 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4666 if test $ac_test_CFLAGS; then
4667 CFLAGS=$ac_save_CFLAGS
4668 elif test $ac_cv_prog_cc_g = yes; then
4669 if test "$GCC" = yes; then
4670 CFLAGS="-g -O2"
4671 else
4672 CFLAGS="-g"
4673 fi
4674 else
4675 if test "$GCC" = yes; then
4676 CFLAGS="-O2"
4677 else
4678 CFLAGS=
4679 fi
4680 fi
4681 ac_prog_cc_stdc=no
4682 if test x$ac_prog_cc_stdc = xno
4683 then :
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4685 printf %s "checking for $CC option to enable C11 features... " >&6; }
4686 if test ${ac_cv_prog_cc_c11+y}
4687 then :
4688 printf %s "(cached) " >&6
4689 else case e in #(
4690 e) ac_cv_prog_cc_c11=no
4691 ac_save_CC=$CC
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694 $ac_c_conftest_c11_program
4695 _ACEOF
4696 for ac_arg in '' -std=gnu11
4697 do
4698 CC="$ac_save_CC $ac_arg"
4699 if ac_fn_c_try_compile "$LINENO"
4700 then :
4701 ac_cv_prog_cc_c11=$ac_arg
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext conftest.beam
4704 test "x$ac_cv_prog_cc_c11" != "xno" && break
4705 done
4706 rm -f conftest.$ac_ext
4707 CC=$ac_save_CC ;;
4708 esac
4709 fi
4710
4711 if test "x$ac_cv_prog_cc_c11" = xno
4712 then :
4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4714 printf "%s\n" "unsupported" >&6; }
4715 else case e in #(
4716 e) if test "x$ac_cv_prog_cc_c11" = x
4717 then :
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4719 printf "%s\n" "none needed" >&6; }
4720 else case e in #(
4721 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4722 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4723 CC="$CC $ac_cv_prog_cc_c11" ;;
4724 esac
4725 fi
4726 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4727 ac_prog_cc_stdc=c11 ;;
4728 esac
4729 fi
4730 fi
4731 if test x$ac_prog_cc_stdc = xno
4732 then :
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4734 printf %s "checking for $CC option to enable C99 features... " >&6; }
4735 if test ${ac_cv_prog_cc_c99+y}
4736 then :
4737 printf %s "(cached) " >&6
4738 else case e in #(
4739 e) ac_cv_prog_cc_c99=no
4740 ac_save_CC=$CC
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 $ac_c_conftest_c99_program
4744 _ACEOF
4745 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4746 do
4747 CC="$ac_save_CC $ac_arg"
4748 if ac_fn_c_try_compile "$LINENO"
4749 then :
4750 ac_cv_prog_cc_c99=$ac_arg
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.beam
4753 test "x$ac_cv_prog_cc_c99" != "xno" && break
4754 done
4755 rm -f conftest.$ac_ext
4756 CC=$ac_save_CC ;;
4757 esac
4758 fi
4759
4760 if test "x$ac_cv_prog_cc_c99" = xno
4761 then :
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4763 printf "%s\n" "unsupported" >&6; }
4764 else case e in #(
4765 e) if test "x$ac_cv_prog_cc_c99" = x
4766 then :
4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4768 printf "%s\n" "none needed" >&6; }
4769 else case e in #(
4770 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4771 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4772 CC="$CC $ac_cv_prog_cc_c99" ;;
4773 esac
4774 fi
4775 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4776 ac_prog_cc_stdc=c99 ;;
4777 esac
4778 fi
4779 fi
4780 if test x$ac_prog_cc_stdc = xno
4781 then :
4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4783 printf %s "checking for $CC option to enable C89 features... " >&6; }
4784 if test ${ac_cv_prog_cc_c89+y}
4785 then :
4786 printf %s "(cached) " >&6
4787 else case e in #(
4788 e) ac_cv_prog_cc_c89=no
4789 ac_save_CC=$CC
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792 $ac_c_conftest_c89_program
4793 _ACEOF
4794 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4795 do
4796 CC="$ac_save_CC $ac_arg"
4797 if ac_fn_c_try_compile "$LINENO"
4798 then :
4799 ac_cv_prog_cc_c89=$ac_arg
4800 fi
4801 rm -f core conftest.err conftest.$ac_objext conftest.beam
4802 test "x$ac_cv_prog_cc_c89" != "xno" && break
4803 done
4804 rm -f conftest.$ac_ext
4805 CC=$ac_save_CC ;;
4806 esac
4807 fi
4808
4809 if test "x$ac_cv_prog_cc_c89" = xno
4810 then :
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4812 printf "%s\n" "unsupported" >&6; }
4813 else case e in #(
4814 e) if test "x$ac_cv_prog_cc_c89" = x
4815 then :
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4817 printf "%s\n" "none needed" >&6; }
4818 else case e in #(
4819 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4820 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4821 CC="$CC $ac_cv_prog_cc_c89" ;;
4822 esac
4823 fi
4824 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4825 ac_prog_cc_stdc=c89 ;;
4826 esac
4827 fi
4828 fi
4829
4830 ac_ext=c
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835
4836
4837 ac_header= ac_cache=
4838 for ac_item in $ac_header_c_list
4839 do
4840 if test $ac_cache; then
4841 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4842 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4843 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4844 fi
4845 ac_header= ac_cache=
4846 elif test $ac_header; then
4847 ac_cache=$ac_item
4848 else
4849 ac_header=$ac_item
4850 fi
4851 done
4852
4853
4854
4855
4856
4857
4858
4859
4860 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4861 then :
4862
4863 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4864
4865 fi
4866
4867
4868
4869
4870
4871
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4873 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4874 if test ${ac_cv_safe_to_define___extensions__+y}
4875 then :
4876 printf %s "(cached) " >&6
4877 else case e in #(
4878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880
4881 # define __EXTENSIONS__ 1
4882 $ac_includes_default
4883 int
4884 main (void)
4885 {
4886
4887 ;
4888 return 0;
4889 }
4890 _ACEOF
4891 if ac_fn_c_try_compile "$LINENO"
4892 then :
4893 ac_cv_safe_to_define___extensions__=yes
4894 else case e in #(
4895 e) ac_cv_safe_to_define___extensions__=no ;;
4896 esac
4897 fi
4898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4899 esac
4900 fi
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4902 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4903
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4905 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4906 if test ${ac_cv_should_define__xopen_source+y}
4907 then :
4908 printf %s "(cached) " >&6
4909 else case e in #(
4910 e) ac_cv_should_define__xopen_source=no
4911 if test $ac_cv_header_wchar_h = yes
4912 then :
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915
4916 #include <wchar.h>
4917 mbstate_t x;
4918 int
4919 main (void)
4920 {
4921
4922 ;
4923 return 0;
4924 }
4925 _ACEOF
4926 if ac_fn_c_try_compile "$LINENO"
4927 then :
4928
4929 else case e in #(
4930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932
4933 #define _XOPEN_SOURCE 500
4934 #include <wchar.h>
4935 mbstate_t x;
4936 int
4937 main (void)
4938 {
4939
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"
4945 then :
4946 ac_cv_should_define__xopen_source=yes
4947 fi
4948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4949 esac
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4952 fi ;;
4953 esac
4954 fi
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4956 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4957
4958 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4959
4960 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4961
4962 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4963
4964 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4965
4966 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4967
4968 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4969
4970 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4971
4972 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4973
4974 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4975
4976 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4977
4978 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4979
4980 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4981
4982 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4983
4984 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4985
4986 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4987
4988 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4989
4990 if test $ac_cv_header_minix_config_h = yes
4991 then :
4992 MINIX=yes
4993 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4994
4995 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4996
4997 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4998
4999 else case e in #(
5000 e) MINIX= ;;
5001 esac
5002 fi
5003 if test $ac_cv_safe_to_define___extensions__ = yes
5004 then :
5005 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5006
5007 fi
5008 if test $ac_cv_should_define__xopen_source = yes
5009 then :
5010 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5011
5012 fi
5013
5014
5015 ##
5016 ## Recommended structure:
5017 ##
5018 # information on the package
5019 # checks for programs
5020 # checks for libraries
5021 # checks for header files
5022 # checks for types
5023 # checks for structures
5024 # checks for compiler characteristics
5025 # checks for library functions
5026 # checks for system services
5027
5028
5029
5030
5031
5032 # -*- autoconf -*-
5033 #########################################
5034 ##
5035 # Command-line processing - --with/--enable
5036 ##
5037 #########################################
5038
5039 ##
5040 # System: Compiler settings
5041 ##
5042
5043
5044 # Check whether --with-cc was given.
5045 if test ${with_cc+y}
5046 then :
5047 withval=$with_cc; CC=$with_cc;export CC
5048 fi
5049
5050
5051
5052 # Check whether --with-linkcc was given.
5053 if test ${with_linkcc+y}
5054 then :
5055 withval=$with_linkcc; LINKCC=$with_linkcc;export LINKCC
5056 fi
5057
5058
5059
5060 # Check whether --with-ar was given.
5061 if test ${with_ar+y}
5062 then :
5063 withval=$with_ar; AR=$with_ar; export AR
5064 fi
5065
5066
5067
5068 # Check whether --with-endianness was given.
5069 if test ${with_endianness+y}
5070 then :
5071 withval=$with_endianness; if test $with_endianness != "big" -a $with_endianness != "little" ; then
5072 as_fn_error $? "Endianness must be big or little, not \"$with_endianness\"." "$LINENO" 5;
5073 else
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-endianness is obsolete" >&5
5075 printf "%s\n" "$as_me: WARNING: --with-endianness is obsolete" >&2;}
5076 fi
5077
5078 fi
5079
5080
5081
5082 # Check whether --with-cflags was given.
5083 if test ${with_cflags+y}
5084 then :
5085 withval=$with_cflags; CFLAGS=$with_cflags; export CFLAGS
5086 fi
5087
5088
5089
5090 # Check whether --with-ldflags was given.
5091 if test ${with_ldflags+y}
5092 then :
5093 withval=$with_ldflags; LDFLAGS=$with_ldflags; export LDFLAGS
5094 fi
5095
5096
5097 # Check whether --enable-as-needed was given.
5098 if test ${enable_as_needed+y}
5099 then :
5100 enableval=$enable_as_needed;
5101 fi
5102
5103
5104
5105 # Check whether --with-libs was given.
5106 if test ${with_libs+y}
5107 then :
5108 withval=$with_libs; LIBS=$with_libs; export LIBS
5109 fi
5110
5111
5112 # Check whether --enable-silent-libtool was given.
5113 if test ${enable_silent_libtool+y}
5114 then :
5115 enableval=$enable_silent_libtool; LIBTOOLFLAGS=--silent
5116 fi
5117
5118
5119
5120
5121 ##
5122 # System: Library settings
5123 ##
5124
5125 tryrsaref=no
5126
5127 # Check whether --with-rsaref was given.
5128 if test ${with_rsaref+y}
5129 then :
5130 withval=$with_rsaref; if test "x$withval" = "xyes"; then
5131 tryrsaref=yes
5132 elif test "x$withval" = "xno"; then
5133 tryrsaref=no
5134 elif test -d "$withval"; then
5135
5136 if test "x$withval" != x -a -d $withval; then
5137 if test -d $withval/lib; then
5138 LDFLAGS="-L$withval/lib $LDFLAGS"
5139 fi
5140 if test -d $withval/include; then
5141 CPPFLAGS="-I$withval/include $CPPFLAGS"
5142 fi
5143 fi
5144
5145 tryrsaref=yes
5146 fi
5147 fi
5148
5149 # Check whether --enable-rsaref was given.
5150 if test ${enable_rsaref+y}
5151 then :
5152 enableval=$enable_rsaref; as_fn_error $? "Invalid option. Use --with-rsaref/--without-rsaref instead" "$LINENO" 5
5153 fi
5154
5155
5156 tryopenssl=yes
5157 askedopenssl=no
5158 aes_capable=no
5159
5160 # Check whether --with-openssl was given.
5161 if test ${with_openssl+y}
5162 then :
5163 withval=$with_openssl; if test "x$withval" = "xyes"; then
5164 tryopenssl=yes
5165 askedopenssl=yes
5166 elif test "x$withval" = "xinternal"; then
5167 tryopenssl=internal
5168 askedopenssl=internal
5169 elif test "x$withval" = "xno"; then
5170 tryopenssl=no
5171 elif test -d "$withval"; then
5172 if test -d "$withval/lib/MinGW"; then
5173 LDFLAGS="-L$withval/lib/MinGW $LDFLAGS"
5174 CPPFLAGS="-I$withval/include $CPPFLAGS"
5175 else
5176
5177 if test "x$withval" != x -a -d $withval; then
5178 if test -d $withval/lib; then
5179 LDFLAGS="-L$withval/lib $LDFLAGS"
5180 fi
5181 if test -d $withval/include; then
5182 CPPFLAGS="-I$withval/include $CPPFLAGS"
5183 fi
5184 fi
5185
5186 fi
5187 tryopenssl=yes
5188 askedopenssl=yes
5189 fi
5190 fi
5191
5192 # Check whether --enable-openssl was given.
5193 if test ${enable_openssl+y}
5194 then :
5195 enableval=$enable_openssl; as_fn_error $? "Invalid option. Use --with-openssl/--without-openssl instead" "$LINENO" 5
5196 fi
5197
5198
5199 # Check whether --with-wolfssl was given.
5200 if test ${with_wolfssl+y}
5201 then :
5202 withval=$with_wolfssl; if test "x$withval" = xyes; then
5203 tryopenssl=yes
5204 askedopenssl=yes
5205 CPPFLAGS="-I/usr/include/wolfssl -DWC_NO_HARDEN -DNO_OLD_TIMEVAL_NAME -DOPENSSL_EXTRA -DEXTERNAL_OPTS_OPENVPN $CPPFLAGS"
5206 elif test -d "$withval" && test -d "$withval/include/wolfssl"; then
5207 tryopenssl=yes
5208 askedopenssl=yes
5209 LDFLAGS="-L$withval/lib $LDFLAGS"
5210 CPPFLAGS="-I$withval/include -I$withval/include/wolfssl -DWC_NO_HARDEN -DNO_OLD_TIMEVAL_NAME -DOPENSSL_EXTRA -DEXTERNAL_OPTS_OPENVPN $CPPFLAGS"
5211 else
5212 as_fn_error $? "Cannot find wolfSSL in ${withval}." "$LINENO" 5
5213 fi
5214
5215 fi
5216
5217 # Check whether --enable-wolfssl was given.
5218 if test ${enable_wolfssl+y}
5219 then :
5220 enableval=$enable_wolfssl; as_fn_error $? "Invalid option. Use --with-wolfssl/--without-wolfssl instead" "$LINENO" 5
5221 fi
5222
5223 if test "x$tryopenssl" = "xyes"; then
5224 for ac_header in openssl/aes.h openssl/evp.h
5225 do :
5226 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
5227 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5228 if eval test \"x\$"$as_ac_Header"\" = x"yes"
5229 then :
5230 cat >>confdefs.h <<_ACEOF
5231 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
5232 _ACEOF
5233 aes_capable=yes
5234 fi
5235
5236 done
5237 fi
5238
5239
5240 # Check whether --with-ssl was given.
5241 if test ${with_ssl+y}
5242 then :
5243 withval=$with_ssl; as_fn_error $? "Invalid option. Use --with-openssl/--without-openssl instead" "$LINENO" 5
5244 fi
5245
5246 # Check whether --enable-ssl was given.
5247 if test ${enable_ssl+y}
5248 then :
5249 enableval=$enable_ssl; as_fn_error $? "Invalid option. Use --with-openssl/--without-openssl instead" "$LINENO" 5
5250 fi
5251
5252
5253 askedpkcs=no
5254
5255 # Check whether --with-pkcs was given.
5256 if test ${with_pkcs+y}
5257 then :
5258 withval=$with_pkcs; if test "x$withval" = "xyes"; then
5259 askedpkcs=yes
5260 elif test "x$withval" = "xno"; then
5261 askedpkcs=no
5262 elif test -d "$withval"; then
5263
5264 if test "x$withval" != x -a -d $withval; then
5265 if test -d $withval/lib; then
5266 LDFLAGS="-L$withval/lib $LDFLAGS"
5267 fi
5268 if test -d $withval/include; then
5269 CPPFLAGS="-I$withval/include $CPPFLAGS"
5270 fi
5271 fi
5272
5273 askedpkcs=yes
5274 fi
5275 fi
5276
5277 # Check whether --enable-pkcs was given.
5278 if test ${enable_pkcs+y}
5279 then :
5280 enableval=$enable_pkcs; as_fn_error $? "Invalid option. Use --with-pkcs/--without-pkcs instead" "$LINENO" 5
5281 fi
5282
5283
5284 trykrb5=defaultyes
5285 askedkrb5=no
5286
5287 # Check whether --with-krb5 was given.
5288 if test ${with_krb5+y}
5289 then :
5290 withval=$with_krb5; if test "x$withval" = "xyes"; then
5291 trykrb5=yes
5292 askedkrb5=yes
5293 krb5path=undef
5294 elif test "x$withval" = "xno"; then
5295 trykrb5=no
5296 krb5path=undef
5297 elif test -d "$withval"; then
5298 trykrb5=yes
5299 askedkrb5=yes
5300 krb5path=$withval
5301 fi
5302 fi
5303
5304 # Check whether --enable-krb5 was given.
5305 if test ${enable_krb5+y}
5306 then :
5307 enableval=$enable_krb5; as_fn_error $? "Invalid option. Use --with-krb5/--without-krb5 instead" "$LINENO" 5
5308 fi
5309
5310 if test "x$trykrb5" = "xdefaultyes"; then
5311 trykrb5=yes
5312 krb5path=/usr/kerberos
5313 fi
5314
5315
5316 # Check whether --with-dnssec-local-validation was given.
5317 if test ${with_dnssec_local_validation+y}
5318 then :
5319 withval=$with_dnssec_local_validation; want_dnssec=$withval
5320 else case e in #(
5321 e) want_dnssec=no ;;
5322 esac
5323 fi
5324
5325 # Check whether --enable-dnssec-local-validation was given.
5326 if test ${enable_dnssec_local_validation+y}
5327 then :
5328 enableval=$enable_dnssec_local_validation; as_fn_error $? "Invalid option. Use --with-dnssec-local-validation/--without-dnssec-local-validation instead" "$LINENO" 5
5329 fi
5330
5331
5332 # Check whether --with-dnssec was given.
5333 if test ${with_dnssec+y}
5334 then :
5335 withval=$with_dnssec; as_fn_error $? "Invalid option. Use --with-dnssec-local-validation/--without-dnssec-local-validation instead" "$LINENO" 5
5336 fi
5337
5338 # Check whether --enable-dnssec was given.
5339 if test ${enable_dnssec+y}
5340 then :
5341 enableval=$enable_dnssec; as_fn_error $? "Invalid option. Use --with-dnssec-local-validation/--without-dnssec-local-validation instead" "$LINENO" 5
5342 fi
5343
5344
5345
5346 # Check whether --with-rpm was given.
5347 if test ${with_rpm+y}
5348 then :
5349 withval=$with_rpm;
5350 fi
5351
5352 # Check whether --enable-rpm was given.
5353 if test ${enable_rpm+y}
5354 then :
5355 enableval=$enable_rpm; as_fn_error $? "Invalid option. Use --with-rpm/--without-rpm instead" "$LINENO" 5
5356 fi
5357
5358
5359
5360
5361 # Check whether --with-pcre was given.
5362 if test ${with_pcre+y}
5363 then :
5364 withval=$with_pcre; with_pcre="$withval"
5365 else case e in #(
5366 e) with_pcre="maybe" ;;
5367 esac
5368 fi
5369
5370 # Check whether --enable-pcre was given.
5371 if test ${enable_pcre+y}
5372 then :
5373 enableval=$enable_pcre; as_fn_error $? "Invalid option. Use --with-pcre/--without-pcre instead" "$LINENO" 5
5374 fi
5375
5376
5377 ##
5378 # Project: Build configuration settings
5379 ##
5380
5381 # Install prefix
5382 #
5383
5384 # Check whether --with-install-prefix was given.
5385 if test ${with_install_prefix+y}
5386 then :
5387 withval=$with_install_prefix; INSTALL_PREFIX="$withval"
5388 fi
5389
5390
5391 if test "x$INSTALL_PREFIX" = "xyes" ; then
5392 as_fn_error $? "--with-install-prefix requires an argument" "$LINENO" 5
5393 fi
5394 if test "x$INSTALL_PREFIX" = "xno" ; then
5395 INSTALL_PREFIX=""
5396 fi
5397
5398
5399
5400 #
5401 # Subsystems to build:
5402 # Library
5403 #
5404 FEATUREHEADERS="library/features.h"
5405 FTMAINSUBS=""
5406
5407 #
5408 # Agent
5409 #
5410 # Check whether --enable-agent was given.
5411 if test ${enable_agent+y}
5412 then :
5413 enableval=$enable_agent;
5414 fi
5415
5416
5417 # Check whether --with-agent was given.
5418 if test ${with_agent+y}
5419 then :
5420 withval=$with_agent; as_fn_error $? "Invalid option. Use --enable-agent/--disable-agent instead" "$LINENO" 5
5421 fi
5422
5423 if test "x$enable_agent" != "xno"; then
5424 SNMPD='snmpd$(EXEEXT)'
5425 MAINSUBS="$MAINSUBS agent"
5426 FEATUREHEADERS="$FEATUREHEADERS agent/features-mibgroups.h agent/features.h"
5427 FTMAINSUBS="agent $FTMAINSUBS"
5428 TRAPLIBS='$(TRAPDWITHAGENT)'
5429 USETRAPLIBS='$(USEAGENTLIBS)'
5430 else
5431 SNMPD=""
5432 # we still need/want the agentlibs (for subagents, e.g. snmptrapd)
5433 MAINSUBS="$MAINSUBS agent"
5434 # building snmptrapd w/o agentlibs doesn't work atm
5435 #TRAPLIBS='$(TRAPDWITHOUTAGENT)'
5436 #USETRAPLIBS='$(USELIBS)'
5437 TRAPLIBS='$(TRAPDWITHAGENT)'
5438 USETRAPLIBS='$(USEAGENTLIBS)'
5439
5440 printf "%s\n" "#define NETSNMP_DISABLE_AGENT 1" >>confdefs.h
5441
5442 fi
5443
5444
5445
5446
5447
5448 # Applications
5449 #
5450 # Check whether --enable-applications was given.
5451 if test ${enable_applications+y}
5452 then :
5453 enableval=$enable_applications;
5454 fi
5455
5456
5457 # Check whether --with-applications was given.
5458 if test ${with_applications+y}
5459 then :
5460 withval=$with_applications; as_fn_error $? "Invalid option. Use --enable-applications/--disable-applications instead" "$LINENO" 5
5461 fi
5462
5463 if test "x$enable_applications" != "xno"; then
5464 MAINSUBS="$MAINSUBS apps"
5465 FEATUREHEADERS="$FEATUREHEADERS features-snmpnetstat.h features-apps.h"
5466 FTMAINSUBS="apps $FTMAINSUBS"
5467 else
5468
5469 printf "%s\n" "#define NETSNMP_DISABLE_APPS 1" >>confdefs.h
5470
5471 fi
5472
5473 # Manual pages
5474 #
5475 # Check whether --enable-manuals was given.
5476 if test ${enable_manuals+y}
5477 then :
5478 enableval=$enable_manuals;
5479 fi
5480
5481
5482 # Check whether --with-manuals was given.
5483 if test ${with_manuals+y}
5484 then :
5485 withval=$with_manuals; as_fn_error $? "Invalid option. Use --enable-manuals/--disable-manuals instead" "$LINENO" 5
5486 fi
5487
5488 if test "x$enable_manuals" != "xno"; then
5489 MAINSUBS="$MAINSUBS man"
5490 fi
5491
5492 # Supporting scripts
5493 #
5494 # Check whether --enable-scripts was given.
5495 if test ${enable_scripts+y}
5496 then :
5497 enableval=$enable_scripts;
5498 fi
5499
5500
5501 # Check whether --with-scripts was given.
5502 if test ${with_scripts+y}
5503 then :
5504 withval=$with_scripts; as_fn_error $? "Invalid option. Use --enable-scripts/--disable-scripts instead" "$LINENO" 5
5505 fi
5506
5507 if test "x$enable_scripts" != "xno"; then
5508 MAINSUBS="$MAINSUBS local"
5509 fi
5510
5511 # MIB files
5512 #
5513 # Check whether --enable-mibs was given.
5514 if test ${enable_mibs+y}
5515 then :
5516 enableval=$enable_mibs;
5517 fi
5518
5519 if test "x$enable_mibs" != "xno"; then
5520 MAINSUBS="$MAINSUBS mibs"
5521 fi
5522 # with-mibs is valid too, but means something else
5523
5524
5525
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what to build and install" >&5
5527 printf %s "checking what to build and install... " >&6; }
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAINSUBS" >&5
5529 printf "%s\n" "$MAINSUBS" >&6; }
5530
5531
5532 # MIB module validation (during "configure")
5533 #
5534 # Check whether --enable-mib-config-checking was given.
5535 if test ${enable_mib_config_checking+y}
5536 then :
5537 enableval=$enable_mib_config_checking; if test "$enableval" = yes -o "$enableval" = no ; then
5538 with_mib_cfg_checks="$enableval"
5539 else
5540 as_fn_error $? "Please use --enable/--disable-mib-config-checking" "$LINENO" 5
5541 fi
5542 else case e in #(
5543 e) with_mib_cfg_checks="no" ;;
5544 esac
5545 fi
5546
5547
5548 # Check whether --with-mib-config-checking was given.
5549 if test ${with_mib_config_checking+y}
5550 then :
5551 withval=$with_mib_config_checking; as_fn_error $? "Invalid option. Use --enable-mib-config-checking/--disable-mib-config-checking instead" "$LINENO" 5
5552 fi
5553
5554
5555 # Check whether --enable-mib-config-debug was given.
5556 if test ${enable_mib_config_debug+y}
5557 then :
5558 enableval=$enable_mib_config_debug; if test "$enableval" = yes -o "$enableval" = no ; then
5559 with_mib_cfg_debug="$enableval"
5560 else
5561 as_fn_error $? "Please use --enable/--disable-mib-config-debug" "$LINENO" 5
5562 fi
5563 else case e in #(
5564 e) with_mib_cfg_debug="no" ;;
5565 esac
5566 fi
5567
5568
5569 # Check whether --with-mib-config-debug was given.
5570 if test ${with_mib_config_debug+y}
5571 then :
5572 withval=$with_mib_config_debug; as_fn_error $? "Invalid option. Use --enable-mib-config-debug/--disable-mib-config-debug instead" "$LINENO" 5
5573 fi
5574
5575
5576
5577 # Version-specific features
5578 #
5579 # Check whether --enable-new-features was given.
5580 if test ${enable_new_features+y}
5581 then :
5582 enableval=$enable_new_features;
5583 fi
5584
5585
5586 # Check whether --enable-old-features was given.
5587 if test ${enable_old_features+y}
5588 then :
5589 enableval=$enable_old_features;
5590 fi
5591
5592
5593
5594 # Check whether --with-features-of was given.
5595 if test ${with_features_of+y}
5596 then :
5597 withval=$with_features_of;
5598 else case e in #(
5599 e) with_features_of=$PACKAGE_VERSION ;;
5600 esac
5601 fi
5602
5603
5604
5605 # Manual prompting during "configure"
5606 #
5607
5608 # Check whether --with-defaults was given.
5609 if test ${with_defaults+y}
5610 then :
5611 withval=$with_defaults; if test "$withval" = yes -o "$withval" = no ; then
5612 defaults="$withval"
5613 else
5614 as_fn_error $? "Please use --with/--without-defaults" "$LINENO" 5
5615 fi
5616 else case e in #(
5617 e) defaults="no" ;;
5618 esac
5619 fi
5620
5621 # Check whether --enable-defaults was given.
5622 if test ${enable_defaults+y}
5623 then :
5624 enableval=$enable_defaults; as_fn_error $? "Invalid option. Use --with-defaults/--without-defaults instead" "$LINENO" 5
5625 fi
5626
5627
5628
5629 # UCD compatability
5630 #
5631 # Check whether --enable-ucd-snmp-compatibility was given.
5632 if test ${enable_ucd_snmp_compatibility+y}
5633 then :
5634 enableval=$enable_ucd_snmp_compatibility;
5635 fi
5636
5637
5638 # Check whether --with-ucd-snmp-compatibility was given.
5639 if test ${with_ucd_snmp_compatibility+y}
5640 then :
5641 withval=$with_ucd_snmp_compatibility; as_fn_error $? "Invalid option. Use --enable-ucd-snmp-compatibility/--disable-ucd-snmp-compatibility instead" "$LINENO" 5
5642 fi
5643
5644
5645 if test "x$enable_ucd_snmp_compatibility" = "xyes" ; then
5646 installucdheaders=installucdheaders
5647 installucdlibs=installucdlibs
5648
5649 cat >> configure-summary << EOF
5650 UCD-SNMP compatability: enabled
5651 EOF
5652
5653 fi
5654
5655
5656
5657
5658 ##
5659 # Project: Library: MIB configuration settings
5660 ##
5661
5662 # Check whether --enable-mib-loading was given.
5663 if test ${enable_mib_loading+y}
5664 then :
5665 enableval=$enable_mib_loading;
5666 fi
5667
5668
5669 # Check whether --with-mib-loading was given.
5670 if test ${with_mib_loading+y}
5671 then :
5672 withval=$with_mib_loading; as_fn_error $? "Invalid option. Use --enable-mib-loading/--disable-mib-loading instead" "$LINENO" 5
5673 fi
5674
5675 if test "x$enable_mib_loading" = "xno"; then
5676
5677 printf "%s\n" "#define NETSNMP_DISABLE_MIB_LOADING 1" >>confdefs.h
5678
5679 fi
5680
5681
5682 # Check whether --with-mibdirs was given.
5683 if test ${with_mibdirs+y}
5684 then :
5685 withval=$with_mibdirs; NETSNMP_DEFAULT_MIBDIRS="$with_mibdirs"
5686
5687 printf "%s\n" "#define NETSNMP_DEFAULT_MIBDIRS \"$with_mibdirs\"" >>confdefs.h
5688
5689 fi
5690
5691 # Check whether --enable-mibdirs was given.
5692 if test ${enable_mibdirs+y}
5693 then :
5694 enableval=$enable_mibdirs; as_fn_error $? "Invalid option. Use --with-mibdirs/--without-mibdirs instead" "$LINENO" 5
5695 fi
5696
5697
5698
5699 # Check whether --with-mibs was given.
5700 if test ${with_mibs+y}
5701 then :
5702 withval=$with_mibs; NETSNMP_DEFAULT_MIBS="$with_mibs"
5703 fi
5704
5705 # enable-mibs is valid too, but means something else
5706
5707
5708 # Check whether --with-mibfiles was given.
5709 if test ${with_mibfiles+y}
5710 then :
5711 withval=$with_mibfiles;
5712 printf "%s\n" "#define NETSNMP_DEFAULT_MIBFILES \"$with_mibfiles\"" >>confdefs.h
5713
5714 fi
5715
5716 # Check whether --enable-mibfiles was given.
5717 if test ${enable_mibfiles+y}
5718 then :
5719 enableval=$enable_mibfiles; as_fn_error $? "Invalid option. Use --with-mibfiles/--without-mibfiles instead" "$LINENO" 5
5720 fi
5721
5722
5723
5724 ##
5725 # Project: Library: Security configuration
5726 ##
5727
5728 # Check whether --enable-des was given.
5729 if test ${enable_des+y}
5730 then :
5731 enableval=$enable_des;
5732 fi
5733
5734
5735 # Check whether --with-des was given.
5736 if test ${with_des+y}
5737 then :
5738 withval=$with_des; as_fn_error $? "Invalid option. Use --enable-des/--disable-des instead" "$LINENO" 5
5739 fi
5740
5741 if test "x$enable_des" = "xno"; then
5742
5743 printf "%s\n" "#define NETSNMP_DISABLE_DES 1" >>confdefs.h
5744
5745 fi
5746
5747 # Check whether --enable-privacy was given.
5748 if test ${enable_privacy+y}
5749 then :
5750 enableval=$enable_privacy;
5751 fi
5752
5753
5754 # Check whether --with-privacy was given.
5755 if test ${with_privacy+y}
5756 then :
5757 withval=$with_privacy; as_fn_error $? "Invalid option. Use --enable-privacy/--disable-privacy instead" "$LINENO" 5
5758 fi
5759
5760 if test "x$enable_privacy" != "xno"; then
5761
5762 printf "%s\n" "#define NETSNMP_ENABLE_SCAPI_AUTHPRIV 1" >>confdefs.h
5763
5764 fi
5765
5766 # Check whether --enable-md5 was given.
5767 if test ${enable_md5+y}
5768 then :
5769 enableval=$enable_md5;
5770 fi
5771
5772
5773 # Check whether --with-md5 was given.
5774 if test ${with_md5+y}
5775 then :
5776 withval=$with_md5; as_fn_error $? "Invalid option. Use --enable-md5/--disable-md5 instead" "$LINENO" 5
5777 fi
5778
5779 if test "x$enable_md5" = "xno"; then
5780
5781 printf "%s\n" "#define NETSNMP_DISABLE_MD5 1" >>confdefs.h
5782
5783 fi
5784
5785 # Check whether --enable-internal-md5 was given.
5786 if test ${enable_internal_md5+y}
5787 then :
5788 enableval=$enable_internal_md5;
5789 fi
5790
5791
5792 # Check whether --with-internal-md5 was given.
5793 if test ${with_internal_md5+y}
5794 then :
5795 withval=$with_internal_md5; as_fn_error $? "Invalid option. Use --enable-internal-md5/--disable-internal-md5 instead" "$LINENO" 5
5796 fi
5797
5798 if test "x$enable_internal_md5" = "xyes"; then
5799 if test "x$enable_md5" = "xno"; then
5800 as_fn_error $? "You can not specify both --enable-internal-md5 and --disable-md5" "$LINENO" 5
5801 else
5802
5803 printf "%s\n" "#define NETSNMP_USE_INTERNAL_MD5 1" >>confdefs.h
5804
5805 fi
5806 fi
5807
5808 # Check whether --enable-blumenthal-aes was given.
5809 if test ${enable_blumenthal_aes+y}
5810 then :
5811 enableval=$enable_blumenthal_aes;
5812 fi
5813
5814
5815 # Check whether --with-blumenthal-aes was given.
5816 if test ${with_blumenthal_aes+y}
5817 then :
5818 withval=$with_blumenthal_aes; as_fn_error $? "Invalid option. Use --enable-blumenthal-aes/--disable-blumenthal-aes instead" "$LINENO" 5
5819 fi
5820
5821 if test "x$enable_blumenthal_aes" = "xyes"; then
5822 if test "x$aes_capable" = "xyes"; then
5823
5824 printf "%s\n" "#define NETSNMP_DRAFT_BLUMENTHAL_AES_04 1" >>confdefs.h
5825
5826 else
5827 as_fn_error $? "Blumenthal draft requires OpenSSL with AES functions enabled" "$LINENO" 5
5828 fi
5829 fi
5830
5831
5832 ##
5833 # Project: Library: Misc configuration
5834 ##
5835
5836
5837 # Check whether --with-opaque-special-types was given.
5838 if test ${with_opaque_special_types+y}
5839 then :
5840 withval=$with_opaque_special_types;
5841 fi
5842
5843 # Check whether --enable-opaque-special-types was given.
5844 if test ${enable_opaque_special_types+y}
5845 then :
5846 enableval=$enable_opaque_special_types; as_fn_error $? "Invalid option. Use --with-opaque-special-types/--without-opaque-special-types instead" "$LINENO" 5
5847 fi
5848
5849 # Only define if specifically chosen as --without (i.e., default to true).
5850 if test "x$with_opaque_special_types" != "xno"; then
5851
5852 printf "%s\n" "#define NETSNMP_WITH_OPAQUE_SPECIAL_TYPES 1" >>confdefs.h
5853
5854 fi
5855
5856 # Check whether --enable-ipv6 was given.
5857 if test ${enable_ipv6+y}
5858 then :
5859 enableval=$enable_ipv6;
5860 else case e in #(
5861 e) enable_ipv6="yes" ;;
5862 esac
5863 fi
5864
5865
5866 # Check whether --with-ipv6 was given.
5867 if test ${with_ipv6+y}
5868 then :
5869 withval=$with_ipv6; as_fn_error $? "Invalid option. Use --enable-ipv6/--disable-ipv6 instead" "$LINENO" 5
5870 fi
5871
5872 if test "x$enable_ipv6" != "xno"; then
5873
5874 printf "%s\n" "#define NETSNMP_ENABLE_IPV6 1" >>confdefs.h
5875
5876 fi
5877
5878
5879 # Check whether --with-logfile was given.
5880 if test ${with_logfile+y}
5881 then :
5882 withval=$with_logfile; ac_cv_user_prompt_NETSNMP_LOGFILE="$with_logfile"
5883 fi
5884
5885 # Check whether --enable-logfile was given.
5886 if test ${enable_logfile+y}
5887 then :
5888 enableval=$enable_logfile; as_fn_error $? "Invalid option. Use --with-logfile/--without-logfile instead" "$LINENO" 5
5889 fi
5890
5891 if test "$ac_cv_user_prompt_NETSNMP_LOGFILE" = "no"; then
5892 ac_cv_user_prompt_NETSNMP_LOGFILE="none"
5893 fi
5894
5895 # Check whether --enable-usmUser-uses-default-auth-priv was given.
5896 if test ${enable_usmUser_uses_default_auth_priv+y}
5897 then :
5898 enableval=$enable_usmUser_uses_default_auth_priv; if test "x$enable_usmUser_uses_default_auth_priv" = "xyes"; then
5899
5900 printf "%s\n" "#define NETSNMP_FORCE_SYSTEM_V3_AUTHPRIV 1" >>confdefs.h
5901
5902 fi
5903 fi
5904
5905
5906 # Check whether --with-usmUser-uses-default-auth-priv was given.
5907 if test ${with_usmUser_uses_default_auth_priv+y}
5908 then :
5909 withval=$with_usmUser_uses_default_auth_priv; as_fn_error $? "Invalid option. Use --enable-usmUser-uses-default-auth-priv/--disable-usmUser-uses-default-auth-priv instead" "$LINENO" 5
5910 fi
5911
5912
5913 # Check whether --enable-daemons-syslog-as-default was given.
5914 if test ${enable_daemons_syslog_as_default+y}
5915 then :
5916 enableval=$enable_daemons_syslog_as_default; if test "x$enable_daemons_syslog_as_default" = "xyes"; then
5917
5918 printf "%s\n" "#define NETSNMP_DAEMONS_DEFAULT_LOG_SYSLOG 1" >>confdefs.h
5919
5920 fi
5921 fi
5922
5923
5924 # Check whether --with-daemons-syslog-as-default was given.
5925 if test ${with_daemons_syslog_as_default+y}
5926 then :
5927 withval=$with_daemons_syslog_as_default; as_fn_error $? "Invalid option. Use --enable-daemons-syslog-as-default/--disable-daemons-syslog-as-default instead" "$LINENO" 5
5928 fi
5929
5930
5931
5932 # Check whether --with-persistent-directory was given.
5933 if test ${with_persistent_directory+y}
5934 then :
5935 withval=$with_persistent_directory; ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY="$with_persistent_directory"
5936 fi
5937
5938 # Check whether --enable-persistent-directory was given.
5939 if test ${enable_persistent_directory+y}
5940 then :
5941 enableval=$enable_persistent_directory; as_fn_error $? "Invalid option. Use --with-persistent-directory/--without-persistent-directory instead" "$LINENO" 5
5942 fi
5943
5944
5945
5946 # Check whether --with-persistent-mask was given.
5947 if test ${with_persistent_mask+y}
5948 then :
5949 withval=$with_persistent_mask; if test `expr "X$withval" : 'X[0-7]*$'` -eq 4 ; then
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using persistent mask $withval" >&5
5951 printf "%s\n" "using persistent mask $withval" >&6; }
5952 withval="0$withval"
5953 else
5954 as_fn_error $? "Please provide a three digit octal persistent mask value" "$LINENO" 5
5955 fi
5956 else case e in #(
5957 e) withval=077
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using default persistent mask $withval" >&5
5959 printf "%s\n" "using default persistent mask $withval" >&6; } ;;
5960 esac
5961 fi
5962
5963 # Check whether --enable-persistent-mask was given.
5964 if test ${enable_persistent_mask+y}
5965 then :
5966 enableval=$enable_persistent_mask; as_fn_error $? "Invalid option. Use --with-persistent-mask/--without-persistent-mask instead" "$LINENO" 5
5967 fi
5968
5969
5970 printf "%s\n" "#define NETSNMP_PERSISTENT_MASK $withval" >>confdefs.h
5971
5972
5973
5974 # Check whether --with-copy_persistent_files was given.
5975 if test ${with_copy_persistent_files+y}
5976 then :
5977 withval=$with_copy_persistent_files; ac_cv_user_prompt_COPY_PERSISTENT_FILES="$with_copy_persistent_files"
5978 fi
5979
5980 # Check whether --enable-copy_persistent_files was given.
5981 if test ${enable_copy_persistent_files+y}
5982 then :
5983 enableval=$enable_copy_persistent_files; as_fn_error $? "Invalid option. Use --with-copy_persistent_files/--without-copy_persistent_files instead" "$LINENO" 5
5984 fi
5985
5986
5987 default_temp_file_pattern="/tmp/snmpdXXXXXX"
5988
5989 # Check whether --with-temp-file-pattern was given.
5990 if test ${with_temp_file_pattern+y}
5991 then :
5992 withval=$with_temp_file_pattern; if test `expr "X$withval" : ".*XXXXXX$"` -ne 0 ; then
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using temporary file pattern $withval" >&5
5994 printf "%s\n" "using temporary file pattern $withval" >&6; }
5995 else
5996 as_fn_error $? "temporary file pattens must end with 6 X's" "$LINENO" 5
5997 fi
5998 else case e in #(
5999 e) withval="$default_temp_file_pattern"
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using default temporary file pattern $withval" >&5
6001 printf "%s\n" "using default temporary file pattern $withval" >&6; } ;;
6002 esac
6003 fi
6004
6005 # Check whether --enable-temp-file-pattern was given.
6006 if test ${enable_temp_file_pattern+y}
6007 then :
6008 enableval=$enable_temp_file_pattern; as_fn_error $? "Invalid option. Use --with-temp-file-pattern/--without-temp-file-pattern instead" "$LINENO" 5
6009 fi
6010
6011
6012 printf "%s\n" "#define NETSNMP_TEMP_FILE_PATTERN \"$withval\"" >>confdefs.h
6013
6014
6015
6016 ##
6017 # Project: Library: Version configuration
6018 ##
6019
6020 SNMP_VERSIONS=""
6021 # Check whether --enable-snmpv1 was given.
6022 if test ${enable_snmpv1+y}
6023 then :
6024 enableval=$enable_snmpv1;
6025 fi
6026
6027
6028 # Check whether --with-snmpv1 was given.
6029 if test ${with_snmpv1+y}
6030 then :
6031 withval=$with_snmpv1; as_fn_error $? "Invalid option. Use --enable-snmpv1/--disable-snmpv1 instead" "$LINENO" 5
6032 fi
6033
6034 if test "x$enable_snmpv1" = "xno"; then
6035
6036 printf "%s\n" "#define NETSNMP_DISABLE_SNMPV1 1" >>confdefs.h
6037
6038 else
6039 SNMP_VERSIONS="$SNMP_VERSIONS 1"
6040 fi
6041
6042 # Check whether --enable-snmpv2c was given.
6043 if test ${enable_snmpv2c+y}
6044 then :
6045 enableval=$enable_snmpv2c;
6046 fi
6047
6048
6049 # Check whether --with-snmpv2c was given.
6050 if test ${with_snmpv2c+y}
6051 then :
6052 withval=$with_snmpv2c; as_fn_error $? "Invalid option. Use --enable-snmpv2c/--disable-snmpv2c instead" "$LINENO" 5
6053 fi
6054
6055 if test "x$enable_snmpv2c" = "xno"; then
6056
6057 printf "%s\n" "#define NETSNMP_DISABLE_SNMPV2C 1" >>confdefs.h
6058
6059 else
6060 SNMP_VERSIONS="$SNMP_VERSIONS 2c"
6061 fi
6062
6063 SNMP_VERSIONS="$SNMP_VERSIONS 3"
6064
6065 cat >> configure-summary << EOF
6066 SNMP Versions Supported: $SNMP_VERSIONS
6067 EOF
6068
6069
6070
6071 # Check whether --with-default-snmp-version was given.
6072 if test ${with_default_snmp_version+y}
6073 then :
6074 withval=$with_default_snmp_version; ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION="$with_default_snmp_version"
6075 fi
6076
6077 # Check whether --enable-default-snmp-version was given.
6078 if test ${enable_default_snmp_version+y}
6079 then :
6080 enableval=$enable_default_snmp_version; as_fn_error $? "Invalid option. Use --with-default-snmp-version/--without-default-snmp-version instead" "$LINENO" 5
6081 fi
6082
6083
6084 # we test this now and later as well. we test it now so configure can die
6085 # early on with an error rather than waiting till the end of the script.
6086 case "${ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION-3}" in
6087 [123]) ;;
6088 2c) ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION=2 ;;
6089 *)
6090 as_fn_error $? "Illegal version number. Only 1, 2 (for SNMPv2c) and 3 are supported." "$LINENO" 5
6091 ;;
6092 esac
6093
6094
6095 ##
6096 # Project: Library: Transport modules
6097 ##
6098
6099
6100 # Check whether --with-transports was given.
6101 if test ${with_transports+y}
6102 then :
6103 withval=$with_transports;
6104 fi
6105
6106
6107 # Check whether --with-out_transports was given.
6108 if test ${with_out_transports+y}
6109 then :
6110 withval=$with_out_transports;
6111 fi
6112
6113
6114 #
6115 # Catch common mistakes in transport options
6116 #
6117
6118 # Check whether --with-transport was given.
6119 if test ${with_transport+y}
6120 then :
6121 withval=$with_transport; as_fn_error $? "Invalid option. Use --with-transports/--without-transports instead" "$LINENO" 5
6122 fi
6123
6124
6125 # Check whether --with-out-transport was given.
6126 if test ${with_out_transport+y}
6127 then :
6128 withval=$with_out_transport; as_fn_error $? "Invalid option. Use --with-out-transports/--without-out-transports instead" "$LINENO" 5
6129 fi
6130
6131
6132
6133 ##
6134 # Project: Library: Security modules
6135 ##
6136
6137
6138 # Check whether --with-security-modules was given.
6139 if test ${with_security_modules+y}
6140 then :
6141 withval=$with_security_modules;
6142 fi
6143
6144 # Check whether --enable-security-modules was given.
6145 if test ${enable_security_modules+y}
6146 then :
6147 enableval=$enable_security_modules; as_fn_error $? "Invalid option. Use --with-security-modules/--without-security-modules instead" "$LINENO" 5
6148 fi
6149
6150
6151
6152 # Check whether --with-out-security-modules was given.
6153 if test ${with_out_security_modules+y}
6154 then :
6155 withval=$with_out_security_modules;
6156 fi
6157
6158 # Check whether --enable-out-security-modules was given.
6159 if test ${enable_out_security_modules+y}
6160 then :
6161 enableval=$enable_out_security_modules; as_fn_error $? "Invalid option. Use --with-out-security-modules/--without-out-security-modules instead" "$LINENO" 5
6162 fi
6163
6164
6165
6166 ##
6167 # Project: Library: Developer-related settings
6168 ##
6169
6170 # Check whether --enable-debugging was given.
6171 if test ${enable_debugging+y}
6172 then :
6173 enableval=$enable_debugging; printf "%s\n" "#define NETSNMP_ALWAYS_DEBUG 1" >>confdefs.h
6174
6175 fi
6176
6177
6178 # Check whether --with-debugging was given.
6179 if test ${with_debugging+y}
6180 then :
6181 withval=$with_debugging; as_fn_error $? "Invalid option. Use --enable-debugging/--disable-debugging instead" "$LINENO" 5
6182 fi
6183
6184 if test "x$enable_debugging" = "xno"; then
6185 printf "%s\n" "#define NETSNMP_NO_DEBUGGING 1" >>confdefs.h
6186
6187 fi
6188
6189 # Check whether --enable-developer was given.
6190 if test ${enable_developer+y}
6191 then :
6192 enableval=$enable_developer; if test "$enableval" = yes ; then
6193 developer="yes"
6194 elif test "$enableval" != no ; then
6195 as_fn_error $? "Please use --enable/--disable-developer" "$LINENO" 5
6196 else
6197 developer="no"
6198 fi
6199 fi
6200
6201
6202 # Check whether --with-developer was given.
6203 if test ${with_developer+y}
6204 then :
6205 withval=$with_developer; as_fn_error $? "Invalid option. Use --enable-developer/--disable-developer instead" "$LINENO" 5
6206 fi
6207
6208
6209 # Check whether --enable-testing-code was given.
6210 if test ${enable_testing_code+y}
6211 then :
6212 enableval=$enable_testing_code; if test "$enableval" = yes ; then
6213
6214 printf "%s\n" "#define NETSNMP_ENABLE_TESTING_CODE 1" >>confdefs.h
6215
6216 elif test "$enableval" != no ; then
6217 as_fn_error $? "Please use --enable/--disable-testing-code" "$LINENO" 5
6218 fi
6219 fi
6220
6221
6222 # Check whether --with-testing-code was given.
6223 if test ${with_testing_code+y}
6224 then :
6225 withval=$with_testing_code; as_fn_error $? "Invalid option. Use --enable-testing-code/--disable-testing-code instead" "$LINENO" 5
6226 fi
6227
6228
6229 # Check whether --enable-reentrant was given.
6230 if test ${enable_reentrant+y}
6231 then :
6232 enableval=$enable_reentrant; if test "$enableval" = yes -o "$enableval" = no ; then
6233 with_res_locks="$enableval"
6234 else
6235 as_fn_error $? "Please use --enable/--disable-reentrant" "$LINENO" 5
6236 fi
6237 else case e in #(
6238 e) with_res_locks="no" ;;
6239 esac
6240 fi
6241
6242
6243 # Check whether --with-reentrant was given.
6244 if test ${with_reentrant+y}
6245 then :
6246 withval=$with_reentrant; as_fn_error $? "Invalid option. Use --enable-reentrant/--disable-reentrant instead" "$LINENO" 5
6247 fi
6248
6249
6250 # Check whether --enable-deprecated was given.
6251 if test ${enable_deprecated+y}
6252 then :
6253 enableval=$enable_deprecated;
6254 fi
6255
6256
6257 # Check whether --with-deprecated was given.
6258 if test ${with_deprecated+y}
6259 then :
6260 withval=$with_deprecated; as_fn_error $? "Invalid option. Use --enable-deprecated/--disable-deprecated instead" "$LINENO" 5
6261 fi
6262
6263 if test "$enable_deprecated" = no ; then
6264
6265 printf "%s\n" "#define NETSNMP_NO_DEPRECATED_FUNCTIONS 1" >>confdefs.h
6266
6267 fi
6268
6269
6270
6271 ##
6272 # Project: Agent configuration settings
6273 ##
6274
6275
6276 # Check whether --with-root-access was given.
6277 if test ${with_root_access+y}
6278 then :
6279 withval=$with_root_access;
6280 fi
6281
6282 # Check whether --enable-root-access was given.
6283 if test ${enable_root_access+y}
6284 then :
6285 enableval=$enable_root_access; as_fn_error $? "Invalid option. Use --with-root-access/--without-root-access instead" "$LINENO" 5
6286 fi
6287
6288 # Only define if specifically chosen as --without (i.e., default to true).
6289 if test "x$with_root_access" = "xno"; then
6290
6291 printf "%s\n" "#define NETSNMP_NO_ROOT_ACCESS 1" >>confdefs.h
6292
6293 fi
6294
6295
6296 # Check whether --with-kmem-usage was given.
6297 if test ${with_kmem_usage+y}
6298 then :
6299 withval=$with_kmem_usage;
6300 fi
6301
6302 # Check whether --enable-kmem-usage was given.
6303 if test ${enable_kmem_usage+y}
6304 then :
6305 enableval=$enable_kmem_usage; as_fn_error $? "Invalid option. Use --with-kmem-usage/--without-kmem-usage instead" "$LINENO" 5
6306 fi
6307
6308 # Only define if specifically chosen as --without (i.e., default to true).
6309 if test "x$with_kmem_usage" = "xno"; then
6310
6311 printf "%s\n" "#define NETSNMP_NO_KMEM_USAGE 1" >>confdefs.h
6312
6313 fi
6314
6315
6316 # Check whether --with-dummy-values was given.
6317 if test ${with_dummy_values+y}
6318 then :
6319 withval=$with_dummy_values;
6320 fi
6321
6322 # Check whether --enable-dummy-values was given.
6323 if test ${enable_dummy_values+y}
6324 then :
6325 enableval=$enable_dummy_values; as_fn_error $? "Invalid option. Use --with-dummy-values/--without-dummy-values instead" "$LINENO" 5
6326 fi
6327
6328 # Define unless specifically suppressed (i.e., option defaults to false).
6329 if test "x$with_dummy_values" != "xyes"; then
6330
6331 printf "%s\n" "#define NETSNMP_NO_DUMMY_VALUES 1" >>confdefs.h
6332
6333 fi
6334
6335
6336 # Check whether --with-systemd was given.
6337 if test ${with_systemd+y}
6338 then :
6339 withval=$with_systemd;
6340 fi
6341
6342 # Check whether --enable-systemd was given.
6343 if test ${enable_systemd+y}
6344 then :
6345 enableval=$enable_systemd; as_fn_error $? "Invalid option. Use --with-systemd/--without-systemd instead" "$LINENO" 5
6346 fi
6347
6348 # Define unless specifically suppressed (i.e., option defaults to false).
6349 if test "x$with_systemd" != "xyes"; then
6350
6351 printf "%s\n" "#define NETSNMP_NO_SYSTEMD 1" >>confdefs.h
6352
6353 fi
6354
6355 # Check whether --enable-set-support was given.
6356 if test ${enable_set_support+y}
6357 then :
6358 enableval=$enable_set_support;
6359 fi
6360
6361
6362 # Check whether --with-set-support was given.
6363 if test ${with_set_support+y}
6364 then :
6365 withval=$with_set_support; as_fn_error $? "Invalid option. Use --enable-set-support/--disable-set-support instead" "$LINENO" 5
6366 fi
6367
6368 if test "x$enable_set_support" = "xno"; then
6369
6370 printf "%s\n" "#define NETSNMP_DISABLE_SET_SUPPORT 1" >>confdefs.h
6371
6372 fi
6373
6374
6375
6376 # Check whether --with-sys_contact was given.
6377 if test ${with_sys_contact+y}
6378 then :
6379 withval=$with_sys_contact; ac_cv_user_prompt_NETSNMP_SYS_CONTACT="$with_sys_contact"
6380 fi
6381
6382 # Check whether --enable-sys_contact was given.
6383 if test ${enable_sys_contact+y}
6384 then :
6385 enableval=$enable_sys_contact; as_fn_error $? "Invalid option. Use --with-sys_contact/--without-sys_contact instead" "$LINENO" 5
6386 fi
6387
6388
6389
6390 # Check whether --with-sys_location was given.
6391 if test ${with_sys_location+y}
6392 then :
6393 withval=$with_sys_location; ac_cv_user_prompt_NETSNMP_SYS_LOC="$with_sys_location"
6394 fi
6395
6396 # Check whether --enable-sys_location was given.
6397 if test ${enable_sys_location+y}
6398 then :
6399 enableval=$enable_sys_location; as_fn_error $? "Invalid option. Use --with-sys_location/--without-sys_location instead" "$LINENO" 5
6400 fi
6401
6402
6403
6404
6405 ##
6406 # Project: Agent: Extensibility configuration
6407 ##
6408
6409 # Check whether --enable-local-smux was given.
6410 if test ${enable_local_smux+y}
6411 then :
6412 enableval=$enable_local_smux; if test "x$enable_local_smux" = "xyes"; then
6413
6414 printf "%s\n" "#define NETSNMP_ENABLE_LOCAL_SMUX 1" >>confdefs.h
6415
6416 fi
6417 fi
6418
6419
6420 # Check whether --with-local-smux was given.
6421 if test ${with_local_smux+y}
6422 then :
6423 withval=$with_local_smux; as_fn_error $? "Invalid option. Use --enable-local-smux/--disable-local-smux instead" "$LINENO" 5
6424 fi
6425
6426
6427 # Check whether --enable-agentx-dom-sock-only was given.
6428 if test ${enable_agentx_dom_sock_only+y}
6429 then :
6430 enableval=$enable_agentx_dom_sock_only;
6431 printf "%s\n" "#define NETSNMP_AGENTX_DOM_SOCK_ONLY 1" >>confdefs.h
6432
6433 fi
6434
6435
6436 # Check whether --with-agentx-dom-sock-only was given.
6437 if test ${with_agentx_dom_sock_only+y}
6438 then :
6439 withval=$with_agentx_dom_sock_only; as_fn_error $? "Invalid option. Use --enable-agentx-dom-sock-only/--disable-agentx-dom-sock-only instead" "$LINENO" 5
6440 fi
6441
6442
6443 # Check whether --enable-snmptrapd-subagent was given.
6444 if test ${enable_snmptrapd_subagent+y}
6445 then :
6446 enableval=$enable_snmptrapd_subagent;
6447 fi
6448
6449
6450 # Check whether --with-snmptrapd-subagent was given.
6451 if test ${with_snmptrapd_subagent+y}
6452 then :
6453 withval=$with_snmptrapd_subagent; as_fn_error $? "Invalid option. Use --enable-snmptrapd-subagent/--disable-snmptrapd-subagent instead" "$LINENO" 5
6454 fi
6455
6456 if test "x$enable_snmptrapd_subagent" = "xno"; then
6457
6458 printf "%s\n" "#define NETSNMP_SNMPTRAPD_DISABLE_AGENTX 1" >>confdefs.h
6459
6460 fi
6461
6462 default_agentx_socket="/var/agentx/master"
6463
6464 # Check whether --with-agentx-socket was given.
6465 if test ${with_agentx_socket+y}
6466 then :
6467 withval=$with_agentx_socket;
6468 if test "$withval" = yes; then
6469 as_fn_error $? " Please provide a full path " "$LINENO" 5;
6470 fi
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using AgentX socket $withval" >&5
6472 printf "%s\n" "using AgentX socket $withval" >&6; }
6473
6474 else case e in #(
6475 e)
6476 withval=$default_agentx_socket
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using default AgentX socket $default_agentx_socket" >&5
6478 printf "%s\n" "using default AgentX socket $default_agentx_socket" >&6; }
6479 ;;
6480 esac
6481 fi
6482
6483 # Check whether --enable-agentx-socket was given.
6484 if test ${enable_agentx_socket+y}
6485 then :
6486 enableval=$enable_agentx_socket; as_fn_error $? "Invalid option. Use --with-agentx-socket/--without-agentx-socket instead" "$LINENO" 5
6487 fi
6488
6489
6490 printf "%s\n" "#define NETSNMP_AGENTX_SOCKET \"$withval\"" >>confdefs.h
6491
6492
6493 #
6494 # feature addition/removal and minimialist support
6495 #
6496 FEATURE_ADD_FLAGS=""
6497
6498 # Check whether --with-features was given.
6499 if test ${with_features+y}
6500 then :
6501 withval=$with_features;
6502 if test "$withval" = yes; then
6503 as_fn_error $? " Please provide a list of features " "$LINENO" 5;
6504 fi
6505 FEATURE_ADD_FLAGS="--add $withval"
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: adding in features: $withval" >&5
6507 printf "%s\n" "adding in features: $withval" >&6; }
6508
6509 fi
6510
6511 # Check whether --enable-features was given.
6512 if test ${enable_features+y}
6513 then :
6514 enableval=$enable_features; as_fn_error $? "Invalid option. Use --with-features/--without-features instead" "$LINENO" 5
6515 fi
6516
6517
6518
6519
6520 FEATURE_REMOVE_FLAGS=""
6521
6522 # Check whether --with-out-features was given.
6523 if test ${with_out_features+y}
6524 then :
6525 withval=$with_out_features;
6526 if test "$withval" = yes; then
6527 as_fn_error $? " Please provide a list of features " "$LINENO" 5;
6528 fi
6529 FEATURE_REMOVE_FLAGS="--remove $withval"
6530 FEATURETARGS="features"
6531
6532 printf "%s\n" "#define NETSNMP_MINIMAL_CODE 1" >>confdefs.h
6533
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: removing features: $withval" >&5
6535 printf "%s\n" "removing features: $withval" >&6; }
6536
6537 fi
6538
6539 # Check whether --enable-out-features was given.
6540 if test ${enable_out_features+y}
6541 then :
6542 enableval=$enable_out_features; as_fn_error $? "Invalid option. Use --with-out-features/--without-out-features instead" "$LINENO" 5
6543 fi
6544
6545
6546
6547
6548 # Catch common mistakes
6549
6550 # Check whether --with-feature was given.
6551 if test ${with_feature+y}
6552 then :
6553 withval=$with_feature; as_fn_error $? "Invalid option. Use --with-features/--without-features instead" "$LINENO" 5
6554 fi
6555
6556
6557 # Check whether --with-out-feature was given.
6558 if test ${with_out_feature+y}
6559 then :
6560 withval=$with_out_feature; as_fn_error $? "Invalid option. Use --with-out-features/--without-out-features instead" "$LINENO" 5
6561 fi
6562
6563
6564 FEATURETARGS=""
6565 # Check whether --enable-minimalist was given.
6566 if test ${enable_minimalist+y}
6567 then :
6568 enableval=$enable_minimalist;
6569 fi
6570
6571
6572 # Check whether --with-minimalist was given.
6573 if test ${with_minimalist+y}
6574 then :
6575 withval=$with_minimalist; as_fn_error $? "Invalid option. Use --enable-minimalist/--disable-minimalist instead" "$LINENO" 5
6576 fi
6577
6578 if test "x$enable_minimalist" = "xyes"; then
6579 # we'll assume the mini agent is desired here as well
6580 mini_agent="yes"
6581 FEATURETARGS="features"
6582
6583 # needed to bootstrap later checks
6584 echo "" > include/net-snmp/feature-details.h
6585
6586 printf "%s\n" "#define NETSNMP_MINIMAL_CODE 1" >>confdefs.h
6587
6588 else
6589 FEATUREHEADERS=""
6590 fi
6591
6592 # Check whether --with-minimalist was given.
6593 if test ${with_minimalist+y}
6594 then :
6595 withval=$with_minimalist; as_fn_error $? "Invalid option. Use --enable-minimalist/--disable-minimalist instead" "$LINENO" 5
6596 fi
6597
6598
6599
6600
6601 # Check whether --enable-notify-only was given.
6602 if test ${enable_notify_only+y}
6603 then :
6604 enableval=$enable_notify_only;
6605 fi
6606
6607
6608 # Check whether --with-notify-only was given.
6609 if test ${with_notify_only+y}
6610 then :
6611 withval=$with_notify_only; as_fn_error $? "Invalid option. Use --enable-notify-only/--disable-notify-only instead" "$LINENO" 5
6612 fi
6613
6614 if test "x$enable_notify_only" = "xyes"; then
6615
6616 printf "%s\n" "#define NETSNMP_NOTIFY_ONLY 1" >>confdefs.h
6617
6618 fi
6619
6620 # Check whether --with-notify-only was given.
6621 if test ${with_notify_only+y}
6622 then :
6623 withval=$with_notify_only; as_fn_error $? "Invalid option. Use --enable-notify-only/--disable-notify-only instead" "$LINENO" 5
6624 fi
6625
6626 # Check whether --enable-notifyonly was given.
6627 if test ${enable_notifyonly+y}
6628 then :
6629 enableval=$enable_notifyonly; as_fn_error $? "Invalid option. Use --enable-notify-only/--disable-notify-only instead" "$LINENO" 5
6630 fi
6631
6632
6633 # Check whether --enable-no-listen was given.
6634 if test ${enable_no_listen+y}
6635 then :
6636 enableval=$enable_no_listen;
6637 fi
6638
6639
6640 # Check whether --with-no-listen was given.
6641 if test ${with_no_listen+y}
6642 then :
6643 withval=$with_no_listen; as_fn_error $? "Invalid option. Use --enable-no-listen/--disable-no-listen instead" "$LINENO" 5
6644 fi
6645
6646 if test "x$enable_no_listen" = "xyes" -o "x$enable_notify_only" = "xyes"; then
6647 enable_no_listen="yes"
6648
6649 printf "%s\n" "#define NETSNMP_NO_LISTEN_SUPPORT 1" >>confdefs.h
6650
6651 fi
6652
6653 # Check whether --with-no-listen was given.
6654 if test ${with_no_listen+y}
6655 then :
6656 withval=$with_no_listen; as_fn_error $? "Invalid option. Use --enable-no-listen/--disable-no-listen instead" "$LINENO" 5
6657 fi
6658
6659 # Check whether --enable-nolisten was given.
6660 if test ${enable_nolisten+y}
6661 then :
6662 enableval=$enable_nolisten; as_fn_error $? "Invalid option. Use --enable-no-listen/--disable-no-listen instead" "$LINENO" 5
6663 fi
6664
6665
6666 # Check whether --enable-read-only was given.
6667 if test ${enable_read_only+y}
6668 then :
6669 enableval=$enable_read_only;
6670 fi
6671
6672
6673 # Check whether --with-read-only was given.
6674 if test ${with_read_only+y}
6675 then :
6676 withval=$with_read_only; as_fn_error $? "Invalid option. Use --enable-read-only/--disable-read-only instead" "$LINENO" 5
6677 fi
6678
6679 if test "x$enable_read_only" = "xyes" -o "x$enable_notify_only" = "xyes" ; then
6680 enable_read_only="yes"
6681
6682 printf "%s\n" "#define NETSNMP_NO_WRITE_SUPPORT 1" >>confdefs.h
6683
6684 fi
6685
6686 # Check whether --with-read-only was given.
6687 if test ${with_read_only+y}
6688 then :
6689 withval=$with_read_only; as_fn_error $? "Invalid option. Use --enable-read-only/--disable-read-only instead" "$LINENO" 5
6690 fi
6691
6692 # Check whether --enable-readonly was given.
6693 if test ${enable_readonly+y}
6694 then :
6695 enableval=$enable_readonly; as_fn_error $? "Invalid option. Use --enable-read-only/--disable-read-only instead" "$LINENO" 5
6696 fi
6697
6698
6699
6700 ##
6701 # Project: Agent: MIB module configuration
6702 ##
6703
6704 # Check whether --enable-mini_agent was given.
6705 if test ${enable_mini_agent+y}
6706 then :
6707 enableval=$enable_mini_agent;
6708 fi
6709
6710
6711 # Check whether --with-mini_agent was given.
6712 if test ${with_mini_agent+y}
6713 then :
6714 withval=$with_mini_agent; as_fn_error $? "Invalid option. Use --enable-mini_agent/--disable-mini_agent instead" "$LINENO" 5
6715 fi
6716
6717 if test "x$enable_mini_agent" = "xyes"; then
6718 mini_agent="yes"
6719 else
6720 mini_agent="no"
6721 fi
6722
6723 # Check whether --with-miniagent was given.
6724 if test ${with_miniagent+y}
6725 then :
6726 withval=$with_miniagent; as_fn_error $? "Invalid option. Use --enable-mini-agent/--disable-mini-agent instead" "$LINENO" 5
6727 fi
6728
6729 # Check whether --enable-miniagent was given.
6730 if test ${enable_miniagent+y}
6731 then :
6732 enableval=$enable_miniagent; as_fn_error $? "Invalid option. Use --enable-mini-agent/--disable-mini-agent instead" "$LINENO" 5
6733 fi
6734
6735
6736
6737
6738
6739 # Check whether --enable-mfd-rewrites was given.
6740 if test ${enable_mfd_rewrites+y}
6741 then :
6742 enableval=$enable_mfd_rewrites;
6743 fi
6744
6745
6746 # Check whether --with-mfd-rewrites was given.
6747 if test ${with_mfd_rewrites+y}
6748 then :
6749 withval=$with_mfd_rewrites; as_fn_error $? "Invalid option. Use --enable-mfd-rewrites/--disable-mfd-rewrites instead" "$LINENO" 5
6750 fi
6751
6752 if test "x$enable_mfd_rewrites" = "xyes"; then
6753
6754 printf "%s\n" "#define NETSNMP_ENABLE_MFD_REWRITES 1" >>confdefs.h
6755
6756 fi
6757
6758
6759
6760 # Check whether --with-mib_modules was given.
6761 if test ${with_mib_modules+y}
6762 then :
6763 withval=$with_mib_modules;
6764 fi
6765
6766 # Check whether --enable-mib_modules was given.
6767 if test ${enable_mib_modules+y}
6768 then :
6769 enableval=$enable_mib_modules; as_fn_error $? "Invalid option. Use --with-mib_modules/--without-mib_modules instead" "$LINENO" 5
6770 fi
6771
6772
6773
6774 # Check whether --with-out_mib_modules was given.
6775 if test ${with_out_mib_modules+y}
6776 then :
6777 withval=$with_out_mib_modules;
6778 fi
6779
6780 # Check whether --enable-out_mib_modules was given.
6781 if test ${enable_out_mib_modules+y}
6782 then :
6783 enableval=$enable_out_mib_modules; as_fn_error $? "Invalid option. Use --with-out_mib_modules/--without-out_mib_modules instead" "$LINENO" 5
6784 fi
6785
6786
6787
6788 #
6789 # Catch common mistakes in configure options
6790 #
6791
6792 # Check whether --with-mib-module was given.
6793 if test ${with_mib_module+y}
6794 then :
6795 withval=$with_mib_module; as_fn_error $? "Invalid option. Use --with-mib-modules/--without-mib-modules instead" "$LINENO" 5
6796 fi
6797
6798
6799 # Check whether --with-module was given.
6800 if test ${with_module+y}
6801 then :
6802 withval=$with_module; as_fn_error $? "Invalid option. Use --with-mib-modules/--without-mib-modules instead" "$LINENO" 5
6803 fi
6804
6805
6806 # Check whether --with-modules was given.
6807 if test ${with_modules+y}
6808 then :
6809 withval=$with_modules; as_fn_error $? "Invalid option. Use --with-mib-modules/--without-mib-modules instead" "$LINENO" 5
6810 fi
6811
6812
6813
6814 # Check whether --with-out-mib-module was given.
6815 if test ${with_out_mib_module+y}
6816 then :
6817 withval=$with_out_mib_module; as_fn_error $? "Invalid option. Use --with-out-mib-modules/--without-out-mib-modules instead" "$LINENO" 5
6818 fi
6819
6820
6821 # Check whether --with-out-module was given.
6822 if test ${with_out_module+y}
6823 then :
6824 withval=$with_out_module; as_fn_error $? "Invalid option. Use --with-out-mib-modules/--without-out-mib-modules instead" "$LINENO" 5
6825 fi
6826
6827
6828 # Check whether --with-out-modules was given.
6829 if test ${with_out_modules+y}
6830 then :
6831 withval=$with_out_modules; as_fn_error $? "Invalid option. Use --with-out-mib-modules/--without-out-mib-modules instead" "$LINENO" 5
6832 fi
6833
6834
6835
6836 ##
6837 # Project: Enterprise settings (? Agent/Library/Both?)
6838 ##
6839
6840
6841 # Check whether --with-enterprise-oid was given.
6842 if test ${with_enterprise_oid+y}
6843 then :
6844 withval=$with_enterprise_oid;
6845 if test "$withval" = yes; then
6846 as_fn_error $? " Please provide a value for the enterprise number " "$LINENO" 5;
6847 fi
6848 printf "%s\n" "#define NETSNMP_ENTERPRISE_OID $withval" >>confdefs.h
6849
6850 ent_oid="1,3,6,1,4,1,$withval"
6851 printf "%s\n" "#define NETSNMP_ENTERPRISE_MIB $ent_oid" >>confdefs.h
6852
6853 ent_dot_oid="1.3.6.1.4.1.$withval"
6854 printf "%s\n" "#define NETSNMP_ENTERPRISE_DOT_MIB $ent_dot_oid" >>confdefs.h
6855
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using enterprise number $withval" >&5
6857 printf "%s\n" "using enterprise number $withval" >&6; }
6858
6859 else case e in #(
6860 e)
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using default \"enterprise.net-snmp\"" >&5
6862 printf "%s\n" "using default \"enterprise.net-snmp\"" >&6; }
6863 ;;
6864 esac
6865 fi
6866
6867 # Check whether --enable-enterprise-oid was given.
6868 if test ${enable_enterprise_oid+y}
6869 then :
6870 enableval=$enable_enterprise_oid; as_fn_error $? "Invalid option. Use --with-enterprise-oid/--without-enterprise-oid instead" "$LINENO" 5
6871 fi
6872
6873
6874
6875 # Check whether --with-enterprise-sysoid was given.
6876 if test ${with_enterprise_sysoid+y}
6877 then :
6878 withval=$with_enterprise_sysoid;
6879 if test "$withval" = yes; then
6880 as_fn_error $? " Please provide a base OID value " "$LINENO" 5;
6881 fi
6882 sys_oid=`echo "$withval" | sed 's/^\.//' | sed 's/\./\,/g'`
6883 printf "%s\n" "#define NETSNMP_SYSTEM_MIB $sys_oid" >>confdefs.h
6884
6885 sys_dot_oid=`echo "$withval" | sed 's/^\.//'`
6886 printf "%s\n" "#define NETSNMP_SYSTEM_DOT_MIB $sys_dot_oid" >>confdefs.h
6887
6888 sysoid_len=`echo "$withval" | sed 's/^\.//g' | awk -F\. '{ print NF }'`
6889 printf "%s\n" "#define NETSNMP_SYSTEM_DOT_MIB_LENGTH $sysoid_len" >>confdefs.h
6890
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using enterprise sysOID $withval ...." >&5
6892 printf "%s\n" "using enterprise sysOID $withval ...." >&6; }
6893
6894 else case e in #(
6895 e)
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using default enterprise sysOID \"NET-SNMP-MIB::netSnmpAgentOIDs...\"" >&5
6897 printf "%s\n" "using default enterprise sysOID \"NET-SNMP-MIB::netSnmpAgentOIDs...\"" >&6; }
6898 ;;
6899 esac
6900 fi
6901
6902 # Check whether --enable-enterprise-sysoid was given.
6903 if test ${enable_enterprise_sysoid+y}
6904 then :
6905 enableval=$enable_enterprise_sysoid; as_fn_error $? "Invalid option. Use --with-enterprise-sysoid/--without-enterprise-sysoid instead" "$LINENO" 5
6906 fi
6907
6908
6909
6910 # Check whether --with-enterprise-notification-oid was given.
6911 if test ${with_enterprise_notification_oid+y}
6912 then :
6913 withval=$with_enterprise_notification_oid;
6914 if test "$withval" = yes; then
6915 as_fn_error $? " Please provide a base OID value " "$LINENO" 5;
6916 fi
6917 notification_oid=`echo "$withval" | sed 's/^\.//' | sed 's/\./\,/g'`
6918 printf "%s\n" "#define NETSNMP_NOTIFICATION_MIB $notification_oid" >>confdefs.h
6919
6920 notification_dot_oid=`echo "$withval" | sed 's/^\.//'`
6921 printf "%s\n" "#define NETSNMP_NOTIFICATION_DOT_MIB $notification_dot_oid" >>confdefs.h
6922
6923 notificationoid_len=`echo "$withval" | sed 's/^\.//g' | awk -F\. '{ print NF }'`
6924 printf "%s\n" "#define NETSNMP_NOTIFICATION_DOT_MIB_LENGTH $notificationoid_len" >>confdefs.h
6925
6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using enterprise notifications $withval" >&5
6927 printf "%s\n" "using enterprise notifications $withval" >&6; }
6928
6929 else case e in #(
6930 e)
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using default notifications \"NET-SNMP-MIB::netSnmpNotifications\"" >&5
6932 printf "%s\n" "using default notifications \"NET-SNMP-MIB::netSnmpNotifications\"" >&6; }
6933 ;;
6934 esac
6935 fi
6936
6937 # Check whether --enable-enterprise-notification-oid was given.
6938 if test ${enable_enterprise_notification_oid+y}
6939 then :
6940 enableval=$enable_enterprise_notification_oid; as_fn_error $? "Invalid option. Use --with-enterprise-notification-oid/--without-enterprise-notification-oid instead" "$LINENO" 5
6941 fi
6942
6943
6944
6945 ##
6946 # Project: Perl settings
6947 ##
6948
6949
6950 # Check whether --with-perl-modules was given.
6951 if test ${with_perl_modules+y}
6952 then :
6953 withval=$with_perl_modules;
6954 if test "$withval" = "no"; then
6955 install_perl="no"
6956 else
6957 install_perl="yes"
6958 if test "$withval" != "yes"; then
6959 PERLARGS="$withval"
6960 fi
6961 fi
6962
6963 else case e in #(
6964 e) install_perl="try" ;;
6965 esac
6966 fi
6967
6968 # Check whether --enable-perl-modules was given.
6969 if test ${enable_perl_modules+y}
6970 then :
6971 enableval=$enable_perl_modules; as_fn_error $? "Invalid option. Use --with-perl-modules/--without-perl-modules instead" "$LINENO" 5
6972 fi
6973
6974
6975 # Check whether --enable-embedded-perl was given.
6976 if test ${enable_embedded_perl+y}
6977 then :
6978 enableval=$enable_embedded_perl; embed_perl="$enableval"
6979 else case e in #(
6980 e) embed_perl="try" ;;
6981 esac
6982 fi
6983
6984
6985 # Check whether --with-embedded-perl was given.
6986 if test ${with_embedded_perl+y}
6987 then :
6988 withval=$with_embedded_perl; as_fn_error $? "Invalid option. Use --enable-embedded-perl/--disable-embedded-perl instead" "$LINENO" 5
6989 fi
6990
6991
6992 # Check whether --enable-perl-cc-checks was given.
6993 if test ${enable_perl_cc_checks+y}
6994 then :
6995 enableval=$enable_perl_cc_checks;
6996 fi
6997
6998
6999 # Check whether --with-perl-cc-checks was given.
7000 if test ${with_perl_cc_checks+y}
7001 then :
7002 withval=$with_perl_cc_checks; as_fn_error $? "Invalid option. Use --enable-perl-cc-checks/--disable-perl-cc-checks instead" "$LINENO" 5
7003 fi
7004
7005
7006
7007 ##
7008 # Project: Python settings
7009 ##
7010
7011
7012 # Check whether --with-python-modules was given.
7013 if test ${with_python_modules+y}
7014 then :
7015 withval=$with_python_modules;
7016 install_python="yes"
7017 if test "$withval" = "yes"; then
7018 PYTHONARGS=""
7019 elif test "$withval" = "no"; then
7020 PYTHONARGS=""
7021 install_python="no"
7022 else
7023 PYTHONARGS="$withval"
7024 fi
7025
7026 else case e in #(
7027 e) install_python="no" ;;
7028 esac
7029 fi
7030
7031
7032
7033 ##
7034 # Project: Library settings
7035 ##
7036
7037
7038 # Check whether --with-server-send-buf was given.
7039 if test ${with_server_send_buf+y}
7040 then :
7041 withval=$with_server_send_buf;
7042 if test "$withval" = yes; then
7043 as_fn_error $? " Please provide a positive number for the server send buffer " "$LINENO" 5
7044 fi
7045 printf "%s\n" "#define NETSNMP_DEFAULT_SERVER_SEND_BUF $withval" >>confdefs.h
7046
7047 else case e in #(
7048 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using OS default send buffer size for server sockets" >&5
7049 printf "%s\n" "using OS default send buffer size for server sockets" >&6; } ;;
7050 esac
7051 fi
7052
7053 # Check whether --enable-server-send-buf was given.
7054 if test ${enable_server_send_buf+y}
7055 then :
7056 enableval=$enable_server_send_buf; as_fn_error $? "Invalid option. Use --with-server-send-buf/--without-server-send-buf instead" "$LINENO" 5
7057 fi
7058
7059
7060
7061 # Check whether --with-server-recv-buf was given.
7062 if test ${with_server_recv_buf+y}
7063 then :
7064 withval=$with_server_recv_buf;
7065 if test "$withval" = yes; then
7066 as_fn_error $? " Please provide a positive number for the server recv buffer " "$LINENO" 5
7067 fi
7068 printf "%s\n" "#define NETSNMP_DEFAULT_SERVER_RECV_BUF $withval" >>confdefs.h
7069
7070 else case e in #(
7071 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using OS default recv buffer size for server sockets" >&5
7072 printf "%s\n" "using OS default recv buffer size for server sockets" >&6; } ;;
7073 esac
7074 fi
7075
7076 # Check whether --enable-server-recv-buf was given.
7077 if test ${enable_server_recv_buf+y}
7078 then :
7079 enableval=$enable_server_recv_buf; as_fn_error $? "Invalid option. Use --with-server-recv-buf/--without-server-recv-buf instead" "$LINENO" 5
7080 fi
7081
7082
7083
7084 # Check whether --with-client-send-buf was given.
7085 if test ${with_client_send_buf+y}
7086 then :
7087 withval=$with_client_send_buf;
7088 if test "$withval" = yes; then
7089 as_fn_error $? " Please provide a positive number for the client send buffer " "$LINENO" 5
7090 fi
7091 printf "%s\n" "#define NETSNMP_DEFAULT_CLIENT_SEND_BUF $withval" >>confdefs.h
7092
7093 else case e in #(
7094 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using OS default send buffer size for client sockets" >&5
7095 printf "%s\n" "using OS default send buffer size for client sockets" >&6; } ;;
7096 esac
7097 fi
7098
7099 # Check whether --enable-client-send-buf was given.
7100 if test ${enable_client_send_buf+y}
7101 then :
7102 enableval=$enable_client_send_buf; as_fn_error $? "Invalid option. Use --with-client-send-buf/--without-client-send-buf instead" "$LINENO" 5
7103 fi
7104
7105
7106
7107 # Check whether --with-client-recv-buf was given.
7108 if test ${with_client_recv_buf+y}
7109 then :
7110 withval=$with_client_recv_buf;
7111 if test "$withval" = yes; then
7112 as_fn_error $? " Please provide a positive number for the client recv buffer " "$LINENO" 5
7113 fi
7114 printf "%s\n" "#define NETSNMP_DEFAULT_CLIENT_RECV_BUF $withval" >>confdefs.h
7115
7116 else case e in #(
7117 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using OS default recv buffer size for client sockets" >&5
7118 printf "%s\n" "using OS default recv buffer size for client sockets" >&6; } ;;
7119 esac
7120 fi
7121
7122 # Check whether --enable-client-recv-buf was given.
7123 if test ${enable_client_recv_buf+y}
7124 then :
7125 enableval=$enable_client_recv_buf; as_fn_error $? "Invalid option. Use --with-client-recv-buf/--without-client-recv-buf instead" "$LINENO" 5
7126 fi
7127
7128
7129 ##
7130 # System: library settings (more)
7131 ##
7132
7133
7134 # Check whether --with-elf was given.
7135 if test ${with_elf+y}
7136 then :
7137 withval=$with_elf;
7138 fi
7139
7140 # Check whether --enable-elf was given.
7141 if test ${enable_elf+y}
7142 then :
7143 enableval=$enable_elf; as_fn_error $? "Invalid option. Use --with-elf/--without-elf instead" "$LINENO" 5
7144 fi
7145
7146
7147
7148 # Check whether --with-nl was given.
7149 if test ${with_nl+y}
7150 then :
7151 withval=$with_nl;
7152 fi
7153
7154 # Check whether --enable-nl was given.
7155 if test ${enable_nl+y}
7156 then :
7157 enableval=$enable_nl; as_fn_error $? "Invalid option. Use --with-nl/--without-nl instead" "$LINENO" 5
7158 fi
7159
7160
7161
7162 # Check whether --with-libwrap was given.
7163 if test ${with_libwrap+y}
7164 then :
7165 withval=$with_libwrap;
7166 else case e in #(
7167 e) with_libwrap="no" ;;
7168 esac
7169 fi
7170
7171 # Check whether --enable-libwrap was given.
7172 if test ${enable_libwrap+y}
7173 then :
7174 enableval=$enable_libwrap; as_fn_error $? "Invalid option. Use --with-libwrap/--without-libwrap instead" "$LINENO" 5
7175 fi
7176
7177
7178
7179 # Check whether --with-zlib was given.
7180 if test ${with_zlib+y}
7181 then :
7182 withval=$with_zlib;
7183 else case e in #(
7184 e) with_zlib="no" ;;
7185 esac
7186 fi
7187
7188 # Check whether --enable-zlib was given.
7189 if test ${enable_zlib+y}
7190 then :
7191 enableval=$enable_zlib; as_fn_error $? "Invalid option. Use --with-zlib/--without-zlib instead" "$LINENO" 5
7192 fi
7193
7194
7195
7196 # Check whether --with-bzip2 was given.
7197 if test ${with_bzip2+y}
7198 then :
7199 withval=$with_bzip2;
7200 else case e in #(
7201 e) with_bzip2="no" ;;
7202 esac
7203 fi
7204
7205
7206
7207 # Check whether --with-mnttab was given.
7208 if test ${with_mnttab+y}
7209 then :
7210 withval=$with_mnttab;
7211 fi
7212
7213 # Check whether --enable-mnttab was given.
7214 if test ${enable_mnttab+y}
7215 then :
7216 enableval=$enable_mnttab; as_fn_error $? "Invalid option. Use --with-mnttab/--without-mnttab instead" "$LINENO" 5
7217 fi
7218
7219
7220 ##
7221 # Project: mysql
7222 ##
7223
7224
7225 # Check whether --with-mysql was given.
7226 if test ${with_mysql+y}
7227 then :
7228 withval=$with_mysql;
7229 fi
7230
7231 # Check whether --enable-mysql was given.
7232 if test ${enable_mysql+y}
7233 then :
7234 enableval=$enable_mysql; as_fn_error $? "Invalid option. Use --with-mysql/--without-mysql instead" "$LINENO" 5
7235 fi
7236
7237 if test "x$with_mysql" = "xyes"; then
7238
7239 printf "%s\n" "#define NETSNMP_USE_MYSQL 1" >>confdefs.h
7240
7241 fi
7242
7243 ##
7244 # Protect against CFLAGS with -Werror which causes failures for some tests
7245 # (e.g. it causes type mismatches in the AC_CV_FUNCS call)
7246 ##
7247 noerr_CFLAGS="$CFLAGS"
7248 CFLAGS=`echo $CFLAGS | sed 's/-Werror[^ ]*//g'`
7249 CFLAGS_without_Werror=$CFLAGS
7250 export CFLAGS
7251 # -*- autoconf -*-
7252 #
7253 # Prompt for various bits of user information
7254 #
7255
7256 if test "x$ac_cv_user_prompt_NETSNMP_LOGFILE" = "x" -o "x$ac_cv_user_prompt_NETSNMP_SYS_LOC" = "x" -o "x$ac_cv_user_prompt_NETSNMP_SYS_CONTACT" = "x" -o "x$ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION" = "x"; then
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to prompt for values" >&5
7258 printf %s "checking whether to prompt for values... " >&6; }
7259 if test ${ac_cv_have_warned+y}
7260 then :
7261 printf %s "(cached) " >&6
7262 else case e in #(
7263 e)
7264 if test "x$defaults" = "xno"; then
7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
7266
7267 ************** Configuration Section **************
7268
7269 You are about to be prompted with a series of questions. Answer
7270 them carefully, as they determine how the SNMP agent and related
7271 applications are to function.
7272
7273 After the configure script finishes, you can browse the newly
7274 created net-snmp-config.h file for further - less important - parameters to
7275 modify. Be careful if you re-run configure though, since net-snmp-config.h
7276 will be overwritten.
7277
7278 -Press return to continue-
7279 " >&5
7280 printf "%s\n" "$as_me:
7281
7282 ************** Configuration Section **************
7283
7284 You are about to be prompted with a series of questions. Answer
7285 them carefully, as they determine how the SNMP agent and related
7286 applications are to function.
7287
7288 After the configure script finishes, you can browse the newly
7289 created net-snmp-config.h file for further - less important - parameters to
7290 modify. Be careful if you re-run configure though, since net-snmp-config.h
7291 will be overwritten.
7292
7293 -Press return to continue-
7294 " >&6;}
7295
7296 read tmpinput <&7
7297 ac_cv_have_warned="yes"
7298 else
7299 ac_cv_have_warned="no"
7300 fi
7301 ;;
7302 esac
7303 fi
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_warned" >&5
7305 printf "%s\n" "$ac_cv_have_warned" >&6; }
7306 else
7307 ac_cv_have_warned="yes"
7308 fi
7309
7310 ME=`$WHOAMI`
7311 if test -f /etc/resolv.conf; then
7312 LOC=`awk '/^domain/{loc=$NF}END{print loc}' /etc/resolv.conf`
7313 fi
7314 if test "x$LOC" = x; then
7315 LOC="@no.where"
7316 fi
7317
7318
7319 MSG_CHECK="Default version of SNMP to use"
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $MSG_CHECK" >&5
7321 printf %s "checking $MSG_CHECK... " >&6; }
7322 if test ${ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION+y}
7323 then :
7324 printf %s "(cached) " >&6
7325 else case e in #(
7326 e) echo "" >&6
7327
7328 if test "x$defaults" = "xno"; then
7329 echo $ECHO_N "
7330
7331 *** Default SNMP Version:
7332
7333 Starting with Net-SNMP 5.0, you can choose the default version of
7334 the SNMP protocol to use when no version is given explicitly on the
7335 command line, or via an 'snmp.conf' file. In the past this was set to
7336 SNMPv1, but you can use this to switch to SNMPv3 if desired. SNMPv3
7337 will provide a more secure management environment (and thus you're
7338 encouraged to switch to SNMPv3), but may break existing scripts that
7339 rely on the old behaviour. (Though such scripts will probably need to
7340 be changed to use the '-c' community flag anyway, as the SNMPv1
7341 command line usage has changed as well.).
7342 At this prompt you can select \"1\", \"2\" (for SNMPv2c), or \"3\" as
7343 the default version for the command tools (snmpget, ...) to use. This
7344 can always be overridden at runtime using the -v flag to the tools, or
7345 by using the \"defVersion\" token in your snmp.conf file.
7346 Providing the --with-default-snmp-version=\"x\" parameter to ./configure
7347 will avoid this prompt.
7348
7349 Default version of SNMP to use (3): $ECHO_C"
7350 read tmpinput <&7
7351 if test "$tmpinput" = "" -a "3" != ""; then
7352 tmpinput="3"
7353 fi
7354 eval NETSNMP_DEFAULT_SNMP_VERSION=\"$tmpinput\"
7355 else
7356 tmpinput="3"
7357 eval NETSNMP_DEFAULT_SNMP_VERSION=\"$tmpinput\"
7358 fi
7359
7360 eval ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION=\$NETSNMP_DEFAULT_SNMP_VERSION
7361 echo $ECHO_N "setting $MSG_CHECK to... $ECHO_C" >&6
7362 ;;
7363 esac
7364 fi
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION" >&5
7366 printf "%s\n" "$ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION" >&6; }
7367 if test "$ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION" != "none"; then
7368 if test "xunquoted" = "xquoted" -o "xunquoted" = "xQUOTED"; then
7369 printf "%s\n" "#define NETSNMP_DEFAULT_SNMP_VERSION \"$ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION\"" >>confdefs.h
7370
7371 else
7372 printf "%s\n" "#define NETSNMP_DEFAULT_SNMP_VERSION $ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION" >>confdefs.h
7373
7374 fi
7375 fi
7376
7377
7378 # we tested this above before the prompt, but the prompt may give a new value.
7379 case "${ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION}" in
7380 [123]) ;;
7381 2c) ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION=2 ;;
7382 *)
7383 as_fn_error $? "Illegal version number. Only 1, 2 (for SNMPv2c) and 3 are supported." "$LINENO" 5
7384 ;;
7385 esac
7386
7387
7388 MSG_CHECK="System Contact Information"
7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $MSG_CHECK" >&5
7390 printf %s "checking $MSG_CHECK... " >&6; }
7391 if test ${ac_cv_user_prompt_NETSNMP_SYS_CONTACT+y}
7392 then :
7393 printf %s "(cached) " >&6
7394 else case e in #(
7395 e) echo "" >&6
7396
7397 if test "x$defaults" = "xno"; then
7398 echo $ECHO_N "
7399
7400 *** System Contact Information:
7401
7402 Describes who should be contacted about the host the agent is
7403 running on. This information is available in the MIB-II tree. This
7404 can also be over-ridden using the \"syscontact\" syntax in the agent's
7405 configuration files.
7406 Providing the --with-sys-contact=\"contact\" parameter to ./configure
7407 will avoid this prompt.
7408
7409 System Contact Information ($ME@$LOC): $ECHO_C"
7410 read tmpinput <&7
7411 if test "$tmpinput" = "" -a "$ME@$LOC" != ""; then
7412 tmpinput="$ME@$LOC"
7413 fi
7414 eval NETSNMP_SYS_CONTACT=\"$tmpinput\"
7415 else
7416 tmpinput="$ME@$LOC"
7417 eval NETSNMP_SYS_CONTACT=\"$tmpinput\"
7418 fi
7419
7420 eval ac_cv_user_prompt_NETSNMP_SYS_CONTACT=\$NETSNMP_SYS_CONTACT
7421 echo $ECHO_N "setting $MSG_CHECK to... $ECHO_C" >&6
7422 ;;
7423 esac
7424 fi
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_user_prompt_NETSNMP_SYS_CONTACT" >&5
7426 printf "%s\n" "$ac_cv_user_prompt_NETSNMP_SYS_CONTACT" >&6; }
7427 if test "$ac_cv_user_prompt_NETSNMP_SYS_CONTACT" != "none"; then
7428 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
7429 printf "%s\n" "#define NETSNMP_SYS_CONTACT \"$ac_cv_user_prompt_NETSNMP_SYS_CONTACT\"" >>confdefs.h
7430
7431 else
7432 printf "%s\n" "#define NETSNMP_SYS_CONTACT $ac_cv_user_prompt_NETSNMP_SYS_CONTACT" >>confdefs.h
7433
7434 fi
7435 fi
7436
7437
7438
7439 MSG_CHECK="System Location"
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $MSG_CHECK" >&5
7441 printf %s "checking $MSG_CHECK... " >&6; }
7442 if test ${ac_cv_user_prompt_NETSNMP_SYS_LOC+y}
7443 then :
7444 printf %s "(cached) " >&6
7445 else case e in #(
7446 e) echo "" >&6
7447
7448 if test "x$defaults" = "xno"; then
7449 echo $ECHO_N "
7450
7451 *** System Location:
7452
7453 Describes the location of the system. This information is
7454 available in the MIB-II tree. this can also be over-ridden using the
7455 \"syslocation\" syntax in the agent's configuration files.
7456 Providing the --with-sys-location=\"location\" parameter to ./configure
7457 will avoid this prompt.
7458
7459 System Location (Unknown): $ECHO_C"
7460 read tmpinput <&7
7461 if test "$tmpinput" = "" -a "Unknown" != ""; then
7462 tmpinput="Unknown"
7463 fi
7464 eval NETSNMP_SYS_LOC=\"$tmpinput\"
7465 else
7466 tmpinput="Unknown"
7467 eval NETSNMP_SYS_LOC=\"$tmpinput\"
7468 fi
7469
7470 eval ac_cv_user_prompt_NETSNMP_SYS_LOC=\$NETSNMP_SYS_LOC
7471 echo $ECHO_N "setting $MSG_CHECK to... $ECHO_C" >&6
7472 ;;
7473 esac
7474 fi
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_user_prompt_NETSNMP_SYS_LOC" >&5
7476 printf "%s\n" "$ac_cv_user_prompt_NETSNMP_SYS_LOC" >&6; }
7477 if test "$ac_cv_user_prompt_NETSNMP_SYS_LOC" != "none"; then
7478 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
7479 printf "%s\n" "#define NETSNMP_SYS_LOC \"$ac_cv_user_prompt_NETSNMP_SYS_LOC\"" >>confdefs.h
7480
7481 else
7482 printf "%s\n" "#define NETSNMP_SYS_LOC $ac_cv_user_prompt_NETSNMP_SYS_LOC" >>confdefs.h
7483
7484 fi
7485 fi
7486
7487
7488 if test -d /var/log; then
7489 defaultlog="/var/log/snmpd.log"
7490 else
7491 defaultlog="/usr/adm/snmpd.log"
7492 fi
7493
7494
7495 MSG_CHECK="Location to write logfile"
7496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $MSG_CHECK" >&5
7497 printf %s "checking $MSG_CHECK... " >&6; }
7498 if test ${ac_cv_user_prompt_NETSNMP_LOGFILE+y}
7499 then :
7500 printf %s "(cached) " >&6
7501 else case e in #(
7502 e) echo "" >&6
7503
7504 if test "x$defaults" = "xno"; then
7505 echo $ECHO_N "
7506
7507 *** Logfile location:
7508
7509 Enter the default location for the snmpd agent to dump
7510 information & errors to. If not defined (enter the keyword \"none\"
7511 at the prompt below) the agent will use stdout and stderr instead.
7512 (Note: This value can be over-ridden using command line options.)
7513 Providing the --with-logfile=\"path\" parameter to ./configure
7514 will avoid this prompt.
7515
7516 Location to write logfile ($defaultlog): $ECHO_C"
7517 read tmpinput <&7
7518 if test "$tmpinput" = "" -a "$defaultlog" != ""; then
7519 tmpinput="$defaultlog"
7520 fi
7521 eval NETSNMP_LOGFILE=\"$tmpinput\"
7522 else
7523 tmpinput="$defaultlog"
7524 eval NETSNMP_LOGFILE=\"$tmpinput\"
7525 fi
7526
7527 eval ac_cv_user_prompt_NETSNMP_LOGFILE=\$NETSNMP_LOGFILE
7528 echo $ECHO_N "setting $MSG_CHECK to... $ECHO_C" >&6
7529 ;;
7530 esac
7531 fi
7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_user_prompt_NETSNMP_LOGFILE" >&5
7533 printf "%s\n" "$ac_cv_user_prompt_NETSNMP_LOGFILE" >&6; }
7534 if test "$ac_cv_user_prompt_NETSNMP_LOGFILE" != "none"; then
7535 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
7536 printf "%s\n" "#define NETSNMP_LOGFILE \"$ac_cv_user_prompt_NETSNMP_LOGFILE\"" >>confdefs.h
7537
7538 else
7539 printf "%s\n" "#define NETSNMP_LOGFILE $ac_cv_user_prompt_NETSNMP_LOGFILE" >>confdefs.h
7540
7541 fi
7542 fi
7543
7544
7545 if test -d /var; then
7546 defaultstore="/var/net-snmp"
7547 ucddefaultstore="/var/ucd-snmp"
7548 else
7549 defaultstore="/etc/net-snmp"
7550 ucddefaultstore="/etc/ucd-snmp"
7551 fi
7552
7553
7554 MSG_CHECK="Location to write persistent information"
7555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $MSG_CHECK" >&5
7556 printf %s "checking $MSG_CHECK... " >&6; }
7557 if test ${ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY+y}
7558 then :
7559 printf %s "(cached) " >&6
7560 else case e in #(
7561 e) echo "" >&6
7562
7563 if test "x$defaults" = "xno"; then
7564 echo $ECHO_N "
7565
7566 *** snmpd persistent storage location:
7567
7568 Enter a directory for the SNMP library to store persistent
7569 data in the form of a configuration file. This default location is
7570 different than the old default location (which was for ucd-snmp). If
7571 you stay with the new path, I'll ask you in a second if you wish to
7572 copy your files over to the new location (once only). If you pick
7573 some other path than the default, you'll have to copy them yourself.
7574 There is nothing wrong with picking the old path ($ucddefaultstore) if
7575 you'd rather.
7576 Providing the --with-persistent-directory=\"path\" parameter to
7577 ./configure will avoid this prompt.
7578
7579 Location to write persistent information ($defaultstore): $ECHO_C"
7580 read tmpinput <&7
7581 if test "$tmpinput" = "" -a "$defaultstore" != ""; then
7582 tmpinput="$defaultstore"
7583 fi
7584 eval NETSNMP_PERSISTENT_DIRECTORY=\"$tmpinput\"
7585 else
7586 tmpinput="$defaultstore"
7587 eval NETSNMP_PERSISTENT_DIRECTORY=\"$tmpinput\"
7588 fi
7589
7590 eval ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY=\$NETSNMP_PERSISTENT_DIRECTORY
7591 echo $ECHO_N "setting $MSG_CHECK to... $ECHO_C" >&6
7592 ;;
7593 esac
7594 fi
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY" >&5
7596 printf "%s\n" "$ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY" >&6; }
7597 if test "$ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY" != "none"; then
7598 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
7599 printf "%s\n" "#define NETSNMP_PERSISTENT_DIRECTORY \"$ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY\"" >>confdefs.h
7600
7601 else
7602 printf "%s\n" "#define NETSNMP_PERSISTENT_DIRECTORY $ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY" >>confdefs.h
7603
7604 fi
7605 fi
7606
7607
7608 PERSISTENT_DIRECTORY=$ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY
7609
7610 UCDPERSISTENT_DIRECTORY=$ucddefaultstore
7611
7612
7613 if test $PERSISTENT_DIRECTORY = "$defaultstore" -a -d "$ucddefaultstore" -a ! -d "$defaultstore" ; then
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking If we should copy the old persistent directory" >&5
7615 printf %s "checking If we should copy the old persistent directory... " >&6; }
7616 if test ${ac_cv_user_prompt_COPY_PERSISTENT_FILES+y}
7617 then :
7618 printf %s "(cached) " >&6
7619 else case e in #(
7620 e)
7621
7622 if test "x$defaults" = "xno"; then
7623 echo $ECHO_N "
7624
7625 *** Copying old ucd-snmp persistent files to net-snmp persistent directory:
7626
7627 Would you like to copy the older ucd-snmp persistent files
7628 into your new net-snmp persistent file path? This will functionally
7629 save all your ucd-snmp data and let it be used within the net-snmp
7630 tools. This will only be done once when you run make install. If you
7631 wish to do this, enter "yes" at the prompt.
7632 Providing the --with-copy-persistent-files=\"no\" (or \"yes\")
7633 parameters to ./configure will avoid this prompt.
7634
7635 Copy ucd-snmp data into the net-snmp data directory ("yes"): $ECHO_C"
7636 read tmpinput <&7
7637 if test "$tmpinput" = "" -a ""yes"" != ""; then
7638 tmpinput=""yes""
7639 fi
7640 eval ac_cv_user_prompt_COPY_PERSISTENT_FILES=\"$tmpinput\"
7641 else
7642 tmpinput=""yes""
7643 eval ac_cv_user_prompt_COPY_PERSISTENT_FILES=\"$tmpinput\"
7644 fi
7645
7646 ;;
7647 esac
7648 fi
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_user_prompt_COPY_PERSISTENT_FILES" >&5
7650 printf "%s\n" "$ac_cv_user_prompt_COPY_PERSISTENT_FILES" >&6; }
7651 else
7652 ac_cv_user_prompt_COPY_PERSISTENT_FILES="no"
7653 fi
7654 COPY_PERSISTENT_FILES="$ac_cv_user_prompt_COPY_PERSISTENT_FILES"
7655
7656
7657 # -*- autoconf -*-
7658 #########################################
7659 ##
7660 # Checks for programs
7661 ##
7662 #########################################
7663
7664 ##
7665 # Shell checks:
7666 ##
7667
7668 # Check for 'sh' overflow (HP-UX)
7669 # (taken from Perl's configure script)
7670 #
7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if I need to feed myself to ksh" >&5
7672 printf %s "checking if I need to feed myself to ksh... " >&6; }
7673 if test -f /hp-ux -a -f /bin/ksh; then
7674 if (PATH=.; alias -x) >/dev/null 2>&1; then
7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 printf "%s\n" "no" >&6; }
7677 else
7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7679 printf "%s\n" "yes" >&6; }
7680 if test "x$1" = "x"; then
7681 exec /bin/ksh $0
7682 else
7683 exec /bin/ksh $0 "$@"
7684 fi
7685 fi
7686 else
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 printf "%s\n" "no" >&6; }
7689 fi
7690
7691
7692 ##
7693 # Standard and path program checks:
7694 ##
7695
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7697 printf %s "checking for grep that handles long lines and -e... " >&6; }
7698 if test ${ac_cv_path_GREP+y}
7699 then :
7700 printf %s "(cached) " >&6
7701 else case e in #(
7702 e) if test -z "$GREP"; then
7703 ac_path_GREP_found=false
7704 # Loop through the user's path and test for each of PROGNAME-LIST
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7707 do
7708 IFS=$as_save_IFS
7709 case $as_dir in #(((
7710 '') as_dir=./ ;;
7711 */) ;;
7712 *) as_dir=$as_dir/ ;;
7713 esac
7714 for ac_prog in grep ggrep
7715 do
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7718 as_fn_executable_p "$ac_path_GREP" || continue
7719 # Check for GNU ac_path_GREP and select it if it is found.
7720 # Check for GNU $ac_path_GREP
7721 case `"$ac_path_GREP" --version 2>&1` in #(
7722 *GNU*)
7723 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7724 #(
7725 *)
7726 ac_count=0
7727 printf %s 0123456789 >"conftest.in"
7728 while :
7729 do
7730 cat "conftest.in" "conftest.in" >"conftest.tmp"
7731 mv "conftest.tmp" "conftest.in"
7732 cp "conftest.in" "conftest.nl"
7733 printf "%s\n" 'GREP' >> "conftest.nl"
7734 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7736 as_fn_arith $ac_count + 1 && ac_count=$as_val
7737 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7738 # Best one so far, save it but keep looking for a better one
7739 ac_cv_path_GREP="$ac_path_GREP"
7740 ac_path_GREP_max=$ac_count
7741 fi
7742 # 10*(2^10) chars as input seems more than enough
7743 test $ac_count -gt 10 && break
7744 done
7745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7746 esac
7747
7748 $ac_path_GREP_found && break 3
7749 done
7750 done
7751 done
7752 IFS=$as_save_IFS
7753 if test -z "$ac_cv_path_GREP"; then
7754 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7755 fi
7756 else
7757 ac_cv_path_GREP=$GREP
7758 fi
7759 ;;
7760 esac
7761 fi
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7763 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7764 GREP="$ac_cv_path_GREP"
7765
7766
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7768 printf %s "checking for egrep... " >&6; }
7769 if test ${ac_cv_path_EGREP+y}
7770 then :
7771 printf %s "(cached) " >&6
7772 else case e in #(
7773 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7774 then ac_cv_path_EGREP="$GREP -E"
7775 else
7776 if test -z "$EGREP"; then
7777 ac_path_EGREP_found=false
7778 # Loop through the user's path and test for each of PROGNAME-LIST
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7781 do
7782 IFS=$as_save_IFS
7783 case $as_dir in #(((
7784 '') as_dir=./ ;;
7785 */) ;;
7786 *) as_dir=$as_dir/ ;;
7787 esac
7788 for ac_prog in egrep
7789 do
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7792 as_fn_executable_p "$ac_path_EGREP" || continue
7793 # Check for GNU ac_path_EGREP and select it if it is found.
7794 # Check for GNU $ac_path_EGREP
7795 case `"$ac_path_EGREP" --version 2>&1` in #(
7796 *GNU*)
7797 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7798 #(
7799 *)
7800 ac_count=0
7801 printf %s 0123456789 >"conftest.in"
7802 while :
7803 do
7804 cat "conftest.in" "conftest.in" >"conftest.tmp"
7805 mv "conftest.tmp" "conftest.in"
7806 cp "conftest.in" "conftest.nl"
7807 printf "%s\n" 'EGREP' >> "conftest.nl"
7808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7810 as_fn_arith $ac_count + 1 && ac_count=$as_val
7811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7812 # Best one so far, save it but keep looking for a better one
7813 ac_cv_path_EGREP="$ac_path_EGREP"
7814 ac_path_EGREP_max=$ac_count
7815 fi
7816 # 10*(2^10) chars as input seems more than enough
7817 test $ac_count -gt 10 && break
7818 done
7819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7820 esac
7821
7822 $ac_path_EGREP_found && break 3
7823 done
7824 done
7825 done
7826 IFS=$as_save_IFS
7827 if test -z "$ac_cv_path_EGREP"; then
7828 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7829 fi
7830 else
7831 ac_cv_path_EGREP=$EGREP
7832 fi
7833
7834 fi ;;
7835 esac
7836 fi
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7838 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7839 EGREP="$ac_cv_path_EGREP"
7840
7841 EGREP_TRADITIONAL=$EGREP
7842 ac_cv_path_EGREP_TRADITIONAL=$EGREP
7843
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7845 printf %s "checking for grep that handles long lines and -e... " >&6; }
7846 if test ${ac_cv_path_GREP+y}
7847 then :
7848 printf %s "(cached) " >&6
7849 else case e in #(
7850 e) if test -z "$GREP"; then
7851 ac_path_GREP_found=false
7852 # Loop through the user's path and test for each of PROGNAME-LIST
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7855 do
7856 IFS=$as_save_IFS
7857 case $as_dir in #(((
7858 '') as_dir=./ ;;
7859 */) ;;
7860 *) as_dir=$as_dir/ ;;
7861 esac
7862 for ac_prog in grep ggrep
7863 do
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7866 as_fn_executable_p "$ac_path_GREP" || continue
7867 # Check for GNU ac_path_GREP and select it if it is found.
7868 # Check for GNU $ac_path_GREP
7869 case `"$ac_path_GREP" --version 2>&1` in #(
7870 *GNU*)
7871 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7872 #(
7873 *)
7874 ac_count=0
7875 printf %s 0123456789 >"conftest.in"
7876 while :
7877 do
7878 cat "conftest.in" "conftest.in" >"conftest.tmp"
7879 mv "conftest.tmp" "conftest.in"
7880 cp "conftest.in" "conftest.nl"
7881 printf "%s\n" 'GREP' >> "conftest.nl"
7882 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7884 as_fn_arith $ac_count + 1 && ac_count=$as_val
7885 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7886 # Best one so far, save it but keep looking for a better one
7887 ac_cv_path_GREP="$ac_path_GREP"
7888 ac_path_GREP_max=$ac_count
7889 fi
7890 # 10*(2^10) chars as input seems more than enough
7891 test $ac_count -gt 10 && break
7892 done
7893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7894 esac
7895
7896 $ac_path_GREP_found && break 3
7897 done
7898 done
7899 done
7900 IFS=$as_save_IFS
7901 if test -z "$ac_cv_path_GREP"; then
7902 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7903 fi
7904 else
7905 ac_cv_path_GREP=$GREP
7906 fi
7907 ;;
7908 esac
7909 fi
7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7911 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7912 GREP="$ac_cv_path_GREP"
7913
7914
7915
7916
7917 # Find a good install program. We prefer a C program (faster),
7918 # so one script is as good as another. But avoid the broken or
7919 # incompatible versions:
7920 # SysV /etc/install, /usr/sbin/install
7921 # SunOS /usr/etc/install
7922 # IRIX /sbin/install
7923 # AIX /bin/install
7924 # AmigaOS /C/install, which installs bootblocks on floppy discs
7925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7928 # OS/2's system install, which has a completely different semantic
7929 # ./install, which can be erroneously created by make from ./install.sh.
7930 # Reject install programs that cannot install multiple files.
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7932 printf %s "checking for a BSD-compatible install... " >&6; }
7933 if test -z "$INSTALL"; then
7934 if test ${ac_cv_path_install+y}
7935 then :
7936 printf %s "(cached) " >&6
7937 else case e in #(
7938 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941 IFS=$as_save_IFS
7942 case $as_dir in #(((
7943 '') as_dir=./ ;;
7944 */) ;;
7945 *) as_dir=$as_dir/ ;;
7946 esac
7947 # Account for fact that we put trailing slashes in our PATH walk.
7948 case $as_dir in #((
7949 ./ | /[cC]/* | \
7950 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7951 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7952 /usr/ucb/* ) ;;
7953 *)
7954 # OSF1 and SCO ODT 3.0 have their own names for install.
7955 # Don't use installbsd from OSF since it installs stuff as root
7956 # by default.
7957 for ac_prog in ginstall scoinst install; do
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
7960 if test $ac_prog = install &&
7961 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7962 # AIX install. It has an incompatible calling convention.
7963 :
7964 elif test $ac_prog = install &&
7965 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7966 # program-specific install script used by HP pwplus--don't use.
7967 :
7968 else
7969 rm -rf conftest.one conftest.two conftest.dir
7970 echo one > conftest.one
7971 echo two > conftest.two
7972 mkdir conftest.dir
7973 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
7974 test -s conftest.one && test -s conftest.two &&
7975 test -s conftest.dir/conftest.one &&
7976 test -s conftest.dir/conftest.two
7977 then
7978 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
7979 break 3
7980 fi
7981 fi
7982 fi
7983 done
7984 done
7985 ;;
7986 esac
7987
7988 done
7989 IFS=$as_save_IFS
7990
7991 rm -rf conftest.one conftest.two conftest.dir
7992 ;;
7993 esac
7994 fi
7995 if test ${ac_cv_path_install+y}; then
7996 INSTALL=$ac_cv_path_install
7997 else
7998 # As a last resort, use the slow shell script. Don't cache a
7999 # value for INSTALL within a source directory, because that will
8000 # break other packages using the cache if that directory is
8001 # removed, or if the value is a relative name.
8002 INSTALL=$ac_install_sh
8003 fi
8004 fi
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8006 printf "%s\n" "$INSTALL" >&6; }
8007
8008 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8009 # It thinks the first close brace ends the variable substitution.
8010 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8011
8012 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8013
8014 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8015
8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8017 printf %s "checking whether ln -s works... " >&6; }
8018 LN_S=$as_ln_s
8019 if test "$LN_S" = "ln -s"; then
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8021 printf "%s\n" "yes" >&6; }
8022 else
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8024 printf "%s\n" "no, using $LN_S" >&6; }
8025 fi
8026
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8028 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8029 set x ${MAKE-make}
8030 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8031 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8032 then :
8033 printf %s "(cached) " >&6
8034 else case e in #(
8035 e) cat >conftest.make <<\_ACEOF
8036 SHELL = /bin/sh
8037 all:
8038 @echo '@@@%%%=$(MAKE)=@@@%%%'
8039 _ACEOF
8040 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8041 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8042 *@@@%%%=?*=@@@%%%*)
8043 eval ac_cv_prog_make_${ac_make}_set=yes;;
8044 *)
8045 eval ac_cv_prog_make_${ac_make}_set=no;;
8046 esac
8047 rm -f conftest.make ;;
8048 esac
8049 fi
8050 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8052 printf "%s\n" "yes" >&6; }
8053 SET_MAKE=
8054 else
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 printf "%s\n" "no" >&6; }
8057 SET_MAKE="MAKE=${MAKE-make}"
8058 fi
8059
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8061 printf %s "checking for a sed that does not truncate output... " >&6; }
8062 if test ${ac_cv_path_SED+y}
8063 then :
8064 printf %s "(cached) " >&6
8065 else case e in #(
8066 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8067 for ac_i in 1 2 3 4 5 6 7; do
8068 ac_script="$ac_script$as_nl$ac_script"
8069 done
8070 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8071 { ac_script=; unset ac_script;}
8072 if test -z "$SED"; then
8073 ac_path_SED_found=false
8074 # Loop through the user's path and test for each of PROGNAME-LIST
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078 IFS=$as_save_IFS
8079 case $as_dir in #(((
8080 '') as_dir=./ ;;
8081 */) ;;
8082 *) as_dir=$as_dir/ ;;
8083 esac
8084 for ac_prog in sed gsed
8085 do
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8088 as_fn_executable_p "$ac_path_SED" || continue
8089 # Check for GNU ac_path_SED and select it if it is found.
8090 # Check for GNU $ac_path_SED
8091 case `"$ac_path_SED" --version 2>&1` in #(
8092 *GNU*)
8093 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8094 #(
8095 *)
8096 ac_count=0
8097 printf %s 0123456789 >"conftest.in"
8098 while :
8099 do
8100 cat "conftest.in" "conftest.in" >"conftest.tmp"
8101 mv "conftest.tmp" "conftest.in"
8102 cp "conftest.in" "conftest.nl"
8103 printf "%s\n" '' >> "conftest.nl"
8104 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8106 as_fn_arith $ac_count + 1 && ac_count=$as_val
8107 if test $ac_count -gt ${ac_path_SED_max-0}; then
8108 # Best one so far, save it but keep looking for a better one
8109 ac_cv_path_SED="$ac_path_SED"
8110 ac_path_SED_max=$ac_count
8111 fi
8112 # 10*(2^10) chars as input seems more than enough
8113 test $ac_count -gt 10 && break
8114 done
8115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8116 esac
8117
8118 $ac_path_SED_found && break 3
8119 done
8120 done
8121 done
8122 IFS=$as_save_IFS
8123 if test -z "$ac_cv_path_SED"; then
8124 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8125 fi
8126 else
8127 ac_cv_path_SED=$SED
8128 fi
8129 ;;
8130 esac
8131 fi
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8133 printf "%s\n" "$ac_cv_path_SED" >&6; }
8134 SED="$ac_cv_path_SED"
8135 rm -f conftest.sed
8136
8137
8138 for ac_prog in file
8139 do
8140 # Extract the first word of "$ac_prog", so it can be a program name with args.
8141 set dummy $ac_prog; ac_word=$2
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 printf %s "checking for $ac_word... " >&6; }
8144 if test ${ac_cv_prog_FILE+y}
8145 then :
8146 printf %s "(cached) " >&6
8147 else case e in #(
8148 e) if test -n "$FILE"; then
8149 ac_cv_prog_FILE="$FILE" # Let the user override the test.
8150 else
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8153 do
8154 IFS=$as_save_IFS
8155 case $as_dir in #(((
8156 '') as_dir=./ ;;
8157 */) ;;
8158 *) as_dir=$as_dir/ ;;
8159 esac
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8162 ac_cv_prog_FILE="$ac_prog"
8163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8164 break 2
8165 fi
8166 done
8167 done
8168 IFS=$as_save_IFS
8169
8170 fi ;;
8171 esac
8172 fi
8173 FILE=$ac_cv_prog_FILE
8174 if test -n "$FILE"; then
8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8176 printf "%s\n" "$FILE" >&6; }
8177 else
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 printf "%s\n" "no" >&6; }
8180 fi
8181
8182
8183 test -n "$FILE" && break
8184 done
8185
8186 if test x$ac_cv_prog_FILE = x; then
8187 # The file program is not included in the default Cygwin setup, although
8188 # this program is essential for libtool to work properly. It is nontrivial
8189 # to deduce from the message printed by libtool that the 'file' tool is
8190 # missing and libtool does not abort when the file program is not found. So
8191 # stop now if the file program has not been found.
8192 as_fn_error 1 "file program not found although it is needed by libtool." "$LINENO" 5
8193 fi
8194
8195 for ac_prog in find
8196 do
8197 # Extract the first word of "$ac_prog", so it can be a program name with args.
8198 set dummy $ac_prog; ac_word=$2
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 printf %s "checking for $ac_word... " >&6; }
8201 if test ${ac_cv_prog_FIND+y}
8202 then :
8203 printf %s "(cached) " >&6
8204 else case e in #(
8205 e) if test -n "$FIND"; then
8206 ac_cv_prog_FIND="$FIND" # Let the user override the test.
8207 else
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 for as_dir in $PATH
8210 do
8211 IFS=$as_save_IFS
8212 case $as_dir in #(((
8213 '') as_dir=./ ;;
8214 */) ;;
8215 *) as_dir=$as_dir/ ;;
8216 esac
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8219 ac_cv_prog_FIND="$ac_prog"
8220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223 done
8224 done
8225 IFS=$as_save_IFS
8226
8227 fi ;;
8228 esac
8229 fi
8230 FIND=$ac_cv_prog_FIND
8231 if test -n "$FIND"; then
8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8233 printf "%s\n" "$FIND" >&6; }
8234 else
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 printf "%s\n" "no" >&6; }
8237 fi
8238
8239
8240 test -n "$FIND" && break
8241 done
8242
8243 for ac_prog in whoami logname
8244 do
8245 # Extract the first word of "$ac_prog", so it can be a program name with args.
8246 set dummy $ac_prog; ac_word=$2
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 printf %s "checking for $ac_word... " >&6; }
8249 if test ${ac_cv_prog_WHOAMI+y}
8250 then :
8251 printf %s "(cached) " >&6
8252 else case e in #(
8253 e) if test -n "$WHOAMI"; then
8254 ac_cv_prog_WHOAMI="$WHOAMI" # Let the user override the test.
8255 else
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8258 do
8259 IFS=$as_save_IFS
8260 case $as_dir in #(((
8261 '') as_dir=./ ;;
8262 */) ;;
8263 *) as_dir=$as_dir/ ;;
8264 esac
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8267 ac_cv_prog_WHOAMI="$ac_prog"
8268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8269 break 2
8270 fi
8271 done
8272 done
8273 IFS=$as_save_IFS
8274
8275 fi ;;
8276 esac
8277 fi
8278 WHOAMI=$ac_cv_prog_WHOAMI
8279 if test -n "$WHOAMI"; then
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WHOAMI" >&5
8281 printf "%s\n" "$WHOAMI" >&6; }
8282 else
8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 printf "%s\n" "no" >&6; }
8285 fi
8286
8287
8288 test -n "$WHOAMI" && break
8289 done
8290 test -n "$WHOAMI" || WHOAMI="whoami"
8291
8292
8293 # Extract the first word of "autoconf", so it can be a program name with args.
8294 set dummy autoconf; ac_word=$2
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 printf %s "checking for $ac_word... " >&6; }
8297 if test ${ac_cv_path_AUTOCONF+y}
8298 then :
8299 printf %s "(cached) " >&6
8300 else case e in #(
8301 e) case $AUTOCONF in
8302 [\\/]* | ?:[\\/]*)
8303 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
8304 ;;
8305 *)
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309 IFS=$as_save_IFS
8310 case $as_dir in #(((
8311 '') as_dir=./ ;;
8312 */) ;;
8313 *) as_dir=$as_dir/ ;;
8314 esac
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8317 ac_cv_path_AUTOCONF="$as_dir$ac_word$ac_exec_ext"
8318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8319 break 2
8320 fi
8321 done
8322 done
8323 IFS=$as_save_IFS
8324
8325 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF=":"
8326 ;;
8327 esac ;;
8328 esac
8329 fi
8330 AUTOCONF=$ac_cv_path_AUTOCONF
8331 if test -n "$AUTOCONF"; then
8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
8333 printf "%s\n" "$AUTOCONF" >&6; }
8334 else
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 printf "%s\n" "no" >&6; }
8337 fi
8338
8339
8340 # Extract the first word of "autoheader", so it can be a program name with args.
8341 set dummy autoheader; ac_word=$2
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 printf %s "checking for $ac_word... " >&6; }
8344 if test ${ac_cv_path_AUTOHEADER+y}
8345 then :
8346 printf %s "(cached) " >&6
8347 else case e in #(
8348 e) case $AUTOHEADER in
8349 [\\/]* | ?:[\\/]*)
8350 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
8351 ;;
8352 *)
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8355 do
8356 IFS=$as_save_IFS
8357 case $as_dir in #(((
8358 '') as_dir=./ ;;
8359 */) ;;
8360 *) as_dir=$as_dir/ ;;
8361 esac
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8364 ac_cv_path_AUTOHEADER="$as_dir$ac_word$ac_exec_ext"
8365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8366 break 2
8367 fi
8368 done
8369 done
8370 IFS=$as_save_IFS
8371
8372 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER=":"
8373 ;;
8374 esac ;;
8375 esac
8376 fi
8377 AUTOHEADER=$ac_cv_path_AUTOHEADER
8378 if test -n "$AUTOHEADER"; then
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
8380 printf "%s\n" "$AUTOHEADER" >&6; }
8381 else
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 printf "%s\n" "no" >&6; }
8384 fi
8385
8386
8387 # Extract the first word of "perl", so it can be a program name with args.
8388 set dummy perl; ac_word=$2
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 printf %s "checking for $ac_word... " >&6; }
8391 if test ${ac_cv_path_PERLPROG+y}
8392 then :
8393 printf %s "(cached) " >&6
8394 else case e in #(
8395 e) case $PERLPROG in
8396 [\\/]* | ?:[\\/]*)
8397 ac_cv_path_PERLPROG="$PERLPROG" # Let the user override the test with a path.
8398 ;;
8399 *)
8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 for as_dir in $PATH
8402 do
8403 IFS=$as_save_IFS
8404 case $as_dir in #(((
8405 '') as_dir=./ ;;
8406 */) ;;
8407 *) as_dir=$as_dir/ ;;
8408 esac
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8411 ac_cv_path_PERLPROG="$as_dir$ac_word$ac_exec_ext"
8412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8413 break 2
8414 fi
8415 done
8416 done
8417 IFS=$as_save_IFS
8418
8419 ;;
8420 esac ;;
8421 esac
8422 fi
8423 PERLPROG=$ac_cv_path_PERLPROG
8424 if test -n "$PERLPROG"; then
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERLPROG" >&5
8426 printf "%s\n" "$PERLPROG" >&6; }
8427 else
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429 printf "%s\n" "no" >&6; }
8430 fi
8431
8432
8433 # Extract the first word of "ps", so it can be a program name with args.
8434 set dummy ps; ac_word=$2
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 printf %s "checking for $ac_word... " >&6; }
8437 if test ${ac_cv_path_PSPROG+y}
8438 then :
8439 printf %s "(cached) " >&6
8440 else case e in #(
8441 e) case $PSPROG in
8442 [\\/]* | ?:[\\/]*)
8443 ac_cv_path_PSPROG="$PSPROG" # Let the user override the test with a path.
8444 ;;
8445 *)
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $PATH
8448 do
8449 IFS=$as_save_IFS
8450 case $as_dir in #(((
8451 '') as_dir=./ ;;
8452 */) ;;
8453 *) as_dir=$as_dir/ ;;
8454 esac
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8457 ac_cv_path_PSPROG="$as_dir$ac_word$ac_exec_ext"
8458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8459 break 2
8460 fi
8461 done
8462 done
8463 IFS=$as_save_IFS
8464
8465 ;;
8466 esac ;;
8467 esac
8468 fi
8469 PSPROG=$ac_cv_path_PSPROG
8470 if test -n "$PSPROG"; then
8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PSPROG" >&5
8472 printf "%s\n" "$PSPROG" >&6; }
8473 else
8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 printf "%s\n" "no" >&6; }
8476 fi
8477
8478
8479 # Extract the first word of "python3", so it can be a program name with args.
8480 set dummy python3; ac_word=$2
8481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8482 printf %s "checking for $ac_word... " >&6; }
8483 if test ${ac_cv_path_PYTHONPROG+y}
8484 then :
8485 printf %s "(cached) " >&6
8486 else case e in #(
8487 e) case $PYTHONPROG in
8488 [\\/]* | ?:[\\/]*)
8489 ac_cv_path_PYTHONPROG="$PYTHONPROG" # Let the user override the test with a path.
8490 ;;
8491 *)
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 for as_dir in $PATH
8494 do
8495 IFS=$as_save_IFS
8496 case $as_dir in #(((
8497 '') as_dir=./ ;;
8498 */) ;;
8499 *) as_dir=$as_dir/ ;;
8500 esac
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8503 ac_cv_path_PYTHONPROG="$as_dir$ac_word$ac_exec_ext"
8504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8505 break 2
8506 fi
8507 done
8508 done
8509 IFS=$as_save_IFS
8510
8511 ;;
8512 esac ;;
8513 esac
8514 fi
8515 PYTHONPROG=$ac_cv_path_PYTHONPROG
8516 if test -n "$PYTHONPROG"; then
8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHONPROG" >&5
8518 printf "%s\n" "$PYTHONPROG" >&6; }
8519 else
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 printf "%s\n" "no" >&6; }
8522 fi
8523
8524
8525
8526 # Extract the first word of "uname", so it can be a program name with args.
8527 set dummy uname; ac_word=$2
8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 printf %s "checking for $ac_word... " >&6; }
8530 if test ${ac_cv_path_UNAMEPROG+y}
8531 then :
8532 printf %s "(cached) " >&6
8533 else case e in #(
8534 e) case $UNAMEPROG in
8535 [\\/]* | ?:[\\/]*)
8536 ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path.
8537 ;;
8538 *)
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8541 do
8542 IFS=$as_save_IFS
8543 case $as_dir in #(((
8544 '') as_dir=./ ;;
8545 */) ;;
8546 *) as_dir=$as_dir/ ;;
8547 esac
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8550 ac_cv_path_UNAMEPROG="$as_dir$ac_word$ac_exec_ext"
8551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8552 break 2
8553 fi
8554 done
8555 done
8556 IFS=$as_save_IFS
8557
8558 ;;
8559 esac ;;
8560 esac
8561 fi
8562 UNAMEPROG=$ac_cv_path_UNAMEPROG
8563 if test -n "$UNAMEPROG"; then
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
8565 printf "%s\n" "$UNAMEPROG" >&6; }
8566 else
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 printf "%s\n" "no" >&6; }
8569 fi
8570
8571
8572
8573 printf "%s\n" "#define UNAMEPROG \"$UNAMEPROG\"" >>confdefs.h
8574
8575
8576 MAKE=${MAKE-"make"}
8577 $MAKE -v -f /dev/null 2>/dev/null | $GREP GNU >/dev/null
8578 have_gnu_make=$?
8579
8580
8581 ##
8582 # The Perl function system() is used for running the Net-SNMP regression
8583 # tests. Find out whether that function invokes a POSIX shell, which is
8584 # necessary in order to run the regression tests. When using Windows + MSYS
8585 # + ActiveState Perl, Perl's system() function does invoke Windows' cmd.exe
8586 # which is not a POSIX shell.
8587 ##
8588
8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Perl function system() invokes a POSIX shell" >&5
8590 printf %s "checking whether the Perl function system() invokes a POSIX shell... " >&6; }
8591 if test "x$PERLPROG" != 'x' && test -x "$PERLPROG" && test "x`$PERLPROG -e 'system('\''echo $OSTYPE'\'');'`" != 'x$OSTYPE'; then
8592 PERL_SYSTEM_INVOKES_POSIX_SHELL=yes
8593 else
8594 PERL_SYSTEM_INVOKES_POSIX_SHELL=no
8595 fi
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL_SYSTEM_INVOKES_POSIX_SHELL" >&5
8597 printf "%s\n" "$PERL_SYSTEM_INVOKES_POSIX_SHELL" >&6; }
8598
8599
8600
8601 ##
8602 # Compilation-related program checks:
8603 ##
8604
8605 ac_ext=c
8606 ac_cpp='$CPP $CPPFLAGS'
8607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8610
8611 ac_ext=c
8612 ac_cpp='$CPP $CPPFLAGS'
8613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8616 if test -n "$ac_tool_prefix"; then
8617 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8618 set dummy ${ac_tool_prefix}gcc; ac_word=$2
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 printf %s "checking for $ac_word... " >&6; }
8621 if test ${ac_cv_prog_CC+y}
8622 then :
8623 printf %s "(cached) " >&6
8624 else case e in #(
8625 e) if test -n "$CC"; then
8626 ac_cv_prog_CC="$CC" # Let the user override the test.
8627 else
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in $PATH
8630 do
8631 IFS=$as_save_IFS
8632 case $as_dir in #(((
8633 '') as_dir=./ ;;
8634 */) ;;
8635 *) as_dir=$as_dir/ ;;
8636 esac
8637 for ac_exec_ext in '' $ac_executable_extensions; do
8638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8639 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8641 break 2
8642 fi
8643 done
8644 done
8645 IFS=$as_save_IFS
8646
8647 fi ;;
8648 esac
8649 fi
8650 CC=$ac_cv_prog_CC
8651 if test -n "$CC"; then
8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8653 printf "%s\n" "$CC" >&6; }
8654 else
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 printf "%s\n" "no" >&6; }
8657 fi
8658
8659
8660 fi
8661 if test -z "$ac_cv_prog_CC"; then
8662 ac_ct_CC=$CC
8663 # Extract the first word of "gcc", so it can be a program name with args.
8664 set dummy gcc; ac_word=$2
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666 printf %s "checking for $ac_word... " >&6; }
8667 if test ${ac_cv_prog_ac_ct_CC+y}
8668 then :
8669 printf %s "(cached) " >&6
8670 else case e in #(
8671 e) if test -n "$ac_ct_CC"; then
8672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8673 else
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 for as_dir in $PATH
8676 do
8677 IFS=$as_save_IFS
8678 case $as_dir in #(((
8679 '') as_dir=./ ;;
8680 */) ;;
8681 *) as_dir=$as_dir/ ;;
8682 esac
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8685 ac_cv_prog_ac_ct_CC="gcc"
8686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8687 break 2
8688 fi
8689 done
8690 done
8691 IFS=$as_save_IFS
8692
8693 fi ;;
8694 esac
8695 fi
8696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8697 if test -n "$ac_ct_CC"; then
8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8699 printf "%s\n" "$ac_ct_CC" >&6; }
8700 else
8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 printf "%s\n" "no" >&6; }
8703 fi
8704
8705 if test "x$ac_ct_CC" = x; then
8706 CC=""
8707 else
8708 case $cross_compiling:$ac_tool_warned in
8709 yes:)
8710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8711 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8712 ac_tool_warned=yes ;;
8713 esac
8714 CC=$ac_ct_CC
8715 fi
8716 else
8717 CC="$ac_cv_prog_CC"
8718 fi
8719
8720 if test -z "$CC"; then
8721 if test -n "$ac_tool_prefix"; then
8722 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8723 set dummy ${ac_tool_prefix}cc; ac_word=$2
8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 printf %s "checking for $ac_word... " >&6; }
8726 if test ${ac_cv_prog_CC+y}
8727 then :
8728 printf %s "(cached) " >&6
8729 else case e in #(
8730 e) if test -n "$CC"; then
8731 ac_cv_prog_CC="$CC" # Let the user override the test.
8732 else
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8735 do
8736 IFS=$as_save_IFS
8737 case $as_dir in #(((
8738 '') as_dir=./ ;;
8739 */) ;;
8740 *) as_dir=$as_dir/ ;;
8741 esac
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8744 ac_cv_prog_CC="${ac_tool_prefix}cc"
8745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8746 break 2
8747 fi
8748 done
8749 done
8750 IFS=$as_save_IFS
8751
8752 fi ;;
8753 esac
8754 fi
8755 CC=$ac_cv_prog_CC
8756 if test -n "$CC"; then
8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8758 printf "%s\n" "$CC" >&6; }
8759 else
8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 printf "%s\n" "no" >&6; }
8762 fi
8763
8764
8765 fi
8766 fi
8767 if test -z "$CC"; then
8768 # Extract the first word of "cc", so it can be a program name with args.
8769 set dummy cc; ac_word=$2
8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 printf %s "checking for $ac_word... " >&6; }
8772 if test ${ac_cv_prog_CC+y}
8773 then :
8774 printf %s "(cached) " >&6
8775 else case e in #(
8776 e) if test -n "$CC"; then
8777 ac_cv_prog_CC="$CC" # Let the user override the test.
8778 else
8779 ac_prog_rejected=no
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8782 do
8783 IFS=$as_save_IFS
8784 case $as_dir in #(((
8785 '') as_dir=./ ;;
8786 */) ;;
8787 *) as_dir=$as_dir/ ;;
8788 esac
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8791 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8792 ac_prog_rejected=yes
8793 continue
8794 fi
8795 ac_cv_prog_CC="cc"
8796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8797 break 2
8798 fi
8799 done
8800 done
8801 IFS=$as_save_IFS
8802
8803 if test $ac_prog_rejected = yes; then
8804 # We found a bogon in the path, so make sure we never use it.
8805 set dummy $ac_cv_prog_CC
8806 shift
8807 if test $# != 0; then
8808 # We chose a different compiler from the bogus one.
8809 # However, it has the same basename, so the bogon will be chosen
8810 # first if we set CC to just the basename; use the full file name.
8811 shift
8812 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
8813 fi
8814 fi
8815 fi ;;
8816 esac
8817 fi
8818 CC=$ac_cv_prog_CC
8819 if test -n "$CC"; then
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8821 printf "%s\n" "$CC" >&6; }
8822 else
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 printf "%s\n" "no" >&6; }
8825 fi
8826
8827
8828 fi
8829 if test -z "$CC"; then
8830 if test -n "$ac_tool_prefix"; then
8831 for ac_prog in cl.exe
8832 do
8833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836 printf %s "checking for $ac_word... " >&6; }
8837 if test ${ac_cv_prog_CC+y}
8838 then :
8839 printf %s "(cached) " >&6
8840 else case e in #(
8841 e) if test -n "$CC"; then
8842 ac_cv_prog_CC="$CC" # Let the user override the test.
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8846 do
8847 IFS=$as_save_IFS
8848 case $as_dir in #(((
8849 '') as_dir=./ ;;
8850 */) ;;
8851 *) as_dir=$as_dir/ ;;
8852 esac
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8855 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8857 break 2
8858 fi
8859 done
8860 done
8861 IFS=$as_save_IFS
8862
8863 fi ;;
8864 esac
8865 fi
8866 CC=$ac_cv_prog_CC
8867 if test -n "$CC"; then
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8869 printf "%s\n" "$CC" >&6; }
8870 else
8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 printf "%s\n" "no" >&6; }
8873 fi
8874
8875
8876 test -n "$CC" && break
8877 done
8878 fi
8879 if test -z "$CC"; then
8880 ac_ct_CC=$CC
8881 for ac_prog in cl.exe
8882 do
8883 # Extract the first word of "$ac_prog", so it can be a program name with args.
8884 set dummy $ac_prog; ac_word=$2
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886 printf %s "checking for $ac_word... " >&6; }
8887 if test ${ac_cv_prog_ac_ct_CC+y}
8888 then :
8889 printf %s "(cached) " >&6
8890 else case e in #(
8891 e) if test -n "$ac_ct_CC"; then
8892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8893 else
8894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895 for as_dir in $PATH
8896 do
8897 IFS=$as_save_IFS
8898 case $as_dir in #(((
8899 '') as_dir=./ ;;
8900 */) ;;
8901 *) as_dir=$as_dir/ ;;
8902 esac
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8905 ac_cv_prog_ac_ct_CC="$ac_prog"
8906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8907 break 2
8908 fi
8909 done
8910 done
8911 IFS=$as_save_IFS
8912
8913 fi ;;
8914 esac
8915 fi
8916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8917 if test -n "$ac_ct_CC"; then
8918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8919 printf "%s\n" "$ac_ct_CC" >&6; }
8920 else
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922 printf "%s\n" "no" >&6; }
8923 fi
8924
8925
8926 test -n "$ac_ct_CC" && break
8927 done
8928
8929 if test "x$ac_ct_CC" = x; then
8930 CC=""
8931 else
8932 case $cross_compiling:$ac_tool_warned in
8933 yes:)
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8935 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8936 ac_tool_warned=yes ;;
8937 esac
8938 CC=$ac_ct_CC
8939 fi
8940 fi
8941
8942 fi
8943 if test -z "$CC"; then
8944 if test -n "$ac_tool_prefix"; then
8945 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
8946 set dummy ${ac_tool_prefix}clang; ac_word=$2
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948 printf %s "checking for $ac_word... " >&6; }
8949 if test ${ac_cv_prog_CC+y}
8950 then :
8951 printf %s "(cached) " >&6
8952 else case e in #(
8953 e) if test -n "$CC"; then
8954 ac_cv_prog_CC="$CC" # Let the user override the test.
8955 else
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 for as_dir in $PATH
8958 do
8959 IFS=$as_save_IFS
8960 case $as_dir in #(((
8961 '') as_dir=./ ;;
8962 */) ;;
8963 *) as_dir=$as_dir/ ;;
8964 esac
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8967 ac_cv_prog_CC="${ac_tool_prefix}clang"
8968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8969 break 2
8970 fi
8971 done
8972 done
8973 IFS=$as_save_IFS
8974
8975 fi ;;
8976 esac
8977 fi
8978 CC=$ac_cv_prog_CC
8979 if test -n "$CC"; then
8980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8981 printf "%s\n" "$CC" >&6; }
8982 else
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 printf "%s\n" "no" >&6; }
8985 fi
8986
8987
8988 fi
8989 if test -z "$ac_cv_prog_CC"; then
8990 ac_ct_CC=$CC
8991 # Extract the first word of "clang", so it can be a program name with args.
8992 set dummy clang; ac_word=$2
8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994 printf %s "checking for $ac_word... " >&6; }
8995 if test ${ac_cv_prog_ac_ct_CC+y}
8996 then :
8997 printf %s "(cached) " >&6
8998 else case e in #(
8999 e) if test -n "$ac_ct_CC"; then
9000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9001 else
9002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003 for as_dir in $PATH
9004 do
9005 IFS=$as_save_IFS
9006 case $as_dir in #(((
9007 '') as_dir=./ ;;
9008 */) ;;
9009 *) as_dir=$as_dir/ ;;
9010 esac
9011 for ac_exec_ext in '' $ac_executable_extensions; do
9012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9013 ac_cv_prog_ac_ct_CC="clang"
9014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9015 break 2
9016 fi
9017 done
9018 done
9019 IFS=$as_save_IFS
9020
9021 fi ;;
9022 esac
9023 fi
9024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9025 if test -n "$ac_ct_CC"; then
9026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9027 printf "%s\n" "$ac_ct_CC" >&6; }
9028 else
9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 printf "%s\n" "no" >&6; }
9031 fi
9032
9033 if test "x$ac_ct_CC" = x; then
9034 CC=""
9035 else
9036 case $cross_compiling:$ac_tool_warned in
9037 yes:)
9038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9039 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9040 ac_tool_warned=yes ;;
9041 esac
9042 CC=$ac_ct_CC
9043 fi
9044 else
9045 CC="$ac_cv_prog_CC"
9046 fi
9047
9048 fi
9049
9050
9051 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9052 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9053 as_fn_error $? "no acceptable C compiler found in \$PATH
9054 See 'config.log' for more details" "$LINENO" 5; }
9055
9056 # Provide some information about the compiler.
9057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
9058 set X $ac_compile
9059 ac_compiler=$2
9060 for ac_option in --version -v -V -qversion -version; do
9061 { { ac_try="$ac_compiler $ac_option >&5"
9062 case "(($ac_try" in
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9065 esac
9066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9067 printf "%s\n" "$ac_try_echo"; } >&5
9068 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9069 ac_status=$?
9070 if test -s conftest.err; then
9071 sed '10a\
9072 ... rest of stderr output deleted ...
9073 10q' conftest.err >conftest.er1
9074 cat conftest.er1 >&5
9075 fi
9076 rm -f conftest.er1 conftest.err
9077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9078 test $ac_status = 0; }
9079 done
9080
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
9082 printf %s "checking whether the compiler supports GNU C... " >&6; }
9083 if test ${ac_cv_c_compiler_gnu+y}
9084 then :
9085 printf %s "(cached) " >&6
9086 else case e in #(
9087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089
9090 int
9091 main (void)
9092 {
9093 #ifndef __GNUC__
9094 choke me
9095 #endif
9096
9097 ;
9098 return 0;
9099 }
9100 _ACEOF
9101 if ac_fn_c_try_compile "$LINENO"
9102 then :
9103 ac_compiler_gnu=yes
9104 else case e in #(
9105 e) ac_compiler_gnu=no ;;
9106 esac
9107 fi
9108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
9110 ;;
9111 esac
9112 fi
9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
9114 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
9115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9116
9117 if test $ac_compiler_gnu = yes; then
9118 GCC=yes
9119 else
9120 GCC=
9121 fi
9122 ac_test_CFLAGS=${CFLAGS+y}
9123 ac_save_CFLAGS=$CFLAGS
9124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
9125 printf %s "checking whether $CC accepts -g... " >&6; }
9126 if test ${ac_cv_prog_cc_g+y}
9127 then :
9128 printf %s "(cached) " >&6
9129 else case e in #(
9130 e) ac_save_c_werror_flag=$ac_c_werror_flag
9131 ac_c_werror_flag=yes
9132 ac_cv_prog_cc_g=no
9133 CFLAGS="-g"
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9136
9137 int
9138 main (void)
9139 {
9140
9141 ;
9142 return 0;
9143 }
9144 _ACEOF
9145 if ac_fn_c_try_compile "$LINENO"
9146 then :
9147 ac_cv_prog_cc_g=yes
9148 else case e in #(
9149 e) CFLAGS=""
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9152
9153 int
9154 main (void)
9155 {
9156
9157 ;
9158 return 0;
9159 }
9160 _ACEOF
9161 if ac_fn_c_try_compile "$LINENO"
9162 then :
9163
9164 else case e in #(
9165 e) ac_c_werror_flag=$ac_save_c_werror_flag
9166 CFLAGS="-g"
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169
9170 int
9171 main (void)
9172 {
9173
9174 ;
9175 return 0;
9176 }
9177 _ACEOF
9178 if ac_fn_c_try_compile "$LINENO"
9179 then :
9180 ac_cv_prog_cc_g=yes
9181 fi
9182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9183 esac
9184 fi
9185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9186 esac
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9189 ac_c_werror_flag=$ac_save_c_werror_flag ;;
9190 esac
9191 fi
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
9193 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
9194 if test $ac_test_CFLAGS; then
9195 CFLAGS=$ac_save_CFLAGS
9196 elif test $ac_cv_prog_cc_g = yes; then
9197 if test "$GCC" = yes; then
9198 CFLAGS="-g -O2"
9199 else
9200 CFLAGS="-g"
9201 fi
9202 else
9203 if test "$GCC" = yes; then
9204 CFLAGS="-O2"
9205 else
9206 CFLAGS=
9207 fi
9208 fi
9209 ac_prog_cc_stdc=no
9210 if test x$ac_prog_cc_stdc = xno
9211 then :
9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
9213 printf %s "checking for $CC option to enable C11 features... " >&6; }
9214 if test ${ac_cv_prog_cc_c11+y}
9215 then :
9216 printf %s "(cached) " >&6
9217 else case e in #(
9218 e) ac_cv_prog_cc_c11=no
9219 ac_save_CC=$CC
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 $ac_c_conftest_c11_program
9223 _ACEOF
9224 for ac_arg in '' -std=gnu11
9225 do
9226 CC="$ac_save_CC $ac_arg"
9227 if ac_fn_c_try_compile "$LINENO"
9228 then :
9229 ac_cv_prog_cc_c11=$ac_arg
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext conftest.beam
9232 test "x$ac_cv_prog_cc_c11" != "xno" && break
9233 done
9234 rm -f conftest.$ac_ext
9235 CC=$ac_save_CC ;;
9236 esac
9237 fi
9238
9239 if test "x$ac_cv_prog_cc_c11" = xno
9240 then :
9241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9242 printf "%s\n" "unsupported" >&6; }
9243 else case e in #(
9244 e) if test "x$ac_cv_prog_cc_c11" = x
9245 then :
9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9247 printf "%s\n" "none needed" >&6; }
9248 else case e in #(
9249 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
9250 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
9251 CC="$CC $ac_cv_prog_cc_c11" ;;
9252 esac
9253 fi
9254 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
9255 ac_prog_cc_stdc=c11 ;;
9256 esac
9257 fi
9258 fi
9259 if test x$ac_prog_cc_stdc = xno
9260 then :
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
9262 printf %s "checking for $CC option to enable C99 features... " >&6; }
9263 if test ${ac_cv_prog_cc_c99+y}
9264 then :
9265 printf %s "(cached) " >&6
9266 else case e in #(
9267 e) ac_cv_prog_cc_c99=no
9268 ac_save_CC=$CC
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271 $ac_c_conftest_c99_program
9272 _ACEOF
9273 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
9274 do
9275 CC="$ac_save_CC $ac_arg"
9276 if ac_fn_c_try_compile "$LINENO"
9277 then :
9278 ac_cv_prog_cc_c99=$ac_arg
9279 fi
9280 rm -f core conftest.err conftest.$ac_objext conftest.beam
9281 test "x$ac_cv_prog_cc_c99" != "xno" && break
9282 done
9283 rm -f conftest.$ac_ext
9284 CC=$ac_save_CC ;;
9285 esac
9286 fi
9287
9288 if test "x$ac_cv_prog_cc_c99" = xno
9289 then :
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9291 printf "%s\n" "unsupported" >&6; }
9292 else case e in #(
9293 e) if test "x$ac_cv_prog_cc_c99" = x
9294 then :
9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9296 printf "%s\n" "none needed" >&6; }
9297 else case e in #(
9298 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
9299 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
9300 CC="$CC $ac_cv_prog_cc_c99" ;;
9301 esac
9302 fi
9303 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
9304 ac_prog_cc_stdc=c99 ;;
9305 esac
9306 fi
9307 fi
9308 if test x$ac_prog_cc_stdc = xno
9309 then :
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
9311 printf %s "checking for $CC option to enable C89 features... " >&6; }
9312 if test ${ac_cv_prog_cc_c89+y}
9313 then :
9314 printf %s "(cached) " >&6
9315 else case e in #(
9316 e) ac_cv_prog_cc_c89=no
9317 ac_save_CC=$CC
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 $ac_c_conftest_c89_program
9321 _ACEOF
9322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9323 do
9324 CC="$ac_save_CC $ac_arg"
9325 if ac_fn_c_try_compile "$LINENO"
9326 then :
9327 ac_cv_prog_cc_c89=$ac_arg
9328 fi
9329 rm -f core conftest.err conftest.$ac_objext conftest.beam
9330 test "x$ac_cv_prog_cc_c89" != "xno" && break
9331 done
9332 rm -f conftest.$ac_ext
9333 CC=$ac_save_CC ;;
9334 esac
9335 fi
9336
9337 if test "x$ac_cv_prog_cc_c89" = xno
9338 then :
9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9340 printf "%s\n" "unsupported" >&6; }
9341 else case e in #(
9342 e) if test "x$ac_cv_prog_cc_c89" = x
9343 then :
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9345 printf "%s\n" "none needed" >&6; }
9346 else case e in #(
9347 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9348 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
9349 CC="$CC $ac_cv_prog_cc_c89" ;;
9350 esac
9351 fi
9352 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
9353 ac_prog_cc_stdc=c89 ;;
9354 esac
9355 fi
9356 fi
9357
9358 ac_ext=c
9359 ac_cpp='$CPP $CPPFLAGS'
9360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9363
9364 ac_ext=c
9365 ac_cpp='$CPP $CPPFLAGS'
9366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9370 printf %s "checking how to run the C preprocessor... " >&6; }
9371 # On Suns, sometimes $CPP names a directory.
9372 if test -n "$CPP" && test -d "$CPP"; then
9373 CPP=
9374 fi
9375 if test -z "$CPP"; then
9376 if test ${ac_cv_prog_CPP+y}
9377 then :
9378 printf %s "(cached) " >&6
9379 else case e in #(
9380 e) # Double quotes because $CC needs to be expanded
9381 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
9382 do
9383 ac_preproc_ok=false
9384 for ac_c_preproc_warn_flag in '' yes
9385 do
9386 # Use a header file that comes with gcc, so configuring glibc
9387 # with a fresh cross-compiler works.
9388 # On the NeXT, cc -E runs the code through the compiler's parser,
9389 # not just through cpp. "Syntax error" is here to catch this case.
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9392 #include <limits.h>
9393 Syntax error
9394 _ACEOF
9395 if ac_fn_c_try_cpp "$LINENO"
9396 then :
9397
9398 else case e in #(
9399 e) # Broken: fails on valid input.
9400 continue ;;
9401 esac
9402 fi
9403 rm -f conftest.err conftest.i conftest.$ac_ext
9404
9405 # OK, works on sane cases. Now check whether nonexistent headers
9406 # can be detected and how.
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 #include <ac_nonexistent.h>
9410 _ACEOF
9411 if ac_fn_c_try_cpp "$LINENO"
9412 then :
9413 # Broken: success on invalid input.
9414 continue
9415 else case e in #(
9416 e) # Passes both tests.
9417 ac_preproc_ok=:
9418 break ;;
9419 esac
9420 fi
9421 rm -f conftest.err conftest.i conftest.$ac_ext
9422
9423 done
9424 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9425 rm -f conftest.i conftest.err conftest.$ac_ext
9426 if $ac_preproc_ok
9427 then :
9428 break
9429 fi
9430
9431 done
9432 ac_cv_prog_CPP=$CPP
9433 ;;
9434 esac
9435 fi
9436 CPP=$ac_cv_prog_CPP
9437 else
9438 ac_cv_prog_CPP=$CPP
9439 fi
9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9441 printf "%s\n" "$CPP" >&6; }
9442 ac_preproc_ok=false
9443 for ac_c_preproc_warn_flag in '' yes
9444 do
9445 # Use a header file that comes with gcc, so configuring glibc
9446 # with a fresh cross-compiler works.
9447 # On the NeXT, cc -E runs the code through the compiler's parser,
9448 # not just through cpp. "Syntax error" is here to catch this case.
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9451 #include <limits.h>
9452 Syntax error
9453 _ACEOF
9454 if ac_fn_c_try_cpp "$LINENO"
9455 then :
9456
9457 else case e in #(
9458 e) # Broken: fails on valid input.
9459 continue ;;
9460 esac
9461 fi
9462 rm -f conftest.err conftest.i conftest.$ac_ext
9463
9464 # OK, works on sane cases. Now check whether nonexistent headers
9465 # can be detected and how.
9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9468 #include <ac_nonexistent.h>
9469 _ACEOF
9470 if ac_fn_c_try_cpp "$LINENO"
9471 then :
9472 # Broken: success on invalid input.
9473 continue
9474 else case e in #(
9475 e) # Passes both tests.
9476 ac_preproc_ok=:
9477 break ;;
9478 esac
9479 fi
9480 rm -f conftest.err conftest.i conftest.$ac_ext
9481
9482 done
9483 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9484 rm -f conftest.i conftest.err conftest.$ac_ext
9485 if $ac_preproc_ok
9486 then :
9487
9488 else case e in #(
9489 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9490 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9491 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9492 See 'config.log' for more details" "$LINENO" 5; } ;;
9493 esac
9494 fi
9495
9496 ac_ext=c
9497 ac_cpp='$CPP $CPPFLAGS'
9498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9501
9502 LINKCC=${LINKCC-"$CC"}
9503
9504
9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9506 printf %s "checking for an ANSI C-conforming const... " >&6; }
9507 if test ${ac_cv_c_const+y}
9508 then :
9509 printf %s "(cached) " >&6
9510 else case e in #(
9511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h. */
9513
9514 int
9515 main (void)
9516 {
9517
9518 #ifndef __cplusplus
9519 /* Ultrix mips cc rejects this sort of thing. */
9520 typedef int charset[2];
9521 const charset cs = { 0, 0 };
9522 /* SunOS 4.1.1 cc rejects this. */
9523 char const *const *pcpcc;
9524 char **ppc;
9525 /* NEC SVR4.0.2 mips cc rejects this. */
9526 struct point {int x, y;};
9527 static struct point const zero = {0,0};
9528 /* IBM XL C 1.02.0.0 rejects this.
9529 It does not let you subtract one const X* pointer from another in
9530 an arm of an if-expression whose if-part is not a constant
9531 expression */
9532 const char *g = "string";
9533 pcpcc = &g + (g ? g-g : 0);
9534 /* HPUX 7.0 cc rejects these. */
9535 ++pcpcc;
9536 ppc = (char**) pcpcc;
9537 pcpcc = (char const *const *) ppc;
9538 { /* SCO 3.2v4 cc rejects this sort of thing. */
9539 char tx;
9540 char *t = &tx;
9541 char const *s = 0 ? (char *) 0 : (char const *) 0;
9542
9543 *t++ = 0;
9544 if (s) return 0;
9545 }
9546 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9547 int x[] = {25, 17};
9548 const int *foo = &x[0];
9549 ++foo;
9550 }
9551 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9552 typedef const int *iptr;
9553 iptr p = 0;
9554 ++p;
9555 }
9556 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
9557 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9558 struct s { int j; const int *ap[3]; } bx;
9559 struct s *b = &bx; b->j = 5;
9560 }
9561 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9562 const int foo = 10;
9563 if (!foo) return 0;
9564 }
9565 return !cs[0] && !zero.x;
9566 #endif
9567
9568 ;
9569 return 0;
9570 }
9571 _ACEOF
9572 if ac_fn_c_try_compile "$LINENO"
9573 then :
9574 ac_cv_c_const=yes
9575 else case e in #(
9576 e) ac_cv_c_const=no ;;
9577 esac
9578 fi
9579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9580 esac
9581 fi
9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9583 printf "%s\n" "$ac_cv_c_const" >&6; }
9584 if test $ac_cv_c_const = no; then
9585
9586 printf "%s\n" "#define const /**/" >>confdefs.h
9587
9588 fi
9589
9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9591 printf %s "checking for inline... " >&6; }
9592 if test ${ac_cv_c_inline+y}
9593 then :
9594 printf %s "(cached) " >&6
9595 else case e in #(
9596 e) ac_cv_c_inline=no
9597 for ac_kw in inline __inline__ __inline; do
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9600 #ifndef __cplusplus
9601 typedef int foo_t;
9602 static $ac_kw foo_t static_foo (void) {return 0; }
9603 $ac_kw foo_t foo (void) {return 0; }
9604 #endif
9605
9606 _ACEOF
9607 if ac_fn_c_try_compile "$LINENO"
9608 then :
9609 ac_cv_c_inline=$ac_kw
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9612 test "$ac_cv_c_inline" != no && break
9613 done
9614 ;;
9615 esac
9616 fi
9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9618 printf "%s\n" "$ac_cv_c_inline" >&6; }
9619
9620 case $ac_cv_c_inline in
9621 inline | yes) ;;
9622 *)
9623 case $ac_cv_c_inline in
9624 no) ac_val=;;
9625 *) ac_val=$ac_cv_c_inline;;
9626 esac
9627 cat >>confdefs.h <<_ACEOF
9628 #ifndef __cplusplus
9629 #define inline $ac_val
9630 #endif
9631 _ACEOF
9632 ;;
9633 esac
9634
9635
9636 # libtool stuff for shared/static libraries.
9637 #
9638
9639
9640 case `pwd` in
9641 *\ * | *\ *)
9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9643 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9644 esac
9645
9646
9647
9648 macro_version='2.4.6'
9649 macro_revision='2.4.6'
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664 ltmain=$ac_aux_dir/ltmain.sh
9665
9666
9667
9668 # Make sure we can run config.sub.
9669 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
9670 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
9671
9672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
9673 printf %s "checking build system type... " >&6; }
9674 if test ${ac_cv_build+y}
9675 then :
9676 printf %s "(cached) " >&6
9677 else case e in #(
9678 e) ac_build_alias=$build_alias
9679 test "x$ac_build_alias" = x &&
9680 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
9681 test "x$ac_build_alias" = x &&
9682 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
9683 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
9684 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
9685 ;;
9686 esac
9687 fi
9688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
9689 printf "%s\n" "$ac_cv_build" >&6; }
9690 case $ac_cv_build in
9691 *-*-*) ;;
9692 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
9693 esac
9694 build=$ac_cv_build
9695 ac_save_IFS=$IFS; IFS='-'
9696 set x $ac_cv_build
9697 shift
9698 build_cpu=$1
9699 build_vendor=$2
9700 shift; shift
9701 # Remember, the first character of IFS is used to create $*,
9702 # except with old shells:
9703 build_os=$*
9704 IFS=$ac_save_IFS
9705 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
9706
9707
9708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
9709 printf %s "checking host system type... " >&6; }
9710 if test ${ac_cv_host+y}
9711 then :
9712 printf %s "(cached) " >&6
9713 else case e in #(
9714 e) if test "x$host_alias" = x; then
9715 ac_cv_host=$ac_cv_build
9716 else
9717 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
9718 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
9719 fi
9720 ;;
9721 esac
9722 fi
9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
9724 printf "%s\n" "$ac_cv_host" >&6; }
9725 case $ac_cv_host in
9726 *-*-*) ;;
9727 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
9728 esac
9729 host=$ac_cv_host
9730 ac_save_IFS=$IFS; IFS='-'
9731 set x $ac_cv_host
9732 shift
9733 host_cpu=$1
9734 host_vendor=$2
9735 shift; shift
9736 # Remember, the first character of IFS is used to create $*,
9737 # except with old shells:
9738 host_os=$*
9739 IFS=$ac_save_IFS
9740 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9741
9742
9743 # Backslashify metacharacters that are still active within
9744 # double-quoted strings.
9745 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9746
9747 # Same as above, but do not quote variable references.
9748 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9749
9750 # Sed substitution to delay expansion of an escaped shell variable in a
9751 # double_quote_subst'ed string.
9752 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9753
9754 # Sed substitution to delay expansion of an escaped single quote.
9755 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9756
9757 # Sed substitution to avoid accidental globbing in evaled expressions
9758 no_glob_subst='s/\*/\\\*/g'
9759
9760 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9761 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9762 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9763
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9765 printf %s "checking how to print strings... " >&6; }
9766 # Test print first, because it will be a builtin if present.
9767 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9768 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9769 ECHO='print -r --'
9770 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9771 ECHO='printf %s\n'
9772 else
9773 # Use this function as a fallback that always works.
9774 func_fallback_echo ()
9775 {
9776 eval 'cat <<_LTECHO_EOF
9777 $1
9778 _LTECHO_EOF'
9779 }
9780 ECHO='func_fallback_echo'
9781 fi
9782
9783 # func_echo_all arg...
9784 # Invoke $ECHO with all args, space-separated.
9785 func_echo_all ()
9786 {
9787 $ECHO ""
9788 }
9789
9790 case $ECHO in
9791 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9792 printf "%s\n" "printf" >&6; } ;;
9793 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9794 printf "%s\n" "print -r" >&6; } ;;
9795 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9796 printf "%s\n" "cat" >&6; } ;;
9797 esac
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9813 printf %s "checking for a sed that does not truncate output... " >&6; }
9814 if test ${ac_cv_path_SED+y}
9815 then :
9816 printf %s "(cached) " >&6
9817 else case e in #(
9818 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9819 for ac_i in 1 2 3 4 5 6 7; do
9820 ac_script="$ac_script$as_nl$ac_script"
9821 done
9822 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9823 { ac_script=; unset ac_script;}
9824 if test -z "$SED"; then
9825 ac_path_SED_found=false
9826 # Loop through the user's path and test for each of PROGNAME-LIST
9827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 for as_dir in $PATH
9829 do
9830 IFS=$as_save_IFS
9831 case $as_dir in #(((
9832 '') as_dir=./ ;;
9833 */) ;;
9834 *) as_dir=$as_dir/ ;;
9835 esac
9836 for ac_prog in sed gsed
9837 do
9838 for ac_exec_ext in '' $ac_executable_extensions; do
9839 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
9840 as_fn_executable_p "$ac_path_SED" || continue
9841 # Check for GNU ac_path_SED and select it if it is found.
9842 # Check for GNU $ac_path_SED
9843 case `"$ac_path_SED" --version 2>&1` in #(
9844 *GNU*)
9845 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9846 #(
9847 *)
9848 ac_count=0
9849 printf %s 0123456789 >"conftest.in"
9850 while :
9851 do
9852 cat "conftest.in" "conftest.in" >"conftest.tmp"
9853 mv "conftest.tmp" "conftest.in"
9854 cp "conftest.in" "conftest.nl"
9855 printf "%s\n" '' >> "conftest.nl"
9856 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9858 as_fn_arith $ac_count + 1 && ac_count=$as_val
9859 if test $ac_count -gt ${ac_path_SED_max-0}; then
9860 # Best one so far, save it but keep looking for a better one
9861 ac_cv_path_SED="$ac_path_SED"
9862 ac_path_SED_max=$ac_count
9863 fi
9864 # 10*(2^10) chars as input seems more than enough
9865 test $ac_count -gt 10 && break
9866 done
9867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9868 esac
9869
9870 $ac_path_SED_found && break 3
9871 done
9872 done
9873 done
9874 IFS=$as_save_IFS
9875 if test -z "$ac_cv_path_SED"; then
9876 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9877 fi
9878 else
9879 ac_cv_path_SED=$SED
9880 fi
9881 ;;
9882 esac
9883 fi
9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9885 printf "%s\n" "$ac_cv_path_SED" >&6; }
9886 SED="$ac_cv_path_SED"
9887 rm -f conftest.sed
9888
9889 test -z "$SED" && SED=sed
9890 Xsed="$SED -e 1s/^X//"
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9903 printf %s "checking for fgrep... " >&6; }
9904 if test ${ac_cv_path_FGREP+y}
9905 then :
9906 printf %s "(cached) " >&6
9907 else case e in #(
9908 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9909 then ac_cv_path_FGREP="$GREP -F"
9910 else
9911 if test -z "$FGREP"; then
9912 ac_path_FGREP_found=false
9913 # Loop through the user's path and test for each of PROGNAME-LIST
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9916 do
9917 IFS=$as_save_IFS
9918 case $as_dir in #(((
9919 '') as_dir=./ ;;
9920 */) ;;
9921 *) as_dir=$as_dir/ ;;
9922 esac
9923 for ac_prog in fgrep
9924 do
9925 for ac_exec_ext in '' $ac_executable_extensions; do
9926 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
9927 as_fn_executable_p "$ac_path_FGREP" || continue
9928 # Check for GNU ac_path_FGREP and select it if it is found.
9929 # Check for GNU $ac_path_FGREP
9930 case `"$ac_path_FGREP" --version 2>&1` in #(
9931 *GNU*)
9932 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9933 #(
9934 *)
9935 ac_count=0
9936 printf %s 0123456789 >"conftest.in"
9937 while :
9938 do
9939 cat "conftest.in" "conftest.in" >"conftest.tmp"
9940 mv "conftest.tmp" "conftest.in"
9941 cp "conftest.in" "conftest.nl"
9942 printf "%s\n" 'FGREP' >> "conftest.nl"
9943 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9945 as_fn_arith $ac_count + 1 && ac_count=$as_val
9946 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9947 # Best one so far, save it but keep looking for a better one
9948 ac_cv_path_FGREP="$ac_path_FGREP"
9949 ac_path_FGREP_max=$ac_count
9950 fi
9951 # 10*(2^10) chars as input seems more than enough
9952 test $ac_count -gt 10 && break
9953 done
9954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9955 esac
9956
9957 $ac_path_FGREP_found && break 3
9958 done
9959 done
9960 done
9961 IFS=$as_save_IFS
9962 if test -z "$ac_cv_path_FGREP"; then
9963 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9964 fi
9965 else
9966 ac_cv_path_FGREP=$FGREP
9967 fi
9968
9969 fi ;;
9970 esac
9971 fi
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9973 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
9974 FGREP="$ac_cv_path_FGREP"
9975
9976
9977 test -z "$GREP" && GREP=grep
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997 # Check whether --with-gnu-ld was given.
9998 if test ${with_gnu_ld+y}
9999 then :
10000 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
10001 else case e in #(
10002 e) with_gnu_ld=no ;;
10003 esac
10004 fi
10005
10006 ac_prog=ld
10007 if test yes = "$GCC"; then
10008 # Check if gcc -print-prog-name=ld gives a path.
10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10010 printf %s "checking for ld used by $CC... " >&6; }
10011 case $host in
10012 *-*-mingw*)
10013 # gcc leaves a trailing carriage return, which upsets mingw
10014 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10015 *)
10016 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10017 esac
10018 case $ac_prog in
10019 # Accept absolute paths.
10020 [\\/]* | ?:[\\/]*)
10021 re_direlt='/[^/][^/]*/\.\./'
10022 # Canonicalize the pathname of ld
10023 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10024 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10025 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10026 done
10027 test -z "$LD" && LD=$ac_prog
10028 ;;
10029 "")
10030 # If it fails, then pretend we aren't using GCC.
10031 ac_prog=ld
10032 ;;
10033 *)
10034 # If it is relative, then search for the first ld in PATH.
10035 with_gnu_ld=unknown
10036 ;;
10037 esac
10038 elif test yes = "$with_gnu_ld"; then
10039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10040 printf %s "checking for GNU ld... " >&6; }
10041 else
10042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10043 printf %s "checking for non-GNU ld... " >&6; }
10044 fi
10045 if test ${lt_cv_path_LD+y}
10046 then :
10047 printf %s "(cached) " >&6
10048 else case e in #(
10049 e) if test -z "$LD"; then
10050 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10051 for ac_dir in $PATH; do
10052 IFS=$lt_save_ifs
10053 test -z "$ac_dir" && ac_dir=.
10054 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10055 lt_cv_path_LD=$ac_dir/$ac_prog
10056 # Check to see if the program is GNU ld. I'd rather use --version,
10057 # but apparently some variants of GNU ld only accept -v.
10058 # Break only if it was the GNU/non-GNU ld that we prefer.
10059 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10060 *GNU* | *'with BFD'*)
10061 test no != "$with_gnu_ld" && break
10062 ;;
10063 *)
10064 test yes != "$with_gnu_ld" && break
10065 ;;
10066 esac
10067 fi
10068 done
10069 IFS=$lt_save_ifs
10070 else
10071 lt_cv_path_LD=$LD # Let the user override the test with a path.
10072 fi ;;
10073 esac
10074 fi
10075
10076 LD=$lt_cv_path_LD
10077 if test -n "$LD"; then
10078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10079 printf "%s\n" "$LD" >&6; }
10080 else
10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 printf "%s\n" "no" >&6; }
10083 fi
10084 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10086 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
10087 if test ${lt_cv_prog_gnu_ld+y}
10088 then :
10089 printf %s "(cached) " >&6
10090 else case e in #(
10091 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
10092 case `$LD -v 2>&1 </dev/null` in
10093 *GNU* | *'with BFD'*)
10094 lt_cv_prog_gnu_ld=yes
10095 ;;
10096 *)
10097 lt_cv_prog_gnu_ld=no
10098 ;;
10099 esac ;;
10100 esac
10101 fi
10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10103 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
10104 with_gnu_ld=$lt_cv_prog_gnu_ld
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10115 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10116 if test ${lt_cv_path_NM+y}
10117 then :
10118 printf %s "(cached) " >&6
10119 else case e in #(
10120 e) if test -n "$NM"; then
10121 # Let the user override the test.
10122 lt_cv_path_NM=$NM
10123 else
10124 lt_nm_to_check=${ac_tool_prefix}nm
10125 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10126 lt_nm_to_check="$lt_nm_to_check nm"
10127 fi
10128 for lt_tmp_nm in $lt_nm_to_check; do
10129 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10130 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10131 IFS=$lt_save_ifs
10132 test -z "$ac_dir" && ac_dir=.
10133 tmp_nm=$ac_dir/$lt_tmp_nm
10134 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
10135 # Check to see if the nm accepts a BSD-compat flag.
10136 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
10137 # nm: unknown option "B" ignored
10138 # Tru64's nm complains that /dev/null is an invalid object file
10139 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
10140 case $build_os in
10141 mingw*) lt_bad_file=conftest.nm/nofile ;;
10142 *) lt_bad_file=/dev/null ;;
10143 esac
10144 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
10145 *$lt_bad_file* | *'Invalid file or object type'*)
10146 lt_cv_path_NM="$tmp_nm -B"
10147 break 2
10148 ;;
10149 *)
10150 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10151 */dev/null*)
10152 lt_cv_path_NM="$tmp_nm -p"
10153 break 2
10154 ;;
10155 *)
10156 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10157 continue # so that we can try to find one that supports BSD flags
10158 ;;
10159 esac
10160 ;;
10161 esac
10162 fi
10163 done
10164 IFS=$lt_save_ifs
10165 done
10166 : ${lt_cv_path_NM=no}
10167 fi ;;
10168 esac
10169 fi
10170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10171 printf "%s\n" "$lt_cv_path_NM" >&6; }
10172 if test no != "$lt_cv_path_NM"; then
10173 NM=$lt_cv_path_NM
10174 else
10175 # Didn't find any BSD compatible name lister, look for dumpbin.
10176 if test -n "$DUMPBIN"; then :
10177 # Let the user override the test.
10178 else
10179 if test -n "$ac_tool_prefix"; then
10180 for ac_prog in dumpbin "link -dump"
10181 do
10182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185 printf %s "checking for $ac_word... " >&6; }
10186 if test ${ac_cv_prog_DUMPBIN+y}
10187 then :
10188 printf %s "(cached) " >&6
10189 else case e in #(
10190 e) if test -n "$DUMPBIN"; then
10191 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10192 else
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10195 do
10196 IFS=$as_save_IFS
10197 case $as_dir in #(((
10198 '') as_dir=./ ;;
10199 */) ;;
10200 *) as_dir=$as_dir/ ;;
10201 esac
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10204 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10206 break 2
10207 fi
10208 done
10209 done
10210 IFS=$as_save_IFS
10211
10212 fi ;;
10213 esac
10214 fi
10215 DUMPBIN=$ac_cv_prog_DUMPBIN
10216 if test -n "$DUMPBIN"; then
10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10218 printf "%s\n" "$DUMPBIN" >&6; }
10219 else
10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 printf "%s\n" "no" >&6; }
10222 fi
10223
10224
10225 test -n "$DUMPBIN" && break
10226 done
10227 fi
10228 if test -z "$DUMPBIN"; then
10229 ac_ct_DUMPBIN=$DUMPBIN
10230 for ac_prog in dumpbin "link -dump"
10231 do
10232 # Extract the first word of "$ac_prog", so it can be a program name with args.
10233 set dummy $ac_prog; ac_word=$2
10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10235 printf %s "checking for $ac_word... " >&6; }
10236 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
10237 then :
10238 printf %s "(cached) " >&6
10239 else case e in #(
10240 e) if test -n "$ac_ct_DUMPBIN"; then
10241 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10242 else
10243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244 for as_dir in $PATH
10245 do
10246 IFS=$as_save_IFS
10247 case $as_dir in #(((
10248 '') as_dir=./ ;;
10249 */) ;;
10250 *) as_dir=$as_dir/ ;;
10251 esac
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10254 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10256 break 2
10257 fi
10258 done
10259 done
10260 IFS=$as_save_IFS
10261
10262 fi ;;
10263 esac
10264 fi
10265 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10266 if test -n "$ac_ct_DUMPBIN"; then
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10268 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
10269 else
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 printf "%s\n" "no" >&6; }
10272 fi
10273
10274
10275 test -n "$ac_ct_DUMPBIN" && break
10276 done
10277
10278 if test "x$ac_ct_DUMPBIN" = x; then
10279 DUMPBIN=":"
10280 else
10281 case $cross_compiling:$ac_tool_warned in
10282 yes:)
10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10284 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10285 ac_tool_warned=yes ;;
10286 esac
10287 DUMPBIN=$ac_ct_DUMPBIN
10288 fi
10289 fi
10290
10291 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
10292 *COFF*)
10293 DUMPBIN="$DUMPBIN -symbols -headers"
10294 ;;
10295 *)
10296 DUMPBIN=:
10297 ;;
10298 esac
10299 fi
10300
10301 if test : != "$DUMPBIN"; then
10302 NM=$DUMPBIN
10303 fi
10304 fi
10305 test -z "$NM" && NM=nm
10306
10307
10308
10309
10310
10311
10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10313 printf %s "checking the name lister ($NM) interface... " >&6; }
10314 if test ${lt_cv_nm_interface+y}
10315 then :
10316 printf %s "(cached) " >&6
10317 else case e in #(
10318 e) lt_cv_nm_interface="BSD nm"
10319 echo "int some_variable = 0;" > conftest.$ac_ext
10320 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
10321 (eval "$ac_compile" 2>conftest.err)
10322 cat conftest.err >&5
10323 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10324 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10325 cat conftest.err >&5
10326 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
10327 cat conftest.out >&5
10328 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10329 lt_cv_nm_interface="MS dumpbin"
10330 fi
10331 rm -f conftest* ;;
10332 esac
10333 fi
10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10335 printf "%s\n" "$lt_cv_nm_interface" >&6; }
10336
10337 # find the maximum length of command line arguments
10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10339 printf %s "checking the maximum length of command line arguments... " >&6; }
10340 if test ${lt_cv_sys_max_cmd_len+y}
10341 then :
10342 printf %s "(cached) " >&6
10343 else case e in #(
10344 e) i=0
10345 teststring=ABCD
10346
10347 case $build_os in
10348 msdosdjgpp*)
10349 # On DJGPP, this test can blow up pretty badly due to problems in libc
10350 # (any single argument exceeding 2000 bytes causes a buffer overrun
10351 # during glob expansion). Even if it were fixed, the result of this
10352 # check would be larger than it should be.
10353 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10354 ;;
10355
10356 gnu*)
10357 # Under GNU Hurd, this test is not required because there is
10358 # no limit to the length of command line arguments.
10359 # Libtool will interpret -1 as no limit whatsoever
10360 lt_cv_sys_max_cmd_len=-1;
10361 ;;
10362
10363 cygwin* | mingw* | cegcc*)
10364 # On Win9x/ME, this test blows up -- it succeeds, but takes
10365 # about 5 minutes as the teststring grows exponentially.
10366 # Worse, since 9x/ME are not pre-emptively multitasking,
10367 # you end up with a "frozen" computer, even though with patience
10368 # the test eventually succeeds (with a max line length of 256k).
10369 # Instead, let's just punt: use the minimum linelength reported by
10370 # all of the supported platforms: 8192 (on NT/2K/XP).
10371 lt_cv_sys_max_cmd_len=8192;
10372 ;;
10373
10374 mint*)
10375 # On MiNT this can take a long time and run out of memory.
10376 lt_cv_sys_max_cmd_len=8192;
10377 ;;
10378
10379 amigaos*)
10380 # On AmigaOS with pdksh, this test takes hours, literally.
10381 # So we just punt and use a minimum line length of 8192.
10382 lt_cv_sys_max_cmd_len=8192;
10383 ;;
10384
10385 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
10386 # This has been around since 386BSD, at least. Likely further.
10387 if test -x /sbin/sysctl; then
10388 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10389 elif test -x /usr/sbin/sysctl; then
10390 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10391 else
10392 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10393 fi
10394 # And add a safety zone
10395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10397 ;;
10398
10399 interix*)
10400 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10401 lt_cv_sys_max_cmd_len=196608
10402 ;;
10403
10404 os2*)
10405 # The test takes a long time on OS/2.
10406 lt_cv_sys_max_cmd_len=8192
10407 ;;
10408
10409 osf*)
10410 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10411 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10412 # nice to cause kernel panics so lets avoid the loop below.
10413 # First set a reasonable default.
10414 lt_cv_sys_max_cmd_len=16384
10415 #
10416 if test -x /sbin/sysconfig; then
10417 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10418 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10419 esac
10420 fi
10421 ;;
10422 sco3.2v5*)
10423 lt_cv_sys_max_cmd_len=102400
10424 ;;
10425 sysv5* | sco5v6* | sysv4.2uw2*)
10426 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10427 if test -n "$kargmax"; then
10428 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10429 else
10430 lt_cv_sys_max_cmd_len=32768
10431 fi
10432 ;;
10433 *)
10434 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10435 if test -n "$lt_cv_sys_max_cmd_len" && \
10436 test undefined != "$lt_cv_sys_max_cmd_len"; then
10437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10439 else
10440 # Make teststring a little bigger before we do anything with it.
10441 # a 1K string should be a reasonable start.
10442 for i in 1 2 3 4 5 6 7 8; do
10443 teststring=$teststring$teststring
10444 done
10445 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10446 # If test is not a shell built-in, we'll probably end up computing a
10447 # maximum length that is only half of the actual maximum length, but
10448 # we can't tell.
10449 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
10450 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10451 test 17 != "$i" # 1/2 MB should be enough
10452 do
10453 i=`expr $i + 1`
10454 teststring=$teststring$teststring
10455 done
10456 # Only check the string length outside the loop.
10457 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10458 teststring=
10459 # Add a significant safety factor because C++ compilers can tack on
10460 # massive amounts of additional arguments before passing them to the
10461 # linker. It appears as though 1/2 is a usable value.
10462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10463 fi
10464 ;;
10465 esac
10466 ;;
10467 esac
10468 fi
10469
10470 if test -n "$lt_cv_sys_max_cmd_len"; then
10471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10472 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
10473 else
10474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
10475 printf "%s\n" "none" >&6; }
10476 fi
10477 max_cmd_len=$lt_cv_sys_max_cmd_len
10478
10479
10480
10481
10482
10483
10484 : ${CP="cp -f"}
10485 : ${MV="mv -f"}
10486 : ${RM="rm -f"}
10487
10488 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10489 lt_unset=unset
10490 else
10491 lt_unset=false
10492 fi
10493
10494
10495
10496
10497
10498 # test EBCDIC or ASCII
10499 case `echo X|tr X '\101'` in
10500 A) # ASCII based system
10501 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10502 lt_SP2NL='tr \040 \012'
10503 lt_NL2SP='tr \015\012 \040\040'
10504 ;;
10505 *) # EBCDIC based system
10506 lt_SP2NL='tr \100 \n'
10507 lt_NL2SP='tr \r\n \100\100'
10508 ;;
10509 esac
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10520 printf %s "checking how to convert $build file names to $host format... " >&6; }
10521 if test ${lt_cv_to_host_file_cmd+y}
10522 then :
10523 printf %s "(cached) " >&6
10524 else case e in #(
10525 e) case $host in
10526 *-*-mingw* )
10527 case $build in
10528 *-*-mingw* ) # actually msys
10529 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10530 ;;
10531 *-*-cygwin* )
10532 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10533 ;;
10534 * ) # otherwise, assume *nix
10535 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10536 ;;
10537 esac
10538 ;;
10539 *-*-cygwin* )
10540 case $build in
10541 *-*-mingw* ) # actually msys
10542 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10543 ;;
10544 *-*-cygwin* )
10545 lt_cv_to_host_file_cmd=func_convert_file_noop
10546 ;;
10547 * ) # otherwise, assume *nix
10548 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10549 ;;
10550 esac
10551 ;;
10552 * ) # unhandled hosts (and "normal" native builds)
10553 lt_cv_to_host_file_cmd=func_convert_file_noop
10554 ;;
10555 esac
10556 ;;
10557 esac
10558 fi
10559
10560 to_host_file_cmd=$lt_cv_to_host_file_cmd
10561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10562 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
10563
10564
10565
10566
10567
10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10569 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
10570 if test ${lt_cv_to_tool_file_cmd+y}
10571 then :
10572 printf %s "(cached) " >&6
10573 else case e in #(
10574 e) #assume ordinary cross tools, or native build.
10575 lt_cv_to_tool_file_cmd=func_convert_file_noop
10576 case $host in
10577 *-*-mingw* )
10578 case $build in
10579 *-*-mingw* ) # actually msys
10580 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10581 ;;
10582 esac
10583 ;;
10584 esac
10585 ;;
10586 esac
10587 fi
10588
10589 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10591 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
10592
10593
10594
10595
10596
10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10598 printf %s "checking for $LD option to reload object files... " >&6; }
10599 if test ${lt_cv_ld_reload_flag+y}
10600 then :
10601 printf %s "(cached) " >&6
10602 else case e in #(
10603 e) lt_cv_ld_reload_flag='-r' ;;
10604 esac
10605 fi
10606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10607 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
10608 reload_flag=$lt_cv_ld_reload_flag
10609 case $reload_flag in
10610 "" | " "*) ;;
10611 *) reload_flag=" $reload_flag" ;;
10612 esac
10613 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10614 case $host_os in
10615 cygwin* | mingw* | pw32* | cegcc*)
10616 if test yes != "$GCC"; then
10617 reload_cmds=false
10618 fi
10619 ;;
10620 darwin*)
10621 if test yes = "$GCC"; then
10622 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
10623 else
10624 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10625 fi
10626 ;;
10627 esac
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637 if test -n "$ac_tool_prefix"; then
10638 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10639 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10641 printf %s "checking for $ac_word... " >&6; }
10642 if test ${ac_cv_prog_OBJDUMP+y}
10643 then :
10644 printf %s "(cached) " >&6
10645 else case e in #(
10646 e) if test -n "$OBJDUMP"; then
10647 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10648 else
10649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650 for as_dir in $PATH
10651 do
10652 IFS=$as_save_IFS
10653 case $as_dir in #(((
10654 '') as_dir=./ ;;
10655 */) ;;
10656 *) as_dir=$as_dir/ ;;
10657 esac
10658 for ac_exec_ext in '' $ac_executable_extensions; do
10659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10660 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10662 break 2
10663 fi
10664 done
10665 done
10666 IFS=$as_save_IFS
10667
10668 fi ;;
10669 esac
10670 fi
10671 OBJDUMP=$ac_cv_prog_OBJDUMP
10672 if test -n "$OBJDUMP"; then
10673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10674 printf "%s\n" "$OBJDUMP" >&6; }
10675 else
10676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10677 printf "%s\n" "no" >&6; }
10678 fi
10679
10680
10681 fi
10682 if test -z "$ac_cv_prog_OBJDUMP"; then
10683 ac_ct_OBJDUMP=$OBJDUMP
10684 # Extract the first word of "objdump", so it can be a program name with args.
10685 set dummy objdump; ac_word=$2
10686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10687 printf %s "checking for $ac_word... " >&6; }
10688 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10689 then :
10690 printf %s "(cached) " >&6
10691 else case e in #(
10692 e) if test -n "$ac_ct_OBJDUMP"; then
10693 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10694 else
10695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10696 for as_dir in $PATH
10697 do
10698 IFS=$as_save_IFS
10699 case $as_dir in #(((
10700 '') as_dir=./ ;;
10701 */) ;;
10702 *) as_dir=$as_dir/ ;;
10703 esac
10704 for ac_exec_ext in '' $ac_executable_extensions; do
10705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10706 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10708 break 2
10709 fi
10710 done
10711 done
10712 IFS=$as_save_IFS
10713
10714 fi ;;
10715 esac
10716 fi
10717 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10718 if test -n "$ac_ct_OBJDUMP"; then
10719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10720 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10721 else
10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 printf "%s\n" "no" >&6; }
10724 fi
10725
10726 if test "x$ac_ct_OBJDUMP" = x; then
10727 OBJDUMP="false"
10728 else
10729 case $cross_compiling:$ac_tool_warned in
10730 yes:)
10731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10732 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10733 ac_tool_warned=yes ;;
10734 esac
10735 OBJDUMP=$ac_ct_OBJDUMP
10736 fi
10737 else
10738 OBJDUMP="$ac_cv_prog_OBJDUMP"
10739 fi
10740
10741 test -z "$OBJDUMP" && OBJDUMP=objdump
10742
10743
10744
10745
10746
10747
10748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10749 printf %s "checking how to recognize dependent libraries... " >&6; }
10750 if test ${lt_cv_deplibs_check_method+y}
10751 then :
10752 printf %s "(cached) " >&6
10753 else case e in #(
10754 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
10755 lt_cv_file_magic_test_file=
10756 lt_cv_deplibs_check_method='unknown'
10757 # Need to set the preceding variable on all platforms that support
10758 # interlibrary dependencies.
10759 # 'none' -- dependencies not supported.
10760 # 'unknown' -- same as none, but documents that we really don't know.
10761 # 'pass_all' -- all dependencies passed with no checks.
10762 # 'test_compile' -- check by making test program.
10763 # 'file_magic [[regex]]' -- check by looking for files in library path
10764 # that responds to the $file_magic_cmd with a given extended regex.
10765 # If you have 'file' or equivalent on your system and you're not sure
10766 # whether 'pass_all' will *always* work, you probably want this one.
10767
10768 case $host_os in
10769 aix[4-9]*)
10770 lt_cv_deplibs_check_method=pass_all
10771 ;;
10772
10773 beos*)
10774 lt_cv_deplibs_check_method=pass_all
10775 ;;
10776
10777 bsdi[45]*)
10778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10779 lt_cv_file_magic_cmd='/usr/bin/file -L'
10780 lt_cv_file_magic_test_file=/shlib/libc.so
10781 ;;
10782
10783 cygwin*)
10784 # func_win32_libid is a shell function defined in ltmain.sh
10785 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10786 lt_cv_file_magic_cmd='func_win32_libid'
10787 ;;
10788
10789 mingw* | pw32*)
10790 # Base MSYS/MinGW do not provide the 'file' command needed by
10791 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10792 # unless we find 'file', for example because we are cross-compiling.
10793 if ( file / ) >/dev/null 2>&1; then
10794 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10795 lt_cv_file_magic_cmd='func_win32_libid'
10796 else
10797 # Keep this pattern in sync with the one in func_win32_libid.
10798 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10799 lt_cv_file_magic_cmd='$OBJDUMP -f'
10800 fi
10801 ;;
10802
10803 cegcc*)
10804 # use the weaker test based on 'objdump'. See mingw*.
10805 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10806 lt_cv_file_magic_cmd='$OBJDUMP -f'
10807 ;;
10808
10809 darwin* | rhapsody*)
10810 lt_cv_deplibs_check_method=pass_all
10811 ;;
10812
10813 freebsd* | dragonfly*)
10814 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10815 case $host_cpu in
10816 i*86 )
10817 # Not sure whether the presence of OpenBSD here was a mistake.
10818 # Let's accept both of them until this is cleared up.
10819 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10820 lt_cv_file_magic_cmd=/usr/bin/file
10821 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10822 ;;
10823 esac
10824 else
10825 lt_cv_deplibs_check_method=pass_all
10826 fi
10827 ;;
10828
10829 haiku*)
10830 lt_cv_deplibs_check_method=pass_all
10831 ;;
10832
10833 hpux10.20* | hpux11*)
10834 lt_cv_file_magic_cmd=/usr/bin/file
10835 case $host_cpu in
10836 ia64*)
10837 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10838 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10839 ;;
10840 hppa*64*)
10841 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
10842 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10843 ;;
10844 *)
10845 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10846 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10847 ;;
10848 esac
10849 ;;
10850
10851 interix[3-9]*)
10852 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10853 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10854 ;;
10855
10856 irix5* | irix6* | nonstopux*)
10857 case $LD in
10858 *-32|*"-32 ") libmagic=32-bit;;
10859 *-n32|*"-n32 ") libmagic=N32;;
10860 *-64|*"-64 ") libmagic=64-bit;;
10861 *) libmagic=never-match;;
10862 esac
10863 lt_cv_deplibs_check_method=pass_all
10864 ;;
10865
10866 # This must be glibc/ELF.
10867 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10868 lt_cv_deplibs_check_method=pass_all
10869 ;;
10870
10871 netbsd*)
10872 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10873 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10874 else
10875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10876 fi
10877 ;;
10878
10879 newos6*)
10880 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10881 lt_cv_file_magic_cmd=/usr/bin/file
10882 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10883 ;;
10884
10885 *nto* | *qnx*)
10886 lt_cv_deplibs_check_method=pass_all
10887 ;;
10888
10889 openbsd* | bitrig*)
10890 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10891 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10892 else
10893 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10894 fi
10895 ;;
10896
10897 osf3* | osf4* | osf5*)
10898 lt_cv_deplibs_check_method=pass_all
10899 ;;
10900
10901 rdos*)
10902 lt_cv_deplibs_check_method=pass_all
10903 ;;
10904
10905 solaris*)
10906 lt_cv_deplibs_check_method=pass_all
10907 ;;
10908
10909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10910 lt_cv_deplibs_check_method=pass_all
10911 ;;
10912
10913 sysv4 | sysv4.3*)
10914 case $host_vendor in
10915 motorola)
10916 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]'
10917 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10918 ;;
10919 ncr)
10920 lt_cv_deplibs_check_method=pass_all
10921 ;;
10922 sequent)
10923 lt_cv_file_magic_cmd='/bin/file'
10924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10925 ;;
10926 sni)
10927 lt_cv_file_magic_cmd='/bin/file'
10928 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10929 lt_cv_file_magic_test_file=/lib/libc.so
10930 ;;
10931 siemens)
10932 lt_cv_deplibs_check_method=pass_all
10933 ;;
10934 pc)
10935 lt_cv_deplibs_check_method=pass_all
10936 ;;
10937 esac
10938 ;;
10939
10940 tpf*)
10941 lt_cv_deplibs_check_method=pass_all
10942 ;;
10943 os2*)
10944 lt_cv_deplibs_check_method=pass_all
10945 ;;
10946 esac
10947 ;;
10948 esac
10949 fi
10950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10951 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
10952
10953 file_magic_glob=
10954 want_nocaseglob=no
10955 if test "$build" = "$host"; then
10956 case $host_os in
10957 mingw* | pw32*)
10958 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10959 want_nocaseglob=yes
10960 else
10961 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10962 fi
10963 ;;
10964 esac
10965 fi
10966
10967 file_magic_cmd=$lt_cv_file_magic_cmd
10968 deplibs_check_method=$lt_cv_deplibs_check_method
10969 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992 if test -n "$ac_tool_prefix"; then
10993 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10994 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996 printf %s "checking for $ac_word... " >&6; }
10997 if test ${ac_cv_prog_DLLTOOL+y}
10998 then :
10999 printf %s "(cached) " >&6
11000 else case e in #(
11001 e) if test -n "$DLLTOOL"; then
11002 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11003 else
11004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005 for as_dir in $PATH
11006 do
11007 IFS=$as_save_IFS
11008 case $as_dir in #(((
11009 '') as_dir=./ ;;
11010 */) ;;
11011 *) as_dir=$as_dir/ ;;
11012 esac
11013 for ac_exec_ext in '' $ac_executable_extensions; do
11014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11015 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11017 break 2
11018 fi
11019 done
11020 done
11021 IFS=$as_save_IFS
11022
11023 fi ;;
11024 esac
11025 fi
11026 DLLTOOL=$ac_cv_prog_DLLTOOL
11027 if test -n "$DLLTOOL"; then
11028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11029 printf "%s\n" "$DLLTOOL" >&6; }
11030 else
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032 printf "%s\n" "no" >&6; }
11033 fi
11034
11035
11036 fi
11037 if test -z "$ac_cv_prog_DLLTOOL"; then
11038 ac_ct_DLLTOOL=$DLLTOOL
11039 # Extract the first word of "dlltool", so it can be a program name with args.
11040 set dummy dlltool; ac_word=$2
11041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11042 printf %s "checking for $ac_word... " >&6; }
11043 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11044 then :
11045 printf %s "(cached) " >&6
11046 else case e in #(
11047 e) if test -n "$ac_ct_DLLTOOL"; then
11048 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11049 else
11050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11051 for as_dir in $PATH
11052 do
11053 IFS=$as_save_IFS
11054 case $as_dir in #(((
11055 '') as_dir=./ ;;
11056 */) ;;
11057 *) as_dir=$as_dir/ ;;
11058 esac
11059 for ac_exec_ext in '' $ac_executable_extensions; do
11060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11061 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11063 break 2
11064 fi
11065 done
11066 done
11067 IFS=$as_save_IFS
11068
11069 fi ;;
11070 esac
11071 fi
11072 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11073 if test -n "$ac_ct_DLLTOOL"; then
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11075 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11076 else
11077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11078 printf "%s\n" "no" >&6; }
11079 fi
11080
11081 if test "x$ac_ct_DLLTOOL" = x; then
11082 DLLTOOL="false"
11083 else
11084 case $cross_compiling:$ac_tool_warned in
11085 yes:)
11086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11087 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11088 ac_tool_warned=yes ;;
11089 esac
11090 DLLTOOL=$ac_ct_DLLTOOL
11091 fi
11092 else
11093 DLLTOOL="$ac_cv_prog_DLLTOOL"
11094 fi
11095
11096 test -z "$DLLTOOL" && DLLTOOL=dlltool
11097
11098
11099
11100
11101
11102
11103
11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11105 printf %s "checking how to associate runtime and link libraries... " >&6; }
11106 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
11107 then :
11108 printf %s "(cached) " >&6
11109 else case e in #(
11110 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
11111
11112 case $host_os in
11113 cygwin* | mingw* | pw32* | cegcc*)
11114 # two different shell functions defined in ltmain.sh;
11115 # decide which one to use based on capabilities of $DLLTOOL
11116 case `$DLLTOOL --help 2>&1` in
11117 *--identify-strict*)
11118 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11119 ;;
11120 *)
11121 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11122 ;;
11123 esac
11124 ;;
11125 *)
11126 # fallback: assume linklib IS sharedlib
11127 lt_cv_sharedlib_from_linklib_cmd=$ECHO
11128 ;;
11129 esac
11130 ;;
11131 esac
11132 fi
11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11134 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11135 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11136 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11137
11138
11139
11140
11141
11142
11143
11144 if test -n "$ac_tool_prefix"; then
11145 for ac_prog in ar
11146 do
11147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11150 printf %s "checking for $ac_word... " >&6; }
11151 if test ${ac_cv_prog_AR+y}
11152 then :
11153 printf %s "(cached) " >&6
11154 else case e in #(
11155 e) if test -n "$AR"; then
11156 ac_cv_prog_AR="$AR" # Let the user override the test.
11157 else
11158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11160 do
11161 IFS=$as_save_IFS
11162 case $as_dir in #(((
11163 '') as_dir=./ ;;
11164 */) ;;
11165 *) as_dir=$as_dir/ ;;
11166 esac
11167 for ac_exec_ext in '' $ac_executable_extensions; do
11168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11169 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11171 break 2
11172 fi
11173 done
11174 done
11175 IFS=$as_save_IFS
11176
11177 fi ;;
11178 esac
11179 fi
11180 AR=$ac_cv_prog_AR
11181 if test -n "$AR"; then
11182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11183 printf "%s\n" "$AR" >&6; }
11184 else
11185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 printf "%s\n" "no" >&6; }
11187 fi
11188
11189
11190 test -n "$AR" && break
11191 done
11192 fi
11193 if test -z "$AR"; then
11194 ac_ct_AR=$AR
11195 for ac_prog in ar
11196 do
11197 # Extract the first word of "$ac_prog", so it can be a program name with args.
11198 set dummy $ac_prog; ac_word=$2
11199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200 printf %s "checking for $ac_word... " >&6; }
11201 if test ${ac_cv_prog_ac_ct_AR+y}
11202 then :
11203 printf %s "(cached) " >&6
11204 else case e in #(
11205 e) if test -n "$ac_ct_AR"; then
11206 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11207 else
11208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209 for as_dir in $PATH
11210 do
11211 IFS=$as_save_IFS
11212 case $as_dir in #(((
11213 '') as_dir=./ ;;
11214 */) ;;
11215 *) as_dir=$as_dir/ ;;
11216 esac
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11219 ac_cv_prog_ac_ct_AR="$ac_prog"
11220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11221 break 2
11222 fi
11223 done
11224 done
11225 IFS=$as_save_IFS
11226
11227 fi ;;
11228 esac
11229 fi
11230 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11231 if test -n "$ac_ct_AR"; then
11232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11233 printf "%s\n" "$ac_ct_AR" >&6; }
11234 else
11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 printf "%s\n" "no" >&6; }
11237 fi
11238
11239
11240 test -n "$ac_ct_AR" && break
11241 done
11242
11243 if test "x$ac_ct_AR" = x; then
11244 AR="false"
11245 else
11246 case $cross_compiling:$ac_tool_warned in
11247 yes:)
11248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11249 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11250 ac_tool_warned=yes ;;
11251 esac
11252 AR=$ac_ct_AR
11253 fi
11254 fi
11255
11256 : ${AR=ar}
11257 : ${AR_FLAGS=cru}
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11270 printf %s "checking for archiver @FILE support... " >&6; }
11271 if test ${lt_cv_ar_at_file+y}
11272 then :
11273 printf %s "(cached) " >&6
11274 else case e in #(
11275 e) lt_cv_ar_at_file=no
11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11278
11279 int
11280 main (void)
11281 {
11282
11283 ;
11284 return 0;
11285 }
11286 _ACEOF
11287 if ac_fn_c_try_compile "$LINENO"
11288 then :
11289 echo conftest.$ac_objext > conftest.lst
11290 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11292 (eval $lt_ar_try) 2>&5
11293 ac_status=$?
11294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11295 test $ac_status = 0; }
11296 if test 0 -eq "$ac_status"; then
11297 # Ensure the archiver fails upon bogus file names.
11298 rm -f conftest.$ac_objext libconftest.a
11299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11300 (eval $lt_ar_try) 2>&5
11301 ac_status=$?
11302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11303 test $ac_status = 0; }
11304 if test 0 -ne "$ac_status"; then
11305 lt_cv_ar_at_file=@
11306 fi
11307 fi
11308 rm -f conftest.* libconftest.a
11309
11310 fi
11311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11312 ;;
11313 esac
11314 fi
11315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11316 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
11317
11318 if test no = "$lt_cv_ar_at_file"; then
11319 archiver_list_spec=
11320 else
11321 archiver_list_spec=$lt_cv_ar_at_file
11322 fi
11323
11324
11325
11326
11327
11328
11329
11330 if test -n "$ac_tool_prefix"; then
11331 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11332 set dummy ${ac_tool_prefix}strip; ac_word=$2
11333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11334 printf %s "checking for $ac_word... " >&6; }
11335 if test ${ac_cv_prog_STRIP+y}
11336 then :
11337 printf %s "(cached) " >&6
11338 else case e in #(
11339 e) if test -n "$STRIP"; then
11340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11341 else
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11344 do
11345 IFS=$as_save_IFS
11346 case $as_dir in #(((
11347 '') as_dir=./ ;;
11348 */) ;;
11349 *) as_dir=$as_dir/ ;;
11350 esac
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11353 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11355 break 2
11356 fi
11357 done
11358 done
11359 IFS=$as_save_IFS
11360
11361 fi ;;
11362 esac
11363 fi
11364 STRIP=$ac_cv_prog_STRIP
11365 if test -n "$STRIP"; then
11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11367 printf "%s\n" "$STRIP" >&6; }
11368 else
11369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 printf "%s\n" "no" >&6; }
11371 fi
11372
11373
11374 fi
11375 if test -z "$ac_cv_prog_STRIP"; then
11376 ac_ct_STRIP=$STRIP
11377 # Extract the first word of "strip", so it can be a program name with args.
11378 set dummy strip; ac_word=$2
11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380 printf %s "checking for $ac_word... " >&6; }
11381 if test ${ac_cv_prog_ac_ct_STRIP+y}
11382 then :
11383 printf %s "(cached) " >&6
11384 else case e in #(
11385 e) if test -n "$ac_ct_STRIP"; then
11386 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11387 else
11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in $PATH
11390 do
11391 IFS=$as_save_IFS
11392 case $as_dir in #(((
11393 '') as_dir=./ ;;
11394 */) ;;
11395 *) as_dir=$as_dir/ ;;
11396 esac
11397 for ac_exec_ext in '' $ac_executable_extensions; do
11398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11399 ac_cv_prog_ac_ct_STRIP="strip"
11400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11401 break 2
11402 fi
11403 done
11404 done
11405 IFS=$as_save_IFS
11406
11407 fi ;;
11408 esac
11409 fi
11410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11411 if test -n "$ac_ct_STRIP"; then
11412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11413 printf "%s\n" "$ac_ct_STRIP" >&6; }
11414 else
11415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 printf "%s\n" "no" >&6; }
11417 fi
11418
11419 if test "x$ac_ct_STRIP" = x; then
11420 STRIP=":"
11421 else
11422 case $cross_compiling:$ac_tool_warned in
11423 yes:)
11424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11425 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11426 ac_tool_warned=yes ;;
11427 esac
11428 STRIP=$ac_ct_STRIP
11429 fi
11430 else
11431 STRIP="$ac_cv_prog_STRIP"
11432 fi
11433
11434 test -z "$STRIP" && STRIP=:
11435
11436
11437
11438
11439
11440
11441 if test -n "$ac_tool_prefix"; then
11442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11443 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11445 printf %s "checking for $ac_word... " >&6; }
11446 if test ${ac_cv_prog_RANLIB+y}
11447 then :
11448 printf %s "(cached) " >&6
11449 else case e in #(
11450 e) if test -n "$RANLIB"; then
11451 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11452 else
11453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454 for as_dir in $PATH
11455 do
11456 IFS=$as_save_IFS
11457 case $as_dir in #(((
11458 '') as_dir=./ ;;
11459 */) ;;
11460 *) as_dir=$as_dir/ ;;
11461 esac
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11464 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11466 break 2
11467 fi
11468 done
11469 done
11470 IFS=$as_save_IFS
11471
11472 fi ;;
11473 esac
11474 fi
11475 RANLIB=$ac_cv_prog_RANLIB
11476 if test -n "$RANLIB"; then
11477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11478 printf "%s\n" "$RANLIB" >&6; }
11479 else
11480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481 printf "%s\n" "no" >&6; }
11482 fi
11483
11484
11485 fi
11486 if test -z "$ac_cv_prog_RANLIB"; then
11487 ac_ct_RANLIB=$RANLIB
11488 # Extract the first word of "ranlib", so it can be a program name with args.
11489 set dummy ranlib; ac_word=$2
11490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11491 printf %s "checking for $ac_word... " >&6; }
11492 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11493 then :
11494 printf %s "(cached) " >&6
11495 else case e in #(
11496 e) if test -n "$ac_ct_RANLIB"; then
11497 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11498 else
11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11501 do
11502 IFS=$as_save_IFS
11503 case $as_dir in #(((
11504 '') as_dir=./ ;;
11505 */) ;;
11506 *) as_dir=$as_dir/ ;;
11507 esac
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11510 ac_cv_prog_ac_ct_RANLIB="ranlib"
11511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11512 break 2
11513 fi
11514 done
11515 done
11516 IFS=$as_save_IFS
11517
11518 fi ;;
11519 esac
11520 fi
11521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11522 if test -n "$ac_ct_RANLIB"; then
11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11524 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11525 else
11526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527 printf "%s\n" "no" >&6; }
11528 fi
11529
11530 if test "x$ac_ct_RANLIB" = x; then
11531 RANLIB=":"
11532 else
11533 case $cross_compiling:$ac_tool_warned in
11534 yes:)
11535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11536 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11537 ac_tool_warned=yes ;;
11538 esac
11539 RANLIB=$ac_ct_RANLIB
11540 fi
11541 else
11542 RANLIB="$ac_cv_prog_RANLIB"
11543 fi
11544
11545 test -z "$RANLIB" && RANLIB=:
11546
11547
11548
11549
11550
11551
11552 # Determine commands to create old-style static archives.
11553 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11554 old_postinstall_cmds='chmod 644 $oldlib'
11555 old_postuninstall_cmds=
11556
11557 if test -n "$RANLIB"; then
11558 case $host_os in
11559 bitrig* | openbsd*)
11560 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
11561 ;;
11562 *)
11563 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11564 ;;
11565 esac
11566 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11567 fi
11568
11569 case $host_os in
11570 darwin*)
11571 lock_old_archive_extraction=yes ;;
11572 *)
11573 lock_old_archive_extraction=no ;;
11574 esac
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596 for ac_prog in gawk mawk nawk awk
11597 do
11598 # Extract the first word of "$ac_prog", so it can be a program name with args.
11599 set dummy $ac_prog; ac_word=$2
11600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 printf %s "checking for $ac_word... " >&6; }
11602 if test ${ac_cv_prog_AWK+y}
11603 then :
11604 printf %s "(cached) " >&6
11605 else case e in #(
11606 e) if test -n "$AWK"; then
11607 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11608 else
11609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610 for as_dir in $PATH
11611 do
11612 IFS=$as_save_IFS
11613 case $as_dir in #(((
11614 '') as_dir=./ ;;
11615 */) ;;
11616 *) as_dir=$as_dir/ ;;
11617 esac
11618 for ac_exec_ext in '' $ac_executable_extensions; do
11619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11620 ac_cv_prog_AWK="$ac_prog"
11621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11622 break 2
11623 fi
11624 done
11625 done
11626 IFS=$as_save_IFS
11627
11628 fi ;;
11629 esac
11630 fi
11631 AWK=$ac_cv_prog_AWK
11632 if test -n "$AWK"; then
11633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11634 printf "%s\n" "$AWK" >&6; }
11635 else
11636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 printf "%s\n" "no" >&6; }
11638 fi
11639
11640
11641 test -n "$AWK" && break
11642 done
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662 # If no C compiler was specified, use CC.
11663 LTCC=${LTCC-"$CC"}
11664
11665 # If no C compiler flags were specified, use CFLAGS.
11666 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11667
11668 # Allow CC to be a program name with arguments.
11669 compiler=$CC
11670
11671
11672 # Check for command to grab the raw symbol name followed by C symbol from nm.
11673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11674 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
11675 if test ${lt_cv_sys_global_symbol_pipe+y}
11676 then :
11677 printf %s "(cached) " >&6
11678 else case e in #(
11679 e)
11680 # These are sane defaults that work on at least a few old systems.
11681 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11682
11683 # Character class describing NM global symbol codes.
11684 symcode='[BCDEGRST]'
11685
11686 # Regexp to match symbols that can be accessed directly from C.
11687 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11688
11689 # Define system-specific variables.
11690 case $host_os in
11691 aix*)
11692 symcode='[BCDT]'
11693 ;;
11694 cygwin* | mingw* | pw32* | cegcc*)
11695 symcode='[ABCDGISTW]'
11696 ;;
11697 hpux*)
11698 if test ia64 = "$host_cpu"; then
11699 symcode='[ABCDEGRST]'
11700 fi
11701 ;;
11702 irix* | nonstopux*)
11703 symcode='[BCDEGRST]'
11704 ;;
11705 osf*)
11706 symcode='[BCDEGQRST]'
11707 ;;
11708 solaris*)
11709 symcode='[BDRT]'
11710 ;;
11711 sco3.2v5*)
11712 symcode='[DT]'
11713 ;;
11714 sysv4.2uw2*)
11715 symcode='[DT]'
11716 ;;
11717 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11718 symcode='[ABDT]'
11719 ;;
11720 sysv4)
11721 symcode='[DFNSTU]'
11722 ;;
11723 esac
11724
11725 # If we're using GNU nm, then use its standard symbol codes.
11726 case `$NM -V 2>&1` in
11727 *GNU* | *'with BFD'*)
11728 symcode='[ABCDGIRSTW]' ;;
11729 esac
11730
11731 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11732 # Gets list of data symbols to import.
11733 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
11734 # Adjust the below global symbol transforms to fixup imported variables.
11735 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
11736 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
11737 lt_c_name_lib_hook="\
11738 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
11739 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
11740 else
11741 # Disable hooks by default.
11742 lt_cv_sys_global_symbol_to_import=
11743 lt_cdecl_hook=
11744 lt_c_name_hook=
11745 lt_c_name_lib_hook=
11746 fi
11747
11748 # Transform an extracted symbol line into a proper C declaration.
11749 # Some systems (esp. on ia64) link data and code symbols differently,
11750 # so use this general approach.
11751 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
11752 $lt_cdecl_hook\
11753 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
11754 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
11755
11756 # Transform an extracted symbol line into symbol name and symbol address
11757 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
11758 $lt_c_name_hook\
11759 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11760 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
11761
11762 # Transform an extracted symbol line into symbol name with lib prefix and
11763 # symbol address.
11764 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
11765 $lt_c_name_lib_hook\
11766 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11767 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
11768 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
11769
11770 # Handle CRLF in mingw tool chain
11771 opt_cr=
11772 case $build_os in
11773 mingw*)
11774 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11775 ;;
11776 esac
11777
11778 # Try without a prefix underscore, then with it.
11779 for ac_symprfx in "" "_"; do
11780
11781 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11782 symxfrm="\\1 $ac_symprfx\\2 \\2"
11783
11784 # Write the raw and C identifiers.
11785 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11786 # Fake it for dumpbin and say T for any non-static function,
11787 # D for any global variable and I for any imported variable.
11788 # Also find C++ and __fastcall symbols from MSVC++,
11789 # which start with @ or ?.
11790 lt_cv_sys_global_symbol_pipe="$AWK '"\
11791 " {last_section=section; section=\$ 3};"\
11792 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11793 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11794 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
11795 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
11796 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
11797 " \$ 0!~/External *\|/{next};"\
11798 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11799 " {if(hide[section]) next};"\
11800 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
11801 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
11802 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
11803 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
11804 " ' prfx=^$ac_symprfx"
11805 else
11806 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11807 fi
11808 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11809
11810 # Check to see that the pipe works correctly.
11811 pipe_works=no
11812
11813 rm -f conftest*
11814 cat > conftest.$ac_ext <<_LT_EOF
11815 #ifdef __cplusplus
11816 extern "C" {
11817 #endif
11818 char nm_test_var;
11819 void nm_test_func(void);
11820 void nm_test_func(void){}
11821 #ifdef __cplusplus
11822 }
11823 #endif
11824 int main(){nm_test_var='a';nm_test_func();return(0);}
11825 _LT_EOF
11826
11827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11828 (eval $ac_compile) 2>&5
11829 ac_status=$?
11830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11831 test $ac_status = 0; }; then
11832 # Now try to grab the symbols.
11833 nlist=conftest.nm
11834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11835 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11836 ac_status=$?
11837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11838 test $ac_status = 0; } && test -s "$nlist"; then
11839 # Try sorting and uniquifying the output.
11840 if sort "$nlist" | uniq > "$nlist"T; then
11841 mv -f "$nlist"T "$nlist"
11842 else
11843 rm -f "$nlist"T
11844 fi
11845
11846 # Make sure that we snagged all the symbols we need.
11847 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11848 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11849 cat <<_LT_EOF > conftest.$ac_ext
11850 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11851 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
11852 /* DATA imports from DLLs on WIN32 can't be const, because runtime
11853 relocations are performed -- see ld's documentation on pseudo-relocs. */
11854 # define LT_DLSYM_CONST
11855 #elif defined __osf__
11856 /* This system does not cope well with relocations in const data. */
11857 # define LT_DLSYM_CONST
11858 #else
11859 # define LT_DLSYM_CONST const
11860 #endif
11861
11862 #ifdef __cplusplus
11863 extern "C" {
11864 #endif
11865
11866 _LT_EOF
11867 # Now generate the symbol file.
11868 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11869
11870 cat <<_LT_EOF >> conftest.$ac_ext
11871
11872 /* The mapping between symbol names and symbols. */
11873 LT_DLSYM_CONST struct {
11874 const char *name;
11875 void *address;
11876 }
11877 lt__PROGRAM__LTX_preloaded_symbols[] =
11878 {
11879 { "@PROGRAM@", (void *) 0 },
11880 _LT_EOF
11881 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11882 cat <<\_LT_EOF >> conftest.$ac_ext
11883 {0, (void *) 0}
11884 };
11885
11886 /* This works around a problem in FreeBSD linker */
11887 #ifdef FREEBSD_WORKAROUND
11888 static const void *lt_preloaded_setup() {
11889 return lt__PROGRAM__LTX_preloaded_symbols;
11890 }
11891 #endif
11892
11893 #ifdef __cplusplus
11894 }
11895 #endif
11896 _LT_EOF
11897 # Now try linking the two files.
11898 mv conftest.$ac_objext conftstm.$ac_objext
11899 lt_globsym_save_LIBS=$LIBS
11900 lt_globsym_save_CFLAGS=$CFLAGS
11901 LIBS=conftstm.$ac_objext
11902 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11904 (eval $ac_link) 2>&5
11905 ac_status=$?
11906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11907 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11908 pipe_works=yes
11909 fi
11910 LIBS=$lt_globsym_save_LIBS
11911 CFLAGS=$lt_globsym_save_CFLAGS
11912 else
11913 echo "cannot find nm_test_func in $nlist" >&5
11914 fi
11915 else
11916 echo "cannot find nm_test_var in $nlist" >&5
11917 fi
11918 else
11919 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11920 fi
11921 else
11922 echo "$progname: failed program was:" >&5
11923 cat conftest.$ac_ext >&5
11924 fi
11925 rm -rf conftest* conftst*
11926
11927 # Do not use the global_symbol_pipe unless it works.
11928 if test yes = "$pipe_works"; then
11929 break
11930 else
11931 lt_cv_sys_global_symbol_pipe=
11932 fi
11933 done
11934 ;;
11935 esac
11936 fi
11937
11938 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11939 lt_cv_sys_global_symbol_to_cdecl=
11940 fi
11941 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11943 printf "%s\n" "failed" >&6; }
11944 else
11945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11946 printf "%s\n" "ok" >&6; }
11947 fi
11948
11949 # Response file support.
11950 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11951 nm_file_list_spec='@'
11952 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11953 nm_file_list_spec='@'
11954 fi
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11993 printf %s "checking for sysroot... " >&6; }
11994
11995 # Check whether --with-sysroot was given.
11996 if test ${with_sysroot+y}
11997 then :
11998 withval=$with_sysroot;
11999 else case e in #(
12000 e) with_sysroot=no ;;
12001 esac
12002 fi
12003
12004
12005 lt_sysroot=
12006 case $with_sysroot in #(
12007 yes)
12008 if test yes = "$GCC"; then
12009 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12010 fi
12011 ;; #(
12012 /*)
12013 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12014 ;; #(
12015 no|'')
12016 ;; #(
12017 *)
12018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12019 printf "%s\n" "$with_sysroot" >&6; }
12020 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12021 ;;
12022 esac
12023
12024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12025 printf "%s\n" "${lt_sysroot:-no}" >&6; }
12026
12027
12028
12029
12030
12031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12032 printf %s "checking for a working dd... " >&6; }
12033 if test ${ac_cv_path_lt_DD+y}
12034 then :
12035 printf %s "(cached) " >&6
12036 else case e in #(
12037 e) printf 0123456789abcdef0123456789abcdef >conftest.i
12038 cat conftest.i conftest.i >conftest2.i
12039 : ${lt_DD:=$DD}
12040 if test -z "$lt_DD"; then
12041 ac_path_lt_DD_found=false
12042 # Loop through the user's path and test for each of PROGNAME-LIST
12043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in $PATH
12045 do
12046 IFS=$as_save_IFS
12047 case $as_dir in #(((
12048 '') as_dir=./ ;;
12049 */) ;;
12050 *) as_dir=$as_dir/ ;;
12051 esac
12052 for ac_prog in dd
12053 do
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
12056 as_fn_executable_p "$ac_path_lt_DD" || continue
12057 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12058 cmp -s conftest.i conftest.out \
12059 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12060 fi
12061 $ac_path_lt_DD_found && break 3
12062 done
12063 done
12064 done
12065 IFS=$as_save_IFS
12066 if test -z "$ac_cv_path_lt_DD"; then
12067 :
12068 fi
12069 else
12070 ac_cv_path_lt_DD=$lt_DD
12071 fi
12072
12073 rm -f conftest.i conftest2.i conftest.out ;;
12074 esac
12075 fi
12076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
12077 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
12078
12079
12080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
12081 printf %s "checking how to truncate binary pipes... " >&6; }
12082 if test ${lt_cv_truncate_bin+y}
12083 then :
12084 printf %s "(cached) " >&6
12085 else case e in #(
12086 e) printf 0123456789abcdef0123456789abcdef >conftest.i
12087 cat conftest.i conftest.i >conftest2.i
12088 lt_cv_truncate_bin=
12089 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12090 cmp -s conftest.i conftest.out \
12091 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
12092 fi
12093 rm -f conftest.i conftest2.i conftest.out
12094 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
12095 esac
12096 fi
12097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
12098 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
12099
12100
12101
12102
12103
12104
12105
12106 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
12107 func_cc_basename ()
12108 {
12109 for cc_temp in $*""; do
12110 case $cc_temp in
12111 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12112 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12113 \-*) ;;
12114 *) break;;
12115 esac
12116 done
12117 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12118 }
12119
12120 # Check whether --enable-libtool-lock was given.
12121 if test ${enable_libtool_lock+y}
12122 then :
12123 enableval=$enable_libtool_lock;
12124 fi
12125
12126 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12127
12128 # Some flags need to be propagated to the compiler or linker for good
12129 # libtool support.
12130 case $host in
12131 ia64-*-hpux*)
12132 # Find out what ABI is being produced by ac_compile, and set mode
12133 # options accordingly.
12134 echo 'int i;' > conftest.$ac_ext
12135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12136 (eval $ac_compile) 2>&5
12137 ac_status=$?
12138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12139 test $ac_status = 0; }; then
12140 case `/usr/bin/file conftest.$ac_objext` in
12141 *ELF-32*)
12142 HPUX_IA64_MODE=32
12143 ;;
12144 *ELF-64*)
12145 HPUX_IA64_MODE=64
12146 ;;
12147 esac
12148 fi
12149 rm -rf conftest*
12150 ;;
12151 *-*-irix6*)
12152 # Find out what ABI is being produced by ac_compile, and set linker
12153 # options accordingly.
12154 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12156 (eval $ac_compile) 2>&5
12157 ac_status=$?
12158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12159 test $ac_status = 0; }; then
12160 if test yes = "$lt_cv_prog_gnu_ld"; then
12161 case `/usr/bin/file conftest.$ac_objext` in
12162 *32-bit*)
12163 LD="${LD-ld} -melf32bsmip"
12164 ;;
12165 *N32*)
12166 LD="${LD-ld} -melf32bmipn32"
12167 ;;
12168 *64-bit*)
12169 LD="${LD-ld} -melf64bmip"
12170 ;;
12171 esac
12172 else
12173 case `/usr/bin/file conftest.$ac_objext` in
12174 *32-bit*)
12175 LD="${LD-ld} -32"
12176 ;;
12177 *N32*)
12178 LD="${LD-ld} -n32"
12179 ;;
12180 *64-bit*)
12181 LD="${LD-ld} -64"
12182 ;;
12183 esac
12184 fi
12185 fi
12186 rm -rf conftest*
12187 ;;
12188
12189 mips64*-*linux*)
12190 # Find out what ABI is being produced by ac_compile, and set linker
12191 # options accordingly.
12192 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12194 (eval $ac_compile) 2>&5
12195 ac_status=$?
12196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12197 test $ac_status = 0; }; then
12198 emul=elf
12199 case `/usr/bin/file conftest.$ac_objext` in
12200 *32-bit*)
12201 emul="${emul}32"
12202 ;;
12203 *64-bit*)
12204 emul="${emul}64"
12205 ;;
12206 esac
12207 case `/usr/bin/file conftest.$ac_objext` in
12208 *MSB*)
12209 emul="${emul}btsmip"
12210 ;;
12211 *LSB*)
12212 emul="${emul}ltsmip"
12213 ;;
12214 esac
12215 case `/usr/bin/file conftest.$ac_objext` in
12216 *N32*)
12217 emul="${emul}n32"
12218 ;;
12219 esac
12220 LD="${LD-ld} -m $emul"
12221 fi
12222 rm -rf conftest*
12223 ;;
12224
12225 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12226 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12227 # Find out what ABI is being produced by ac_compile, and set linker
12228 # options accordingly. Note that the listed cases only cover the
12229 # situations where additional linker options are needed (such as when
12230 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
12231 # vice versa); the common cases where no linker options are needed do
12232 # not appear in the list.
12233 echo 'int i;' > conftest.$ac_ext
12234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12235 (eval $ac_compile) 2>&5
12236 ac_status=$?
12237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12238 test $ac_status = 0; }; then
12239 case `/usr/bin/file conftest.o` in
12240 *32-bit*)
12241 case $host in
12242 x86_64-*kfreebsd*-gnu)
12243 LD="${LD-ld} -m elf_i386_fbsd"
12244 ;;
12245 x86_64-*linux*)
12246 case `/usr/bin/file conftest.o` in
12247 *x86-64*)
12248 LD="${LD-ld} -m elf32_x86_64"
12249 ;;
12250 *)
12251 LD="${LD-ld} -m elf_i386"
12252 ;;
12253 esac
12254 ;;
12255 powerpc64le-*linux*)
12256 LD="${LD-ld} -m elf32lppclinux"
12257 ;;
12258 powerpc64-*linux*)
12259 LD="${LD-ld} -m elf32ppclinux"
12260 ;;
12261 s390x-*linux*)
12262 LD="${LD-ld} -m elf_s390"
12263 ;;
12264 sparc64-*linux*)
12265 LD="${LD-ld} -m elf32_sparc"
12266 ;;
12267 esac
12268 ;;
12269 *64-bit*)
12270 case $host in
12271 x86_64-*kfreebsd*-gnu)
12272 LD="${LD-ld} -m elf_x86_64_fbsd"
12273 ;;
12274 x86_64-*linux*)
12275 LD="${LD-ld} -m elf_x86_64"
12276 ;;
12277 powerpcle-*linux*)
12278 LD="${LD-ld} -m elf64lppc"
12279 ;;
12280 powerpc-*linux*)
12281 LD="${LD-ld} -m elf64ppc"
12282 ;;
12283 s390*-*linux*|s390*-*tpf*)
12284 LD="${LD-ld} -m elf64_s390"
12285 ;;
12286 sparc*-*linux*)
12287 LD="${LD-ld} -m elf64_sparc"
12288 ;;
12289 esac
12290 ;;
12291 esac
12292 fi
12293 rm -rf conftest*
12294 ;;
12295
12296 *-*-sco3.2v5*)
12297 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12298 SAVE_CFLAGS=$CFLAGS
12299 CFLAGS="$CFLAGS -belf"
12300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12301 printf %s "checking whether the C compiler needs -belf... " >&6; }
12302 if test ${lt_cv_cc_needs_belf+y}
12303 then :
12304 printf %s "(cached) " >&6
12305 else case e in #(
12306 e) ac_ext=c
12307 ac_cpp='$CPP $CPPFLAGS'
12308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12311
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314
12315 int
12316 main (void)
12317 {
12318
12319 ;
12320 return 0;
12321 }
12322 _ACEOF
12323 if ac_fn_c_try_link "$LINENO"
12324 then :
12325 lt_cv_cc_needs_belf=yes
12326 else case e in #(
12327 e) lt_cv_cc_needs_belf=no ;;
12328 esac
12329 fi
12330 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12331 conftest$ac_exeext conftest.$ac_ext
12332 ac_ext=c
12333 ac_cpp='$CPP $CPPFLAGS'
12334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12337 ;;
12338 esac
12339 fi
12340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12341 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
12342 if test yes != "$lt_cv_cc_needs_belf"; then
12343 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12344 CFLAGS=$SAVE_CFLAGS
12345 fi
12346 ;;
12347 *-*solaris*)
12348 # Find out what ABI is being produced by ac_compile, and set linker
12349 # options accordingly.
12350 echo 'int i;' > conftest.$ac_ext
12351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12352 (eval $ac_compile) 2>&5
12353 ac_status=$?
12354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12355 test $ac_status = 0; }; then
12356 case `/usr/bin/file conftest.o` in
12357 *64-bit*)
12358 case $lt_cv_prog_gnu_ld in
12359 yes*)
12360 case $host in
12361 i?86-*-solaris*|x86_64-*-solaris*)
12362 LD="${LD-ld} -m elf_x86_64"
12363 ;;
12364 sparc*-*-solaris*)
12365 LD="${LD-ld} -m elf64_sparc"
12366 ;;
12367 esac
12368 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12369 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12370 LD=${LD-ld}_sol2
12371 fi
12372 ;;
12373 *)
12374 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12375 LD="${LD-ld} -64"
12376 fi
12377 ;;
12378 esac
12379 ;;
12380 esac
12381 fi
12382 rm -rf conftest*
12383 ;;
12384 esac
12385
12386 need_locks=$enable_libtool_lock
12387
12388 if test -n "$ac_tool_prefix"; then
12389 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12390 set dummy ${ac_tool_prefix}mt; ac_word=$2
12391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 printf %s "checking for $ac_word... " >&6; }
12393 if test ${ac_cv_prog_MANIFEST_TOOL+y}
12394 then :
12395 printf %s "(cached) " >&6
12396 else case e in #(
12397 e) if test -n "$MANIFEST_TOOL"; then
12398 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12399 else
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12402 do
12403 IFS=$as_save_IFS
12404 case $as_dir in #(((
12405 '') as_dir=./ ;;
12406 */) ;;
12407 *) as_dir=$as_dir/ ;;
12408 esac
12409 for ac_exec_ext in '' $ac_executable_extensions; do
12410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12411 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12413 break 2
12414 fi
12415 done
12416 done
12417 IFS=$as_save_IFS
12418
12419 fi ;;
12420 esac
12421 fi
12422 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12423 if test -n "$MANIFEST_TOOL"; then
12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12425 printf "%s\n" "$MANIFEST_TOOL" >&6; }
12426 else
12427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 printf "%s\n" "no" >&6; }
12429 fi
12430
12431
12432 fi
12433 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12434 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12435 # Extract the first word of "mt", so it can be a program name with args.
12436 set dummy mt; ac_word=$2
12437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438 printf %s "checking for $ac_word... " >&6; }
12439 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
12440 then :
12441 printf %s "(cached) " >&6
12442 else case e in #(
12443 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
12444 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12445 else
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447 for as_dir in $PATH
12448 do
12449 IFS=$as_save_IFS
12450 case $as_dir in #(((
12451 '') as_dir=./ ;;
12452 */) ;;
12453 *) as_dir=$as_dir/ ;;
12454 esac
12455 for ac_exec_ext in '' $ac_executable_extensions; do
12456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12457 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12459 break 2
12460 fi
12461 done
12462 done
12463 IFS=$as_save_IFS
12464
12465 fi ;;
12466 esac
12467 fi
12468 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12469 if test -n "$ac_ct_MANIFEST_TOOL"; then
12470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12471 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
12472 else
12473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12474 printf "%s\n" "no" >&6; }
12475 fi
12476
12477 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12478 MANIFEST_TOOL=":"
12479 else
12480 case $cross_compiling:$ac_tool_warned in
12481 yes:)
12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12483 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12484 ac_tool_warned=yes ;;
12485 esac
12486 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12487 fi
12488 else
12489 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12490 fi
12491
12492 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12494 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12495 if test ${lt_cv_path_mainfest_tool+y}
12496 then :
12497 printf %s "(cached) " >&6
12498 else case e in #(
12499 e) lt_cv_path_mainfest_tool=no
12500 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12501 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12502 cat conftest.err >&5
12503 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12504 lt_cv_path_mainfest_tool=yes
12505 fi
12506 rm -f conftest* ;;
12507 esac
12508 fi
12509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12510 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
12511 if test yes != "$lt_cv_path_mainfest_tool"; then
12512 MANIFEST_TOOL=:
12513 fi
12514
12515
12516
12517
12518
12519
12520 case $host_os in
12521 rhapsody* | darwin*)
12522 if test -n "$ac_tool_prefix"; then
12523 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12524 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526 printf %s "checking for $ac_word... " >&6; }
12527 if test ${ac_cv_prog_DSYMUTIL+y}
12528 then :
12529 printf %s "(cached) " >&6
12530 else case e in #(
12531 e) if test -n "$DSYMUTIL"; then
12532 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12533 else
12534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535 for as_dir in $PATH
12536 do
12537 IFS=$as_save_IFS
12538 case $as_dir in #(((
12539 '') as_dir=./ ;;
12540 */) ;;
12541 *) as_dir=$as_dir/ ;;
12542 esac
12543 for ac_exec_ext in '' $ac_executable_extensions; do
12544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12545 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12547 break 2
12548 fi
12549 done
12550 done
12551 IFS=$as_save_IFS
12552
12553 fi ;;
12554 esac
12555 fi
12556 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12557 if test -n "$DSYMUTIL"; then
12558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12559 printf "%s\n" "$DSYMUTIL" >&6; }
12560 else
12561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12562 printf "%s\n" "no" >&6; }
12563 fi
12564
12565
12566 fi
12567 if test -z "$ac_cv_prog_DSYMUTIL"; then
12568 ac_ct_DSYMUTIL=$DSYMUTIL
12569 # Extract the first word of "dsymutil", so it can be a program name with args.
12570 set dummy dsymutil; ac_word=$2
12571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12572 printf %s "checking for $ac_word... " >&6; }
12573 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
12574 then :
12575 printf %s "(cached) " >&6
12576 else case e in #(
12577 e) if test -n "$ac_ct_DSYMUTIL"; then
12578 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12579 else
12580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581 for as_dir in $PATH
12582 do
12583 IFS=$as_save_IFS
12584 case $as_dir in #(((
12585 '') as_dir=./ ;;
12586 */) ;;
12587 *) as_dir=$as_dir/ ;;
12588 esac
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12591 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12593 break 2
12594 fi
12595 done
12596 done
12597 IFS=$as_save_IFS
12598
12599 fi ;;
12600 esac
12601 fi
12602 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12603 if test -n "$ac_ct_DSYMUTIL"; then
12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12605 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
12606 else
12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 printf "%s\n" "no" >&6; }
12609 fi
12610
12611 if test "x$ac_ct_DSYMUTIL" = x; then
12612 DSYMUTIL=":"
12613 else
12614 case $cross_compiling:$ac_tool_warned in
12615 yes:)
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12617 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12618 ac_tool_warned=yes ;;
12619 esac
12620 DSYMUTIL=$ac_ct_DSYMUTIL
12621 fi
12622 else
12623 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12624 fi
12625
12626 if test -n "$ac_tool_prefix"; then
12627 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12628 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630 printf %s "checking for $ac_word... " >&6; }
12631 if test ${ac_cv_prog_NMEDIT+y}
12632 then :
12633 printf %s "(cached) " >&6
12634 else case e in #(
12635 e) if test -n "$NMEDIT"; then
12636 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12637 else
12638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12639 for as_dir in $PATH
12640 do
12641 IFS=$as_save_IFS
12642 case $as_dir in #(((
12643 '') as_dir=./ ;;
12644 */) ;;
12645 *) as_dir=$as_dir/ ;;
12646 esac
12647 for ac_exec_ext in '' $ac_executable_extensions; do
12648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12649 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12651 break 2
12652 fi
12653 done
12654 done
12655 IFS=$as_save_IFS
12656
12657 fi ;;
12658 esac
12659 fi
12660 NMEDIT=$ac_cv_prog_NMEDIT
12661 if test -n "$NMEDIT"; then
12662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12663 printf "%s\n" "$NMEDIT" >&6; }
12664 else
12665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666 printf "%s\n" "no" >&6; }
12667 fi
12668
12669
12670 fi
12671 if test -z "$ac_cv_prog_NMEDIT"; then
12672 ac_ct_NMEDIT=$NMEDIT
12673 # Extract the first word of "nmedit", so it can be a program name with args.
12674 set dummy nmedit; ac_word=$2
12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12676 printf %s "checking for $ac_word... " >&6; }
12677 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
12678 then :
12679 printf %s "(cached) " >&6
12680 else case e in #(
12681 e) if test -n "$ac_ct_NMEDIT"; then
12682 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12683 else
12684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12685 for as_dir in $PATH
12686 do
12687 IFS=$as_save_IFS
12688 case $as_dir in #(((
12689 '') as_dir=./ ;;
12690 */) ;;
12691 *) as_dir=$as_dir/ ;;
12692 esac
12693 for ac_exec_ext in '' $ac_executable_extensions; do
12694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12695 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12697 break 2
12698 fi
12699 done
12700 done
12701 IFS=$as_save_IFS
12702
12703 fi ;;
12704 esac
12705 fi
12706 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12707 if test -n "$ac_ct_NMEDIT"; then
12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12709 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
12710 else
12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712 printf "%s\n" "no" >&6; }
12713 fi
12714
12715 if test "x$ac_ct_NMEDIT" = x; then
12716 NMEDIT=":"
12717 else
12718 case $cross_compiling:$ac_tool_warned in
12719 yes:)
12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12721 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12722 ac_tool_warned=yes ;;
12723 esac
12724 NMEDIT=$ac_ct_NMEDIT
12725 fi
12726 else
12727 NMEDIT="$ac_cv_prog_NMEDIT"
12728 fi
12729
12730 if test -n "$ac_tool_prefix"; then
12731 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12732 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734 printf %s "checking for $ac_word... " >&6; }
12735 if test ${ac_cv_prog_LIPO+y}
12736 then :
12737 printf %s "(cached) " >&6
12738 else case e in #(
12739 e) if test -n "$LIPO"; then
12740 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12741 else
12742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12743 for as_dir in $PATH
12744 do
12745 IFS=$as_save_IFS
12746 case $as_dir in #(((
12747 '') as_dir=./ ;;
12748 */) ;;
12749 *) as_dir=$as_dir/ ;;
12750 esac
12751 for ac_exec_ext in '' $ac_executable_extensions; do
12752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12753 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12755 break 2
12756 fi
12757 done
12758 done
12759 IFS=$as_save_IFS
12760
12761 fi ;;
12762 esac
12763 fi
12764 LIPO=$ac_cv_prog_LIPO
12765 if test -n "$LIPO"; then
12766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12767 printf "%s\n" "$LIPO" >&6; }
12768 else
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 printf "%s\n" "no" >&6; }
12771 fi
12772
12773
12774 fi
12775 if test -z "$ac_cv_prog_LIPO"; then
12776 ac_ct_LIPO=$LIPO
12777 # Extract the first word of "lipo", so it can be a program name with args.
12778 set dummy lipo; ac_word=$2
12779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780 printf %s "checking for $ac_word... " >&6; }
12781 if test ${ac_cv_prog_ac_ct_LIPO+y}
12782 then :
12783 printf %s "(cached) " >&6
12784 else case e in #(
12785 e) if test -n "$ac_ct_LIPO"; then
12786 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12787 else
12788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789 for as_dir in $PATH
12790 do
12791 IFS=$as_save_IFS
12792 case $as_dir in #(((
12793 '') as_dir=./ ;;
12794 */) ;;
12795 *) as_dir=$as_dir/ ;;
12796 esac
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12799 ac_cv_prog_ac_ct_LIPO="lipo"
12800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12801 break 2
12802 fi
12803 done
12804 done
12805 IFS=$as_save_IFS
12806
12807 fi ;;
12808 esac
12809 fi
12810 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12811 if test -n "$ac_ct_LIPO"; then
12812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12813 printf "%s\n" "$ac_ct_LIPO" >&6; }
12814 else
12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 printf "%s\n" "no" >&6; }
12817 fi
12818
12819 if test "x$ac_ct_LIPO" = x; then
12820 LIPO=":"
12821 else
12822 case $cross_compiling:$ac_tool_warned in
12823 yes:)
12824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12825 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12826 ac_tool_warned=yes ;;
12827 esac
12828 LIPO=$ac_ct_LIPO
12829 fi
12830 else
12831 LIPO="$ac_cv_prog_LIPO"
12832 fi
12833
12834 if test -n "$ac_tool_prefix"; then
12835 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12836 set dummy ${ac_tool_prefix}otool; ac_word=$2
12837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12838 printf %s "checking for $ac_word... " >&6; }
12839 if test ${ac_cv_prog_OTOOL+y}
12840 then :
12841 printf %s "(cached) " >&6
12842 else case e in #(
12843 e) if test -n "$OTOOL"; then
12844 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12845 else
12846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847 for as_dir in $PATH
12848 do
12849 IFS=$as_save_IFS
12850 case $as_dir in #(((
12851 '') as_dir=./ ;;
12852 */) ;;
12853 *) as_dir=$as_dir/ ;;
12854 esac
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12857 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12859 break 2
12860 fi
12861 done
12862 done
12863 IFS=$as_save_IFS
12864
12865 fi ;;
12866 esac
12867 fi
12868 OTOOL=$ac_cv_prog_OTOOL
12869 if test -n "$OTOOL"; then
12870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12871 printf "%s\n" "$OTOOL" >&6; }
12872 else
12873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 printf "%s\n" "no" >&6; }
12875 fi
12876
12877
12878 fi
12879 if test -z "$ac_cv_prog_OTOOL"; then
12880 ac_ct_OTOOL=$OTOOL
12881 # Extract the first word of "otool", so it can be a program name with args.
12882 set dummy otool; ac_word=$2
12883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12884 printf %s "checking for $ac_word... " >&6; }
12885 if test ${ac_cv_prog_ac_ct_OTOOL+y}
12886 then :
12887 printf %s "(cached) " >&6
12888 else case e in #(
12889 e) if test -n "$ac_ct_OTOOL"; then
12890 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12891 else
12892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893 for as_dir in $PATH
12894 do
12895 IFS=$as_save_IFS
12896 case $as_dir in #(((
12897 '') as_dir=./ ;;
12898 */) ;;
12899 *) as_dir=$as_dir/ ;;
12900 esac
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12903 ac_cv_prog_ac_ct_OTOOL="otool"
12904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12905 break 2
12906 fi
12907 done
12908 done
12909 IFS=$as_save_IFS
12910
12911 fi ;;
12912 esac
12913 fi
12914 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12915 if test -n "$ac_ct_OTOOL"; then
12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12917 printf "%s\n" "$ac_ct_OTOOL" >&6; }
12918 else
12919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 printf "%s\n" "no" >&6; }
12921 fi
12922
12923 if test "x$ac_ct_OTOOL" = x; then
12924 OTOOL=":"
12925 else
12926 case $cross_compiling:$ac_tool_warned in
12927 yes:)
12928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12929 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12930 ac_tool_warned=yes ;;
12931 esac
12932 OTOOL=$ac_ct_OTOOL
12933 fi
12934 else
12935 OTOOL="$ac_cv_prog_OTOOL"
12936 fi
12937
12938 if test -n "$ac_tool_prefix"; then
12939 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12940 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942 printf %s "checking for $ac_word... " >&6; }
12943 if test ${ac_cv_prog_OTOOL64+y}
12944 then :
12945 printf %s "(cached) " >&6
12946 else case e in #(
12947 e) if test -n "$OTOOL64"; then
12948 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12949 else
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12952 do
12953 IFS=$as_save_IFS
12954 case $as_dir in #(((
12955 '') as_dir=./ ;;
12956 */) ;;
12957 *) as_dir=$as_dir/ ;;
12958 esac
12959 for ac_exec_ext in '' $ac_executable_extensions; do
12960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12961 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12963 break 2
12964 fi
12965 done
12966 done
12967 IFS=$as_save_IFS
12968
12969 fi ;;
12970 esac
12971 fi
12972 OTOOL64=$ac_cv_prog_OTOOL64
12973 if test -n "$OTOOL64"; then
12974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12975 printf "%s\n" "$OTOOL64" >&6; }
12976 else
12977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 printf "%s\n" "no" >&6; }
12979 fi
12980
12981
12982 fi
12983 if test -z "$ac_cv_prog_OTOOL64"; then
12984 ac_ct_OTOOL64=$OTOOL64
12985 # Extract the first word of "otool64", so it can be a program name with args.
12986 set dummy otool64; ac_word=$2
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 printf %s "checking for $ac_word... " >&6; }
12989 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
12990 then :
12991 printf %s "(cached) " >&6
12992 else case e in #(
12993 e) if test -n "$ac_ct_OTOOL64"; then
12994 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12995 else
12996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12997 for as_dir in $PATH
12998 do
12999 IFS=$as_save_IFS
13000 case $as_dir in #(((
13001 '') as_dir=./ ;;
13002 */) ;;
13003 *) as_dir=$as_dir/ ;;
13004 esac
13005 for ac_exec_ext in '' $ac_executable_extensions; do
13006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13007 ac_cv_prog_ac_ct_OTOOL64="otool64"
13008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13009 break 2
13010 fi
13011 done
13012 done
13013 IFS=$as_save_IFS
13014
13015 fi ;;
13016 esac
13017 fi
13018 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13019 if test -n "$ac_ct_OTOOL64"; then
13020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13021 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
13022 else
13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 printf "%s\n" "no" >&6; }
13025 fi
13026
13027 if test "x$ac_ct_OTOOL64" = x; then
13028 OTOOL64=":"
13029 else
13030 case $cross_compiling:$ac_tool_warned in
13031 yes:)
13032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13033 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13034 ac_tool_warned=yes ;;
13035 esac
13036 OTOOL64=$ac_ct_OTOOL64
13037 fi
13038 else
13039 OTOOL64="$ac_cv_prog_OTOOL64"
13040 fi
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13069 printf %s "checking for -single_module linker flag... " >&6; }
13070 if test ${lt_cv_apple_cc_single_mod+y}
13071 then :
13072 printf %s "(cached) " >&6
13073 else case e in #(
13074 e) lt_cv_apple_cc_single_mod=no
13075 if test -z "$LT_MULTI_MODULE"; then
13076 # By default we will add the -single_module flag. You can override
13077 # by either setting the environment variable LT_MULTI_MODULE
13078 # non-empty at configure time, or by adding -multi_module to the
13079 # link flags.
13080 rm -rf libconftest.dylib*
13081 echo "int foo(void){return 1;}" > conftest.c
13082 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13083 -dynamiclib -Wl,-single_module conftest.c" >&5
13084 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13085 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13086 _lt_result=$?
13087 # If there is a non-empty error log, and "single_module"
13088 # appears in it, assume the flag caused a linker warning
13089 if test -s conftest.err && $GREP single_module conftest.err; then
13090 cat conftest.err >&5
13091 # Otherwise, if the output was created with a 0 exit code from
13092 # the compiler, it worked.
13093 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13094 lt_cv_apple_cc_single_mod=yes
13095 else
13096 cat conftest.err >&5
13097 fi
13098 rm -rf libconftest.dylib*
13099 rm -f conftest.*
13100 fi ;;
13101 esac
13102 fi
13103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13104 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
13105
13106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13107 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
13108 if test ${lt_cv_ld_exported_symbols_list+y}
13109 then :
13110 printf %s "(cached) " >&6
13111 else case e in #(
13112 e) lt_cv_ld_exported_symbols_list=no
13113 save_LDFLAGS=$LDFLAGS
13114 echo "_main" > conftest.sym
13115 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118
13119 int
13120 main (void)
13121 {
13122
13123 ;
13124 return 0;
13125 }
13126 _ACEOF
13127 if ac_fn_c_try_link "$LINENO"
13128 then :
13129 lt_cv_ld_exported_symbols_list=yes
13130 else case e in #(
13131 e) lt_cv_ld_exported_symbols_list=no ;;
13132 esac
13133 fi
13134 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13135 conftest$ac_exeext conftest.$ac_ext
13136 LDFLAGS=$save_LDFLAGS
13137 ;;
13138 esac
13139 fi
13140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13141 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
13142
13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13144 printf %s "checking for -force_load linker flag... " >&6; }
13145 if test ${lt_cv_ld_force_load+y}
13146 then :
13147 printf %s "(cached) " >&6
13148 else case e in #(
13149 e) lt_cv_ld_force_load=no
13150 cat > conftest.c << _LT_EOF
13151 int forced_loaded() { return 2;}
13152 _LT_EOF
13153 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13154 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13155 echo "$AR cru libconftest.a conftest.o" >&5
13156 $AR cru libconftest.a conftest.o 2>&5
13157 echo "$RANLIB libconftest.a" >&5
13158 $RANLIB libconftest.a 2>&5
13159 cat > conftest.c << _LT_EOF
13160 int main() { return 0;}
13161 _LT_EOF
13162 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13163 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13164 _lt_result=$?
13165 if test -s conftest.err && $GREP force_load conftest.err; then
13166 cat conftest.err >&5
13167 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13168 lt_cv_ld_force_load=yes
13169 else
13170 cat conftest.err >&5
13171 fi
13172 rm -f conftest.err libconftest.a conftest conftest.c
13173 rm -rf conftest.dSYM
13174 ;;
13175 esac
13176 fi
13177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13178 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
13179 case $host_os in
13180 rhapsody* | darwin1.[012])
13181 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
13182 darwin1.*)
13183 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13184 darwin*) # darwin 5.x on
13185 # if running on 10.5 or later, the deployment target defaults
13186 # to the OS version, if on x86, and 10.4, the deployment
13187 # target defaults to 10.4. Don't you love it?
13188 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13189 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13190 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13191 10.[012][,.]*)
13192 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13193 10.*)
13194 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13195 esac
13196 ;;
13197 esac
13198 if test yes = "$lt_cv_apple_cc_single_mod"; then
13199 _lt_dar_single_mod='$single_module'
13200 fi
13201 if test yes = "$lt_cv_ld_exported_symbols_list"; then
13202 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
13203 else
13204 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
13205 fi
13206 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
13207 _lt_dsymutil='~$DSYMUTIL $lib || :'
13208 else
13209 _lt_dsymutil=
13210 fi
13211 ;;
13212 esac
13213
13214 # func_munge_path_list VARIABLE PATH
13215 # -----------------------------------
13216 # VARIABLE is name of variable containing _space_ separated list of
13217 # directories to be munged by the contents of PATH, which is string
13218 # having a format:
13219 # "DIR[:DIR]:"
13220 # string "DIR[ DIR]" will be prepended to VARIABLE
13221 # ":DIR[:DIR]"
13222 # string "DIR[ DIR]" will be appended to VARIABLE
13223 # "DIRP[:DIRP]::[DIRA:]DIRA"
13224 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
13225 # "DIRA[ DIRA]" will be appended to VARIABLE
13226 # "DIR[:DIR]"
13227 # VARIABLE will be replaced by "DIR[ DIR]"
13228 func_munge_path_list ()
13229 {
13230 case x$2 in
13231 x)
13232 ;;
13233 *:)
13234 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
13235 ;;
13236 x:*)
13237 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
13238 ;;
13239 *::*)
13240 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
13241 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
13242 ;;
13243 *)
13244 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
13245 ;;
13246 esac
13247 }
13248
13249 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13250 "
13251 if test "x$ac_cv_header_dlfcn_h" = xyes
13252 then :
13253 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
13254
13255 fi
13256
13257
13258
13259
13260
13261 # Set options
13262 enable_win32_dll=yes
13263
13264 case $host in
13265 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
13266 if test -n "$ac_tool_prefix"; then
13267 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13268 set dummy ${ac_tool_prefix}as; ac_word=$2
13269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13270 printf %s "checking for $ac_word... " >&6; }
13271 if test ${ac_cv_prog_AS+y}
13272 then :
13273 printf %s "(cached) " >&6
13274 else case e in #(
13275 e) if test -n "$AS"; then
13276 ac_cv_prog_AS="$AS" # Let the user override the test.
13277 else
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13280 do
13281 IFS=$as_save_IFS
13282 case $as_dir in #(((
13283 '') as_dir=./ ;;
13284 */) ;;
13285 *) as_dir=$as_dir/ ;;
13286 esac
13287 for ac_exec_ext in '' $ac_executable_extensions; do
13288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13289 ac_cv_prog_AS="${ac_tool_prefix}as"
13290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13291 break 2
13292 fi
13293 done
13294 done
13295 IFS=$as_save_IFS
13296
13297 fi ;;
13298 esac
13299 fi
13300 AS=$ac_cv_prog_AS
13301 if test -n "$AS"; then
13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13303 printf "%s\n" "$AS" >&6; }
13304 else
13305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 printf "%s\n" "no" >&6; }
13307 fi
13308
13309
13310 fi
13311 if test -z "$ac_cv_prog_AS"; then
13312 ac_ct_AS=$AS
13313 # Extract the first word of "as", so it can be a program name with args.
13314 set dummy as; ac_word=$2
13315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316 printf %s "checking for $ac_word... " >&6; }
13317 if test ${ac_cv_prog_ac_ct_AS+y}
13318 then :
13319 printf %s "(cached) " >&6
13320 else case e in #(
13321 e) if test -n "$ac_ct_AS"; then
13322 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13326 do
13327 IFS=$as_save_IFS
13328 case $as_dir in #(((
13329 '') as_dir=./ ;;
13330 */) ;;
13331 *) as_dir=$as_dir/ ;;
13332 esac
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13335 ac_cv_prog_ac_ct_AS="as"
13336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13337 break 2
13338 fi
13339 done
13340 done
13341 IFS=$as_save_IFS
13342
13343 fi ;;
13344 esac
13345 fi
13346 ac_ct_AS=$ac_cv_prog_ac_ct_AS
13347 if test -n "$ac_ct_AS"; then
13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13349 printf "%s\n" "$ac_ct_AS" >&6; }
13350 else
13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352 printf "%s\n" "no" >&6; }
13353 fi
13354
13355 if test "x$ac_ct_AS" = x; then
13356 AS="false"
13357 else
13358 case $cross_compiling:$ac_tool_warned in
13359 yes:)
13360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13361 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13362 ac_tool_warned=yes ;;
13363 esac
13364 AS=$ac_ct_AS
13365 fi
13366 else
13367 AS="$ac_cv_prog_AS"
13368 fi
13369
13370 if test -n "$ac_tool_prefix"; then
13371 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13372 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13374 printf %s "checking for $ac_word... " >&6; }
13375 if test ${ac_cv_prog_DLLTOOL+y}
13376 then :
13377 printf %s "(cached) " >&6
13378 else case e in #(
13379 e) if test -n "$DLLTOOL"; then
13380 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13381 else
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13384 do
13385 IFS=$as_save_IFS
13386 case $as_dir in #(((
13387 '') as_dir=./ ;;
13388 */) ;;
13389 *) as_dir=$as_dir/ ;;
13390 esac
13391 for ac_exec_ext in '' $ac_executable_extensions; do
13392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13393 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13395 break 2
13396 fi
13397 done
13398 done
13399 IFS=$as_save_IFS
13400
13401 fi ;;
13402 esac
13403 fi
13404 DLLTOOL=$ac_cv_prog_DLLTOOL
13405 if test -n "$DLLTOOL"; then
13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13407 printf "%s\n" "$DLLTOOL" >&6; }
13408 else
13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 printf "%s\n" "no" >&6; }
13411 fi
13412
13413
13414 fi
13415 if test -z "$ac_cv_prog_DLLTOOL"; then
13416 ac_ct_DLLTOOL=$DLLTOOL
13417 # Extract the first word of "dlltool", so it can be a program name with args.
13418 set dummy dlltool; ac_word=$2
13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13420 printf %s "checking for $ac_word... " >&6; }
13421 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13422 then :
13423 printf %s "(cached) " >&6
13424 else case e in #(
13425 e) if test -n "$ac_ct_DLLTOOL"; then
13426 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13427 else
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13430 do
13431 IFS=$as_save_IFS
13432 case $as_dir in #(((
13433 '') as_dir=./ ;;
13434 */) ;;
13435 *) as_dir=$as_dir/ ;;
13436 esac
13437 for ac_exec_ext in '' $ac_executable_extensions; do
13438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13439 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13441 break 2
13442 fi
13443 done
13444 done
13445 IFS=$as_save_IFS
13446
13447 fi ;;
13448 esac
13449 fi
13450 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13451 if test -n "$ac_ct_DLLTOOL"; then
13452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13453 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13454 else
13455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 printf "%s\n" "no" >&6; }
13457 fi
13458
13459 if test "x$ac_ct_DLLTOOL" = x; then
13460 DLLTOOL="false"
13461 else
13462 case $cross_compiling:$ac_tool_warned in
13463 yes:)
13464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13465 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13466 ac_tool_warned=yes ;;
13467 esac
13468 DLLTOOL=$ac_ct_DLLTOOL
13469 fi
13470 else
13471 DLLTOOL="$ac_cv_prog_DLLTOOL"
13472 fi
13473
13474 if test -n "$ac_tool_prefix"; then
13475 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13476 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 printf %s "checking for $ac_word... " >&6; }
13479 if test ${ac_cv_prog_OBJDUMP+y}
13480 then :
13481 printf %s "(cached) " >&6
13482 else case e in #(
13483 e) if test -n "$OBJDUMP"; then
13484 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13485 else
13486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13487 for as_dir in $PATH
13488 do
13489 IFS=$as_save_IFS
13490 case $as_dir in #(((
13491 '') as_dir=./ ;;
13492 */) ;;
13493 *) as_dir=$as_dir/ ;;
13494 esac
13495 for ac_exec_ext in '' $ac_executable_extensions; do
13496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13497 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13499 break 2
13500 fi
13501 done
13502 done
13503 IFS=$as_save_IFS
13504
13505 fi ;;
13506 esac
13507 fi
13508 OBJDUMP=$ac_cv_prog_OBJDUMP
13509 if test -n "$OBJDUMP"; then
13510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13511 printf "%s\n" "$OBJDUMP" >&6; }
13512 else
13513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 printf "%s\n" "no" >&6; }
13515 fi
13516
13517
13518 fi
13519 if test -z "$ac_cv_prog_OBJDUMP"; then
13520 ac_ct_OBJDUMP=$OBJDUMP
13521 # Extract the first word of "objdump", so it can be a program name with args.
13522 set dummy objdump; ac_word=$2
13523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13524 printf %s "checking for $ac_word... " >&6; }
13525 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
13526 then :
13527 printf %s "(cached) " >&6
13528 else case e in #(
13529 e) if test -n "$ac_ct_OBJDUMP"; then
13530 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13531 else
13532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533 for as_dir in $PATH
13534 do
13535 IFS=$as_save_IFS
13536 case $as_dir in #(((
13537 '') as_dir=./ ;;
13538 */) ;;
13539 *) as_dir=$as_dir/ ;;
13540 esac
13541 for ac_exec_ext in '' $ac_executable_extensions; do
13542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13543 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13545 break 2
13546 fi
13547 done
13548 done
13549 IFS=$as_save_IFS
13550
13551 fi ;;
13552 esac
13553 fi
13554 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13555 if test -n "$ac_ct_OBJDUMP"; then
13556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13557 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
13558 else
13559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13560 printf "%s\n" "no" >&6; }
13561 fi
13562
13563 if test "x$ac_ct_OBJDUMP" = x; then
13564 OBJDUMP="false"
13565 else
13566 case $cross_compiling:$ac_tool_warned in
13567 yes:)
13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13569 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13570 ac_tool_warned=yes ;;
13571 esac
13572 OBJDUMP=$ac_ct_OBJDUMP
13573 fi
13574 else
13575 OBJDUMP="$ac_cv_prog_OBJDUMP"
13576 fi
13577
13578 ;;
13579 esac
13580
13581 test -z "$AS" && AS=as
13582
13583
13584
13585
13586
13587 test -z "$DLLTOOL" && DLLTOOL=dlltool
13588
13589
13590
13591
13592
13593 test -z "$OBJDUMP" && OBJDUMP=objdump
13594
13595
13596
13597
13598
13599
13600
13601 enable_dlopen=no
13602
13603
13604
13605 # Check whether --enable-shared was given.
13606 if test ${enable_shared+y}
13607 then :
13608 enableval=$enable_shared; p=${PACKAGE-default}
13609 case $enableval in
13610 yes) enable_shared=yes ;;
13611 no) enable_shared=no ;;
13612 *)
13613 enable_shared=no
13614 # Look at the argument we got. We use all the common list separators.
13615 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13616 for pkg in $enableval; do
13617 IFS=$lt_save_ifs
13618 if test "X$pkg" = "X$p"; then
13619 enable_shared=yes
13620 fi
13621 done
13622 IFS=$lt_save_ifs
13623 ;;
13624 esac
13625 else case e in #(
13626 e) enable_shared=yes ;;
13627 esac
13628 fi
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638 # Check whether --enable-static was given.
13639 if test ${enable_static+y}
13640 then :
13641 enableval=$enable_static; p=${PACKAGE-default}
13642 case $enableval in
13643 yes) enable_static=yes ;;
13644 no) enable_static=no ;;
13645 *)
13646 enable_static=no
13647 # Look at the argument we got. We use all the common list separators.
13648 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13649 for pkg in $enableval; do
13650 IFS=$lt_save_ifs
13651 if test "X$pkg" = "X$p"; then
13652 enable_static=yes
13653 fi
13654 done
13655 IFS=$lt_save_ifs
13656 ;;
13657 esac
13658 else case e in #(
13659 e) enable_static=yes ;;
13660 esac
13661 fi
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672 # Check whether --with-pic was given.
13673 if test ${with_pic+y}
13674 then :
13675 withval=$with_pic; lt_p=${PACKAGE-default}
13676 case $withval in
13677 yes|no) pic_mode=$withval ;;
13678 *)
13679 pic_mode=default
13680 # Look at the argument we got. We use all the common list separators.
13681 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13682 for lt_pkg in $withval; do
13683 IFS=$lt_save_ifs
13684 if test "X$lt_pkg" = "X$lt_p"; then
13685 pic_mode=yes
13686 fi
13687 done
13688 IFS=$lt_save_ifs
13689 ;;
13690 esac
13691 else case e in #(
13692 e) pic_mode=default ;;
13693 esac
13694 fi
13695
13696
13697
13698
13699
13700
13701
13702
13703 # Check whether --enable-fast-install was given.
13704 if test ${enable_fast_install+y}
13705 then :
13706 enableval=$enable_fast_install; p=${PACKAGE-default}
13707 case $enableval in
13708 yes) enable_fast_install=yes ;;
13709 no) enable_fast_install=no ;;
13710 *)
13711 enable_fast_install=no
13712 # Look at the argument we got. We use all the common list separators.
13713 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13714 for pkg in $enableval; do
13715 IFS=$lt_save_ifs
13716 if test "X$pkg" = "X$p"; then
13717 enable_fast_install=yes
13718 fi
13719 done
13720 IFS=$lt_save_ifs
13721 ;;
13722 esac
13723 else case e in #(
13724 e) enable_fast_install=yes ;;
13725 esac
13726 fi
13727
13728
13729
13730
13731
13732
13733
13734
13735 shared_archive_member_spec=
13736 case $host,$enable_shared in
13737 power*-*-aix[5-9]*,yes)
13738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
13739 printf %s "checking which variant of shared library versioning to provide... " >&6; }
13740
13741 # Check whether --with-aix-soname was given.
13742 if test ${with_aix_soname+y}
13743 then :
13744 withval=$with_aix_soname; case $withval in
13745 aix|svr4|both)
13746 ;;
13747 *)
13748 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
13749 ;;
13750 esac
13751 lt_cv_with_aix_soname=$with_aix_soname
13752 else case e in #(
13753 e) if test ${lt_cv_with_aix_soname+y}
13754 then :
13755 printf %s "(cached) " >&6
13756 else case e in #(
13757 e) lt_cv_with_aix_soname=aix ;;
13758 esac
13759 fi
13760
13761 with_aix_soname=$lt_cv_with_aix_soname ;;
13762 esac
13763 fi
13764
13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
13766 printf "%s\n" "$with_aix_soname" >&6; }
13767 if test aix != "$with_aix_soname"; then
13768 # For the AIX way of multilib, we name the shared archive member
13769 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
13770 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
13771 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
13772 # the AIX toolchain works better with OBJECT_MODE set (default 32).
13773 if test 64 = "${OBJECT_MODE-32}"; then
13774 shared_archive_member_spec=shr_64
13775 else
13776 shared_archive_member_spec=shr
13777 fi
13778 fi
13779 ;;
13780 *)
13781 with_aix_soname=aix
13782 ;;
13783 esac
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794 # This can be used to rebuild libtool when needed
13795 LIBTOOL_DEPS=$ltmain
13796
13797 # Always use our own libtool.
13798 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829 test -z "$LN_S" && LN_S="ln -s"
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844 if test -n "${ZSH_VERSION+set}"; then
13845 setopt NO_GLOB_SUBST
13846 fi
13847
13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13849 printf %s "checking for objdir... " >&6; }
13850 if test ${lt_cv_objdir+y}
13851 then :
13852 printf %s "(cached) " >&6
13853 else case e in #(
13854 e) rm -f .libs 2>/dev/null
13855 mkdir .libs 2>/dev/null
13856 if test -d .libs; then
13857 lt_cv_objdir=.libs
13858 else
13859 # MS-DOS does not allow filenames that begin with a dot.
13860 lt_cv_objdir=_libs
13861 fi
13862 rmdir .libs 2>/dev/null ;;
13863 esac
13864 fi
13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13866 printf "%s\n" "$lt_cv_objdir" >&6; }
13867 objdir=$lt_cv_objdir
13868
13869
13870
13871
13872
13873 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
13874
13875
13876
13877
13878 case $host_os in
13879 aix3*)
13880 # AIX sometimes has problems with the GCC collect2 program. For some
13881 # reason, if we set the COLLECT_NAMES environment variable, the problems
13882 # vanish in a puff of smoke.
13883 if test set != "${COLLECT_NAMES+set}"; then
13884 COLLECT_NAMES=
13885 export COLLECT_NAMES
13886 fi
13887 ;;
13888 esac
13889
13890 # Global variables:
13891 ofile=libtool
13892 can_build_shared=yes
13893
13894 # All known linkers require a '.a' archive for static linking (except MSVC,
13895 # which needs '.lib').
13896 libext=a
13897
13898 with_gnu_ld=$lt_cv_prog_gnu_ld
13899
13900 old_CC=$CC
13901 old_CFLAGS=$CFLAGS
13902
13903 # Set sane defaults for various variables
13904 test -z "$CC" && CC=cc
13905 test -z "$LTCC" && LTCC=$CC
13906 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13907 test -z "$LD" && LD=ld
13908 test -z "$ac_objext" && ac_objext=o
13909
13910 func_cc_basename $compiler
13911 cc_basename=$func_cc_basename_result
13912
13913
13914 # Only perform the check for file, if the check method requires it
13915 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13916 case $deplibs_check_method in
13917 file_magic*)
13918 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13920 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
13921 if test ${lt_cv_path_MAGIC_CMD+y}
13922 then :
13923 printf %s "(cached) " >&6
13924 else case e in #(
13925 e) case $MAGIC_CMD in
13926 [\\/*] | ?:[\\/]*)
13927 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13928 ;;
13929 *)
13930 lt_save_MAGIC_CMD=$MAGIC_CMD
13931 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13932 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13933 for ac_dir in $ac_dummy; do
13934 IFS=$lt_save_ifs
13935 test -z "$ac_dir" && ac_dir=.
13936 if test -f "$ac_dir/${ac_tool_prefix}file"; then
13937 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
13938 if test -n "$file_magic_test_file"; then
13939 case $deplibs_check_method in
13940 "file_magic "*)
13941 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13942 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13943 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13944 $EGREP "$file_magic_regex" > /dev/null; then
13945 :
13946 else
13947 cat <<_LT_EOF 1>&2
13948
13949 *** Warning: the command libtool uses to detect shared libraries,
13950 *** $file_magic_cmd, produces output that libtool cannot recognize.
13951 *** The result is that libtool may fail to recognize shared libraries
13952 *** as such. This will affect the creation of libtool libraries that
13953 *** depend on shared libraries, but programs linked with such libtool
13954 *** libraries will work regardless of this problem. Nevertheless, you
13955 *** may want to report the problem to your system manager and/or to
13956 *** [email protected]
13957
13958 _LT_EOF
13959 fi ;;
13960 esac
13961 fi
13962 break
13963 fi
13964 done
13965 IFS=$lt_save_ifs
13966 MAGIC_CMD=$lt_save_MAGIC_CMD
13967 ;;
13968 esac ;;
13969 esac
13970 fi
13971
13972 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13973 if test -n "$MAGIC_CMD"; then
13974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13975 printf "%s\n" "$MAGIC_CMD" >&6; }
13976 else
13977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13978 printf "%s\n" "no" >&6; }
13979 fi
13980
13981
13982
13983
13984
13985 if test -z "$lt_cv_path_MAGIC_CMD"; then
13986 if test -n "$ac_tool_prefix"; then
13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13988 printf %s "checking for file... " >&6; }
13989 if test ${lt_cv_path_MAGIC_CMD+y}
13990 then :
13991 printf %s "(cached) " >&6
13992 else case e in #(
13993 e) case $MAGIC_CMD in
13994 [\\/*] | ?:[\\/]*)
13995 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13996 ;;
13997 *)
13998 lt_save_MAGIC_CMD=$MAGIC_CMD
13999 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14000 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14001 for ac_dir in $ac_dummy; do
14002 IFS=$lt_save_ifs
14003 test -z "$ac_dir" && ac_dir=.
14004 if test -f "$ac_dir/file"; then
14005 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14006 if test -n "$file_magic_test_file"; then
14007 case $deplibs_check_method in
14008 "file_magic "*)
14009 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14010 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14011 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14012 $EGREP "$file_magic_regex" > /dev/null; then
14013 :
14014 else
14015 cat <<_LT_EOF 1>&2
14016
14017 *** Warning: the command libtool uses to detect shared libraries,
14018 *** $file_magic_cmd, produces output that libtool cannot recognize.
14019 *** The result is that libtool may fail to recognize shared libraries
14020 *** as such. This will affect the creation of libtool libraries that
14021 *** depend on shared libraries, but programs linked with such libtool
14022 *** libraries will work regardless of this problem. Nevertheless, you
14023 *** may want to report the problem to your system manager and/or to
14024 *** [email protected]
14025
14026 _LT_EOF
14027 fi ;;
14028 esac
14029 fi
14030 break
14031 fi
14032 done
14033 IFS=$lt_save_ifs
14034 MAGIC_CMD=$lt_save_MAGIC_CMD
14035 ;;
14036 esac ;;
14037 esac
14038 fi
14039
14040 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14041 if test -n "$MAGIC_CMD"; then
14042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14043 printf "%s\n" "$MAGIC_CMD" >&6; }
14044 else
14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 printf "%s\n" "no" >&6; }
14047 fi
14048
14049
14050 else
14051 MAGIC_CMD=:
14052 fi
14053 fi
14054
14055 fi
14056 ;;
14057 esac
14058
14059 # Use C for the default configuration in the libtool script
14060
14061 lt_save_CC=$CC
14062 ac_ext=c
14063 ac_cpp='$CPP $CPPFLAGS'
14064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14067
14068
14069 # Source file extension for C test sources.
14070 ac_ext=c
14071
14072 # Object file extension for compiled C test sources.
14073 objext=o
14074 objext=$objext
14075
14076 # Code to be used in simple compile tests
14077 lt_simple_compile_test_code="int some_variable = 0;"
14078
14079 # Code to be used in simple link tests
14080 lt_simple_link_test_code='int main(){return(0);}'
14081
14082
14083
14084
14085
14086
14087
14088 # If no C compiler was specified, use CC.
14089 LTCC=${LTCC-"$CC"}
14090
14091 # If no C compiler flags were specified, use CFLAGS.
14092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14093
14094 # Allow CC to be a program name with arguments.
14095 compiler=$CC
14096
14097 # Save the default compiler, since it gets overwritten when the other
14098 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14099 compiler_DEFAULT=$CC
14100
14101 # save warnings/boilerplate of simple test code
14102 ac_outfile=conftest.$ac_objext
14103 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14104 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14105 _lt_compiler_boilerplate=`cat conftest.err`
14106 $RM conftest*
14107
14108 ac_outfile=conftest.$ac_objext
14109 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14110 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14111 _lt_linker_boilerplate=`cat conftest.err`
14112 $RM -r conftest*
14113
14114
14115 ## CAVEAT EMPTOR:
14116 ## There is no encapsulation within the following macros, do not change
14117 ## the running order or otherwise move them around unless you know exactly
14118 ## what you are doing...
14119 if test -n "$compiler"; then
14120
14121 lt_prog_compiler_no_builtin_flag=
14122
14123 if test yes = "$GCC"; then
14124 case $cc_basename in
14125 nvcc*)
14126 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14127 *)
14128 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14129 esac
14130
14131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14132 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14133 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
14134 then :
14135 printf %s "(cached) " >&6
14136 else case e in #(
14137 e) lt_cv_prog_compiler_rtti_exceptions=no
14138 ac_outfile=conftest.$ac_objext
14139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14140 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14141 # Insert the option either (1) after the last *FLAGS variable, or
14142 # (2) before a word containing "conftest.", or (3) at the end.
14143 # Note that $ac_compile itself does not contain backslashes and begins
14144 # with a dollar sign (not a hyphen), so the echo should work correctly.
14145 # The option is referenced via a variable to avoid confusing sed.
14146 lt_compile=`echo "$ac_compile" | $SED \
14147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14149 -e 's:$: $lt_compiler_flag:'`
14150 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14151 (eval "$lt_compile" 2>conftest.err)
14152 ac_status=$?
14153 cat conftest.err >&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 if (exit $ac_status) && test -s "$ac_outfile"; then
14156 # The compiler can only warn and ignore the option if not recognized
14157 # So say no if there are warnings other than the usual output.
14158 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14160 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14161 lt_cv_prog_compiler_rtti_exceptions=yes
14162 fi
14163 fi
14164 $RM conftest*
14165 ;;
14166 esac
14167 fi
14168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14169 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14170
14171 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14172 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14173 else
14174 :
14175 fi
14176
14177 fi
14178
14179
14180
14181
14182
14183
14184 lt_prog_compiler_wl=
14185 lt_prog_compiler_pic=
14186 lt_prog_compiler_static=
14187
14188
14189 if test yes = "$GCC"; then
14190 lt_prog_compiler_wl='-Wl,'
14191 lt_prog_compiler_static='-static'
14192
14193 case $host_os in
14194 aix*)
14195 # All AIX code is PIC.
14196 if test ia64 = "$host_cpu"; then
14197 # AIX 5 now supports IA64 processor
14198 lt_prog_compiler_static='-Bstatic'
14199 fi
14200 lt_prog_compiler_pic='-fPIC'
14201 ;;
14202
14203 amigaos*)
14204 case $host_cpu in
14205 powerpc)
14206 # see comment about AmigaOS4 .so support
14207 lt_prog_compiler_pic='-fPIC'
14208 ;;
14209 m68k)
14210 # FIXME: we need at least 68020 code to build shared libraries, but
14211 # adding the '-m68020' flag to GCC prevents building anything better,
14212 # like '-m68040'.
14213 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14214 ;;
14215 esac
14216 ;;
14217
14218 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14219 # PIC is the default for these OSes.
14220 ;;
14221
14222 mingw* | cygwin* | pw32* | os2* | cegcc*)
14223 # This hack is so that the source file can tell whether it is being
14224 # built for inclusion in a dll (and should export symbols for example).
14225 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14226 # (--disable-auto-import) libraries
14227 lt_prog_compiler_pic='-DDLL_EXPORT'
14228 case $host_os in
14229 os2*)
14230 lt_prog_compiler_static='$wl-static'
14231 ;;
14232 esac
14233 ;;
14234
14235 darwin* | rhapsody*)
14236 # PIC is the default on this platform
14237 # Common symbols not allowed in MH_DYLIB files
14238 lt_prog_compiler_pic='-fno-common'
14239 ;;
14240
14241 haiku*)
14242 # PIC is the default for Haiku.
14243 # The "-static" flag exists, but is broken.
14244 lt_prog_compiler_static=
14245 ;;
14246
14247 hpux*)
14248 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14249 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14250 # sets the default TLS model and affects inlining.
14251 case $host_cpu in
14252 hppa*64*)
14253 # +Z the default
14254 ;;
14255 *)
14256 lt_prog_compiler_pic='-fPIC'
14257 ;;
14258 esac
14259 ;;
14260
14261 interix[3-9]*)
14262 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14263 # Instead, we relocate shared libraries at runtime.
14264 ;;
14265
14266 msdosdjgpp*)
14267 # Just because we use GCC doesn't mean we suddenly get shared libraries
14268 # on systems that don't support them.
14269 lt_prog_compiler_can_build_shared=no
14270 enable_shared=no
14271 ;;
14272
14273 *nto* | *qnx*)
14274 # QNX uses GNU C++, but need to define -shared option too, otherwise
14275 # it will coredump.
14276 lt_prog_compiler_pic='-fPIC -shared'
14277 ;;
14278
14279 sysv4*MP*)
14280 if test -d /usr/nec; then
14281 lt_prog_compiler_pic=-Kconform_pic
14282 fi
14283 ;;
14284
14285 *)
14286 lt_prog_compiler_pic='-fPIC'
14287 ;;
14288 esac
14289
14290 case $cc_basename in
14291 nvcc*) # Cuda Compiler Driver 2.2
14292 lt_prog_compiler_wl='-Xlinker '
14293 if test -n "$lt_prog_compiler_pic"; then
14294 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14295 fi
14296 ;;
14297 esac
14298 else
14299 # PORTME Check for flag to pass linker flags through the system compiler.
14300 case $host_os in
14301 aix*)
14302 lt_prog_compiler_wl='-Wl,'
14303 if test ia64 = "$host_cpu"; then
14304 # AIX 5 now supports IA64 processor
14305 lt_prog_compiler_static='-Bstatic'
14306 else
14307 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14308 fi
14309 ;;
14310
14311 darwin* | rhapsody*)
14312 # PIC is the default on this platform
14313 # Common symbols not allowed in MH_DYLIB files
14314 lt_prog_compiler_pic='-fno-common'
14315 case $cc_basename in
14316 nagfor*)
14317 # NAG Fortran compiler
14318 lt_prog_compiler_wl='-Wl,-Wl,,'
14319 lt_prog_compiler_pic='-PIC'
14320 lt_prog_compiler_static='-Bstatic'
14321 ;;
14322 esac
14323 ;;
14324
14325 mingw* | cygwin* | pw32* | os2* | cegcc*)
14326 # This hack is so that the source file can tell whether it is being
14327 # built for inclusion in a dll (and should export symbols for example).
14328 lt_prog_compiler_pic='-DDLL_EXPORT'
14329 case $host_os in
14330 os2*)
14331 lt_prog_compiler_static='$wl-static'
14332 ;;
14333 esac
14334 ;;
14335
14336 hpux9* | hpux10* | hpux11*)
14337 lt_prog_compiler_wl='-Wl,'
14338 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14339 # not for PA HP-UX.
14340 case $host_cpu in
14341 hppa*64*|ia64*)
14342 # +Z the default
14343 ;;
14344 *)
14345 lt_prog_compiler_pic='+Z'
14346 ;;
14347 esac
14348 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14349 lt_prog_compiler_static='$wl-a ${wl}archive'
14350 ;;
14351
14352 irix5* | irix6* | nonstopux*)
14353 lt_prog_compiler_wl='-Wl,'
14354 # PIC (with -KPIC) is the default.
14355 lt_prog_compiler_static='-non_shared'
14356 ;;
14357
14358 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14359 case $cc_basename in
14360 # old Intel for x86_64, which still supported -KPIC.
14361 ecc*)
14362 lt_prog_compiler_wl='-Wl,'
14363 lt_prog_compiler_pic='-KPIC'
14364 lt_prog_compiler_static='-static'
14365 ;;
14366 # icc used to be incompatible with GCC.
14367 # ICC 10 doesn't accept -KPIC any more.
14368 icc* | ifort*)
14369 lt_prog_compiler_wl='-Wl,'
14370 lt_prog_compiler_pic='-fPIC'
14371 lt_prog_compiler_static='-static'
14372 ;;
14373 # Lahey Fortran 8.1.
14374 lf95*)
14375 lt_prog_compiler_wl='-Wl,'
14376 lt_prog_compiler_pic='--shared'
14377 lt_prog_compiler_static='--static'
14378 ;;
14379 nagfor*)
14380 # NAG Fortran compiler
14381 lt_prog_compiler_wl='-Wl,-Wl,,'
14382 lt_prog_compiler_pic='-PIC'
14383 lt_prog_compiler_static='-Bstatic'
14384 ;;
14385 tcc*)
14386 # Fabrice Bellard et al's Tiny C Compiler
14387 lt_prog_compiler_wl='-Wl,'
14388 lt_prog_compiler_pic='-fPIC'
14389 lt_prog_compiler_static='-static'
14390 ;;
14391 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14392 # Portland Group compilers (*not* the Pentium gcc compiler,
14393 # which looks to be a dead project)
14394 lt_prog_compiler_wl='-Wl,'
14395 lt_prog_compiler_pic='-fpic'
14396 lt_prog_compiler_static='-Bstatic'
14397 ;;
14398 ccc*)
14399 lt_prog_compiler_wl='-Wl,'
14400 # All Alpha code is PIC.
14401 lt_prog_compiler_static='-non_shared'
14402 ;;
14403 xl* | bgxl* | bgf* | mpixl*)
14404 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14405 lt_prog_compiler_wl='-Wl,'
14406 lt_prog_compiler_pic='-qpic'
14407 lt_prog_compiler_static='-qstaticlink'
14408 ;;
14409 *)
14410 case `$CC -V 2>&1 | sed 5q` in
14411 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14412 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14413 lt_prog_compiler_pic='-KPIC'
14414 lt_prog_compiler_static='-Bstatic'
14415 lt_prog_compiler_wl=''
14416 ;;
14417 *Sun\ F* | *Sun*Fortran*)
14418 lt_prog_compiler_pic='-KPIC'
14419 lt_prog_compiler_static='-Bstatic'
14420 lt_prog_compiler_wl='-Qoption ld '
14421 ;;
14422 *Sun\ C*)
14423 # Sun C 5.9
14424 lt_prog_compiler_pic='-KPIC'
14425 lt_prog_compiler_static='-Bstatic'
14426 lt_prog_compiler_wl='-Wl,'
14427 ;;
14428 *Intel*\ [CF]*Compiler*)
14429 lt_prog_compiler_wl='-Wl,'
14430 lt_prog_compiler_pic='-fPIC'
14431 lt_prog_compiler_static='-static'
14432 ;;
14433 *Portland\ Group*)
14434 lt_prog_compiler_wl='-Wl,'
14435 lt_prog_compiler_pic='-fpic'
14436 lt_prog_compiler_static='-Bstatic'
14437 ;;
14438 esac
14439 ;;
14440 esac
14441 ;;
14442
14443 newsos6)
14444 lt_prog_compiler_pic='-KPIC'
14445 lt_prog_compiler_static='-Bstatic'
14446 ;;
14447
14448 *nto* | *qnx*)
14449 # QNX uses GNU C++, but need to define -shared option too, otherwise
14450 # it will coredump.
14451 lt_prog_compiler_pic='-fPIC -shared'
14452 ;;
14453
14454 osf3* | osf4* | osf5*)
14455 lt_prog_compiler_wl='-Wl,'
14456 # All OSF/1 code is PIC.
14457 lt_prog_compiler_static='-non_shared'
14458 ;;
14459
14460 rdos*)
14461 lt_prog_compiler_static='-non_shared'
14462 ;;
14463
14464 solaris*)
14465 lt_prog_compiler_pic='-KPIC'
14466 lt_prog_compiler_static='-Bstatic'
14467 case $cc_basename in
14468 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14469 lt_prog_compiler_wl='-Qoption ld ';;
14470 *)
14471 lt_prog_compiler_wl='-Wl,';;
14472 esac
14473 ;;
14474
14475 sunos4*)
14476 lt_prog_compiler_wl='-Qoption ld '
14477 lt_prog_compiler_pic='-PIC'
14478 lt_prog_compiler_static='-Bstatic'
14479 ;;
14480
14481 sysv4 | sysv4.2uw2* | sysv4.3*)
14482 lt_prog_compiler_wl='-Wl,'
14483 lt_prog_compiler_pic='-KPIC'
14484 lt_prog_compiler_static='-Bstatic'
14485 ;;
14486
14487 sysv4*MP*)
14488 if test -d /usr/nec; then
14489 lt_prog_compiler_pic='-Kconform_pic'
14490 lt_prog_compiler_static='-Bstatic'
14491 fi
14492 ;;
14493
14494 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14495 lt_prog_compiler_wl='-Wl,'
14496 lt_prog_compiler_pic='-KPIC'
14497 lt_prog_compiler_static='-Bstatic'
14498 ;;
14499
14500 unicos*)
14501 lt_prog_compiler_wl='-Wl,'
14502 lt_prog_compiler_can_build_shared=no
14503 ;;
14504
14505 uts4*)
14506 lt_prog_compiler_pic='-pic'
14507 lt_prog_compiler_static='-Bstatic'
14508 ;;
14509
14510 *)
14511 lt_prog_compiler_can_build_shared=no
14512 ;;
14513 esac
14514 fi
14515
14516 case $host_os in
14517 # For platforms that do not support PIC, -DPIC is meaningless:
14518 *djgpp*)
14519 lt_prog_compiler_pic=
14520 ;;
14521 *)
14522 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14523 ;;
14524 esac
14525
14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14527 printf %s "checking for $compiler option to produce PIC... " >&6; }
14528 if test ${lt_cv_prog_compiler_pic+y}
14529 then :
14530 printf %s "(cached) " >&6
14531 else case e in #(
14532 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14533 esac
14534 fi
14535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14536 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14537 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14538
14539 #
14540 # Check to make sure the PIC flag actually works.
14541 #
14542 if test -n "$lt_prog_compiler_pic"; then
14543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14544 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14545 if test ${lt_cv_prog_compiler_pic_works+y}
14546 then :
14547 printf %s "(cached) " >&6
14548 else case e in #(
14549 e) lt_cv_prog_compiler_pic_works=no
14550 ac_outfile=conftest.$ac_objext
14551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14552 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14553 # Insert the option either (1) after the last *FLAGS variable, or
14554 # (2) before a word containing "conftest.", or (3) at the end.
14555 # Note that $ac_compile itself does not contain backslashes and begins
14556 # with a dollar sign (not a hyphen), so the echo should work correctly.
14557 # The option is referenced via a variable to avoid confusing sed.
14558 lt_compile=`echo "$ac_compile" | $SED \
14559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14561 -e 's:$: $lt_compiler_flag:'`
14562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14563 (eval "$lt_compile" 2>conftest.err)
14564 ac_status=$?
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 if (exit $ac_status) && test -s "$ac_outfile"; then
14568 # The compiler can only warn and ignore the option if not recognized
14569 # So say no if there are warnings other than the usual output.
14570 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14572 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14573 lt_cv_prog_compiler_pic_works=yes
14574 fi
14575 fi
14576 $RM conftest*
14577 ;;
14578 esac
14579 fi
14580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14581 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14582
14583 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14584 case $lt_prog_compiler_pic in
14585 "" | " "*) ;;
14586 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14587 esac
14588 else
14589 lt_prog_compiler_pic=
14590 lt_prog_compiler_can_build_shared=no
14591 fi
14592
14593 fi
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605 #
14606 # Check to make sure the static flag actually works.
14607 #
14608 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14610 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14611 if test ${lt_cv_prog_compiler_static_works+y}
14612 then :
14613 printf %s "(cached) " >&6
14614 else case e in #(
14615 e) lt_cv_prog_compiler_static_works=no
14616 save_LDFLAGS=$LDFLAGS
14617 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14618 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14619 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14620 # The linker can only warn and ignore the option if not recognized
14621 # So say no if there are warnings
14622 if test -s conftest.err; then
14623 # Append any errors to the config.log.
14624 cat conftest.err 1>&5
14625 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14626 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14627 if diff conftest.exp conftest.er2 >/dev/null; then
14628 lt_cv_prog_compiler_static_works=yes
14629 fi
14630 else
14631 lt_cv_prog_compiler_static_works=yes
14632 fi
14633 fi
14634 $RM -r conftest*
14635 LDFLAGS=$save_LDFLAGS
14636 ;;
14637 esac
14638 fi
14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14640 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14641
14642 if test yes = "$lt_cv_prog_compiler_static_works"; then
14643 :
14644 else
14645 lt_prog_compiler_static=
14646 fi
14647
14648
14649
14650
14651
14652
14653
14654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14655 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14656 if test ${lt_cv_prog_compiler_c_o+y}
14657 then :
14658 printf %s "(cached) " >&6
14659 else case e in #(
14660 e) lt_cv_prog_compiler_c_o=no
14661 $RM -r conftest 2>/dev/null
14662 mkdir conftest
14663 cd conftest
14664 mkdir out
14665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14666
14667 lt_compiler_flag="-o out/conftest2.$ac_objext"
14668 # Insert the option either (1) after the last *FLAGS variable, or
14669 # (2) before a word containing "conftest.", or (3) at the end.
14670 # Note that $ac_compile itself does not contain backslashes and begins
14671 # with a dollar sign (not a hyphen), so the echo should work correctly.
14672 lt_compile=`echo "$ac_compile" | $SED \
14673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14675 -e 's:$: $lt_compiler_flag:'`
14676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14677 (eval "$lt_compile" 2>out/conftest.err)
14678 ac_status=$?
14679 cat out/conftest.err >&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14682 then
14683 # The compiler can only warn and ignore the option if not recognized
14684 # So say no if there are warnings
14685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14686 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14687 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14688 lt_cv_prog_compiler_c_o=yes
14689 fi
14690 fi
14691 chmod u+w . 2>&5
14692 $RM conftest*
14693 # SGI C++ compiler will create directory out/ii_files/ for
14694 # template instantiation
14695 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14696 $RM out/* && rmdir out
14697 cd ..
14698 $RM -r conftest
14699 $RM conftest*
14700 ;;
14701 esac
14702 fi
14703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14704 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
14705
14706
14707
14708
14709
14710
14711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14712 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14713 if test ${lt_cv_prog_compiler_c_o+y}
14714 then :
14715 printf %s "(cached) " >&6
14716 else case e in #(
14717 e) lt_cv_prog_compiler_c_o=no
14718 $RM -r conftest 2>/dev/null
14719 mkdir conftest
14720 cd conftest
14721 mkdir out
14722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14723
14724 lt_compiler_flag="-o out/conftest2.$ac_objext"
14725 # Insert the option either (1) after the last *FLAGS variable, or
14726 # (2) before a word containing "conftest.", or (3) at the end.
14727 # Note that $ac_compile itself does not contain backslashes and begins
14728 # with a dollar sign (not a hyphen), so the echo should work correctly.
14729 lt_compile=`echo "$ac_compile" | $SED \
14730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14732 -e 's:$: $lt_compiler_flag:'`
14733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14734 (eval "$lt_compile" 2>out/conftest.err)
14735 ac_status=$?
14736 cat out/conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14739 then
14740 # The compiler can only warn and ignore the option if not recognized
14741 # So say no if there are warnings
14742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14745 lt_cv_prog_compiler_c_o=yes
14746 fi
14747 fi
14748 chmod u+w . 2>&5
14749 $RM conftest*
14750 # SGI C++ compiler will create directory out/ii_files/ for
14751 # template instantiation
14752 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14753 $RM out/* && rmdir out
14754 cd ..
14755 $RM -r conftest
14756 $RM conftest*
14757 ;;
14758 esac
14759 fi
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14761 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
14762
14763
14764
14765
14766 hard_links=nottested
14767 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
14768 # do not overwrite the value of need_locks provided by the user
14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14770 printf %s "checking if we can lock with hard links... " >&6; }
14771 hard_links=yes
14772 $RM conftest*
14773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14774 touch conftest.a
14775 ln conftest.a conftest.b 2>&5 || hard_links=no
14776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14778 printf "%s\n" "$hard_links" >&6; }
14779 if test no = "$hard_links"; then
14780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14781 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14782 need_locks=warn
14783 fi
14784 else
14785 need_locks=no
14786 fi
14787
14788
14789
14790
14791
14792
14793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14794 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14795
14796 runpath_var=
14797 allow_undefined_flag=
14798 always_export_symbols=no
14799 archive_cmds=
14800 archive_expsym_cmds=
14801 compiler_needs_object=no
14802 enable_shared_with_static_runtimes=no
14803 export_dynamic_flag_spec=
14804 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14805 hardcode_automatic=no
14806 hardcode_direct=no
14807 hardcode_direct_absolute=no
14808 hardcode_libdir_flag_spec=
14809 hardcode_libdir_separator=
14810 hardcode_minus_L=no
14811 hardcode_shlibpath_var=unsupported
14812 inherit_rpath=no
14813 link_all_deplibs=unknown
14814 module_cmds=
14815 module_expsym_cmds=
14816 old_archive_from_new_cmds=
14817 old_archive_from_expsyms_cmds=
14818 thread_safe_flag_spec=
14819 whole_archive_flag_spec=
14820 # include_expsyms should be a list of space-separated symbols to be *always*
14821 # included in the symbol list
14822 include_expsyms=
14823 # exclude_expsyms can be an extended regexp of symbols to exclude
14824 # it will be wrapped by ' (' and ')$', so one must not match beginning or
14825 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
14826 # as well as any symbol that contains 'd'.
14827 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14828 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14829 # platforms (ab)use it in PIC code, but their linkers get confused if
14830 # the symbol is explicitly referenced. Since portable code cannot
14831 # rely on this symbol name, it's probably fine to never include it in
14832 # preloaded symbol tables.
14833 # Exclude shared library initialization/finalization symbols.
14834 extract_expsyms_cmds=
14835
14836 case $host_os in
14837 cygwin* | mingw* | pw32* | cegcc*)
14838 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14839 # When not using gcc, we currently assume that we are using
14840 # Microsoft Visual C++.
14841 if test yes != "$GCC"; then
14842 with_gnu_ld=no
14843 fi
14844 ;;
14845 interix*)
14846 # we just hope/assume this is gcc and not c89 (= MSVC++)
14847 with_gnu_ld=yes
14848 ;;
14849 openbsd* | bitrig*)
14850 with_gnu_ld=no
14851 ;;
14852 esac
14853
14854 ld_shlibs=yes
14855
14856 # On some targets, GNU ld is compatible enough with the native linker
14857 # that we're better off using the native interface for both.
14858 lt_use_gnu_ld_interface=no
14859 if test yes = "$with_gnu_ld"; then
14860 case $host_os in
14861 aix*)
14862 # The AIX port of GNU ld has always aspired to compatibility
14863 # with the native linker. However, as the warning in the GNU ld
14864 # block says, versions before 2.19.5* couldn't really create working
14865 # shared libraries, regardless of the interface used.
14866 case `$LD -v 2>&1` in
14867 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14868 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14869 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14870 *)
14871 lt_use_gnu_ld_interface=yes
14872 ;;
14873 esac
14874 ;;
14875 *)
14876 lt_use_gnu_ld_interface=yes
14877 ;;
14878 esac
14879 fi
14880
14881 if test yes = "$lt_use_gnu_ld_interface"; then
14882 # If archive_cmds runs LD, not CC, wlarc should be empty
14883 wlarc='$wl'
14884
14885 # Set some defaults for GNU ld with shared library support. These
14886 # are reset later if shared libraries are not supported. Putting them
14887 # here allows them to be overridden if necessary.
14888 runpath_var=LD_RUN_PATH
14889 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14890 export_dynamic_flag_spec='$wl--export-dynamic'
14891 # ancient GNU ld didn't support --whole-archive et. al.
14892 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14893 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14894 else
14895 whole_archive_flag_spec=
14896 fi
14897 supports_anon_versioning=no
14898 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
14899 *GNU\ gold*) supports_anon_versioning=yes ;;
14900 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14901 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14902 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14903 *\ 2.11.*) ;; # other 2.11 versions
14904 *) supports_anon_versioning=yes ;;
14905 esac
14906
14907 # See if GNU ld supports shared libraries.
14908 case $host_os in
14909 aix[3-9]*)
14910 # On AIX/PPC, the GNU linker is very broken
14911 if test ia64 != "$host_cpu"; then
14912 ld_shlibs=no
14913 cat <<_LT_EOF 1>&2
14914
14915 *** Warning: the GNU linker, at least up to release 2.19, is reported
14916 *** to be unable to reliably create shared libraries on AIX.
14917 *** Therefore, libtool is disabling shared libraries support. If you
14918 *** really care for shared libraries, you may want to install binutils
14919 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14920 *** You will then need to restart the configuration process.
14921
14922 _LT_EOF
14923 fi
14924 ;;
14925
14926 amigaos*)
14927 case $host_cpu in
14928 powerpc)
14929 # see comment about AmigaOS4 .so support
14930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14931 archive_expsym_cmds=''
14932 ;;
14933 m68k)
14934 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)'
14935 hardcode_libdir_flag_spec='-L$libdir'
14936 hardcode_minus_L=yes
14937 ;;
14938 esac
14939 ;;
14940
14941 beos*)
14942 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14943 allow_undefined_flag=unsupported
14944 # Joseph Beckenbach <[email protected]> says some releases of gcc
14945 # support --undefined. This deserves some investigation. FIXME
14946 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14947 else
14948 ld_shlibs=no
14949 fi
14950 ;;
14951
14952 cygwin* | mingw* | pw32* | cegcc*)
14953 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14954 # as there is no search path for DLLs.
14955 hardcode_libdir_flag_spec='-L$libdir'
14956 export_dynamic_flag_spec='$wl--export-all-symbols'
14957 allow_undefined_flag=unsupported
14958 always_export_symbols=no
14959 enable_shared_with_static_runtimes=yes
14960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14961 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14962
14963 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14965 # If the export-symbols file already is a .def file, use it as
14966 # is; otherwise, prepend EXPORTS...
14967 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14968 cp $export_symbols $output_objdir/$soname.def;
14969 else
14970 echo EXPORTS > $output_objdir/$soname.def;
14971 cat $export_symbols >> $output_objdir/$soname.def;
14972 fi~
14973 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14974 else
14975 ld_shlibs=no
14976 fi
14977 ;;
14978
14979 haiku*)
14980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14981 link_all_deplibs=yes
14982 ;;
14983
14984 os2*)
14985 hardcode_libdir_flag_spec='-L$libdir'
14986 hardcode_minus_L=yes
14987 allow_undefined_flag=unsupported
14988 shrext_cmds=.dll
14989 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14990 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14991 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14992 $ECHO EXPORTS >> $output_objdir/$libname.def~
14993 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14994 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14995 emximp -o $lib $output_objdir/$libname.def'
14996 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14997 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14998 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14999 $ECHO EXPORTS >> $output_objdir/$libname.def~
15000 prefix_cmds="$SED"~
15001 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15002 prefix_cmds="$prefix_cmds -e 1d";
15003 fi~
15004 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15005 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15006 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15007 emximp -o $lib $output_objdir/$libname.def'
15008 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15009 enable_shared_with_static_runtimes=yes
15010 ;;
15011
15012 interix[3-9]*)
15013 hardcode_direct=no
15014 hardcode_shlibpath_var=no
15015 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15016 export_dynamic_flag_spec='$wl-E'
15017 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15018 # Instead, shared libraries are loaded at an image base (0x10000000 by
15019 # default) and relocated if they conflict, which is a slow very memory
15020 # consuming and fragmenting process. To avoid this, we pick a random,
15021 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15022 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15023 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15024 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15025 ;;
15026
15027 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15028 tmp_diet=no
15029 if test linux-dietlibc = "$host_os"; then
15030 case $cc_basename in
15031 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15032 esac
15033 fi
15034 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15035 && test no = "$tmp_diet"
15036 then
15037 tmp_addflag=' $pic_flag'
15038 tmp_sharedflag='-shared'
15039 case $cc_basename,$host_cpu in
15040 pgcc*) # Portland Group C compiler
15041 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15042 tmp_addflag=' $pic_flag'
15043 ;;
15044 pgf77* | pgf90* | pgf95* | pgfortran*)
15045 # Portland Group f77 and f90 compilers
15046 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15047 tmp_addflag=' $pic_flag -Mnomain' ;;
15048 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15049 tmp_addflag=' -i_dynamic' ;;
15050 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15051 tmp_addflag=' -i_dynamic -nofor_main' ;;
15052 ifc* | ifort*) # Intel Fortran compiler
15053 tmp_addflag=' -nofor_main' ;;
15054 lf95*) # Lahey Fortran 8.1
15055 whole_archive_flag_spec=
15056 tmp_sharedflag='--shared' ;;
15057 nagfor*) # NAGFOR 5.3
15058 tmp_sharedflag='-Wl,-shared' ;;
15059 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15060 tmp_sharedflag='-qmkshrobj'
15061 tmp_addflag= ;;
15062 nvcc*) # Cuda Compiler Driver 2.2
15063 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15064 compiler_needs_object=yes
15065 ;;
15066 esac
15067 case `$CC -V 2>&1 | sed 5q` in
15068 *Sun\ C*) # Sun C 5.9
15069 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15070 compiler_needs_object=yes
15071 tmp_sharedflag='-G' ;;
15072 *Sun\ F*) # Sun Fortran 8.3
15073 tmp_sharedflag='-G' ;;
15074 esac
15075 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15076
15077 if test yes = "$supports_anon_versioning"; then
15078 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15079 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15080 echo "local: *; };" >> $output_objdir/$libname.ver~
15081 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15082 fi
15083
15084 case $cc_basename in
15085 tcc*)
15086 export_dynamic_flag_spec='-rdynamic'
15087 ;;
15088 xlf* | bgf* | bgxlf* | mpixlf*)
15089 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15090 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15091 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15092 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15093 if test yes = "$supports_anon_versioning"; then
15094 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15095 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15096 echo "local: *; };" >> $output_objdir/$libname.ver~
15097 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15098 fi
15099 ;;
15100 esac
15101 else
15102 ld_shlibs=no
15103 fi
15104 ;;
15105
15106 netbsd*)
15107 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15108 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15109 wlarc=
15110 else
15111 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15112 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15113 fi
15114 ;;
15115
15116 solaris*)
15117 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15118 ld_shlibs=no
15119 cat <<_LT_EOF 1>&2
15120
15121 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15122 *** create shared libraries on Solaris systems. Therefore, libtool
15123 *** is disabling shared libraries support. We urge you to upgrade GNU
15124 *** binutils to release 2.9.1 or newer. Another option is to modify
15125 *** your PATH or compiler configuration so that the native linker is
15126 *** used, and then restart.
15127
15128 _LT_EOF
15129 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15130 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15131 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15132 else
15133 ld_shlibs=no
15134 fi
15135 ;;
15136
15137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15138 case `$LD -v 2>&1` in
15139 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15140 ld_shlibs=no
15141 cat <<_LT_EOF 1>&2
15142
15143 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15144 *** reliably create shared libraries on SCO systems. Therefore, libtool
15145 *** is disabling shared libraries support. We urge you to upgrade GNU
15146 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15147 *** your PATH or compiler configuration so that the native linker is
15148 *** used, and then restart.
15149
15150 _LT_EOF
15151 ;;
15152 *)
15153 # For security reasons, it is highly recommended that you always
15154 # use absolute paths for naming shared libraries, and exclude the
15155 # DT_RUNPATH tag from executables and libraries. But doing so
15156 # requires that you compile everything twice, which is a pain.
15157 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15158 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15160 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15161 else
15162 ld_shlibs=no
15163 fi
15164 ;;
15165 esac
15166 ;;
15167
15168 sunos4*)
15169 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15170 wlarc=
15171 hardcode_direct=yes
15172 hardcode_shlibpath_var=no
15173 ;;
15174
15175 *)
15176 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15177 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15178 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15179 else
15180 ld_shlibs=no
15181 fi
15182 ;;
15183 esac
15184
15185 if test no = "$ld_shlibs"; then
15186 runpath_var=
15187 hardcode_libdir_flag_spec=
15188 export_dynamic_flag_spec=
15189 whole_archive_flag_spec=
15190 fi
15191 else
15192 # PORTME fill in a description of your system's linker (not GNU ld)
15193 case $host_os in
15194 aix3*)
15195 allow_undefined_flag=unsupported
15196 always_export_symbols=yes
15197 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'
15198 # Note: this linker hardcodes the directories in LIBPATH if there
15199 # are no directories specified by -L.
15200 hardcode_minus_L=yes
15201 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15202 # Neither direct hardcoding nor static linking is supported with a
15203 # broken collect2.
15204 hardcode_direct=unsupported
15205 fi
15206 ;;
15207
15208 aix[4-9]*)
15209 if test ia64 = "$host_cpu"; then
15210 # On IA64, the linker does run time linking by default, so we don't
15211 # have to do anything special.
15212 aix_use_runtimelinking=no
15213 exp_sym_flag='-Bexport'
15214 no_entry_flag=
15215 else
15216 # If we're using GNU nm, then we don't want the "-C" option.
15217 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15218 # Without the "-l" option, or with the "-B" option, AIX nm treats
15219 # weak defined symbols like other global defined symbols, whereas
15220 # GNU nm marks them as "W".
15221 # While the 'weak' keyword is ignored in the Export File, we need
15222 # it in the Import File for the 'aix-soname' feature, so we have
15223 # to replace the "-B" option with "-P" for AIX nm.
15224 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15225 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15226 else
15227 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15228 fi
15229 aix_use_runtimelinking=no
15230
15231 # Test if we are trying to use run time linking or normal
15232 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15233 # have runtime linking enabled, and use it for executables.
15234 # For shared libraries, we enable/disable runtime linking
15235 # depending on the kind of the shared library created -
15236 # when "with_aix_soname,aix_use_runtimelinking" is:
15237 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15238 # "aix,yes" lib.so shared, rtl:yes, for executables
15239 # lib.a static archive
15240 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15241 # lib.a(lib.so.V) shared, rtl:no, for executables
15242 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15243 # lib.a(lib.so.V) shared, rtl:no
15244 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15245 # lib.a static archive
15246 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15247 for ld_flag in $LDFLAGS; do
15248 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15249 aix_use_runtimelinking=yes
15250 break
15251 fi
15252 done
15253 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15254 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15255 # so we don't have lib.a shared libs to link our executables.
15256 # We have to force runtime linking in this case.
15257 aix_use_runtimelinking=yes
15258 LDFLAGS="$LDFLAGS -Wl,-brtl"
15259 fi
15260 ;;
15261 esac
15262
15263 exp_sym_flag='-bexport'
15264 no_entry_flag='-bnoentry'
15265 fi
15266
15267 # When large executables or shared objects are built, AIX ld can
15268 # have problems creating the table of contents. If linking a library
15269 # or program results in "error TOC overflow" add -mminimal-toc to
15270 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15271 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15272
15273 archive_cmds=''
15274 hardcode_direct=yes
15275 hardcode_direct_absolute=yes
15276 hardcode_libdir_separator=':'
15277 link_all_deplibs=yes
15278 file_list_spec='$wl-f,'
15279 case $with_aix_soname,$aix_use_runtimelinking in
15280 aix,*) ;; # traditional, no import file
15281 svr4,* | *,yes) # use import file
15282 # The Import File defines what to hardcode.
15283 hardcode_direct=no
15284 hardcode_direct_absolute=no
15285 ;;
15286 esac
15287
15288 if test yes = "$GCC"; then
15289 case $host_os in aix4.[012]|aix4.[012].*)
15290 # We only want to do this on AIX 4.2 and lower, the check
15291 # below for broken collect2 doesn't work under 4.3+
15292 collect2name=`$CC -print-prog-name=collect2`
15293 if test -f "$collect2name" &&
15294 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15295 then
15296 # We have reworked collect2
15297 :
15298 else
15299 # We have old collect2
15300 hardcode_direct=unsupported
15301 # It fails to find uninstalled libraries when the uninstalled
15302 # path is not listed in the libpath. Setting hardcode_minus_L
15303 # to unsupported forces relinking
15304 hardcode_minus_L=yes
15305 hardcode_libdir_flag_spec='-L$libdir'
15306 hardcode_libdir_separator=
15307 fi
15308 ;;
15309 esac
15310 shared_flag='-shared'
15311 if test yes = "$aix_use_runtimelinking"; then
15312 shared_flag="$shared_flag "'$wl-G'
15313 fi
15314 # Need to ensure runtime linking is disabled for the traditional
15315 # shared library, or the linker may eventually find shared libraries
15316 # /with/ Import File - we do not want to mix them.
15317 shared_flag_aix='-shared'
15318 shared_flag_svr4='-shared $wl-G'
15319 else
15320 # not using gcc
15321 if test ia64 = "$host_cpu"; then
15322 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15323 # chokes on -Wl,-G. The following line is correct:
15324 shared_flag='-G'
15325 else
15326 if test yes = "$aix_use_runtimelinking"; then
15327 shared_flag='$wl-G'
15328 else
15329 shared_flag='$wl-bM:SRE'
15330 fi
15331 shared_flag_aix='$wl-bM:SRE'
15332 shared_flag_svr4='$wl-G'
15333 fi
15334 fi
15335
15336 export_dynamic_flag_spec='$wl-bexpall'
15337 # It seems that -bexpall does not export symbols beginning with
15338 # underscore (_), so it is better to generate a list of symbols to export.
15339 always_export_symbols=yes
15340 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15341 # Warning - without using the other runtime loading flags (-brtl),
15342 # -berok will link without error, but may produce a broken library.
15343 allow_undefined_flag='-berok'
15344 # Determine the default libpath from the value encoded in an
15345 # empty executable.
15346 if test set = "${lt_cv_aix_libpath+set}"; then
15347 aix_libpath=$lt_cv_aix_libpath
15348 else
15349 if test ${lt_cv_aix_libpath_+y}
15350 then :
15351 printf %s "(cached) " >&6
15352 else case e in #(
15353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15355
15356 int
15357 main (void)
15358 {
15359
15360 ;
15361 return 0;
15362 }
15363 _ACEOF
15364 if ac_fn_c_try_link "$LINENO"
15365 then :
15366
15367 lt_aix_libpath_sed='
15368 /Import File Strings/,/^$/ {
15369 /^0/ {
15370 s/^0 *\([^ ]*\) *$/\1/
15371 p
15372 }
15373 }'
15374 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15375 # Check for a 64-bit object if we didn't find anything.
15376 if test -z "$lt_cv_aix_libpath_"; then
15377 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15378 fi
15379 fi
15380 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15381 conftest$ac_exeext conftest.$ac_ext
15382 if test -z "$lt_cv_aix_libpath_"; then
15383 lt_cv_aix_libpath_=/usr/lib:/lib
15384 fi
15385 ;;
15386 esac
15387 fi
15388
15389 aix_libpath=$lt_cv_aix_libpath_
15390 fi
15391
15392 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15393 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15394 else
15395 if test ia64 = "$host_cpu"; then
15396 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15397 allow_undefined_flag="-z nodefs"
15398 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
15399 else
15400 # Determine the default libpath from the value encoded in an
15401 # empty executable.
15402 if test set = "${lt_cv_aix_libpath+set}"; then
15403 aix_libpath=$lt_cv_aix_libpath
15404 else
15405 if test ${lt_cv_aix_libpath_+y}
15406 then :
15407 printf %s "(cached) " >&6
15408 else case e in #(
15409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411
15412 int
15413 main (void)
15414 {
15415
15416 ;
15417 return 0;
15418 }
15419 _ACEOF
15420 if ac_fn_c_try_link "$LINENO"
15421 then :
15422
15423 lt_aix_libpath_sed='
15424 /Import File Strings/,/^$/ {
15425 /^0/ {
15426 s/^0 *\([^ ]*\) *$/\1/
15427 p
15428 }
15429 }'
15430 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15431 # Check for a 64-bit object if we didn't find anything.
15432 if test -z "$lt_cv_aix_libpath_"; then
15433 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15434 fi
15435 fi
15436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15437 conftest$ac_exeext conftest.$ac_ext
15438 if test -z "$lt_cv_aix_libpath_"; then
15439 lt_cv_aix_libpath_=/usr/lib:/lib
15440 fi
15441 ;;
15442 esac
15443 fi
15444
15445 aix_libpath=$lt_cv_aix_libpath_
15446 fi
15447
15448 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15449 # Warning - without using the other run time loading flags,
15450 # -berok will link without error, but may produce a broken library.
15451 no_undefined_flag=' $wl-bernotok'
15452 allow_undefined_flag=' $wl-berok'
15453 if test yes = "$with_gnu_ld"; then
15454 # We only use this code for GNU lds that support --whole-archive.
15455 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15456 else
15457 # Exported symbols can be pulled into shared objects from archives
15458 whole_archive_flag_spec='$convenience'
15459 fi
15460 archive_cmds_need_lc=yes
15461 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15462 # -brtl affects multiple linker settings, -berok does not and is overridden later
15463 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15464 if test svr4 != "$with_aix_soname"; then
15465 # This is similar to how AIX traditionally builds its shared libraries.
15466 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15467 fi
15468 if test aix != "$with_aix_soname"; then
15469 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15470 else
15471 # used by -dlpreopen to get the symbols
15472 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15473 fi
15474 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15475 fi
15476 fi
15477 ;;
15478
15479 amigaos*)
15480 case $host_cpu in
15481 powerpc)
15482 # see comment about AmigaOS4 .so support
15483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15484 archive_expsym_cmds=''
15485 ;;
15486 m68k)
15487 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)'
15488 hardcode_libdir_flag_spec='-L$libdir'
15489 hardcode_minus_L=yes
15490 ;;
15491 esac
15492 ;;
15493
15494 bsdi[45]*)
15495 export_dynamic_flag_spec=-rdynamic
15496 ;;
15497
15498 cygwin* | mingw* | pw32* | cegcc*)
15499 # When not using gcc, we currently assume that we are using
15500 # Microsoft Visual C++.
15501 # hardcode_libdir_flag_spec is actually meaningless, as there is
15502 # no search path for DLLs.
15503 case $cc_basename in
15504 cl*)
15505 # Native MSVC
15506 hardcode_libdir_flag_spec=' '
15507 allow_undefined_flag=unsupported
15508 always_export_symbols=yes
15509 file_list_spec='@'
15510 # Tell ltmain to make .lib files, not .a files.
15511 libext=lib
15512 # Tell ltmain to make .dll files, not .so files.
15513 shrext_cmds=.dll
15514 # FIXME: Setting linknames here is a bad hack.
15515 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15516 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15517 cp "$export_symbols" "$output_objdir/$soname.def";
15518 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15519 else
15520 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15521 fi~
15522 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15523 linknames='
15524 # The linker will not automatically build a static lib if we build a DLL.
15525 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15526 enable_shared_with_static_runtimes=yes
15527 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15528 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15529 # Don't use ranlib
15530 old_postinstall_cmds='chmod 644 $oldlib'
15531 postlink_cmds='lt_outputfile="@OUTPUT@"~
15532 lt_tool_outputfile="@TOOL_OUTPUT@"~
15533 case $lt_outputfile in
15534 *.exe|*.EXE) ;;
15535 *)
15536 lt_outputfile=$lt_outputfile.exe
15537 lt_tool_outputfile=$lt_tool_outputfile.exe
15538 ;;
15539 esac~
15540 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15541 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15542 $RM "$lt_outputfile.manifest";
15543 fi'
15544 ;;
15545 *)
15546 # Assume MSVC wrapper
15547 hardcode_libdir_flag_spec=' '
15548 allow_undefined_flag=unsupported
15549 # Tell ltmain to make .lib files, not .a files.
15550 libext=lib
15551 # Tell ltmain to make .dll files, not .so files.
15552 shrext_cmds=.dll
15553 # FIXME: Setting linknames here is a bad hack.
15554 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15555 # The linker will automatically build a .lib file if we build a DLL.
15556 old_archive_from_new_cmds='true'
15557 # FIXME: Should let the user specify the lib program.
15558 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15559 enable_shared_with_static_runtimes=yes
15560 ;;
15561 esac
15562 ;;
15563
15564 darwin* | rhapsody*)
15565
15566
15567 archive_cmds_need_lc=no
15568 hardcode_direct=no
15569 hardcode_automatic=yes
15570 hardcode_shlibpath_var=unsupported
15571 if test yes = "$lt_cv_ld_force_load"; then
15572 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15573
15574 else
15575 whole_archive_flag_spec=''
15576 fi
15577 link_all_deplibs=yes
15578 allow_undefined_flag=$_lt_dar_allow_undefined
15579 case $cc_basename in
15580 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15581 *) _lt_dar_can_shared=$GCC ;;
15582 esac
15583 if test yes = "$_lt_dar_can_shared"; then
15584 output_verbose_link_cmd=func_echo_all
15585 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15586 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15587 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15588 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15589
15590 else
15591 ld_shlibs=no
15592 fi
15593
15594 ;;
15595
15596 dgux*)
15597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15598 hardcode_libdir_flag_spec='-L$libdir'
15599 hardcode_shlibpath_var=no
15600 ;;
15601
15602 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15603 # support. Future versions do this automatically, but an explicit c++rt0.o
15604 # does not break anything, and helps significantly (at the cost of a little
15605 # extra space).
15606 freebsd2.2*)
15607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15608 hardcode_libdir_flag_spec='-R$libdir'
15609 hardcode_direct=yes
15610 hardcode_shlibpath_var=no
15611 ;;
15612
15613 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15614 freebsd2.*)
15615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15616 hardcode_direct=yes
15617 hardcode_minus_L=yes
15618 hardcode_shlibpath_var=no
15619 ;;
15620
15621 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15622 freebsd* | dragonfly*)
15623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15624 hardcode_libdir_flag_spec='-R$libdir'
15625 hardcode_direct=yes
15626 hardcode_shlibpath_var=no
15627 ;;
15628
15629 hpux9*)
15630 if test yes = "$GCC"; then
15631 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15632 else
15633 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15634 fi
15635 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15636 hardcode_libdir_separator=:
15637 hardcode_direct=yes
15638
15639 # hardcode_minus_L: Not really in the search PATH,
15640 # but as the default location of the library.
15641 hardcode_minus_L=yes
15642 export_dynamic_flag_spec='$wl-E'
15643 ;;
15644
15645 hpux10*)
15646 if test yes,no = "$GCC,$with_gnu_ld"; then
15647 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15648 else
15649 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15650 fi
15651 if test no = "$with_gnu_ld"; then
15652 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15653 hardcode_libdir_separator=:
15654 hardcode_direct=yes
15655 hardcode_direct_absolute=yes
15656 export_dynamic_flag_spec='$wl-E'
15657 # hardcode_minus_L: Not really in the search PATH,
15658 # but as the default location of the library.
15659 hardcode_minus_L=yes
15660 fi
15661 ;;
15662
15663 hpux11*)
15664 if test yes,no = "$GCC,$with_gnu_ld"; then
15665 case $host_cpu in
15666 hppa*64*)
15667 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15668 ;;
15669 ia64*)
15670 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15671 ;;
15672 *)
15673 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15674 ;;
15675 esac
15676 else
15677 case $host_cpu in
15678 hppa*64*)
15679 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15680 ;;
15681 ia64*)
15682 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15683 ;;
15684 *)
15685
15686 # Older versions of the 11.00 compiler do not understand -b yet
15687 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15689 printf %s "checking if $CC understands -b... " >&6; }
15690 if test ${lt_cv_prog_compiler__b+y}
15691 then :
15692 printf %s "(cached) " >&6
15693 else case e in #(
15694 e) lt_cv_prog_compiler__b=no
15695 save_LDFLAGS=$LDFLAGS
15696 LDFLAGS="$LDFLAGS -b"
15697 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15698 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15699 # The linker can only warn and ignore the option if not recognized
15700 # So say no if there are warnings
15701 if test -s conftest.err; then
15702 # Append any errors to the config.log.
15703 cat conftest.err 1>&5
15704 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15706 if diff conftest.exp conftest.er2 >/dev/null; then
15707 lt_cv_prog_compiler__b=yes
15708 fi
15709 else
15710 lt_cv_prog_compiler__b=yes
15711 fi
15712 fi
15713 $RM -r conftest*
15714 LDFLAGS=$save_LDFLAGS
15715 ;;
15716 esac
15717 fi
15718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15719 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
15720
15721 if test yes = "$lt_cv_prog_compiler__b"; then
15722 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15723 else
15724 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15725 fi
15726
15727 ;;
15728 esac
15729 fi
15730 if test no = "$with_gnu_ld"; then
15731 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15732 hardcode_libdir_separator=:
15733
15734 case $host_cpu in
15735 hppa*64*|ia64*)
15736 hardcode_direct=no
15737 hardcode_shlibpath_var=no
15738 ;;
15739 *)
15740 hardcode_direct=yes
15741 hardcode_direct_absolute=yes
15742 export_dynamic_flag_spec='$wl-E'
15743
15744 # hardcode_minus_L: Not really in the search PATH,
15745 # but as the default location of the library.
15746 hardcode_minus_L=yes
15747 ;;
15748 esac
15749 fi
15750 ;;
15751
15752 irix5* | irix6* | nonstopux*)
15753 if test yes = "$GCC"; then
15754 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15755 # Try to use the -exported_symbol ld option, if it does not
15756 # work, assume that -exports_file does not work either and
15757 # implicitly export all symbols.
15758 # This should be the same for all languages, so no per-tag cache variable.
15759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15760 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15761 if test ${lt_cv_irix_exported_symbol+y}
15762 then :
15763 printf %s "(cached) " >&6
15764 else case e in #(
15765 e) save_LDFLAGS=$LDFLAGS
15766 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h. */
15769 int foo (void) { return 0; }
15770 _ACEOF
15771 if ac_fn_c_try_link "$LINENO"
15772 then :
15773 lt_cv_irix_exported_symbol=yes
15774 else case e in #(
15775 e) lt_cv_irix_exported_symbol=no ;;
15776 esac
15777 fi
15778 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15779 conftest$ac_exeext conftest.$ac_ext
15780 LDFLAGS=$save_LDFLAGS ;;
15781 esac
15782 fi
15783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15784 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
15785 if test yes = "$lt_cv_irix_exported_symbol"; then
15786 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
15787 fi
15788 else
15789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
15791 fi
15792 archive_cmds_need_lc='no'
15793 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15794 hardcode_libdir_separator=:
15795 inherit_rpath=yes
15796 link_all_deplibs=yes
15797 ;;
15798
15799 linux*)
15800 case $cc_basename in
15801 tcc*)
15802 # Fabrice Bellard et al's Tiny C Compiler
15803 ld_shlibs=yes
15804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15805 ;;
15806 esac
15807 ;;
15808
15809 netbsd*)
15810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15812 else
15813 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15814 fi
15815 hardcode_libdir_flag_spec='-R$libdir'
15816 hardcode_direct=yes
15817 hardcode_shlibpath_var=no
15818 ;;
15819
15820 newsos6)
15821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15822 hardcode_direct=yes
15823 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15824 hardcode_libdir_separator=:
15825 hardcode_shlibpath_var=no
15826 ;;
15827
15828 *nto* | *qnx*)
15829 ;;
15830
15831 openbsd* | bitrig*)
15832 if test -f /usr/libexec/ld.so; then
15833 hardcode_direct=yes
15834 hardcode_shlibpath_var=no
15835 hardcode_direct_absolute=yes
15836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15838 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
15839 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15840 export_dynamic_flag_spec='$wl-E'
15841 else
15842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15843 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15844 fi
15845 else
15846 ld_shlibs=no
15847 fi
15848 ;;
15849
15850 os2*)
15851 hardcode_libdir_flag_spec='-L$libdir'
15852 hardcode_minus_L=yes
15853 allow_undefined_flag=unsupported
15854 shrext_cmds=.dll
15855 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15856 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15857 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15858 $ECHO EXPORTS >> $output_objdir/$libname.def~
15859 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15860 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15861 emximp -o $lib $output_objdir/$libname.def'
15862 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15863 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15864 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15865 $ECHO EXPORTS >> $output_objdir/$libname.def~
15866 prefix_cmds="$SED"~
15867 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15868 prefix_cmds="$prefix_cmds -e 1d";
15869 fi~
15870 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15871 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15872 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15873 emximp -o $lib $output_objdir/$libname.def'
15874 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15875 enable_shared_with_static_runtimes=yes
15876 ;;
15877
15878 osf3*)
15879 if test yes = "$GCC"; then
15880 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15881 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15882 else
15883 allow_undefined_flag=' -expect_unresolved \*'
15884 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15885 fi
15886 archive_cmds_need_lc='no'
15887 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15888 hardcode_libdir_separator=:
15889 ;;
15890
15891 osf4* | osf5*) # as osf3* with the addition of -msym flag
15892 if test yes = "$GCC"; then
15893 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15894 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15895 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15896 else
15897 allow_undefined_flag=' -expect_unresolved \*'
15898 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15899 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
15900 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
15901
15902 # Both c and cxx compiler support -rpath directly
15903 hardcode_libdir_flag_spec='-rpath $libdir'
15904 fi
15905 archive_cmds_need_lc='no'
15906 hardcode_libdir_separator=:
15907 ;;
15908
15909 solaris*)
15910 no_undefined_flag=' -z defs'
15911 if test yes = "$GCC"; then
15912 wlarc='$wl'
15913 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15914 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15915 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15916 else
15917 case `$CC -V 2>&1` in
15918 *"Compilers 5.0"*)
15919 wlarc=''
15920 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
15921 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15922 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15923 ;;
15924 *)
15925 wlarc='$wl'
15926 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15927 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15928 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15929 ;;
15930 esac
15931 fi
15932 hardcode_libdir_flag_spec='-R$libdir'
15933 hardcode_shlibpath_var=no
15934 case $host_os in
15935 solaris2.[0-5] | solaris2.[0-5].*) ;;
15936 *)
15937 # The compiler driver will combine and reorder linker options,
15938 # but understands '-z linker_flag'. GCC discards it without '$wl',
15939 # but is careful enough not to reorder.
15940 # Supported since Solaris 2.6 (maybe 2.5.1?)
15941 if test yes = "$GCC"; then
15942 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15943 else
15944 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15945 fi
15946 ;;
15947 esac
15948 link_all_deplibs=yes
15949 ;;
15950
15951 sunos4*)
15952 if test sequent = "$host_vendor"; then
15953 # Use $CC to link under sequent, because it throws in some extra .o
15954 # files that make .init and .fini sections work.
15955 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15956 else
15957 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15958 fi
15959 hardcode_libdir_flag_spec='-L$libdir'
15960 hardcode_direct=yes
15961 hardcode_minus_L=yes
15962 hardcode_shlibpath_var=no
15963 ;;
15964
15965 sysv4)
15966 case $host_vendor in
15967 sni)
15968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15969 hardcode_direct=yes # is this really true???
15970 ;;
15971 siemens)
15972 ## LD is ld it makes a PLAMLIB
15973 ## CC just makes a GrossModule.
15974 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15975 reload_cmds='$CC -r -o $output$reload_objs'
15976 hardcode_direct=no
15977 ;;
15978 motorola)
15979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15981 ;;
15982 esac
15983 runpath_var='LD_RUN_PATH'
15984 hardcode_shlibpath_var=no
15985 ;;
15986
15987 sysv4.3*)
15988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15989 hardcode_shlibpath_var=no
15990 export_dynamic_flag_spec='-Bexport'
15991 ;;
15992
15993 sysv4*MP*)
15994 if test -d /usr/nec; then
15995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15996 hardcode_shlibpath_var=no
15997 runpath_var=LD_RUN_PATH
15998 hardcode_runpath_var=yes
15999 ld_shlibs=yes
16000 fi
16001 ;;
16002
16003 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16004 no_undefined_flag='$wl-z,text'
16005 archive_cmds_need_lc=no
16006 hardcode_shlibpath_var=no
16007 runpath_var='LD_RUN_PATH'
16008
16009 if test yes = "$GCC"; then
16010 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16011 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16012 else
16013 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16014 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16015 fi
16016 ;;
16017
16018 sysv5* | sco3.2v5* | sco5v6*)
16019 # Note: We CANNOT use -z defs as we might desire, because we do not
16020 # link with -lc, and that would cause any symbols used from libc to
16021 # always be unresolved, which means just about no library would
16022 # ever link correctly. If we're not using GNU ld we use -z text
16023 # though, which does catch some bad symbols but isn't as heavy-handed
16024 # as -z defs.
16025 no_undefined_flag='$wl-z,text'
16026 allow_undefined_flag='$wl-z,nodefs'
16027 archive_cmds_need_lc=no
16028 hardcode_shlibpath_var=no
16029 hardcode_libdir_flag_spec='$wl-R,$libdir'
16030 hardcode_libdir_separator=':'
16031 link_all_deplibs=yes
16032 export_dynamic_flag_spec='$wl-Bexport'
16033 runpath_var='LD_RUN_PATH'
16034
16035 if test yes = "$GCC"; then
16036 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16037 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16038 else
16039 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16040 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16041 fi
16042 ;;
16043
16044 uts4*)
16045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046 hardcode_libdir_flag_spec='-L$libdir'
16047 hardcode_shlibpath_var=no
16048 ;;
16049
16050 *)
16051 ld_shlibs=no
16052 ;;
16053 esac
16054
16055 if test sni = "$host_vendor"; then
16056 case $host in
16057 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16058 export_dynamic_flag_spec='$wl-Blargedynsym'
16059 ;;
16060 esac
16061 fi
16062 fi
16063
16064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16065 printf "%s\n" "$ld_shlibs" >&6; }
16066 test no = "$ld_shlibs" && can_build_shared=no
16067
16068 with_gnu_ld=$with_gnu_ld
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084 #
16085 # Do we need to explicitly link libc?
16086 #
16087 case "x$archive_cmds_need_lc" in
16088 x|xyes)
16089 # Assume -lc should be added
16090 archive_cmds_need_lc=yes
16091
16092 if test yes,yes = "$GCC,$enable_shared"; then
16093 case $archive_cmds in
16094 *'~'*)
16095 # FIXME: we may have to deal with multi-command sequences.
16096 ;;
16097 '$CC '*)
16098 # Test whether the compiler implicitly links with -lc since on some
16099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16100 # to ld, don't add -lc before -lgcc.
16101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16102 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16103 if test ${lt_cv_archive_cmds_need_lc+y}
16104 then :
16105 printf %s "(cached) " >&6
16106 else case e in #(
16107 e) $RM conftest*
16108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16109
16110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16111 (eval $ac_compile) 2>&5
16112 ac_status=$?
16113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16114 test $ac_status = 0; } 2>conftest.err; then
16115 soname=conftest
16116 lib=conftest
16117 libobjs=conftest.$ac_objext
16118 deplibs=
16119 wl=$lt_prog_compiler_wl
16120 pic_flag=$lt_prog_compiler_pic
16121 compiler_flags=-v
16122 linker_flags=-v
16123 verstring=
16124 output_objdir=.
16125 libname=conftest
16126 lt_save_allow_undefined_flag=$allow_undefined_flag
16127 allow_undefined_flag=
16128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16129 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16130 ac_status=$?
16131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16132 test $ac_status = 0; }
16133 then
16134 lt_cv_archive_cmds_need_lc=no
16135 else
16136 lt_cv_archive_cmds_need_lc=yes
16137 fi
16138 allow_undefined_flag=$lt_save_allow_undefined_flag
16139 else
16140 cat conftest.err 1>&5
16141 fi
16142 $RM conftest*
16143 ;;
16144 esac
16145 fi
16146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16147 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
16148 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16149 ;;
16150 esac
16151 fi
16152 ;;
16153 esac
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16307 printf %s "checking dynamic linker characteristics... " >&6; }
16308
16309 if test yes = "$GCC"; then
16310 case $host_os in
16311 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16312 *) lt_awk_arg='/^libraries:/' ;;
16313 esac
16314 case $host_os in
16315 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16316 *) lt_sed_strip_eq='s|=/|/|g' ;;
16317 esac
16318 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16319 case $lt_search_path_spec in
16320 *\;*)
16321 # if the path contains ";" then we assume it to be the separator
16322 # otherwise default to the standard path separator (i.e. ":") - it is
16323 # assumed that no part of a normal pathname contains ";" but that should
16324 # okay in the real world where ";" in dirpaths is itself problematic.
16325 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16326 ;;
16327 *)
16328 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16329 ;;
16330 esac
16331 # Ok, now we have the path, separated by spaces, we can step through it
16332 # and add multilib dir if necessary...
16333 lt_tmp_lt_search_path_spec=
16334 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16335 # ...but if some path component already ends with the multilib dir we assume
16336 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16337 case "$lt_multi_os_dir; $lt_search_path_spec " in
16338 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16339 lt_multi_os_dir=
16340 ;;
16341 esac
16342 for lt_sys_path in $lt_search_path_spec; do
16343 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16344 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16345 elif test -n "$lt_multi_os_dir"; then
16346 test -d "$lt_sys_path" && \
16347 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16348 fi
16349 done
16350 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16351 BEGIN {RS = " "; FS = "/|\n";} {
16352 lt_foo = "";
16353 lt_count = 0;
16354 for (lt_i = NF; lt_i > 0; lt_i--) {
16355 if ($lt_i != "" && $lt_i != ".") {
16356 if ($lt_i == "..") {
16357 lt_count++;
16358 } else {
16359 if (lt_count == 0) {
16360 lt_foo = "/" $lt_i lt_foo;
16361 } else {
16362 lt_count--;
16363 }
16364 }
16365 }
16366 }
16367 if (lt_foo != "") { lt_freq[lt_foo]++; }
16368 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16369 }'`
16370 # AWK program above erroneously prepends '/' to C:/dos/paths
16371 # for these hosts.
16372 case $host_os in
16373 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16374 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16375 esac
16376 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16377 else
16378 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16379 fi
16380 library_names_spec=
16381 libname_spec='lib$name'
16382 soname_spec=
16383 shrext_cmds=.so
16384 postinstall_cmds=
16385 postuninstall_cmds=
16386 finish_cmds=
16387 finish_eval=
16388 shlibpath_var=
16389 shlibpath_overrides_runpath=unknown
16390 version_type=none
16391 dynamic_linker="$host_os ld.so"
16392 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16393 need_lib_prefix=unknown
16394 hardcode_into_libs=no
16395
16396 # when you set need_version to no, make sure it does not cause -set_version
16397 # flags to be left without arguments
16398 need_version=unknown
16399
16400
16401
16402 case $host_os in
16403 aix3*)
16404 version_type=linux # correct to gnu/linux during the next big refactor
16405 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16406 shlibpath_var=LIBPATH
16407
16408 # AIX 3 has no versioning support, so we append a major version to the name.
16409 soname_spec='$libname$release$shared_ext$major'
16410 ;;
16411
16412 aix[4-9]*)
16413 version_type=linux # correct to gnu/linux during the next big refactor
16414 need_lib_prefix=no
16415 need_version=no
16416 hardcode_into_libs=yes
16417 if test ia64 = "$host_cpu"; then
16418 # AIX 5 supports IA64
16419 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16420 shlibpath_var=LD_LIBRARY_PATH
16421 else
16422 # With GCC up to 2.95.x, collect2 would create an import file
16423 # for dependence libraries. The import file would start with
16424 # the line '#! .'. This would cause the generated library to
16425 # depend on '.', always an invalid library. This was fixed in
16426 # development snapshots of GCC prior to 3.0.
16427 case $host_os in
16428 aix4 | aix4.[01] | aix4.[01].*)
16429 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16430 echo ' yes '
16431 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16432 :
16433 else
16434 can_build_shared=no
16435 fi
16436 ;;
16437 esac
16438 # Using Import Files as archive members, it is possible to support
16439 # filename-based versioning of shared library archives on AIX. While
16440 # this would work for both with and without runtime linking, it will
16441 # prevent static linking of such archives. So we do filename-based
16442 # shared library versioning with .so extension only, which is used
16443 # when both runtime linking and shared linking is enabled.
16444 # Unfortunately, runtime linking may impact performance, so we do
16445 # not want this to be the default eventually. Also, we use the
16446 # versioned .so libs for executables only if there is the -brtl
16447 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16448 # To allow for filename-based versioning support, we need to create
16449 # libNAME.so.V as an archive file, containing:
16450 # *) an Import File, referring to the versioned filename of the
16451 # archive as well as the shared archive member, telling the
16452 # bitwidth (32 or 64) of that shared object, and providing the
16453 # list of exported symbols of that shared object, eventually
16454 # decorated with the 'weak' keyword
16455 # *) the shared object with the F_LOADONLY flag set, to really avoid
16456 # it being seen by the linker.
16457 # At run time we better use the real file rather than another symlink,
16458 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16459
16460 case $with_aix_soname,$aix_use_runtimelinking in
16461 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16462 # soname into executable. Probably we can add versioning support to
16463 # collect2, so additional links can be useful in future.
16464 aix,yes) # traditional libtool
16465 dynamic_linker='AIX unversionable lib.so'
16466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16467 # instead of lib<name>.a to let people know that these are not
16468 # typical AIX shared libraries.
16469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16470 ;;
16471 aix,no) # traditional AIX only
16472 dynamic_linker='AIX lib.a(lib.so.V)'
16473 # We preserve .a as extension for shared libraries through AIX4.2
16474 # and later when we are not doing run time linking.
16475 library_names_spec='$libname$release.a $libname.a'
16476 soname_spec='$libname$release$shared_ext$major'
16477 ;;
16478 svr4,*) # full svr4 only
16479 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16480 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16481 # We do not specify a path in Import Files, so LIBPATH fires.
16482 shlibpath_overrides_runpath=yes
16483 ;;
16484 *,yes) # both, prefer svr4
16485 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16486 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16487 # unpreferred sharedlib libNAME.a needs extra handling
16488 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16489 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16490 # We do not specify a path in Import Files, so LIBPATH fires.
16491 shlibpath_overrides_runpath=yes
16492 ;;
16493 *,no) # both, prefer aix
16494 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16495 library_names_spec='$libname$release.a $libname.a'
16496 soname_spec='$libname$release$shared_ext$major'
16497 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16498 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16499 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16500 ;;
16501 esac
16502 shlibpath_var=LIBPATH
16503 fi
16504 ;;
16505
16506 amigaos*)
16507 case $host_cpu in
16508 powerpc)
16509 # Since July 2007 AmigaOS4 officially supports .so libraries.
16510 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16512 ;;
16513 m68k)
16514 library_names_spec='$libname.ixlibrary $libname.a'
16515 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16516 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16517 ;;
16518 esac
16519 ;;
16520
16521 beos*)
16522 library_names_spec='$libname$shared_ext'
16523 dynamic_linker="$host_os ld.so"
16524 shlibpath_var=LIBRARY_PATH
16525 ;;
16526
16527 bsdi[45]*)
16528 version_type=linux # correct to gnu/linux during the next big refactor
16529 need_version=no
16530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16531 soname_spec='$libname$release$shared_ext$major'
16532 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16535 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16536 # the default ld.so.conf also contains /usr/contrib/lib and
16537 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16538 # libtool to hard-code these into programs
16539 ;;
16540
16541 cygwin* | mingw* | pw32* | cegcc*)
16542 version_type=windows
16543 shrext_cmds=.dll
16544 need_version=no
16545 need_lib_prefix=no
16546
16547 case $GCC,$cc_basename in
16548 yes,*)
16549 # gcc
16550 library_names_spec='$libname.dll.a'
16551 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16552 postinstall_cmds='base_file=`basename \$file`~
16553 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16554 dldir=$destdir/`dirname \$dlpath`~
16555 test -d \$dldir || mkdir -p \$dldir~
16556 $install_prog $dir/$dlname \$dldir/$dlname~
16557 chmod a+x \$dldir/$dlname~
16558 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16559 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16560 fi'
16561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16562 dlpath=$dir/\$dldll~
16563 $RM \$dlpath'
16564 shlibpath_overrides_runpath=yes
16565
16566 case $host_os in
16567 cygwin*)
16568 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16569 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16570
16571 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16572 ;;
16573 mingw* | cegcc*)
16574 # MinGW DLLs use traditional 'lib' prefix
16575 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16576 ;;
16577 pw32*)
16578 # pw32 DLLs use 'pw' prefix rather than 'lib'
16579 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16580 ;;
16581 esac
16582 dynamic_linker='Win32 ld.exe'
16583 ;;
16584
16585 *,cl*)
16586 # Native MSVC
16587 libname_spec='$name'
16588 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16589 library_names_spec='$libname.dll.lib'
16590
16591 case $build_os in
16592 mingw*)
16593 sys_lib_search_path_spec=
16594 lt_save_ifs=$IFS
16595 IFS=';'
16596 for lt_path in $LIB
16597 do
16598 IFS=$lt_save_ifs
16599 # Let DOS variable expansion print the short 8.3 style file name.
16600 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16601 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16602 done
16603 IFS=$lt_save_ifs
16604 # Convert to MSYS style.
16605 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16606 ;;
16607 cygwin*)
16608 # Convert to unix form, then to dos form, then back to unix form
16609 # but this time dos style (no spaces!) so that the unix form looks
16610 # like /cygdrive/c/PROGRA~1:/cygdr...
16611 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16612 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16613 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16614 ;;
16615 *)
16616 sys_lib_search_path_spec=$LIB
16617 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16618 # It is most probably a Windows format PATH.
16619 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16620 else
16621 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16622 fi
16623 # FIXME: find the short name or the path components, as spaces are
16624 # common. (e.g. "Program Files" -> "PROGRA~1")
16625 ;;
16626 esac
16627
16628 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16629 postinstall_cmds='base_file=`basename \$file`~
16630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16631 dldir=$destdir/`dirname \$dlpath`~
16632 test -d \$dldir || mkdir -p \$dldir~
16633 $install_prog $dir/$dlname \$dldir/$dlname'
16634 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16635 dlpath=$dir/\$dldll~
16636 $RM \$dlpath'
16637 shlibpath_overrides_runpath=yes
16638 dynamic_linker='Win32 link.exe'
16639 ;;
16640
16641 *)
16642 # Assume MSVC wrapper
16643 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16644 dynamic_linker='Win32 ld.exe'
16645 ;;
16646 esac
16647 # FIXME: first we should search . and the directory the executable is in
16648 shlibpath_var=PATH
16649 ;;
16650
16651 darwin* | rhapsody*)
16652 dynamic_linker="$host_os dyld"
16653 version_type=darwin
16654 need_lib_prefix=no
16655 need_version=no
16656 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16657 soname_spec='$libname$release$major$shared_ext'
16658 shlibpath_overrides_runpath=yes
16659 shlibpath_var=DYLD_LIBRARY_PATH
16660 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16661
16662 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16663 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16664 ;;
16665
16666 dgux*)
16667 version_type=linux # correct to gnu/linux during the next big refactor
16668 need_lib_prefix=no
16669 need_version=no
16670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16671 soname_spec='$libname$release$shared_ext$major'
16672 shlibpath_var=LD_LIBRARY_PATH
16673 ;;
16674
16675 freebsd* | dragonfly*)
16676 # DragonFly does not have aout. When/if they implement a new
16677 # versioning mechanism, adjust this.
16678 if test -x /usr/bin/objformat; then
16679 objformat=`/usr/bin/objformat`
16680 else
16681 case $host_os in
16682 freebsd[23].*) objformat=aout ;;
16683 *) objformat=elf ;;
16684 esac
16685 fi
16686 version_type=freebsd-$objformat
16687 case $version_type in
16688 freebsd-elf*)
16689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16690 soname_spec='$libname$release$shared_ext$major'
16691 need_version=no
16692 need_lib_prefix=no
16693 ;;
16694 freebsd-*)
16695 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16696 need_version=yes
16697 ;;
16698 esac
16699 shlibpath_var=LD_LIBRARY_PATH
16700 case $host_os in
16701 freebsd2.*)
16702 shlibpath_overrides_runpath=yes
16703 ;;
16704 freebsd3.[01]* | freebsdelf3.[01]*)
16705 shlibpath_overrides_runpath=yes
16706 hardcode_into_libs=yes
16707 ;;
16708 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16709 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16710 shlibpath_overrides_runpath=no
16711 hardcode_into_libs=yes
16712 ;;
16713 *) # from 4.6 on, and DragonFly
16714 shlibpath_overrides_runpath=yes
16715 hardcode_into_libs=yes
16716 ;;
16717 esac
16718 ;;
16719
16720 haiku*)
16721 version_type=linux # correct to gnu/linux during the next big refactor
16722 need_lib_prefix=no
16723 need_version=no
16724 dynamic_linker="$host_os runtime_loader"
16725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16726 soname_spec='$libname$release$shared_ext$major'
16727 shlibpath_var=LIBRARY_PATH
16728 shlibpath_overrides_runpath=no
16729 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16730 hardcode_into_libs=yes
16731 ;;
16732
16733 hpux9* | hpux10* | hpux11*)
16734 # Give a soname corresponding to the major version so that dld.sl refuses to
16735 # link against other versions.
16736 version_type=sunos
16737 need_lib_prefix=no
16738 need_version=no
16739 case $host_cpu in
16740 ia64*)
16741 shrext_cmds='.so'
16742 hardcode_into_libs=yes
16743 dynamic_linker="$host_os dld.so"
16744 shlibpath_var=LD_LIBRARY_PATH
16745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16747 soname_spec='$libname$release$shared_ext$major'
16748 if test 32 = "$HPUX_IA64_MODE"; then
16749 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16750 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16751 else
16752 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16753 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16754 fi
16755 ;;
16756 hppa*64*)
16757 shrext_cmds='.sl'
16758 hardcode_into_libs=yes
16759 dynamic_linker="$host_os dld.sl"
16760 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16763 soname_spec='$libname$release$shared_ext$major'
16764 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16766 ;;
16767 *)
16768 shrext_cmds='.sl'
16769 dynamic_linker="$host_os dld.sl"
16770 shlibpath_var=SHLIB_PATH
16771 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16773 soname_spec='$libname$release$shared_ext$major'
16774 ;;
16775 esac
16776 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16777 postinstall_cmds='chmod 555 $lib'
16778 # or fails outright, so override atomically:
16779 install_override_mode=555
16780 ;;
16781
16782 interix[3-9]*)
16783 version_type=linux # correct to gnu/linux during the next big refactor
16784 need_lib_prefix=no
16785 need_version=no
16786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16787 soname_spec='$libname$release$shared_ext$major'
16788 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16789 shlibpath_var=LD_LIBRARY_PATH
16790 shlibpath_overrides_runpath=no
16791 hardcode_into_libs=yes
16792 ;;
16793
16794 irix5* | irix6* | nonstopux*)
16795 case $host_os in
16796 nonstopux*) version_type=nonstopux ;;
16797 *)
16798 if test yes = "$lt_cv_prog_gnu_ld"; then
16799 version_type=linux # correct to gnu/linux during the next big refactor
16800 else
16801 version_type=irix
16802 fi ;;
16803 esac
16804 need_lib_prefix=no
16805 need_version=no
16806 soname_spec='$libname$release$shared_ext$major'
16807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16808 case $host_os in
16809 irix5* | nonstopux*)
16810 libsuff= shlibsuff=
16811 ;;
16812 *)
16813 case $LD in # libtool.m4 will add one of these switches to LD
16814 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16815 libsuff= shlibsuff= libmagic=32-bit;;
16816 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16817 libsuff=32 shlibsuff=N32 libmagic=N32;;
16818 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16819 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16820 *) libsuff= shlibsuff= libmagic=never-match;;
16821 esac
16822 ;;
16823 esac
16824 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16825 shlibpath_overrides_runpath=no
16826 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16827 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16828 hardcode_into_libs=yes
16829 ;;
16830
16831 # No shared lib support for Linux oldld, aout, or coff.
16832 linux*oldld* | linux*aout* | linux*coff*)
16833 dynamic_linker=no
16834 ;;
16835
16836 linux*android*)
16837 version_type=none # Android doesn't support versioned libraries.
16838 need_lib_prefix=no
16839 need_version=no
16840 library_names_spec='$libname$release$shared_ext'
16841 soname_spec='$libname$release$shared_ext'
16842 finish_cmds=
16843 shlibpath_var=LD_LIBRARY_PATH
16844 shlibpath_overrides_runpath=yes
16845
16846 # This implies no fast_install, which is unacceptable.
16847 # Some rework will be needed to allow for fast_install
16848 # before this can be enabled.
16849 hardcode_into_libs=yes
16850
16851 dynamic_linker='Android linker'
16852 # Don't embed -rpath directories since the linker doesn't support them.
16853 hardcode_libdir_flag_spec='-L$libdir'
16854 ;;
16855
16856 # This must be glibc/ELF.
16857 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16858 version_type=linux # correct to gnu/linux during the next big refactor
16859 need_lib_prefix=no
16860 need_version=no
16861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16862 soname_spec='$libname$release$shared_ext$major'
16863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16864 shlibpath_var=LD_LIBRARY_PATH
16865 shlibpath_overrides_runpath=no
16866
16867 # Some binutils ld are patched to set DT_RUNPATH
16868 if test ${lt_cv_shlibpath_overrides_runpath+y}
16869 then :
16870 printf %s "(cached) " >&6
16871 else case e in #(
16872 e) lt_cv_shlibpath_overrides_runpath=no
16873 save_LDFLAGS=$LDFLAGS
16874 save_libdir=$libdir
16875 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16876 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16878 /* end confdefs.h. */
16879
16880 int
16881 main (void)
16882 {
16883
16884 ;
16885 return 0;
16886 }
16887 _ACEOF
16888 if ac_fn_c_try_link "$LINENO"
16889 then :
16890 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16891 then :
16892 lt_cv_shlibpath_overrides_runpath=yes
16893 fi
16894 fi
16895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16896 conftest$ac_exeext conftest.$ac_ext
16897 LDFLAGS=$save_LDFLAGS
16898 libdir=$save_libdir
16899 ;;
16900 esac
16901 fi
16902
16903 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16904
16905 # This implies no fast_install, which is unacceptable.
16906 # Some rework will be needed to allow for fast_install
16907 # before this can be enabled.
16908 hardcode_into_libs=yes
16909
16910 # Ideally, we could use ldconfig to report *all* directores which are
16911 # searched for libraries, however this is still not possible. Aside from not
16912 # being certain /sbin/ldconfig is available, command
16913 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16914 # even though it is searched at run-time. Try to do the best guess by
16915 # appending ld.so.conf contents (and includes) to the search path.
16916 if test -f /etc/ld.so.conf; then
16917 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16918 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16919 fi
16920
16921 # We used to test for /lib/ld.so.1 and disable shared libraries on
16922 # powerpc, because MkLinux only supported shared libraries with the
16923 # GNU dynamic linker. Since this was broken with cross compilers,
16924 # most powerpc-linux boxes support dynamic linking these days and
16925 # people can always --disable-shared, the test was removed, and we
16926 # assume the GNU/Linux dynamic linker is in use.
16927 dynamic_linker='GNU/Linux ld.so'
16928 ;;
16929
16930 netbsd*)
16931 version_type=sunos
16932 need_lib_prefix=no
16933 need_version=no
16934 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16935 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16937 dynamic_linker='NetBSD (a.out) ld.so'
16938 else
16939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16940 soname_spec='$libname$release$shared_ext$major'
16941 dynamic_linker='NetBSD ld.elf_so'
16942 fi
16943 shlibpath_var=LD_LIBRARY_PATH
16944 shlibpath_overrides_runpath=yes
16945 hardcode_into_libs=yes
16946 ;;
16947
16948 newsos6)
16949 version_type=linux # correct to gnu/linux during the next big refactor
16950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16951 shlibpath_var=LD_LIBRARY_PATH
16952 shlibpath_overrides_runpath=yes
16953 ;;
16954
16955 *nto* | *qnx*)
16956 version_type=qnx
16957 need_lib_prefix=no
16958 need_version=no
16959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16960 soname_spec='$libname$release$shared_ext$major'
16961 shlibpath_var=LD_LIBRARY_PATH
16962 shlibpath_overrides_runpath=no
16963 hardcode_into_libs=yes
16964 dynamic_linker='ldqnx.so'
16965 ;;
16966
16967 openbsd* | bitrig*)
16968 version_type=sunos
16969 sys_lib_dlsearch_path_spec=/usr/lib
16970 need_lib_prefix=no
16971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16972 need_version=no
16973 else
16974 need_version=yes
16975 fi
16976 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16978 shlibpath_var=LD_LIBRARY_PATH
16979 shlibpath_overrides_runpath=yes
16980 ;;
16981
16982 os2*)
16983 libname_spec='$name'
16984 version_type=windows
16985 shrext_cmds=.dll
16986 need_version=no
16987 need_lib_prefix=no
16988 # OS/2 can only load a DLL with a base name of 8 characters or less.
16989 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16990 v=$($ECHO $release$versuffix | tr -d .-);
16991 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16992 $ECHO $n$v`$shared_ext'
16993 library_names_spec='${libname}_dll.$libext'
16994 dynamic_linker='OS/2 ld.exe'
16995 shlibpath_var=BEGINLIBPATH
16996 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16998 postinstall_cmds='base_file=`basename \$file`~
16999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17000 dldir=$destdir/`dirname \$dlpath`~
17001 test -d \$dldir || mkdir -p \$dldir~
17002 $install_prog $dir/$dlname \$dldir/$dlname~
17003 chmod a+x \$dldir/$dlname~
17004 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17005 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17006 fi'
17007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17008 dlpath=$dir/\$dldll~
17009 $RM \$dlpath'
17010 ;;
17011
17012 osf3* | osf4* | osf5*)
17013 version_type=osf
17014 need_lib_prefix=no
17015 need_version=no
17016 soname_spec='$libname$release$shared_ext$major'
17017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17018 shlibpath_var=LD_LIBRARY_PATH
17019 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17021 ;;
17022
17023 rdos*)
17024 dynamic_linker=no
17025 ;;
17026
17027 solaris*)
17028 version_type=linux # correct to gnu/linux during the next big refactor
17029 need_lib_prefix=no
17030 need_version=no
17031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17032 soname_spec='$libname$release$shared_ext$major'
17033 shlibpath_var=LD_LIBRARY_PATH
17034 shlibpath_overrides_runpath=yes
17035 hardcode_into_libs=yes
17036 # ldd complains unless libraries are executable
17037 postinstall_cmds='chmod +x $lib'
17038 ;;
17039
17040 sunos4*)
17041 version_type=sunos
17042 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17043 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17044 shlibpath_var=LD_LIBRARY_PATH
17045 shlibpath_overrides_runpath=yes
17046 if test yes = "$with_gnu_ld"; then
17047 need_lib_prefix=no
17048 fi
17049 need_version=yes
17050 ;;
17051
17052 sysv4 | sysv4.3*)
17053 version_type=linux # correct to gnu/linux during the next big refactor
17054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17055 soname_spec='$libname$release$shared_ext$major'
17056 shlibpath_var=LD_LIBRARY_PATH
17057 case $host_vendor in
17058 sni)
17059 shlibpath_overrides_runpath=no
17060 need_lib_prefix=no
17061 runpath_var=LD_RUN_PATH
17062 ;;
17063 siemens)
17064 need_lib_prefix=no
17065 ;;
17066 motorola)
17067 need_lib_prefix=no
17068 need_version=no
17069 shlibpath_overrides_runpath=no
17070 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17071 ;;
17072 esac
17073 ;;
17074
17075 sysv4*MP*)
17076 if test -d /usr/nec; then
17077 version_type=linux # correct to gnu/linux during the next big refactor
17078 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17079 soname_spec='$libname$shared_ext.$major'
17080 shlibpath_var=LD_LIBRARY_PATH
17081 fi
17082 ;;
17083
17084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17085 version_type=sco
17086 need_lib_prefix=no
17087 need_version=no
17088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17089 soname_spec='$libname$release$shared_ext$major'
17090 shlibpath_var=LD_LIBRARY_PATH
17091 shlibpath_overrides_runpath=yes
17092 hardcode_into_libs=yes
17093 if test yes = "$with_gnu_ld"; then
17094 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17095 else
17096 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17097 case $host_os in
17098 sco3.2v5*)
17099 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17100 ;;
17101 esac
17102 fi
17103 sys_lib_dlsearch_path_spec='/usr/lib'
17104 ;;
17105
17106 tpf*)
17107 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17108 version_type=linux # correct to gnu/linux during the next big refactor
17109 need_lib_prefix=no
17110 need_version=no
17111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17112 shlibpath_var=LD_LIBRARY_PATH
17113 shlibpath_overrides_runpath=no
17114 hardcode_into_libs=yes
17115 ;;
17116
17117 uts4*)
17118 version_type=linux # correct to gnu/linux during the next big refactor
17119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17120 soname_spec='$libname$release$shared_ext$major'
17121 shlibpath_var=LD_LIBRARY_PATH
17122 ;;
17123
17124 *)
17125 dynamic_linker=no
17126 ;;
17127 esac
17128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17129 printf "%s\n" "$dynamic_linker" >&6; }
17130 test no = "$dynamic_linker" && can_build_shared=no
17131
17132 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17133 if test yes = "$GCC"; then
17134 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17135 fi
17136
17137 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17138 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17139 fi
17140
17141 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17142 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17143 fi
17144
17145 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17146 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17147
17148 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17149 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17150
17151 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17152 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17251 printf %s "checking how to hardcode library paths into programs... " >&6; }
17252 hardcode_action=
17253 if test -n "$hardcode_libdir_flag_spec" ||
17254 test -n "$runpath_var" ||
17255 test yes = "$hardcode_automatic"; then
17256
17257 # We can hardcode non-existent directories.
17258 if test no != "$hardcode_direct" &&
17259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17260 # have to relink, otherwise we might link with an installed library
17261 # when we should be linking with a yet-to-be-installed one
17262 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17263 test no != "$hardcode_minus_L"; then
17264 # Linking always hardcodes the temporary library directory.
17265 hardcode_action=relink
17266 else
17267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17268 hardcode_action=immediate
17269 fi
17270 else
17271 # We cannot hardcode anything, or else we can only hardcode existing
17272 # directories.
17273 hardcode_action=unsupported
17274 fi
17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17276 printf "%s\n" "$hardcode_action" >&6; }
17277
17278 if test relink = "$hardcode_action" ||
17279 test yes = "$inherit_rpath"; then
17280 # Fast installation is not supported
17281 enable_fast_install=no
17282 elif test yes = "$shlibpath_overrides_runpath" ||
17283 test no = "$enable_shared"; then
17284 # Fast installation is not necessary
17285 enable_fast_install=needless
17286 fi
17287
17288
17289
17290
17291
17292
17293 if test yes != "$enable_dlopen"; then
17294 enable_dlopen=unknown
17295 enable_dlopen_self=unknown
17296 enable_dlopen_self_static=unknown
17297 else
17298 lt_cv_dlopen=no
17299 lt_cv_dlopen_libs=
17300
17301 case $host_os in
17302 beos*)
17303 lt_cv_dlopen=load_add_on
17304 lt_cv_dlopen_libs=
17305 lt_cv_dlopen_self=yes
17306 ;;
17307
17308 mingw* | pw32* | cegcc*)
17309 lt_cv_dlopen=LoadLibrary
17310 lt_cv_dlopen_libs=
17311 ;;
17312
17313 cygwin*)
17314 lt_cv_dlopen=dlopen
17315 lt_cv_dlopen_libs=
17316 ;;
17317
17318 darwin*)
17319 # if libdl is installed we need to link against it
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17321 printf %s "checking for dlopen in -ldl... " >&6; }
17322 if test ${ac_cv_lib_dl_dlopen+y}
17323 then :
17324 printf %s "(cached) " >&6
17325 else case e in #(
17326 e) ac_check_lib_save_LIBS=$LIBS
17327 LIBS="-ldl $LIBS"
17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17330
17331 /* Override any GCC internal prototype to avoid an error.
17332 Use char because int might match the return type of a GCC
17333 builtin and then its argument prototype would still apply.
17334 The 'extern "C"' is for builds by C++ compilers;
17335 although this is not generally supported in C code supporting it here
17336 has little cost and some practical benefit (sr 110532). */
17337 #ifdef __cplusplus
17338 extern "C"
17339 #endif
17340 char dlopen (void);
17341 int
17342 main (void)
17343 {
17344 return dlopen ();
17345 ;
17346 return 0;
17347 }
17348 _ACEOF
17349 if ac_fn_c_try_link "$LINENO"
17350 then :
17351 ac_cv_lib_dl_dlopen=yes
17352 else case e in #(
17353 e) ac_cv_lib_dl_dlopen=no ;;
17354 esac
17355 fi
17356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17357 conftest$ac_exeext conftest.$ac_ext
17358 LIBS=$ac_check_lib_save_LIBS ;;
17359 esac
17360 fi
17361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17362 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
17363 if test "x$ac_cv_lib_dl_dlopen" = xyes
17364 then :
17365 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17366 else case e in #(
17367 e)
17368 lt_cv_dlopen=dyld
17369 lt_cv_dlopen_libs=
17370 lt_cv_dlopen_self=yes
17371 ;;
17372 esac
17373 fi
17374
17375 ;;
17376
17377 tpf*)
17378 # Don't try to run any link tests for TPF. We know it's impossible
17379 # because TPF is a cross-compiler, and we know how we open DSOs.
17380 lt_cv_dlopen=dlopen
17381 lt_cv_dlopen_libs=
17382 lt_cv_dlopen_self=no
17383 ;;
17384
17385 *)
17386 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17387 if test "x$ac_cv_func_shl_load" = xyes
17388 then :
17389 lt_cv_dlopen=shl_load
17390 else case e in #(
17391 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17392 printf %s "checking for shl_load in -ldld... " >&6; }
17393 if test ${ac_cv_lib_dld_shl_load+y}
17394 then :
17395 printf %s "(cached) " >&6
17396 else case e in #(
17397 e) ac_check_lib_save_LIBS=$LIBS
17398 LIBS="-ldld $LIBS"
17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400 /* end confdefs.h. */
17401
17402 /* Override any GCC internal prototype to avoid an error.
17403 Use char because int might match the return type of a GCC
17404 builtin and then its argument prototype would still apply.
17405 The 'extern "C"' is for builds by C++ compilers;
17406 although this is not generally supported in C code supporting it here
17407 has little cost and some practical benefit (sr 110532). */
17408 #ifdef __cplusplus
17409 extern "C"
17410 #endif
17411 char shl_load (void);
17412 int
17413 main (void)
17414 {
17415 return shl_load ();
17416 ;
17417 return 0;
17418 }
17419 _ACEOF
17420 if ac_fn_c_try_link "$LINENO"
17421 then :
17422 ac_cv_lib_dld_shl_load=yes
17423 else case e in #(
17424 e) ac_cv_lib_dld_shl_load=no ;;
17425 esac
17426 fi
17427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17428 conftest$ac_exeext conftest.$ac_ext
17429 LIBS=$ac_check_lib_save_LIBS ;;
17430 esac
17431 fi
17432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17433 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
17434 if test "x$ac_cv_lib_dld_shl_load" = xyes
17435 then :
17436 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17437 else case e in #(
17438 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17439 if test "x$ac_cv_func_dlopen" = xyes
17440 then :
17441 lt_cv_dlopen=dlopen
17442 else case e in #(
17443 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17444 printf %s "checking for dlopen in -ldl... " >&6; }
17445 if test ${ac_cv_lib_dl_dlopen+y}
17446 then :
17447 printf %s "(cached) " >&6
17448 else case e in #(
17449 e) ac_check_lib_save_LIBS=$LIBS
17450 LIBS="-ldl $LIBS"
17451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17452 /* end confdefs.h. */
17453
17454 /* Override any GCC internal prototype to avoid an error.
17455 Use char because int might match the return type of a GCC
17456 builtin and then its argument prototype would still apply.
17457 The 'extern "C"' is for builds by C++ compilers;
17458 although this is not generally supported in C code supporting it here
17459 has little cost and some practical benefit (sr 110532). */
17460 #ifdef __cplusplus
17461 extern "C"
17462 #endif
17463 char dlopen (void);
17464 int
17465 main (void)
17466 {
17467 return dlopen ();
17468 ;
17469 return 0;
17470 }
17471 _ACEOF
17472 if ac_fn_c_try_link "$LINENO"
17473 then :
17474 ac_cv_lib_dl_dlopen=yes
17475 else case e in #(
17476 e) ac_cv_lib_dl_dlopen=no ;;
17477 esac
17478 fi
17479 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17480 conftest$ac_exeext conftest.$ac_ext
17481 LIBS=$ac_check_lib_save_LIBS ;;
17482 esac
17483 fi
17484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17485 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
17486 if test "x$ac_cv_lib_dl_dlopen" = xyes
17487 then :
17488 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17489 else case e in #(
17490 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17491 printf %s "checking for dlopen in -lsvld... " >&6; }
17492 if test ${ac_cv_lib_svld_dlopen+y}
17493 then :
17494 printf %s "(cached) " >&6
17495 else case e in #(
17496 e) ac_check_lib_save_LIBS=$LIBS
17497 LIBS="-lsvld $LIBS"
17498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h. */
17500
17501 /* Override any GCC internal prototype to avoid an error.
17502 Use char because int might match the return type of a GCC
17503 builtin and then its argument prototype would still apply.
17504 The 'extern "C"' is for builds by C++ compilers;
17505 although this is not generally supported in C code supporting it here
17506 has little cost and some practical benefit (sr 110532). */
17507 #ifdef __cplusplus
17508 extern "C"
17509 #endif
17510 char dlopen (void);
17511 int
17512 main (void)
17513 {
17514 return dlopen ();
17515 ;
17516 return 0;
17517 }
17518 _ACEOF
17519 if ac_fn_c_try_link "$LINENO"
17520 then :
17521 ac_cv_lib_svld_dlopen=yes
17522 else case e in #(
17523 e) ac_cv_lib_svld_dlopen=no ;;
17524 esac
17525 fi
17526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17527 conftest$ac_exeext conftest.$ac_ext
17528 LIBS=$ac_check_lib_save_LIBS ;;
17529 esac
17530 fi
17531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17532 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
17533 if test "x$ac_cv_lib_svld_dlopen" = xyes
17534 then :
17535 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17536 else case e in #(
17537 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17538 printf %s "checking for dld_link in -ldld... " >&6; }
17539 if test ${ac_cv_lib_dld_dld_link+y}
17540 then :
17541 printf %s "(cached) " >&6
17542 else case e in #(
17543 e) ac_check_lib_save_LIBS=$LIBS
17544 LIBS="-ldld $LIBS"
17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17547
17548 /* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply.
17551 The 'extern "C"' is for builds by C++ compilers;
17552 although this is not generally supported in C code supporting it here
17553 has little cost and some practical benefit (sr 110532). */
17554 #ifdef __cplusplus
17555 extern "C"
17556 #endif
17557 char dld_link (void);
17558 int
17559 main (void)
17560 {
17561 return dld_link ();
17562 ;
17563 return 0;
17564 }
17565 _ACEOF
17566 if ac_fn_c_try_link "$LINENO"
17567 then :
17568 ac_cv_lib_dld_dld_link=yes
17569 else case e in #(
17570 e) ac_cv_lib_dld_dld_link=no ;;
17571 esac
17572 fi
17573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17574 conftest$ac_exeext conftest.$ac_ext
17575 LIBS=$ac_check_lib_save_LIBS ;;
17576 esac
17577 fi
17578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17579 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
17580 if test "x$ac_cv_lib_dld_dld_link" = xyes
17581 then :
17582 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17583 fi
17584
17585 ;;
17586 esac
17587 fi
17588
17589 ;;
17590 esac
17591 fi
17592
17593 ;;
17594 esac
17595 fi
17596
17597 ;;
17598 esac
17599 fi
17600
17601 ;;
17602 esac
17603 fi
17604
17605 ;;
17606 esac
17607
17608 if test no = "$lt_cv_dlopen"; then
17609 enable_dlopen=no
17610 else
17611 enable_dlopen=yes
17612 fi
17613
17614 case $lt_cv_dlopen in
17615 dlopen)
17616 save_CPPFLAGS=$CPPFLAGS
17617 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17618
17619 save_LDFLAGS=$LDFLAGS
17620 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17621
17622 save_LIBS=$LIBS
17623 LIBS="$lt_cv_dlopen_libs $LIBS"
17624
17625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17626 printf %s "checking whether a program can dlopen itself... " >&6; }
17627 if test ${lt_cv_dlopen_self+y}
17628 then :
17629 printf %s "(cached) " >&6
17630 else case e in #(
17631 e) if test yes = "$cross_compiling"; then :
17632 lt_cv_dlopen_self=cross
17633 else
17634 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17635 lt_status=$lt_dlunknown
17636 cat > conftest.$ac_ext <<_LT_EOF
17637 #line $LINENO "configure"
17638 #include "confdefs.h"
17639
17640 #if HAVE_DLFCN_H
17641 #include <dlfcn.h>
17642 #endif
17643
17644 #include <stdio.h>
17645
17646 #ifdef RTLD_GLOBAL
17647 # define LT_DLGLOBAL RTLD_GLOBAL
17648 #else
17649 # ifdef DL_GLOBAL
17650 # define LT_DLGLOBAL DL_GLOBAL
17651 # else
17652 # define LT_DLGLOBAL 0
17653 # endif
17654 #endif
17655
17656 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17657 find out it does not work in some platform. */
17658 #ifndef LT_DLLAZY_OR_NOW
17659 # ifdef RTLD_LAZY
17660 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17661 # else
17662 # ifdef DL_LAZY
17663 # define LT_DLLAZY_OR_NOW DL_LAZY
17664 # else
17665 # ifdef RTLD_NOW
17666 # define LT_DLLAZY_OR_NOW RTLD_NOW
17667 # else
17668 # ifdef DL_NOW
17669 # define LT_DLLAZY_OR_NOW DL_NOW
17670 # else
17671 # define LT_DLLAZY_OR_NOW 0
17672 # endif
17673 # endif
17674 # endif
17675 # endif
17676 #endif
17677
17678 /* When -fvisibility=hidden is used, assume the code has been annotated
17679 correspondingly for the symbols needed. */
17680 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17681 int fnord () __attribute__((visibility("default")));
17682 #endif
17683
17684 int fnord () { return 42; }
17685 int main ()
17686 {
17687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17688 int status = $lt_dlunknown;
17689
17690 if (self)
17691 {
17692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17693 else
17694 {
17695 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17696 else puts (dlerror ());
17697 }
17698 /* dlclose (self); */
17699 }
17700 else
17701 puts (dlerror ());
17702
17703 return status;
17704 }
17705 _LT_EOF
17706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17707 (eval $ac_link) 2>&5
17708 ac_status=$?
17709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17710 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17711 (./conftest; exit; ) >&5 2>/dev/null
17712 lt_status=$?
17713 case x$lt_status in
17714 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17715 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17716 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17717 esac
17718 else :
17719 # compilation failed
17720 lt_cv_dlopen_self=no
17721 fi
17722 fi
17723 rm -fr conftest*
17724
17725 ;;
17726 esac
17727 fi
17728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17729 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
17730
17731 if test yes = "$lt_cv_dlopen_self"; then
17732 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17734 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
17735 if test ${lt_cv_dlopen_self_static+y}
17736 then :
17737 printf %s "(cached) " >&6
17738 else case e in #(
17739 e) if test yes = "$cross_compiling"; then :
17740 lt_cv_dlopen_self_static=cross
17741 else
17742 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17743 lt_status=$lt_dlunknown
17744 cat > conftest.$ac_ext <<_LT_EOF
17745 #line $LINENO "configure"
17746 #include "confdefs.h"
17747
17748 #if HAVE_DLFCN_H
17749 #include <dlfcn.h>
17750 #endif
17751
17752 #include <stdio.h>
17753
17754 #ifdef RTLD_GLOBAL
17755 # define LT_DLGLOBAL RTLD_GLOBAL
17756 #else
17757 # ifdef DL_GLOBAL
17758 # define LT_DLGLOBAL DL_GLOBAL
17759 # else
17760 # define LT_DLGLOBAL 0
17761 # endif
17762 #endif
17763
17764 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17765 find out it does not work in some platform. */
17766 #ifndef LT_DLLAZY_OR_NOW
17767 # ifdef RTLD_LAZY
17768 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17769 # else
17770 # ifdef DL_LAZY
17771 # define LT_DLLAZY_OR_NOW DL_LAZY
17772 # else
17773 # ifdef RTLD_NOW
17774 # define LT_DLLAZY_OR_NOW RTLD_NOW
17775 # else
17776 # ifdef DL_NOW
17777 # define LT_DLLAZY_OR_NOW DL_NOW
17778 # else
17779 # define LT_DLLAZY_OR_NOW 0
17780 # endif
17781 # endif
17782 # endif
17783 # endif
17784 #endif
17785
17786 /* When -fvisibility=hidden is used, assume the code has been annotated
17787 correspondingly for the symbols needed. */
17788 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17789 int fnord () __attribute__((visibility("default")));
17790 #endif
17791
17792 int fnord () { return 42; }
17793 int main ()
17794 {
17795 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17796 int status = $lt_dlunknown;
17797
17798 if (self)
17799 {
17800 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17801 else
17802 {
17803 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17804 else puts (dlerror ());
17805 }
17806 /* dlclose (self); */
17807 }
17808 else
17809 puts (dlerror ());
17810
17811 return status;
17812 }
17813 _LT_EOF
17814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17815 (eval $ac_link) 2>&5
17816 ac_status=$?
17817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17818 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17819 (./conftest; exit; ) >&5 2>/dev/null
17820 lt_status=$?
17821 case x$lt_status in
17822 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17823 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17824 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17825 esac
17826 else :
17827 # compilation failed
17828 lt_cv_dlopen_self_static=no
17829 fi
17830 fi
17831 rm -fr conftest*
17832
17833 ;;
17834 esac
17835 fi
17836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17837 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
17838 fi
17839
17840 CPPFLAGS=$save_CPPFLAGS
17841 LDFLAGS=$save_LDFLAGS
17842 LIBS=$save_LIBS
17843 ;;
17844 esac
17845
17846 case $lt_cv_dlopen_self in
17847 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17848 *) enable_dlopen_self=unknown ;;
17849 esac
17850
17851 case $lt_cv_dlopen_self_static in
17852 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17853 *) enable_dlopen_self_static=unknown ;;
17854 esac
17855 fi
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873 striplib=
17874 old_striplib=
17875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17876 printf %s "checking whether stripping libraries is possible... " >&6; }
17877 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17878 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17879 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17881 printf "%s\n" "yes" >&6; }
17882 else
17883 # FIXME - insert some real tests, host_os isn't really good enough
17884 case $host_os in
17885 darwin*)
17886 if test -n "$STRIP"; then
17887 striplib="$STRIP -x"
17888 old_striplib="$STRIP -S"
17889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17890 printf "%s\n" "yes" >&6; }
17891 else
17892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17893 printf "%s\n" "no" >&6; }
17894 fi
17895 ;;
17896 *)
17897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17898 printf "%s\n" "no" >&6; }
17899 ;;
17900 esac
17901 fi
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914 # Report what library types will actually be built
17915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17916 printf %s "checking if libtool supports shared libraries... " >&6; }
17917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17918 printf "%s\n" "$can_build_shared" >&6; }
17919
17920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17921 printf %s "checking whether to build shared libraries... " >&6; }
17922 test no = "$can_build_shared" && enable_shared=no
17923
17924 # On AIX, shared libraries and static libraries use the same namespace, and
17925 # are all built from PIC.
17926 case $host_os in
17927 aix3*)
17928 test yes = "$enable_shared" && enable_static=no
17929 if test -n "$RANLIB"; then
17930 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17931 postinstall_cmds='$RANLIB $lib'
17932 fi
17933 ;;
17934
17935 aix[4-9]*)
17936 if test ia64 != "$host_cpu"; then
17937 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
17938 yes,aix,yes) ;; # shared object as lib.so file only
17939 yes,svr4,*) ;; # shared object as lib.so archive member only
17940 yes,*) enable_static=no ;; # shared object in lib.a archive as well
17941 esac
17942 fi
17943 ;;
17944 esac
17945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17946 printf "%s\n" "$enable_shared" >&6; }
17947
17948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17949 printf %s "checking whether to build static libraries... " >&6; }
17950 # Make sure either enable_shared or enable_static is yes.
17951 test yes = "$enable_shared" || enable_static=yes
17952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17953 printf "%s\n" "$enable_static" >&6; }
17954
17955
17956
17957
17958 fi
17959 ac_ext=c
17960 ac_cpp='$CPP $CPPFLAGS'
17961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17964
17965 CC=$lt_save_CC
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981 ac_config_commands="$ac_config_commands libtool"
17982
17983
17984
17985
17986 # Only expand once:
17987
17988
17989 if test -n "$ac_tool_prefix"; then
17990 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17991 set dummy ${ac_tool_prefix}windres; ac_word=$2
17992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17993 printf %s "checking for $ac_word... " >&6; }
17994 if test ${ac_cv_prog_RC+y}
17995 then :
17996 printf %s "(cached) " >&6
17997 else case e in #(
17998 e) if test -n "$RC"; then
17999 ac_cv_prog_RC="$RC" # Let the user override the test.
18000 else
18001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18002 for as_dir in $PATH
18003 do
18004 IFS=$as_save_IFS
18005 case $as_dir in #(((
18006 '') as_dir=./ ;;
18007 */) ;;
18008 *) as_dir=$as_dir/ ;;
18009 esac
18010 for ac_exec_ext in '' $ac_executable_extensions; do
18011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18012 ac_cv_prog_RC="${ac_tool_prefix}windres"
18013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18014 break 2
18015 fi
18016 done
18017 done
18018 IFS=$as_save_IFS
18019
18020 fi ;;
18021 esac
18022 fi
18023 RC=$ac_cv_prog_RC
18024 if test -n "$RC"; then
18025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
18026 printf "%s\n" "$RC" >&6; }
18027 else
18028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18029 printf "%s\n" "no" >&6; }
18030 fi
18031
18032
18033 fi
18034 if test -z "$ac_cv_prog_RC"; then
18035 ac_ct_RC=$RC
18036 # Extract the first word of "windres", so it can be a program name with args.
18037 set dummy windres; ac_word=$2
18038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18039 printf %s "checking for $ac_word... " >&6; }
18040 if test ${ac_cv_prog_ac_ct_RC+y}
18041 then :
18042 printf %s "(cached) " >&6
18043 else case e in #(
18044 e) if test -n "$ac_ct_RC"; then
18045 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
18046 else
18047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18048 for as_dir in $PATH
18049 do
18050 IFS=$as_save_IFS
18051 case $as_dir in #(((
18052 '') as_dir=./ ;;
18053 */) ;;
18054 *) as_dir=$as_dir/ ;;
18055 esac
18056 for ac_exec_ext in '' $ac_executable_extensions; do
18057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18058 ac_cv_prog_ac_ct_RC="windres"
18059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18060 break 2
18061 fi
18062 done
18063 done
18064 IFS=$as_save_IFS
18065
18066 fi ;;
18067 esac
18068 fi
18069 ac_ct_RC=$ac_cv_prog_ac_ct_RC
18070 if test -n "$ac_ct_RC"; then
18071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
18072 printf "%s\n" "$ac_ct_RC" >&6; }
18073 else
18074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18075 printf "%s\n" "no" >&6; }
18076 fi
18077
18078 if test "x$ac_ct_RC" = x; then
18079 RC=""
18080 else
18081 case $cross_compiling:$ac_tool_warned in
18082 yes:)
18083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18084 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18085 ac_tool_warned=yes ;;
18086 esac
18087 RC=$ac_ct_RC
18088 fi
18089 else
18090 RC="$ac_cv_prog_RC"
18091 fi
18092
18093
18094
18095
18096 # Source file extension for RC test sources.
18097 ac_ext=rc
18098
18099 # Object file extension for compiled RC test sources.
18100 objext=o
18101 objext_RC=$objext
18102
18103 # Code to be used in simple compile tests
18104 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18105
18106 # Code to be used in simple link tests
18107 lt_simple_link_test_code=$lt_simple_compile_test_code
18108
18109 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18110
18111
18112
18113
18114
18115
18116 # If no C compiler was specified, use CC.
18117 LTCC=${LTCC-"$CC"}
18118
18119 # If no C compiler flags were specified, use CFLAGS.
18120 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18121
18122 # Allow CC to be a program name with arguments.
18123 compiler=$CC
18124
18125
18126 # save warnings/boilerplate of simple test code
18127 ac_outfile=conftest.$ac_objext
18128 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18129 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18130 _lt_compiler_boilerplate=`cat conftest.err`
18131 $RM conftest*
18132
18133 ac_outfile=conftest.$ac_objext
18134 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18135 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18136 _lt_linker_boilerplate=`cat conftest.err`
18137 $RM -r conftest*
18138
18139
18140 # Allow CC to be a program name with arguments.
18141 lt_save_CC=$CC
18142 lt_save_CFLAGS=$CFLAGS
18143 lt_save_GCC=$GCC
18144 GCC=
18145 CC=${RC-"windres"}
18146 CFLAGS=
18147 compiler=$CC
18148 compiler_RC=$CC
18149 func_cc_basename $compiler
18150 cc_basename=$func_cc_basename_result
18151
18152 lt_cv_prog_compiler_c_o_RC=yes
18153
18154 if test -n "$compiler"; then
18155 :
18156
18157
18158
18159 fi
18160
18161 GCC=$lt_save_GCC
18162 ac_ext=c
18163 ac_cpp='$CPP $CPPFLAGS'
18164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18167
18168 CC=$lt_save_CC
18169 CFLAGS=$lt_save_CFLAGS
18170
18171
18172
18173
18174 ##
18175 # Build environment:
18176 ##
18177
18178 for opt in -Werror=declaration-after-statement
18179 do
18180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $opt" >&5
18181 printf %s "checking whether the compiler supports $opt... " >&6; }
18182 netsnmp_save_CFLAGS="$CFLAGS"
18183 if test x$opt != x-Wstrict-prototypes; then
18184 CFLAGS="-Werror $opt $CFLAGS"
18185 else
18186 CFLAGS="$opt $CFLAGS"
18187 fi
18188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18190
18191 int
18192 main (void)
18193 {
18194
18195 ;
18196 return 0;
18197 }
18198 _ACEOF
18199 if ac_fn_c_try_link "$LINENO"
18200 then :
18201
18202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18203 printf "%s\n" "yes" >&6; }
18204 CFLAGS="$opt $netsnmp_save_CFLAGS"
18205
18206 else case e in #(
18207 e)
18208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18209 printf "%s\n" "no" >&6; }
18210 CFLAGS="$netsnmp_save_CFLAGS"
18211 ;;
18212 esac
18213 fi
18214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18215 conftest$ac_exeext conftest.$ac_ext
18216 done
18217
18218 # developer build
18219 # (enabled by default when building from SVN checkout)
18220 #
18221 if test "x$developer" != "xno" -a -f $srcdir/remove-files; then
18222 developer="yes"
18223 fi
18224 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
18225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
18226 printf %s "checking for developer gcc flags... " >&6; }
18227 # WWWXXX - strict type checking
18228 #
18229 netsnmp_save_CFLAGS="$CFLAGS"
18230 for opt in -Wall -Wextra -Wstrict-prototypes -Wwrite-strings -Wcast-qual \
18231 -Wimplicit-fallthrough=2 -Wlogical-op -Wundef \
18232 -Wno-format-truncation -Wno-missing-field-initializers \
18233 -Wno-sign-compare -Wno-unused-parameter -Wcast-function-type
18234 do
18235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $opt" >&5
18236 printf %s "checking whether the compiler supports $opt... " >&6; }
18237 if test x$opt != x-Wstrict-prototypes; then
18238 CFLAGS="-Werror $opt $CFLAGS"
18239 else
18240 CFLAGS="$opt $CFLAGS"
18241 fi
18242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18243 /* end confdefs.h. */
18244
18245 int
18246 main (void)
18247 {
18248
18249 ;
18250 return 0;
18251 }
18252 _ACEOF
18253 if ac_fn_c_try_link "$LINENO"
18254 then :
18255
18256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18257 printf "%s\n" "yes" >&6; }
18258 DEVFLAGS="$DEVFLAGS $opt"
18259
18260 else case e in #(
18261 e)
18262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18263 printf "%s\n" "no" >&6; }
18264 ;;
18265 esac
18266 fi
18267 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18268 conftest$ac_exeext conftest.$ac_ext
18269 CFLAGS="$netsnmp_save_CFLAGS"
18270 done
18271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEVFLAGS" >&5
18272 printf "%s\n" "$DEVFLAGS" >&6; }
18273 else
18274 DEVFLAGS=""
18275 fi
18276
18277
18278
18279 # building outside source directory
18280 #
18281 # a) ensure build include paths are before source
18282 # b) ensure GNU make uses 'vpath' instead of 'VPATH'
18283 #
18284 NON_GNU_VPATH="VPATH ="
18285 GNU_vpath="#vpath"
18286
18287 # define include paths relative to top_srcdir
18288 # tweak includes if we're building outside of the source dir
18289 #
18290 if test "x$srcdir" = "x."; then
18291 TOP_INCLUDES=SRC_TOP_INCLUDES
18292 SNMPLIB_INCLUDES=SRC_SNMPLIB_INCLUDES
18293 AGENT_INCLUDES=SRC_AGENT_INCLUDES
18294 HELPER_INCLUDES=SRC_HELPER_INCLUDES
18295 MIBGROUP_INCLUDES=SRC_MIBGROUP_INCLUDES
18296 else
18297 TOP_INCLUDES=BLD_TOP_INCLUDES
18298 SNMPLIB_INCLUDES=BLD_SNMPLIB_INCLUDES
18299 AGENT_INCLUDES=BLD_AGENT_INCLUDES
18300 HELPER_INCLUDES=BLD_HELPER_INCLUDES
18301 MIBGROUP_INCLUDES=BLD_MIBGROUP_INCLUDES
18302 if test $have_gnu_make -eq 0 ; then
18303 NON_GNU_VPATH="#VPATH ="
18304 GNU_vpath="vpath"
18305 fi
18306 fi
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317 ##
18318 # System-related compilation checks:
18319 ##
18320
18321 # What system are we building for
18322 #
18323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
18324 printf %s "checking target system type... " >&6; }
18325 if test ${ac_cv_target+y}
18326 then :
18327 printf %s "(cached) " >&6
18328 else case e in #(
18329 e) if test "x$target_alias" = x; then
18330 ac_cv_target=$ac_cv_host
18331 else
18332 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
18333 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
18334 fi
18335 ;;
18336 esac
18337 fi
18338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
18339 printf "%s\n" "$ac_cv_target" >&6; }
18340 case $ac_cv_target in
18341 *-*-*) ;;
18342 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
18343 esac
18344 target=$ac_cv_target
18345 ac_save_IFS=$IFS; IFS='-'
18346 set x $ac_cv_target
18347 shift
18348 target_cpu=$1
18349 target_vendor=$2
18350 shift; shift
18351 # Remember, the first character of IFS is used to create $*,
18352 # except with old shells:
18353 target_os=$*
18354 IFS=$ac_save_IFS
18355 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
18356
18357
18358 # The aliases save the names the user supplied, while $host etc.
18359 # will get canonicalized.
18360 test -n "$target_alias" &&
18361 test "$program_prefix$program_suffix$program_transform_name" = \
18362 NONENONEs,x,x, &&
18363 program_prefix=${target_alias}-
18364
18365 PARTIALTARGETOS=`echo $target_os | sed 's/[-._].*//'`
18366
18367
18368 cat >> configure-summary << EOF
18369 Building for: $PARTIALTARGETOS
18370 EOF
18371
18372
18373
18374 # Avoid conflicts on Cygwin between <windows.h> and the openssl header files.
18375 case x$target_os in
18376 xcygwin*|xmingw32*)
18377 CPPFLAGS="-DVC_EXTRALEAN -DWIN32_LEAN_AND_MEAN $CPPFLAGS";;
18378 esac
18379
18380
18381 #
18382 # Whether the linker supports the flag -Wl,-no-undefined. Do not use
18383 # -Wl,-no-undefined on OpenBSD because it breaks linking of shared
18384 # libraries. Use -Wl,-no-undefined on all other platforms such that
18385 # undefined symbols are detected at compile time instead of at runtime.
18386 #
18387
18388 case x$target_os in
18389 xopenbsd*)
18390 ;;
18391 *)
18392 if ! echo "$CFLAGS" | grep -q -- -fsanitize=; then
18393 saved_LDFLAGS=$LDFLAGS
18394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -Wl,-no-undefined" >&5
18395 printf %s "checking whether the linker supports -Wl,-no-undefined... " >&6; }
18396 LDFLAGS="$saved_LDFLAGS -Wl,-no-undefined"
18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18399
18400 int
18401 main (void)
18402 {
18403
18404 ;
18405 return 0;
18406 }
18407 _ACEOF
18408 if ac_fn_c_try_link "$LINENO"
18409 then :
18410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18411 printf "%s\n" "yes" >&6; }; LD_NO_UNDEFINED=-Wl,-no-undefined
18412 else case e in #(
18413 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18414 printf "%s\n" "no" >&6; } ;;
18415 esac
18416 fi
18417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18418 conftest$ac_exeext conftest.$ac_ext
18419 LDFLAGS="$saved_LDFLAGS"
18420
18421 fi
18422 ;;
18423 esac
18424
18425
18426 #
18427 # Socket library: either 'default' (non-MinGW) or 'winsock2' (MinGW).
18428 #
18429 case x$target_os in
18430 xmingw*)
18431 with_socklib=winsock2
18432 CPPFLAGS="-D_WIN32_WINNT=0xffff -DWIN32 $CPPFLAGS"
18433 ;;
18434 *)
18435 with_socklib=default;;
18436 esac
18437
18438
18439 # Check system define behaviour
18440 # Does "-Ux -Dx=x" work as expected?
18441 #
18442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to un-define target system token (before redefining)" >&5
18443 printf %s "checking whether to un-define target system token (before redefining)... " >&6; }
18444 OLD_CPPFLAGS="$CPPFLAGS"
18445 CPPFLAGS="-U$PARTIALTARGETOS -D$PARTIALTARGETOS=$PARTIALTARGETOS"
18446
18447
18448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
18449 printf %s "checking for egrep -e... " >&6; }
18450 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
18451 then :
18452 printf %s "(cached) " >&6
18453 else case e in #(
18454 e) if test -z "$EGREP_TRADITIONAL"; then
18455 ac_path_EGREP_TRADITIONAL_found=false
18456 # Loop through the user's path and test for each of PROGNAME-LIST
18457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18459 do
18460 IFS=$as_save_IFS
18461 case $as_dir in #(((
18462 '') as_dir=./ ;;
18463 */) ;;
18464 *) as_dir=$as_dir/ ;;
18465 esac
18466 for ac_prog in grep ggrep
18467 do
18468 for ac_exec_ext in '' $ac_executable_extensions; do
18469 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
18470 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
18471 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
18472 # Check for GNU $ac_path_EGREP_TRADITIONAL
18473 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
18474 *GNU*)
18475 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
18476 #(
18477 *)
18478 ac_count=0
18479 printf %s 0123456789 >"conftest.in"
18480 while :
18481 do
18482 cat "conftest.in" "conftest.in" >"conftest.tmp"
18483 mv "conftest.tmp" "conftest.in"
18484 cp "conftest.in" "conftest.nl"
18485 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
18486 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18488 as_fn_arith $ac_count + 1 && ac_count=$as_val
18489 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
18490 # Best one so far, save it but keep looking for a better one
18491 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
18492 ac_path_EGREP_TRADITIONAL_max=$ac_count
18493 fi
18494 # 10*(2^10) chars as input seems more than enough
18495 test $ac_count -gt 10 && break
18496 done
18497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18498 esac
18499
18500 $ac_path_EGREP_TRADITIONAL_found && break 3
18501 done
18502 done
18503 done
18504 IFS=$as_save_IFS
18505 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
18506 :
18507 fi
18508 else
18509 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
18510 fi
18511
18512 if test "$ac_cv_path_EGREP_TRADITIONAL"
18513 then :
18514 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
18515 else case e in #(
18516 e) if test -z "$EGREP_TRADITIONAL"; then
18517 ac_path_EGREP_TRADITIONAL_found=false
18518 # Loop through the user's path and test for each of PROGNAME-LIST
18519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18520 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18521 do
18522 IFS=$as_save_IFS
18523 case $as_dir in #(((
18524 '') as_dir=./ ;;
18525 */) ;;
18526 *) as_dir=$as_dir/ ;;
18527 esac
18528 for ac_prog in egrep
18529 do
18530 for ac_exec_ext in '' $ac_executable_extensions; do
18531 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
18532 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
18533 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
18534 # Check for GNU $ac_path_EGREP_TRADITIONAL
18535 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
18536 *GNU*)
18537 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
18538 #(
18539 *)
18540 ac_count=0
18541 printf %s 0123456789 >"conftest.in"
18542 while :
18543 do
18544 cat "conftest.in" "conftest.in" >"conftest.tmp"
18545 mv "conftest.tmp" "conftest.in"
18546 cp "conftest.in" "conftest.nl"
18547 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
18548 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18550 as_fn_arith $ac_count + 1 && ac_count=$as_val
18551 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
18552 # Best one so far, save it but keep looking for a better one
18553 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
18554 ac_path_EGREP_TRADITIONAL_max=$ac_count
18555 fi
18556 # 10*(2^10) chars as input seems more than enough
18557 test $ac_count -gt 10 && break
18558 done
18559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18560 esac
18561
18562 $ac_path_EGREP_TRADITIONAL_found && break 3
18563 done
18564 done
18565 done
18566 IFS=$as_save_IFS
18567 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
18568 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
18569 fi
18570 else
18571 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
18572 fi
18573 ;;
18574 esac
18575 fi ;;
18576 esac
18577 fi
18578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
18579 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
18580 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
18581
18582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583 /* end confdefs.h. */
18584 [
18585 #ifdef $PARTIALTARGETOS
18586 yes
18587 #endif
18588 ]
18589 _ACEOF
18590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18591 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
18592 then :
18593 PARTIALTARGETFLAGS="-U$PARTIALTARGETOS -D$PARTIALTARGETOS=$PARTIALTARGETOS"
18594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18595 printf "%s\n" "yes" >&6; }
18596 else case e in #(
18597 e) PARTIALTARGETFLAGS="-D$PARTIALTARGETOS=$PARTIALTARGETOS"
18598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18599 printf "%s\n" "no" >&6; } ;;
18600 esac
18601 fi
18602 rm -rf conftest*
18603
18604 CFLAGS="$CFLAGS $PARTIALTARGETFLAGS"
18605 CPPFLAGS="$OLD_CPPFLAGS"
18606
18607
18608 # Determine appropriate <net-snmp/system/{os}.h> include
18609 #
18610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system include file" >&5
18611 printf %s "checking for system include file... " >&6; }
18612
18613 filebase=$target_os
18614 # ignore binary format indication
18615 filebase=`echo $filebase | $SED 's/elf//'`
18616 filebase=`echo $filebase | $SED 's/aout//'`
18617 filebase=`echo $filebase | $SED 's/ecoff//'`
18618 filebase=`echo $filebase | $SED 's/coff//'`
18619 while test "x$filebase" != "x$last" -a ! -f $srcdir/include/net-snmp/system/$filebase.h
18620 do
18621 last=$filebase
18622 filebase=`echo $filebase | $SED 's/[-._][^-._]*$//'`
18623 if test "x$filebase" = "x$last"; then
18624 filebase=`echo $filebase | $SED 's/[0-9]*$//'`
18625 fi
18626 done
18627
18628 if test "x$filebase" = "x$last"; then
18629 filebase="generic"
18630 fi
18631 ac_cv_NETSNMP_SYSTEM_INCLUDE_FILE="net-snmp/system/$filebase.h"
18632
18633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_NETSNMP_SYSTEM_INCLUDE_FILE" >&5
18634 printf "%s\n" "$ac_cv_NETSNMP_SYSTEM_INCLUDE_FILE" >&6; }
18635 printf "%s\n" "#define NETSNMP_SYSTEM_INCLUDE_FILE \"$ac_cv_NETSNMP_SYSTEM_INCLUDE_FILE\"" >>confdefs.h
18636
18637
18638
18639 # Determine appropriate <net-snmp/machine/{cpu}.h> include
18640 #
18641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for machine-type include file" >&5
18642 printf %s "checking for machine-type include file... " >&6; }
18643
18644 filebase=$target_cpu
18645 while test "x$filebase" != "x$last" -a ! -f $srcdir/include/net-snmp/machine/$filebase.h
18646 do
18647 last=$filebase
18648 filebase=`echo $filebase | $SED 's/[-._][^-._]*$//'`
18649 done
18650
18651 if test "x$filebase" = "x$last"; then
18652 filebase="generic"
18653 fi
18654 ac_cv_NETSNMP_MACHINE_INCLUDE_FILE="net-snmp/machine/$filebase.h"
18655
18656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_NETSNMP_MACHINE_INCLUDE_FILE" >&5
18657 printf "%s\n" "$ac_cv_NETSNMP_MACHINE_INCLUDE_FILE" >&6; }
18658 printf "%s\n" "#define NETSNMP_MACHINE_INCLUDE_FILE \"$ac_cv_NETSNMP_MACHINE_INCLUDE_FILE\"" >>confdefs.h
18659
18660
18661
18662 ##
18663 # Platform-specific compilation checks:
18664 ##
18665
18666 # Preprocessor checks:
18667 #
18668
18669 # More sensible system identifier (MinGW)
18670 #
18671 if test "x$PARTIALTARGETOS" = "xmingw32msvc"; then
18672 CFLAGS="$CFLAGS -Dmingw32"
18673 fi
18674
18675 # Handle .in file extension (GCC)
18676 #
18677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional cpp flags" >&5
18678 printf %s "checking for additional cpp flags... " >&6; }
18679 if test "x$GCC" = "xyes" -a "x$CPP" = "x$CC -E"; then
18680 EXTRACPPFLAGS="-x c"
18681 else
18682 EXTRACPPFLAGS=""
18683 fi
18684
18685 # Solaris extra CPP flags (Solaris)
18686 #
18687 if test "x$GCC" != "xyes"; then
18688 case $target_os in
18689 solaris*) EXTRACPPFLAGS="$EXTRACPPFLAGS -Xs" ;;
18690 esac
18691 fi
18692
18693
18694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXTRACPPFLAGS" >&5
18695 printf "%s\n" "$EXTRACPPFLAGS" >&6; }
18696
18697
18698 # Compiler checks:
18699 #
18700
18701 # Extract the first word of "$CC", so it can be a program name with args.
18702 set dummy $CC; ac_word=$2
18703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18704 printf %s "checking for $ac_word... " >&6; }
18705 if test ${ac_cv_path_CCPATH+y}
18706 then :
18707 printf %s "(cached) " >&6
18708 else case e in #(
18709 e) case $CCPATH in
18710 [\\/]* | ?:[\\/]*)
18711 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
18712 ;;
18713 *)
18714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18715 for as_dir in $PATH
18716 do
18717 IFS=$as_save_IFS
18718 case $as_dir in #(((
18719 '') as_dir=./ ;;
18720 */) ;;
18721 *) as_dir=$as_dir/ ;;
18722 esac
18723 for ac_exec_ext in '' $ac_executable_extensions; do
18724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18725 ac_cv_path_CCPATH="$as_dir$ac_word$ac_exec_ext"
18726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18727 break 2
18728 fi
18729 done
18730 done
18731 IFS=$as_save_IFS
18732
18733 ;;
18734 esac ;;
18735 esac
18736 fi
18737 CCPATH=$ac_cv_path_CCPATH
18738 if test -n "$CCPATH"; then
18739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
18740 printf "%s\n" "$CCPATH" >&6; }
18741 else
18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18743 printf "%s\n" "no" >&6; }
18744 fi
18745
18746
18747 case $target_os in
18748 bsdi*)
18749 # Check for bundled compiler (BSDi)
18750 #
18751 if test "x$CCPATH" = "x/usr/ucb/cc" -o "x$CCPATH" = "x/usr/bin/cc"; then
18752 as_fn_error $? "
18753
18754 *** The BSDI /usr/ucb/cc compiler does not work with this package.
18755 *** Please run configure with --with-cc=gcc
18756 " "$LINENO" 5
18757 fi
18758 ;;
18759 solaris*)
18760 # Check for bundled compiler (Solaris)
18761 #
18762 if test "x$CCPATH" = "x/usr/ucb/cc"; then
18763 as_fn_error $? "
18764
18765 *** The solaris /usr/ucb/cc compiler does not work with this package.
18766 *** Please put a different compiler in your path first or run
18767 *** configure with --with-cc=XX, where XX is the compiler you want to use.
18768 " "$LINENO" 5
18769 fi
18770 ;;
18771 esac
18772
18773
18774 # Compiler flags:
18775 #
18776
18777 CFLAGS="-DNETSNMP_REMOVE_U64 $CFLAGS"
18778
18779 # The Net-SNMP source code is not strict-aliasing safe, so add
18780 # -fno-strict-aliasing to $CFLAGS if the compiler supports it.
18781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
18782 printf %s "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
18783 netsnmp_save_CFLAGS="$CFLAGS"
18784 CFLAGS="-fno-strict-aliasing $CFLAGS"
18785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18786 /* end confdefs.h. */
18787
18788 int
18789 main (void)
18790 {
18791
18792 ;
18793 return 0;
18794 }
18795 _ACEOF
18796 if ac_fn_c_try_link "$LINENO"
18797 then :
18798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18799 printf "%s\n" "yes" >&6; }
18800 else case e in #(
18801 e)
18802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18803 printf "%s\n" "no" >&6; }
18804 CFLAGS="$netsnmp_save_CFLAGS"
18805 ;;
18806 esac
18807 fi
18808 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18809 conftest$ac_exeext conftest.$ac_ext
18810
18811
18812 # Linker checks:
18813 #
18814
18815 case $target_os in
18816 aix4.2*|aix4.3*|aix5*|aix6*|aix7*)
18817 # Runtime linking flags (AIX)
18818 #
18819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what linker flags to add to enable runtime linking on AIX" >&5
18820 printf %s "checking what linker flags to add to enable runtime linking on AIX... " >&6; }
18821 for ld_flag in $LDFLAGS; do
18822 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18823 netsnmp_aix_runtimelinking_flags_ok=yes
18824 break
18825 fi
18826 done
18827 if test "X$netsnmp_aix_runtimelinking_flags_ok" != "Xyes"; then
18828 if test "x$GCC" = "xyes"; then
18829 netsnmp_aix_ldflags="-Wl,-brtl"
18830 else
18831 netsnmp_aix_ldflags="-brtl"
18832 fi
18833 LDFLAGS="$netsnmp_aix_ldflags $LDFLAGS"
18834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_aix_ldflags" >&5
18835 printf "%s\n" "$netsnmp_aix_ldflags" >&6; }
18836 else
18837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
18838 printf "%s\n" "none" >&6; }
18839 fi
18840 ;;
18841
18842 darwin*)
18843 # Flat Namespace linking (Mac OS/X)
18844 #
18845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether darwin ld might need -flat_namespace" >&5
18846 printf %s "checking whether darwin ld might need -flat_namespace... " >&6; }
18847 if test -z "$MACOSX_DEPLOYMENT_TARGET"; then
18848 saved_LDFLAGS="$LDFLAGS"
18849 LDFLAGS="-flat_namespace -framework CoreFoundation -framework CoreServices -framework DiskArbitration -framework IOKit $LDFLAGS"
18850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18851 /* end confdefs.h. */
18852
18853 int
18854 main (void)
18855 {
18856
18857 ;
18858 return 0;
18859 }
18860 _ACEOF
18861 if ac_fn_c_try_link "$LINENO"
18862 then :
18863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18864 printf "%s\n" "yes" >&6; }
18865 else case e in #(
18866 e) LDFLAGS="$saved_LDFLAGS"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18867 printf "%s\n" "no" >&6; } ;;
18868 esac
18869 fi
18870 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18871 conftest$ac_exeext conftest.$ac_ext
18872 else
18873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18874 printf "%s\n" "no" >&6; }
18875 fi
18876 ;;
18877
18878 *)
18879 ;;
18880 esac
18881
18882
18883 # dpkg package (swintst_apt)
18884 # used in agent only
18885 #
18886 # Extract the first word of "dpkg-query", so it can be a program name with args.
18887 set dummy dpkg-query; ac_word=$2
18888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18889 printf %s "checking for $ac_word... " >&6; }
18890 if test ${ac_cv_path_DPKG_QUERY_PATH+y}
18891 then :
18892 printf %s "(cached) " >&6
18893 else case e in #(
18894 e) case $DPKG_QUERY_PATH in
18895 [\\/]* | ?:[\\/]*)
18896 ac_cv_path_DPKG_QUERY_PATH="$DPKG_QUERY_PATH" # Let the user override the test with a path.
18897 ;;
18898 *)
18899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18900 for as_dir in $PATH
18901 do
18902 IFS=$as_save_IFS
18903 case $as_dir in #(((
18904 '') as_dir=./ ;;
18905 */) ;;
18906 *) as_dir=$as_dir/ ;;
18907 esac
18908 for ac_exec_ext in '' $ac_executable_extensions; do
18909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18910 ac_cv_path_DPKG_QUERY_PATH="$as_dir$ac_word$ac_exec_ext"
18911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18912 break 2
18913 fi
18914 done
18915 done
18916 IFS=$as_save_IFS
18917
18918 ;;
18919 esac ;;
18920 esac
18921 fi
18922 DPKG_QUERY_PATH=$ac_cv_path_DPKG_QUERY_PATH
18923 if test -n "$DPKG_QUERY_PATH"; then
18924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DPKG_QUERY_PATH" >&5
18925 printf "%s\n" "$DPKG_QUERY_PATH" >&6; }
18926 else
18927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18928 printf "%s\n" "no" >&6; }
18929 fi
18930
18931
18932 if test x$DPKG_QUERY_PATH != x; then
18933
18934 printf "%s\n" "#define HAVE_DPKG_QUERY 1" >>confdefs.h
18935
18936 fi
18937
18938
18939 ##
18940 # Non-program/compilation checks:
18941 ##
18942
18943 # Substitute version number.
18944 #
18945 VERSION=$PACKAGE_VERSION
18946
18947
18948 cat >> configure-summary << EOF
18949 Net-SNMP Version: $PACKAGE_VERSION
18950 EOF
18951
18952
18953
18954 # -*- autoconf -*-
18955 #########################################
18956 ##
18957 # Configure paths
18958 ##
18959 #########################################
18960
18961 ##
18962 # Prefix paths:
18963 ##
18964
18965 # Main prefix
18966 #
18967 if test "x$prefix" = "xNONE"; then
18968 prefix=/usr/local
18969 fi
18970
18971 # Prefix must be an absolute path
18972 # i.e. begin with "/" (Unix)
18973 # or "[A-Z]:" (Windows)
18974 #
18975 firstchar=`echo $prefix | $SED 's/\(.\).*/\1/'`
18976 if test "x$firstchar" != "x/" ; then
18977 secondchar=`echo $prefix | $SED 's/.\(.\).*/\1/'`
18978 if test "x$secondchar" != "x:" ; then
18979 prefix=`pwd`/$prefix
18980 echo "adjusting prefix to $prefix"
18981 fi
18982 fi
18983
18984
18985 # Exec prefix
18986 #
18987 # Prefix must be an absolute path
18988 # i.e. begin with "/" (Unix)
18989 # or "[A-Z]:" (Windows)
18990 #
18991 if test "x$exec_prefix" = "xNONE"; then
18992 exec_prefix='${prefix}'
18993 else
18994 firstchar=`echo $exec_prefix | $SED 's/\(.\).*/\1/'`
18995 if test "x$firstchar" != "x/" ; then
18996 secondchar=`echo $exec_prefix | $SED 's/.\(.\).*/\1/'`
18997 if test "x$secondchar" != "x:" ; then
18998 exec_prefix=`pwd`/$exec_prefix
18999 echo "adjusting exec_prefix to $exec_prefix"
19000 fi
19001 fi
19002 fi
19003
19004
19005 ##
19006 # Environmental variables:
19007 ##
19008
19009 # SNMPLIBPATH
19010 #
19011 SNMPLIBPATH=""
19012 tmpset="$libdir/snmp"
19013 while test "x$tmpset" != "x$SNMPLIBPATH"; do
19014 SNMPLIBPATH="$tmpset"
19015 eval tmpset="$tmpset"
19016 done
19017 printf "%s\n" "#define SNMPLIBPATH \"$SNMPLIBPATH\"" >>confdefs.h
19018
19019
19020 printf "%s\n" "#define SNMPDLMODPATH \"$SNMPLIBPATH/dlmod\"" >>confdefs.h
19021
19022
19023 # SNMPSHAREPATH
19024 #
19025 SNMPSHAREPATH=""
19026 tmpset="$datadir/snmp"
19027 while test "x$tmpset" != "x$SNMPSHAREPATH"; do
19028 SNMPSHAREPATH="$tmpset"
19029 eval tmpset="$tmpset"
19030 done
19031 printf "%s\n" "#define SNMPSHAREPATH \"$SNMPSHAREPATH\"" >>confdefs.h
19032
19033
19034
19035 # MIBDIRS (default)
19036 #
19037 if test "x$NETSNMP_DEFAULT_MIBDIRS" = "x"; then
19038 NETSNMP_DEFAULT_MIBDIRS="\$HOME/.snmp/mibs:$SNMPSHAREPATH/mibs"
19039 if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc"; then
19040 #
19041 # USe Windows-style path separator
19042 NETSNMP_DEFAULT_MIBDIRS=`echo "$NETSNMP_DEFAULT_MIBDIRS" | $SED 's/:/;/g'`
19043 fi
19044 printf "%s\n" "#define NETSNMP_DEFAULT_MIBDIRS \"$NETSNMP_DEFAULT_MIBDIRS\"" >>confdefs.h
19045
19046 fi
19047
19048
19049 # SNMPCONFPATH
19050 #
19051 SNMPCONFPATH=""
19052 tmpset="$sysconfdir/snmp"
19053 while test "x$tmpset" != "x$SNMPCONFPATH"; do
19054 SNMPCONFPATH="$tmpset"
19055 eval tmpset="$tmpset"
19056 done
19057 printf "%s\n" "#define SNMPCONFPATH \"$SNMPCONFPATH\"" >>confdefs.h
19058
19059
19060
19061 #########################################
19062 ##
19063 # Checks for header files.
19064 ##
19065 #########################################
19066
19067 ##
19068 # Standard checks:
19069 ##
19070 # Core:
19071 # Autoupdate added the next two lines to ensure that your configure
19072 # script's behavior did not change. They are probably safe to remove.
19073
19074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
19075 printf %s "checking for egrep... " >&6; }
19076 if test ${ac_cv_path_EGREP+y}
19077 then :
19078 printf %s "(cached) " >&6
19079 else case e in #(
19080 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
19081 then ac_cv_path_EGREP="$GREP -E"
19082 else
19083 if test -z "$EGREP"; then
19084 ac_path_EGREP_found=false
19085 # Loop through the user's path and test for each of PROGNAME-LIST
19086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
19088 do
19089 IFS=$as_save_IFS
19090 case $as_dir in #(((
19091 '') as_dir=./ ;;
19092 */) ;;
19093 *) as_dir=$as_dir/ ;;
19094 esac
19095 for ac_prog in egrep
19096 do
19097 for ac_exec_ext in '' $ac_executable_extensions; do
19098 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
19099 as_fn_executable_p "$ac_path_EGREP" || continue
19100 # Check for GNU ac_path_EGREP and select it if it is found.
19101 # Check for GNU $ac_path_EGREP
19102 case `"$ac_path_EGREP" --version 2>&1` in #(
19103 *GNU*)
19104 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
19105 #(
19106 *)
19107 ac_count=0
19108 printf %s 0123456789 >"conftest.in"
19109 while :
19110 do
19111 cat "conftest.in" "conftest.in" >"conftest.tmp"
19112 mv "conftest.tmp" "conftest.in"
19113 cp "conftest.in" "conftest.nl"
19114 printf "%s\n" 'EGREP' >> "conftest.nl"
19115 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
19116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19117 as_fn_arith $ac_count + 1 && ac_count=$as_val
19118 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
19119 # Best one so far, save it but keep looking for a better one
19120 ac_cv_path_EGREP="$ac_path_EGREP"
19121 ac_path_EGREP_max=$ac_count
19122 fi
19123 # 10*(2^10) chars as input seems more than enough
19124 test $ac_count -gt 10 && break
19125 done
19126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19127 esac
19128
19129 $ac_path_EGREP_found && break 3
19130 done
19131 done
19132 done
19133 IFS=$as_save_IFS
19134 if test -z "$ac_cv_path_EGREP"; then
19135 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
19136 fi
19137 else
19138 ac_cv_path_EGREP=$EGREP
19139 fi
19140
19141 fi ;;
19142 esac
19143 fi
19144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
19145 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
19146 EGREP="$ac_cv_path_EGREP"
19147
19148 EGREP_TRADITIONAL=$EGREP
19149 ac_cv_path_EGREP_TRADITIONAL=$EGREP
19150
19151 # <stdlib.h>, <stdarg.h>, <string.h> & <float.h>
19152 ac_header_dirent=no
19153 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19154 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
19155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19156 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
19157 if eval test \${$as_ac_Header+y}
19158 then :
19159 printf %s "(cached) " >&6
19160 else case e in #(
19161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h. */
19163 #include <sys/types.h>
19164 #include <$ac_hdr>
19165
19166 int
19167 main (void)
19168 {
19169 if ((DIR *) 0)
19170 return 0;
19171 ;
19172 return 0;
19173 }
19174 _ACEOF
19175 if ac_fn_c_try_compile "$LINENO"
19176 then :
19177 eval "$as_ac_Header=yes"
19178 else case e in #(
19179 e) eval "$as_ac_Header=no" ;;
19180 esac
19181 fi
19182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19183 esac
19184 fi
19185 eval ac_res=\$$as_ac_Header
19186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19187 printf "%s\n" "$ac_res" >&6; }
19188 if eval test \"x\$"$as_ac_Header"\" = x"yes"
19189 then :
19190 cat >>confdefs.h <<_ACEOF
19191 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
19192 _ACEOF
19193
19194 ac_header_dirent=$ac_hdr; break
19195 fi
19196
19197 done
19198 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19199 if test $ac_header_dirent = dirent.h; then
19200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19201 printf %s "checking for library containing opendir... " >&6; }
19202 if test ${ac_cv_search_opendir+y}
19203 then :
19204 printf %s "(cached) " >&6
19205 else case e in #(
19206 e) ac_func_search_save_LIBS=$LIBS
19207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19208 /* end confdefs.h. */
19209
19210 /* Override any GCC internal prototype to avoid an error.
19211 Use char because int might match the return type of a GCC
19212 builtin and then its argument prototype would still apply.
19213 The 'extern "C"' is for builds by C++ compilers;
19214 although this is not generally supported in C code supporting it here
19215 has little cost and some practical benefit (sr 110532). */
19216 #ifdef __cplusplus
19217 extern "C"
19218 #endif
19219 char opendir (void);
19220 int
19221 main (void)
19222 {
19223 return opendir ();
19224 ;
19225 return 0;
19226 }
19227 _ACEOF
19228 for ac_lib in '' dir
19229 do
19230 if test -z "$ac_lib"; then
19231 ac_res="none required"
19232 else
19233 ac_res=-l$ac_lib
19234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19235 fi
19236 if ac_fn_c_try_link "$LINENO"
19237 then :
19238 ac_cv_search_opendir=$ac_res
19239 fi
19240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19241 conftest$ac_exeext
19242 if test ${ac_cv_search_opendir+y}
19243 then :
19244 break
19245 fi
19246 done
19247 if test ${ac_cv_search_opendir+y}
19248 then :
19249
19250 else case e in #(
19251 e) ac_cv_search_opendir=no ;;
19252 esac
19253 fi
19254 rm conftest.$ac_ext
19255 LIBS=$ac_func_search_save_LIBS ;;
19256 esac
19257 fi
19258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19259 printf "%s\n" "$ac_cv_search_opendir" >&6; }
19260 ac_res=$ac_cv_search_opendir
19261 if test "$ac_res" != no
19262 then :
19263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19264
19265 fi
19266
19267 else
19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19269 printf %s "checking for library containing opendir... " >&6; }
19270 if test ${ac_cv_search_opendir+y}
19271 then :
19272 printf %s "(cached) " >&6
19273 else case e in #(
19274 e) ac_func_search_save_LIBS=$LIBS
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19277
19278 /* Override any GCC internal prototype to avoid an error.
19279 Use char because int might match the return type of a GCC
19280 builtin and then its argument prototype would still apply.
19281 The 'extern "C"' is for builds by C++ compilers;
19282 although this is not generally supported in C code supporting it here
19283 has little cost and some practical benefit (sr 110532). */
19284 #ifdef __cplusplus
19285 extern "C"
19286 #endif
19287 char opendir (void);
19288 int
19289 main (void)
19290 {
19291 return opendir ();
19292 ;
19293 return 0;
19294 }
19295 _ACEOF
19296 for ac_lib in '' x
19297 do
19298 if test -z "$ac_lib"; then
19299 ac_res="none required"
19300 else
19301 ac_res=-l$ac_lib
19302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19303 fi
19304 if ac_fn_c_try_link "$LINENO"
19305 then :
19306 ac_cv_search_opendir=$ac_res
19307 fi
19308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19309 conftest$ac_exeext
19310 if test ${ac_cv_search_opendir+y}
19311 then :
19312 break
19313 fi
19314 done
19315 if test ${ac_cv_search_opendir+y}
19316 then :
19317
19318 else case e in #(
19319 e) ac_cv_search_opendir=no ;;
19320 esac
19321 fi
19322 rm conftest.$ac_ext
19323 LIBS=$ac_func_search_save_LIBS ;;
19324 esac
19325 fi
19326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19327 printf "%s\n" "$ac_cv_search_opendir" >&6; }
19328 ac_res=$ac_cv_search_opendir
19329 if test "$ac_res" != no
19330 then :
19331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19332
19333 fi
19334
19335 fi
19336 # <dirent.h>, <sys/ndir.h>, <sys/dir.h> & <ndir.h>
19337 # Apps:
19338 # Don't use <sys/wait.h> when using Windows sockets
19339 case x$with_socklib in
19340 xwinsock2)
19341 ;;
19342 *)
19343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
19344 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
19345 if test ${ac_cv_header_sys_wait_h+y}
19346 then :
19347 printf %s "(cached) " >&6
19348 else case e in #(
19349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19350 /* end confdefs.h. */
19351 #include <sys/types.h>
19352 #include <sys/wait.h>
19353 #ifndef WEXITSTATUS
19354 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19355 #endif
19356 #ifndef WIFEXITED
19357 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19358 #endif
19359
19360 int
19361 main (void)
19362 {
19363 int s;
19364 wait (&s);
19365 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19366 ;
19367 return 0;
19368 }
19369 _ACEOF
19370 if ac_fn_c_try_compile "$LINENO"
19371 then :
19372 ac_cv_header_sys_wait_h=yes
19373 else case e in #(
19374 e) ac_cv_header_sys_wait_h=no ;;
19375 esac
19376 fi
19377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19378 esac
19379 fi
19380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
19381 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
19382 if test $ac_cv_header_sys_wait_h = yes; then
19383
19384 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
19385
19386 fi
19387 # <sys/wait.h>
19388 esac
19389
19390 # allow for quick module/library/etc processing checks
19391 if test "x$NETSNMP_QUICK_CHECK" = "x" ; then
19392
19393 ##
19394 # Stand-alone headers:
19395 ##
19396 # Core:
19397 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
19398 if test "x$ac_cv_header_getopt_h" = xyes
19399 then :
19400 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
19401
19402 fi
19403 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19404 if test "x$ac_cv_header_pthread_h" = xyes
19405 then :
19406 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
19407
19408 fi
19409 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
19410 if test "x$ac_cv_header_regex_h" = xyes
19411 then :
19412 printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
19413
19414 fi
19415 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
19416 if test "x$ac_cv_header_string_h" = xyes
19417 then :
19418 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
19419
19420 fi
19421 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
19422 if test "x$ac_cv_header_syslog_h" = xyes
19423 then :
19424 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
19425
19426 fi
19427 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
19428 if test "x$ac_cv_header_unistd_h" = xyes
19429 then :
19430 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
19431
19432 fi
19433 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19434 if test "x$ac_cv_header_stdint_h" = xyes
19435 then :
19436 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
19437
19438 fi
19439 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
19440 if test "x$ac_cv_header_inttypes_h" = xyes
19441 then :
19442 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
19443
19444 fi
19445 ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
19446 if test "x$ac_cv_header_process_h" = xyes
19447 then :
19448 printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
19449
19450 fi
19451 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
19452 if test "x$ac_cv_header_sys_param_h" = xyes
19453 then :
19454 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
19455
19456 fi
19457 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
19458 if test "x$ac_cv_header_sys_select_h" = xyes
19459 then :
19460 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
19461
19462 fi
19463 ac_fn_c_check_header_compile "$LINENO" "sys/syslog.h" "ac_cv_header_sys_syslog_h" "$ac_includes_default"
19464 if test "x$ac_cv_header_sys_syslog_h" = xyes
19465 then :
19466 printf "%s\n" "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
19467
19468 fi
19469 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
19470 if test "x$ac_cv_header_sys_time_h" = xyes
19471 then :
19472 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
19473
19474 fi
19475 ac_fn_c_check_header_compile "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
19476 if test "x$ac_cv_header_sys_timeb_h" = xyes
19477 then :
19478 printf "%s\n" "#define HAVE_SYS_TIMEB_H 1" >>confdefs.h
19479
19480 fi
19481
19482
19483 # Library and Agent:
19484 ac_fn_c_check_header_compile "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "
19485 $ac_includes_default
19486
19487 #ifndef LIBBSD_DISABLE_DEPRECATED
19488 #define LIBBSD_DISABLE_DEPRECATED 1
19489 #endif
19490
19491 "
19492 if test "x$ac_cv_header_nlist_h" = xyes
19493 then :
19494 printf "%s\n" "#define HAVE_NLIST_H 1" >>confdefs.h
19495
19496 fi
19497
19498
19499 # Library:
19500 ac_fn_c_check_header_compile "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
19501 if test "x$ac_cv_header_crt_externs_h" = xyes
19502 then :
19503 printf "%s\n" "#define HAVE_CRT_EXTERNS_H 1" >>confdefs.h
19504
19505 fi
19506 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
19507 if test "x$ac_cv_header_fcntl_h" = xyes
19508 then :
19509 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
19510
19511 fi
19512 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
19513 if test "x$ac_cv_header_io_h" = xyes
19514 then :
19515 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
19516
19517 fi
19518 ac_fn_c_check_header_compile "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default"
19519 if test "x$ac_cv_header_kstat_h" = xyes
19520 then :
19521 printf "%s\n" "#define HAVE_KSTAT_H 1" >>confdefs.h
19522
19523 fi
19524 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
19525 if test "x$ac_cv_header_limits_h" = xyes
19526 then :
19527 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
19528
19529 fi
19530 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
19531 if test "x$ac_cv_header_locale_h" = xyes
19532 then :
19533 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
19534
19535 fi
19536 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
19537 if test "x$ac_cv_header_mach_o_dyld_h" = xyes
19538 then :
19539 printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h
19540
19541 fi
19542 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
19543 if test "x$ac_cv_header_sys_file_h" = xyes
19544 then :
19545 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
19546
19547 fi
19548 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
19549 if test "x$ac_cv_header_sys_ioctl_h" = xyes
19550 then :
19551 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
19552
19553 fi
19554 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
19555 if test "x$ac_cv_header_sys_sockio_h" = xyes
19556 then :
19557 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
19558
19559 fi
19560 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
19561 if test "x$ac_cv_header_sys_stat_h" = xyes
19562 then :
19563 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
19564
19565 fi
19566 ac_fn_c_check_header_compile "$LINENO" "sys/systemcfg.h" "ac_cv_header_sys_systemcfg_h" "$ac_includes_default"
19567 if test "x$ac_cv_header_sys_systemcfg_h" = xyes
19568 then :
19569 printf "%s\n" "#define HAVE_SYS_SYSTEMCFG_H 1" >>confdefs.h
19570
19571 fi
19572 ac_fn_c_check_header_compile "$LINENO" "sys/systeminfo.h" "ac_cv_header_sys_systeminfo_h" "$ac_includes_default"
19573 if test "x$ac_cv_header_sys_systeminfo_h" = xyes
19574 then :
19575 printf "%s\n" "#define HAVE_SYS_SYSTEMINFO_H 1" >>confdefs.h
19576
19577 fi
19578 ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
19579 if test "x$ac_cv_header_sys_times_h" = xyes
19580 then :
19581 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
19582
19583 fi
19584 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
19585 if test "x$ac_cv_header_sys_uio_h" = xyes
19586 then :
19587 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
19588
19589 fi
19590 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
19591 if test "x$ac_cv_header_sys_utsname_h" = xyes
19592 then :
19593 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
19594
19595 fi
19596 ac_fn_c_check_header_compile "$LINENO" "netipx/ipx.h" "ac_cv_header_netipx_ipx_h" "$ac_includes_default"
19597 if test "x$ac_cv_header_netipx_ipx_h" = xyes
19598 then :
19599 printf "%s\n" "#define HAVE_NETIPX_IPX_H 1" >>confdefs.h
19600
19601 fi
19602
19603
19604 # Agent:
19605 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
19606 if test "x$ac_cv_header_dlfcn_h" = xyes
19607 then :
19608 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
19609
19610 fi
19611 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
19612 if test "x$ac_cv_header_err_h" = xyes
19613 then :
19614 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
19615
19616 fi
19617 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
19618 if test "x$ac_cv_header_fcntl_h" = xyes
19619 then :
19620 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
19621
19622 fi
19623 ac_fn_c_check_header_compile "$LINENO" "fstab.h" "ac_cv_header_fstab_h" "$ac_includes_default"
19624 if test "x$ac_cv_header_fstab_h" = xyes
19625 then :
19626 printf "%s\n" "#define HAVE_FSTAB_H 1" >>confdefs.h
19627
19628 fi
19629 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
19630 if test "x$ac_cv_header_grp_h" = xyes
19631 then :
19632 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
19633
19634 fi
19635 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
19636 if test "x$ac_cv_header_io_h" = xyes
19637 then :
19638 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
19639
19640 fi
19641 ac_fn_c_check_header_compile "$LINENO" "ioctls.h" "ac_cv_header_ioctls_h" "$ac_includes_default"
19642 if test "x$ac_cv_header_ioctls_h" = xyes
19643 then :
19644 printf "%s\n" "#define HAVE_IOCTLS_H 1" >>confdefs.h
19645
19646 fi
19647 ac_fn_c_check_header_compile "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default"
19648 if test "x$ac_cv_header_kstat_h" = xyes
19649 then :
19650 printf "%s\n" "#define HAVE_KSTAT_H 1" >>confdefs.h
19651
19652 fi
19653 ac_fn_c_check_header_compile "$LINENO" "kvm.h" "ac_cv_header_kvm_h" "$ac_includes_default"
19654 if test "x$ac_cv_header_kvm_h" = xyes
19655 then :
19656 printf "%s\n" "#define HAVE_KVM_H 1" >>confdefs.h
19657
19658 fi
19659 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
19660 if test "x$ac_cv_header_limits_h" = xyes
19661 then :
19662 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
19663
19664 fi
19665 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
19666 if test "x$ac_cv_header_mntent_h" = xyes
19667 then :
19668 printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
19669
19670 fi
19671 ac_fn_c_check_header_compile "$LINENO" "mtab.h" "ac_cv_header_mtab_h" "$ac_includes_default"
19672 if test "x$ac_cv_header_mtab_h" = xyes
19673 then :
19674 printf "%s\n" "#define HAVE_MTAB_H 1" >>confdefs.h
19675
19676 fi
19677 ac_fn_c_check_header_compile "$LINENO" "pkglocs.h" "ac_cv_header_pkglocs_h" "$ac_includes_default"
19678 if test "x$ac_cv_header_pkglocs_h" = xyes
19679 then :
19680 printf "%s\n" "#define HAVE_PKGLOCS_H 1" >>confdefs.h
19681
19682 fi
19683 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
19684 if test "x$ac_cv_header_pwd_h" = xyes
19685 then :
19686 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
19687
19688 fi
19689 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
19690 if test "x$ac_cv_header_spawn_h" = xyes
19691 then :
19692 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
19693
19694 fi
19695 ac_fn_c_check_header_compile "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
19696 if test "x$ac_cv_header_com_err_h" = xyes
19697 then :
19698 printf "%s\n" "#define HAVE_COM_ERR_H 1" >>confdefs.h
19699
19700 fi
19701 ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
19702 if test "x$ac_cv_header_et_com_err_h" = xyes
19703 then :
19704 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
19705
19706 fi
19707 ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
19708 if test "x$ac_cv_header_utmpx_h" = xyes
19709 then :
19710 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
19711
19712 fi
19713 ac_fn_c_check_header_compile "$LINENO" "utsname.h" "ac_cv_header_utsname_h" "$ac_includes_default"
19714 if test "x$ac_cv_header_utsname_h" = xyes
19715 then :
19716 printf "%s\n" "#define HAVE_UTSNAME_H 1" >>confdefs.h
19717
19718 fi
19719
19720
19721 ac_fn_c_check_header_compile "$LINENO" "sys/callout.h" "ac_cv_header_sys_callout_h" "$ac_includes_default"
19722 if test "x$ac_cv_header_sys_callout_h" = xyes
19723 then :
19724 printf "%s\n" "#define HAVE_SYS_CALLOUT_H 1" >>confdefs.h
19725
19726 fi
19727 ac_fn_c_check_header_compile "$LINENO" "sys/diskio.h" "ac_cv_header_sys_diskio_h" "$ac_includes_default"
19728 if test "x$ac_cv_header_sys_diskio_h" = xyes
19729 then :
19730 printf "%s\n" "#define HAVE_SYS_DISKIO_H 1" >>confdefs.h
19731
19732 fi
19733 ac_fn_c_check_header_compile "$LINENO" "sys/dkio.h" "ac_cv_header_sys_dkio_h" "$ac_includes_default"
19734 if test "x$ac_cv_header_sys_dkio_h" = xyes
19735 then :
19736 printf "%s\n" "#define HAVE_SYS_DKIO_H 1" >>confdefs.h
19737
19738 fi
19739 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
19740 if test "x$ac_cv_header_sys_file_h" = xyes
19741 then :
19742 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
19743
19744 fi
19745 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
19746 if test "x$ac_cv_header_sys_filio_h" = xyes
19747 then :
19748 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
19749
19750 fi
19751 ac_fn_c_check_header_compile "$LINENO" "sys/fixpoint.h" "ac_cv_header_sys_fixpoint_h" "$ac_includes_default"
19752 if test "x$ac_cv_header_sys_fixpoint_h" = xyes
19753 then :
19754 printf "%s\n" "#define HAVE_SYS_FIXPOINT_H 1" >>confdefs.h
19755
19756 fi
19757 ac_fn_c_check_header_compile "$LINENO" "sys/fs.h" "ac_cv_header_sys_fs_h" "$ac_includes_default"
19758 if test "x$ac_cv_header_sys_fs_h" = xyes
19759 then :
19760 printf "%s\n" "#define HAVE_SYS_FS_H 1" >>confdefs.h
19761
19762 fi
19763 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
19764 if test "x$ac_cv_header_sys_ioctl_h" = xyes
19765 then :
19766 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
19767
19768 fi
19769 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19770 if test "x$ac_cv_header_sys_loadavg_h" = xyes
19771 then :
19772 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
19773
19774 fi
19775 ac_fn_c_check_header_compile "$LINENO" "sys/mntent.h" "ac_cv_header_sys_mntent_h" "$ac_includes_default"
19776 if test "x$ac_cv_header_sys_mntent_h" = xyes
19777 then :
19778 printf "%s\n" "#define HAVE_SYS_MNTENT_H 1" >>confdefs.h
19779
19780 fi
19781 ac_fn_c_check_header_compile "$LINENO" "sys/mnttab.h" "ac_cv_header_sys_mnttab_h" "$ac_includes_default"
19782 if test "x$ac_cv_header_sys_mnttab_h" = xyes
19783 then :
19784 printf "%s\n" "#define HAVE_SYS_MNTTAB_H 1" >>confdefs.h
19785
19786 fi
19787 ac_fn_c_check_header_compile "$LINENO" "sys/osd.h" "ac_cv_header_sys_osd_h" "$ac_includes_default"
19788 if test "x$ac_cv_header_sys_osd_h" = xyes
19789 then :
19790 printf "%s\n" "#define HAVE_SYS_OSD_H 1" >>confdefs.h
19791
19792 fi
19793 ac_fn_c_check_header_compile "$LINENO" "sys/pool.h" "ac_cv_header_sys_pool_h" "$ac_includes_default"
19794 if test "x$ac_cv_header_sys_pool_h" = xyes
19795 then :
19796 printf "%s\n" "#define HAVE_SYS_POOL_H 1" >>confdefs.h
19797
19798 fi
19799 ac_fn_c_check_header_compile "$LINENO" "sys/protosw.h" "ac_cv_header_sys_protosw_h" "$ac_includes_default"
19800 if test "x$ac_cv_header_sys_protosw_h" = xyes
19801 then :
19802 printf "%s\n" "#define HAVE_SYS_PROTOSW_H 1" >>confdefs.h
19803
19804 fi
19805 ac_fn_c_check_header_compile "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default"
19806 if test "x$ac_cv_header_sys_pstat_h" = xyes
19807 then :
19808 printf "%s\n" "#define HAVE_SYS_PSTAT_H 1" >>confdefs.h
19809
19810 fi
19811 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
19812 if test "x$ac_cv_header_sys_sockio_h" = xyes
19813 then :
19814 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
19815
19816 fi
19817 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
19818 if test "x$ac_cv_header_sys_stat_h" = xyes
19819 then :
19820 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
19821
19822 fi
19823 ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
19824 if test "x$ac_cv_header_sys_statfs_h" = xyes
19825 then :
19826 printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
19827
19828 fi
19829 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
19830 if test "x$ac_cv_header_sys_statvfs_h" = xyes
19831 then :
19832 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
19833
19834 fi
19835 ac_fn_c_check_header_compile "$LINENO" "sys/stream.h" "ac_cv_header_sys_stream_h" "$ac_includes_default"
19836 if test "x$ac_cv_header_sys_stream_h" = xyes
19837 then :
19838 printf "%s\n" "#define HAVE_SYS_STREAM_H 1" >>confdefs.h
19839
19840 fi
19841 ac_fn_c_check_header_compile "$LINENO" "sys/sysget.h" "ac_cv_header_sys_sysget_h" "$ac_includes_default"
19842 if test "x$ac_cv_header_sys_sysget_h" = xyes
19843 then :
19844 printf "%s\n" "#define HAVE_SYS_SYSGET_H 1" >>confdefs.h
19845
19846 fi
19847 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
19848 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
19849 then :
19850 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
19851
19852 fi
19853 ac_fn_c_check_header_compile "$LINENO" "sys/sysmp.h" "ac_cv_header_sys_sysmp_h" "$ac_includes_default"
19854 if test "x$ac_cv_header_sys_sysmp_h" = xyes
19855 then :
19856 printf "%s\n" "#define HAVE_SYS_SYSMP_H 1" >>confdefs.h
19857
19858 fi
19859 ac_fn_c_check_header_compile "$LINENO" "sys/tcpipstats.h" "ac_cv_header_sys_tcpipstats_h" "$ac_includes_default"
19860 if test "x$ac_cv_header_sys_tcpipstats_h" = xyes
19861 then :
19862 printf "%s\n" "#define HAVE_SYS_TCPIPSTATS_H 1" >>confdefs.h
19863
19864 fi
19865 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
19866 if test "x$ac_cv_header_sys_utsname_h" = xyes
19867 then :
19868 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
19869
19870 fi
19871 ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
19872 if test "x$ac_cv_header_sys_vfs_h" = xyes
19873 then :
19874 printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
19875
19876 fi
19877 ac_fn_c_check_header_compile "$LINENO" "sys/vm.h" "ac_cv_header_sys_vm_h" "$ac_includes_default"
19878 if test "x$ac_cv_header_sys_vm_h" = xyes
19879 then :
19880 printf "%s\n" "#define HAVE_SYS_VM_H 1" >>confdefs.h
19881
19882 fi
19883 ac_fn_c_check_header_compile "$LINENO" "sys/vmmac.h" "ac_cv_header_sys_vmmac_h" "$ac_includes_default"
19884 if test "x$ac_cv_header_sys_vmmac_h" = xyes
19885 then :
19886 printf "%s\n" "#define HAVE_SYS_VMMAC_H 1" >>confdefs.h
19887
19888 fi
19889 ac_fn_c_check_header_compile "$LINENO" "sys/vmmeter.h" "ac_cv_header_sys_vmmeter_h" "$ac_includes_default"
19890 if test "x$ac_cv_header_sys_vmmeter_h" = xyes
19891 then :
19892 printf "%s\n" "#define HAVE_SYS_VMMETER_H 1" >>confdefs.h
19893
19894 fi
19895 ac_fn_c_check_header_compile "$LINENO" "sys/vmparam.h" "ac_cv_header_sys_vmparam_h" "$ac_includes_default"
19896 if test "x$ac_cv_header_sys_vmparam_h" = xyes
19897 then :
19898 printf "%s\n" "#define HAVE_SYS_VMPARAM_H 1" >>confdefs.h
19899
19900 fi
19901 ac_fn_c_check_header_compile "$LINENO" "sys/vmsystm.h" "ac_cv_header_sys_vmsystm_h" "$ac_includes_default"
19902 if test "x$ac_cv_header_sys_vmsystm_h" = xyes
19903 then :
19904 printf "%s\n" "#define HAVE_SYS_VMSYSTM_H 1" >>confdefs.h
19905
19906 fi
19907
19908
19909 ac_fn_c_check_header_compile "$LINENO" "asm/page.h" "ac_cv_header_asm_page_h" "$ac_includes_default"
19910 if test "x$ac_cv_header_asm_page_h" = xyes
19911 then :
19912 printf "%s\n" "#define HAVE_ASM_PAGE_H 1" >>confdefs.h
19913
19914 fi
19915 ac_fn_c_check_header_compile "$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default"
19916 if test "x$ac_cv_header_asm_types_h" = xyes
19917 then :
19918 printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h
19919
19920 fi
19921 ac_fn_c_check_header_compile "$LINENO" "inet/mib2.h" "ac_cv_header_inet_mib2_h" "$ac_includes_default"
19922 if test "x$ac_cv_header_inet_mib2_h" = xyes
19923 then :
19924 printf "%s\n" "#define HAVE_INET_MIB2_H 1" >>confdefs.h
19925
19926 fi
19927 ac_fn_c_check_header_compile "$LINENO" "linux/hdreg.h" "ac_cv_header_linux_hdreg_h" "$ac_includes_default"
19928 if test "x$ac_cv_header_linux_hdreg_h" = xyes
19929 then :
19930 printf "%s\n" "#define HAVE_LINUX_HDREG_H 1" >>confdefs.h
19931
19932 fi
19933 ac_fn_c_check_header_compile "$LINENO" "linux/tasks.h" "ac_cv_header_linux_tasks_h" "$ac_includes_default"
19934 if test "x$ac_cv_header_linux_tasks_h" = xyes
19935 then :
19936 printf "%s\n" "#define HAVE_LINUX_TASKS_H 1" >>confdefs.h
19937
19938 fi
19939 ac_fn_c_check_header_compile "$LINENO" "machine/param.h" "ac_cv_header_machine_param_h" "$ac_includes_default"
19940 if test "x$ac_cv_header_machine_param_h" = xyes
19941 then :
19942 printf "%s\n" "#define HAVE_MACHINE_PARAM_H 1" >>confdefs.h
19943
19944 fi
19945 ac_fn_c_check_header_compile "$LINENO" "ufs/fs.h" "ac_cv_header_ufs_fs_h" "$ac_includes_default"
19946 if test "x$ac_cv_header_ufs_fs_h" = xyes
19947 then :
19948 printf "%s\n" "#define HAVE_UFS_FS_H 1" >>confdefs.h
19949
19950 fi
19951 ac_fn_c_check_header_compile "$LINENO" "uvm/uvm_extern.h" "ac_cv_header_uvm_uvm_extern_h" "$ac_includes_default"
19952 if test "x$ac_cv_header_uvm_uvm_extern_h" = xyes
19953 then :
19954 printf "%s\n" "#define HAVE_UVM_UVM_EXTERN_H 1" >>confdefs.h
19955
19956 fi
19957 ac_fn_c_check_header_compile "$LINENO" "uvm/uvm_param.h" "ac_cv_header_uvm_uvm_param_h" "$ac_includes_default"
19958 if test "x$ac_cv_header_uvm_uvm_param_h" = xyes
19959 then :
19960 printf "%s\n" "#define HAVE_UVM_UVM_PARAM_H 1" >>confdefs.h
19961
19962 fi
19963 ac_fn_c_check_header_compile "$LINENO" "vm/vm.h" "ac_cv_header_vm_vm_h" "$ac_includes_default"
19964 if test "x$ac_cv_header_vm_vm_h" = xyes
19965 then :
19966 printf "%s\n" "#define HAVE_VM_VM_H 1" >>confdefs.h
19967
19968 fi
19969 ac_fn_c_check_header_compile "$LINENO" "vm/vm_extern.h" "ac_cv_header_vm_vm_extern_h" "$ac_includes_default"
19970 if test "x$ac_cv_header_vm_vm_extern_h" = xyes
19971 then :
19972 printf "%s\n" "#define HAVE_VM_VM_EXTERN_H 1" >>confdefs.h
19973
19974 fi
19975 ac_fn_c_check_header_compile "$LINENO" "vm/vm_param.h" "ac_cv_header_vm_vm_param_h" "$ac_includes_default"
19976 if test "x$ac_cv_header_vm_vm_param_h" = xyes
19977 then :
19978 printf "%s\n" "#define HAVE_VM_VM_PARAM_H 1" >>confdefs.h
19979
19980 fi
19981
19982
19983 # Apps:
19984 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
19985 if test "x$ac_cv_header_fcntl_h" = xyes
19986 then :
19987 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
19988
19989 fi
19990 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
19991 if test "x$ac_cv_header_grp_h" = xyes
19992 then :
19993 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
19994
19995 fi
19996 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
19997 if test "x$ac_cv_header_pwd_h" = xyes
19998 then :
19999 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
20000
20001 fi
20002 ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
20003 if test "x$ac_cv_header_sys_cdefs_h" = xyes
20004 then :
20005 printf "%s\n" "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h
20006
20007 fi
20008 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
20009 if test "x$ac_cv_header_sys_ioctl_h" = xyes
20010 then :
20011 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
20012
20013 fi
20014 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
20015 if test "x$ac_cv_header_sys_time_h" = xyes
20016 then :
20017 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
20018
20019 fi
20020
20021
20022 # Not-Used:
20023 ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
20024 if test "x$ac_cv_header_search_h" = xyes
20025 then :
20026 printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h
20027
20028 fi
20029 ac_fn_c_check_header_compile "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
20030 if test "x$ac_cv_header_sgtty_h" = xyes
20031 then :
20032 printf "%s\n" "#define HAVE_SGTTY_H 1" >>confdefs.h
20033
20034 fi
20035 ac_fn_c_check_header_compile "$LINENO" "xti.h" "ac_cv_header_xti_h" "$ac_includes_default"
20036 if test "x$ac_cv_header_xti_h" = xyes
20037 then :
20038 printf "%s\n" "#define HAVE_XTI_H 1" >>confdefs.h
20039
20040 fi
20041 ac_fn_c_check_header_compile "$LINENO" "sys/dmap.h" "ac_cv_header_sys_dmap_h" "$ac_includes_default"
20042 if test "x$ac_cv_header_sys_dmap_h" = xyes
20043 then :
20044 printf "%s\n" "#define HAVE_SYS_DMAP_H 1" >>confdefs.h
20045
20046 fi
20047 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
20048 if test "x$ac_cv_header_sys_poll_h" = xyes
20049 then :
20050 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
20051
20052 fi
20053 ac_fn_c_check_header_compile "$LINENO" "sys/timeout.h" "ac_cv_header_sys_timeout_h" "$ac_includes_default"
20054 if test "x$ac_cv_header_sys_timeout_h" = xyes
20055 then :
20056 printf "%s\n" "#define HAVE_SYS_TIMEOUT_H 1" >>confdefs.h
20057
20058 fi
20059 ac_fn_c_check_header_compile "$LINENO" "machine/pte.h" "ac_cv_header_machine_pte_h" "$ac_includes_default"
20060 if test "x$ac_cv_header_machine_pte_h" = xyes
20061 then :
20062 printf "%s\n" "#define HAVE_MACHINE_PTE_H 1" >>confdefs.h
20063
20064 fi
20065 ac_fn_c_check_header_compile "$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
20066 if test "x$ac_cv_header_pci_pci_h" = xyes
20067 then :
20068 printf "%s\n" "#define HAVE_PCI_PCI_H 1" >>confdefs.h
20069
20070 fi
20071
20072
20073
20074 # Valgrind
20075 ac_fn_c_check_header_compile "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
20076 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes
20077 then :
20078 printf "%s\n" "#define HAVE_VALGRIND_VALGRIND_H 1" >>confdefs.h
20079
20080 fi
20081 ac_fn_c_check_header_compile "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
20082 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes
20083 then :
20084 printf "%s\n" "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
20085
20086 fi
20087
20088 # OpenSSL
20089 ac_fn_c_check_header_compile "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default"
20090 if test "x$ac_cv_header_openssl_aes_h" = xyes
20091 then :
20092 printf "%s\n" "#define HAVE_OPENSSL_AES_H 1" >>confdefs.h
20093
20094 fi
20095 ac_fn_c_check_header_compile "$LINENO" "openssl/dh.h" "ac_cv_header_openssl_dh_h" "$ac_includes_default"
20096 if test "x$ac_cv_header_openssl_dh_h" = xyes
20097 then :
20098 printf "%s\n" "#define HAVE_OPENSSL_DH_H 1" >>confdefs.h
20099
20100 fi
20101 ac_fn_c_check_header_compile "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
20102 if test "x$ac_cv_header_openssl_des_h" = xyes
20103 then :
20104 printf "%s\n" "#define HAVE_OPENSSL_DES_H 1" >>confdefs.h
20105
20106 fi
20107 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
20108 if test "x$ac_cv_header_openssl_err_h" = xyes
20109 then :
20110 printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
20111
20112 fi
20113 ac_fn_c_check_header_compile "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
20114 if test "x$ac_cv_header_openssl_evp_h" = xyes
20115 then :
20116 printf "%s\n" "#define HAVE_OPENSSL_EVP_H 1" >>confdefs.h
20117
20118 fi
20119 ac_fn_c_check_header_compile "$LINENO" "openssl/hmac.h" "ac_cv_header_openssl_hmac_h" "$ac_includes_default"
20120 if test "x$ac_cv_header_openssl_hmac_h" = xyes
20121 then :
20122 printf "%s\n" "#define HAVE_OPENSSL_HMAC_H 1" >>confdefs.h
20123
20124 fi
20125 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
20126 if test "x$ac_cv_header_openssl_ssl_h" = xyes
20127 then :
20128 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
20129
20130 fi
20131
20132
20133 # RPM subdirectory path (Agent)
20134 if test "x$with_rpm" != "xno"; then
20135 ac_fn_c_check_header_compile "$LINENO" "rpm/rpmts.h" "ac_cv_header_rpm_rpmts_h" "#include <rpm/rpmlib.h>
20136 "
20137 if test "x$ac_cv_header_rpm_rpmts_h" = xyes
20138 then :
20139 printf "%s\n" "#define HAVE_RPM_RPMTS_H 1" >>confdefs.h
20140
20141 fi
20142 ac_fn_c_check_header_compile "$LINENO" "rpm/rpmfileutil.h" "ac_cv_header_rpm_rpmfileutil_h" "#include <rpm/rpmlib.h>
20143 "
20144 if test "x$ac_cv_header_rpm_rpmfileutil_h" = xyes
20145 then :
20146 printf "%s\n" "#define HAVE_RPM_RPMFILEUTIL_H 1" >>confdefs.h
20147
20148 fi
20149
20150 fi
20151
20152
20153 ##
20154 # Pre-requisite on other headers:
20155 ##
20156
20157 # requiring <sys/param.h> (MAXPATHLEN) (OpenBSD 3.4)
20158 # Agent:
20159 #
20160 ac_fn_c_check_header_compile "$LINENO" "sys/swap.h" "ac_cv_header_sys_swap_h" "$ac_includes_default
20161
20162 #ifdef HAVE_SYS_PARAM_H
20163 #include <sys/param.h>
20164 #endif
20165
20166 "
20167 if test "x$ac_cv_header_sys_swap_h" = xyes
20168 then :
20169 printf "%s\n" "#define HAVE_SYS_SWAP_H 1" >>confdefs.h
20170
20171 fi
20172
20173
20174 # requiring <sys/param.h> (FreeBSD)
20175 #
20176 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "
20177 #ifdef HAVE_SYS_TYPES_H
20178 #include <sys/types.h>
20179 #endif
20180 #ifdef HAVE_SYS_PARAM_H
20181 #include <sys/param.h>
20182 #endif
20183
20184 "
20185 if test "x$ac_cv_header_malloc_h" = xyes
20186 then :
20187 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
20188
20189 fi
20190 ac_fn_c_check_header_compile "$LINENO" "osreldate.h" "ac_cv_header_osreldate_h" "
20191 #ifdef HAVE_SYS_TYPES_H
20192 #include <sys/types.h>
20193 #endif
20194 #ifdef HAVE_SYS_PARAM_H
20195 #include <sys/param.h>
20196 #endif
20197
20198 "
20199 if test "x$ac_cv_header_osreldate_h" = xyes
20200 then :
20201 printf "%s\n" "#define HAVE_OSRELDATE_H 1" >>confdefs.h
20202
20203 fi
20204 ac_fn_c_check_header_compile "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "
20205 #ifdef HAVE_SYS_TYPES_H
20206 #include <sys/types.h>
20207 #endif
20208 #ifdef HAVE_SYS_PARAM_H
20209 #include <sys/param.h>
20210 #endif
20211
20212 "
20213 if test "x$ac_cv_header_machine_types_h" = xyes
20214 then :
20215 printf "%s\n" "#define HAVE_MACHINE_TYPES_H 1" >>confdefs.h
20216
20217 fi
20218 ac_fn_c_check_header_compile "$LINENO" "sys/dkstat.h" "ac_cv_header_sys_dkstat_h" "
20219 #ifdef HAVE_SYS_TYPES_H
20220 #include <sys/types.h>
20221 #endif
20222 #ifdef HAVE_SYS_PARAM_H
20223 #include <sys/param.h>
20224 #endif
20225
20226 "
20227 if test "x$ac_cv_header_sys_dkstat_h" = xyes
20228 then :
20229 printf "%s\n" "#define HAVE_SYS_DKSTAT_H 1" >>confdefs.h
20230
20231 fi
20232 ac_fn_c_check_header_compile "$LINENO" "sys/conf.h" "ac_cv_header_sys_conf_h" "
20233 #ifdef HAVE_SYS_TYPES_H
20234 #include <sys/types.h>
20235 #endif
20236 #ifdef HAVE_SYS_PARAM_H
20237 #include <sys/param.h>
20238 #endif
20239
20240 "
20241 if test "x$ac_cv_header_sys_conf_h" = xyes
20242 then :
20243 printf "%s\n" "#define HAVE_SYS_CONF_H 1" >>confdefs.h
20244
20245 fi
20246 ac_fn_c_check_header_compile "$LINENO" "sys/mbuf.h" "ac_cv_header_sys_mbuf_h" "
20247 #ifdef HAVE_SYS_TYPES_H
20248 #include <sys/types.h>
20249 #endif
20250 #ifdef HAVE_SYS_PARAM_H
20251 #include <sys/param.h>
20252 #endif
20253
20254 "
20255 if test "x$ac_cv_header_sys_mbuf_h" = xyes
20256 then :
20257 printf "%s\n" "#define HAVE_SYS_MBUF_H 1" >>confdefs.h
20258
20259 fi
20260 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
20261 #ifdef HAVE_SYS_TYPES_H
20262 #include <sys/types.h>
20263 #endif
20264 #ifdef HAVE_SYS_PARAM_H
20265 #include <sys/param.h>
20266 #endif
20267
20268 "
20269 if test "x$ac_cv_header_sys_mount_h" = xyes
20270 then :
20271 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
20272
20273 fi
20274 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
20275 #ifdef HAVE_SYS_TYPES_H
20276 #include <sys/types.h>
20277 #endif
20278 #ifdef HAVE_SYS_PARAM_H
20279 #include <sys/param.h>
20280 #endif
20281
20282 "
20283 if test "x$ac_cv_header_sys_proc_h" = xyes
20284 then :
20285 printf "%s\n" "#define HAVE_SYS_PROC_H 1" >>confdefs.h
20286
20287 fi
20288 ac_fn_c_check_header_compile "$LINENO" "sys/queue.h" "ac_cv_header_sys_queue_h" "
20289 #ifdef HAVE_SYS_TYPES_H
20290 #include <sys/types.h>
20291 #endif
20292 #ifdef HAVE_SYS_PARAM_H
20293 #include <sys/param.h>
20294 #endif
20295
20296 "
20297 if test "x$ac_cv_header_sys_queue_h" = xyes
20298 then :
20299 printf "%s\n" "#define HAVE_SYS_QUEUE_H 1" >>confdefs.h
20300
20301 fi
20302 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "
20303 #ifdef HAVE_SYS_TYPES_H
20304 #include <sys/types.h>
20305 #endif
20306 #ifdef HAVE_SYS_PARAM_H
20307 #include <sys/param.h>
20308 #endif
20309
20310 "
20311 if test "x$ac_cv_header_sys_user_h" = xyes
20312 then :
20313 printf "%s\n" "#define HAVE_SYS_USER_H 1" >>confdefs.h
20314
20315 fi
20316
20317
20318 case "$target_os" in
20319 linux*)
20320 # <sys/sysctl.h> is considered deprecated on Linux and including that
20321 # header file triggers a compiler warning. See also
20322 # https://savannah.gnu.org/forum/forum.php?forum_id=9515.
20323 ;;
20324 *)
20325 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
20326 if test "x$ac_cv_header_sys_sysctl_h" = xyes
20327 then :
20328 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
20329
20330 fi
20331
20332 ;;
20333 esac
20334
20335 # requiring <sys/sema.h> (IRIX 6.5)
20336 # Agent:
20337 #
20338 ac_fn_c_check_header_compile "$LINENO" "sys/sema.h" "ac_cv_header_sys_sema_h" "$ac_includes_default"
20339 if test "x$ac_cv_header_sys_sema_h" = xyes
20340 then :
20341 printf "%s\n" "#define HAVE_SYS_SEMA_H 1" >>confdefs.h
20342
20343 fi
20344
20345 ac_fn_c_check_header_compile "$LINENO" "sys/hashing.h" "ac_cv_header_sys_hashing_h" "$ac_includes_default
20346
20347 #ifdef HAVE_SYS_SEMA_H
20348 #include <sys/sema.h>
20349 #endif
20350
20351 "
20352 if test "x$ac_cv_header_sys_hashing_h" = xyes
20353 then :
20354 printf "%s\n" "#define HAVE_SYS_HASHING_H 1" >>confdefs.h
20355
20356 fi
20357
20358
20359 # requiring _KMEMUSER and <sys/types.h> (BSDi3/IRIX)
20360 # Agent:
20361 #
20362 ac_fn_c_check_header_compile "$LINENO" "sys/vnode.h" "ac_cv_header_sys_vnode_h" "
20363 #define _KMEMUSER 1
20364 #ifdef HAVE_SYS_TYPES_H
20365 #include <sys/types.h>
20366 #endif
20367
20368 "
20369 if test "x$ac_cv_header_sys_vnode_h" = xyes
20370 then :
20371 printf "%s\n" "#define HAVE_SYS_VNODE_H 1" >>confdefs.h
20372
20373 fi
20374
20375
20376 # requiring <machine/types.h> (NetBSD)
20377 # Agent:
20378 #
20379 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "
20380 #ifdef HAVE_SYS_TYPES_H
20381 #include <sys/types.h>
20382 #endif
20383 #ifdef HAVE_SYS_PARAM_H
20384 #include <sys/param.h>
20385 #endif
20386 #ifdef HAVE_MACHINE_TYPES_H
20387 #include <machine/types.h>
20388 #endif
20389
20390 "
20391 if test "x$ac_cv_header_sys_disklabel_h" = xyes
20392 then :
20393 printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
20394
20395 fi
20396
20397
20398 # QNX
20399 ac_fn_c_check_header_compile "$LINENO" "nbutil.h" "ac_cv_header_nbutil_h" "$ac_includes_default"
20400 if test "x$ac_cv_header_nbutil_h" = xyes
20401 then :
20402 printf "%s\n" "#define HAVE_NBUTIL_H 1" >>confdefs.h
20403
20404 fi
20405
20406
20407 # UFS headers
20408 # Agent:
20409 #
20410 ac_fn_c_check_header_compile "$LINENO" "ufs/ufs/dinode.h" "ac_cv_header_ufs_ufs_dinode_h" "
20411 #ifdef HAVE_SYS_TYPES_H
20412 #include <sys/types.h>
20413 #endif
20414 #ifdef HAVE_UFS_UFS_DINODE_H
20415 #include <ufs/ufs/dinode.h>
20416 #endif
20417 #ifdef HAVE_UFS_UFS_QUOTA_H
20418 #include <ufs/ufs/quota.h>
20419 #endif
20420
20421 "
20422 if test "x$ac_cv_header_ufs_ufs_dinode_h" = xyes
20423 then :
20424 printf "%s\n" "#define HAVE_UFS_UFS_DINODE_H 1" >>confdefs.h
20425
20426 fi
20427 ac_fn_c_check_header_compile "$LINENO" "ufs/ufs/quota.h" "ac_cv_header_ufs_ufs_quota_h" "
20428 #ifdef HAVE_SYS_TYPES_H
20429 #include <sys/types.h>
20430 #endif
20431 #ifdef HAVE_UFS_UFS_DINODE_H
20432 #include <ufs/ufs/dinode.h>
20433 #endif
20434 #ifdef HAVE_UFS_UFS_QUOTA_H
20435 #include <ufs/ufs/quota.h>
20436 #endif
20437
20438 "
20439 if test "x$ac_cv_header_ufs_ufs_quota_h" = xyes
20440 then :
20441 printf "%s\n" "#define HAVE_UFS_UFS_QUOTA_H 1" >>confdefs.h
20442
20443 fi
20444 ac_fn_c_check_header_compile "$LINENO" "ufs/ufs/inode.h" "ac_cv_header_ufs_ufs_inode_h" "
20445 #ifdef HAVE_SYS_TYPES_H
20446 #include <sys/types.h>
20447 #endif
20448 #ifdef HAVE_UFS_UFS_DINODE_H
20449 #include <ufs/ufs/dinode.h>
20450 #endif
20451 #ifdef HAVE_UFS_UFS_QUOTA_H
20452 #include <ufs/ufs/quota.h>
20453 #endif
20454
20455 "
20456 if test "x$ac_cv_header_ufs_ufs_inode_h" = xyes
20457 then :
20458 printf "%s\n" "#define HAVE_UFS_UFS_INODE_H 1" >>confdefs.h
20459
20460 fi
20461 ac_fn_c_check_header_compile "$LINENO" "ufs/ffs/fs.h" "ac_cv_header_ufs_ffs_fs_h" "
20462 #ifdef HAVE_SYS_TYPES_H
20463 #include <sys/types.h>
20464 #endif
20465 #ifdef HAVE_UFS_UFS_DINODE_H
20466 #include <ufs/ufs/dinode.h>
20467 #endif
20468 #ifdef HAVE_UFS_UFS_QUOTA_H
20469 #include <ufs/ufs/quota.h>
20470 #endif
20471
20472 "
20473 if test "x$ac_cv_header_ufs_ffs_fs_h" = xyes
20474 then :
20475 printf "%s\n" "#define HAVE_UFS_FFS_FS_H 1" >>confdefs.h
20476
20477 fi
20478
20479
20480 # requiring <vm/vm.h> (BSDi2)
20481 # Agent:
20482 #
20483 ac_fn_c_check_header_compile "$LINENO" "vm/swap_pager.h" "ac_cv_header_vm_swap_pager_h" "
20484 #ifdef HAVE_VM_VM_H
20485 #include <vm/vm.h>
20486 #endif
20487
20488 "
20489 if test "x$ac_cv_header_vm_swap_pager_h" = xyes
20490 then :
20491 printf "%s\n" "#define HAVE_VM_SWAP_PAGER_H 1" >>confdefs.h
20492
20493 fi
20494
20495
20496 # netlink/rtnetlink (Linux)
20497 # Agent:
20498 #
20499 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
20500 #ifdef HAVE_ASM_TYPES_H
20501 #include <asm/types.h>
20502 #endif
20503 #ifdef HAVE_SYS_SOCKET_H
20504 #include <sys/socket.h>
20505 #endif
20506 #ifdef HAVE_LINUX_NETLINK_H
20507 #include <linux/netlink.h>
20508 #endif
20509
20510 "
20511 if test "x$ac_cv_header_linux_netlink_h" = xyes
20512 then :
20513 printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h
20514
20515 fi
20516 ac_fn_c_check_header_compile "$LINENO" "linux/rtnetlink.h" "ac_cv_header_linux_rtnetlink_h" "
20517 #ifdef HAVE_ASM_TYPES_H
20518 #include <asm/types.h>
20519 #endif
20520 #ifdef HAVE_SYS_SOCKET_H
20521 #include <sys/socket.h>
20522 #endif
20523 #ifdef HAVE_LINUX_NETLINK_H
20524 #include <linux/netlink.h>
20525 #endif
20526
20527 "
20528 if test "x$ac_cv_header_linux_rtnetlink_h" = xyes
20529 then :
20530 printf "%s\n" "#define HAVE_LINUX_RTNETLINK_H 1" >>confdefs.h
20531
20532 fi
20533
20534
20535 #
20536 # Avoid that on MinGW any networking headers get included that are
20537 # incompatible with <winsock2.h> by only testing for certain headers if not
20538 # building for one of these two platforms.
20539 #
20540
20541 case x$with_socklib in
20542 xwinsock2)
20543 ;;
20544 *)
20545
20546 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
20547 #ifdef HAVE_SYS_PARAM_H
20548 #include <sys/param.h>
20549 #endif
20550 #ifdef HAVE_SYS_TYPES_H
20551 #include <sys/types.h>
20552 #endif
20553 #ifdef HAVE_SYS_TIMEOUT_H
20554 #include <sys/timeout.h>
20555 #endif
20556 #ifdef HAVE_SYS_SOCKET_H
20557 #include <sys/socket.h>
20558 #endif
20559 #ifdef HAVE_SYS_SOCKETVAR_H
20560 #include <sys/socketvar.h>
20561 #endif
20562 #ifdef HAVE_ARPA_INET_H
20563 #include <arpa/inet.h>
20564 #endif
20565 #ifdef HAVE_NETINET_IN_SYSTM_H
20566 #include <netinet/in_systm.h>
20567 #endif
20568 #ifdef HAVE_NETINET_IN_H
20569 #include <netinet/in.h>
20570 #endif
20571 #ifdef HAVE_NETINET_IP_H
20572 #include <netinet/ip.h>
20573 #endif
20574 #ifdef HAVE_NETINET_IP_H
20575 #include <netinet/ip_icmp.h>
20576 #endif
20577 #ifdef HAVE_NET_IF_H
20578 #include <net/if.h>
20579 #endif
20580 #ifdef HAVE_NET_IF_VAR_H
20581 #include <net/if_var.h>
20582 #endif
20583 #ifdef HAVE_NETINET_IP_VAR_H
20584 #include <netinet/ip_var.h>
20585 #endif
20586 #ifdef HAVE_NETINET_IP_ICMP_H
20587 #include <netinet/ip_icmp.h>
20588 #endif
20589 #ifdef HAVE_NETINET_TCP_H
20590 #include <netinet/tcp.h>
20591 #endif
20592 #ifdef HAVE_NETINET_UDP_H
20593 #include <netinet/udp.h>
20594 #endif
20595 #ifdef HAVE_NETINET_TCP_TIMER_H
20596 #include <netinet/tcp_timer.h>
20597 #endif
20598 #ifdef HAVE_NETINET_IP6_H
20599 #include <netinet/ip6.h>
20600 #endif
20601 #ifdef HAVE_NETINET_ICMP6_H
20602 #include <netinet/icmp6.h>
20603 #endif
20604
20605 "
20606 if test "x$ac_cv_header_sys_socket_h" = xyes
20607 then :
20608 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
20609
20610 fi
20611 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
20612 #ifdef HAVE_SYS_PARAM_H
20613 #include <sys/param.h>
20614 #endif
20615 #ifdef HAVE_SYS_TYPES_H
20616 #include <sys/types.h>
20617 #endif
20618 #ifdef HAVE_SYS_TIMEOUT_H
20619 #include <sys/timeout.h>
20620 #endif
20621 #ifdef HAVE_SYS_SOCKET_H
20622 #include <sys/socket.h>
20623 #endif
20624 #ifdef HAVE_SYS_SOCKETVAR_H
20625 #include <sys/socketvar.h>
20626 #endif
20627 #ifdef HAVE_ARPA_INET_H
20628 #include <arpa/inet.h>
20629 #endif
20630 #ifdef HAVE_NETINET_IN_SYSTM_H
20631 #include <netinet/in_systm.h>
20632 #endif
20633 #ifdef HAVE_NETINET_IN_H
20634 #include <netinet/in.h>
20635 #endif
20636 #ifdef HAVE_NETINET_IP_H
20637 #include <netinet/ip.h>
20638 #endif
20639 #ifdef HAVE_NETINET_IP_H
20640 #include <netinet/ip_icmp.h>
20641 #endif
20642 #ifdef HAVE_NET_IF_H
20643 #include <net/if.h>
20644 #endif
20645 #ifdef HAVE_NET_IF_VAR_H
20646 #include <net/if_var.h>
20647 #endif
20648 #ifdef HAVE_NETINET_IP_VAR_H
20649 #include <netinet/ip_var.h>
20650 #endif
20651 #ifdef HAVE_NETINET_IP_ICMP_H
20652 #include <netinet/ip_icmp.h>
20653 #endif
20654 #ifdef HAVE_NETINET_TCP_H
20655 #include <netinet/tcp.h>
20656 #endif
20657 #ifdef HAVE_NETINET_UDP_H
20658 #include <netinet/udp.h>
20659 #endif
20660 #ifdef HAVE_NETINET_TCP_TIMER_H
20661 #include <netinet/tcp_timer.h>
20662 #endif
20663 #ifdef HAVE_NETINET_IP6_H
20664 #include <netinet/ip6.h>
20665 #endif
20666 #ifdef HAVE_NETINET_ICMP6_H
20667 #include <netinet/icmp6.h>
20668 #endif
20669
20670 "
20671 if test "x$ac_cv_header_sys_un_h" = xyes
20672 then :
20673 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
20674
20675 fi
20676 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp_fsm.h" "ac_cv_header_netinet_tcp_fsm_h" "
20677 #ifdef HAVE_SYS_PARAM_H
20678 #include <sys/param.h>
20679 #endif
20680 #ifdef HAVE_SYS_TYPES_H
20681 #include <sys/types.h>
20682 #endif
20683 #ifdef HAVE_SYS_TIMEOUT_H
20684 #include <sys/timeout.h>
20685 #endif
20686 #ifdef HAVE_SYS_SOCKET_H
20687 #include <sys/socket.h>
20688 #endif
20689 #ifdef HAVE_SYS_SOCKETVAR_H
20690 #include <sys/socketvar.h>
20691 #endif
20692 #ifdef HAVE_ARPA_INET_H
20693 #include <arpa/inet.h>
20694 #endif
20695 #ifdef HAVE_NETINET_IN_SYSTM_H
20696 #include <netinet/in_systm.h>
20697 #endif
20698 #ifdef HAVE_NETINET_IN_H
20699 #include <netinet/in.h>
20700 #endif
20701 #ifdef HAVE_NETINET_IP_H
20702 #include <netinet/ip.h>
20703 #endif
20704 #ifdef HAVE_NETINET_IP_H
20705 #include <netinet/ip_icmp.h>
20706 #endif
20707 #ifdef HAVE_NET_IF_H
20708 #include <net/if.h>
20709 #endif
20710 #ifdef HAVE_NET_IF_VAR_H
20711 #include <net/if_var.h>
20712 #endif
20713 #ifdef HAVE_NETINET_IP_VAR_H
20714 #include <netinet/ip_var.h>
20715 #endif
20716 #ifdef HAVE_NETINET_IP_ICMP_H
20717 #include <netinet/ip_icmp.h>
20718 #endif
20719 #ifdef HAVE_NETINET_TCP_H
20720 #include <netinet/tcp.h>
20721 #endif
20722 #ifdef HAVE_NETINET_UDP_H
20723 #include <netinet/udp.h>
20724 #endif
20725 #ifdef HAVE_NETINET_TCP_TIMER_H
20726 #include <netinet/tcp_timer.h>
20727 #endif
20728 #ifdef HAVE_NETINET_IP6_H
20729 #include <netinet/ip6.h>
20730 #endif
20731 #ifdef HAVE_NETINET_ICMP6_H
20732 #include <netinet/icmp6.h>
20733 #endif
20734
20735 "
20736 if test "x$ac_cv_header_netinet_tcp_fsm_h" = xyes
20737 then :
20738 printf "%s\n" "#define HAVE_NETINET_TCP_FSM_H 1" >>confdefs.h
20739
20740 fi
20741 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
20742 #ifdef HAVE_SYS_PARAM_H
20743 #include <sys/param.h>
20744 #endif
20745 #ifdef HAVE_SYS_TYPES_H
20746 #include <sys/types.h>
20747 #endif
20748 #ifdef HAVE_SYS_TIMEOUT_H
20749 #include <sys/timeout.h>
20750 #endif
20751 #ifdef HAVE_SYS_SOCKET_H
20752 #include <sys/socket.h>
20753 #endif
20754 #ifdef HAVE_SYS_SOCKETVAR_H
20755 #include <sys/socketvar.h>
20756 #endif
20757 #ifdef HAVE_ARPA_INET_H
20758 #include <arpa/inet.h>
20759 #endif
20760 #ifdef HAVE_NETINET_IN_SYSTM_H
20761 #include <netinet/in_systm.h>
20762 #endif
20763 #ifdef HAVE_NETINET_IN_H
20764 #include <netinet/in.h>
20765 #endif
20766 #ifdef HAVE_NETINET_IP_H
20767 #include <netinet/ip.h>
20768 #endif
20769 #ifdef HAVE_NETINET_IP_H
20770 #include <netinet/ip_icmp.h>
20771 #endif
20772 #ifdef HAVE_NET_IF_H
20773 #include <net/if.h>
20774 #endif
20775 #ifdef HAVE_NET_IF_VAR_H
20776 #include <net/if_var.h>
20777 #endif
20778 #ifdef HAVE_NETINET_IP_VAR_H
20779 #include <netinet/ip_var.h>
20780 #endif
20781 #ifdef HAVE_NETINET_IP_ICMP_H
20782 #include <netinet/ip_icmp.h>
20783 #endif
20784 #ifdef HAVE_NETINET_TCP_H
20785 #include <netinet/tcp.h>
20786 #endif
20787 #ifdef HAVE_NETINET_UDP_H
20788 #include <netinet/udp.h>
20789 #endif
20790 #ifdef HAVE_NETINET_TCP_TIMER_H
20791 #include <netinet/tcp_timer.h>
20792 #endif
20793 #ifdef HAVE_NETINET_IP6_H
20794 #include <netinet/ip6.h>
20795 #endif
20796 #ifdef HAVE_NETINET_ICMP6_H
20797 #include <netinet/icmp6.h>
20798 #endif
20799
20800 "
20801 if test "x$ac_cv_header_sys_sockio_h" = xyes
20802 then :
20803 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
20804
20805 fi
20806 ac_fn_c_check_header_compile "$LINENO" "sys/socketvar.h" "ac_cv_header_sys_socketvar_h" "
20807 #ifdef HAVE_SYS_PARAM_H
20808 #include <sys/param.h>
20809 #endif
20810 #ifdef HAVE_SYS_TYPES_H
20811 #include <sys/types.h>
20812 #endif
20813 #ifdef HAVE_SYS_TIMEOUT_H
20814 #include <sys/timeout.h>
20815 #endif
20816 #ifdef HAVE_SYS_SOCKET_H
20817 #include <sys/socket.h>
20818 #endif
20819 #ifdef HAVE_SYS_SOCKETVAR_H
20820 #include <sys/socketvar.h>
20821 #endif
20822 #ifdef HAVE_ARPA_INET_H
20823 #include <arpa/inet.h>
20824 #endif
20825 #ifdef HAVE_NETINET_IN_SYSTM_H
20826 #include <netinet/in_systm.h>
20827 #endif
20828 #ifdef HAVE_NETINET_IN_H
20829 #include <netinet/in.h>
20830 #endif
20831 #ifdef HAVE_NETINET_IP_H
20832 #include <netinet/ip.h>
20833 #endif
20834 #ifdef HAVE_NETINET_IP_H
20835 #include <netinet/ip_icmp.h>
20836 #endif
20837 #ifdef HAVE_NET_IF_H
20838 #include <net/if.h>
20839 #endif
20840 #ifdef HAVE_NET_IF_VAR_H
20841 #include <net/if_var.h>
20842 #endif
20843 #ifdef HAVE_NETINET_IP_VAR_H
20844 #include <netinet/ip_var.h>
20845 #endif
20846 #ifdef HAVE_NETINET_IP_ICMP_H
20847 #include <netinet/ip_icmp.h>
20848 #endif
20849 #ifdef HAVE_NETINET_TCP_H
20850 #include <netinet/tcp.h>
20851 #endif
20852 #ifdef HAVE_NETINET_UDP_H
20853 #include <netinet/udp.h>
20854 #endif
20855 #ifdef HAVE_NETINET_TCP_TIMER_H
20856 #include <netinet/tcp_timer.h>
20857 #endif
20858 #ifdef HAVE_NETINET_IP6_H
20859 #include <netinet/ip6.h>
20860 #endif
20861 #ifdef HAVE_NETINET_ICMP6_H
20862 #include <netinet/icmp6.h>
20863 #endif
20864
20865 "
20866 if test "x$ac_cv_header_sys_socketvar_h" = xyes
20867 then :
20868 printf "%s\n" "#define HAVE_SYS_SOCKETVAR_H 1" >>confdefs.h
20869
20870 fi
20871 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "
20872 #ifdef HAVE_SYS_PARAM_H
20873 #include <sys/param.h>
20874 #endif
20875 #ifdef HAVE_SYS_TYPES_H
20876 #include <sys/types.h>
20877 #endif
20878 #ifdef HAVE_SYS_TIMEOUT_H
20879 #include <sys/timeout.h>
20880 #endif
20881 #ifdef HAVE_SYS_SOCKET_H
20882 #include <sys/socket.h>
20883 #endif
20884 #ifdef HAVE_SYS_SOCKETVAR_H
20885 #include <sys/socketvar.h>
20886 #endif
20887 #ifdef HAVE_ARPA_INET_H
20888 #include <arpa/inet.h>
20889 #endif
20890 #ifdef HAVE_NETINET_IN_SYSTM_H
20891 #include <netinet/in_systm.h>
20892 #endif
20893 #ifdef HAVE_NETINET_IN_H
20894 #include <netinet/in.h>
20895 #endif
20896 #ifdef HAVE_NETINET_IP_H
20897 #include <netinet/ip.h>
20898 #endif
20899 #ifdef HAVE_NETINET_IP_H
20900 #include <netinet/ip_icmp.h>
20901 #endif
20902 #ifdef HAVE_NET_IF_H
20903 #include <net/if.h>
20904 #endif
20905 #ifdef HAVE_NET_IF_VAR_H
20906 #include <net/if_var.h>
20907 #endif
20908 #ifdef HAVE_NETINET_IP_VAR_H
20909 #include <netinet/ip_var.h>
20910 #endif
20911 #ifdef HAVE_NETINET_IP_ICMP_H
20912 #include <netinet/ip_icmp.h>
20913 #endif
20914 #ifdef HAVE_NETINET_TCP_H
20915 #include <netinet/tcp.h>
20916 #endif
20917 #ifdef HAVE_NETINET_UDP_H
20918 #include <netinet/udp.h>
20919 #endif
20920 #ifdef HAVE_NETINET_TCP_TIMER_H
20921 #include <netinet/tcp_timer.h>
20922 #endif
20923 #ifdef HAVE_NETINET_IP6_H
20924 #include <netinet/ip6.h>
20925 #endif
20926 #ifdef HAVE_NETINET_ICMP6_H
20927 #include <netinet/icmp6.h>
20928 #endif
20929
20930 "
20931 if test "x$ac_cv_header_net_if_dl_h" = xyes
20932 then :
20933 printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
20934
20935 fi
20936 ac_fn_c_check_header_compile "$LINENO" "net/if_types.h" "ac_cv_header_net_if_types_h" "
20937 #ifdef HAVE_SYS_PARAM_H
20938 #include <sys/param.h>
20939 #endif
20940 #ifdef HAVE_SYS_TYPES_H
20941 #include <sys/types.h>
20942 #endif
20943 #ifdef HAVE_SYS_TIMEOUT_H
20944 #include <sys/timeout.h>
20945 #endif
20946 #ifdef HAVE_SYS_SOCKET_H
20947 #include <sys/socket.h>
20948 #endif
20949 #ifdef HAVE_SYS_SOCKETVAR_H
20950 #include <sys/socketvar.h>
20951 #endif
20952 #ifdef HAVE_ARPA_INET_H
20953 #include <arpa/inet.h>
20954 #endif
20955 #ifdef HAVE_NETINET_IN_SYSTM_H
20956 #include <netinet/in_systm.h>
20957 #endif
20958 #ifdef HAVE_NETINET_IN_H
20959 #include <netinet/in.h>
20960 #endif
20961 #ifdef HAVE_NETINET_IP_H
20962 #include <netinet/ip.h>
20963 #endif
20964 #ifdef HAVE_NETINET_IP_H
20965 #include <netinet/ip_icmp.h>
20966 #endif
20967 #ifdef HAVE_NET_IF_H
20968 #include <net/if.h>
20969 #endif
20970 #ifdef HAVE_NET_IF_VAR_H
20971 #include <net/if_var.h>
20972 #endif
20973 #ifdef HAVE_NETINET_IP_VAR_H
20974 #include <netinet/ip_var.h>
20975 #endif
20976 #ifdef HAVE_NETINET_IP_ICMP_H
20977 #include <netinet/ip_icmp.h>
20978 #endif
20979 #ifdef HAVE_NETINET_TCP_H
20980 #include <netinet/tcp.h>
20981 #endif
20982 #ifdef HAVE_NETINET_UDP_H
20983 #include <netinet/udp.h>
20984 #endif
20985 #ifdef HAVE_NETINET_TCP_TIMER_H
20986 #include <netinet/tcp_timer.h>
20987 #endif
20988 #ifdef HAVE_NETINET_IP6_H
20989 #include <netinet/ip6.h>
20990 #endif
20991 #ifdef HAVE_NETINET_ICMP6_H
20992 #include <netinet/icmp6.h>
20993 #endif
20994
20995 "
20996 if test "x$ac_cv_header_net_if_types_h" = xyes
20997 then :
20998 printf "%s\n" "#define HAVE_NET_IF_TYPES_H 1" >>confdefs.h
20999
21000 fi
21001 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
21002 #ifdef HAVE_SYS_PARAM_H
21003 #include <sys/param.h>
21004 #endif
21005 #ifdef HAVE_SYS_TYPES_H
21006 #include <sys/types.h>
21007 #endif
21008 #ifdef HAVE_SYS_TIMEOUT_H
21009 #include <sys/timeout.h>
21010 #endif
21011 #ifdef HAVE_SYS_SOCKET_H
21012 #include <sys/socket.h>
21013 #endif
21014 #ifdef HAVE_SYS_SOCKETVAR_H
21015 #include <sys/socketvar.h>
21016 #endif
21017 #ifdef HAVE_ARPA_INET_H
21018 #include <arpa/inet.h>
21019 #endif
21020 #ifdef HAVE_NETINET_IN_SYSTM_H
21021 #include <netinet/in_systm.h>
21022 #endif
21023 #ifdef HAVE_NETINET_IN_H
21024 #include <netinet/in.h>
21025 #endif
21026 #ifdef HAVE_NETINET_IP_H
21027 #include <netinet/ip.h>
21028 #endif
21029 #ifdef HAVE_NETINET_IP_H
21030 #include <netinet/ip_icmp.h>
21031 #endif
21032 #ifdef HAVE_NET_IF_H
21033 #include <net/if.h>
21034 #endif
21035 #ifdef HAVE_NET_IF_VAR_H
21036 #include <net/if_var.h>
21037 #endif
21038 #ifdef HAVE_NETINET_IP_VAR_H
21039 #include <netinet/ip_var.h>
21040 #endif
21041 #ifdef HAVE_NETINET_IP_ICMP_H
21042 #include <netinet/ip_icmp.h>
21043 #endif
21044 #ifdef HAVE_NETINET_TCP_H
21045 #include <netinet/tcp.h>
21046 #endif
21047 #ifdef HAVE_NETINET_UDP_H
21048 #include <netinet/udp.h>
21049 #endif
21050 #ifdef HAVE_NETINET_TCP_TIMER_H
21051 #include <netinet/tcp_timer.h>
21052 #endif
21053 #ifdef HAVE_NETINET_IP6_H
21054 #include <netinet/ip6.h>
21055 #endif
21056 #ifdef HAVE_NETINET_ICMP6_H
21057 #include <netinet/icmp6.h>
21058 #endif
21059
21060 "
21061 if test "x$ac_cv_header_arpa_inet_h" = xyes
21062 then :
21063 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
21064
21065 fi
21066 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
21067 #ifdef HAVE_SYS_PARAM_H
21068 #include <sys/param.h>
21069 #endif
21070 #ifdef HAVE_SYS_TYPES_H
21071 #include <sys/types.h>
21072 #endif
21073 #ifdef HAVE_SYS_TIMEOUT_H
21074 #include <sys/timeout.h>
21075 #endif
21076 #ifdef HAVE_SYS_SOCKET_H
21077 #include <sys/socket.h>
21078 #endif
21079 #ifdef HAVE_SYS_SOCKETVAR_H
21080 #include <sys/socketvar.h>
21081 #endif
21082 #ifdef HAVE_ARPA_INET_H
21083 #include <arpa/inet.h>
21084 #endif
21085 #ifdef HAVE_NETINET_IN_SYSTM_H
21086 #include <netinet/in_systm.h>
21087 #endif
21088 #ifdef HAVE_NETINET_IN_H
21089 #include <netinet/in.h>
21090 #endif
21091 #ifdef HAVE_NETINET_IP_H
21092 #include <netinet/ip.h>
21093 #endif
21094 #ifdef HAVE_NETINET_IP_H
21095 #include <netinet/ip_icmp.h>
21096 #endif
21097 #ifdef HAVE_NET_IF_H
21098 #include <net/if.h>
21099 #endif
21100 #ifdef HAVE_NET_IF_VAR_H
21101 #include <net/if_var.h>
21102 #endif
21103 #ifdef HAVE_NETINET_IP_VAR_H
21104 #include <netinet/ip_var.h>
21105 #endif
21106 #ifdef HAVE_NETINET_IP_ICMP_H
21107 #include <netinet/ip_icmp.h>
21108 #endif
21109 #ifdef HAVE_NETINET_TCP_H
21110 #include <netinet/tcp.h>
21111 #endif
21112 #ifdef HAVE_NETINET_UDP_H
21113 #include <netinet/udp.h>
21114 #endif
21115 #ifdef HAVE_NETINET_TCP_TIMER_H
21116 #include <netinet/tcp_timer.h>
21117 #endif
21118 #ifdef HAVE_NETINET_IP6_H
21119 #include <netinet/ip6.h>
21120 #endif
21121 #ifdef HAVE_NETINET_ICMP6_H
21122 #include <netinet/icmp6.h>
21123 #endif
21124
21125 "
21126 if test "x$ac_cv_header_net_if_h" = xyes
21127 then :
21128 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
21129
21130 fi
21131 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
21132 #ifdef HAVE_SYS_PARAM_H
21133 #include <sys/param.h>
21134 #endif
21135 #ifdef HAVE_SYS_TYPES_H
21136 #include <sys/types.h>
21137 #endif
21138 #ifdef HAVE_SYS_TIMEOUT_H
21139 #include <sys/timeout.h>
21140 #endif
21141 #ifdef HAVE_SYS_SOCKET_H
21142 #include <sys/socket.h>
21143 #endif
21144 #ifdef HAVE_SYS_SOCKETVAR_H
21145 #include <sys/socketvar.h>
21146 #endif
21147 #ifdef HAVE_ARPA_INET_H
21148 #include <arpa/inet.h>
21149 #endif
21150 #ifdef HAVE_NETINET_IN_SYSTM_H
21151 #include <netinet/in_systm.h>
21152 #endif
21153 #ifdef HAVE_NETINET_IN_H
21154 #include <netinet/in.h>
21155 #endif
21156 #ifdef HAVE_NETINET_IP_H
21157 #include <netinet/ip.h>
21158 #endif
21159 #ifdef HAVE_NETINET_IP_H
21160 #include <netinet/ip_icmp.h>
21161 #endif
21162 #ifdef HAVE_NET_IF_H
21163 #include <net/if.h>
21164 #endif
21165 #ifdef HAVE_NET_IF_VAR_H
21166 #include <net/if_var.h>
21167 #endif
21168 #ifdef HAVE_NETINET_IP_VAR_H
21169 #include <netinet/ip_var.h>
21170 #endif
21171 #ifdef HAVE_NETINET_IP_ICMP_H
21172 #include <netinet/ip_icmp.h>
21173 #endif
21174 #ifdef HAVE_NETINET_TCP_H
21175 #include <netinet/tcp.h>
21176 #endif
21177 #ifdef HAVE_NETINET_UDP_H
21178 #include <netinet/udp.h>
21179 #endif
21180 #ifdef HAVE_NETINET_TCP_TIMER_H
21181 #include <netinet/tcp_timer.h>
21182 #endif
21183 #ifdef HAVE_NETINET_IP6_H
21184 #include <netinet/ip6.h>
21185 #endif
21186 #ifdef HAVE_NETINET_ICMP6_H
21187 #include <netinet/icmp6.h>
21188 #endif
21189
21190 "
21191 if test "x$ac_cv_header_netinet_in_h" = xyes
21192 then :
21193 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
21194
21195 fi
21196 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
21197 #ifdef HAVE_SYS_PARAM_H
21198 #include <sys/param.h>
21199 #endif
21200 #ifdef HAVE_SYS_TYPES_H
21201 #include <sys/types.h>
21202 #endif
21203 #ifdef HAVE_SYS_TIMEOUT_H
21204 #include <sys/timeout.h>
21205 #endif
21206 #ifdef HAVE_SYS_SOCKET_H
21207 #include <sys/socket.h>
21208 #endif
21209 #ifdef HAVE_SYS_SOCKETVAR_H
21210 #include <sys/socketvar.h>
21211 #endif
21212 #ifdef HAVE_ARPA_INET_H
21213 #include <arpa/inet.h>
21214 #endif
21215 #ifdef HAVE_NETINET_IN_SYSTM_H
21216 #include <netinet/in_systm.h>
21217 #endif
21218 #ifdef HAVE_NETINET_IN_H
21219 #include <netinet/in.h>
21220 #endif
21221 #ifdef HAVE_NETINET_IP_H
21222 #include <netinet/ip.h>
21223 #endif
21224 #ifdef HAVE_NETINET_IP_H
21225 #include <netinet/ip_icmp.h>
21226 #endif
21227 #ifdef HAVE_NET_IF_H
21228 #include <net/if.h>
21229 #endif
21230 #ifdef HAVE_NET_IF_VAR_H
21231 #include <net/if_var.h>
21232 #endif
21233 #ifdef HAVE_NETINET_IP_VAR_H
21234 #include <netinet/ip_var.h>
21235 #endif
21236 #ifdef HAVE_NETINET_IP_ICMP_H
21237 #include <netinet/ip_icmp.h>
21238 #endif
21239 #ifdef HAVE_NETINET_TCP_H
21240 #include <netinet/tcp.h>
21241 #endif
21242 #ifdef HAVE_NETINET_UDP_H
21243 #include <netinet/udp.h>
21244 #endif
21245 #ifdef HAVE_NETINET_TCP_TIMER_H
21246 #include <netinet/tcp_timer.h>
21247 #endif
21248 #ifdef HAVE_NETINET_IP6_H
21249 #include <netinet/ip6.h>
21250 #endif
21251 #ifdef HAVE_NETINET_ICMP6_H
21252 #include <netinet/icmp6.h>
21253 #endif
21254
21255 "
21256 if test "x$ac_cv_header_netdb_h" = xyes
21257 then :
21258 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
21259
21260 fi
21261 ac_fn_c_check_header_compile "$LINENO" "netgroup.h" "ac_cv_header_netgroup_h" "
21262 #ifdef HAVE_SYS_PARAM_H
21263 #include <sys/param.h>
21264 #endif
21265 #ifdef HAVE_SYS_TYPES_H
21266 #include <sys/types.h>
21267 #endif
21268 #ifdef HAVE_SYS_TIMEOUT_H
21269 #include <sys/timeout.h>
21270 #endif
21271 #ifdef HAVE_SYS_SOCKET_H
21272 #include <sys/socket.h>
21273 #endif
21274 #ifdef HAVE_SYS_SOCKETVAR_H
21275 #include <sys/socketvar.h>
21276 #endif
21277 #ifdef HAVE_ARPA_INET_H
21278 #include <arpa/inet.h>
21279 #endif
21280 #ifdef HAVE_NETINET_IN_SYSTM_H
21281 #include <netinet/in_systm.h>
21282 #endif
21283 #ifdef HAVE_NETINET_IN_H
21284 #include <netinet/in.h>
21285 #endif
21286 #ifdef HAVE_NETINET_IP_H
21287 #include <netinet/ip.h>
21288 #endif
21289 #ifdef HAVE_NETINET_IP_H
21290 #include <netinet/ip_icmp.h>
21291 #endif
21292 #ifdef HAVE_NET_IF_H
21293 #include <net/if.h>
21294 #endif
21295 #ifdef HAVE_NET_IF_VAR_H
21296 #include <net/if_var.h>
21297 #endif
21298 #ifdef HAVE_NETINET_IP_VAR_H
21299 #include <netinet/ip_var.h>
21300 #endif
21301 #ifdef HAVE_NETINET_IP_ICMP_H
21302 #include <netinet/ip_icmp.h>
21303 #endif
21304 #ifdef HAVE_NETINET_TCP_H
21305 #include <netinet/tcp.h>
21306 #endif
21307 #ifdef HAVE_NETINET_UDP_H
21308 #include <netinet/udp.h>
21309 #endif
21310 #ifdef HAVE_NETINET_TCP_TIMER_H
21311 #include <netinet/tcp_timer.h>
21312 #endif
21313 #ifdef HAVE_NETINET_IP6_H
21314 #include <netinet/ip6.h>
21315 #endif
21316 #ifdef HAVE_NETINET_ICMP6_H
21317 #include <netinet/icmp6.h>
21318 #endif
21319
21320 "
21321 if test "x$ac_cv_header_netgroup_h" = xyes
21322 then :
21323 printf "%s\n" "#define HAVE_NETGROUP_H 1" >>confdefs.h
21324
21325 fi
21326 ac_fn_c_check_header_compile "$LINENO" "net/if_arp.h" "ac_cv_header_net_if_arp_h" "
21327 #ifdef HAVE_SYS_PARAM_H
21328 #include <sys/param.h>
21329 #endif
21330 #ifdef HAVE_SYS_TYPES_H
21331 #include <sys/types.h>
21332 #endif
21333 #ifdef HAVE_SYS_TIMEOUT_H
21334 #include <sys/timeout.h>
21335 #endif
21336 #ifdef HAVE_SYS_SOCKET_H
21337 #include <sys/socket.h>
21338 #endif
21339 #ifdef HAVE_SYS_SOCKETVAR_H
21340 #include <sys/socketvar.h>
21341 #endif
21342 #ifdef HAVE_ARPA_INET_H
21343 #include <arpa/inet.h>
21344 #endif
21345 #ifdef HAVE_NETINET_IN_SYSTM_H
21346 #include <netinet/in_systm.h>
21347 #endif
21348 #ifdef HAVE_NETINET_IN_H
21349 #include <netinet/in.h>
21350 #endif
21351 #ifdef HAVE_NETINET_IP_H
21352 #include <netinet/ip.h>
21353 #endif
21354 #ifdef HAVE_NETINET_IP_H
21355 #include <netinet/ip_icmp.h>
21356 #endif
21357 #ifdef HAVE_NET_IF_H
21358 #include <net/if.h>
21359 #endif
21360 #ifdef HAVE_NET_IF_VAR_H
21361 #include <net/if_var.h>
21362 #endif
21363 #ifdef HAVE_NETINET_IP_VAR_H
21364 #include <netinet/ip_var.h>
21365 #endif
21366 #ifdef HAVE_NETINET_IP_ICMP_H
21367 #include <netinet/ip_icmp.h>
21368 #endif
21369 #ifdef HAVE_NETINET_TCP_H
21370 #include <netinet/tcp.h>
21371 #endif
21372 #ifdef HAVE_NETINET_UDP_H
21373 #include <netinet/udp.h>
21374 #endif
21375 #ifdef HAVE_NETINET_TCP_TIMER_H
21376 #include <netinet/tcp_timer.h>
21377 #endif
21378 #ifdef HAVE_NETINET_IP6_H
21379 #include <netinet/ip6.h>
21380 #endif
21381 #ifdef HAVE_NETINET_ICMP6_H
21382 #include <netinet/icmp6.h>
21383 #endif
21384
21385 "
21386 if test "x$ac_cv_header_net_if_arp_h" = xyes
21387 then :
21388 printf "%s\n" "#define HAVE_NET_IF_ARP_H 1" >>confdefs.h
21389
21390 fi
21391 ac_fn_c_check_header_compile "$LINENO" "net/if_mib.h" "ac_cv_header_net_if_mib_h" "
21392 #ifdef HAVE_SYS_PARAM_H
21393 #include <sys/param.h>
21394 #endif
21395 #ifdef HAVE_SYS_TYPES_H
21396 #include <sys/types.h>
21397 #endif
21398 #ifdef HAVE_SYS_TIMEOUT_H
21399 #include <sys/timeout.h>
21400 #endif
21401 #ifdef HAVE_SYS_SOCKET_H
21402 #include <sys/socket.h>
21403 #endif
21404 #ifdef HAVE_SYS_SOCKETVAR_H
21405 #include <sys/socketvar.h>
21406 #endif
21407 #ifdef HAVE_ARPA_INET_H
21408 #include <arpa/inet.h>
21409 #endif
21410 #ifdef HAVE_NETINET_IN_SYSTM_H
21411 #include <netinet/in_systm.h>
21412 #endif
21413 #ifdef HAVE_NETINET_IN_H
21414 #include <netinet/in.h>
21415 #endif
21416 #ifdef HAVE_NETINET_IP_H
21417 #include <netinet/ip.h>
21418 #endif
21419 #ifdef HAVE_NETINET_IP_H
21420 #include <netinet/ip_icmp.h>
21421 #endif
21422 #ifdef HAVE_NET_IF_H
21423 #include <net/if.h>
21424 #endif
21425 #ifdef HAVE_NET_IF_VAR_H
21426 #include <net/if_var.h>
21427 #endif
21428 #ifdef HAVE_NETINET_IP_VAR_H
21429 #include <netinet/ip_var.h>
21430 #endif
21431 #ifdef HAVE_NETINET_IP_ICMP_H
21432 #include <netinet/ip_icmp.h>
21433 #endif
21434 #ifdef HAVE_NETINET_TCP_H
21435 #include <netinet/tcp.h>
21436 #endif
21437 #ifdef HAVE_NETINET_UDP_H
21438 #include <netinet/udp.h>
21439 #endif
21440 #ifdef HAVE_NETINET_TCP_TIMER_H
21441 #include <netinet/tcp_timer.h>
21442 #endif
21443 #ifdef HAVE_NETINET_IP6_H
21444 #include <netinet/ip6.h>
21445 #endif
21446 #ifdef HAVE_NETINET_ICMP6_H
21447 #include <netinet/icmp6.h>
21448 #endif
21449
21450 "
21451 if test "x$ac_cv_header_net_if_mib_h" = xyes
21452 then :
21453 printf "%s\n" "#define HAVE_NET_IF_MIB_H 1" >>confdefs.h
21454
21455 fi
21456 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
21457 #ifdef HAVE_SYS_PARAM_H
21458 #include <sys/param.h>
21459 #endif
21460 #ifdef HAVE_SYS_TYPES_H
21461 #include <sys/types.h>
21462 #endif
21463 #ifdef HAVE_SYS_TIMEOUT_H
21464 #include <sys/timeout.h>
21465 #endif
21466 #ifdef HAVE_SYS_SOCKET_H
21467 #include <sys/socket.h>
21468 #endif
21469 #ifdef HAVE_SYS_SOCKETVAR_H
21470 #include <sys/socketvar.h>
21471 #endif
21472 #ifdef HAVE_ARPA_INET_H
21473 #include <arpa/inet.h>
21474 #endif
21475 #ifdef HAVE_NETINET_IN_SYSTM_H
21476 #include <netinet/in_systm.h>
21477 #endif
21478 #ifdef HAVE_NETINET_IN_H
21479 #include <netinet/in.h>
21480 #endif
21481 #ifdef HAVE_NETINET_IP_H
21482 #include <netinet/ip.h>
21483 #endif
21484 #ifdef HAVE_NETINET_IP_H
21485 #include <netinet/ip_icmp.h>
21486 #endif
21487 #ifdef HAVE_NET_IF_H
21488 #include <net/if.h>
21489 #endif
21490 #ifdef HAVE_NET_IF_VAR_H
21491 #include <net/if_var.h>
21492 #endif
21493 #ifdef HAVE_NETINET_IP_VAR_H
21494 #include <netinet/ip_var.h>
21495 #endif
21496 #ifdef HAVE_NETINET_IP_ICMP_H
21497 #include <netinet/ip_icmp.h>
21498 #endif
21499 #ifdef HAVE_NETINET_TCP_H
21500 #include <netinet/tcp.h>
21501 #endif
21502 #ifdef HAVE_NETINET_UDP_H
21503 #include <netinet/udp.h>
21504 #endif
21505 #ifdef HAVE_NETINET_TCP_TIMER_H
21506 #include <netinet/tcp_timer.h>
21507 #endif
21508 #ifdef HAVE_NETINET_IP6_H
21509 #include <netinet/ip6.h>
21510 #endif
21511 #ifdef HAVE_NETINET_ICMP6_H
21512 #include <netinet/icmp6.h>
21513 #endif
21514
21515 "
21516 if test "x$ac_cv_header_net_if_var_h" = xyes
21517 then :
21518 printf "%s\n" "#define HAVE_NET_IF_VAR_H 1" >>confdefs.h
21519
21520 fi
21521 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "
21522 #ifdef HAVE_SYS_PARAM_H
21523 #include <sys/param.h>
21524 #endif
21525 #ifdef HAVE_SYS_TYPES_H
21526 #include <sys/types.h>
21527 #endif
21528 #ifdef HAVE_SYS_TIMEOUT_H
21529 #include <sys/timeout.h>
21530 #endif
21531 #ifdef HAVE_SYS_SOCKET_H
21532 #include <sys/socket.h>
21533 #endif
21534 #ifdef HAVE_SYS_SOCKETVAR_H
21535 #include <sys/socketvar.h>
21536 #endif
21537 #ifdef HAVE_ARPA_INET_H
21538 #include <arpa/inet.h>
21539 #endif
21540 #ifdef HAVE_NETINET_IN_SYSTM_H
21541 #include <netinet/in_systm.h>
21542 #endif
21543 #ifdef HAVE_NETINET_IN_H
21544 #include <netinet/in.h>
21545 #endif
21546 #ifdef HAVE_NETINET_IP_H
21547 #include <netinet/ip.h>
21548 #endif
21549 #ifdef HAVE_NETINET_IP_H
21550 #include <netinet/ip_icmp.h>
21551 #endif
21552 #ifdef HAVE_NET_IF_H
21553 #include <net/if.h>
21554 #endif
21555 #ifdef HAVE_NET_IF_VAR_H
21556 #include <net/if_var.h>
21557 #endif
21558 #ifdef HAVE_NETINET_IP_VAR_H
21559 #include <netinet/ip_var.h>
21560 #endif
21561 #ifdef HAVE_NETINET_IP_ICMP_H
21562 #include <netinet/ip_icmp.h>
21563 #endif
21564 #ifdef HAVE_NETINET_TCP_H
21565 #include <netinet/tcp.h>
21566 #endif
21567 #ifdef HAVE_NETINET_UDP_H
21568 #include <netinet/udp.h>
21569 #endif
21570 #ifdef HAVE_NETINET_TCP_TIMER_H
21571 #include <netinet/tcp_timer.h>
21572 #endif
21573 #ifdef HAVE_NETINET_IP6_H
21574 #include <netinet/ip6.h>
21575 #endif
21576 #ifdef HAVE_NETINET_ICMP6_H
21577 #include <netinet/icmp6.h>
21578 #endif
21579
21580 "
21581 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
21582 then :
21583 printf "%s\n" "#define HAVE_NETINET_IF_ETHER_H 1" >>confdefs.h
21584
21585 fi
21586 ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "
21587 #ifdef HAVE_SYS_PARAM_H
21588 #include <sys/param.h>
21589 #endif
21590 #ifdef HAVE_SYS_TYPES_H
21591 #include <sys/types.h>
21592 #endif
21593 #ifdef HAVE_SYS_TIMEOUT_H
21594 #include <sys/timeout.h>
21595 #endif
21596 #ifdef HAVE_SYS_SOCKET_H
21597 #include <sys/socket.h>
21598 #endif
21599 #ifdef HAVE_SYS_SOCKETVAR_H
21600 #include <sys/socketvar.h>
21601 #endif
21602 #ifdef HAVE_ARPA_INET_H
21603 #include <arpa/inet.h>
21604 #endif
21605 #ifdef HAVE_NETINET_IN_SYSTM_H
21606 #include <netinet/in_systm.h>
21607 #endif
21608 #ifdef HAVE_NETINET_IN_H
21609 #include <netinet/in.h>
21610 #endif
21611 #ifdef HAVE_NETINET_IP_H
21612 #include <netinet/ip.h>
21613 #endif
21614 #ifdef HAVE_NETINET_IP_H
21615 #include <netinet/ip_icmp.h>
21616 #endif
21617 #ifdef HAVE_NET_IF_H
21618 #include <net/if.h>
21619 #endif
21620 #ifdef HAVE_NET_IF_VAR_H
21621 #include <net/if_var.h>
21622 #endif
21623 #ifdef HAVE_NETINET_IP_VAR_H
21624 #include <netinet/ip_var.h>
21625 #endif
21626 #ifdef HAVE_NETINET_IP_ICMP_H
21627 #include <netinet/ip_icmp.h>
21628 #endif
21629 #ifdef HAVE_NETINET_TCP_H
21630 #include <netinet/tcp.h>
21631 #endif
21632 #ifdef HAVE_NETINET_UDP_H
21633 #include <netinet/udp.h>
21634 #endif
21635 #ifdef HAVE_NETINET_TCP_TIMER_H
21636 #include <netinet/tcp_timer.h>
21637 #endif
21638 #ifdef HAVE_NETINET_IP6_H
21639 #include <netinet/ip6.h>
21640 #endif
21641 #ifdef HAVE_NETINET_ICMP6_H
21642 #include <netinet/icmp6.h>
21643 #endif
21644
21645 "
21646 if test "x$ac_cv_header_netinet_in_systm_h" = xyes
21647 then :
21648 printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h
21649
21650 fi
21651 ac_fn_c_check_header_compile "$LINENO" "netinet/in_var.h" "ac_cv_header_netinet_in_var_h" "
21652 #ifdef HAVE_SYS_PARAM_H
21653 #include <sys/param.h>
21654 #endif
21655 #ifdef HAVE_SYS_TYPES_H
21656 #include <sys/types.h>
21657 #endif
21658 #ifdef HAVE_SYS_TIMEOUT_H
21659 #include <sys/timeout.h>
21660 #endif
21661 #ifdef HAVE_SYS_SOCKET_H
21662 #include <sys/socket.h>
21663 #endif
21664 #ifdef HAVE_SYS_SOCKETVAR_H
21665 #include <sys/socketvar.h>
21666 #endif
21667 #ifdef HAVE_ARPA_INET_H
21668 #include <arpa/inet.h>
21669 #endif
21670 #ifdef HAVE_NETINET_IN_SYSTM_H
21671 #include <netinet/in_systm.h>
21672 #endif
21673 #ifdef HAVE_NETINET_IN_H
21674 #include <netinet/in.h>
21675 #endif
21676 #ifdef HAVE_NETINET_IP_H
21677 #include <netinet/ip.h>
21678 #endif
21679 #ifdef HAVE_NETINET_IP_H
21680 #include <netinet/ip_icmp.h>
21681 #endif
21682 #ifdef HAVE_NET_IF_H
21683 #include <net/if.h>
21684 #endif
21685 #ifdef HAVE_NET_IF_VAR_H
21686 #include <net/if_var.h>
21687 #endif
21688 #ifdef HAVE_NETINET_IP_VAR_H
21689 #include <netinet/ip_var.h>
21690 #endif
21691 #ifdef HAVE_NETINET_IP_ICMP_H
21692 #include <netinet/ip_icmp.h>
21693 #endif
21694 #ifdef HAVE_NETINET_TCP_H
21695 #include <netinet/tcp.h>
21696 #endif
21697 #ifdef HAVE_NETINET_UDP_H
21698 #include <netinet/udp.h>
21699 #endif
21700 #ifdef HAVE_NETINET_TCP_TIMER_H
21701 #include <netinet/tcp_timer.h>
21702 #endif
21703 #ifdef HAVE_NETINET_IP6_H
21704 #include <netinet/ip6.h>
21705 #endif
21706 #ifdef HAVE_NETINET_ICMP6_H
21707 #include <netinet/icmp6.h>
21708 #endif
21709
21710 "
21711 if test "x$ac_cv_header_netinet_in_var_h" = xyes
21712 then :
21713 printf "%s\n" "#define HAVE_NETINET_IN_VAR_H 1" >>confdefs.h
21714
21715 fi
21716 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "
21717 #ifdef HAVE_SYS_PARAM_H
21718 #include <sys/param.h>
21719 #endif
21720 #ifdef HAVE_SYS_TYPES_H
21721 #include <sys/types.h>
21722 #endif
21723 #ifdef HAVE_SYS_TIMEOUT_H
21724 #include <sys/timeout.h>
21725 #endif
21726 #ifdef HAVE_SYS_SOCKET_H
21727 #include <sys/socket.h>
21728 #endif
21729 #ifdef HAVE_SYS_SOCKETVAR_H
21730 #include <sys/socketvar.h>
21731 #endif
21732 #ifdef HAVE_ARPA_INET_H
21733 #include <arpa/inet.h>
21734 #endif
21735 #ifdef HAVE_NETINET_IN_SYSTM_H
21736 #include <netinet/in_systm.h>
21737 #endif
21738 #ifdef HAVE_NETINET_IN_H
21739 #include <netinet/in.h>
21740 #endif
21741 #ifdef HAVE_NETINET_IP_H
21742 #include <netinet/ip.h>
21743 #endif
21744 #ifdef HAVE_NETINET_IP_H
21745 #include <netinet/ip_icmp.h>
21746 #endif
21747 #ifdef HAVE_NET_IF_H
21748 #include <net/if.h>
21749 #endif
21750 #ifdef HAVE_NET_IF_VAR_H
21751 #include <net/if_var.h>
21752 #endif
21753 #ifdef HAVE_NETINET_IP_VAR_H
21754 #include <netinet/ip_var.h>
21755 #endif
21756 #ifdef HAVE_NETINET_IP_ICMP_H
21757 #include <netinet/ip_icmp.h>
21758 #endif
21759 #ifdef HAVE_NETINET_TCP_H
21760 #include <netinet/tcp.h>
21761 #endif
21762 #ifdef HAVE_NETINET_UDP_H
21763 #include <netinet/udp.h>
21764 #endif
21765 #ifdef HAVE_NETINET_TCP_TIMER_H
21766 #include <netinet/tcp_timer.h>
21767 #endif
21768 #ifdef HAVE_NETINET_IP6_H
21769 #include <netinet/ip6.h>
21770 #endif
21771 #ifdef HAVE_NETINET_ICMP6_H
21772 #include <netinet/icmp6.h>
21773 #endif
21774
21775 "
21776 if test "x$ac_cv_header_netinet_ip_h" = xyes
21777 then :
21778 printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h
21779
21780 fi
21781 ac_fn_c_check_header_compile "$LINENO" "netinet/ip_icmp.h" "ac_cv_header_netinet_ip_icmp_h" "
21782 #ifdef HAVE_SYS_PARAM_H
21783 #include <sys/param.h>
21784 #endif
21785 #ifdef HAVE_SYS_TYPES_H
21786 #include <sys/types.h>
21787 #endif
21788 #ifdef HAVE_SYS_TIMEOUT_H
21789 #include <sys/timeout.h>
21790 #endif
21791 #ifdef HAVE_SYS_SOCKET_H
21792 #include <sys/socket.h>
21793 #endif
21794 #ifdef HAVE_SYS_SOCKETVAR_H
21795 #include <sys/socketvar.h>
21796 #endif
21797 #ifdef HAVE_ARPA_INET_H
21798 #include <arpa/inet.h>
21799 #endif
21800 #ifdef HAVE_NETINET_IN_SYSTM_H
21801 #include <netinet/in_systm.h>
21802 #endif
21803 #ifdef HAVE_NETINET_IN_H
21804 #include <netinet/in.h>
21805 #endif
21806 #ifdef HAVE_NETINET_IP_H
21807 #include <netinet/ip.h>
21808 #endif
21809 #ifdef HAVE_NETINET_IP_H
21810 #include <netinet/ip_icmp.h>
21811 #endif
21812 #ifdef HAVE_NET_IF_H
21813 #include <net/if.h>
21814 #endif
21815 #ifdef HAVE_NET_IF_VAR_H
21816 #include <net/if_var.h>
21817 #endif
21818 #ifdef HAVE_NETINET_IP_VAR_H
21819 #include <netinet/ip_var.h>
21820 #endif
21821 #ifdef HAVE_NETINET_IP_ICMP_H
21822 #include <netinet/ip_icmp.h>
21823 #endif
21824 #ifdef HAVE_NETINET_TCP_H
21825 #include <netinet/tcp.h>
21826 #endif
21827 #ifdef HAVE_NETINET_UDP_H
21828 #include <netinet/udp.h>
21829 #endif
21830 #ifdef HAVE_NETINET_TCP_TIMER_H
21831 #include <netinet/tcp_timer.h>
21832 #endif
21833 #ifdef HAVE_NETINET_IP6_H
21834 #include <netinet/ip6.h>
21835 #endif
21836 #ifdef HAVE_NETINET_ICMP6_H
21837 #include <netinet/icmp6.h>
21838 #endif
21839
21840 "
21841 if test "x$ac_cv_header_netinet_ip_icmp_h" = xyes
21842 then :
21843 printf "%s\n" "#define HAVE_NETINET_IP_ICMP_H 1" >>confdefs.h
21844
21845 fi
21846 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp_var.h" "ac_cv_header_netinet_icmp_var_h" "
21847 #ifdef HAVE_SYS_PARAM_H
21848 #include <sys/param.h>
21849 #endif
21850 #ifdef HAVE_SYS_TYPES_H
21851 #include <sys/types.h>
21852 #endif
21853 #ifdef HAVE_SYS_TIMEOUT_H
21854 #include <sys/timeout.h>
21855 #endif
21856 #ifdef HAVE_SYS_SOCKET_H
21857 #include <sys/socket.h>
21858 #endif
21859 #ifdef HAVE_SYS_SOCKETVAR_H
21860 #include <sys/socketvar.h>
21861 #endif
21862 #ifdef HAVE_ARPA_INET_H
21863 #include <arpa/inet.h>
21864 #endif
21865 #ifdef HAVE_NETINET_IN_SYSTM_H
21866 #include <netinet/in_systm.h>
21867 #endif
21868 #ifdef HAVE_NETINET_IN_H
21869 #include <netinet/in.h>
21870 #endif
21871 #ifdef HAVE_NETINET_IP_H
21872 #include <netinet/ip.h>
21873 #endif
21874 #ifdef HAVE_NETINET_IP_H
21875 #include <netinet/ip_icmp.h>
21876 #endif
21877 #ifdef HAVE_NET_IF_H
21878 #include <net/if.h>
21879 #endif
21880 #ifdef HAVE_NET_IF_VAR_H
21881 #include <net/if_var.h>
21882 #endif
21883 #ifdef HAVE_NETINET_IP_VAR_H
21884 #include <netinet/ip_var.h>
21885 #endif
21886 #ifdef HAVE_NETINET_IP_ICMP_H
21887 #include <netinet/ip_icmp.h>
21888 #endif
21889 #ifdef HAVE_NETINET_TCP_H
21890 #include <netinet/tcp.h>
21891 #endif
21892 #ifdef HAVE_NETINET_UDP_H
21893 #include <netinet/udp.h>
21894 #endif
21895 #ifdef HAVE_NETINET_TCP_TIMER_H
21896 #include <netinet/tcp_timer.h>
21897 #endif
21898 #ifdef HAVE_NETINET_IP6_H
21899 #include <netinet/ip6.h>
21900 #endif
21901 #ifdef HAVE_NETINET_ICMP6_H
21902 #include <netinet/icmp6.h>
21903 #endif
21904
21905 "
21906 if test "x$ac_cv_header_netinet_icmp_var_h" = xyes
21907 then :
21908 printf "%s\n" "#define HAVE_NETINET_ICMP_VAR_H 1" >>confdefs.h
21909
21910 fi
21911 ac_fn_c_check_header_compile "$LINENO" "netinet/ip_var.h" "ac_cv_header_netinet_ip_var_h" "
21912 #ifdef HAVE_SYS_PARAM_H
21913 #include <sys/param.h>
21914 #endif
21915 #ifdef HAVE_SYS_TYPES_H
21916 #include <sys/types.h>
21917 #endif
21918 #ifdef HAVE_SYS_TIMEOUT_H
21919 #include <sys/timeout.h>
21920 #endif
21921 #ifdef HAVE_SYS_SOCKET_H
21922 #include <sys/socket.h>
21923 #endif
21924 #ifdef HAVE_SYS_SOCKETVAR_H
21925 #include <sys/socketvar.h>
21926 #endif
21927 #ifdef HAVE_ARPA_INET_H
21928 #include <arpa/inet.h>
21929 #endif
21930 #ifdef HAVE_NETINET_IN_SYSTM_H
21931 #include <netinet/in_systm.h>
21932 #endif
21933 #ifdef HAVE_NETINET_IN_H
21934 #include <netinet/in.h>
21935 #endif
21936 #ifdef HAVE_NETINET_IP_H
21937 #include <netinet/ip.h>
21938 #endif
21939 #ifdef HAVE_NETINET_IP_H
21940 #include <netinet/ip_icmp.h>
21941 #endif
21942 #ifdef HAVE_NET_IF_H
21943 #include <net/if.h>
21944 #endif
21945 #ifdef HAVE_NET_IF_VAR_H
21946 #include <net/if_var.h>
21947 #endif
21948 #ifdef HAVE_NETINET_IP_VAR_H
21949 #include <netinet/ip_var.h>
21950 #endif
21951 #ifdef HAVE_NETINET_IP_ICMP_H
21952 #include <netinet/ip_icmp.h>
21953 #endif
21954 #ifdef HAVE_NETINET_TCP_H
21955 #include <netinet/tcp.h>
21956 #endif
21957 #ifdef HAVE_NETINET_UDP_H
21958 #include <netinet/udp.h>
21959 #endif
21960 #ifdef HAVE_NETINET_TCP_TIMER_H
21961 #include <netinet/tcp_timer.h>
21962 #endif
21963 #ifdef HAVE_NETINET_IP6_H
21964 #include <netinet/ip6.h>
21965 #endif
21966 #ifdef HAVE_NETINET_ICMP6_H
21967 #include <netinet/icmp6.h>
21968 #endif
21969
21970 "
21971 if test "x$ac_cv_header_netinet_ip_var_h" = xyes
21972 then :
21973 printf "%s\n" "#define HAVE_NETINET_IP_VAR_H 1" >>confdefs.h
21974
21975 fi
21976 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
21977 #ifdef HAVE_SYS_PARAM_H
21978 #include <sys/param.h>
21979 #endif
21980 #ifdef HAVE_SYS_TYPES_H
21981 #include <sys/types.h>
21982 #endif
21983 #ifdef HAVE_SYS_TIMEOUT_H
21984 #include <sys/timeout.h>
21985 #endif
21986 #ifdef HAVE_SYS_SOCKET_H
21987 #include <sys/socket.h>
21988 #endif
21989 #ifdef HAVE_SYS_SOCKETVAR_H
21990 #include <sys/socketvar.h>
21991 #endif
21992 #ifdef HAVE_ARPA_INET_H
21993 #include <arpa/inet.h>
21994 #endif
21995 #ifdef HAVE_NETINET_IN_SYSTM_H
21996 #include <netinet/in_systm.h>
21997 #endif
21998 #ifdef HAVE_NETINET_IN_H
21999 #include <netinet/in.h>
22000 #endif
22001 #ifdef HAVE_NETINET_IP_H
22002 #include <netinet/ip.h>
22003 #endif
22004 #ifdef HAVE_NETINET_IP_H
22005 #include <netinet/ip_icmp.h>
22006 #endif
22007 #ifdef HAVE_NET_IF_H
22008 #include <net/if.h>
22009 #endif
22010 #ifdef HAVE_NET_IF_VAR_H
22011 #include <net/if_var.h>
22012 #endif
22013 #ifdef HAVE_NETINET_IP_VAR_H
22014 #include <netinet/ip_var.h>
22015 #endif
22016 #ifdef HAVE_NETINET_IP_ICMP_H
22017 #include <netinet/ip_icmp.h>
22018 #endif
22019 #ifdef HAVE_NETINET_TCP_H
22020 #include <netinet/tcp.h>
22021 #endif
22022 #ifdef HAVE_NETINET_UDP_H
22023 #include <netinet/udp.h>
22024 #endif
22025 #ifdef HAVE_NETINET_TCP_TIMER_H
22026 #include <netinet/tcp_timer.h>
22027 #endif
22028 #ifdef HAVE_NETINET_IP6_H
22029 #include <netinet/ip6.h>
22030 #endif
22031 #ifdef HAVE_NETINET_ICMP6_H
22032 #include <netinet/icmp6.h>
22033 #endif
22034
22035 "
22036 if test "x$ac_cv_header_netinet_tcp_h" = xyes
22037 then :
22038 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
22039
22040 fi
22041 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp_timer.h" "ac_cv_header_netinet_tcp_timer_h" "
22042 #ifdef HAVE_SYS_PARAM_H
22043 #include <sys/param.h>
22044 #endif
22045 #ifdef HAVE_SYS_TYPES_H
22046 #include <sys/types.h>
22047 #endif
22048 #ifdef HAVE_SYS_TIMEOUT_H
22049 #include <sys/timeout.h>
22050 #endif
22051 #ifdef HAVE_SYS_SOCKET_H
22052 #include <sys/socket.h>
22053 #endif
22054 #ifdef HAVE_SYS_SOCKETVAR_H
22055 #include <sys/socketvar.h>
22056 #endif
22057 #ifdef HAVE_ARPA_INET_H
22058 #include <arpa/inet.h>
22059 #endif
22060 #ifdef HAVE_NETINET_IN_SYSTM_H
22061 #include <netinet/in_systm.h>
22062 #endif
22063 #ifdef HAVE_NETINET_IN_H
22064 #include <netinet/in.h>
22065 #endif
22066 #ifdef HAVE_NETINET_IP_H
22067 #include <netinet/ip.h>
22068 #endif
22069 #ifdef HAVE_NETINET_IP_H
22070 #include <netinet/ip_icmp.h>
22071 #endif
22072 #ifdef HAVE_NET_IF_H
22073 #include <net/if.h>
22074 #endif
22075 #ifdef HAVE_NET_IF_VAR_H
22076 #include <net/if_var.h>
22077 #endif
22078 #ifdef HAVE_NETINET_IP_VAR_H
22079 #include <netinet/ip_var.h>
22080 #endif
22081 #ifdef HAVE_NETINET_IP_ICMP_H
22082 #include <netinet/ip_icmp.h>
22083 #endif
22084 #ifdef HAVE_NETINET_TCP_H
22085 #include <netinet/tcp.h>
22086 #endif
22087 #ifdef HAVE_NETINET_UDP_H
22088 #include <netinet/udp.h>
22089 #endif
22090 #ifdef HAVE_NETINET_TCP_TIMER_H
22091 #include <netinet/tcp_timer.h>
22092 #endif
22093 #ifdef HAVE_NETINET_IP6_H
22094 #include <netinet/ip6.h>
22095 #endif
22096 #ifdef HAVE_NETINET_ICMP6_H
22097 #include <netinet/icmp6.h>
22098 #endif
22099
22100 "
22101 if test "x$ac_cv_header_netinet_tcp_timer_h" = xyes
22102 then :
22103 printf "%s\n" "#define HAVE_NETINET_TCP_TIMER_H 1" >>confdefs.h
22104
22105 fi
22106 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp_var.h" "ac_cv_header_netinet_tcp_var_h" "
22107 #ifdef HAVE_SYS_PARAM_H
22108 #include <sys/param.h>
22109 #endif
22110 #ifdef HAVE_SYS_TYPES_H
22111 #include <sys/types.h>
22112 #endif
22113 #ifdef HAVE_SYS_TIMEOUT_H
22114 #include <sys/timeout.h>
22115 #endif
22116 #ifdef HAVE_SYS_SOCKET_H
22117 #include <sys/socket.h>
22118 #endif
22119 #ifdef HAVE_SYS_SOCKETVAR_H
22120 #include <sys/socketvar.h>
22121 #endif
22122 #ifdef HAVE_ARPA_INET_H
22123 #include <arpa/inet.h>
22124 #endif
22125 #ifdef HAVE_NETINET_IN_SYSTM_H
22126 #include <netinet/in_systm.h>
22127 #endif
22128 #ifdef HAVE_NETINET_IN_H
22129 #include <netinet/in.h>
22130 #endif
22131 #ifdef HAVE_NETINET_IP_H
22132 #include <netinet/ip.h>
22133 #endif
22134 #ifdef HAVE_NETINET_IP_H
22135 #include <netinet/ip_icmp.h>
22136 #endif
22137 #ifdef HAVE_NET_IF_H
22138 #include <net/if.h>
22139 #endif
22140 #ifdef HAVE_NET_IF_VAR_H
22141 #include <net/if_var.h>
22142 #endif
22143 #ifdef HAVE_NETINET_IP_VAR_H
22144 #include <netinet/ip_var.h>
22145 #endif
22146 #ifdef HAVE_NETINET_IP_ICMP_H
22147 #include <netinet/ip_icmp.h>
22148 #endif
22149 #ifdef HAVE_NETINET_TCP_H
22150 #include <netinet/tcp.h>
22151 #endif
22152 #ifdef HAVE_NETINET_UDP_H
22153 #include <netinet/udp.h>
22154 #endif
22155 #ifdef HAVE_NETINET_TCP_TIMER_H
22156 #include <netinet/tcp_timer.h>
22157 #endif
22158 #ifdef HAVE_NETINET_IP6_H
22159 #include <netinet/ip6.h>
22160 #endif
22161 #ifdef HAVE_NETINET_ICMP6_H
22162 #include <netinet/icmp6.h>
22163 #endif
22164
22165 "
22166 if test "x$ac_cv_header_netinet_tcp_var_h" = xyes
22167 then :
22168 printf "%s\n" "#define HAVE_NETINET_TCP_VAR_H 1" >>confdefs.h
22169
22170 fi
22171 ac_fn_c_check_header_compile "$LINENO" "netinet/tcpip.h" "ac_cv_header_netinet_tcpip_h" "
22172 #ifdef HAVE_SYS_PARAM_H
22173 #include <sys/param.h>
22174 #endif
22175 #ifdef HAVE_SYS_TYPES_H
22176 #include <sys/types.h>
22177 #endif
22178 #ifdef HAVE_SYS_TIMEOUT_H
22179 #include <sys/timeout.h>
22180 #endif
22181 #ifdef HAVE_SYS_SOCKET_H
22182 #include <sys/socket.h>
22183 #endif
22184 #ifdef HAVE_SYS_SOCKETVAR_H
22185 #include <sys/socketvar.h>
22186 #endif
22187 #ifdef HAVE_ARPA_INET_H
22188 #include <arpa/inet.h>
22189 #endif
22190 #ifdef HAVE_NETINET_IN_SYSTM_H
22191 #include <netinet/in_systm.h>
22192 #endif
22193 #ifdef HAVE_NETINET_IN_H
22194 #include <netinet/in.h>
22195 #endif
22196 #ifdef HAVE_NETINET_IP_H
22197 #include <netinet/ip.h>
22198 #endif
22199 #ifdef HAVE_NETINET_IP_H
22200 #include <netinet/ip_icmp.h>
22201 #endif
22202 #ifdef HAVE_NET_IF_H
22203 #include <net/if.h>
22204 #endif
22205 #ifdef HAVE_NET_IF_VAR_H
22206 #include <net/if_var.h>
22207 #endif
22208 #ifdef HAVE_NETINET_IP_VAR_H
22209 #include <netinet/ip_var.h>
22210 #endif
22211 #ifdef HAVE_NETINET_IP_ICMP_H
22212 #include <netinet/ip_icmp.h>
22213 #endif
22214 #ifdef HAVE_NETINET_TCP_H
22215 #include <netinet/tcp.h>
22216 #endif
22217 #ifdef HAVE_NETINET_UDP_H
22218 #include <netinet/udp.h>
22219 #endif
22220 #ifdef HAVE_NETINET_TCP_TIMER_H
22221 #include <netinet/tcp_timer.h>
22222 #endif
22223 #ifdef HAVE_NETINET_IP6_H
22224 #include <netinet/ip6.h>
22225 #endif
22226 #ifdef HAVE_NETINET_ICMP6_H
22227 #include <netinet/icmp6.h>
22228 #endif
22229
22230 "
22231 if test "x$ac_cv_header_netinet_tcpip_h" = xyes
22232 then :
22233 printf "%s\n" "#define HAVE_NETINET_TCPIP_H 1" >>confdefs.h
22234
22235 fi
22236 ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
22237 #ifdef HAVE_SYS_PARAM_H
22238 #include <sys/param.h>
22239 #endif
22240 #ifdef HAVE_SYS_TYPES_H
22241 #include <sys/types.h>
22242 #endif
22243 #ifdef HAVE_SYS_TIMEOUT_H
22244 #include <sys/timeout.h>
22245 #endif
22246 #ifdef HAVE_SYS_SOCKET_H
22247 #include <sys/socket.h>
22248 #endif
22249 #ifdef HAVE_SYS_SOCKETVAR_H
22250 #include <sys/socketvar.h>
22251 #endif
22252 #ifdef HAVE_ARPA_INET_H
22253 #include <arpa/inet.h>
22254 #endif
22255 #ifdef HAVE_NETINET_IN_SYSTM_H
22256 #include <netinet/in_systm.h>
22257 #endif
22258 #ifdef HAVE_NETINET_IN_H
22259 #include <netinet/in.h>
22260 #endif
22261 #ifdef HAVE_NETINET_IP_H
22262 #include <netinet/ip.h>
22263 #endif
22264 #ifdef HAVE_NETINET_IP_H
22265 #include <netinet/ip_icmp.h>
22266 #endif
22267 #ifdef HAVE_NET_IF_H
22268 #include <net/if.h>
22269 #endif
22270 #ifdef HAVE_NET_IF_VAR_H
22271 #include <net/if_var.h>
22272 #endif
22273 #ifdef HAVE_NETINET_IP_VAR_H
22274 #include <netinet/ip_var.h>
22275 #endif
22276 #ifdef HAVE_NETINET_IP_ICMP_H
22277 #include <netinet/ip_icmp.h>
22278 #endif
22279 #ifdef HAVE_NETINET_TCP_H
22280 #include <netinet/tcp.h>
22281 #endif
22282 #ifdef HAVE_NETINET_UDP_H
22283 #include <netinet/udp.h>
22284 #endif
22285 #ifdef HAVE_NETINET_TCP_TIMER_H
22286 #include <netinet/tcp_timer.h>
22287 #endif
22288 #ifdef HAVE_NETINET_IP6_H
22289 #include <netinet/ip6.h>
22290 #endif
22291 #ifdef HAVE_NETINET_ICMP6_H
22292 #include <netinet/icmp6.h>
22293 #endif
22294
22295 "
22296 if test "x$ac_cv_header_netinet_udp_h" = xyes
22297 then :
22298 printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h
22299
22300 fi
22301 ac_fn_c_check_header_compile "$LINENO" "netinet/udp_var.h" "ac_cv_header_netinet_udp_var_h" "
22302 #ifdef HAVE_SYS_PARAM_H
22303 #include <sys/param.h>
22304 #endif
22305 #ifdef HAVE_SYS_TYPES_H
22306 #include <sys/types.h>
22307 #endif
22308 #ifdef HAVE_SYS_TIMEOUT_H
22309 #include <sys/timeout.h>
22310 #endif
22311 #ifdef HAVE_SYS_SOCKET_H
22312 #include <sys/socket.h>
22313 #endif
22314 #ifdef HAVE_SYS_SOCKETVAR_H
22315 #include <sys/socketvar.h>
22316 #endif
22317 #ifdef HAVE_ARPA_INET_H
22318 #include <arpa/inet.h>
22319 #endif
22320 #ifdef HAVE_NETINET_IN_SYSTM_H
22321 #include <netinet/in_systm.h>
22322 #endif
22323 #ifdef HAVE_NETINET_IN_H
22324 #include <netinet/in.h>
22325 #endif
22326 #ifdef HAVE_NETINET_IP_H
22327 #include <netinet/ip.h>
22328 #endif
22329 #ifdef HAVE_NETINET_IP_H
22330 #include <netinet/ip_icmp.h>
22331 #endif
22332 #ifdef HAVE_NET_IF_H
22333 #include <net/if.h>
22334 #endif
22335 #ifdef HAVE_NET_IF_VAR_H
22336 #include <net/if_var.h>
22337 #endif
22338 #ifdef HAVE_NETINET_IP_VAR_H
22339 #include <netinet/ip_var.h>
22340 #endif
22341 #ifdef HAVE_NETINET_IP_ICMP_H
22342 #include <netinet/ip_icmp.h>
22343 #endif
22344 #ifdef HAVE_NETINET_TCP_H
22345 #include <netinet/tcp.h>
22346 #endif
22347 #ifdef HAVE_NETINET_UDP_H
22348 #include <netinet/udp.h>
22349 #endif
22350 #ifdef HAVE_NETINET_TCP_TIMER_H
22351 #include <netinet/tcp_timer.h>
22352 #endif
22353 #ifdef HAVE_NETINET_IP6_H
22354 #include <netinet/ip6.h>
22355 #endif
22356 #ifdef HAVE_NETINET_ICMP6_H
22357 #include <netinet/icmp6.h>
22358 #endif
22359
22360 "
22361 if test "x$ac_cv_header_netinet_udp_var_h" = xyes
22362 then :
22363 printf "%s\n" "#define HAVE_NETINET_UDP_VAR_H 1" >>confdefs.h
22364
22365 fi
22366 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
22367 #ifdef HAVE_SYS_PARAM_H
22368 #include <sys/param.h>
22369 #endif
22370 #ifdef HAVE_SYS_TYPES_H
22371 #include <sys/types.h>
22372 #endif
22373 #ifdef HAVE_SYS_TIMEOUT_H
22374 #include <sys/timeout.h>
22375 #endif
22376 #ifdef HAVE_SYS_SOCKET_H
22377 #include <sys/socket.h>
22378 #endif
22379 #ifdef HAVE_SYS_SOCKETVAR_H
22380 #include <sys/socketvar.h>
22381 #endif
22382 #ifdef HAVE_ARPA_INET_H
22383 #include <arpa/inet.h>
22384 #endif
22385 #ifdef HAVE_NETINET_IN_SYSTM_H
22386 #include <netinet/in_systm.h>
22387 #endif
22388 #ifdef HAVE_NETINET_IN_H
22389 #include <netinet/in.h>
22390 #endif
22391 #ifdef HAVE_NETINET_IP_H
22392 #include <netinet/ip.h>
22393 #endif
22394 #ifdef HAVE_NETINET_IP_H
22395 #include <netinet/ip_icmp.h>
22396 #endif
22397 #ifdef HAVE_NET_IF_H
22398 #include <net/if.h>
22399 #endif
22400 #ifdef HAVE_NET_IF_VAR_H
22401 #include <net/if_var.h>
22402 #endif
22403 #ifdef HAVE_NETINET_IP_VAR_H
22404 #include <netinet/ip_var.h>
22405 #endif
22406 #ifdef HAVE_NETINET_IP_ICMP_H
22407 #include <netinet/ip_icmp.h>
22408 #endif
22409 #ifdef HAVE_NETINET_TCP_H
22410 #include <netinet/tcp.h>
22411 #endif
22412 #ifdef HAVE_NETINET_UDP_H
22413 #include <netinet/udp.h>
22414 #endif
22415 #ifdef HAVE_NETINET_TCP_TIMER_H
22416 #include <netinet/tcp_timer.h>
22417 #endif
22418 #ifdef HAVE_NETINET_IP6_H
22419 #include <netinet/ip6.h>
22420 #endif
22421 #ifdef HAVE_NETINET_ICMP6_H
22422 #include <netinet/icmp6.h>
22423 #endif
22424
22425 "
22426 if test "x$ac_cv_header_net_route_h" = xyes
22427 then :
22428 printf "%s\n" "#define HAVE_NET_ROUTE_H 1" >>confdefs.h
22429
22430 fi
22431 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "
22432 #ifdef HAVE_SYS_PARAM_H
22433 #include <sys/param.h>
22434 #endif
22435 #ifdef HAVE_SYS_TYPES_H
22436 #include <sys/types.h>
22437 #endif
22438 #ifdef HAVE_SYS_TIMEOUT_H
22439 #include <sys/timeout.h>
22440 #endif
22441 #ifdef HAVE_SYS_SOCKET_H
22442 #include <sys/socket.h>
22443 #endif
22444 #ifdef HAVE_SYS_SOCKETVAR_H
22445 #include <sys/socketvar.h>
22446 #endif
22447 #ifdef HAVE_ARPA_INET_H
22448 #include <arpa/inet.h>
22449 #endif
22450 #ifdef HAVE_NETINET_IN_SYSTM_H
22451 #include <netinet/in_systm.h>
22452 #endif
22453 #ifdef HAVE_NETINET_IN_H
22454 #include <netinet/in.h>
22455 #endif
22456 #ifdef HAVE_NETINET_IP_H
22457 #include <netinet/ip.h>
22458 #endif
22459 #ifdef HAVE_NETINET_IP_H
22460 #include <netinet/ip_icmp.h>
22461 #endif
22462 #ifdef HAVE_NET_IF_H
22463 #include <net/if.h>
22464 #endif
22465 #ifdef HAVE_NET_IF_VAR_H
22466 #include <net/if_var.h>
22467 #endif
22468 #ifdef HAVE_NETINET_IP_VAR_H
22469 #include <netinet/ip_var.h>
22470 #endif
22471 #ifdef HAVE_NETINET_IP_ICMP_H
22472 #include <netinet/ip_icmp.h>
22473 #endif
22474 #ifdef HAVE_NETINET_TCP_H
22475 #include <netinet/tcp.h>
22476 #endif
22477 #ifdef HAVE_NETINET_UDP_H
22478 #include <netinet/udp.h>
22479 #endif
22480 #ifdef HAVE_NETINET_TCP_TIMER_H
22481 #include <netinet/tcp_timer.h>
22482 #endif
22483 #ifdef HAVE_NETINET_IP6_H
22484 #include <netinet/ip6.h>
22485 #endif
22486 #ifdef HAVE_NETINET_ICMP6_H
22487 #include <netinet/icmp6.h>
22488 #endif
22489
22490 "
22491 if test "x$ac_cv_header_netinet_icmp6_h" = xyes
22492 then :
22493 printf "%s\n" "#define HAVE_NETINET_ICMP6_H 1" >>confdefs.h
22494
22495 fi
22496 ac_fn_c_check_header_compile "$LINENO" "netinet/in_pcb.h" "ac_cv_header_netinet_in_pcb_h" "
22497 #ifdef HAVE_SYS_PARAM_H
22498 #include <sys/param.h>
22499 #endif
22500 #ifdef HAVE_SYS_TYPES_H
22501 #include <sys/types.h>
22502 #endif
22503 #ifdef HAVE_SYS_TIMEOUT_H
22504 #include <sys/timeout.h>
22505 #endif
22506 #ifdef HAVE_SYS_SOCKET_H
22507 #include <sys/socket.h>
22508 #endif
22509 #ifdef HAVE_SYS_SOCKETVAR_H
22510 #include <sys/socketvar.h>
22511 #endif
22512 #ifdef HAVE_ARPA_INET_H
22513 #include <arpa/inet.h>
22514 #endif
22515 #ifdef HAVE_NETINET_IN_SYSTM_H
22516 #include <netinet/in_systm.h>
22517 #endif
22518 #ifdef HAVE_NETINET_IN_H
22519 #include <netinet/in.h>
22520 #endif
22521 #ifdef HAVE_NETINET_IP_H
22522 #include <netinet/ip.h>
22523 #endif
22524 #ifdef HAVE_NETINET_IP_H
22525 #include <netinet/ip_icmp.h>
22526 #endif
22527 #ifdef HAVE_NET_IF_H
22528 #include <net/if.h>
22529 #endif
22530 #ifdef HAVE_NET_IF_VAR_H
22531 #include <net/if_var.h>
22532 #endif
22533 #ifdef HAVE_NETINET_IP_VAR_H
22534 #include <netinet/ip_var.h>
22535 #endif
22536 #ifdef HAVE_NETINET_IP_ICMP_H
22537 #include <netinet/ip_icmp.h>
22538 #endif
22539 #ifdef HAVE_NETINET_TCP_H
22540 #include <netinet/tcp.h>
22541 #endif
22542 #ifdef HAVE_NETINET_UDP_H
22543 #include <netinet/udp.h>
22544 #endif
22545 #ifdef HAVE_NETINET_TCP_TIMER_H
22546 #include <netinet/tcp_timer.h>
22547 #endif
22548 #ifdef HAVE_NETINET_IP6_H
22549 #include <netinet/ip6.h>
22550 #endif
22551 #ifdef HAVE_NETINET_ICMP6_H
22552 #include <netinet/icmp6.h>
22553 #endif
22554
22555 "
22556 if test "x$ac_cv_header_netinet_in_pcb_h" = xyes
22557 then :
22558 printf "%s\n" "#define HAVE_NETINET_IN_PCB_H 1" >>confdefs.h
22559
22560 fi
22561 ac_fn_c_check_header_compile "$LINENO" "netinet/ip6.h" "ac_cv_header_netinet_ip6_h" "
22562 #ifdef HAVE_SYS_PARAM_H
22563 #include <sys/param.h>
22564 #endif
22565 #ifdef HAVE_SYS_TYPES_H
22566 #include <sys/types.h>
22567 #endif
22568 #ifdef HAVE_SYS_TIMEOUT_H
22569 #include <sys/timeout.h>
22570 #endif
22571 #ifdef HAVE_SYS_SOCKET_H
22572 #include <sys/socket.h>
22573 #endif
22574 #ifdef HAVE_SYS_SOCKETVAR_H
22575 #include <sys/socketvar.h>
22576 #endif
22577 #ifdef HAVE_ARPA_INET_H
22578 #include <arpa/inet.h>
22579 #endif
22580 #ifdef HAVE_NETINET_IN_SYSTM_H
22581 #include <netinet/in_systm.h>
22582 #endif
22583 #ifdef HAVE_NETINET_IN_H
22584 #include <netinet/in.h>
22585 #endif
22586 #ifdef HAVE_NETINET_IP_H
22587 #include <netinet/ip.h>
22588 #endif
22589 #ifdef HAVE_NETINET_IP_H
22590 #include <netinet/ip_icmp.h>
22591 #endif
22592 #ifdef HAVE_NET_IF_H
22593 #include <net/if.h>
22594 #endif
22595 #ifdef HAVE_NET_IF_VAR_H
22596 #include <net/if_var.h>
22597 #endif
22598 #ifdef HAVE_NETINET_IP_VAR_H
22599 #include <netinet/ip_var.h>
22600 #endif
22601 #ifdef HAVE_NETINET_IP_ICMP_H
22602 #include <netinet/ip_icmp.h>
22603 #endif
22604 #ifdef HAVE_NETINET_TCP_H
22605 #include <netinet/tcp.h>
22606 #endif
22607 #ifdef HAVE_NETINET_UDP_H
22608 #include <netinet/udp.h>
22609 #endif
22610 #ifdef HAVE_NETINET_TCP_TIMER_H
22611 #include <netinet/tcp_timer.h>
22612 #endif
22613 #ifdef HAVE_NETINET_IP6_H
22614 #include <netinet/ip6.h>
22615 #endif
22616 #ifdef HAVE_NETINET_ICMP6_H
22617 #include <netinet/icmp6.h>
22618 #endif
22619
22620 "
22621 if test "x$ac_cv_header_netinet_ip6_h" = xyes
22622 then :
22623 printf "%s\n" "#define HAVE_NETINET_IP6_H 1" >>confdefs.h
22624
22625 fi
22626 ac_fn_c_check_header_compile "$LINENO" "netinet6/in6_var.h" "ac_cv_header_netinet6_in6_var_h" "
22627 #ifdef HAVE_SYS_PARAM_H
22628 #include <sys/param.h>
22629 #endif
22630 #ifdef HAVE_SYS_TYPES_H
22631 #include <sys/types.h>
22632 #endif
22633 #ifdef HAVE_SYS_TIMEOUT_H
22634 #include <sys/timeout.h>
22635 #endif
22636 #ifdef HAVE_SYS_SOCKET_H
22637 #include <sys/socket.h>
22638 #endif
22639 #ifdef HAVE_SYS_SOCKETVAR_H
22640 #include <sys/socketvar.h>
22641 #endif
22642 #ifdef HAVE_ARPA_INET_H
22643 #include <arpa/inet.h>
22644 #endif
22645 #ifdef HAVE_NETINET_IN_SYSTM_H
22646 #include <netinet/in_systm.h>
22647 #endif
22648 #ifdef HAVE_NETINET_IN_H
22649 #include <netinet/in.h>
22650 #endif
22651 #ifdef HAVE_NETINET_IP_H
22652 #include <netinet/ip.h>
22653 #endif
22654 #ifdef HAVE_NETINET_IP_H
22655 #include <netinet/ip_icmp.h>
22656 #endif
22657 #ifdef HAVE_NET_IF_H
22658 #include <net/if.h>
22659 #endif
22660 #ifdef HAVE_NET_IF_VAR_H
22661 #include <net/if_var.h>
22662 #endif
22663 #ifdef HAVE_NETINET_IP_VAR_H
22664 #include <netinet/ip_var.h>
22665 #endif
22666 #ifdef HAVE_NETINET_IP_ICMP_H
22667 #include <netinet/ip_icmp.h>
22668 #endif
22669 #ifdef HAVE_NETINET_TCP_H
22670 #include <netinet/tcp.h>
22671 #endif
22672 #ifdef HAVE_NETINET_UDP_H
22673 #include <netinet/udp.h>
22674 #endif
22675 #ifdef HAVE_NETINET_TCP_TIMER_H
22676 #include <netinet/tcp_timer.h>
22677 #endif
22678 #ifdef HAVE_NETINET_IP6_H
22679 #include <netinet/ip6.h>
22680 #endif
22681 #ifdef HAVE_NETINET_ICMP6_H
22682 #include <netinet/icmp6.h>
22683 #endif
22684
22685 "
22686 if test "x$ac_cv_header_netinet6_in6_var_h" = xyes
22687 then :
22688 printf "%s\n" "#define HAVE_NETINET6_IN6_VAR_H 1" >>confdefs.h
22689
22690 fi
22691 ac_fn_c_check_header_compile "$LINENO" "netinet6/in6_pcb.h" "ac_cv_header_netinet6_in6_pcb_h" "
22692 #ifdef HAVE_SYS_PARAM_H
22693 #include <sys/param.h>
22694 #endif
22695 #ifdef HAVE_SYS_TYPES_H
22696 #include <sys/types.h>
22697 #endif
22698 #ifdef HAVE_SYS_TIMEOUT_H
22699 #include <sys/timeout.h>
22700 #endif
22701 #ifdef HAVE_SYS_SOCKET_H
22702 #include <sys/socket.h>
22703 #endif
22704 #ifdef HAVE_SYS_SOCKETVAR_H
22705 #include <sys/socketvar.h>
22706 #endif
22707 #ifdef HAVE_ARPA_INET_H
22708 #include <arpa/inet.h>
22709 #endif
22710 #ifdef HAVE_NETINET_IN_SYSTM_H
22711 #include <netinet/in_systm.h>
22712 #endif
22713 #ifdef HAVE_NETINET_IN_H
22714 #include <netinet/in.h>
22715 #endif
22716 #ifdef HAVE_NETINET_IP_H
22717 #include <netinet/ip.h>
22718 #endif
22719 #ifdef HAVE_NETINET_IP_H
22720 #include <netinet/ip_icmp.h>
22721 #endif
22722 #ifdef HAVE_NET_IF_H
22723 #include <net/if.h>
22724 #endif
22725 #ifdef HAVE_NET_IF_VAR_H
22726 #include <net/if_var.h>
22727 #endif
22728 #ifdef HAVE_NETINET_IP_VAR_H
22729 #include <netinet/ip_var.h>
22730 #endif
22731 #ifdef HAVE_NETINET_IP_ICMP_H
22732 #include <netinet/ip_icmp.h>
22733 #endif
22734 #ifdef HAVE_NETINET_TCP_H
22735 #include <netinet/tcp.h>
22736 #endif
22737 #ifdef HAVE_NETINET_UDP_H
22738 #include <netinet/udp.h>
22739 #endif
22740 #ifdef HAVE_NETINET_TCP_TIMER_H
22741 #include <netinet/tcp_timer.h>
22742 #endif
22743 #ifdef HAVE_NETINET_IP6_H
22744 #include <netinet/ip6.h>
22745 #endif
22746 #ifdef HAVE_NETINET_ICMP6_H
22747 #include <netinet/icmp6.h>
22748 #endif
22749
22750 "
22751 if test "x$ac_cv_header_netinet6_in6_pcb_h" = xyes
22752 then :
22753 printf "%s\n" "#define HAVE_NETINET6_IN6_PCB_H 1" >>confdefs.h
22754
22755 fi
22756 ac_fn_c_check_header_compile "$LINENO" "netinet6/ip6_var.h" "ac_cv_header_netinet6_ip6_var_h" "
22757 #ifdef HAVE_SYS_PARAM_H
22758 #include <sys/param.h>
22759 #endif
22760 #ifdef HAVE_SYS_TYPES_H
22761 #include <sys/types.h>
22762 #endif
22763 #ifdef HAVE_SYS_TIMEOUT_H
22764 #include <sys/timeout.h>
22765 #endif
22766 #ifdef HAVE_SYS_SOCKET_H
22767 #include <sys/socket.h>
22768 #endif
22769 #ifdef HAVE_SYS_SOCKETVAR_H
22770 #include <sys/socketvar.h>
22771 #endif
22772 #ifdef HAVE_ARPA_INET_H
22773 #include <arpa/inet.h>
22774 #endif
22775 #ifdef HAVE_NETINET_IN_SYSTM_H
22776 #include <netinet/in_systm.h>
22777 #endif
22778 #ifdef HAVE_NETINET_IN_H
22779 #include <netinet/in.h>
22780 #endif
22781 #ifdef HAVE_NETINET_IP_H
22782 #include <netinet/ip.h>
22783 #endif
22784 #ifdef HAVE_NETINET_IP_H
22785 #include <netinet/ip_icmp.h>
22786 #endif
22787 #ifdef HAVE_NET_IF_H
22788 #include <net/if.h>
22789 #endif
22790 #ifdef HAVE_NET_IF_VAR_H
22791 #include <net/if_var.h>
22792 #endif
22793 #ifdef HAVE_NETINET_IP_VAR_H
22794 #include <netinet/ip_var.h>
22795 #endif
22796 #ifdef HAVE_NETINET_IP_ICMP_H
22797 #include <netinet/ip_icmp.h>
22798 #endif
22799 #ifdef HAVE_NETINET_TCP_H
22800 #include <netinet/tcp.h>
22801 #endif
22802 #ifdef HAVE_NETINET_UDP_H
22803 #include <netinet/udp.h>
22804 #endif
22805 #ifdef HAVE_NETINET_TCP_TIMER_H
22806 #include <netinet/tcp_timer.h>
22807 #endif
22808 #ifdef HAVE_NETINET_IP6_H
22809 #include <netinet/ip6.h>
22810 #endif
22811 #ifdef HAVE_NETINET_ICMP6_H
22812 #include <netinet/icmp6.h>
22813 #endif
22814
22815 "
22816 if test "x$ac_cv_header_netinet6_ip6_var_h" = xyes
22817 then :
22818 printf "%s\n" "#define HAVE_NETINET6_IP6_VAR_H 1" >>confdefs.h
22819
22820 fi
22821 ac_fn_c_check_header_compile "$LINENO" "netinet6/nd6.h" "ac_cv_header_netinet6_nd6_h" "
22822 #ifdef HAVE_SYS_PARAM_H
22823 #include <sys/param.h>
22824 #endif
22825 #ifdef HAVE_SYS_TYPES_H
22826 #include <sys/types.h>
22827 #endif
22828 #ifdef HAVE_SYS_TIMEOUT_H
22829 #include <sys/timeout.h>
22830 #endif
22831 #ifdef HAVE_SYS_SOCKET_H
22832 #include <sys/socket.h>
22833 #endif
22834 #ifdef HAVE_SYS_SOCKETVAR_H
22835 #include <sys/socketvar.h>
22836 #endif
22837 #ifdef HAVE_ARPA_INET_H
22838 #include <arpa/inet.h>
22839 #endif
22840 #ifdef HAVE_NETINET_IN_SYSTM_H
22841 #include <netinet/in_systm.h>
22842 #endif
22843 #ifdef HAVE_NETINET_IN_H
22844 #include <netinet/in.h>
22845 #endif
22846 #ifdef HAVE_NETINET_IP_H
22847 #include <netinet/ip.h>
22848 #endif
22849 #ifdef HAVE_NETINET_IP_H
22850 #include <netinet/ip_icmp.h>
22851 #endif
22852 #ifdef HAVE_NET_IF_H
22853 #include <net/if.h>
22854 #endif
22855 #ifdef HAVE_NET_IF_VAR_H
22856 #include <net/if_var.h>
22857 #endif
22858 #ifdef HAVE_NETINET_IP_VAR_H
22859 #include <netinet/ip_var.h>
22860 #endif
22861 #ifdef HAVE_NETINET_IP_ICMP_H
22862 #include <netinet/ip_icmp.h>
22863 #endif
22864 #ifdef HAVE_NETINET_TCP_H
22865 #include <netinet/tcp.h>
22866 #endif
22867 #ifdef HAVE_NETINET_UDP_H
22868 #include <netinet/udp.h>
22869 #endif
22870 #ifdef HAVE_NETINET_TCP_TIMER_H
22871 #include <netinet/tcp_timer.h>
22872 #endif
22873 #ifdef HAVE_NETINET_IP6_H
22874 #include <netinet/ip6.h>
22875 #endif
22876 #ifdef HAVE_NETINET_ICMP6_H
22877 #include <netinet/icmp6.h>
22878 #endif
22879
22880 "
22881 if test "x$ac_cv_header_netinet6_nd6_h" = xyes
22882 then :
22883 printf "%s\n" "#define HAVE_NETINET6_ND6_H 1" >>confdefs.h
22884
22885 fi
22886 ac_fn_c_check_header_compile "$LINENO" "netinet6/tcp6.h" "ac_cv_header_netinet6_tcp6_h" "
22887 #ifdef HAVE_SYS_PARAM_H
22888 #include <sys/param.h>
22889 #endif
22890 #ifdef HAVE_SYS_TYPES_H
22891 #include <sys/types.h>
22892 #endif
22893 #ifdef HAVE_SYS_TIMEOUT_H
22894 #include <sys/timeout.h>
22895 #endif
22896 #ifdef HAVE_SYS_SOCKET_H
22897 #include <sys/socket.h>
22898 #endif
22899 #ifdef HAVE_SYS_SOCKETVAR_H
22900 #include <sys/socketvar.h>
22901 #endif
22902 #ifdef HAVE_ARPA_INET_H
22903 #include <arpa/inet.h>
22904 #endif
22905 #ifdef HAVE_NETINET_IN_SYSTM_H
22906 #include <netinet/in_systm.h>
22907 #endif
22908 #ifdef HAVE_NETINET_IN_H
22909 #include <netinet/in.h>
22910 #endif
22911 #ifdef HAVE_NETINET_IP_H
22912 #include <netinet/ip.h>
22913 #endif
22914 #ifdef HAVE_NETINET_IP_H
22915 #include <netinet/ip_icmp.h>
22916 #endif
22917 #ifdef HAVE_NET_IF_H
22918 #include <net/if.h>
22919 #endif
22920 #ifdef HAVE_NET_IF_VAR_H
22921 #include <net/if_var.h>
22922 #endif
22923 #ifdef HAVE_NETINET_IP_VAR_H
22924 #include <netinet/ip_var.h>
22925 #endif
22926 #ifdef HAVE_NETINET_IP_ICMP_H
22927 #include <netinet/ip_icmp.h>
22928 #endif
22929 #ifdef HAVE_NETINET_TCP_H
22930 #include <netinet/tcp.h>
22931 #endif
22932 #ifdef HAVE_NETINET_UDP_H
22933 #include <netinet/udp.h>
22934 #endif
22935 #ifdef HAVE_NETINET_TCP_TIMER_H
22936 #include <netinet/tcp_timer.h>
22937 #endif
22938 #ifdef HAVE_NETINET_IP6_H
22939 #include <netinet/ip6.h>
22940 #endif
22941 #ifdef HAVE_NETINET_ICMP6_H
22942 #include <netinet/icmp6.h>
22943 #endif
22944
22945 "
22946 if test "x$ac_cv_header_netinet6_tcp6_h" = xyes
22947 then :
22948 printf "%s\n" "#define HAVE_NETINET6_TCP6_H 1" >>confdefs.h
22949
22950 fi
22951 ac_fn_c_check_header_compile "$LINENO" "netinet6/tcp6_fsm.h" "ac_cv_header_netinet6_tcp6_fsm_h" "
22952 #ifdef HAVE_SYS_PARAM_H
22953 #include <sys/param.h>
22954 #endif
22955 #ifdef HAVE_SYS_TYPES_H
22956 #include <sys/types.h>
22957 #endif
22958 #ifdef HAVE_SYS_TIMEOUT_H
22959 #include <sys/timeout.h>
22960 #endif
22961 #ifdef HAVE_SYS_SOCKET_H
22962 #include <sys/socket.h>
22963 #endif
22964 #ifdef HAVE_SYS_SOCKETVAR_H
22965 #include <sys/socketvar.h>
22966 #endif
22967 #ifdef HAVE_ARPA_INET_H
22968 #include <arpa/inet.h>
22969 #endif
22970 #ifdef HAVE_NETINET_IN_SYSTM_H
22971 #include <netinet/in_systm.h>
22972 #endif
22973 #ifdef HAVE_NETINET_IN_H
22974 #include <netinet/in.h>
22975 #endif
22976 #ifdef HAVE_NETINET_IP_H
22977 #include <netinet/ip.h>
22978 #endif
22979 #ifdef HAVE_NETINET_IP_H
22980 #include <netinet/ip_icmp.h>
22981 #endif
22982 #ifdef HAVE_NET_IF_H
22983 #include <net/if.h>
22984 #endif
22985 #ifdef HAVE_NET_IF_VAR_H
22986 #include <net/if_var.h>
22987 #endif
22988 #ifdef HAVE_NETINET_IP_VAR_H
22989 #include <netinet/ip_var.h>
22990 #endif
22991 #ifdef HAVE_NETINET_IP_ICMP_H
22992 #include <netinet/ip_icmp.h>
22993 #endif
22994 #ifdef HAVE_NETINET_TCP_H
22995 #include <netinet/tcp.h>
22996 #endif
22997 #ifdef HAVE_NETINET_UDP_H
22998 #include <netinet/udp.h>
22999 #endif
23000 #ifdef HAVE_NETINET_TCP_TIMER_H
23001 #include <netinet/tcp_timer.h>
23002 #endif
23003 #ifdef HAVE_NETINET_IP6_H
23004 #include <netinet/ip6.h>
23005 #endif
23006 #ifdef HAVE_NETINET_ICMP6_H
23007 #include <netinet/icmp6.h>
23008 #endif
23009
23010 "
23011 if test "x$ac_cv_header_netinet6_tcp6_fsm_h" = xyes
23012 then :
23013 printf "%s\n" "#define HAVE_NETINET6_TCP6_FSM_H 1" >>confdefs.h
23014
23015 fi
23016 ac_fn_c_check_header_compile "$LINENO" "netinet6/tcp6_timer.h" "ac_cv_header_netinet6_tcp6_timer_h" "
23017 #ifdef HAVE_SYS_PARAM_H
23018 #include <sys/param.h>
23019 #endif
23020 #ifdef HAVE_SYS_TYPES_H
23021 #include <sys/types.h>
23022 #endif
23023 #ifdef HAVE_SYS_TIMEOUT_H
23024 #include <sys/timeout.h>
23025 #endif
23026 #ifdef HAVE_SYS_SOCKET_H
23027 #include <sys/socket.h>
23028 #endif
23029 #ifdef HAVE_SYS_SOCKETVAR_H
23030 #include <sys/socketvar.h>
23031 #endif
23032 #ifdef HAVE_ARPA_INET_H
23033 #include <arpa/inet.h>
23034 #endif
23035 #ifdef HAVE_NETINET_IN_SYSTM_H
23036 #include <netinet/in_systm.h>
23037 #endif
23038 #ifdef HAVE_NETINET_IN_H
23039 #include <netinet/in.h>
23040 #endif
23041 #ifdef HAVE_NETINET_IP_H
23042 #include <netinet/ip.h>
23043 #endif
23044 #ifdef HAVE_NETINET_IP_H
23045 #include <netinet/ip_icmp.h>
23046 #endif
23047 #ifdef HAVE_NET_IF_H
23048 #include <net/if.h>
23049 #endif
23050 #ifdef HAVE_NET_IF_VAR_H
23051 #include <net/if_var.h>
23052 #endif
23053 #ifdef HAVE_NETINET_IP_VAR_H
23054 #include <netinet/ip_var.h>
23055 #endif
23056 #ifdef HAVE_NETINET_IP_ICMP_H
23057 #include <netinet/ip_icmp.h>
23058 #endif
23059 #ifdef HAVE_NETINET_TCP_H
23060 #include <netinet/tcp.h>
23061 #endif
23062 #ifdef HAVE_NETINET_UDP_H
23063 #include <netinet/udp.h>
23064 #endif
23065 #ifdef HAVE_NETINET_TCP_TIMER_H
23066 #include <netinet/tcp_timer.h>
23067 #endif
23068 #ifdef HAVE_NETINET_IP6_H
23069 #include <netinet/ip6.h>
23070 #endif
23071 #ifdef HAVE_NETINET_ICMP6_H
23072 #include <netinet/icmp6.h>
23073 #endif
23074
23075 "
23076 if test "x$ac_cv_header_netinet6_tcp6_timer_h" = xyes
23077 then :
23078 printf "%s\n" "#define HAVE_NETINET6_TCP6_TIMER_H 1" >>confdefs.h
23079
23080 fi
23081 ac_fn_c_check_header_compile "$LINENO" "netinet6/tcp6_var.h" "ac_cv_header_netinet6_tcp6_var_h" "
23082 #ifdef HAVE_SYS_PARAM_H
23083 #include <sys/param.h>
23084 #endif
23085 #ifdef HAVE_SYS_TYPES_H
23086 #include <sys/types.h>
23087 #endif
23088 #ifdef HAVE_SYS_TIMEOUT_H
23089 #include <sys/timeout.h>
23090 #endif
23091 #ifdef HAVE_SYS_SOCKET_H
23092 #include <sys/socket.h>
23093 #endif
23094 #ifdef HAVE_SYS_SOCKETVAR_H
23095 #include <sys/socketvar.h>
23096 #endif
23097 #ifdef HAVE_ARPA_INET_H
23098 #include <arpa/inet.h>
23099 #endif
23100 #ifdef HAVE_NETINET_IN_SYSTM_H
23101 #include <netinet/in_systm.h>
23102 #endif
23103 #ifdef HAVE_NETINET_IN_H
23104 #include <netinet/in.h>
23105 #endif
23106 #ifdef HAVE_NETINET_IP_H
23107 #include <netinet/ip.h>
23108 #endif
23109 #ifdef HAVE_NETINET_IP_H
23110 #include <netinet/ip_icmp.h>
23111 #endif
23112 #ifdef HAVE_NET_IF_H
23113 #include <net/if.h>
23114 #endif
23115 #ifdef HAVE_NET_IF_VAR_H
23116 #include <net/if_var.h>
23117 #endif
23118 #ifdef HAVE_NETINET_IP_VAR_H
23119 #include <netinet/ip_var.h>
23120 #endif
23121 #ifdef HAVE_NETINET_IP_ICMP_H
23122 #include <netinet/ip_icmp.h>
23123 #endif
23124 #ifdef HAVE_NETINET_TCP_H
23125 #include <netinet/tcp.h>
23126 #endif
23127 #ifdef HAVE_NETINET_UDP_H
23128 #include <netinet/udp.h>
23129 #endif
23130 #ifdef HAVE_NETINET_TCP_TIMER_H
23131 #include <netinet/tcp_timer.h>
23132 #endif
23133 #ifdef HAVE_NETINET_IP6_H
23134 #include <netinet/ip6.h>
23135 #endif
23136 #ifdef HAVE_NETINET_ICMP6_H
23137 #include <netinet/icmp6.h>
23138 #endif
23139
23140 "
23141 if test "x$ac_cv_header_netinet6_tcp6_var_h" = xyes
23142 then :
23143 printf "%s\n" "#define HAVE_NETINET6_TCP6_VAR_H 1" >>confdefs.h
23144
23145 fi
23146
23147
23148 esac
23149
23150 ##
23151 # Pre-requisite on specific types
23152 ##
23153
23154 # Special hack to get around various problems on older Linux kernels
23155 # (major ugh!)
23156 # Agent:
23157 #
23158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23159 /* end confdefs.h. */
23160 #include <linux/ethtool.h>
23161 int
23162 main (void)
23163 {
23164
23165 ;
23166 return 0;
23167 }
23168 _ACEOF
23169 if ac_fn_c_try_compile "$LINENO"
23170 then :
23171 ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "$ac_includes_default"
23172 if test "x$ac_cv_header_linux_ethtool_h" = xyes
23173 then :
23174 printf "%s\n" "#define HAVE_LINUX_ETHTOOL_H 1" >>confdefs.h
23175
23176 fi
23177
23178 else case e in #(
23179 e) ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
23180 #include <linux/types.h>
23181 typedef __u64 u64; /* hack, so we may include kernel's ethtool.h */
23182 typedef __u32 u32; /* ditto */
23183 typedef __u16 u16; /* ditto */
23184 typedef __u8 u8; /* ditto */
23185
23186 "
23187 if test "x$ac_cv_header_linux_ethtool_h" = xyes
23188 then :
23189 printf "%s\n" "#define HAVE_LINUX_ETHTOOL_H 1" >>confdefs.h
23190
23191 fi
23192
23193
23194 printf "%s\n" "#define HAVE_LINUX_ETHTOOL_NEEDS_U64 1" >>confdefs.h
23195 ;;
23196 esac
23197 fi
23198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23199
23200 ##
23201 # Headers requiring particular libraries
23202 ##
23203
23204 # for HostRes (Solaris 2.x)
23205 # Agent:
23206 #
23207 for ac_header in pkginfo.h
23208 do :
23209 ac_fn_c_check_header_compile "$LINENO" "pkginfo.h" "ac_cv_header_pkginfo_h" "$ac_includes_default"
23210 if test "x$ac_cv_header_pkginfo_h" = xyes
23211 then :
23212 printf "%s\n" "#define HAVE_PKGINFO_H 1" >>confdefs.h
23213
23214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pkginfo" >&5
23215 printf %s "checking for library containing pkginfo... " >&6; }
23216 if test ${netsnmp_cv_func_pkginfo_LMIBLIBS+y}
23217 then :
23218 printf %s "(cached) " >&6
23219 else case e in #(
23220 e) netsnmp_func_search_save_LIBS="$LIBS"
23221 netsnmp_target_val="$LMIBLIBS"
23222 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
23223 netsnmp_result=no
23224 LIBS="${netsnmp_temp_LIBS}"
23225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23226 /* end confdefs.h. */
23227
23228 /* Override any GCC internal prototype to avoid an error.
23229 Use char because int might match the return type of a GCC
23230 builtin and then its argument prototype would still apply.
23231 The 'extern "C"' is for builds by C++ compilers;
23232 although this is not generally supported in C code supporting it here
23233 has little cost and some practical benefit (sr 110532). */
23234 #ifdef __cplusplus
23235 extern "C"
23236 #endif
23237 char pkginfo (void);
23238 int
23239 main (void)
23240 {
23241 return pkginfo ();
23242 ;
23243 return 0;
23244 }
23245 _ACEOF
23246 if ac_fn_c_try_link "$LINENO"
23247 then :
23248 netsnmp_result="none required"
23249 else case e in #(
23250 e) for netsnmp_cur_lib in adm ; do
23251 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
23252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253 /* end confdefs.h. */
23254
23255 /* Override any GCC internal prototype to avoid an error.
23256 Use char because int might match the return type of a GCC
23257 builtin and then its argument prototype would still apply.
23258 The 'extern "C"' is for builds by C++ compilers;
23259 although this is not generally supported in C code supporting it here
23260 has little cost and some practical benefit (sr 110532). */
23261 #ifdef __cplusplus
23262 extern "C"
23263 #endif
23264 char pkginfo (void);
23265 int
23266 main (void)
23267 {
23268 return pkginfo ();
23269 ;
23270 return 0;
23271 }
23272 _ACEOF
23273 if ac_fn_c_try_link "$LINENO"
23274 then :
23275 netsnmp_result=-l${netsnmp_cur_lib}
23276 break
23277 fi
23278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23279 conftest$ac_exeext conftest.$ac_ext
23280 done ;;
23281 esac
23282 fi
23283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23284 conftest$ac_exeext conftest.$ac_ext
23285 LIBS="${netsnmp_func_search_save_LIBS}"
23286 netsnmp_cv_func_pkginfo_LMIBLIBS="${netsnmp_result}" ;;
23287 esac
23288 fi
23289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_pkginfo_LMIBLIBS" >&5
23290 printf "%s\n" "$netsnmp_cv_func_pkginfo_LMIBLIBS" >&6; }
23291 if test "x${netsnmp_cv_func_pkginfo_LMIBLIBS}" != "xno" ; then
23292 if test "x${netsnmp_cv_func_pkginfo_LMIBLIBS}" != "xnone required" ; then
23293 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
23294 fi
23295
23296 printf "%s\n" "#define HAVE_PKGINFO 1" >>confdefs.h
23297
23298
23299 fi
23300
23301 fi
23302
23303 done
23304
23305 for ac_header in pkg.h
23306 do :
23307 ac_fn_c_check_header_compile "$LINENO" "pkg.h" "ac_cv_header_pkg_h" "$ac_includes_default"
23308 if test "x$ac_cv_header_pkg_h" = xyes
23309 then :
23310 printf "%s\n" "#define HAVE_PKG_H 1" >>confdefs.h
23311
23312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pkg_init" >&5
23313 printf %s "checking for library containing pkg_init... " >&6; }
23314 if test ${netsnmp_cv_func_pkg_init_LIBS+y}
23315 then :
23316 printf %s "(cached) " >&6
23317 else case e in #(
23318 e) netsnmp_func_search_save_LIBS="$LIBS"
23319 netsnmp_target_val="$LIBS"
23320 netsnmp_temp_LIBS=" ${LIBS}"
23321 netsnmp_result=no
23322 LIBS="${netsnmp_temp_LIBS}"
23323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23324 /* end confdefs.h. */
23325
23326 /* Override any GCC internal prototype to avoid an error.
23327 Use char because int might match the return type of a GCC
23328 builtin and then its argument prototype would still apply.
23329 The 'extern "C"' is for builds by C++ compilers;
23330 although this is not generally supported in C code supporting it here
23331 has little cost and some practical benefit (sr 110532). */
23332 #ifdef __cplusplus
23333 extern "C"
23334 #endif
23335 char pkg_init (void);
23336 int
23337 main (void)
23338 {
23339 return pkg_init ();
23340 ;
23341 return 0;
23342 }
23343 _ACEOF
23344 if ac_fn_c_try_link "$LINENO"
23345 then :
23346 netsnmp_result="none required"
23347 else case e in #(
23348 e) for netsnmp_cur_lib in pkg ; do
23349 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
23350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23351 /* end confdefs.h. */
23352
23353 /* Override any GCC internal prototype to avoid an error.
23354 Use char because int might match the return type of a GCC
23355 builtin and then its argument prototype would still apply.
23356 The 'extern "C"' is for builds by C++ compilers;
23357 although this is not generally supported in C code supporting it here
23358 has little cost and some practical benefit (sr 110532). */
23359 #ifdef __cplusplus
23360 extern "C"
23361 #endif
23362 char pkg_init (void);
23363 int
23364 main (void)
23365 {
23366 return pkg_init ();
23367 ;
23368 return 0;
23369 }
23370 _ACEOF
23371 if ac_fn_c_try_link "$LINENO"
23372 then :
23373 netsnmp_result=-l${netsnmp_cur_lib}
23374 break
23375 fi
23376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23377 conftest$ac_exeext conftest.$ac_ext
23378 done ;;
23379 esac
23380 fi
23381 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23382 conftest$ac_exeext conftest.$ac_ext
23383 LIBS="${netsnmp_func_search_save_LIBS}"
23384 netsnmp_cv_func_pkg_init_LIBS="${netsnmp_result}" ;;
23385 esac
23386 fi
23387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_pkg_init_LIBS" >&5
23388 printf "%s\n" "$netsnmp_cv_func_pkg_init_LIBS" >&6; }
23389 if test "x${netsnmp_cv_func_pkg_init_LIBS}" != "xno" ; then
23390 if test "x${netsnmp_cv_func_pkg_init_LIBS}" != "xnone required" ; then
23391 LIBS="${netsnmp_result} ${netsnmp_target_val}"
23392 fi
23393
23394 printf "%s\n" "#define HAVE_LIBPKG 1" >>confdefs.h
23395
23396
23397 fi
23398
23399 fi
23400
23401 done
23402
23403 if test $ac_cv_header_pkg_h = no
23404 then
23405 unset ac_cv_header_pkg_h
23406 netsnmp_save_CPPFLAGS="$CPPFLAGS"
23407 netsnmp_save_LDFLAGS="$LDFLAGS"
23408 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
23409 LDFLAGS="$LDFLAGS -L/usr/local/lib"
23410 for ac_header in pkg.h
23411 do :
23412 ac_fn_c_check_header_compile "$LINENO" "pkg.h" "ac_cv_header_pkg_h" "$ac_includes_default"
23413 if test "x$ac_cv_header_pkg_h" = xyes
23414 then :
23415 printf "%s\n" "#define HAVE_PKG_H 1" >>confdefs.h
23416
23417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pkg_init" >&5
23418 printf %s "checking for library containing pkg_init... " >&6; }
23419 if test ${netsnmp_cv_func_pkg_init_LIBS+y}
23420 then :
23421 printf %s "(cached) " >&6
23422 else case e in #(
23423 e) netsnmp_func_search_save_LIBS="$LIBS"
23424 netsnmp_target_val="$LIBS"
23425 netsnmp_temp_LIBS=" ${LIBS}"
23426 netsnmp_result=no
23427 LIBS="${netsnmp_temp_LIBS}"
23428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23429 /* end confdefs.h. */
23430
23431 /* Override any GCC internal prototype to avoid an error.
23432 Use char because int might match the return type of a GCC
23433 builtin and then its argument prototype would still apply.
23434 The 'extern "C"' is for builds by C++ compilers;
23435 although this is not generally supported in C code supporting it here
23436 has little cost and some practical benefit (sr 110532). */
23437 #ifdef __cplusplus
23438 extern "C"
23439 #endif
23440 char pkg_init (void);
23441 int
23442 main (void)
23443 {
23444 return pkg_init ();
23445 ;
23446 return 0;
23447 }
23448 _ACEOF
23449 if ac_fn_c_try_link "$LINENO"
23450 then :
23451 netsnmp_result="none required"
23452 else case e in #(
23453 e) for netsnmp_cur_lib in pkg ; do
23454 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
23455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456 /* end confdefs.h. */
23457
23458 /* Override any GCC internal prototype to avoid an error.
23459 Use char because int might match the return type of a GCC
23460 builtin and then its argument prototype would still apply.
23461 The 'extern "C"' is for builds by C++ compilers;
23462 although this is not generally supported in C code supporting it here
23463 has little cost and some practical benefit (sr 110532). */
23464 #ifdef __cplusplus
23465 extern "C"
23466 #endif
23467 char pkg_init (void);
23468 int
23469 main (void)
23470 {
23471 return pkg_init ();
23472 ;
23473 return 0;
23474 }
23475 _ACEOF
23476 if ac_fn_c_try_link "$LINENO"
23477 then :
23478 netsnmp_result=-l${netsnmp_cur_lib}
23479 break
23480 fi
23481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23482 conftest$ac_exeext conftest.$ac_ext
23483 done ;;
23484 esac
23485 fi
23486 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23487 conftest$ac_exeext conftest.$ac_ext
23488 LIBS="${netsnmp_func_search_save_LIBS}"
23489 netsnmp_cv_func_pkg_init_LIBS="${netsnmp_result}" ;;
23490 esac
23491 fi
23492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_pkg_init_LIBS" >&5
23493 printf "%s\n" "$netsnmp_cv_func_pkg_init_LIBS" >&6; }
23494 if test "x${netsnmp_cv_func_pkg_init_LIBS}" != "xno" ; then
23495 if test "x${netsnmp_cv_func_pkg_init_LIBS}" != "xnone required" ; then
23496 LIBS="${netsnmp_result} ${netsnmp_target_val}"
23497 fi
23498
23499 printf "%s\n" "#define HAVE_LIBPKG 1" >>confdefs.h
23500
23501
23502 fi
23503
23504 fi
23505
23506 done
23507 if test $ac_cv_header_pkg_h = no
23508 then
23509 CPPFLAGS="$netsnmp_save_CPPFLAGS"
23510 LDFLAGS="$netsnmp_save_LDFLAGS"
23511 fi
23512 fi
23513
23514 case $target_os in
23515 aix*)
23516 # for CPU/memory statistics (AIX)
23517 # Agent:
23518 #
23519 for ac_header in libperfstat.h
23520 do :
23521 ac_fn_c_check_header_compile "$LINENO" "libperfstat.h" "ac_cv_header_libperfstat_h" "
23522 #ifdef HAVE_SYS_PROTOSW_H
23523 #include <sys/protosw.h>
23524 #endif
23525
23526 "
23527 if test "x$ac_cv_header_libperfstat_h" = xyes
23528 then :
23529 printf "%s\n" "#define HAVE_LIBPERFSTAT_H 1" >>confdefs.h
23530
23531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing perfstat_cpu_total" >&5
23532 printf %s "checking for library containing perfstat_cpu_total... " >&6; }
23533 if test ${netsnmp_cv_func_perfstat_cpu_total_LMIBLIBS+y}
23534 then :
23535 printf %s "(cached) " >&6
23536 else case e in #(
23537 e) netsnmp_func_search_save_LIBS="$LIBS"
23538 netsnmp_target_val="$LMIBLIBS"
23539 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
23540 netsnmp_result=no
23541 LIBS="${netsnmp_temp_LIBS}"
23542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23543 /* end confdefs.h. */
23544
23545 /* Override any GCC internal prototype to avoid an error.
23546 Use char because int might match the return type of a GCC
23547 builtin and then its argument prototype would still apply.
23548 The 'extern "C"' is for builds by C++ compilers;
23549 although this is not generally supported in C code supporting it here
23550 has little cost and some practical benefit (sr 110532). */
23551 #ifdef __cplusplus
23552 extern "C"
23553 #endif
23554 char perfstat_cpu_total (void);
23555 int
23556 main (void)
23557 {
23558 return perfstat_cpu_total ();
23559 ;
23560 return 0;
23561 }
23562 _ACEOF
23563 if ac_fn_c_try_link "$LINENO"
23564 then :
23565 netsnmp_result="none required"
23566 else case e in #(
23567 e) for netsnmp_cur_lib in perfstat ; do
23568 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
23569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23570 /* end confdefs.h. */
23571
23572 /* Override any GCC internal prototype to avoid an error.
23573 Use char because int might match the return type of a GCC
23574 builtin and then its argument prototype would still apply.
23575 The 'extern "C"' is for builds by C++ compilers;
23576 although this is not generally supported in C code supporting it here
23577 has little cost and some practical benefit (sr 110532). */
23578 #ifdef __cplusplus
23579 extern "C"
23580 #endif
23581 char perfstat_cpu_total (void);
23582 int
23583 main (void)
23584 {
23585 return perfstat_cpu_total ();
23586 ;
23587 return 0;
23588 }
23589 _ACEOF
23590 if ac_fn_c_try_link "$LINENO"
23591 then :
23592 netsnmp_result=-l${netsnmp_cur_lib}
23593 break
23594 fi
23595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23596 conftest$ac_exeext conftest.$ac_ext
23597 done ;;
23598 esac
23599 fi
23600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23601 conftest$ac_exeext conftest.$ac_ext
23602 LIBS="${netsnmp_func_search_save_LIBS}"
23603 netsnmp_cv_func_perfstat_cpu_total_LMIBLIBS="${netsnmp_result}" ;;
23604 esac
23605 fi
23606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_perfstat_cpu_total_LMIBLIBS" >&5
23607 printf "%s\n" "$netsnmp_cv_func_perfstat_cpu_total_LMIBLIBS" >&6; }
23608 if test "x${netsnmp_cv_func_perfstat_cpu_total_LMIBLIBS}" != "xno" ; then
23609 if test "x${netsnmp_cv_func_perfstat_cpu_total_LMIBLIBS}" != "xnone required" ; then
23610 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
23611 fi
23612
23613 printf "%s\n" "#define HAVE_PERFSTAT 1" >>confdefs.h
23614
23615 else
23616 as_fn_error $? "
23617
23618 *** To monitor CPU/memory values in AIX you need to install
23619 *** libperfstat which can be found in bos.perf
23620 " "$LINENO" 5
23621 fi
23622
23623 fi
23624
23625 done
23626 ;;
23627 hpux*)
23628 # HP-UX agent needs open_mib (XXX - not a header check!)
23629 #
23630
23631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing open_mib" >&5
23632 printf %s "checking for library containing open_mib... " >&6; }
23633 if test ${netsnmp_cv_func_open_mib_LMIBLIBS+y}
23634 then :
23635 printf %s "(cached) " >&6
23636 else case e in #(
23637 e) netsnmp_func_search_save_LIBS="$LIBS"
23638 netsnmp_target_val="$LMIBLIBS"
23639 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
23640 netsnmp_result=no
23641 LIBS="${netsnmp_temp_LIBS}"
23642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23643 /* end confdefs.h. */
23644
23645 /* Override any GCC internal prototype to avoid an error.
23646 Use char because int might match the return type of a GCC
23647 builtin and then its argument prototype would still apply.
23648 The 'extern "C"' is for builds by C++ compilers;
23649 although this is not generally supported in C code supporting it here
23650 has little cost and some practical benefit (sr 110532). */
23651 #ifdef __cplusplus
23652 extern "C"
23653 #endif
23654 char open_mib (void);
23655 int
23656 main (void)
23657 {
23658 return open_mib ();
23659 ;
23660 return 0;
23661 }
23662 _ACEOF
23663 if ac_fn_c_try_link "$LINENO"
23664 then :
23665 netsnmp_result="none required"
23666 else case e in #(
23667 e) for netsnmp_cur_lib in nm ; do
23668 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
23669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23670 /* end confdefs.h. */
23671
23672 /* Override any GCC internal prototype to avoid an error.
23673 Use char because int might match the return type of a GCC
23674 builtin and then its argument prototype would still apply.
23675 The 'extern "C"' is for builds by C++ compilers;
23676 although this is not generally supported in C code supporting it here
23677 has little cost and some practical benefit (sr 110532). */
23678 #ifdef __cplusplus
23679 extern "C"
23680 #endif
23681 char open_mib (void);
23682 int
23683 main (void)
23684 {
23685 return open_mib ();
23686 ;
23687 return 0;
23688 }
23689 _ACEOF
23690 if ac_fn_c_try_link "$LINENO"
23691 then :
23692 netsnmp_result=-l${netsnmp_cur_lib}
23693 break
23694 fi
23695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23696 conftest$ac_exeext conftest.$ac_ext
23697 done ;;
23698 esac
23699 fi
23700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23701 conftest$ac_exeext conftest.$ac_ext
23702 LIBS="${netsnmp_func_search_save_LIBS}"
23703 netsnmp_cv_func_open_mib_LMIBLIBS="${netsnmp_result}" ;;
23704 esac
23705 fi
23706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_open_mib_LMIBLIBS" >&5
23707 printf "%s\n" "$netsnmp_cv_func_open_mib_LMIBLIBS" >&6; }
23708 if test "x${netsnmp_cv_func_open_mib_LMIBLIBS}" != "xno" ; then
23709 if test "x${netsnmp_cv_func_open_mib_LMIBLIBS}" != "xnone required" ; then
23710 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
23711 fi
23712
23713 printf "%s\n" "#define HAVE_LIBNM 1" >>confdefs.h
23714
23715
23716 fi
23717
23718 ;;
23719 *)
23720 ;;
23721 esac
23722
23723 # for MIB-2 info (Cygwin and MinGW)
23724 # Core:
23725 #
23726 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "
23727 #ifdef HAVE_WINDOWS_H
23728 #include <windows.h>
23729 #endif
23730
23731 "
23732 if test "x$ac_cv_header_windows_h" = xyes
23733 then :
23734 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
23735
23736 fi
23737 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "
23738 #ifdef HAVE_WINDOWS_H
23739 #include <windows.h>
23740 #endif
23741
23742 "
23743 if test "x$ac_cv_header_iphlpapi_h" = xyes
23744 then :
23745 printf "%s\n" "#define HAVE_IPHLPAPI_H 1" >>confdefs.h
23746
23747 fi
23748
23749
23750 for ac_header in lm.h
23751 do :
23752 ac_fn_c_check_header_compile "$LINENO" "lm.h" "ac_cv_header_lm_h" "
23753 #ifdef HAVE_WINDOWS_H
23754 #include <windows.h>
23755 #endif
23756
23757 "
23758 if test "x$ac_cv_header_lm_h" = xyes
23759 then :
23760 printf "%s\n" "#define HAVE_LM_H 1" >>confdefs.h
23761 LAGENTLIBS="$LAGENTLIBS -lnetapi32"
23762 fi
23763
23764 done
23765
23766 # for MIB-2 info (MinGW)
23767 # Core:
23768 #
23769 if test x$with_socklib = xwinsock2; then
23770 ac_fn_c_check_header_compile "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "#include <windows.h>
23771 "
23772 if test "x$ac_cv_header_winsock_h" = xyes
23773 then :
23774 printf "%s\n" "#define HAVE_WINSOCK_H 1" >>confdefs.h
23775
23776 fi
23777 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "#include <windows.h>
23778 "
23779 if test "x$ac_cv_header_winsock2_h" = xyes
23780 then :
23781 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
23782
23783 fi
23784 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "#include <windows.h>
23785 "
23786 if test "x$ac_cv_header_ws2tcpip_h" = xyes
23787 then :
23788 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
23789
23790 fi
23791
23792 fi
23793
23794 #
23795 # for ucd-snmp/lmsensorsMib
23796 #
23797 ac_fn_c_check_header_compile "$LINENO" "sensors/sensors.h" "ac_cv_header_sensors_sensors_h" "$ac_includes_default"
23798 if test "x$ac_cv_header_sensors_sensors_h" = xyes
23799 then :
23800 printf "%s\n" "#define HAVE_SENSORS_SENSORS_H 1" >>confdefs.h
23801
23802 fi
23803 ac_fn_c_check_header_compile "$LINENO" "picl.h" "ac_cv_header_picl_h" "$ac_includes_default"
23804 if test "x$ac_cv_header_picl_h" = xyes
23805 then :
23806 printf "%s\n" "#define HAVE_PICL_H 1" >>confdefs.h
23807
23808 fi
23809
23810
23811 ## This is here to avoid loads of redefinition warnings during
23812 ## module configuration
23813
23814 ##
23815 # rtentry structure checks:
23816 ##
23817
23818 # Check struct rtentry for common fields
23819 # Agent:
23820 #
23821 ac_fn_c_check_member "$LINENO" "struct rtentry" "rt_dst" "ac_cv_member_struct_rtentry_rt_dst" "
23822 #ifdef HAVE_SYS_PARAM_H
23823 #include <sys/param.h>
23824 #endif
23825 #include <sys/types.h>
23826 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
23827 #define _KERNEL_STRUCTURES 1
23828 #endif
23829 #ifdef HAVE_SYS_SOCKET_H
23830 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
23831 #define KERNEL
23832 #if !defined(__DragonFly__)
23833 #define _KERNEL 1
23834 #endif
23835 #endif
23836 #include <sys/socket.h>
23837 #undef KERNEL
23838 #undef _KERNEL
23839 #endif
23840 #ifdef HAVE_NET_ROUTE_H
23841 #include <net/route.h>
23842 #endif
23843
23844 "
23845 if test "x$ac_cv_member_struct_rtentry_rt_dst" = xyes
23846 then :
23847
23848 printf "%s\n" "#define HAVE_STRUCT_RTENTRY_RT_DST 1" >>confdefs.h
23849
23850
23851 fi
23852 ac_fn_c_check_member "$LINENO" "struct rtentry" "rt_hash" "ac_cv_member_struct_rtentry_rt_hash" "
23853 #ifdef HAVE_SYS_PARAM_H
23854 #include <sys/param.h>
23855 #endif
23856 #include <sys/types.h>
23857 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
23858 #define _KERNEL_STRUCTURES 1
23859 #endif
23860 #ifdef HAVE_SYS_SOCKET_H
23861 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
23862 #define KERNEL
23863 #if !defined(__DragonFly__)
23864 #define _KERNEL 1
23865 #endif
23866 #endif
23867 #include <sys/socket.h>
23868 #undef KERNEL
23869 #undef _KERNEL
23870 #endif
23871 #ifdef HAVE_NET_ROUTE_H
23872 #include <net/route.h>
23873 #endif
23874
23875 "
23876 if test "x$ac_cv_member_struct_rtentry_rt_hash" = xyes
23877 then :
23878
23879 printf "%s\n" "#define HAVE_STRUCT_RTENTRY_RT_HASH 1" >>confdefs.h
23880
23881
23882 fi
23883 ac_fn_c_check_member "$LINENO" "struct rtentry" "rt_next" "ac_cv_member_struct_rtentry_rt_next" "
23884 #ifdef HAVE_SYS_PARAM_H
23885 #include <sys/param.h>
23886 #endif
23887 #include <sys/types.h>
23888 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
23889 #define _KERNEL_STRUCTURES 1
23890 #endif
23891 #ifdef HAVE_SYS_SOCKET_H
23892 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
23893 #define KERNEL
23894 #if !defined(__DragonFly__)
23895 #define _KERNEL 1
23896 #endif
23897 #endif
23898 #include <sys/socket.h>
23899 #undef KERNEL
23900 #undef _KERNEL
23901 #endif
23902 #ifdef HAVE_NET_ROUTE_H
23903 #include <net/route.h>
23904 #endif
23905
23906 "
23907 if test "x$ac_cv_member_struct_rtentry_rt_next" = xyes
23908 then :
23909
23910 printf "%s\n" "#define HAVE_STRUCT_RTENTRY_RT_NEXT 1" >>confdefs.h
23911
23912
23913 fi
23914 ac_fn_c_check_member "$LINENO" "struct rtentry" "rt_refcnt" "ac_cv_member_struct_rtentry_rt_refcnt" "
23915 #ifdef HAVE_SYS_PARAM_H
23916 #include <sys/param.h>
23917 #endif
23918 #include <sys/types.h>
23919 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
23920 #define _KERNEL_STRUCTURES 1
23921 #endif
23922 #ifdef HAVE_SYS_SOCKET_H
23923 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
23924 #define KERNEL
23925 #if !defined(__DragonFly__)
23926 #define _KERNEL 1
23927 #endif
23928 #endif
23929 #include <sys/socket.h>
23930 #undef KERNEL
23931 #undef _KERNEL
23932 #endif
23933 #ifdef HAVE_NET_ROUTE_H
23934 #include <net/route.h>
23935 #endif
23936
23937 "
23938 if test "x$ac_cv_member_struct_rtentry_rt_refcnt" = xyes
23939 then :
23940
23941 printf "%s\n" "#define HAVE_STRUCT_RTENTRY_RT_REFCNT 1" >>confdefs.h
23942
23943
23944 fi
23945 ac_fn_c_check_member "$LINENO" "struct rtentry" "rt_unit" "ac_cv_member_struct_rtentry_rt_unit" "
23946 #ifdef HAVE_SYS_PARAM_H
23947 #include <sys/param.h>
23948 #endif
23949 #include <sys/types.h>
23950 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
23951 #define _KERNEL_STRUCTURES 1
23952 #endif
23953 #ifdef HAVE_SYS_SOCKET_H
23954 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
23955 #define KERNEL
23956 #if !defined(__DragonFly__)
23957 #define _KERNEL 1
23958 #endif
23959 #endif
23960 #include <sys/socket.h>
23961 #undef KERNEL
23962 #undef _KERNEL
23963 #endif
23964 #ifdef HAVE_NET_ROUTE_H
23965 #include <net/route.h>
23966 #endif
23967
23968 "
23969 if test "x$ac_cv_member_struct_rtentry_rt_unit" = xyes
23970 then :
23971
23972 printf "%s\n" "#define HAVE_STRUCT_RTENTRY_RT_UNIT 1" >>confdefs.h
23973
23974
23975 fi
23976 ac_fn_c_check_member "$LINENO" "struct rtentry" "rt_use" "ac_cv_member_struct_rtentry_rt_use" "
23977 #ifdef HAVE_SYS_PARAM_H
23978 #include <sys/param.h>
23979 #endif
23980 #include <sys/types.h>
23981 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
23982 #define _KERNEL_STRUCTURES 1
23983 #endif
23984 #ifdef HAVE_SYS_SOCKET_H
23985 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
23986 #define KERNEL
23987 #if !defined(__DragonFly__)
23988 #define _KERNEL 1
23989 #endif
23990 #endif
23991 #include <sys/socket.h>
23992 #undef KERNEL
23993 #undef _KERNEL
23994 #endif
23995 #ifdef HAVE_NET_ROUTE_H
23996 #include <net/route.h>
23997 #endif
23998
23999 "
24000 if test "x$ac_cv_member_struct_rtentry_rt_use" = xyes
24001 then :
24002
24003 printf "%s\n" "#define HAVE_STRUCT_RTENTRY_RT_USE 1" >>confdefs.h
24004
24005
24006 fi
24007
24008
24009 fi # NETSNMP_QUICK_CHECK
24010
24011 cat >confcache <<\_ACEOF
24012 # This file is a shell script that caches the results of configure
24013 # tests run on this system so they can be shared between configure
24014 # scripts and configure runs, see configure's option --config-cache.
24015 # It is not useful on other systems. If it contains results you don't
24016 # want to keep, you may remove or edit it.
24017 #
24018 # config.status only pays attention to the cache file if you give it
24019 # the --recheck option to rerun configure.
24020 #
24021 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
24022 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
24023 # following values.
24024
24025 _ACEOF
24026
24027 # The following way of writing the cache mishandles newlines in values,
24028 # but we know of no workaround that is simple, portable, and efficient.
24029 # So, we kill variables containing newlines.
24030 # Ultrix sh set writes to stderr and can't be redirected directly,
24031 # and sets the high bit in the cache file unless we assign to the vars.
24032 (
24033 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24034 eval ac_val=\$$ac_var
24035 case $ac_val in #(
24036 *${as_nl}*)
24037 case $ac_var in #(
24038 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24039 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24040 esac
24041 case $ac_var in #(
24042 _ | IFS | as_nl) ;; #(
24043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24044 *) { eval $ac_var=; unset $ac_var;} ;;
24045 esac ;;
24046 esac
24047 done
24048
24049 (set) 2>&1 |
24050 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24051 *${as_nl}ac_space=\ *)
24052 # 'set' does not quote correctly, so add quotes: double-quote
24053 # substitution turns \\\\ into \\, and sed turns \\ into \.
24054 sed -n \
24055 "s/'/'\\\\''/g;
24056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24057 ;; #(
24058 *)
24059 # 'set' quotes correctly as required by POSIX, so do not add quotes.
24060 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24061 ;;
24062 esac |
24063 sort
24064 ) |
24065 sed '
24066 /^ac_cv_env_/b end
24067 t clear
24068 :clear
24069 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
24070 t end
24071 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24072 :end' >>confcache
24073 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24074 if test -w "$cache_file"; then
24075 if test "x$cache_file" != "x/dev/null"; then
24076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24077 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
24078 if test ! -f "$cache_file" || test -h "$cache_file"; then
24079 cat confcache >"$cache_file"
24080 else
24081 case $cache_file in #(
24082 */* | ?:*)
24083 mv -f confcache "$cache_file"$$ &&
24084 mv -f "$cache_file"$$ "$cache_file" ;; #(
24085 *)
24086 mv -f confcache "$cache_file" ;;
24087 esac
24088 fi
24089 fi
24090 else
24091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24092 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
24093 fi
24094 fi
24095 rm -f confcache
24096 # -*- autoconf -*-
24097 #########################################
24098 ##
24099 # Checks for types
24100 ##
24101 #########################################
24102
24103 ##
24104 # Standard checks:
24105 ##
24106
24107 # The cast to long int works around a bug in the HP C Compiler
24108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24109 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
24110 # This bug is HP SR number 8606223364.
24111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
24112 printf %s "checking size of short... " >&6; }
24113 if test ${ac_cv_sizeof_short+y}
24114 then :
24115 printf %s "(cached) " >&6
24116 else case e in #(
24117 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
24118 then :
24119
24120 else case e in #(
24121 e) if test "$ac_cv_type_short" = yes; then
24122 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24123 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24124 as_fn_error 77 "cannot compute sizeof (short)
24125 See 'config.log' for more details" "$LINENO" 5; }
24126 else
24127 ac_cv_sizeof_short=0
24128 fi ;;
24129 esac
24130 fi
24131 ;;
24132 esac
24133 fi
24134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
24135 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
24136
24137
24138
24139 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
24140
24141
24142 # The cast to long int works around a bug in the HP C Compiler
24143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24144 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
24145 # This bug is HP SR number 8606223364.
24146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
24147 printf %s "checking size of int... " >&6; }
24148 if test ${ac_cv_sizeof_int+y}
24149 then :
24150 printf %s "(cached) " >&6
24151 else case e in #(
24152 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
24153 then :
24154
24155 else case e in #(
24156 e) if test "$ac_cv_type_int" = yes; then
24157 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24158 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24159 as_fn_error 77 "cannot compute sizeof (int)
24160 See 'config.log' for more details" "$LINENO" 5; }
24161 else
24162 ac_cv_sizeof_int=0
24163 fi ;;
24164 esac
24165 fi
24166 ;;
24167 esac
24168 fi
24169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
24170 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
24171
24172
24173
24174 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
24175
24176
24177 # The cast to long int works around a bug in the HP C Compiler
24178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24179 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
24180 # This bug is HP SR number 8606223364.
24181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
24182 printf %s "checking size of long... " >&6; }
24183 if test ${ac_cv_sizeof_long+y}
24184 then :
24185 printf %s "(cached) " >&6
24186 else case e in #(
24187 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
24188 then :
24189
24190 else case e in #(
24191 e) if test "$ac_cv_type_long" = yes; then
24192 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24193 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24194 as_fn_error 77 "cannot compute sizeof (long)
24195 See 'config.log' for more details" "$LINENO" 5; }
24196 else
24197 ac_cv_sizeof_long=0
24198 fi ;;
24199 esac
24200 fi
24201 ;;
24202 esac
24203 fi
24204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
24205 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
24206
24207
24208
24209 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
24210
24211
24212 # The cast to long int works around a bug in the HP C Compiler
24213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24214 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
24215 # This bug is HP SR number 8606223364.
24216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24217 printf %s "checking size of long long... " >&6; }
24218 if test ${ac_cv_sizeof_long_long+y}
24219 then :
24220 printf %s "(cached) " >&6
24221 else case e in #(
24222 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
24223 then :
24224
24225 else case e in #(
24226 e) if test "$ac_cv_type_long_long" = yes; then
24227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24228 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24229 as_fn_error 77 "cannot compute sizeof (long long)
24230 See 'config.log' for more details" "$LINENO" 5; }
24231 else
24232 ac_cv_sizeof_long_long=0
24233 fi ;;
24234 esac
24235 fi
24236 ;;
24237 esac
24238 fi
24239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24240 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
24241
24242
24243
24244 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
24245
24246
24247 # The cast to long int works around a bug in the HP C Compiler
24248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24249 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
24250 # This bug is HP SR number 8606223364.
24251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
24252 printf %s "checking size of intmax_t... " >&6; }
24253 if test ${ac_cv_sizeof_intmax_t+y}
24254 then :
24255 printf %s "(cached) " >&6
24256 else case e in #(
24257 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"
24258 then :
24259
24260 else case e in #(
24261 e) if test "$ac_cv_type_intmax_t" = yes; then
24262 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24263 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24264 as_fn_error 77 "cannot compute sizeof (intmax_t)
24265 See 'config.log' for more details" "$LINENO" 5; }
24266 else
24267 ac_cv_sizeof_intmax_t=0
24268 fi ;;
24269 esac
24270 fi
24271 ;;
24272 esac
24273 fi
24274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
24275 printf "%s\n" "$ac_cv_sizeof_intmax_t" >&6; }
24276
24277
24278
24279 printf "%s\n" "#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t" >>confdefs.h
24280
24281
24282
24283 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
24284 case $ac_cv_c_int8_t in #(
24285 no|yes) ;; #(
24286 *)
24287
24288 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
24289 ;;
24290 esac
24291
24292 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
24293 case $ac_cv_c_int16_t in #(
24294 no|yes) ;; #(
24295 *)
24296
24297 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
24298 ;;
24299 esac
24300
24301 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
24302 case $ac_cv_c_int32_t in #(
24303 no|yes) ;; #(
24304 *)
24305
24306 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
24307 ;;
24308 esac
24309
24310 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
24311 case $ac_cv_c_int64_t in #(
24312 no|yes) ;; #(
24313 *)
24314
24315 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
24316 ;;
24317 esac
24318
24319
24320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
24321 printf %s "checking for unsigned long long int... " >&6; }
24322 if test ${ac_cv_type_unsigned_long_long_int+y}
24323 then :
24324 printf %s "(cached) " >&6
24325 else case e in #(
24326 e) ac_cv_type_unsigned_long_long_int=yes
24327 case $ac_prog_cc_stdc in
24328 no | c89) ;;
24329 *)
24330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24331 /* end confdefs.h. */
24332
24333 /* For now, do not test the preprocessor; as of 2007 there are too many
24334 implementations with broken preprocessors. Perhaps this can
24335 be revisited in 2012. In the meantime, code should not expect
24336 #if to work with literals wider than 32 bits. */
24337 /* Test literals. */
24338 long long int ll = 9223372036854775807ll;
24339 long long int nll = -9223372036854775807LL;
24340 unsigned long long int ull = 18446744073709551615ULL;
24341 /* Test constant expressions. */
24342 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
24343 ? 1 : -1)];
24344 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
24345 ? 1 : -1)];
24346 int i = 63;
24347 int
24348 main (void)
24349 {
24350 /* Test availability of runtime routines for shift and division. */
24351 long long int llmax = 9223372036854775807ll;
24352 unsigned long long int ullmax = 18446744073709551615ull;
24353 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
24354 | (llmax / ll) | (llmax % ll)
24355 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
24356 | (ullmax / ull) | (ullmax % ull));
24357 ;
24358 return 0;
24359 }
24360
24361 _ACEOF
24362 if ac_fn_c_try_link "$LINENO"
24363 then :
24364
24365 else case e in #(
24366 e) ac_cv_type_unsigned_long_long_int=no ;;
24367 esac
24368 fi
24369 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24370 conftest$ac_exeext conftest.$ac_ext;;
24371 esac ;;
24372 esac
24373 fi
24374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
24375 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
24376 if test $ac_cv_type_unsigned_long_long_int = yes; then
24377
24378 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
24379
24380 fi
24381
24382
24383
24384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
24385 printf %s "checking for long long int... " >&6; }
24386 if test ${ac_cv_type_long_long_int+y}
24387 then :
24388 printf %s "(cached) " >&6
24389 else case e in #(
24390 e) ac_cv_type_long_long_int=yes
24391 case $ac_prog_cc_stdc in
24392 no | c89) ;;
24393 *)
24394 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
24395 if test $ac_cv_type_long_long_int = yes; then
24396 if test "$cross_compiling" = yes
24397 then :
24398 :
24399 else case e in #(
24400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24401 /* end confdefs.h. */
24402 #include <limits.h>
24403 #ifndef LLONG_MAX
24404 # define HALF \\
24405 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
24406 # define LLONG_MAX (HALF - 1 + HALF)
24407 #endif
24408 int
24409 main (void)
24410 {
24411 long long int n = 1;
24412 int i;
24413 for (i = 0; ; i++)
24414 {
24415 long long int m = n << i;
24416 if (m >> i != n)
24417 return 1;
24418 if (LLONG_MAX / 2 < m)
24419 break;
24420 }
24421 return 0;
24422 ;
24423 return 0;
24424 }
24425 _ACEOF
24426 if ac_fn_c_try_run "$LINENO"
24427 then :
24428
24429 else case e in #(
24430 e) ac_cv_type_long_long_int=no ;;
24431 esac
24432 fi
24433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24434 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
24435 esac
24436 fi
24437
24438 fi;;
24439 esac ;;
24440 esac
24441 fi
24442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
24443 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
24444 if test $ac_cv_type_long_long_int = yes; then
24445
24446 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
24447
24448 fi
24449
24450
24451
24452 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
24453 if test "x$ac_cv_type_intmax_t" = xyes
24454 then :
24455
24456 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
24457
24458 else case e in #(
24459 e) test $ac_cv_type_long_long_int = yes \
24460 && ac_type='long long int' \
24461 || ac_type='long int'
24462
24463 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
24464 ;;
24465 esac
24466 fi
24467
24468
24469 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
24470 case $ac_cv_c_uint8_t in #(
24471 no|yes) ;; #(
24472 *)
24473
24474 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
24475
24476
24477 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
24478 ;;
24479 esac
24480
24481 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
24482 case $ac_cv_c_uint16_t in #(
24483 no|yes) ;; #(
24484 *)
24485
24486
24487 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
24488 ;;
24489 esac
24490
24491 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
24492 case $ac_cv_c_uint32_t in #(
24493 no|yes) ;; #(
24494 *)
24495
24496 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
24497
24498
24499 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
24500 ;;
24501 esac
24502
24503 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
24504 case $ac_cv_c_uint64_t in #(
24505 no|yes) ;; #(
24506 *)
24507
24508 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
24509
24510
24511 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
24512 ;;
24513 esac
24514
24515
24516
24517 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
24518 if test "x$ac_cv_type_uintmax_t" = xyes
24519 then :
24520
24521 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
24522
24523 else case e in #(
24524 e) test $ac_cv_type_unsigned_long_long_int = yes \
24525 && ac_type='unsigned long long int' \
24526 || ac_type='unsigned long int'
24527
24528 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
24529 ;;
24530 esac
24531 fi
24532
24533
24534
24535 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
24536 if test "x$ac_cv_type_intptr_t" = xyes
24537 then :
24538
24539 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
24540
24541 else case e in #(
24542 e) for ac_type in 'int' 'long int' 'long long int'; do
24543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24544 /* end confdefs.h. */
24545 $ac_includes_default
24546 int
24547 main (void)
24548 {
24549 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
24550 test_array [0] = 0;
24551 return test_array [0];
24552
24553 ;
24554 return 0;
24555 }
24556 _ACEOF
24557 if ac_fn_c_try_compile "$LINENO"
24558 then :
24559
24560 printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h
24561
24562 ac_type=
24563 fi
24564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24565 test -z "$ac_type" && break
24566 done ;;
24567 esac
24568 fi
24569
24570
24571
24572 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24573 if test "x$ac_cv_type_uintptr_t" = xyes
24574 then :
24575
24576 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
24577
24578 else case e in #(
24579 e) for ac_type in 'unsigned int' 'unsigned long int' \
24580 'unsigned long long int'; do
24581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24582 /* end confdefs.h. */
24583 $ac_includes_default
24584 int
24585 main (void)
24586 {
24587 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
24588 test_array [0] = 0;
24589 return test_array [0];
24590
24591 ;
24592 return 0;
24593 }
24594 _ACEOF
24595 if ac_fn_c_try_compile "$LINENO"
24596 then :
24597
24598 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
24599
24600 ac_type=
24601 fi
24602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24603 test -z "$ac_type" && break
24604 done ;;
24605 esac
24606 fi
24607
24608
24609
24610 ##
24611 # Other type checks:
24612 ##
24613
24614 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
24615 if test "x$ac_cv_type_off64_t" = xyes
24616 then :
24617
24618 printf "%s\n" "#define HAVE_OFF64_T 1" >>confdefs.h
24619
24620
24621 fi
24622
24623 ac_fn_c_check_type "$LINENO" "nfds_t" "ac_cv_type_nfds_t" "#include <sys/poll.h>
24624 "
24625 if test "x$ac_cv_type_nfds_t" = xyes
24626 then :
24627
24628 printf "%s\n" "#define HAVE_NFDS_T 1" >>confdefs.h
24629
24630
24631 fi
24632
24633
24634 # Solaris specific checks
24635 # (taken from Perl's configure script)
24636 #
24637 ac_fn_c_check_type "$LINENO" "Counter64" "ac_cv_type_Counter64" "#include <inet/mib2.h>
24638 "
24639 if test "x$ac_cv_type_Counter64" = xyes
24640 then :
24641
24642 printf "%s\n" "#define HAVE_COUNTER64 1" >>confdefs.h
24643
24644
24645 fi
24646
24647 ac_fn_c_check_type "$LINENO" "mib2_ipIfStatsEntry_t" "ac_cv_type_mib2_ipIfStatsEntry_t" "#include <inet/mib2.h>
24648 "
24649 if test "x$ac_cv_type_mib2_ipIfStatsEntry_t" = xyes
24650 then :
24651
24652 printf "%s\n" "#define HAVE_MIB2_IPIFSTATSENTRY_T 1" >>confdefs.h
24653
24654
24655 fi
24656
24657
24658 # N.B: The above checks could safely be moved to
24659 # the later 'config_types' sub-script
24660 #
24661
24662 # Darwin: check whether or not struct in_ifaddr is available.
24663 #
24664 #
24665 ac_fn_c_check_member "$LINENO" "struct in_ifaddr" "ia_subnetmask" "ac_cv_member_struct_in_ifaddr_ia_subnetmask" "
24666 #ifdef HAVE_NETINET_IN_VAR_H
24667 #include <netinet/in_var.h>
24668 #endif
24669
24670 "
24671 if test "x$ac_cv_member_struct_in_ifaddr_ia_subnetmask" = xyes
24672 then :
24673
24674 printf "%s\n" "#define HAVE_STRUCT_IN_IFADDR_IA_SUBNETMASK 1" >>confdefs.h
24675
24676
24677 fi
24678
24679
24680
24681 ##
24682 # Determine the IPv6 stack type
24683 ##
24684
24685 # These checks also set the LIBS/CFLAGS variables,
24686 # which may be needed for subsequent function tests
24687 #
24688
24689 if test "x$enable_ipv6" = "xyes"; then
24690 v6lib=none
24691 v6trylibc=no
24692
24693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
24694 printf %s "checking ipv6 stack type... " >&6; }
24695 for v6type in v6d toshiba kame zeta generic; do
24696 case $v6type in
24697 v6d)
24698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24699 /* end confdefs.h. */
24700
24701 #include </usr/local/v6/include/sys/types.h>
24702 #ifdef __V6D__
24703 yes
24704 #endif
24705 _ACEOF
24706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24707 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
24708 then :
24709 v6lib=v6;
24710 v6libdir=/usr/local/v6/lib;
24711 CFLAGS="-I/usr/local/v6/include $CFLAGS"
24712 fi
24713 rm -rf conftest*
24714
24715 ;;
24716 toshiba)
24717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24718 /* end confdefs.h. */
24719
24720 #include <sys/param.h>
24721 #ifdef _TOSHIBA_INET6
24722 yes
24723 #endif
24724 _ACEOF
24725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24726 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
24727 then :
24728 v6lib=inet6;
24729 v6libdir=/usr/local/v6/lib;
24730 CFLAGS="-DNETSNMP_ENABLE_IPV6 $CFLAGS"
24731 fi
24732 rm -rf conftest*
24733
24734 ;;
24735 kame)
24736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24737 /* end confdefs.h. */
24738
24739 #include <netinet/in.h>
24740 #ifdef __KAME__
24741 yes
24742 #endif
24743 _ACEOF
24744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24745 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
24746 then :
24747 v6lib=inet6;
24748 v6libdir=/usr/local/v6/lib;
24749 v6trylibc=yes;
24750 CFLAGS="-DNETSNMP_ENABLE_IPV6 $CFLAGS"
24751 fi
24752 rm -rf conftest*
24753
24754 ;;
24755 zeta)
24756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757 /* end confdefs.h. */
24758
24759 #include <sys/param.h>
24760 #ifdef _ZETA_MINAMI_INET6
24761 yes
24762 #endif
24763 _ACEOF
24764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24765 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
24766 then :
24767 v6lib=inet6;
24768 v6libdir=/usr/local/v6/lib;
24769 CFLAGS="-DNETSNMP_ENABLE_IPV6 $CFLAGS"
24770 fi
24771 rm -rf conftest*
24772
24773 ;;
24774 generic)
24775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: postponed" >&5
24776 printf "%s\n" "postponed" >&6; }
24777 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_addr" "ac_cv_member_struct_sockaddr_in6_sin6_addr" "
24778 #ifdef HAVE_WINSOCK2_H
24779 #include <winsock2.h>
24780 #ifdef HAVE_WS2TCPIP_H
24781 #include <ws2tcpip.h>
24782 #endif
24783 #endif
24784 $ac_includes_default
24785 #ifdef HAVE_SYS_PARAM_H
24786 #include <sys/param.h>
24787 #endif
24788 #ifdef HAVE_SYS_SOCKET_H
24789 #include <sys/socket.h>
24790 #endif
24791 #ifdef HAVE_NETINET_IN_H
24792 #include <netinet/in.h>
24793 #endif
24794
24795 "
24796 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_addr" = xyes
24797 then :
24798
24799 fi
24800
24801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
24802 printf %s "checking ipv6 stack type... " >&6; }
24803 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_addr" = "xyes"; then
24804 v6lib=dummy
24805 v6libdir=none
24806 v6trylibc=yes
24807 CFLAGS="-DNETSNMP_ENABLE_IPV6 $CFLAGS"
24808 fi
24809 ;;
24810 esac
24811 if test "$v6lib" != "none"; then
24812 break
24813 fi
24814 done
24815
24816 if test "$v6lib" != "none"; then
24817 if test -d $v6libdir -a -f $v6libdir/lib$v6lib.a; then
24818 LIBS="-L$v6libdir -l$v6lib $LIBS"
24819 enable_ipv6="yes"
24820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$v6type, $enable_ipv6, using lib$v6lib\"" >&5
24821 printf "%s\n" "\"$v6type, $enable_ipv6, using lib$v6lib\"" >&6; }
24822 elif test "$v6trylibc" = "yes"; then
24823 enable_ipv6="yes"
24824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$v6type, $enable_ipv6, using libc\"" >&5
24825 printf "%s\n" "\"$v6type, $enable_ipv6, using libc\"" >&6; }
24826 else
24827 as_fn_error $? "no IPv6 library lib$v6lib.a found." "$LINENO" 5
24828 exit 1
24829 fi
24830 else
24831 v6type="unknown"
24832 enable_ipv6="no"
24833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$v6type, $enable_ipv6\"" >&5
24834 printf "%s\n" "\"$v6type, $enable_ipv6\"" >&6; }
24835 fi
24836 fi
24837
24838 # -*- autoconf -*-
24839 #
24840 # Maybe add library extensions for thread mutex locking.
24841 #
24842
24843 if test "x$with_res_locks" = "xyes"; then
24844
24845 printf "%s\n" "#define NETSNMP_REENTRANT 1" >>confdefs.h
24846
24847
24848 case $target_os in
24849
24850 aix*)
24851 CC_RUNTIME_ARG="$CC_RUNTIME_ARG -lpthreads"
24852 ;;
24853
24854 *)
24855 ;;
24856
24857 esac
24858 fi
24859
24860 #
24861 # Add platform-specific source files.
24862 #
24863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for platform-specific source" >&5
24864 printf %s "checking for platform-specific source... " >&6; }
24865 other_src_list=""
24866 other_ftobjs_list=""
24867 other_lobjs_list=""
24868 other_objs_list=""
24869 other_agentobjs=""
24870 other_lagentobjs=""
24871 other_ftagentobjs=""
24872 other_trapd_objects=""
24873
24874 # Win32 service code
24875 if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc"; then
24876 other_src_list="$other_src_list winservice.c winservicerc.rc"
24877 other_objs_list="$other_objs_list winservice.o winservicerc.o"
24878 other_lobjs_list="$other_lobjs_list winservice.lo winservicerc.lo"
24879 other_ftobjs_list="$other_ftobjs_list winservice.ft winservicerc.ft"
24880 other_agentobjs="../snmplib/winservicerc.o"
24881 other_lagentobjs="../snmplib/winservicerc.lo"
24882 other_ftagentobjs="../snmplib/winservicerc.lo"
24883 other_trapd_objects="../snmplib/winservicerc.o"
24884 fi
24885
24886 # Win32 pipes
24887 if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc"; then
24888 other_src_list="$other_src_list winpipe.c"
24889 other_objs_list="$other_objs_list winpipe.o"
24890 other_lobjs_list="$other_lobjs_list winpipe.lo"
24891 other_ftobjs_list="$other_ftobjs_list winpipe.ft"
24892 fi
24893
24894 # Linux systemd
24895 if test "x$with_systemd" = "xyes"; then
24896 other_src_list="$other_src_list sd-daemon.c"
24897 other_objs_list="$other_objs_list sd-daemon.o"
24898 other_lobjs_list="$other_lobjs_list sd-daemon.lo"
24899 other_ftobjs_list="$other_ftobjs_list sd-daemon.ft"
24900 fi
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $other_src_list $other_objs_list $other_lobjs_list" >&5
24912 printf "%s\n" "$other_src_list $other_objs_list $other_lobjs_list" >&6; }
24913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $other_agentobjs $other_lagentobjs $other_trapd_objects" >&5
24914 printf "%s\n" "$other_agentobjs $other_lagentobjs $other_trapd_objects" >&6; }
24915
24916 #
24917 # Create directory structure for build
24918 #
24919 if test ! -d include; then
24920 mkdir include
24921 fi
24922 if test ! -d include/net-snmp; then
24923 mkdir include/net-snmp
24924 fi
24925 if test ! -d include/net-snmp/agent; then
24926 mkdir include/net-snmp/agent
24927 fi
24928 if test ! -d include/net-snmp/library; then
24929 mkdir include/net-snmp/library
24930 fi
24931 if test ! -d include/ucd-snmp; then
24932 mkdir include/ucd-snmp
24933 fi
24934
24935 if test ! -d snmplib; then
24936 mkdir snmplib
24937 fi
24938 if test ! -d snmplib/transports ; then
24939 mkdir snmplib/transports
24940 fi
24941
24942 #
24943 # Do transport module processing.
24944 #
24945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for and configuring transport modules to use" >&5
24946 printf %s "checking for and configuring transport modules to use... " >&6; }
24947
24948 # include the actual code checking
24949 # -*- sh -*-
24950 transport_src_list=""
24951 transport_hdr_list=""
24952 transport_def_list=""
24953 transport_result_list=""
24954 transport_add_list=""
24955 new_with_transport_list=`echo $with_transports | $SED 's/,/ /g;'`
24956 new_with_out_transport_list=`echo $with_out_transports | $SED 's/,/ /g;'`
24957
24958 # set up the CPP command
24959 MODULECPP="$CPP $CPPFLAGS $PARTIALTARGETFLAGS -I${srcdir} -I${srcdir}/include"
24960
24961 #
24962 # Add the default transports to the list
24963 #
24964 if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc"; then
24965 transport_default_list="UDP TCP Alias Callback"
24966 else
24967 transport_default_list="UDP TCP Alias Unix Callback"
24968 fi
24969 if test "x$enable_ipv6" = "xyes"; then
24970 transport_default_list="UDPIPv6 TCPIPv6 $transport_default_list"
24971 fi
24972 for i in $transport_default_list; do
24973 if echo " $new_with_transport_list " | $GREP " $i " >/dev/null; then
24974 :
24975 else
24976 transport_add_list="$i $transport_add_list"
24977 fi
24978 done
24979 new_transport_list="$transport_add_list $new_with_transport_list"
24980
24981 if test "x$ctor_header" = "x" ; then
24982 ctor_header="snmplib/transports/snmp_transport_inits.h"
24983 fi
24984
24985 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $ctor_header
24986 while test "x$new_transport_list" != "x"; do
24987 future_new_transport_list=""
24988 for i in $new_transport_list; do
24989 if echo " $new_with_out_transport_list " | $GREP " $i " >/dev/null; then
24990 true
24991 else
24992 if test "x$enable_ipv6" != "xyes"; then
24993 if test "x$i" = "xUDPIPv6" -o "x$i" = "xTCPIPv6"; then
24994 as_fn_error $? "IPv6 transports not available if IPv6 support is not enabled" "$LINENO" 5
24995 fi
24996 fi
24997 transport_src="transports/snmp"$i"Domain.c"
24998 transport_hdr="snmp"$i"Domain.h"
24999 rel_transport_src="snmplib/"$transport_src
25000 case $i in
25001 IPBase)
25002 rel_transport_hdr="snmplib/transports/$transport_hdr";;
25003 *)
25004 rel_transport_hdr="include/net-snmp/library/$transport_hdr";;
25005 esac
25006 lc_i=`echo $i | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25007 ctor_fn="netsnmp_"$lc_i"_ctor"
25008 if test -f "$srcdir/$rel_transport_src"; then
25009 transport_result_list="$transport_result_list $i"
25010 transport_src_list="$transport_src $transport_src_list"
25011 if test -f "$srcdir/$rel_transport_hdr"; then
25012 transport_hdr_list="$transport_hdr $transport_hdr_list"
25013 fi
25014 transport_def=`echo $i | $SED 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
25015 transport_def_list="NETSNMP_TRANSPORT_"$transport_def"_DOMAIN $transport_def_list"
25016 else
25017 echo
25018 as_fn_error $? "Cannot find file $srcdir/$rel_transport_src to support SNMP transport domain $i." "$LINENO" 5
25019 fi
25020
25021 #---------------------
25022 # build a pseudo include header that includes current config and
25023 # system symbols:
25024 rm -f conftest.$ac_ext module_tmp_header.h
25025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25026 /* end confdefs.h. */
25027
25028 #include NETSNMP_SYSTEM_INCLUDE_FILE
25029 #undef NETSNMP_MINIMAL_CODE
25030 #define NET_SNMP_CONFIG_H
25031 #undef config_require
25032 #define config_require(foo) config_checkit_require(foo)
25033 #undef config_error
25034 #define config_error(foo) config_checkit_error(foo)
25035 #include "$rel_transport_hdr"
25036 _ACEOF
25037 mv conftest.$ac_ext module_tmp_header.h
25038
25039 #
25040 # check for dependencies using config_require() macro
25041 #
25042 sub_list=`$MODULECPP module_tmp_header.h | $GREP config_checkit_require | $SED 's/.*config_checkit_require *( *\(.*\) *).*/\1/'`
25043 if test "x$sub_list" != "x" ; then
25044 for j in $sub_list ; do
25045 if echo " $future_new_transport_list $new_transport_list " | $GREP " $j " > /dev/null ; then
25046 :
25047 else
25048 future_new_transport_list="$future_new_transport_list $j"
25049 fi
25050 done
25051 fi
25052
25053 #
25054 # check for errors using config_error() macro
25055 #
25056 error_list=`$MODULECPP module_tmp_header.h | $GREP config_checkit_error | $SED 's/.*config_checkit_error(\(.*\)).*/\1/g'`
25057 if test "x$error_list" != "x" ; then
25058 echo ""
25059 as_fn_error $? "$error_list" "$LINENO" 5
25060 fi
25061
25062 #
25063 # Check for needed constructor initialization routines to call
25064 #
25065 found=`grep $ctor_fn $srcdir/$rel_transport_src`
25066 if grep $ctor_fn $srcdir/$rel_transport_src > /dev/null ; then
25067 # we add them down below instead of here to make sure
25068 # config_require dependency constructors get called first.
25069 tr_init_list="$ctor_fn $tr_init_list"
25070 fi
25071 fi
25072 done # for each new transport
25073 new_transport_list="$future_new_transport_list"
25074 done # while new transports exist
25075 transport_obj_list=`echo " $transport_src_list " | $SED 's/\.c/\.o/g'`
25076 transport_lobj_list=`echo " $transport_src_list " | $SED 's/\.c/\.lo/g'`
25077 transport_ftobj_list=`echo " $transport_src_list " | $SED 's/\.c/\.ft/g'`
25078 for i in $tr_init_list ; do
25079 echo "$i();" >> $ctor_header
25080 done
25081
25082 ## win32 platforms require inet_ntop etc.
25083 if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc" -o "x$PARTIALTARGETOS" = "xcygwin"; then
25084 if echo "$transport_def_list" | $GREP "IPV6" >/dev/null; then
25085 transport_obj_list="$transport_obj_list inet_ntop.o inet_pton.o"
25086 transport_lobj_list="$transport_lobj_list inet_ntop.lo inet_pton.lo"
25087 transport_ftobj_list="$transport_ftobj_list inet_ntop.ft inet_pton.ft"
25088 fi
25089 fi
25090
25091 if test "x$transport_result_list" = x ; then
25092 as_fn_error $? "No transports configured, at least one must be provided" "$LINENO" 5
25093 fi
25094
25095
25096
25097
25098
25099
25100
25101 for i in $transport_def_list; do
25102 printf "%s\n" "#define $i 1" >>confdefs.h
25103
25104 done
25105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $transport_result_list." >&5
25106 printf "%s\n" "$transport_result_list." >&6; }
25107
25108 cat >> configure-summary << EOF
25109 Network transport support: $transport_result_list
25110 EOF
25111
25112
25113 # cleanup
25114 rm -f module_tmp_header.h
25115
25116 #
25117 # Security modules to use
25118 #
25119
25120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for security modules to use" >&5
25121 printf %s "checking for security modules to use... " >&6; }
25122 # -*- sh -*-
25123 security_def_list="usm"
25124 security_src_list=""
25125 security_obj_list=""
25126 security_lobj_list=""
25127 security_ftobj_list=""
25128 security_mod_list=" "
25129
25130 new_with_security=
25131 new_with_out_security=`echo $with_out_security_modules | tr , ' '`
25132
25133 # Assign additional security modules
25134 for i in `echo $with_security_modules | tr , ' '`; do
25135 if echo " $new_with_out_security " | $GREP " $i " > /dev/null; then
25136 echo
25137 as_fn_error $? "security module conflict - $i both included and excluded" "$LINENO" 5
25138 elif echo " $new_with_security " | $GREP " $i " > /dev/null ; then
25139 : # Double define, ignore
25140 else
25141 new_with_security="$new_with_security $i"
25142 fi
25143 done
25144
25145 # Add default security modules
25146 for i in $security_def_list; do
25147 if echo " $new_with_out_security " | $GREP " $i " > /dev/null; then
25148 : # Excluded, ignore
25149 elif echo " $new_with_security " | $GREP " $i " > /dev/null ; then
25150 : # Double define, ignore
25151 else
25152 new_with_security="$new_with_security $i"
25153 fi
25154 done
25155
25156 # Generate output files
25157 : ${security_init_file:='snmplib/snmpsm_init.h'}
25158 : ${security_shutdown_file:='snmplib/snmpsm_shutdown.h'}
25159 : ${security_incl_file:='include/net-snmp/library/snmpv3-security-includes.h'}
25160
25161 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $security_init_file
25162 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $security_shutdown_file
25163 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $security_incl_file
25164
25165 for i in $new_with_security; do
25166 cfile="snmp"$i".c"
25167 hfile="snmp"$i".h"
25168
25169 # make sure support exists for it
25170 if test -f $srcdir"/snmplib/"$cfile -a -f $srcdir"/include/net-snmp/library/"$hfile; then
25171 :
25172 else
25173 echo
25174 as_fn_error $? "No such security module: $i / $cfile / $hfile" "$LINENO" 5
25175 fi
25176
25177 # define a bunch of stuff to enable it
25178 security_mod_list="${security_mod_list} $i"
25179 security_src_list="$security_src_list $cfile"
25180 security_src_list="$security_src_list $cfile"
25181 security_hdr_list="$security_hdr_list $hfile"
25182 security_obj_list="$security_obj_list snmp"$i".o"
25183 security_lobj_list="$security_lobj_list snmp"$i".lo"
25184 security_ftobj_list="$security_ftobj_list snmp"$i".ft"
25185 echo "init_"$i"();" >> $security_init_file
25186 echo "shutdown_"$i"();" >> $security_shutdown_file
25187 echo "#include <net-snmp/library/$hfile>" >> $security_incl_file
25188 def_name="`printf "%s\n" "NETSNMP_SECMOD_$i" | sed "$as_sed_cpp"`"
25189 printf "%s\n" "#define $def_name 1" >>confdefs.h
25190
25191 done
25192
25193
25194
25195
25196
25197
25198
25199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $new_with_security" >&5
25200 printf "%s\n" "$new_with_security" >&6; }
25201
25202 cat >> configure-summary << EOF
25203 SNMPv3 Security Modules: $new_with_security
25204 EOF
25205
25206
25207 #
25208 # Handle the special case of KSM to see which crypto API we support
25209 #
25210
25211 rebuilt_new_with_security=
25212 already_checked_krb5=no
25213
25214 netsnmp_save_LIBS=$LIBS
25215 CRYPTO_LIBS=""
25216
25217 for sec in $new_with_security
25218 do
25219 if test "x$sec" = "xksm"; then
25220 if test "xyes" = "x$already_checked_krb5"; then
25221 continue
25222 else
25223 already_checked_krb5=yes
25224 fi
25225 fi
25226
25227 if test x$sec != xksm; then
25228 rebuilt_new_with_security="$rebuilt_new_with_security $sec"
25229 else
25230 if test no = $trykrb5; then
25231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configured not to use krb5. disabling ksm" >&5
25232 printf "%s\n" "$as_me: configured not to use krb5. disabling ksm" >&6;}
25233 continue
25234 fi
25235
25236 # Extract the first word of "krb5-config", so it can be a program name with args.
25237 set dummy krb5-config; ac_word=$2
25238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25239 printf %s "checking for $ac_word... " >&6; }
25240 if test ${ac_cv_path_krb5_config+y}
25241 then :
25242 printf %s "(cached) " >&6
25243 else case e in #(
25244 e) case $krb5_config in
25245 [\\/]* | ?:[\\/]*)
25246 ac_cv_path_krb5_config="$krb5_config" # Let the user override the test with a path.
25247 ;;
25248 *)
25249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25250 as_dummy="$krb5path/bin:$PATH"
25251 for as_dir in $as_dummy
25252 do
25253 IFS=$as_save_IFS
25254 case $as_dir in #(((
25255 '') as_dir=./ ;;
25256 */) ;;
25257 *) as_dir=$as_dir/ ;;
25258 esac
25259 for ac_exec_ext in '' $ac_executable_extensions; do
25260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25261 ac_cv_path_krb5_config="$as_dir$ac_word$ac_exec_ext"
25262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25263 break 2
25264 fi
25265 done
25266 done
25267 IFS=$as_save_IFS
25268
25269 test -z "$ac_cv_path_krb5_config" && ac_cv_path_krb5_config="no"
25270 ;;
25271 esac ;;
25272 esac
25273 fi
25274 krb5_config=$ac_cv_path_krb5_config
25275 if test -n "$krb5_config"; then
25276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_config" >&5
25277 printf "%s\n" "$krb5_config" >&6; }
25278 else
25279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25280 printf "%s\n" "no" >&6; }
25281 fi
25282
25283
25284
25285 if test no != $krb5_config; then
25286
25287 CPPFLAGS="$CPPFLAGS `$krb5_config --cflags`"
25288 CRYPTO_LIBS="$CRYPTO_LIBS `$krb5_config --libs |
25289 $SED 's/-flto=[^[:blank:]]*//g'`"
25290
25291 elif test $krb5path != no; then
25292
25293 if test "x$krb5path" != x -a -d $krb5path; then
25294 if test -d $krb5path/lib; then
25295 LDFLAGS="-L$krb5path/lib $LDFLAGS"
25296 fi
25297 if test -d $krb5path/include; then
25298 CPPFLAGS="-I$krb5path/include $CPPFLAGS"
25299 fi
25300 fi
25301
25302 else
25303
25304 if test "x/usr/kerberos" != x -a -d /usr/kerberos; then
25305 if test -d /usr/kerberos/lib; then
25306 LDFLAGS="-L/usr/kerberos/lib $LDFLAGS"
25307 fi
25308 if test -d /usr/kerberos/include; then
25309 CPPFLAGS="-I/usr/kerberos/include $CPPFLAGS"
25310 fi
25311 fi
25312
25313 fi
25314
25315
25316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5
25317 printf %s "checking for library containing krb5_init_context... " >&6; }
25318 if test ${netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS+y}
25319 then :
25320 printf %s "(cached) " >&6
25321 else case e in #(
25322 e) netsnmp_func_search_save_LIBS="$LIBS"
25323 netsnmp_target_val="$CRYPTO_LIBS"
25324 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
25325 netsnmp_result=no
25326 LIBS="${netsnmp_temp_LIBS}"
25327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25328 /* end confdefs.h. */
25329
25330 /* Override any GCC internal prototype to avoid an error.
25331 Use char because int might match the return type of a GCC
25332 builtin and then its argument prototype would still apply.
25333 The 'extern "C"' is for builds by C++ compilers;
25334 although this is not generally supported in C code supporting it here
25335 has little cost and some practical benefit (sr 110532). */
25336 #ifdef __cplusplus
25337 extern "C"
25338 #endif
25339 char krb5_init_context (void);
25340 int
25341 main (void)
25342 {
25343 return krb5_init_context ();
25344 ;
25345 return 0;
25346 }
25347 _ACEOF
25348 if ac_fn_c_try_link "$LINENO"
25349 then :
25350 netsnmp_result="none required"
25351 else case e in #(
25352 e) for netsnmp_cur_lib in krb5 ; do
25353 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
25354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25355 /* end confdefs.h. */
25356
25357 /* Override any GCC internal prototype to avoid an error.
25358 Use char because int might match the return type of a GCC
25359 builtin and then its argument prototype would still apply.
25360 The 'extern "C"' is for builds by C++ compilers;
25361 although this is not generally supported in C code supporting it here
25362 has little cost and some practical benefit (sr 110532). */
25363 #ifdef __cplusplus
25364 extern "C"
25365 #endif
25366 char krb5_init_context (void);
25367 int
25368 main (void)
25369 {
25370 return krb5_init_context ();
25371 ;
25372 return 0;
25373 }
25374 _ACEOF
25375 if ac_fn_c_try_link "$LINENO"
25376 then :
25377 netsnmp_result=-l${netsnmp_cur_lib}
25378 break
25379 fi
25380 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25381 conftest$ac_exeext conftest.$ac_ext
25382 done ;;
25383 esac
25384 fi
25385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25386 conftest$ac_exeext conftest.$ac_ext
25387 LIBS="${netsnmp_func_search_save_LIBS}"
25388 netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS="${netsnmp_result}" ;;
25389 esac
25390 fi
25391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS" >&5
25392 printf "%s\n" "$netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS" >&6; }
25393 if test "x${netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS}" != "xno" ; then
25394 if test "x${netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS}" != "xnone required" ; then
25395 CRYPTO_LIBS="${netsnmp_result} ${netsnmp_target_val}"
25396 fi
25397 ac_cv_have_krb5=yes
25398 else
25399 ac_cv_have_krb5=no
25400 fi
25401
25402
25403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing error_message" >&5
25404 printf %s "checking for library containing error_message... " >&6; }
25405 if test ${netsnmp_cv_func_error_message_CRYPTO_LIBS+y}
25406 then :
25407 printf %s "(cached) " >&6
25408 else case e in #(
25409 e) netsnmp_func_search_save_LIBS="$LIBS"
25410 netsnmp_target_val="$CRYPTO_LIBS"
25411 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
25412 netsnmp_result=no
25413 LIBS="${netsnmp_temp_LIBS}"
25414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25415 /* end confdefs.h. */
25416
25417 /* Override any GCC internal prototype to avoid an error.
25418 Use char because int might match the return type of a GCC
25419 builtin and then its argument prototype would still apply.
25420 The 'extern "C"' is for builds by C++ compilers;
25421 although this is not generally supported in C code supporting it here
25422 has little cost and some practical benefit (sr 110532). */
25423 #ifdef __cplusplus
25424 extern "C"
25425 #endif
25426 char error_message (void);
25427 int
25428 main (void)
25429 {
25430 return error_message ();
25431 ;
25432 return 0;
25433 }
25434 _ACEOF
25435 if ac_fn_c_try_link "$LINENO"
25436 then :
25437 netsnmp_result="none required"
25438 else case e in #(
25439 e) for netsnmp_cur_lib in com_err ; do
25440 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
25441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25442 /* end confdefs.h. */
25443
25444 /* Override any GCC internal prototype to avoid an error.
25445 Use char because int might match the return type of a GCC
25446 builtin and then its argument prototype would still apply.
25447 The 'extern "C"' is for builds by C++ compilers;
25448 although this is not generally supported in C code supporting it here
25449 has little cost and some practical benefit (sr 110532). */
25450 #ifdef __cplusplus
25451 extern "C"
25452 #endif
25453 char error_message (void);
25454 int
25455 main (void)
25456 {
25457 return error_message ();
25458 ;
25459 return 0;
25460 }
25461 _ACEOF
25462 if ac_fn_c_try_link "$LINENO"
25463 then :
25464 netsnmp_result=-l${netsnmp_cur_lib}
25465 break
25466 fi
25467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25468 conftest$ac_exeext conftest.$ac_ext
25469 done ;;
25470 esac
25471 fi
25472 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25473 conftest$ac_exeext conftest.$ac_ext
25474 LIBS="${netsnmp_func_search_save_LIBS}"
25475 netsnmp_cv_func_error_message_CRYPTO_LIBS="${netsnmp_result}" ;;
25476 esac
25477 fi
25478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_error_message_CRYPTO_LIBS" >&5
25479 printf "%s\n" "$netsnmp_cv_func_error_message_CRYPTO_LIBS" >&6; }
25480 if test "x${netsnmp_cv_func_error_message_CRYPTO_LIBS}" != "xno" ; then
25481 if test "x${netsnmp_cv_func_error_message_CRYPTO_LIBS}" != "xnone required" ; then
25482 CRYPTO_LIBS="${netsnmp_result} ${netsnmp_target_val}"
25483 fi
25484
25485
25486 fi
25487
25488
25489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5" >&5
25490 printf %s "checking for krb5... " >&6; }
25491 if test $ac_cv_have_krb5 = no; then
25492 if test "x$askedkrb5" = "xyes"; then
25493 as_fn_error $? "Asked to use krb5 but I couldn't find it." "$LINENO" 5
25494 fi
25495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no. disabling ksm" >&5
25496 printf "%s\n" "no. disabling ksm" >&6; }
25497 continue
25498 fi
25499
25500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25501 printf "%s\n" "yes" >&6; }
25502 rebuilt_new_with_security="$rebuilt_new_with_security ksm"
25503
25504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for heimdal" >&5
25505 printf %s "checking for heimdal... " >&6; }
25506 if test ${ac_cv_heimdal+y}
25507 then :
25508 printf %s "(cached) " >&6
25509 else case e in #(
25510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25511 /* end confdefs.h. */
25512 #include <krb5.h>
25513 int
25514 main (void)
25515 {
25516 const char *v = heimdal_version;
25517 ;
25518 return 0;
25519 }
25520 _ACEOF
25521 if ac_fn_c_try_compile "$LINENO"
25522 then :
25523 ac_cv_heimdal=yes
25524 else case e in #(
25525 e) ac_cv_heimdal=no
25526 ;;
25527 esac
25528 fi
25529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25530 esac
25531 fi
25532
25533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_heimdal" >&5
25534 printf "%s\n" "$ac_cv_heimdal" >&6; }
25535 if test $ac_cv_heimdal = yes; then
25536
25537 printf "%s\n" "#define NETSNMP_USE_KERBEROS_HEIMDAL 1" >>confdefs.h
25538
25539 if test no = $krb5_config; then
25540 CRYPTO_LIBS="$CRYPTO_LIBS -lkrb5 -lasn1 -lcom_err -lroken"
25541 fi
25542 elif test no = $krb5_config; then
25543 CRYPTO_LIBS="$CRYPTO_LIBS -lkrb5 -lcom_err"
25544 fi
25545
25546 if test ${ac_cv_NETSNMP_USE_KERBEROS_MIT+y}
25547 then :
25548 printf %s "(cached) " >&6
25549 else case e in #(
25550 e)
25551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5
25552 printf %s "checking for library containing krb5_init_context... " >&6; }
25553 if test ${netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS+y}
25554 then :
25555 printf %s "(cached) " >&6
25556 else case e in #(
25557 e) netsnmp_func_search_save_LIBS="$LIBS"
25558 netsnmp_target_val="$CRYPTO_LIBS"
25559 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
25560 netsnmp_result=no
25561 LIBS="${netsnmp_temp_LIBS}"
25562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563 /* end confdefs.h. */
25564
25565 /* Override any GCC internal prototype to avoid an error.
25566 Use char because int might match the return type of a GCC
25567 builtin and then its argument prototype would still apply.
25568 The 'extern "C"' is for builds by C++ compilers;
25569 although this is not generally supported in C code supporting it here
25570 has little cost and some practical benefit (sr 110532). */
25571 #ifdef __cplusplus
25572 extern "C"
25573 #endif
25574 char krb5_init_context (void);
25575 int
25576 main (void)
25577 {
25578 return krb5_init_context ();
25579 ;
25580 return 0;
25581 }
25582 _ACEOF
25583 if ac_fn_c_try_link "$LINENO"
25584 then :
25585 netsnmp_result="none required"
25586 else case e in #(
25587 e) for netsnmp_cur_lib in k5crypto ; do
25588 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
25589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25590 /* end confdefs.h. */
25591
25592 /* Override any GCC internal prototype to avoid an error.
25593 Use char because int might match the return type of a GCC
25594 builtin and then its argument prototype would still apply.
25595 The 'extern "C"' is for builds by C++ compilers;
25596 although this is not generally supported in C code supporting it here
25597 has little cost and some practical benefit (sr 110532). */
25598 #ifdef __cplusplus
25599 extern "C"
25600 #endif
25601 char krb5_init_context (void);
25602 int
25603 main (void)
25604 {
25605 return krb5_init_context ();
25606 ;
25607 return 0;
25608 }
25609 _ACEOF
25610 if ac_fn_c_try_link "$LINENO"
25611 then :
25612 netsnmp_result=-l${netsnmp_cur_lib}
25613 break
25614 fi
25615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25616 conftest$ac_exeext conftest.$ac_ext
25617 done ;;
25618 esac
25619 fi
25620 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25621 conftest$ac_exeext conftest.$ac_ext
25622 LIBS="${netsnmp_func_search_save_LIBS}"
25623 netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS="${netsnmp_result}" ;;
25624 esac
25625 fi
25626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS" >&5
25627 printf "%s\n" "$netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS" >&6; }
25628 if test "x${netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS}" != "xno" ; then
25629 if test "x${netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS}" != "xnone required" ; then
25630 CRYPTO_LIBS="${netsnmp_result} ${netsnmp_target_val}"
25631 fi
25632 ac_cv_NETSNMP_USE_KERBEROS_MIT=yes
25633 else
25634 ac_cv_NETSNMP_USE_KERBEROS_MIT=no
25635 fi
25636
25637 ;;
25638 esac
25639 fi
25640
25641
25642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_c_keyed_checksum_types" >&5
25643 printf %s "checking for library containing krb5_c_keyed_checksum_types... " >&6; }
25644 if test ${netsnmp_cv_func_krb5_c_keyed_checksum_types_CRYPTO_LIBS+y}
25645 then :
25646 printf %s "(cached) " >&6
25647 else case e in #(
25648 e) netsnmp_func_search_save_LIBS="$LIBS"
25649 netsnmp_target_val="$CRYPTO_LIBS"
25650 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
25651 netsnmp_result=no
25652 LIBS="${netsnmp_temp_LIBS}"
25653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25654 /* end confdefs.h. */
25655
25656 /* Override any GCC internal prototype to avoid an error.
25657 Use char because int might match the return type of a GCC
25658 builtin and then its argument prototype would still apply.
25659 The 'extern "C"' is for builds by C++ compilers;
25660 although this is not generally supported in C code supporting it here
25661 has little cost and some practical benefit (sr 110532). */
25662 #ifdef __cplusplus
25663 extern "C"
25664 #endif
25665 char krb5_c_keyed_checksum_types (void);
25666 int
25667 main (void)
25668 {
25669 return krb5_c_keyed_checksum_types ();
25670 ;
25671 return 0;
25672 }
25673 _ACEOF
25674 if ac_fn_c_try_link "$LINENO"
25675 then :
25676 netsnmp_result="none required"
25677 else case e in #(
25678 e) for netsnmp_cur_lib in k5crypto ; do
25679 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
25680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25681 /* end confdefs.h. */
25682
25683 /* Override any GCC internal prototype to avoid an error.
25684 Use char because int might match the return type of a GCC
25685 builtin and then its argument prototype would still apply.
25686 The 'extern "C"' is for builds by C++ compilers;
25687 although this is not generally supported in C code supporting it here
25688 has little cost and some practical benefit (sr 110532). */
25689 #ifdef __cplusplus
25690 extern "C"
25691 #endif
25692 char krb5_c_keyed_checksum_types (void);
25693 int
25694 main (void)
25695 {
25696 return krb5_c_keyed_checksum_types ();
25697 ;
25698 return 0;
25699 }
25700 _ACEOF
25701 if ac_fn_c_try_link "$LINENO"
25702 then :
25703 netsnmp_result=-l${netsnmp_cur_lib}
25704 break
25705 fi
25706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25707 conftest$ac_exeext conftest.$ac_ext
25708 done ;;
25709 esac
25710 fi
25711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25712 conftest$ac_exeext conftest.$ac_ext
25713 LIBS="${netsnmp_func_search_save_LIBS}"
25714 netsnmp_cv_func_krb5_c_keyed_checksum_types_CRYPTO_LIBS="${netsnmp_result}" ;;
25715 esac
25716 fi
25717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_krb5_c_keyed_checksum_types_CRYPTO_LIBS" >&5
25718 printf "%s\n" "$netsnmp_cv_func_krb5_c_keyed_checksum_types_CRYPTO_LIBS" >&6; }
25719 if test "x${netsnmp_cv_func_krb5_c_keyed_checksum_types_CRYPTO_LIBS}" != "xno" ; then
25720 if test "x${netsnmp_cv_func_krb5_c_keyed_checksum_types_CRYPTO_LIBS}" != "xnone required" ; then
25721 CRYPTO_LIBS="${netsnmp_result} ${netsnmp_target_val}"
25722 fi
25723
25724
25725 fi
25726
25727
25728 ac_fn_c_check_member "$LINENO" "krb5_keyblock" "enctype" "ac_cv_member_krb5_keyblock_enctype" "#include <krb5.h>
25729 "
25730 if test "x$ac_cv_member_krb5_keyblock_enctype" = xyes
25731 then :
25732
25733 printf "%s\n" "#define HAVE_KRB5_KEYBLOCK_ENCTYPE 1" >>confdefs.h
25734
25735
25736 else case e in #(
25737 e) ac_cv_NETSNMP_USE_KERBEROS_MIT=no ;;
25738 esac
25739 fi
25740
25741
25742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see which crypto API we need to use" >&5
25743 printf %s "checking to see which crypto API we need to use... " >&6; }
25744 if test yes = $ac_cv_NETSNMP_USE_KERBEROS_MIT; then
25745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: new MIT crypto API" >&5
25746 printf "%s\n" "new MIT crypto API" >&6; }
25747
25748 printf "%s\n" "#define NETSNMP_USE_KERBEROS_MIT 1" >>confdefs.h
25749
25750 else
25751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: old MIT crypto API" >&5
25752 printf "%s\n" "old MIT crypto API" >&6; }
25753 fi
25754 LIBS="$CRYPTO_LIBS $netsnmp_save_LIBS"
25755 ac_fn_c_check_func "$LINENO" "krb5_auth_con_getsendsubkey" "ac_cv_func_krb5_auth_con_getsendsubkey"
25756 if test "x$ac_cv_func_krb5_auth_con_getsendsubkey" = xyes
25757 then :
25758 printf "%s\n" "#define HAVE_KRB5_AUTH_CON_GETSENDSUBKEY 1" >>confdefs.h
25759
25760 fi
25761 ac_fn_c_check_func "$LINENO" "krb5_auth_con_getrecvsubkey" "ac_cv_func_krb5_auth_con_getrecvsubkey"
25762 if test "x$ac_cv_func_krb5_auth_con_getrecvsubkey" = xyes
25763 then :
25764 printf "%s\n" "#define HAVE_KRB5_AUTH_CON_GETRECVSUBKEY 1" >>confdefs.h
25765
25766 fi
25767
25768 fi
25769 done
25770
25771 LNETSNMPLIBS="$LNETSNMPLIBS $CRYPTO_LIBS"
25772 LIBS=$netsnmp_save_LIBS
25773
25774 new_with_security=$rebuilt_new_with_security
25775
25776 #
25777 # Detect lm_sensors version
25778 #
25779 if test "x$ac_cv_header_sensors_sensors_h" = "xyes"; then
25780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
25781 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
25782 if test ${ac_cv_c_undeclared_builtin_options+y}
25783 then :
25784 printf %s "(cached) " >&6
25785 else case e in #(
25786 e) ac_save_CFLAGS=$CFLAGS
25787 ac_cv_c_undeclared_builtin_options='cannot detect'
25788 for ac_arg in '' -fno-builtin; do
25789 CFLAGS="$ac_save_CFLAGS $ac_arg"
25790 # This test program should *not* compile successfully.
25791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25792 /* end confdefs.h. */
25793
25794 int
25795 main (void)
25796 {
25797 (void) strchr;
25798 ;
25799 return 0;
25800 }
25801 _ACEOF
25802 if ac_fn_c_try_compile "$LINENO"
25803 then :
25804
25805 else case e in #(
25806 e) # This test program should compile successfully.
25807 # No library function is consistently available on
25808 # freestanding implementations, so test against a dummy
25809 # declaration. Include always-available headers on the
25810 # off chance that they somehow elicit warnings.
25811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25812 /* end confdefs.h. */
25813 #include <float.h>
25814 #include <limits.h>
25815 #include <stdarg.h>
25816 #include <stddef.h>
25817 extern void ac_decl (int, char *);
25818
25819 int
25820 main (void)
25821 {
25822 (void) ac_decl (0, (char *) 0);
25823 (void) ac_decl;
25824
25825 ;
25826 return 0;
25827 }
25828 _ACEOF
25829 if ac_fn_c_try_compile "$LINENO"
25830 then :
25831 if test x"$ac_arg" = x
25832 then :
25833 ac_cv_c_undeclared_builtin_options='none needed'
25834 else case e in #(
25835 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
25836 esac
25837 fi
25838 break
25839 fi
25840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25841 esac
25842 fi
25843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25844 done
25845 CFLAGS=$ac_save_CFLAGS
25846 ;;
25847 esac
25848 fi
25849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
25850 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
25851 case $ac_cv_c_undeclared_builtin_options in #(
25852 'cannot detect') :
25853 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25854 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25855 as_fn_error $? "cannot make $CC report undeclared builtins
25856 See 'config.log' for more details" "$LINENO" 5; } ;; #(
25857 'none needed') :
25858 ac_c_undeclared_builtin_options='' ;; #(
25859 *) :
25860 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
25861 esac
25862
25863 ac_fn_check_decl "$LINENO" "sensors_get_all_subfeatures" "ac_cv_have_decl_sensors_get_all_subfeatures" "#include <sensors/sensors.h>
25864 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25865 if test "x$ac_cv_have_decl_sensors_get_all_subfeatures" = xyes
25866 then :
25867 ac_have_decl=1
25868 else case e in #(
25869 e) ac_have_decl=0 ;;
25870 esac
25871 fi
25872 printf "%s\n" "#define HAVE_DECL_SENSORS_GET_ALL_SUBFEATURES $ac_have_decl" >>confdefs.h
25873 if test $ac_have_decl = 1
25874 then :
25875
25876 printf "%s\n" "#define NETSNMP_USE_SENSORS_V3 1" >>confdefs.h
25877
25878 fi
25879
25880 fi
25881
25882 cat >confcache <<\_ACEOF
25883 # This file is a shell script that caches the results of configure
25884 # tests run on this system so they can be shared between configure
25885 # scripts and configure runs, see configure's option --config-cache.
25886 # It is not useful on other systems. If it contains results you don't
25887 # want to keep, you may remove or edit it.
25888 #
25889 # config.status only pays attention to the cache file if you give it
25890 # the --recheck option to rerun configure.
25891 #
25892 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
25893 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
25894 # following values.
25895
25896 _ACEOF
25897
25898 # The following way of writing the cache mishandles newlines in values,
25899 # but we know of no workaround that is simple, portable, and efficient.
25900 # So, we kill variables containing newlines.
25901 # Ultrix sh set writes to stderr and can't be redirected directly,
25902 # and sets the high bit in the cache file unless we assign to the vars.
25903 (
25904 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25905 eval ac_val=\$$ac_var
25906 case $ac_val in #(
25907 *${as_nl}*)
25908 case $ac_var in #(
25909 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25910 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25911 esac
25912 case $ac_var in #(
25913 _ | IFS | as_nl) ;; #(
25914 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25915 *) { eval $ac_var=; unset $ac_var;} ;;
25916 esac ;;
25917 esac
25918 done
25919
25920 (set) 2>&1 |
25921 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25922 *${as_nl}ac_space=\ *)
25923 # 'set' does not quote correctly, so add quotes: double-quote
25924 # substitution turns \\\\ into \\, and sed turns \\ into \.
25925 sed -n \
25926 "s/'/'\\\\''/g;
25927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25928 ;; #(
25929 *)
25930 # 'set' quotes correctly as required by POSIX, so do not add quotes.
25931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25932 ;;
25933 esac |
25934 sort
25935 ) |
25936 sed '
25937 /^ac_cv_env_/b end
25938 t clear
25939 :clear
25940 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
25941 t end
25942 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25943 :end' >>confcache
25944 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25945 if test -w "$cache_file"; then
25946 if test "x$cache_file" != "x/dev/null"; then
25947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25948 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
25949 if test ! -f "$cache_file" || test -h "$cache_file"; then
25950 cat confcache >"$cache_file"
25951 else
25952 case $cache_file in #(
25953 */* | ?:*)
25954 mv -f confcache "$cache_file"$$ &&
25955 mv -f "$cache_file"$$ "$cache_file" ;; #(
25956 *)
25957 mv -f confcache "$cache_file" ;;
25958 esac
25959 fi
25960 fi
25961 else
25962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25963 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
25964 fi
25965 fi
25966 rm -f confcache
25967 # -*- autoconf -*-
25968 #########################################
25969 ##
25970 # Checks for libraries that are run
25971 # before the agent module tests.
25972 ##
25973 #########################################
25974
25975
25976 ##
25977 # RPM checks
25978 #
25979 ##
25980 ac_fn_c_check_header_compile "$LINENO" "rpm/rpmlib.h" "ac_cv_header_rpm_rpmlib_h" "$ac_includes_default"
25981 if test "x$ac_cv_header_rpm_rpmlib_h" = xyes
25982 then :
25983 printf "%s\n" "#define HAVE_RPM_RPMLIB_H 1" >>confdefs.h
25984
25985 fi
25986 ac_fn_c_check_header_compile "$LINENO" "rpm/header.h" "ac_cv_header_rpm_header_h" "$ac_includes_default"
25987 if test "x$ac_cv_header_rpm_header_h" = xyes
25988 then :
25989 printf "%s\n" "#define HAVE_RPM_HEADER_H 1" >>confdefs.h
25990
25991 fi
25992
25993
25994 ac_fn_c_check_header_compile "$LINENO" "rpm/rpmlib.h" "ac_cv_header_rpm_rpmlib_h" "$ac_includes_default"
25995 if test "x$ac_cv_header_rpm_rpmlib_h" = xyes
25996 then :
25997 rpmlib_h=yes
25998 else case e in #(
25999 e) rpmlib_h=no ;;
26000 esac
26001 fi
26002
26003 ac_fn_c_check_header_compile "$LINENO" "rpm/header.h" "ac_cv_header_rpm_header_h" "$ac_includes_default"
26004 if test "x$ac_cv_header_rpm_header_h" = xyes
26005 then :
26006 rpmheader_h=yes
26007 else case e in #(
26008 e) rpmheader_h=no ;;
26009 esac
26010 fi
26011
26012
26013 if test "x$rpmheader_h" = "xno" -o "x$rpmlib_h" = "xno" ; then
26014 if test "x$with_rpm" = "xyes" ; then
26015 as_fn_error $? "Could not find either the RPM header files needed and was specifically asked to use RPM support" "$LINENO" 5
26016 else
26017 with_rpm=no
26018 fi
26019 fi
26020
26021 #
26022 # rpm libraries only needed for the host resources mib software
26023 # installed tables (on linux in particular)
26024 #
26025 if test "x$with_rpm" != "xno"; then
26026 # ARG. RPM is a real pain.
26027 # FWIW librpm.la, librpmio.la, and libpopt.la have correct dependencies.
26028 _rpmlibs=""
26029
26030 # rpm-4.0.x needs rpmio.
26031
26032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing rpmGetPath" >&5
26033 printf %s "checking for library containing rpmGetPath... " >&6; }
26034 if test ${netsnmp_cv_func_rpmGetPath__rpmlibs+y}
26035 then :
26036 printf %s "(cached) " >&6
26037 else case e in #(
26038 e) netsnmp_func_search_save_LIBS="$LIBS"
26039 netsnmp_target_val="$_rpmlibs"
26040 netsnmp_temp_LIBS="${netsnmp_target_val} $LMIBLIBS ${LIBS}"
26041 netsnmp_result=no
26042 LIBS="${netsnmp_temp_LIBS}"
26043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26044 /* end confdefs.h. */
26045
26046 /* Override any GCC internal prototype to avoid an error.
26047 Use char because int might match the return type of a GCC
26048 builtin and then its argument prototype would still apply.
26049 The 'extern "C"' is for builds by C++ compilers;
26050 although this is not generally supported in C code supporting it here
26051 has little cost and some practical benefit (sr 110532). */
26052 #ifdef __cplusplus
26053 extern "C"
26054 #endif
26055 char rpmGetPath (void);
26056 int
26057 main (void)
26058 {
26059 return rpmGetPath ();
26060 ;
26061 return 0;
26062 }
26063 _ACEOF
26064 if ac_fn_c_try_link "$LINENO"
26065 then :
26066 netsnmp_result="none required"
26067 else case e in #(
26068 e) for netsnmp_cur_lib in rpmio ; do
26069 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
26070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26071 /* end confdefs.h. */
26072
26073 /* Override any GCC internal prototype to avoid an error.
26074 Use char because int might match the return type of a GCC
26075 builtin and then its argument prototype would still apply.
26076 The 'extern "C"' is for builds by C++ compilers;
26077 although this is not generally supported in C code supporting it here
26078 has little cost and some practical benefit (sr 110532). */
26079 #ifdef __cplusplus
26080 extern "C"
26081 #endif
26082 char rpmGetPath (void);
26083 int
26084 main (void)
26085 {
26086 return rpmGetPath ();
26087 ;
26088 return 0;
26089 }
26090 _ACEOF
26091 if ac_fn_c_try_link "$LINENO"
26092 then :
26093 netsnmp_result=-l${netsnmp_cur_lib}
26094 break
26095 fi
26096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26097 conftest$ac_exeext conftest.$ac_ext
26098 done ;;
26099 esac
26100 fi
26101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26102 conftest$ac_exeext conftest.$ac_ext
26103 LIBS="${netsnmp_func_search_save_LIBS}"
26104 netsnmp_cv_func_rpmGetPath__rpmlibs="${netsnmp_result}" ;;
26105 esac
26106 fi
26107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_rpmGetPath__rpmlibs" >&5
26108 printf "%s\n" "$netsnmp_cv_func_rpmGetPath__rpmlibs" >&6; }
26109 if test "x${netsnmp_cv_func_rpmGetPath__rpmlibs}" != "xno" ; then
26110 if test "x${netsnmp_cv_func_rpmGetPath__rpmlibs}" != "xnone required" ; then
26111 _rpmlibs="${netsnmp_result} ${netsnmp_target_val}"
26112 fi
26113
26114
26115 fi
26116
26117
26118 # now check for rpm using the appropriate libraries.
26119
26120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing rpmReadConfigFiles" >&5
26121 printf %s "checking for library containing rpmReadConfigFiles... " >&6; }
26122 if test ${netsnmp_cv_func_rpmReadConfigFiles__rpmlibs+y}
26123 then :
26124 printf %s "(cached) " >&6
26125 else case e in #(
26126 e) netsnmp_func_search_save_LIBS="$LIBS"
26127 netsnmp_target_val="$_rpmlibs"
26128 netsnmp_temp_LIBS="${netsnmp_target_val} $LMIBLIBS ${LIBS}"
26129 netsnmp_result=no
26130 LIBS="${netsnmp_temp_LIBS}"
26131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26132 /* end confdefs.h. */
26133
26134 /* Override any GCC internal prototype to avoid an error.
26135 Use char because int might match the return type of a GCC
26136 builtin and then its argument prototype would still apply.
26137 The 'extern "C"' is for builds by C++ compilers;
26138 although this is not generally supported in C code supporting it here
26139 has little cost and some practical benefit (sr 110532). */
26140 #ifdef __cplusplus
26141 extern "C"
26142 #endif
26143 char rpmReadConfigFiles (void);
26144 int
26145 main (void)
26146 {
26147 return rpmReadConfigFiles ();
26148 ;
26149 return 0;
26150 }
26151 _ACEOF
26152 if ac_fn_c_try_link "$LINENO"
26153 then :
26154 netsnmp_result="none required"
26155 else case e in #(
26156 e) for netsnmp_cur_lib in rpm ; do
26157 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
26158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26159 /* end confdefs.h. */
26160
26161 /* Override any GCC internal prototype to avoid an error.
26162 Use char because int might match the return type of a GCC
26163 builtin and then its argument prototype would still apply.
26164 The 'extern "C"' is for builds by C++ compilers;
26165 although this is not generally supported in C code supporting it here
26166 has little cost and some practical benefit (sr 110532). */
26167 #ifdef __cplusplus
26168 extern "C"
26169 #endif
26170 char rpmReadConfigFiles (void);
26171 int
26172 main (void)
26173 {
26174 return rpmReadConfigFiles ();
26175 ;
26176 return 0;
26177 }
26178 _ACEOF
26179 if ac_fn_c_try_link "$LINENO"
26180 then :
26181 netsnmp_result=-l${netsnmp_cur_lib}
26182 break
26183 fi
26184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26185 conftest$ac_exeext conftest.$ac_ext
26186 done ;;
26187 esac
26188 fi
26189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26190 conftest$ac_exeext conftest.$ac_ext
26191 LIBS="${netsnmp_func_search_save_LIBS}"
26192 netsnmp_cv_func_rpmReadConfigFiles__rpmlibs="${netsnmp_result}" ;;
26193 esac
26194 fi
26195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_rpmReadConfigFiles__rpmlibs" >&5
26196 printf "%s\n" "$netsnmp_cv_func_rpmReadConfigFiles__rpmlibs" >&6; }
26197 if test "x${netsnmp_cv_func_rpmReadConfigFiles__rpmlibs}" != "xno" ; then
26198 if test "x${netsnmp_cv_func_rpmReadConfigFiles__rpmlibs}" != "xnone required" ; then
26199 _rpmlibs="${netsnmp_result} ${netsnmp_target_val}"
26200 fi
26201
26202
26203 printf "%s\n" "#define HAVE_LIBRPM 1" >>confdefs.h
26204
26205 LMIBLIBS="$_rpmlibs $LMIBLIBS"
26206
26207
26208 fi
26209
26210
26211 # rpm 4.6 has incompatible API, turn on the legacy one
26212
26213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing headerGet" >&5
26214 printf %s "checking for library containing headerGet... " >&6; }
26215 if test ${netsnmp_cv_func_headerGet_LIBS+y}
26216 then :
26217 printf %s "(cached) " >&6
26218 else case e in #(
26219 e) netsnmp_func_search_save_LIBS="$LIBS"
26220 netsnmp_target_val="$LIBS"
26221 netsnmp_temp_LIBS="$LMIBLIBS ${LIBS}"
26222 netsnmp_result=no
26223 LIBS="${netsnmp_temp_LIBS}"
26224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26225 /* end confdefs.h. */
26226
26227 /* Override any GCC internal prototype to avoid an error.
26228 Use char because int might match the return type of a GCC
26229 builtin and then its argument prototype would still apply.
26230 The 'extern "C"' is for builds by C++ compilers;
26231 although this is not generally supported in C code supporting it here
26232 has little cost and some practical benefit (sr 110532). */
26233 #ifdef __cplusplus
26234 extern "C"
26235 #endif
26236 char headerGet (void);
26237 int
26238 main (void)
26239 {
26240 return headerGet ();
26241 ;
26242 return 0;
26243 }
26244 _ACEOF
26245 if ac_fn_c_try_link "$LINENO"
26246 then :
26247 netsnmp_result="none required"
26248 fi
26249 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26250 conftest$ac_exeext conftest.$ac_ext
26251 LIBS="${netsnmp_func_search_save_LIBS}"
26252 netsnmp_cv_func_headerGet_LIBS="${netsnmp_result}" ;;
26253 esac
26254 fi
26255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_headerGet_LIBS" >&5
26256 printf "%s\n" "$netsnmp_cv_func_headerGet_LIBS" >&6; }
26257 if test "x${netsnmp_cv_func_headerGet_LIBS}" != "xno" ; then
26258 if test "x${netsnmp_cv_func_headerGet_LIBS}" != "xnone required" ; then
26259 LIBS="${netsnmp_result} ${netsnmp_target_val}"
26260 fi
26261
26262
26263 printf "%s\n" "#define HAVE_HEADERGET 1" >>confdefs.h
26264
26265
26266 fi
26267
26268 fi
26269
26270 #
26271 # getfsstat/getvfsstat
26272 #
26273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getfsstat" >&5
26274 printf %s "checking for library containing getfsstat... " >&6; }
26275 if test ${ac_cv_search_getfsstat+y}
26276 then :
26277 printf %s "(cached) " >&6
26278 else case e in #(
26279 e) ac_func_search_save_LIBS=$LIBS
26280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26281 /* end confdefs.h. */
26282
26283 /* Override any GCC internal prototype to avoid an error.
26284 Use char because int might match the return type of a GCC
26285 builtin and then its argument prototype would still apply.
26286 The 'extern "C"' is for builds by C++ compilers;
26287 although this is not generally supported in C code supporting it here
26288 has little cost and some practical benefit (sr 110532). */
26289 #ifdef __cplusplus
26290 extern "C"
26291 #endif
26292 char getfsstat (void);
26293 int
26294 main (void)
26295 {
26296 return getfsstat ();
26297 ;
26298 return 0;
26299 }
26300 _ACEOF
26301 for ac_lib in '' nbutil
26302 do
26303 if test -z "$ac_lib"; then
26304 ac_res="none required"
26305 else
26306 ac_res=-l$ac_lib
26307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26308 fi
26309 if ac_fn_c_try_link "$LINENO"
26310 then :
26311 ac_cv_search_getfsstat=$ac_res
26312 fi
26313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26314 conftest$ac_exeext
26315 if test ${ac_cv_search_getfsstat+y}
26316 then :
26317 break
26318 fi
26319 done
26320 if test ${ac_cv_search_getfsstat+y}
26321 then :
26322
26323 else case e in #(
26324 e) ac_cv_search_getfsstat=no ;;
26325 esac
26326 fi
26327 rm conftest.$ac_ext
26328 LIBS=$ac_func_search_save_LIBS ;;
26329 esac
26330 fi
26331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getfsstat" >&5
26332 printf "%s\n" "$ac_cv_search_getfsstat" >&6; }
26333 ac_res=$ac_cv_search_getfsstat
26334 if test "$ac_res" != no
26335 then :
26336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26337
26338 fi
26339
26340 ac_fn_c_check_func "$LINENO" "getfsstat" "ac_cv_func_getfsstat"
26341 if test "x$ac_cv_func_getfsstat" = xyes
26342 then :
26343 printf "%s\n" "#define HAVE_GETFSSTAT 1" >>confdefs.h
26344
26345 fi
26346
26347 ac_fn_c_check_func "$LINENO" "getvfsstat" "ac_cv_func_getvfsstat"
26348 if test "x$ac_cv_func_getvfsstat" = xyes
26349 then :
26350 printf "%s\n" "#define HAVE_GETVFSSTAT 1" >>confdefs.h
26351
26352 fi
26353
26354 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26355 # -lseq on Dynix/PTX, -lgen on Unixware.
26356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
26357 printf %s "checking for library containing getmntent... " >&6; }
26358 if test ${ac_cv_search_getmntent+y}
26359 then :
26360 printf %s "(cached) " >&6
26361 else case e in #(
26362 e) ac_func_search_save_LIBS=$LIBS
26363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26364 /* end confdefs.h. */
26365
26366 /* Override any GCC internal prototype to avoid an error.
26367 Use char because int might match the return type of a GCC
26368 builtin and then its argument prototype would still apply.
26369 The 'extern "C"' is for builds by C++ compilers;
26370 although this is not generally supported in C code supporting it here
26371 has little cost and some practical benefit (sr 110532). */
26372 #ifdef __cplusplus
26373 extern "C"
26374 #endif
26375 char getmntent (void);
26376 int
26377 main (void)
26378 {
26379 return getmntent ();
26380 ;
26381 return 0;
26382 }
26383 _ACEOF
26384 for ac_lib in '' sun seq gen
26385 do
26386 if test -z "$ac_lib"; then
26387 ac_res="none required"
26388 else
26389 ac_res=-l$ac_lib
26390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26391 fi
26392 if ac_fn_c_try_link "$LINENO"
26393 then :
26394 ac_cv_search_getmntent=$ac_res
26395 fi
26396 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26397 conftest$ac_exeext
26398 if test ${ac_cv_search_getmntent+y}
26399 then :
26400 break
26401 fi
26402 done
26403 if test ${ac_cv_search_getmntent+y}
26404 then :
26405
26406 else case e in #(
26407 e) ac_cv_search_getmntent=no ;;
26408 esac
26409 fi
26410 rm conftest.$ac_ext
26411 LIBS=$ac_func_search_save_LIBS ;;
26412 esac
26413 fi
26414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
26415 printf "%s\n" "$ac_cv_search_getmntent" >&6; }
26416 ac_res=$ac_cv_search_getmntent
26417 if test "$ac_res" != no
26418 then :
26419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26420 ac_cv_func_getmntent=yes
26421
26422 printf "%s\n" "#define HAVE_GETMNTENT 1" >>confdefs.h
26423
26424 else case e in #(
26425 e) ac_cv_func_getmntent=no ;;
26426 esac
26427 fi
26428
26429
26430
26431 #
26432 # kinfo_get_cpus
26433 #
26434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_get_cpus" >&5
26435 printf %s "checking for library containing kinfo_get_cpus... " >&6; }
26436 if test ${ac_cv_search_kinfo_get_cpus+y}
26437 then :
26438 printf %s "(cached) " >&6
26439 else case e in #(
26440 e) ac_func_search_save_LIBS=$LIBS
26441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26442 /* end confdefs.h. */
26443
26444 /* Override any GCC internal prototype to avoid an error.
26445 Use char because int might match the return type of a GCC
26446 builtin and then its argument prototype would still apply.
26447 The 'extern "C"' is for builds by C++ compilers;
26448 although this is not generally supported in C code supporting it here
26449 has little cost and some practical benefit (sr 110532). */
26450 #ifdef __cplusplus
26451 extern "C"
26452 #endif
26453 char kinfo_get_cpus (void);
26454 int
26455 main (void)
26456 {
26457 return kinfo_get_cpus ();
26458 ;
26459 return 0;
26460 }
26461 _ACEOF
26462 for ac_lib in '' kinfo
26463 do
26464 if test -z "$ac_lib"; then
26465 ac_res="none required"
26466 else
26467 ac_res=-l$ac_lib
26468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26469 fi
26470 if ac_fn_c_try_link "$LINENO"
26471 then :
26472 ac_cv_search_kinfo_get_cpus=$ac_res
26473 fi
26474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26475 conftest$ac_exeext
26476 if test ${ac_cv_search_kinfo_get_cpus+y}
26477 then :
26478 break
26479 fi
26480 done
26481 if test ${ac_cv_search_kinfo_get_cpus+y}
26482 then :
26483
26484 else case e in #(
26485 e) ac_cv_search_kinfo_get_cpus=no ;;
26486 esac
26487 fi
26488 rm conftest.$ac_ext
26489 LIBS=$ac_func_search_save_LIBS ;;
26490 esac
26491 fi
26492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_get_cpus" >&5
26493 printf "%s\n" "$ac_cv_search_kinfo_get_cpus" >&6; }
26494 ac_res=$ac_cv_search_kinfo_get_cpus
26495 if test "$ac_res" != no
26496 then :
26497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26498
26499 fi
26500
26501 ac_fn_c_check_func "$LINENO" "kinfo_get_cpus" "ac_cv_func_kinfo_get_cpus"
26502 if test "x$ac_cv_func_kinfo_get_cpus" = xyes
26503 then :
26504 printf "%s\n" "#define HAVE_KINFO_GET_CPUS 1" >>confdefs.h
26505
26506 fi
26507
26508
26509 #
26510 # diskIOLAx requires exp which may require -lm
26511 #
26512
26513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing exp" >&5
26514 printf %s "checking for library containing exp... " >&6; }
26515 if test ${netsnmp_cv_func_exp_LMIBLIBS+y}
26516 then :
26517 printf %s "(cached) " >&6
26518 else case e in #(
26519 e) netsnmp_func_search_save_LIBS="$LIBS"
26520 netsnmp_target_val="$LMIBLIBS"
26521 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
26522 netsnmp_result=no
26523 LIBS="${netsnmp_temp_LIBS}"
26524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26525 /* end confdefs.h. */
26526
26527 /* Override any GCC internal prototype to avoid an error.
26528 Use char because int might match the return type of a GCC
26529 builtin and then its argument prototype would still apply.
26530 The 'extern "C"' is for builds by C++ compilers;
26531 although this is not generally supported in C code supporting it here
26532 has little cost and some practical benefit (sr 110532). */
26533 #ifdef __cplusplus
26534 extern "C"
26535 #endif
26536 char exp (void);
26537 int
26538 main (void)
26539 {
26540 return exp ();
26541 ;
26542 return 0;
26543 }
26544 _ACEOF
26545 if ac_fn_c_try_link "$LINENO"
26546 then :
26547 netsnmp_result="none required"
26548 else case e in #(
26549 e) for netsnmp_cur_lib in m ; do
26550 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
26551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26552 /* end confdefs.h. */
26553
26554 /* Override any GCC internal prototype to avoid an error.
26555 Use char because int might match the return type of a GCC
26556 builtin and then its argument prototype would still apply.
26557 The 'extern "C"' is for builds by C++ compilers;
26558 although this is not generally supported in C code supporting it here
26559 has little cost and some practical benefit (sr 110532). */
26560 #ifdef __cplusplus
26561 extern "C"
26562 #endif
26563 char exp (void);
26564 int
26565 main (void)
26566 {
26567 return exp ();
26568 ;
26569 return 0;
26570 }
26571 _ACEOF
26572 if ac_fn_c_try_link "$LINENO"
26573 then :
26574 netsnmp_result=-l${netsnmp_cur_lib}
26575 break
26576 fi
26577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26578 conftest$ac_exeext conftest.$ac_ext
26579 done ;;
26580 esac
26581 fi
26582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26583 conftest$ac_exeext conftest.$ac_ext
26584 LIBS="${netsnmp_func_search_save_LIBS}"
26585 netsnmp_cv_func_exp_LMIBLIBS="${netsnmp_result}" ;;
26586 esac
26587 fi
26588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_exp_LMIBLIBS" >&5
26589 printf "%s\n" "$netsnmp_cv_func_exp_LMIBLIBS" >&6; }
26590 if test "x${netsnmp_cv_func_exp_LMIBLIBS}" != "xno" ; then
26591 if test "x${netsnmp_cv_func_exp_LMIBLIBS}" != "xnone required" ; then
26592 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
26593 fi
26594
26595
26596 fi
26597
26598
26599 #
26600 # libkvm
26601 #
26602
26603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_read" >&5
26604 printf %s "checking for library containing kvm_read... " >&6; }
26605 if test ${netsnmp_cv_func_kvm_read_LAGENTLIBS+y}
26606 then :
26607 printf %s "(cached) " >&6
26608 else case e in #(
26609 e) netsnmp_func_search_save_LIBS="$LIBS"
26610 netsnmp_target_val="$LAGENTLIBS"
26611 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
26612 netsnmp_result=no
26613 LIBS="${netsnmp_temp_LIBS}"
26614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26615 /* end confdefs.h. */
26616
26617 /* Override any GCC internal prototype to avoid an error.
26618 Use char because int might match the return type of a GCC
26619 builtin and then its argument prototype would still apply.
26620 The 'extern "C"' is for builds by C++ compilers;
26621 although this is not generally supported in C code supporting it here
26622 has little cost and some practical benefit (sr 110532). */
26623 #ifdef __cplusplus
26624 extern "C"
26625 #endif
26626 char kvm_read (void);
26627 int
26628 main (void)
26629 {
26630 return kvm_read ();
26631 ;
26632 return 0;
26633 }
26634 _ACEOF
26635 if ac_fn_c_try_link "$LINENO"
26636 then :
26637 netsnmp_result="none required"
26638 else case e in #(
26639 e) for netsnmp_cur_lib in kvm ; do
26640 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
26641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26642 /* end confdefs.h. */
26643
26644 /* Override any GCC internal prototype to avoid an error.
26645 Use char because int might match the return type of a GCC
26646 builtin and then its argument prototype would still apply.
26647 The 'extern "C"' is for builds by C++ compilers;
26648 although this is not generally supported in C code supporting it here
26649 has little cost and some practical benefit (sr 110532). */
26650 #ifdef __cplusplus
26651 extern "C"
26652 #endif
26653 char kvm_read (void);
26654 int
26655 main (void)
26656 {
26657 return kvm_read ();
26658 ;
26659 return 0;
26660 }
26661 _ACEOF
26662 if ac_fn_c_try_link "$LINENO"
26663 then :
26664 netsnmp_result=-l${netsnmp_cur_lib}
26665 break
26666 fi
26667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26668 conftest$ac_exeext conftest.$ac_ext
26669 done ;;
26670 esac
26671 fi
26672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26673 conftest$ac_exeext conftest.$ac_ext
26674 LIBS="${netsnmp_func_search_save_LIBS}"
26675 netsnmp_cv_func_kvm_read_LAGENTLIBS="${netsnmp_result}" ;;
26676 esac
26677 fi
26678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_read_LAGENTLIBS" >&5
26679 printf "%s\n" "$netsnmp_cv_func_kvm_read_LAGENTLIBS" >&6; }
26680 if test "x${netsnmp_cv_func_kvm_read_LAGENTLIBS}" != "xno" ; then
26681 if test "x${netsnmp_cv_func_kvm_read_LAGENTLIBS}" != "xnone required" ; then
26682 LAGENTLIBS="${netsnmp_result} ${netsnmp_target_val}"
26683 fi
26684
26685
26686 fi
26687
26688
26689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_openfiles" >&5
26690 printf %s "checking for library containing kvm_openfiles... " >&6; }
26691 if test ${netsnmp_cv_func_kvm_openfiles_LAGENTLIBS+y}
26692 then :
26693 printf %s "(cached) " >&6
26694 else case e in #(
26695 e) netsnmp_func_search_save_LIBS="$LIBS"
26696 netsnmp_target_val="$LAGENTLIBS"
26697 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
26698 netsnmp_result=no
26699 LIBS="${netsnmp_temp_LIBS}"
26700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26701 /* end confdefs.h. */
26702
26703 /* Override any GCC internal prototype to avoid an error.
26704 Use char because int might match the return type of a GCC
26705 builtin and then its argument prototype would still apply.
26706 The 'extern "C"' is for builds by C++ compilers;
26707 although this is not generally supported in C code supporting it here
26708 has little cost and some practical benefit (sr 110532). */
26709 #ifdef __cplusplus
26710 extern "C"
26711 #endif
26712 char kvm_openfiles (void);
26713 int
26714 main (void)
26715 {
26716 return kvm_openfiles ();
26717 ;
26718 return 0;
26719 }
26720 _ACEOF
26721 if ac_fn_c_try_link "$LINENO"
26722 then :
26723 netsnmp_result="none required"
26724 else case e in #(
26725 e) for netsnmp_cur_lib in kvm ; do
26726 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
26727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26728 /* end confdefs.h. */
26729
26730 /* Override any GCC internal prototype to avoid an error.
26731 Use char because int might match the return type of a GCC
26732 builtin and then its argument prototype would still apply.
26733 The 'extern "C"' is for builds by C++ compilers;
26734 although this is not generally supported in C code supporting it here
26735 has little cost and some practical benefit (sr 110532). */
26736 #ifdef __cplusplus
26737 extern "C"
26738 #endif
26739 char kvm_openfiles (void);
26740 int
26741 main (void)
26742 {
26743 return kvm_openfiles ();
26744 ;
26745 return 0;
26746 }
26747 _ACEOF
26748 if ac_fn_c_try_link "$LINENO"
26749 then :
26750 netsnmp_result=-l${netsnmp_cur_lib}
26751 break
26752 fi
26753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26754 conftest$ac_exeext conftest.$ac_ext
26755 done ;;
26756 esac
26757 fi
26758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26759 conftest$ac_exeext conftest.$ac_ext
26760 LIBS="${netsnmp_func_search_save_LIBS}"
26761 netsnmp_cv_func_kvm_openfiles_LAGENTLIBS="${netsnmp_result}" ;;
26762 esac
26763 fi
26764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_openfiles_LAGENTLIBS" >&5
26765 printf "%s\n" "$netsnmp_cv_func_kvm_openfiles_LAGENTLIBS" >&6; }
26766 if test "x${netsnmp_cv_func_kvm_openfiles_LAGENTLIBS}" != "xno" ; then
26767 if test "x${netsnmp_cv_func_kvm_openfiles_LAGENTLIBS}" != "xnone required" ; then
26768 LAGENTLIBS="${netsnmp_result} ${netsnmp_target_val}"
26769 fi
26770
26771
26772 fi
26773
26774
26775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_getprocs" >&5
26776 printf %s "checking for library containing kvm_getprocs... " >&6; }
26777 if test ${netsnmp_cv_func_kvm_getprocs_LMIBLIBS+y}
26778 then :
26779 printf %s "(cached) " >&6
26780 else case e in #(
26781 e) netsnmp_func_search_save_LIBS="$LIBS"
26782 netsnmp_target_val="$LMIBLIBS"
26783 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
26784 netsnmp_result=no
26785 LIBS="${netsnmp_temp_LIBS}"
26786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26787 /* end confdefs.h. */
26788
26789 /* Override any GCC internal prototype to avoid an error.
26790 Use char because int might match the return type of a GCC
26791 builtin and then its argument prototype would still apply.
26792 The 'extern "C"' is for builds by C++ compilers;
26793 although this is not generally supported in C code supporting it here
26794 has little cost and some practical benefit (sr 110532). */
26795 #ifdef __cplusplus
26796 extern "C"
26797 #endif
26798 char kvm_getprocs (void);
26799 int
26800 main (void)
26801 {
26802 return kvm_getprocs ();
26803 ;
26804 return 0;
26805 }
26806 _ACEOF
26807 if ac_fn_c_try_link "$LINENO"
26808 then :
26809 netsnmp_result="none required"
26810 else case e in #(
26811 e) for netsnmp_cur_lib in kvm ; do
26812 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
26813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26814 /* end confdefs.h. */
26815
26816 /* Override any GCC internal prototype to avoid an error.
26817 Use char because int might match the return type of a GCC
26818 builtin and then its argument prototype would still apply.
26819 The 'extern "C"' is for builds by C++ compilers;
26820 although this is not generally supported in C code supporting it here
26821 has little cost and some practical benefit (sr 110532). */
26822 #ifdef __cplusplus
26823 extern "C"
26824 #endif
26825 char kvm_getprocs (void);
26826 int
26827 main (void)
26828 {
26829 return kvm_getprocs ();
26830 ;
26831 return 0;
26832 }
26833 _ACEOF
26834 if ac_fn_c_try_link "$LINENO"
26835 then :
26836 netsnmp_result=-l${netsnmp_cur_lib}
26837 break
26838 fi
26839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26840 conftest$ac_exeext conftest.$ac_ext
26841 done ;;
26842 esac
26843 fi
26844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26845 conftest$ac_exeext conftest.$ac_ext
26846 LIBS="${netsnmp_func_search_save_LIBS}"
26847 netsnmp_cv_func_kvm_getprocs_LMIBLIBS="${netsnmp_result}" ;;
26848 esac
26849 fi
26850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_getprocs_LMIBLIBS" >&5
26851 printf "%s\n" "$netsnmp_cv_func_kvm_getprocs_LMIBLIBS" >&6; }
26852 if test "x${netsnmp_cv_func_kvm_getprocs_LMIBLIBS}" != "xno" ; then
26853 if test "x${netsnmp_cv_func_kvm_getprocs_LMIBLIBS}" != "xnone required" ; then
26854 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
26855 fi
26856
26857
26858 fi
26859
26860
26861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_getproc2" >&5
26862 printf %s "checking for library containing kvm_getproc2... " >&6; }
26863 if test ${netsnmp_cv_func_kvm_getproc2_LMIBLIBS+y}
26864 then :
26865 printf %s "(cached) " >&6
26866 else case e in #(
26867 e) netsnmp_func_search_save_LIBS="$LIBS"
26868 netsnmp_target_val="$LMIBLIBS"
26869 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
26870 netsnmp_result=no
26871 LIBS="${netsnmp_temp_LIBS}"
26872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26873 /* end confdefs.h. */
26874
26875 /* Override any GCC internal prototype to avoid an error.
26876 Use char because int might match the return type of a GCC
26877 builtin and then its argument prototype would still apply.
26878 The 'extern "C"' is for builds by C++ compilers;
26879 although this is not generally supported in C code supporting it here
26880 has little cost and some practical benefit (sr 110532). */
26881 #ifdef __cplusplus
26882 extern "C"
26883 #endif
26884 char kvm_getproc2 (void);
26885 int
26886 main (void)
26887 {
26888 return kvm_getproc2 ();
26889 ;
26890 return 0;
26891 }
26892 _ACEOF
26893 if ac_fn_c_try_link "$LINENO"
26894 then :
26895 netsnmp_result="none required"
26896 else case e in #(
26897 e) for netsnmp_cur_lib in kvm ; do
26898 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
26899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26900 /* end confdefs.h. */
26901
26902 /* Override any GCC internal prototype to avoid an error.
26903 Use char because int might match the return type of a GCC
26904 builtin and then its argument prototype would still apply.
26905 The 'extern "C"' is for builds by C++ compilers;
26906 although this is not generally supported in C code supporting it here
26907 has little cost and some practical benefit (sr 110532). */
26908 #ifdef __cplusplus
26909 extern "C"
26910 #endif
26911 char kvm_getproc2 (void);
26912 int
26913 main (void)
26914 {
26915 return kvm_getproc2 ();
26916 ;
26917 return 0;
26918 }
26919 _ACEOF
26920 if ac_fn_c_try_link "$LINENO"
26921 then :
26922 netsnmp_result=-l${netsnmp_cur_lib}
26923 break
26924 fi
26925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26926 conftest$ac_exeext conftest.$ac_ext
26927 done ;;
26928 esac
26929 fi
26930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26931 conftest$ac_exeext conftest.$ac_ext
26932 LIBS="${netsnmp_func_search_save_LIBS}"
26933 netsnmp_cv_func_kvm_getproc2_LMIBLIBS="${netsnmp_result}" ;;
26934 esac
26935 fi
26936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_getproc2_LMIBLIBS" >&5
26937 printf "%s\n" "$netsnmp_cv_func_kvm_getproc2_LMIBLIBS" >&6; }
26938 if test "x${netsnmp_cv_func_kvm_getproc2_LMIBLIBS}" != "xno" ; then
26939 if test "x${netsnmp_cv_func_kvm_getproc2_LMIBLIBS}" != "xnone required" ; then
26940 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
26941 fi
26942
26943
26944 fi
26945
26946
26947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_getfiles" >&5
26948 printf %s "checking for library containing kvm_getfiles... " >&6; }
26949 if test ${netsnmp_cv_func_kvm_getfiles_LMIBLIBS+y}
26950 then :
26951 printf %s "(cached) " >&6
26952 else case e in #(
26953 e) netsnmp_func_search_save_LIBS="$LIBS"
26954 netsnmp_target_val="$LMIBLIBS"
26955 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
26956 netsnmp_result=no
26957 LIBS="${netsnmp_temp_LIBS}"
26958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26959 /* end confdefs.h. */
26960
26961 /* Override any GCC internal prototype to avoid an error.
26962 Use char because int might match the return type of a GCC
26963 builtin and then its argument prototype would still apply.
26964 The 'extern "C"' is for builds by C++ compilers;
26965 although this is not generally supported in C code supporting it here
26966 has little cost and some practical benefit (sr 110532). */
26967 #ifdef __cplusplus
26968 extern "C"
26969 #endif
26970 char kvm_getfiles (void);
26971 int
26972 main (void)
26973 {
26974 return kvm_getfiles ();
26975 ;
26976 return 0;
26977 }
26978 _ACEOF
26979 if ac_fn_c_try_link "$LINENO"
26980 then :
26981 netsnmp_result="none required"
26982 else case e in #(
26983 e) for netsnmp_cur_lib in kvm ; do
26984 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
26985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26986 /* end confdefs.h. */
26987
26988 /* Override any GCC internal prototype to avoid an error.
26989 Use char because int might match the return type of a GCC
26990 builtin and then its argument prototype would still apply.
26991 The 'extern "C"' is for builds by C++ compilers;
26992 although this is not generally supported in C code supporting it here
26993 has little cost and some practical benefit (sr 110532). */
26994 #ifdef __cplusplus
26995 extern "C"
26996 #endif
26997 char kvm_getfiles (void);
26998 int
26999 main (void)
27000 {
27001 return kvm_getfiles ();
27002 ;
27003 return 0;
27004 }
27005 _ACEOF
27006 if ac_fn_c_try_link "$LINENO"
27007 then :
27008 netsnmp_result=-l${netsnmp_cur_lib}
27009 break
27010 fi
27011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27012 conftest$ac_exeext conftest.$ac_ext
27013 done ;;
27014 esac
27015 fi
27016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27017 conftest$ac_exeext conftest.$ac_ext
27018 LIBS="${netsnmp_func_search_save_LIBS}"
27019 netsnmp_cv_func_kvm_getfiles_LMIBLIBS="${netsnmp_result}" ;;
27020 esac
27021 fi
27022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_getfiles_LMIBLIBS" >&5
27023 printf "%s\n" "$netsnmp_cv_func_kvm_getfiles_LMIBLIBS" >&6; }
27024 if test "x${netsnmp_cv_func_kvm_getfiles_LMIBLIBS}" != "xno" ; then
27025 if test "x${netsnmp_cv_func_kvm_getfiles_LMIBLIBS}" != "xnone required" ; then
27026 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
27027 fi
27028
27029
27030 fi
27031
27032
27033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_getfile2" >&5
27034 printf %s "checking for library containing kvm_getfile2... " >&6; }
27035 if test ${netsnmp_cv_func_kvm_getfile2_LMIBLIBS+y}
27036 then :
27037 printf %s "(cached) " >&6
27038 else case e in #(
27039 e) netsnmp_func_search_save_LIBS="$LIBS"
27040 netsnmp_target_val="$LMIBLIBS"
27041 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
27042 netsnmp_result=no
27043 LIBS="${netsnmp_temp_LIBS}"
27044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27045 /* end confdefs.h. */
27046
27047 /* Override any GCC internal prototype to avoid an error.
27048 Use char because int might match the return type of a GCC
27049 builtin and then its argument prototype would still apply.
27050 The 'extern "C"' is for builds by C++ compilers;
27051 although this is not generally supported in C code supporting it here
27052 has little cost and some practical benefit (sr 110532). */
27053 #ifdef __cplusplus
27054 extern "C"
27055 #endif
27056 char kvm_getfile2 (void);
27057 int
27058 main (void)
27059 {
27060 return kvm_getfile2 ();
27061 ;
27062 return 0;
27063 }
27064 _ACEOF
27065 if ac_fn_c_try_link "$LINENO"
27066 then :
27067 netsnmp_result="none required"
27068 else case e in #(
27069 e) for netsnmp_cur_lib in kvm ; do
27070 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
27071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27072 /* end confdefs.h. */
27073
27074 /* Override any GCC internal prototype to avoid an error.
27075 Use char because int might match the return type of a GCC
27076 builtin and then its argument prototype would still apply.
27077 The 'extern "C"' is for builds by C++ compilers;
27078 although this is not generally supported in C code supporting it here
27079 has little cost and some practical benefit (sr 110532). */
27080 #ifdef __cplusplus
27081 extern "C"
27082 #endif
27083 char kvm_getfile2 (void);
27084 int
27085 main (void)
27086 {
27087 return kvm_getfile2 ();
27088 ;
27089 return 0;
27090 }
27091 _ACEOF
27092 if ac_fn_c_try_link "$LINENO"
27093 then :
27094 netsnmp_result=-l${netsnmp_cur_lib}
27095 break
27096 fi
27097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27098 conftest$ac_exeext conftest.$ac_ext
27099 done ;;
27100 esac
27101 fi
27102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27103 conftest$ac_exeext conftest.$ac_ext
27104 LIBS="${netsnmp_func_search_save_LIBS}"
27105 netsnmp_cv_func_kvm_getfile2_LMIBLIBS="${netsnmp_result}" ;;
27106 esac
27107 fi
27108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_getfile2_LMIBLIBS" >&5
27109 printf "%s\n" "$netsnmp_cv_func_kvm_getfile2_LMIBLIBS" >&6; }
27110 if test "x${netsnmp_cv_func_kvm_getfile2_LMIBLIBS}" != "xno" ; then
27111 if test "x${netsnmp_cv_func_kvm_getfile2_LMIBLIBS}" != "xnone required" ; then
27112 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
27113 fi
27114
27115
27116 fi
27117
27118
27119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_getswapinfo" >&5
27120 printf %s "checking for library containing kvm_getswapinfo... " >&6; }
27121 if test ${netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS+y}
27122 then :
27123 printf %s "(cached) " >&6
27124 else case e in #(
27125 e) netsnmp_func_search_save_LIBS="$LIBS"
27126 netsnmp_target_val="$LMIBLIBS"
27127 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
27128 netsnmp_result=no
27129 LIBS="${netsnmp_temp_LIBS}"
27130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27131 /* end confdefs.h. */
27132
27133 /* Override any GCC internal prototype to avoid an error.
27134 Use char because int might match the return type of a GCC
27135 builtin and then its argument prototype would still apply.
27136 The 'extern "C"' is for builds by C++ compilers;
27137 although this is not generally supported in C code supporting it here
27138 has little cost and some practical benefit (sr 110532). */
27139 #ifdef __cplusplus
27140 extern "C"
27141 #endif
27142 char kvm_getswapinfo (void);
27143 int
27144 main (void)
27145 {
27146 return kvm_getswapinfo ();
27147 ;
27148 return 0;
27149 }
27150 _ACEOF
27151 if ac_fn_c_try_link "$LINENO"
27152 then :
27153 netsnmp_result="none required"
27154 else case e in #(
27155 e) for netsnmp_cur_lib in kvm ; do
27156 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
27157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27158 /* end confdefs.h. */
27159
27160 /* Override any GCC internal prototype to avoid an error.
27161 Use char because int might match the return type of a GCC
27162 builtin and then its argument prototype would still apply.
27163 The 'extern "C"' is for builds by C++ compilers;
27164 although this is not generally supported in C code supporting it here
27165 has little cost and some practical benefit (sr 110532). */
27166 #ifdef __cplusplus
27167 extern "C"
27168 #endif
27169 char kvm_getswapinfo (void);
27170 int
27171 main (void)
27172 {
27173 return kvm_getswapinfo ();
27174 ;
27175 return 0;
27176 }
27177 _ACEOF
27178 if ac_fn_c_try_link "$LINENO"
27179 then :
27180 netsnmp_result=-l${netsnmp_cur_lib}
27181 break
27182 fi
27183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27184 conftest$ac_exeext conftest.$ac_ext
27185 done ;;
27186 esac
27187 fi
27188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27189 conftest$ac_exeext conftest.$ac_ext
27190 LIBS="${netsnmp_func_search_save_LIBS}"
27191 netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS="${netsnmp_result}" ;;
27192 esac
27193 fi
27194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS" >&5
27195 printf "%s\n" "$netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS" >&6; }
27196 if test "x${netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS}" != "xno" ; then
27197 if test "x${netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS}" != "xnone required" ; then
27198 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
27199 fi
27200
27201
27202 fi
27203
27204 netsnmp_save_LIBS="$LIBS"
27205 LIBS="$LAGENTLIBS $LMIBLIBS $LIBS"
27206 ac_fn_c_check_func "$LINENO" "kvm_openfiles" "ac_cv_func_kvm_openfiles"
27207 if test "x$ac_cv_func_kvm_openfiles" = xyes
27208 then :
27209 printf "%s\n" "#define HAVE_KVM_OPENFILES 1" >>confdefs.h
27210
27211 fi
27212 ac_fn_c_check_func "$LINENO" "kvm_getprocs" "ac_cv_func_kvm_getprocs"
27213 if test "x$ac_cv_func_kvm_getprocs" = xyes
27214 then :
27215 printf "%s\n" "#define HAVE_KVM_GETPROCS 1" >>confdefs.h
27216
27217 fi
27218 ac_fn_c_check_func "$LINENO" "kvm_getproc2" "ac_cv_func_kvm_getproc2"
27219 if test "x$ac_cv_func_kvm_getproc2" = xyes
27220 then :
27221 printf "%s\n" "#define HAVE_KVM_GETPROC2 1" >>confdefs.h
27222
27223 fi
27224 ac_fn_c_check_func "$LINENO" "kvm_getswapinfo" "ac_cv_func_kvm_getswapinfo"
27225 if test "x$ac_cv_func_kvm_getswapinfo" = xyes
27226 then :
27227 printf "%s\n" "#define HAVE_KVM_GETSWAPINFO 1" >>confdefs.h
27228
27229 fi
27230 ac_fn_c_check_func "$LINENO" "kvm_getfiles" "ac_cv_func_kvm_getfiles"
27231 if test "x$ac_cv_func_kvm_getfiles" = xyes
27232 then :
27233 printf "%s\n" "#define HAVE_KVM_GETFILES 1" >>confdefs.h
27234
27235 fi
27236 ac_fn_c_check_func "$LINENO" "kvm_getfile2" "ac_cv_func_kvm_getfile2"
27237 if test "x$ac_cv_func_kvm_getfile2" = xyes
27238 then :
27239 printf "%s\n" "#define HAVE_KVM_GETFILE2 1" >>confdefs.h
27240
27241 fi
27242
27243 LIBS="$netsnmp_save_LIBS"
27244
27245 #
27246 # dynamic module support
27247 #
27248
27249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27250 printf %s "checking for library containing dlopen... " >&6; }
27251 if test ${netsnmp_cv_func_dlopen_LMIBLIBS+y}
27252 then :
27253 printf %s "(cached) " >&6
27254 else case e in #(
27255 e) netsnmp_func_search_save_LIBS="$LIBS"
27256 netsnmp_target_val="$LMIBLIBS"
27257 netsnmp_temp_LIBS="${netsnmp_target_val} $LAGENTLIBS $LSNMPLIBS ${LIBS}"
27258 netsnmp_result=no
27259 LIBS="${netsnmp_temp_LIBS}"
27260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27261 /* end confdefs.h. */
27262
27263 /* Override any GCC internal prototype to avoid an error.
27264 Use char because int might match the return type of a GCC
27265 builtin and then its argument prototype would still apply.
27266 The 'extern "C"' is for builds by C++ compilers;
27267 although this is not generally supported in C code supporting it here
27268 has little cost and some practical benefit (sr 110532). */
27269 #ifdef __cplusplus
27270 extern "C"
27271 #endif
27272 char dlopen (void);
27273 int
27274 main (void)
27275 {
27276 return dlopen ();
27277 ;
27278 return 0;
27279 }
27280 _ACEOF
27281 if ac_fn_c_try_link "$LINENO"
27282 then :
27283 netsnmp_result="none required"
27284 else case e in #(
27285 e) for netsnmp_cur_lib in dl ; do
27286 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
27287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27288 /* end confdefs.h. */
27289
27290 /* Override any GCC internal prototype to avoid an error.
27291 Use char because int might match the return type of a GCC
27292 builtin and then its argument prototype would still apply.
27293 The 'extern "C"' is for builds by C++ compilers;
27294 although this is not generally supported in C code supporting it here
27295 has little cost and some practical benefit (sr 110532). */
27296 #ifdef __cplusplus
27297 extern "C"
27298 #endif
27299 char dlopen (void);
27300 int
27301 main (void)
27302 {
27303 return dlopen ();
27304 ;
27305 return 0;
27306 }
27307 _ACEOF
27308 if ac_fn_c_try_link "$LINENO"
27309 then :
27310 netsnmp_result=-l${netsnmp_cur_lib}
27311 break
27312 fi
27313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27314 conftest$ac_exeext conftest.$ac_ext
27315 done ;;
27316 esac
27317 fi
27318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27319 conftest$ac_exeext conftest.$ac_ext
27320 LIBS="${netsnmp_func_search_save_LIBS}"
27321 netsnmp_cv_func_dlopen_LMIBLIBS="${netsnmp_result}" ;;
27322 esac
27323 fi
27324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_dlopen_LMIBLIBS" >&5
27325 printf "%s\n" "$netsnmp_cv_func_dlopen_LMIBLIBS" >&6; }
27326 if test "x${netsnmp_cv_func_dlopen_LMIBLIBS}" != "xno" ; then
27327 if test "x${netsnmp_cv_func_dlopen_LMIBLIBS}" != "xnone required" ; then
27328 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
27329 fi
27330
27331
27332 fi
27333
27334 netsnmp_save_LIBS="$LIBS"
27335 LIBS="$LMIBLIBS $LAGENTLIBS $LSNMPLIBS $LIBS"
27336 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
27337 if test "x$ac_cv_func_dlopen" = xyes
27338 then :
27339 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
27340
27341 fi
27342
27343 LIBS="$netsnmp_save_LIBS"
27344
27345 #
27346 # regex in process table
27347 #
27348 if test "x$with_pcre" != "xno"; then
27349 ac_fn_c_check_header_compile "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
27350 if test "x$ac_cv_header_pcre_h" = xyes
27351 then :
27352
27353
27354 printf "%s\n" "#define HAVE_PCRE_H 1" >>confdefs.h
27355
27356 pcre_h=yes
27357
27358 else case e in #(
27359 e) pcre_h=no
27360 ;;
27361 esac
27362 fi
27363
27364 fi
27365 if test "x$pcreheader_h" = "xno" -o "x$pcre_h" = "xno" ; then
27366 if test "x$with_pcre" = "xyes" ; then
27367 as_fn_error $? "Could not find the pcre header file needed and was specifically asked to use pcre support" "$LINENO" 5
27368 else
27369 with_pcre=no
27370 fi
27371 fi
27372
27373 #
27374 # pcre libraries only needed for the ucd process agent mib software
27375 #
27376 if test "x$with_pcre" != "xno"; then
27377
27378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_exec" >&5
27379 printf %s "checking for library containing pcre_exec... " >&6; }
27380 if test ${netsnmp_cv_func_pcre_exec_LAGENTLIBS+y}
27381 then :
27382 printf %s "(cached) " >&6
27383 else case e in #(
27384 e) netsnmp_func_search_save_LIBS="$LIBS"
27385 netsnmp_target_val="$LAGENTLIBS"
27386 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
27387 netsnmp_result=no
27388 LIBS="${netsnmp_temp_LIBS}"
27389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27390 /* end confdefs.h. */
27391
27392 /* Override any GCC internal prototype to avoid an error.
27393 Use char because int might match the return type of a GCC
27394 builtin and then its argument prototype would still apply.
27395 The 'extern "C"' is for builds by C++ compilers;
27396 although this is not generally supported in C code supporting it here
27397 has little cost and some practical benefit (sr 110532). */
27398 #ifdef __cplusplus
27399 extern "C"
27400 #endif
27401 char pcre_exec (void);
27402 int
27403 main (void)
27404 {
27405 return pcre_exec ();
27406 ;
27407 return 0;
27408 }
27409 _ACEOF
27410 if ac_fn_c_try_link "$LINENO"
27411 then :
27412 netsnmp_result="none required"
27413 else case e in #(
27414 e) for netsnmp_cur_lib in pcre ; do
27415 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
27416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27417 /* end confdefs.h. */
27418
27419 /* Override any GCC internal prototype to avoid an error.
27420 Use char because int might match the return type of a GCC
27421 builtin and then its argument prototype would still apply.
27422 The 'extern "C"' is for builds by C++ compilers;
27423 although this is not generally supported in C code supporting it here
27424 has little cost and some practical benefit (sr 110532). */
27425 #ifdef __cplusplus
27426 extern "C"
27427 #endif
27428 char pcre_exec (void);
27429 int
27430 main (void)
27431 {
27432 return pcre_exec ();
27433 ;
27434 return 0;
27435 }
27436 _ACEOF
27437 if ac_fn_c_try_link "$LINENO"
27438 then :
27439 netsnmp_result=-l${netsnmp_cur_lib}
27440 break
27441 fi
27442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27443 conftest$ac_exeext conftest.$ac_ext
27444 done ;;
27445 esac
27446 fi
27447 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27448 conftest$ac_exeext conftest.$ac_ext
27449 LIBS="${netsnmp_func_search_save_LIBS}"
27450 netsnmp_cv_func_pcre_exec_LAGENTLIBS="${netsnmp_result}" ;;
27451 esac
27452 fi
27453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_pcre_exec_LAGENTLIBS" >&5
27454 printf "%s\n" "$netsnmp_cv_func_pcre_exec_LAGENTLIBS" >&6; }
27455 if test "x${netsnmp_cv_func_pcre_exec_LAGENTLIBS}" != "xno" ; then
27456 if test "x${netsnmp_cv_func_pcre_exec_LAGENTLIBS}" != "xnone required" ; then
27457 LAGENTLIBS="${netsnmp_result} ${netsnmp_target_val}"
27458 fi
27459
27460 LMIBLIBS="$LMIBLIBS -lpcre"
27461
27462
27463 fi
27464
27465
27466
27467 fi
27468
27469 #
27470 # libnl (netlink)
27471 #
27472
27473 # The test below verifies whether the libnl-3 package been installed.
27474 # This test works as follows:
27475 # - If pkg-config is not installed at the time autoreconf is run,
27476 # autoreconf will fail.
27477 # - If pkg-config is installed at the time autoreconf is run,
27478 # the generated configure script will try to detect the presence of
27479 # the libnl-3 library by looking up compile and linker flags in the
27480 # file called libnl-3.pc.
27481 # - pkg-config settings can be overridden via the configure variables
27482 # LIBNL3_CFLAGS and LIBNL3_LIBS (added by the pkg-config m4 macro's to
27483 # the configure script -- see also ./configure --help).
27484 # - The LIBNL3_CFLAGS and LIBNL3_LIBS configure variables can be used
27485 # even if the pkg-config executable is not present on the system on
27486 # which the configure script is run.
27487 # - Although libnl-3 is only used on Linux, test presence of libnl-3 on
27488 # all platforms because this code is the first occurrence in the configure
27489 # script of PKG_* macros and because the search for the pkg-config executable
27490 # only occurs once.
27491 if test "x$with_nl" != "xno"; then
27492
27493
27494
27495
27496
27497
27498
27499
27500 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
27501 if test -n "$ac_tool_prefix"; then
27502 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27503 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27505 printf %s "checking for $ac_word... " >&6; }
27506 if test ${ac_cv_path_PKG_CONFIG+y}
27507 then :
27508 printf %s "(cached) " >&6
27509 else case e in #(
27510 e) case $PKG_CONFIG in
27511 [\\/]* | ?:[\\/]*)
27512 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27513 ;;
27514 *)
27515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27516 for as_dir in $PATH
27517 do
27518 IFS=$as_save_IFS
27519 case $as_dir in #(((
27520 '') as_dir=./ ;;
27521 */) ;;
27522 *) as_dir=$as_dir/ ;;
27523 esac
27524 for ac_exec_ext in '' $ac_executable_extensions; do
27525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27526 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
27527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27528 break 2
27529 fi
27530 done
27531 done
27532 IFS=$as_save_IFS
27533
27534 ;;
27535 esac ;;
27536 esac
27537 fi
27538 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27539 if test -n "$PKG_CONFIG"; then
27540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
27541 printf "%s\n" "$PKG_CONFIG" >&6; }
27542 else
27543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27544 printf "%s\n" "no" >&6; }
27545 fi
27546
27547
27548 fi
27549 if test -z "$ac_cv_path_PKG_CONFIG"; then
27550 ac_pt_PKG_CONFIG=$PKG_CONFIG
27551 # Extract the first word of "pkg-config", so it can be a program name with args.
27552 set dummy pkg-config; ac_word=$2
27553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27554 printf %s "checking for $ac_word... " >&6; }
27555 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
27556 then :
27557 printf %s "(cached) " >&6
27558 else case e in #(
27559 e) case $ac_pt_PKG_CONFIG in
27560 [\\/]* | ?:[\\/]*)
27561 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
27562 ;;
27563 *)
27564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27565 for as_dir in $PATH
27566 do
27567 IFS=$as_save_IFS
27568 case $as_dir in #(((
27569 '') as_dir=./ ;;
27570 */) ;;
27571 *) as_dir=$as_dir/ ;;
27572 esac
27573 for ac_exec_ext in '' $ac_executable_extensions; do
27574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27575 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
27576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27577 break 2
27578 fi
27579 done
27580 done
27581 IFS=$as_save_IFS
27582
27583 ;;
27584 esac ;;
27585 esac
27586 fi
27587 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
27588 if test -n "$ac_pt_PKG_CONFIG"; then
27589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
27590 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
27591 else
27592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27593 printf "%s\n" "no" >&6; }
27594 fi
27595
27596 if test "x$ac_pt_PKG_CONFIG" = x; then
27597 PKG_CONFIG=""
27598 else
27599 case $cross_compiling:$ac_tool_warned in
27600 yes:)
27601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27602 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27603 ac_tool_warned=yes ;;
27604 esac
27605 PKG_CONFIG=$ac_pt_PKG_CONFIG
27606 fi
27607 else
27608 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
27609 fi
27610
27611 fi
27612 if test -n "$PKG_CONFIG"; then
27613 _pkg_min_version=0.9.0
27614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
27615 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
27616 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
27617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27618 printf "%s\n" "yes" >&6; }
27619 else
27620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27621 printf "%s\n" "no" >&6; }
27622 PKG_CONFIG=""
27623 fi
27624 fi
27625 if test -n "$PKG_CONFIG" && \
27626 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0\""; } >&5
27627 ($PKG_CONFIG --exists --print-errors "libnl-3.0") 2>&5
27628 ac_status=$?
27629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27630 test $ac_status = 0; }; then
27631
27632 pkg_failed=no
27633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBNL3" >&5
27634 printf %s "checking for LIBNL3... " >&6; }
27635
27636 if test -n "$LIBNL3_CFLAGS"; then
27637 pkg_cv_LIBNL3_CFLAGS="$LIBNL3_CFLAGS"
27638 elif test -n "$PKG_CONFIG"; then
27639 if test -n "$PKG_CONFIG" && \
27640 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0\""; } >&5
27641 ($PKG_CONFIG --exists --print-errors "libnl-3.0") 2>&5
27642 ac_status=$?
27643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27644 test $ac_status = 0; }; then
27645 pkg_cv_LIBNL3_CFLAGS=`$PKG_CONFIG --cflags "libnl-3.0" 2>/dev/null`
27646 test "x$?" != "x0" && pkg_failed=yes
27647 else
27648 pkg_failed=yes
27649 fi
27650 else
27651 pkg_failed=untried
27652 fi
27653 if test -n "$LIBNL3_LIBS"; then
27654 pkg_cv_LIBNL3_LIBS="$LIBNL3_LIBS"
27655 elif test -n "$PKG_CONFIG"; then
27656 if test -n "$PKG_CONFIG" && \
27657 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0\""; } >&5
27658 ($PKG_CONFIG --exists --print-errors "libnl-3.0") 2>&5
27659 ac_status=$?
27660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27661 test $ac_status = 0; }; then
27662 pkg_cv_LIBNL3_LIBS=`$PKG_CONFIG --libs "libnl-3.0" 2>/dev/null`
27663 test "x$?" != "x0" && pkg_failed=yes
27664 else
27665 pkg_failed=yes
27666 fi
27667 else
27668 pkg_failed=untried
27669 fi
27670
27671
27672
27673 if test $pkg_failed = yes; then
27674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27675 printf "%s\n" "no" >&6; }
27676
27677 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27678 _pkg_short_errors_supported=yes
27679 else
27680 _pkg_short_errors_supported=no
27681 fi
27682 if test $_pkg_short_errors_supported = yes; then
27683 LIBNL3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-3.0" 2>&1`
27684 else
27685 LIBNL3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-3.0" 2>&1`
27686 fi
27687 # Put the nasty error message in config.log where it belongs
27688 echo "$LIBNL3_PKG_ERRORS" >&5
27689
27690 as_fn_error $? "Package requirements (libnl-3.0) were not met:
27691
27692 $LIBNL3_PKG_ERRORS
27693
27694 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27695 installed software in a non-standard prefix.
27696
27697 Alternatively, you may set the environment variables LIBNL3_CFLAGS
27698 and LIBNL3_LIBS to avoid the need to call pkg-config.
27699 See the pkg-config man page for more details." "$LINENO" 5
27700 elif test $pkg_failed = untried; then
27701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27702 printf "%s\n" "no" >&6; }
27703 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27704 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27705 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
27706 is in your PATH or set the PKG_CONFIG environment variable to the full
27707 path to pkg-config.
27708
27709 Alternatively, you may set the environment variables LIBNL3_CFLAGS
27710 and LIBNL3_LIBS to avoid the need to call pkg-config.
27711 See the pkg-config man page for more details.
27712
27713 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27714 See 'config.log' for more details" "$LINENO" 5; }
27715 else
27716 LIBNL3_CFLAGS=$pkg_cv_LIBNL3_CFLAGS
27717 LIBNL3_LIBS=$pkg_cv_LIBNL3_LIBS
27718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27719 printf "%s\n" "yes" >&6; }
27720
27721 fi
27722 fi
27723 if test -n "$PKG_CONFIG" && \
27724 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-route-3.0\""; } >&5
27725 ($PKG_CONFIG --exists --print-errors "libnl-route-3.0") 2>&5
27726 ac_status=$?
27727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27728 test $ac_status = 0; }; then
27729
27730 pkg_failed=no
27731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBNLROUTE3" >&5
27732 printf %s "checking for LIBNLROUTE3... " >&6; }
27733
27734 if test -n "$LIBNLROUTE3_CFLAGS"; then
27735 pkg_cv_LIBNLROUTE3_CFLAGS="$LIBNLROUTE3_CFLAGS"
27736 elif test -n "$PKG_CONFIG"; then
27737 if test -n "$PKG_CONFIG" && \
27738 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-route-3.0\""; } >&5
27739 ($PKG_CONFIG --exists --print-errors "libnl-route-3.0") 2>&5
27740 ac_status=$?
27741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27742 test $ac_status = 0; }; then
27743 pkg_cv_LIBNLROUTE3_CFLAGS=`$PKG_CONFIG --cflags "libnl-route-3.0" 2>/dev/null`
27744 test "x$?" != "x0" && pkg_failed=yes
27745 else
27746 pkg_failed=yes
27747 fi
27748 else
27749 pkg_failed=untried
27750 fi
27751 if test -n "$LIBNLROUTE3_LIBS"; then
27752 pkg_cv_LIBNLROUTE3_LIBS="$LIBNLROUTE3_LIBS"
27753 elif test -n "$PKG_CONFIG"; then
27754 if test -n "$PKG_CONFIG" && \
27755 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-route-3.0\""; } >&5
27756 ($PKG_CONFIG --exists --print-errors "libnl-route-3.0") 2>&5
27757 ac_status=$?
27758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27759 test $ac_status = 0; }; then
27760 pkg_cv_LIBNLROUTE3_LIBS=`$PKG_CONFIG --libs "libnl-route-3.0" 2>/dev/null`
27761 test "x$?" != "x0" && pkg_failed=yes
27762 else
27763 pkg_failed=yes
27764 fi
27765 else
27766 pkg_failed=untried
27767 fi
27768
27769
27770
27771 if test $pkg_failed = yes; then
27772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27773 printf "%s\n" "no" >&6; }
27774
27775 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27776 _pkg_short_errors_supported=yes
27777 else
27778 _pkg_short_errors_supported=no
27779 fi
27780 if test $_pkg_short_errors_supported = yes; then
27781 LIBNLROUTE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-route-3.0" 2>&1`
27782 else
27783 LIBNLROUTE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-route-3.0" 2>&1`
27784 fi
27785 # Put the nasty error message in config.log where it belongs
27786 echo "$LIBNLROUTE3_PKG_ERRORS" >&5
27787
27788 as_fn_error $? "Package requirements (libnl-route-3.0) were not met:
27789
27790 $LIBNLROUTE3_PKG_ERRORS
27791
27792 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27793 installed software in a non-standard prefix.
27794
27795 Alternatively, you may set the environment variables LIBNLROUTE3_CFLAGS
27796 and LIBNLROUTE3_LIBS to avoid the need to call pkg-config.
27797 See the pkg-config man page for more details." "$LINENO" 5
27798 elif test $pkg_failed = untried; then
27799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27800 printf "%s\n" "no" >&6; }
27801 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27802 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27803 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
27804 is in your PATH or set the PKG_CONFIG environment variable to the full
27805 path to pkg-config.
27806
27807 Alternatively, you may set the environment variables LIBNLROUTE3_CFLAGS
27808 and LIBNLROUTE3_LIBS to avoid the need to call pkg-config.
27809 See the pkg-config man page for more details.
27810
27811 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27812 See 'config.log' for more details" "$LINENO" 5; }
27813 else
27814 LIBNLROUTE3_CFLAGS=$pkg_cv_LIBNLROUTE3_CFLAGS
27815 LIBNLROUTE3_LIBS=$pkg_cv_LIBNLROUTE3_LIBS
27816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27817 printf "%s\n" "yes" >&6; }
27818
27819 fi
27820 fi
27821
27822
27823 case $target_os in
27824 linux*) # Check for libnl (linux)
27825 netsnmp_save_CPPFLAGS="$CPPFLAGS"
27826 CPPFLAGS="${LIBNL3_CFLAGS} ${LIBNLROUTE3_CFLAGS} $CPPFLAGS"
27827
27828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nl_connect" >&5
27829 printf %s "checking for library containing nl_connect... " >&6; }
27830 if test ${netsnmp_cv_func_nl_connect_LMIBLIBS+y}
27831 then :
27832 printf %s "(cached) " >&6
27833 else case e in #(
27834 e) netsnmp_func_search_save_LIBS="$LIBS"
27835 netsnmp_target_val="$LMIBLIBS"
27836 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
27837 netsnmp_result=no
27838 LIBS="${netsnmp_temp_LIBS}"
27839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27840 /* end confdefs.h. */
27841
27842 /* Override any GCC internal prototype to avoid an error.
27843 Use char because int might match the return type of a GCC
27844 builtin and then its argument prototype would still apply.
27845 The 'extern "C"' is for builds by C++ compilers;
27846 although this is not generally supported in C code supporting it here
27847 has little cost and some practical benefit (sr 110532). */
27848 #ifdef __cplusplus
27849 extern "C"
27850 #endif
27851 char nl_connect (void);
27852 int
27853 main (void)
27854 {
27855 return nl_connect ();
27856 ;
27857 return 0;
27858 }
27859 _ACEOF
27860 if ac_fn_c_try_link "$LINENO"
27861 then :
27862 netsnmp_result="none required"
27863 else case e in #(
27864 e) for netsnmp_cur_lib in nl-3 ; do
27865 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
27866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27867 /* end confdefs.h. */
27868
27869 /* Override any GCC internal prototype to avoid an error.
27870 Use char because int might match the return type of a GCC
27871 builtin and then its argument prototype would still apply.
27872 The 'extern "C"' is for builds by C++ compilers;
27873 although this is not generally supported in C code supporting it here
27874 has little cost and some practical benefit (sr 110532). */
27875 #ifdef __cplusplus
27876 extern "C"
27877 #endif
27878 char nl_connect (void);
27879 int
27880 main (void)
27881 {
27882 return nl_connect ();
27883 ;
27884 return 0;
27885 }
27886 _ACEOF
27887 if ac_fn_c_try_link "$LINENO"
27888 then :
27889 netsnmp_result=-l${netsnmp_cur_lib}
27890 break
27891 fi
27892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27893 conftest$ac_exeext conftest.$ac_ext
27894 done ;;
27895 esac
27896 fi
27897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27898 conftest$ac_exeext conftest.$ac_ext
27899 LIBS="${netsnmp_func_search_save_LIBS}"
27900 netsnmp_cv_func_nl_connect_LMIBLIBS="${netsnmp_result}" ;;
27901 esac
27902 fi
27903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_nl_connect_LMIBLIBS" >&5
27904 printf "%s\n" "$netsnmp_cv_func_nl_connect_LMIBLIBS" >&6; }
27905 if test "x${netsnmp_cv_func_nl_connect_LMIBLIBS}" != "xno" ; then
27906 if test "x${netsnmp_cv_func_nl_connect_LMIBLIBS}" != "xnone required" ; then
27907 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
27908 fi
27909 ac_fn_c_check_header_compile "$LINENO" "netlink/cache.h" "ac_cv_header_netlink_cache_h" "$ac_includes_default"
27910 if test "x$ac_cv_header_netlink_cache_h" = xyes
27911 then :
27912 printf "%s\n" "#define HAVE_NETLINK_CACHE_H 1" >>confdefs.h
27913
27914 fi
27915 ac_fn_c_check_header_compile "$LINENO" "netlink/msg.h" "ac_cv_header_netlink_msg_h" "$ac_includes_default"
27916 if test "x$ac_cv_header_netlink_msg_h" = xyes
27917 then :
27918 printf "%s\n" "#define HAVE_NETLINK_MSG_H 1" >>confdefs.h
27919
27920 fi
27921 ac_fn_c_check_header_compile "$LINENO" "netlink/netlink.h" "ac_cv_header_netlink_netlink_h" "$ac_includes_default"
27922 if test "x$ac_cv_header_netlink_netlink_h" = xyes
27923 then :
27924 printf "%s\n" "#define HAVE_NETLINK_NETLINK_H 1" >>confdefs.h
27925
27926 fi
27927 ac_fn_c_check_header_compile "$LINENO" "netlink/socket.h" "ac_cv_header_netlink_socket_h" "$ac_includes_default"
27928 if test "x$ac_cv_header_netlink_socket_h" = xyes
27929 then :
27930 printf "%s\n" "#define HAVE_NETLINK_SOCKET_H 1" >>confdefs.h
27931
27932 fi
27933
27934 EXTERNAL_MIBGROUP_INCLUDES="$EXTERNAL_MIBGROUP_INCLUDES ${LIBNL3_CFLAGS}"
27935 else
27936 CPPFLAGS="$netsnmp_save_CPPFLAGS"
27937 fi
27938
27939
27940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing rtnl_link_alloc_cache" >&5
27941 printf %s "checking for library containing rtnl_link_alloc_cache... " >&6; }
27942 if test ${netsnmp_cv_func_rtnl_link_alloc_cache_LMIBLIBS+y}
27943 then :
27944 printf %s "(cached) " >&6
27945 else case e in #(
27946 e) netsnmp_func_search_save_LIBS="$LIBS"
27947 netsnmp_target_val="$LMIBLIBS"
27948 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
27949 netsnmp_result=no
27950 LIBS="${netsnmp_temp_LIBS}"
27951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27952 /* end confdefs.h. */
27953
27954 /* Override any GCC internal prototype to avoid an error.
27955 Use char because int might match the return type of a GCC
27956 builtin and then its argument prototype would still apply.
27957 The 'extern "C"' is for builds by C++ compilers;
27958 although this is not generally supported in C code supporting it here
27959 has little cost and some practical benefit (sr 110532). */
27960 #ifdef __cplusplus
27961 extern "C"
27962 #endif
27963 char rtnl_link_alloc_cache (void);
27964 int
27965 main (void)
27966 {
27967 return rtnl_link_alloc_cache ();
27968 ;
27969 return 0;
27970 }
27971 _ACEOF
27972 if ac_fn_c_try_link "$LINENO"
27973 then :
27974 netsnmp_result="none required"
27975 else case e in #(
27976 e) for netsnmp_cur_lib in nl-route-3 ; do
27977 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
27978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27979 /* end confdefs.h. */
27980
27981 /* Override any GCC internal prototype to avoid an error.
27982 Use char because int might match the return type of a GCC
27983 builtin and then its argument prototype would still apply.
27984 The 'extern "C"' is for builds by C++ compilers;
27985 although this is not generally supported in C code supporting it here
27986 has little cost and some practical benefit (sr 110532). */
27987 #ifdef __cplusplus
27988 extern "C"
27989 #endif
27990 char rtnl_link_alloc_cache (void);
27991 int
27992 main (void)
27993 {
27994 return rtnl_link_alloc_cache ();
27995 ;
27996 return 0;
27997 }
27998 _ACEOF
27999 if ac_fn_c_try_link "$LINENO"
28000 then :
28001 netsnmp_result=-l${netsnmp_cur_lib}
28002 break
28003 fi
28004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28005 conftest$ac_exeext conftest.$ac_ext
28006 done ;;
28007 esac
28008 fi
28009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28010 conftest$ac_exeext conftest.$ac_ext
28011 LIBS="${netsnmp_func_search_save_LIBS}"
28012 netsnmp_cv_func_rtnl_link_alloc_cache_LMIBLIBS="${netsnmp_result}" ;;
28013 esac
28014 fi
28015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_rtnl_link_alloc_cache_LMIBLIBS" >&5
28016 printf "%s\n" "$netsnmp_cv_func_rtnl_link_alloc_cache_LMIBLIBS" >&6; }
28017 if test "x${netsnmp_cv_func_rtnl_link_alloc_cache_LMIBLIBS}" != "xno" ; then
28018 if test "x${netsnmp_cv_func_rtnl_link_alloc_cache_LMIBLIBS}" != "xnone required" ; then
28019 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
28020 fi
28021 ac_fn_c_check_header_compile "$LINENO" "netlink/route/addr.h" "ac_cv_header_netlink_route_addr_h" "$ac_includes_default"
28022 if test "x$ac_cv_header_netlink_route_addr_h" = xyes
28023 then :
28024 printf "%s\n" "#define HAVE_NETLINK_ROUTE_ADDR_H 1" >>confdefs.h
28025
28026 fi
28027 ac_fn_c_check_header_compile "$LINENO" "netlink/route/link.h" "ac_cv_header_netlink_route_link_h" "$ac_includes_default"
28028 if test "x$ac_cv_header_netlink_route_link_h" = xyes
28029 then :
28030 printf "%s\n" "#define HAVE_NETLINK_ROUTE_LINK_H 1" >>confdefs.h
28031
28032 fi
28033
28034 EXTERNAL_MIBGROUP_INCLUDES="$EXTERNAL_MIBGROUP_INCLUDES ${LIBNLROUTE3_CFLAGS}"
28035 else
28036 CPPFLAGS="$netsnmp_save_CPPFLAGS"
28037 fi
28038
28039 if test "x$ac_cv_header_netlink_netlink_h" != xyes; then
28040
28041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nl_connect" >&5
28042 printf %s "checking for library containing nl_connect... " >&6; }
28043 if test ${netsnmp_cv_func_nl_connect_LMIBLIBS+y}
28044 then :
28045 printf %s "(cached) " >&6
28046 else case e in #(
28047 e) netsnmp_func_search_save_LIBS="$LIBS"
28048 netsnmp_target_val="$LMIBLIBS"
28049 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
28050 netsnmp_result=no
28051 LIBS="${netsnmp_temp_LIBS}"
28052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28053 /* end confdefs.h. */
28054
28055 /* Override any GCC internal prototype to avoid an error.
28056 Use char because int might match the return type of a GCC
28057 builtin and then its argument prototype would still apply.
28058 The 'extern "C"' is for builds by C++ compilers;
28059 although this is not generally supported in C code supporting it here
28060 has little cost and some practical benefit (sr 110532). */
28061 #ifdef __cplusplus
28062 extern "C"
28063 #endif
28064 char nl_connect (void);
28065 int
28066 main (void)
28067 {
28068 return nl_connect ();
28069 ;
28070 return 0;
28071 }
28072 _ACEOF
28073 if ac_fn_c_try_link "$LINENO"
28074 then :
28075 netsnmp_result="none required"
28076 else case e in #(
28077 e) for netsnmp_cur_lib in nl ; do
28078 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
28079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28080 /* end confdefs.h. */
28081
28082 /* Override any GCC internal prototype to avoid an error.
28083 Use char because int might match the return type of a GCC
28084 builtin and then its argument prototype would still apply.
28085 The 'extern "C"' is for builds by C++ compilers;
28086 although this is not generally supported in C code supporting it here
28087 has little cost and some practical benefit (sr 110532). */
28088 #ifdef __cplusplus
28089 extern "C"
28090 #endif
28091 char nl_connect (void);
28092 int
28093 main (void)
28094 {
28095 return nl_connect ();
28096 ;
28097 return 0;
28098 }
28099 _ACEOF
28100 if ac_fn_c_try_link "$LINENO"
28101 then :
28102 netsnmp_result=-l${netsnmp_cur_lib}
28103 break
28104 fi
28105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28106 conftest$ac_exeext conftest.$ac_ext
28107 done ;;
28108 esac
28109 fi
28110 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28111 conftest$ac_exeext conftest.$ac_ext
28112 LIBS="${netsnmp_func_search_save_LIBS}"
28113 netsnmp_cv_func_nl_connect_LMIBLIBS="${netsnmp_result}" ;;
28114 esac
28115 fi
28116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_nl_connect_LMIBLIBS" >&5
28117 printf "%s\n" "$netsnmp_cv_func_nl_connect_LMIBLIBS" >&6; }
28118 if test "x${netsnmp_cv_func_nl_connect_LMIBLIBS}" != "xno" ; then
28119 if test "x${netsnmp_cv_func_nl_connect_LMIBLIBS}" != "xnone required" ; then
28120 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
28121 fi
28122
28123 ac_fn_c_check_header_compile "$LINENO" "netlink/cache.h" "ac_cv_header_netlink_cache_h" "$ac_includes_default"
28124 if test "x$ac_cv_header_netlink_cache_h" = xyes
28125 then :
28126 printf "%s\n" "#define HAVE_NETLINK_CACHE_H 1" >>confdefs.h
28127
28128 fi
28129 ac_fn_c_check_header_compile "$LINENO" "netlink/msg.h" "ac_cv_header_netlink_msg_h" "$ac_includes_default"
28130 if test "x$ac_cv_header_netlink_msg_h" = xyes
28131 then :
28132 printf "%s\n" "#define HAVE_NETLINK_MSG_H 1" >>confdefs.h
28133
28134 fi
28135 ac_fn_c_check_header_compile "$LINENO" "netlink/netlink.h" "ac_cv_header_netlink_netlink_h" "$ac_includes_default"
28136 if test "x$ac_cv_header_netlink_netlink_h" = xyes
28137 then :
28138 printf "%s\n" "#define HAVE_NETLINK_NETLINK_H 1" >>confdefs.h
28139
28140 fi
28141 ac_fn_c_check_header_compile "$LINENO" "netlink/socket.h" "ac_cv_header_netlink_socket_h" "$ac_includes_default"
28142 if test "x$ac_cv_header_netlink_socket_h" = xyes
28143 then :
28144 printf "%s\n" "#define HAVE_NETLINK_SOCKET_H 1" >>confdefs.h
28145
28146 fi
28147
28148
28149 fi
28150
28151 fi
28152 if test "x$ac_cv_header_netlink_netlink_h" = xyes; then
28153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28154 /* end confdefs.h. */
28155 #include <netlink/socket.h>
28156
28157 _ACEOF
28158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28159 $EGREP_TRADITIONAL "nl_socket_free" >/dev/null 2>&1
28160 then :
28161
28162 printf "%s\n" "#define HAVE_LIBNL3 1" >>confdefs.h
28163
28164 fi
28165 rm -rf conftest*
28166
28167 fi
28168 ;;
28169 esac
28170 fi
28171
28172 # -*- autoconf -*-
28173 #
28174 # generate empty files
28175 #
28176 # Create include file list for snmp_vars.h to use.
28177 mibdir="agent/mibgroup"
28178 if test ! -d agent; then
28179 mkdir agent
28180 fi
28181 if test ! -d agent/mibgroup; then
28182 mkdir agent/mibgroup
28183 fi
28184 j="$mibdir/mib_module_includes.h $mibdir/agent_module_includes.h \
28185 $mibdir/mib_module_inits.h $mibdir/agent_module_inits.h \
28186 $mibdir/mib_module_shutdown.h $mibdir/agent_module_shutdown.h \
28187 include/net-snmp/agent/mib_module_config.h \
28188 include/net-snmp/agent/agent_module_config.h \
28189 $mibdir/mib_module_dot_conf.h $mibdir/agent_module_dot_conf.h"
28190
28191 for i in $j; do
28192 rm -f $i
28193 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $i
28194 done
28195
28196 #
28197 # Do hairy agent module processing.
28198 #
28199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for and configuring mib modules to use" >&5
28200 printf %s "checking for and configuring mib modules to use... " >&6; }
28201
28202
28203
28204 # set up the CPP command
28205 MODULECPP="$CPP $PARTIALTARGETFLAGS $CPPFLAGS -DNETSNMP_FEATURE_CHECKING -I${srcdir}/include -I${srcdir}/agent/mibgroup"
28206 if test "x$enable_mfd_rewrites" = "xyes"; then
28207 MODULECPP="$MODULECPP -DNETSNMP_ENABLE_MFD_REWRITES"
28208 fi
28209
28210 module_list=""
28211 mib_module_list=""
28212 agent_module_list=""
28213 new_with_mib_modules=`echo $with_mib_modules | $SED 's/,/ /g;'`
28214 new_with_out_mib_modules=`echo $with_out_mib_modules | $SED 's/,/ /g;'`
28215
28216 # set up initial module list
28217 new_module_list="$new_with_mib_modules"
28218
28219 if test "x$enable_agent" != "xno" ; then
28220 # If the agent should be built then use default_modules
28221 new_module_list="$new_module_list default_modules"
28222
28223 if test "x$mini_agent" = "xyes"; then
28224 # define the mini agent flag to reduce our load list from default_mibs.h
28225 MODULECPP="$MODULECPP -DNETSNMP_MINI_AGENT"
28226 fi
28227 elif test "x$enable_applications" != "xno" ; then
28228 # otherwise, if snmptrapd should be built then add SNMPv3 and
28229 # snmptrapd-specific parts
28230 new_module_list="$new_module_list mibII/vacm_conf utilities/execute"
28231 default_mibs=SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB
28232 default_mibs_install=" "
28233 fi
28234
28235 test_modules="$new_module_list"
28236 new_module_list=""
28237
28238 # remove modules that were explicitly excluded
28239 for i in $test_modules
28240 do
28241 if echo " $new_with_out_mib_modules " | $GREP " $i " > /dev/null; then
28242 mib_cfg_msg="mib module '$i' is both included and excluded."
28243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mib module conflict" >&5
28244 printf "%s\n" "$as_me: WARNING: mib module conflict" >&2;}
28245 if test "x$with_mib_cfg_checks" = "xyes"; then
28246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: user with : $with_mib_modules" >&5
28247 printf "%s\n" "$as_me: WARNING: user with : $with_mib_modules" >&2;}
28248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: final with : $new_module_list" >&5
28249 printf "%s\n" "$as_me: WARNING: final with : $new_module_list" >&2;}
28250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: user without : $with_out_mib_modules" >&5
28251 printf "%s\n" "$as_me: WARNING: user without : $with_out_mib_modules" >&2;}
28252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: final without: $new_with_out_mib_modules" >&5
28253 printf "%s\n" "$as_me: WARNING: final without: $new_with_out_mib_modules" >&2;}
28254 as_fn_error $? "$mib_cfg_msg" "$LINENO" 5
28255 else
28256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $mib_cfg_msg It will be excluded" >&5
28257 printf "%s\n" "$as_me: WARNING: $mib_cfg_msg It will be excluded" >&2;}
28258
28259 cat >> configure-summary << EOF
28260 *** MIB Module warning *** $mib_cfg_msg It has been excluded.
28261 EOF
28262
28263 fi
28264 else
28265 new_module_list="$new_module_list $i"
28266 fi
28267 done
28268
28269 new_module_list=`(echo $new_module_list | tr ' ' '\n' | sort | tr '\n' ' '; echo '') | $SED 's/ $//'`
28270
28271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $new_module_list." >&5
28272 printf "%s\n" "$new_module_list." >&6; }
28273
28274 #---------------------
28275 # loop over module list
28276 #
28277 all_warnings=""
28278 if test "x$with_mib_cfg_debug" = "xyes"; then
28279 module_debug=1
28280 else
28281 module_debug=0
28282 fi
28283 first_pass=1
28284 output_to=normal
28285
28286 if test ! -d mk ; then
28287 mkdir mk
28288 fi
28289
28290
28291 module_rules=mk/module_rules.mk
28292 echo "# contents below built automatically by configure; do not edit by hand" > $module_rules
28293
28294 #
28295 # make file sub-pieces
28296 #
28297 for i in module_list_deps mib_module_list_deps agent_module_list_deps ; do
28298 eval "$i=mk/${i}.mk"
28299 echo "# contents below built automatically by configure; do not edit by hand" > mk/${i}.mk
28300 done
28301
28302 #
28303 # variable settings sub-pieces
28304 #
28305 for i in module_list_code mib_module_list_code agent_module_list_code module_list mib_module_list agent_module_list ; do
28306 eval "$i=mk/${i}.mk"
28307 echo "# contents below built automatically by configure; do not edit by hand" > mk/${i}.mk
28308 echo "$i= \\" >> mk/${i}.mk
28309 done
28310
28311 echo $ECHO_N "echo " $ECHO_C > mk/MODULE_LIST.mk
28312 MODULE_LIST=mk/MODULE_LIST.mk
28313
28314
28315 #---------------------
28316 # until we have an empty module list...
28317 # (modules may add new modules, and until all dependencies are done...)
28318 #
28319 while test "x$new_module_list" != "x"; do
28320
28321 if test $module_debug = 1; then
28322 echo -e "\n****************************************************************"
28323 fi
28324
28325
28326
28327 if test $module_debug = 1; then
28328 echo "nml: $new_module_list"
28329 fi
28330
28331
28332
28333 #---------------------
28334 # loop over all the modules in the current list
28335 #
28336 for j in $new_module_list
28337 do
28338
28339 #---------------------
28340 # figure out which sub-blocks to build in parts
28341 if echo "$j" | $GREP "=" ; then
28342 # build a shared object file
28343 # format: sofilename=module1:module2
28344 # XXX: currently doesn't do this
28345 dl_name=`echo $j | $SED 's/=.*//'`
28346 dl_names="$dl_names $dl_name"
28347 dl_objects=`echo $j | $SED 's/.*=//'`
28348 module_sublist=`echo $dl_objects | $SED 's/:/ /g'`
28349 saved_sublist=""
28350 saved_sublist_code=""
28351 output_to=separate
28352
28353 # create output files
28354 # these actually get nuked later
28355 output_inits="agent/mibgroup/${dl_name}-dll.c"
28356 output_hdrs="agent/mibgroup/${dl_name}-hdrs.h"
28357 else
28358 # not a special token invocation
28359 module_sublist=$j
28360 output_to=normal
28361 output_t=
28362 fi
28363
28364 while test "x$module_sublist" != "x" ; do
28365
28366 #---------------------
28367 # loop over all the modules in the sub list
28368 for i in $module_sublist
28369 do
28370
28371
28372 if test $module_debug = 1; then
28373 echo -e "\n================================================================"
28374 fi
28375
28376
28377
28378 if test $module_debug = 1; then
28379 echo "testing $i"
28380 fi
28381
28382
28383 need_header=0
28384
28385 #---------------------
28386 # build a pseudo include header that includes current config and
28387 # system symbols:
28388 rm -f conftest.$ac_ext module_tmp_header.h
28389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28390 /* end confdefs.h. */
28391
28392 #include NETSNMP_SYSTEM_INCLUDE_FILE
28393 #include "$srcdir/$mibdir/$i.h"
28394 _ACEOF
28395 mv conftest.$ac_ext module_tmp_header.h
28396
28397 #---------------------
28398 # macro: config_belongs_in(ARG)
28399 # ARG: either
28400 # - mib_module => libnetsnmpmibs (default)
28401 # - agent_module => libnetsnmpagent
28402 #
28403
28404 module_type=mib_module
28405 if test -f $srcdir/$mibdir/$i.h; then
28406
28407 module_type=`$MODULECPP module_tmp_header.h | \
28408 $SED -n 's@.*config_belongs_in(\([^)]*\)).*@\1@p'`
28409
28410 fi
28411 if test "x$module_type" = "x" ; then
28412 module_type=mib_module
28413 fi
28414 if test "x$output_to" = "xnormal" ; then
28415 output_inits="$mibdir/${module_type}_inits.h"
28416 output_hdrs="$mibdir/${module_type}_includes.h"
28417 fi
28418
28419 #--------------------
28420 # check for duplicates within the dll system.
28421 # - if found in a dll, then remove from the dll and add to main
28422 dblfix=""
28423 for dltest in $dl_names ; do
28424 eval mod_files="\"\$dl_${dltest}_files\""
28425 if echo " $mod_files " | $GREP " $i " > /dev/null; then
28426 # some dll module has already seen this, unload it from that list
28427 # and include it in the core (again)
28428
28429 if test $module_debug = 1; then
28430 echo "removing $i from $dltest"
28431 fi
28432
28433
28434 mod_files=`echo " $mod_files " | $SED "s@ $i @@"`
28435 dblfix="__XXX__"
28436 eval "dl_${dltest}_files=\"$mod_files\""
28437
28438 module_list="$module_list $i"
28439 echo "read_config.lo: mibgroup/$i.h" >> $module_list_deps
28440 if test $module_type = "agent_module" ; then
28441 echo "snmp_vars.lo: mibgroup/$i.h" >> $agent_module_list_deps
28442 else
28443 echo "mib_modules.lo: mibgroup/$i.h" >> $mib_module_list_deps
28444 fi
28445 eval ${module_type}_list="\"\$${module_type}_list $i\""
28446 echo " $i \\" >> $module_list_code
28447 echo $ECHO_N " $i" $ECHO_C >> $MODULE_LIST
28448 eval tmpfilevar=\$`echo ${module_type}_list_code`
28449 echo " $i \\" >> $tmpfilevar
28450
28451 # XXX: add this to the main init list; this is possible not
28452 # quite in the right spot any longer but we're stuck with it.
28453 # Adding it back to the original ordered spot would be a
28454 # nightmare. Ok, we're already in nightmare code so that
28455 # wolud have to be a night-terror.
28456 mnm=`echo $i | $SED 's/.*\///;s/\.c$//;'`
28457 output_inits_tmp="$mibdir/${module_type}_inits.h"
28458 echo " if (should_init(\"$mnm\")) init_$mnm();" >> $output_inits_tmp
28459 # XXX: even worse, we loose whether the header is needed or not.
28460 output_hdrs_tmp="$mibdir/${module_type}_includes.h"
28461 echo '#include "'"mibgroup/$i.h"'"' >> $output_hdrs_tmp
28462 fi
28463 done
28464
28465 #---------------------
28466 # make sure module wasn't explicitly excluded, or already added
28467 #
28468 if test "x$dblfix" != "x" ; then
28469
28470 if test $module_debug = 1; then
28471 echo "$i was duplicated -- putting into main"
28472 fi
28473
28474
28475 elif echo " $new_with_out_mib_modules " | $GREP " $i " > /dev/null; then
28476
28477 if test $module_debug = 1; then
28478 echo "$i was excluded"
28479 fi
28480
28481
28482 elif echo " $module_list " | $GREP " $i " > /dev/null; then
28483
28484 if test $module_debug = 1; then
28485 echo "$i already tested"
28486 fi
28487
28488
28489 else
28490
28491 #---------------------
28492 # process modules header, checking for config_ pseudo-macros
28493 #
28494
28495 #---------------------
28496 # does the header file for the module exist?
28497 # macros are only processed if it does
28498 if test -f $srcdir/$mibdir/$i.h; then
28499 new_list=""
28500
28501 #---------------------
28502 # macro: config_exclude(modules)
28503 # - lists conflicts with other modules
28504 # - EG: new MIB implementations exclude old and vice-versa
28505 #
28506 # check if $i has any conflicts
28507 #
28508
28509 new_list_excl=`$MODULECPP module_tmp_header.h | \
28510 $SED -n 's/.*config_exclude(\(.*\)).*/\1/p'`
28511 if test "x$new_list_excl" != "x"; then
28512
28513 if test $module_debug = 1; then
28514 echo "$i excludes $new_list_excl"
28515 fi
28516
28517
28518 for j in $new_list_excl
28519 do
28520 if echo " $module_list $new_mib_module_list $new_list_two " | $GREP " $j " > /dev/null; then
28521 mib_cfg_msg="mib module '$i' excludes module '$j' but another module requires it"
28522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mib module error" >&5
28523 printf "%s\n" "$as_me: WARNING: mib module error" >&2;}
28524 if test "x$with_mib_cfg_checks" = "xyes"; then
28525 as_fn_error $? "$mib_cfg_msg" "$LINENO" 5
28526 else
28527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $mib_cfg_msg" >&5
28528 printf "%s\n" "$as_me: WARNING: $mib_cfg_msg" >&2;}
28529
28530 cat >> configure-summary << EOF
28531 *** MIB Module warning *** $mib_cfg_msg
28532 EOF
28533
28534 fi
28535 else
28536 new_with_out_mib_modules="$j $new_with_out_mib_modules"
28537
28538 if test $module_debug = 1; then
28539 echo "$j added to excluded list"
28540 fi
28541
28542
28543 fi
28544 done
28545 fi
28546
28547 #---------------------
28548 # macro: config_arch_require(ARCH,modules)
28549 # - lists modules required for a given ARCH
28550 #
28551 # check if $i has any architecture specific requirements
28552 #
28553
28554
28555 new_list_arch=`$MODULECPP module_tmp_header.h | \
28556 $SED -n 's/.*config_arch_require( *\([^ ]*\) *, *\([^ ]*\) *).*/\1-xarchx-\2/p'`
28557
28558 if test "x$new_list_arch" != "x"; then
28559 for j in $new_list_arch
28560 do
28561 archtest=`echo $j | $SED 's/-xarchx-.*//'`
28562 # target_os may have been changed to a #define of 1...
28563 if test "x$archtest" = "x1" -o "x$target_os" = "x$archtest" -o "x$PARTIALTARGETOS" = "x$archtest"; then
28564 new_list="$new_list `echo $j | $SED 's/.*-xarchx-//'`"
28565
28566 if test $module_debug = 1; then
28567 echo " $i required adding arch files: `echo $j | $SED 's/.*-xarchx-//'`"
28568 fi
28569
28570
28571 fi
28572 done
28573 fi
28574
28575 if test $module_debug = 1; then
28576 echo " $i required arch files: $new_list"
28577 fi
28578
28579
28580
28581 #---------------------
28582 # macro: config_version_require((base, version, version-modules, ...))
28583 # - lists alternative modules used from different versions.
28584 #
28585
28586 new_list_alt3=`$MODULECPP module_tmp_header.h | \
28587 $AWK '
28588 BEGIN {
28589 if("'"$enable_new_features"'" == "yes")
28590 method="max";
28591 else if("'"$enable_old_features"'" == "yes")
28592 method="max-less";
28593 else
28594 method="max-less-equal";
28595 FS = ".";
28596 split("'"$with_features_of"'", a);
28597 version=sprintf("%03d%03d%03d%03d", a[1], a[2], a[3], a[4]);
28598 }
28599 /config_version_require/ {
28600 gsub("^.*config_version_require *\\\\(\\\\(", "");
28601 gsub("\\\\)\\\\).*$", "");
28602 gsub(", *", ",");
28603 FS = ",";
28604 n = split($0, a);
28605 FS = ".";
28606 actver = "000000000000";
28607 actstr = a[1];
28608 for(i = 2; i < n; i += 2) {
28609 split(a[i], b);
28610 curver=sprintf("%03d%03d%03d%03d", b[1], b[2], b[3], b[4]);
28611 if (curver > actver && (method != "max-less" || curver < version) && (method != "max-less-equal" || curver <= version)) {
28612 actver = curver;
28613 actstr = a[i + 1];
28614 }
28615 }
28616 printf(" %s", actstr);
28617 }'`
28618
28619 if test $module_debug = 1; then
28620 echo " $i required versioned features: $new_list_alt3"
28621 fi
28622
28623
28624 new_list="${new_list}${new_list_alt3}"
28625
28626 #---------------------
28627 # macro: config_require(modules)
28628 # - lists modules required for this module
28629 #
28630 # check if $i has any other required modules
28631 #
28632
28633 new_list="$new_list `$MODULECPP module_tmp_header.h | \
28634 $SED -n 's/.*config_require(\(.*\)).*/\1/p'`"
28635
28636 if test $module_debug = 1; then
28637 echo " $i will test: $new_list"
28638 fi
28639
28640
28641 if test "x$new_list" != "x"; then
28642 for j in $new_list
28643 do
28644
28645 if test $module_debug = 1; then
28646 echo -n " $i wants to add $j: "
28647 fi
28648
28649
28650 if test ! -f $srcdir/$mibdir/$j.h -a ! -f $srcdir/$mibdir/$j.c; then
28651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mib module error" >&5
28652 printf "%s\n" "$as_me: WARNING: mib module error" >&2;}
28653 as_fn_error $? "mib module \"$i\" requires module \"$j\" but $j.h or $j.c could not be found in $srcdir/$mibdir" "$LINENO" 5
28654 elif echo " $new_with_out_mib_modules " | $GREP " $j " > /dev/null; then
28655 if test "x$i" != "xdefault_modules" ; then
28656 mib_cfg_msg="mib module '$i' requires module '$j' but someone told me to compile without it"
28657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mib module error" >&5
28658 printf "%s\n" "$as_me: WARNING: mib module error" >&2;}
28659 if test "x$with_mib_cfg_checks" = "xyes"; then
28660 as_fn_error $? "$mib_cfg_msg" "$LINENO" 5
28661 else
28662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $mib_cfg_msg" >&5
28663 printf "%s\n" "$as_me: WARNING: $mib_cfg_msg" >&2;}
28664
28665 cat >> configure-summary << EOF
28666 *** MIB Module warning *** $mib_cfg_msg
28667 EOF
28668
28669 fi
28670 # elif echo " $module_list $new_list_two $new_module_list " | $GREP " $j " > /dev/null; then
28671 # AC_MSG_MODULE_DBG(" $j included previously")
28672 fi
28673 else
28674 new_list_two="$new_list_two $j"
28675
28676 if test $module_debug = 1; then
28677 echo " $j included"
28678 fi
28679
28680
28681 fi
28682 done
28683 fi
28684
28685 #---------------------
28686 # macro: config_add_mib(SOME-MIB)
28687 # - lists MIBs to be added to the default to-load list.
28688 #
28689 # check if $i has any mibs to add
28690 #
28691
28692 new_mibs=`$MODULECPP module_tmp_header.h | \
28693 $SED -n 's/.*config_add_mib(\(.*\)).*/\1/p'`
28694 if test "x$new_mibs" != "x"; then
28695 for j in $new_mibs
28696 do
28697 if test "x`echo :$default_mibs: | $GREP :$j:`" = "x"; then
28698 default_mibs="$default_mibs:$j"
28699 fi
28700 if test -f $srcdir/mibs/$j.txt; then
28701 if echo $default_mibs_install | $GREP " $j " > /dev/null; then
28702 :
28703 else
28704 default_mibs_install="$default_mibs_install $j.txt"
28705 fi
28706 fi
28707 done
28708 fi # new mibs
28709
28710 #-------------------
28711 # add the current module to the list of stuff to compile, etc.
28712 #
28713 # add $i to module list
28714 #
28715
28716 if test $module_debug = 1; then
28717 echo " $i added (based on $i.h)"
28718 fi
28719
28720
28721 module_list="$module_list $i"
28722 eval ${module_type}_list="\"\$${module_type}_list $i\""
28723
28724 echo "read_config.lo: mibgroup/$i.h" >> $module_list_deps
28725 if test $module_type = "agent_module" ; then
28726 echo "snmp_vars.lo: mibgroup/$i.h" >> $agent_module_list_deps
28727 else
28728 echo "mib_modules.lo: mibgroup/$i.h" >> $mib_module_list_deps
28729 fi
28730
28731 #-------------------
28732 # check for unsupported config_load_mib
28733 #
28734 if $MODULECPP module_tmp_header.h | $GREP -q config_load_mib; then
28735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mib module error" >&5
28736 printf "%s\n" "$as_me: WARNING: mib module error" >&2;}
28737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mib module \"$i\" uses the \"config_load_mib\" directive, which is no longer supported. It probably won't work." >&5
28738 printf "%s\n" "$as_me: WARNING: mib module \"$i\" uses the \"config_load_mib\" directive, which is no longer supported. It probably won't work." >&2;}
28739 fi # grep config_load_mib
28740
28741 #-------------------
28742 # check for config_parse_dot_conf
28743 # (generally not used any longer; old auto-load a .conf token)
28744 #
28745
28746
28747 $MODULECPP module_tmp_header.h | \
28748 $SED -n 's@.*config_parse_dot_conf(\([^)]*\), *\([^),]*\), *\([^),]*\), *\([^),]*\)).*@register_config_handler("snmpd",\1, \2, \3, \4);@p' >> $mibdir/mib_module_dot_conf.h
28749
28750
28751 #---------------------
28752 # macro: config_error(error text)
28753 # - used to signal a configuration error from a module
28754 #
28755 # check if $i has any errors, or warnings
28756 #
28757
28758 error=`$MODULECPP module_tmp_header.h | \
28759 $SED -n 's/.*config_error(\(.*\)).*/\1/p'`
28760 if test "x$error" != "x"; then
28761 echo
28762 echo
28763 as_fn_error $? "$i: *** $error ***" "$LINENO" 5
28764 fi
28765
28766 #---------------------
28767 # macro: config_warning(warning text)
28768 # - used to signal a configuration "warning" to be printed to the user
28769 #
28770
28771 warning=`$MODULECPP module_tmp_header.h | \
28772 $SED -n 's/.*config_warning(\(.*\)).*/\1/p'`
28773 if test "x$warning" != "x"; then
28774 all_warnings="$all_warnings $warning
28775 "
28776 fi
28777
28778 #---------------------
28779 # Check for a .c file if the .h didn't exist
28780 #
28781 elif test -f $srcdir/$mibdir/$i.c; then
28782 if echo " $module_list $new_list_two $new_module_list " | $GREP " $i " > /dev/null; then
28783
28784 if test $module_debug = 1; then
28785 echo " $i already included"
28786 fi
28787
28788
28789 else
28790
28791 if test $module_debug = 1; then
28792 echo " $i added (based on $i.c)"
28793 fi
28794
28795
28796 module_list="$module_list $i"
28797 mib_module_list="$mib_module_list $i"
28798 fi
28799
28800 #---------------------
28801 # No .h or .c = error! (typo?)
28802 #
28803 else # no $i.h or $i.c
28804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mib module error" >&5
28805 printf "%s\n" "$as_me: WARNING: mib module error" >&2;}
28806 as_fn_error $? "module files $i.h or $i.c could not be found in $srcdir/$mibdir" "$LINENO" 5
28807 fi # no $i.h
28808
28809 #-------------------
28810 # check for init/shutdown routines too
28811 #
28812 has_c_code=no
28813 if test -f $srcdir/$mibdir/$i.c; then
28814 if test "x$output_to" = "xnormal" ; then
28815 echo " $i \\" >> $module_list_code
28816 echo $ECHO_N " $i" $ECHO_C >> $MODULE_LIST
28817 eval tmpfilevar=\$`echo ${module_type}_list_code`
28818 echo " $i \\" >> $tmpfilevar
28819 else
28820 eval "dl_${dl_name}_files=\"\$dl_${dl_name}_files $i\""
28821 saved_sublist_code="$saved_sublist_code $i"
28822 fi
28823 mnm=`echo $i | $SED 's/.*\///;s/\.c$//;'`
28824
28825 if test $module_debug = 1; then
28826 echo -e "\nchecking '$srcdir/$mibdir/$i.c' ($mnm/`basename $i`) C file for init/shutdown"
28827 fi
28828
28829
28830 if test "x$mnm" != "x`basename $i`"; then
28831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mib module error" >&5
28832 printf "%s\n" "$as_me: WARNING: mib module error" >&2;}
28833 as_fn_error $? "conflicting names: $mnm != \`basename $i\`" "$LINENO" 5
28834 fi
28835 temp_init=`$GREP init_$mnm $srcdir/$mibdir/$i.c | $GREP -v _init_$mnm`
28836 if test "x$temp_init" != "x"; then
28837
28838 if test $module_debug = 1; then
28839 echo -e "adding init_$mnm() to list"
28840 fi
28841
28842
28843 need_header=1
28844 echo " if (should_init(\"$mnm\")) init_$mnm();" >> $output_inits
28845 fi
28846 $GREP shutdown_$mnm $srcdir/$mibdir/$i.c > /dev/null
28847 if test $? -eq 0 ; then
28848 if test $module_debug -eq 1; then
28849 echo -e "\nadding shutdown_$mnm() to list"
28850 fi
28851 need_header=1
28852 echo " if (should_init(\"$mnm\")) shutdown_$mnm();" >> $mibdir/${module_type}_shutdown.h
28853 fi
28854 fi # test -f $srcdir/$mibdir/$i.c
28855
28856 #-------------------
28857 # if there is a shutdown/init list,
28858 #
28859 if test $need_header -eq 1 ; then
28860 echo '#include "'"mibgroup/$i.h"'"' >> $output_hdrs
28861 else
28862 echo '/*#include "'"mibgroup/$i.h"'"*/' >> $output_hdrs
28863 fi
28864
28865 #-------------------
28866 # check for output directory (for building outside of source tree
28867 #
28868
28869 if test "x`echo $i | $SED 's/\///g;'`" != "x$i"; then
28870 mnd=`echo $i | $SED 's/\/[^/]*$//;'`
28871 if test ! -d ./$mibdir/$mnd; then
28872 module_directories="$module_directories ./$mibdir/$mnd"
28873 fi
28874 fi # module directory test
28875
28876
28877 #-------------------
28878 # define USING_*_MODULE
28879 #
28880
28881 sym="`echo ${i} | $SED 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`"
28882
28883 echo "/* Define if compiling with the ${i} module files. */" >> include/net-snmp/agent/${module_type}_config.h
28884 echo "#define USING_${sym}_MODULE 1" >> include/net-snmp/agent/${module_type}_config.h
28885 echo " " >> include/net-snmp/agent/${module_type}_config.h
28886
28887 #-------------------
28888 echo $ECHO_N " $i$ECHO_C"
28889 fi #
28890 done # for i in $module_sublist
28891
28892 if test "$output_to" = "separate" ; then
28893 if test "x$new_list_two" = "x" ; then
28894 # no new sub-modules to add to the current target
28895 output_to="normal"
28896
28897 dllcleans="$saved_sublist_o $dllcleans"
28898 output_inits=""
28899 module_sublist=""
28900 else
28901 # a module had sub-modules required; keep goin'
28902 saved_sublist="$saved_sublist $module_sublist"
28903 module_sublist="$new_list_two"
28904 new_list_two=""
28905 fi
28906 else
28907 module_sublist=""
28908 fi
28909
28910 done # while module_sublist
28911 done # for j in $new_module_list
28912
28913 # remember the top level modules for later reporting
28914 if test $first_pass = 1 ; then
28915 # remember this list for later reporting
28916 top_level_modules="$new_module_list => $new_list_two"
28917 first_pass=0
28918 fi
28919 #-------------------
28920 # if $i added new modules vis config_*,
28921 # check those modules for requirements too
28922 #
28923 # transfer the new module to check list to the normal variable
28924 #
28925 if test "x$new_list_two" ; then
28926 output_to=normal
28927 fi
28928 new_module_list="$new_list_two"
28929 new_list_two=""
28930 done # while test "x$new_module_list" != "x"; do
28931 echo ""
28932
28933 #--------------------
28934 # construct the dll code files and make rules. This can't be done
28935 # until now because duplicate use of a module means it gets removed
28936 # from the dll and put into the main agent.
28937 #
28938 for i in $dl_names ; do
28939 eval mod_files="\"\$dl_${i}_files\""
28940 echo "components in the $i dll: $mod_files"
28941
28942 output_inits="agent/mibgroup/${i}-dll.c"
28943 output_hdrs="agent/mibgroup/${i}-hdrs.h"
28944
28945
28946 if test $module_debug = 1; then
28947 echo "creating dll file: $output_inits"
28948 fi
28949
28950
28951 for ofile in $output_inits $output_hdrs ; do
28952 if test -f $ofile ; then
28953 if $GREP "this file created automatically by configure" $ofile > /dev/null 2>&1 ; then
28954 :
28955 else
28956 as_fn_error $? "$ofile already existed ; can't build dll object $i" "$LINENO" 5
28957 fi
28958 fi
28959 cat > $ofile << EOFIF
28960 /* xDo not edit; this file created automatically by configure */
28961 EOFIF
28962 done
28963
28964 cat >> $output_inits << EOFOC
28965 #include <net-snmp/net-snmp-config.h>
28966 #include <net-snmp/net-snmp-includes.h>
28967 #include <net-snmp/agent/net-snmp-agent-includes.h>
28968 #include "${i}-hdrs.h"
28969 void
28970 init_$i(void) {
28971 EOFOC
28972
28973 # create the .so rule
28974 saved_sublist_o=`echo "$mod_files " | $SED 's/^ *//g;s/ */.o /g;'`
28975
28976 # create the rules for each object
28977 for j in $mod_files ; do
28978 cat >> $module_rules << EOFR
28979 $j.o: $j.c
28980 \$(CC) -c \$(CPPFLAGS) \$(CFLAGS) \$(DLFLAGS) -o \$@ \$<
28981
28982 EOFR
28983 mnm=`echo $j | $SED 's/.*\///;s/\.c$//;'`
28984 echo " if (should_init(\"$mnm\")) init_$mnm();" >> $output_inits
28985 done
28986
28987 # create the rule for the .so and wrapper code
28988 cat >> $module_rules << EOFM
28989 ${i}-dll.o: ${i}-dll.c
28990 \$(CC) -c \$(CPPFLAGS) \$(CFLAGS) \$(DLFLAGS) -o \$@ \$<
28991
28992 ${i}.so: $saved_sublist_o ${i}-dll.o
28993 \$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(DLFLAGS) -o \$@ $saved_sublist_o ${i}-dll.o
28994
28995 EOFM
28996 cat >> $output_inits << EOFOCFIN
28997 }
28998 EOFOCFIN
28999
29000 done
29001
29002 # cleanup
29003 rm -f conftest.$ac_ext module_tmp_header.h
29004
29005 #-------------------
29006 # build module lists for Makefiles
29007 #
29008
29009
29010 for i in module_list_o module_list_c module_list_lo module_list_ft mib_module_list_o mib_module_list_c mib_module_list_lo mib_module_list_ft mibgroup_list_o mibgroup_list_lo mibgroup_list_ft agent_module_list_o agent_module_list_c agent_module_list_lo agent_module_list_ft agentgroup_list_o agentgroup_list_lo agentgroup_list_ft ; do
29011 eval "$i=mk/${i}.mk"
29012 done
29013
29014 $SED 's/^module_list_code/module_list_o/;s/\([^=]\) *\\/\1.o \\/g' < $module_list_code > $module_list_o
29015 $SED 's/^module_list_code/module_list_c/;s/\([^=]\) *\\/\1.c \\/g' < $module_list_code > $module_list_c
29016 $SED 's/^module_list_code/module_list_lo/;s/\([^=]\) *\\/\1.lo \\/g' < $module_list_code > $module_list_lo
29017 $SED 's/^module_list_code/module_list_ft/;s/\([^=]\) *\\/\1.ft \\/g' < $module_list_code > $module_list_ft
29018
29019 $SED 's/^mib_module_list_code/mib_module_list_o/;s/\([^=]\) *\\/\1.o \\/g' < $mib_module_list_code > $mib_module_list_o
29020 $SED 's/^mib_module_list_code/mib_module_list_c/;s/\([^=]\) *\\/\1.c \\/g' < $mib_module_list_code > $mib_module_list_c
29021 $SED 's/^mib_module_list_code/mib_module_list_lo/;s/\([^=]\) *\\/\1.lo \\/g' < $mib_module_list_code > $mib_module_list_lo
29022 $SED 's/^mib_module_list_code/mib_module_list_ft/;s/\([^=]\) *\\/\1.ft \\/g' < $mib_module_list_code > $mib_module_list_ft
29023
29024 $SED 's/^mib_module_list_o/mibgroup_list_o/;s@\([^ ]*\)\.o@mibgroup/\1.o@g' < $mib_module_list_o > $mibgroup_list_o
29025 $SED 's/^mib_module_list_lo/mibgroup_list_lo/;s@\([^ ]*\)\.lo@mibgroup/\1.lo@g' < $mib_module_list_lo > $mibgroup_list_lo
29026 $SED 's/^mib_module_list_ft/mibgroup_list_ft/;s@\([^ ]*\)\.ft@mibgroup/\1.ft@g' < $mib_module_list_ft > $mibgroup_list_ft
29027
29028 $SED 's/^agent_module_list_code/agent_module_list_o/;s/\([^=]\) *\\/\1.o \\/g' < $agent_module_list_code > $agent_module_list_o
29029 $SED 's/^agent_module_list_code/agent_module_list_c/;s/\([^=]\) *\\/\1.c \\/g' < $agent_module_list_code > $agent_module_list_c
29030 $SED 's/^agent_module_list_code/agent_module_list_lo/;s/\([^=]\) *\\/\1.lo \\/g' < $agent_module_list_code > $agent_module_list_lo
29031 $SED 's/^agent_module_list_code/agent_module_list_ft/;s/\([^=]\) *\\/\1.ft \\/g' < $agent_module_list_code > $agent_module_list_ft
29032
29033 $SED 's/^agent_module_list_o/agentgroup_list_o/;s@\([^ ]*\)\.o@mibgroup/\1.o@g' < $agent_module_list_o > $agentgroup_list_o
29034 $SED 's/^agent_module_list_lo/agentgroup_list_lo/;s@\([^ ]*\)\.lo@mibgroup/\1.lo@g' < $agent_module_list_lo > $agentgroup_list_lo
29035 $SED 's/^agent_module_list_ft/agentgroup_list_ft/;s@\([^ ]*\)\.ft@mibgroup/\1.ft@g' < $agent_module_list_ft > $agentgroup_list_ft
29036
29037 for i in module_list_o module_list_c module_list_lo module_list_ft mib_module_list_o mib_module_list_c mib_module_list_lo mib_module_list_ft mibgroup_list_o mibgroup_list_lo mibgroup_list_ft agent_module_list_o agent_module_list_c agent_module_list_lo agent_module_list_ft agentgroup_list_o agentgroup_list_lo agentgroup_list_ft ; do
29038 # hpux make (at least) doesn't like a trailing \ on the last
29039 # line even when the next line contains nothing but
29040 # whitespace.
29041 lasttoken=`awk '{lasttoken=$1}END{print lasttoken}' mk/$i.mk`
29042 $SED "s#$lasttoken \\\\#$lasttoken#" < mk/$i.mk > mk/$i.mk.tmp
29043 mv mk/$i.mk.tmp mk/$i.mk
29044
29045 # add a closing comment
29046 echo "" >> mk/$i.mk
29047 echo "# end configure generated code" >> mk/$i.mk
29048 done
29049
29050
29051
29052 if test $module_debug -eq 1; then
29053 echo -e "\nFinal module list: $module_list_code"
29054 exit 1
29055 fi
29056 if test "x$with_mib_cfg_checks" = "xyes"; then
29057
29058 cat >> configure-summary << EOF
29059 Agent Module list: $module_list_code
29060 EOF
29061
29062 fi
29063
29064
29065
29066
29067
29068
29069
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082
29083
29084
29085
29086
29087
29088
29089
29090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ." >&5
29091 printf "%s\n" "." >&6; }
29092
29093 if test $module_debug -eq 1; then
29094
29095 cat >> configure-summary << EOF
29096 Agent MIB code: $module_list
29097 EOF
29098
29099 fi
29100
29101 cat >> configure-summary << EOF
29102 Agent MIB code: $top_level_modules
29103 EOF
29104
29105
29106 # end hairy agent module processing
29107
29108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if directories need to be created" >&5
29109 printf %s "checking if directories need to be created... " >&6; }
29110 for i in $module_directories; do
29111 $srcdir/mkinstalldirs $i
29112 done
29113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ." >&5
29114 printf "%s\n" "." >&6; }
29115
29116 #-------------------
29117 # Define default mibs
29118 #
29119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default mib files to read" >&5
29120 printf %s "checking default mib files to read... " >&6; }
29121 if test "x$NETSNMP_DEFAULT_MIBS" = "x"; then
29122 NETSNMP_DEFAULT_MIBS="$default_mibs"
29123 fi
29124 if test "x$ENV_SEPARATOR" != "x"; then
29125 :
29126 elif test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc"; then
29127 # mingw32 uses ';' as the default environment variable separator
29128 ENV_SEPARATOR=";"
29129 NETSNMP_DEFAULT_MIBS=`echo "$NETSNMP_DEFAULT_MIBS" | $SED 's/:/;/g'`
29130 default_mibs=`echo "$default_mibs" | $SED 's/:/;/g'`
29131 else
29132 ENV_SEPARATOR=":"
29133 fi
29134
29135
29136 printf "%s\n" "#define ENV_SEPARATOR \"$ENV_SEPARATOR\"" >>confdefs.h
29137
29138
29139 printf "%s\n" "#define ENV_SEPARATOR_CHAR '$ENV_SEPARATOR'" >>confdefs.h
29140
29141 printf "%s\n" "#define NETSNMP_DEFAULT_MIBS \"$NETSNMP_DEFAULT_MIBS\"" >>confdefs.h
29142
29143
29144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_DEFAULT_MIBS" >&5
29145 printf "%s\n" "$NETSNMP_DEFAULT_MIBS" >&6; }
29146
29147 #-------------------
29148 # Define symbols for conditional compilation in makefiles
29149 #
29150
29151 if echo " $agent_module_list " | \
29152 $FGREP ' agentx/agentx_config ' | \
29153 $FGREP ' agentx/protocol ' > /dev/null ; then
29154 NETSNMP_HAVE_AGENTX_LIBS_TRUE=''
29155 NETSNMP_HAVE_AGENTX_LIBS_FALSE='#'
29156 else
29157 NETSNMP_HAVE_AGENTX_LIBS_TRUE='#'
29158 NETSNMP_HAVE_AGENTX_LIBS_FALSE=''
29159 fi
29160
29161
29162
29163 # -*- autoconf -*-
29164 #########################################
29165 ##
29166 # Miscellaneous checks
29167 ##
29168 #########################################
29169
29170 ##
29171 # Compilation-related
29172 ##
29173
29174 # Dynamic modules require Position-Independent Code
29175 # LIB_CFLAGS/DLLIBS: used in agent Makefile only
29176 #
29177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have to build PIC code" >&5
29178 printf %s "checking whether we have to build PIC code... " >&6; }
29179 echo " $module_list " | $GREP " ucd-snmp/dlmod " >/dev/null
29180 if test $? -eq 0 ; then
29181 LIB_CFLAGS="$LIB_CFLAGS $SHLIB_CFLAGS"
29182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29183 printf "%s\n" "yes" >&6; }
29184 else
29185 DLLIBS=""
29186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29187 printf "%s\n" "no" >&6; }
29188 fi
29189
29190
29191 # -*- autoconf -*-
29192 #########################################
29193 ##
29194 # Checks for libraries that are run
29195 # after the agent module tests.
29196 ##
29197 #########################################
29198
29199 # HAVE_LIB Definitions used in the Net-SNMP code base:
29200 #
29201 # HAVE_LIBCRYPTO: apps
29202 # HAVE_LIBRPM: agent
29203 #
29204
29205 ##
29206 # Simple checks:
29207 ##
29208
29209 # ELF libraries
29210 # Typically used for 'nlist' (needed for uptime)
29211 #
29212 if test "x$with_elf" != "xno"; then
29213 case $target_os in
29214 linux*) # add hosts which don't use nlist here
29215 ;;
29216 irix*) # Check for nlist in mld (irix)
29217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
29218 printf %s "checking for nlist in -lelf... " >&6; }
29219 if test ${ac_cv_lib_elf_nlist+y}
29220 then :
29221 printf %s "(cached) " >&6
29222 else case e in #(
29223 e) ac_check_lib_save_LIBS=$LIBS
29224 LIBS="-lelf $LIBS"
29225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29226 /* end confdefs.h. */
29227
29228 /* Override any GCC internal prototype to avoid an error.
29229 Use char because int might match the return type of a GCC
29230 builtin and then its argument prototype would still apply.
29231 The 'extern "C"' is for builds by C++ compilers;
29232 although this is not generally supported in C code supporting it here
29233 has little cost and some practical benefit (sr 110532). */
29234 #ifdef __cplusplus
29235 extern "C"
29236 #endif
29237 char nlist (void);
29238 int
29239 main (void)
29240 {
29241 return nlist ();
29242 ;
29243 return 0;
29244 }
29245 _ACEOF
29246 if ac_fn_c_try_link "$LINENO"
29247 then :
29248 ac_cv_lib_elf_nlist=yes
29249 else case e in #(
29250 e) ac_cv_lib_elf_nlist=no ;;
29251 esac
29252 fi
29253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29254 conftest$ac_exeext conftest.$ac_ext
29255 LIBS=$ac_check_lib_save_LIBS ;;
29256 esac
29257 fi
29258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
29259 printf "%s\n" "$ac_cv_lib_elf_nlist" >&6; }
29260 if test "x$ac_cv_lib_elf_nlist" = xyes
29261 then :
29262 printf "%s\n" "#define HAVE_LIBELF 1" >>confdefs.h
29263
29264 LIBS="-lelf $LIBS"
29265
29266 fi
29267
29268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nlist64 in -lelf" >&5
29269 printf %s "checking for nlist64 in -lelf... " >&6; }
29270 if test ${ac_cv_lib_elf_nlist64+y}
29271 then :
29272 printf %s "(cached) " >&6
29273 else case e in #(
29274 e) ac_check_lib_save_LIBS=$LIBS
29275 LIBS="-lelf $LIBS"
29276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29277 /* end confdefs.h. */
29278
29279 /* Override any GCC internal prototype to avoid an error.
29280 Use char because int might match the return type of a GCC
29281 builtin and then its argument prototype would still apply.
29282 The 'extern "C"' is for builds by C++ compilers;
29283 although this is not generally supported in C code supporting it here
29284 has little cost and some practical benefit (sr 110532). */
29285 #ifdef __cplusplus
29286 extern "C"
29287 #endif
29288 char nlist64 (void);
29289 int
29290 main (void)
29291 {
29292 return nlist64 ();
29293 ;
29294 return 0;
29295 }
29296 _ACEOF
29297 if ac_fn_c_try_link "$LINENO"
29298 then :
29299 ac_cv_lib_elf_nlist64=yes
29300 else case e in #(
29301 e) ac_cv_lib_elf_nlist64=no ;;
29302 esac
29303 fi
29304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29305 conftest$ac_exeext conftest.$ac_ext
29306 LIBS=$ac_check_lib_save_LIBS ;;
29307 esac
29308 fi
29309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist64" >&5
29310 printf "%s\n" "$ac_cv_lib_elf_nlist64" >&6; }
29311 if test "x$ac_cv_lib_elf_nlist64" = xyes
29312 then :
29313 printf "%s\n" "#define HAVE_LIBELF 1" >>confdefs.h
29314
29315 LIBS="-lelf $LIBS"
29316
29317 fi
29318
29319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nlist in -lmld" >&5
29320 printf %s "checking for nlist in -lmld... " >&6; }
29321 if test ${ac_cv_lib_mld_nlist+y}
29322 then :
29323 printf %s "(cached) " >&6
29324 else case e in #(
29325 e) ac_check_lib_save_LIBS=$LIBS
29326 LIBS="-lmld $LIBS"
29327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29328 /* end confdefs.h. */
29329
29330 /* Override any GCC internal prototype to avoid an error.
29331 Use char because int might match the return type of a GCC
29332 builtin and then its argument prototype would still apply.
29333 The 'extern "C"' is for builds by C++ compilers;
29334 although this is not generally supported in C code supporting it here
29335 has little cost and some practical benefit (sr 110532). */
29336 #ifdef __cplusplus
29337 extern "C"
29338 #endif
29339 char nlist (void);
29340 int
29341 main (void)
29342 {
29343 return nlist ();
29344 ;
29345 return 0;
29346 }
29347 _ACEOF
29348 if ac_fn_c_try_link "$LINENO"
29349 then :
29350 ac_cv_lib_mld_nlist=yes
29351 else case e in #(
29352 e) ac_cv_lib_mld_nlist=no ;;
29353 esac
29354 fi
29355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29356 conftest$ac_exeext conftest.$ac_ext
29357 LIBS=$ac_check_lib_save_LIBS ;;
29358 esac
29359 fi
29360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mld_nlist" >&5
29361 printf "%s\n" "$ac_cv_lib_mld_nlist" >&6; }
29362 if test "x$ac_cv_lib_mld_nlist" = xyes
29363 then :
29364 printf "%s\n" "#define HAVE_LIBMLD 1" >>confdefs.h
29365
29366 LIBS="-lmld $LIBS"
29367
29368 fi
29369
29370 ;;
29371 *) # default
29372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
29373 printf %s "checking for nlist in -lelf... " >&6; }
29374 if test ${ac_cv_lib_elf_nlist+y}
29375 then :
29376 printf %s "(cached) " >&6
29377 else case e in #(
29378 e) ac_check_lib_save_LIBS=$LIBS
29379 LIBS="-lelf $LIBS"
29380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29381 /* end confdefs.h. */
29382
29383 /* Override any GCC internal prototype to avoid an error.
29384 Use char because int might match the return type of a GCC
29385 builtin and then its argument prototype would still apply.
29386 The 'extern "C"' is for builds by C++ compilers;
29387 although this is not generally supported in C code supporting it here
29388 has little cost and some practical benefit (sr 110532). */
29389 #ifdef __cplusplus
29390 extern "C"
29391 #endif
29392 char nlist (void);
29393 int
29394 main (void)
29395 {
29396 return nlist ();
29397 ;
29398 return 0;
29399 }
29400 _ACEOF
29401 if ac_fn_c_try_link "$LINENO"
29402 then :
29403 ac_cv_lib_elf_nlist=yes
29404 else case e in #(
29405 e) ac_cv_lib_elf_nlist=no ;;
29406 esac
29407 fi
29408 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29409 conftest$ac_exeext conftest.$ac_ext
29410 LIBS=$ac_check_lib_save_LIBS ;;
29411 esac
29412 fi
29413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
29414 printf "%s\n" "$ac_cv_lib_elf_nlist" >&6; }
29415 if test "x$ac_cv_lib_elf_nlist" = xyes
29416 then :
29417 printf "%s\n" "#define HAVE_LIBELF 1" >>confdefs.h
29418
29419 LIBS="-lelf $LIBS"
29420
29421 fi
29422
29423 ;;
29424 esac
29425 fi
29426
29427
29428 # libsocket
29429 # Needed for 'socket(2)' (Solaris)
29430 # Possibly also for 'gethostname(3)' (non-Solaris)
29431 # (alternatively in libnsl (Solaris)
29432 # or in libws2_32) (MinGW)
29433 #
29434 case x$with_socklib in
29435 xwinsock2)
29436 # libws2_w32 (MinGW)
29437 #
29438 netsnmp_save_LIBS="$LIBS"
29439 LIBS="$LIBS -lws2_32"
29440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29441 /* end confdefs.h. */
29442
29443 #include <winsock2.h>
29444
29445 int
29446 main (void)
29447 {
29448
29449 socket(0, 0, 0);
29450 gethostbyname(0);
29451
29452 ;
29453 return 0;
29454 }
29455 _ACEOF
29456 if ac_fn_c_try_link "$LINENO"
29457 then :
29458
29459 # Keep LIBS.
29460 true
29461
29462 else case e in #(
29463 e)
29464 # Restore LIBS and complain.
29465 LIBS="$netsnmp_save_LIBS"
29466 as_fn_error $? "libws2_32 not found." "$LINENO" 5
29467 ;;
29468 esac
29469 fi
29470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29471 conftest$ac_exeext conftest.$ac_ext
29472 ;;
29473 *)
29474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
29475 printf %s "checking for library containing socket... " >&6; }
29476 if test ${ac_cv_search_socket+y}
29477 then :
29478 printf %s "(cached) " >&6
29479 else case e in #(
29480 e) ac_func_search_save_LIBS=$LIBS
29481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29482 /* end confdefs.h. */
29483
29484 /* Override any GCC internal prototype to avoid an error.
29485 Use char because int might match the return type of a GCC
29486 builtin and then its argument prototype would still apply.
29487 The 'extern "C"' is for builds by C++ compilers;
29488 although this is not generally supported in C code supporting it here
29489 has little cost and some practical benefit (sr 110532). */
29490 #ifdef __cplusplus
29491 extern "C"
29492 #endif
29493 char socket (void);
29494 int
29495 main (void)
29496 {
29497 return socket ();
29498 ;
29499 return 0;
29500 }
29501 _ACEOF
29502 for ac_lib in '' socket
29503 do
29504 if test -z "$ac_lib"; then
29505 ac_res="none required"
29506 else
29507 ac_res=-l$ac_lib
29508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29509 fi
29510 if ac_fn_c_try_link "$LINENO"
29511 then :
29512 ac_cv_search_socket=$ac_res
29513 fi
29514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29515 conftest$ac_exeext
29516 if test ${ac_cv_search_socket+y}
29517 then :
29518 break
29519 fi
29520 done
29521 if test ${ac_cv_search_socket+y}
29522 then :
29523
29524 else case e in #(
29525 e) ac_cv_search_socket=no ;;
29526 esac
29527 fi
29528 rm conftest.$ac_ext
29529 LIBS=$ac_func_search_save_LIBS ;;
29530 esac
29531 fi
29532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
29533 printf "%s\n" "$ac_cv_search_socket" >&6; }
29534 ac_res=$ac_cv_search_socket
29535 if test "$ac_res" != no
29536 then :
29537 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29538
29539 else case e in #(
29540 e) as_fn_error $? "socket(2) not found." "$LINENO" 5 ;;
29541 esac
29542 fi
29543
29544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
29545 printf %s "checking for library containing gethostbyname... " >&6; }
29546 if test ${ac_cv_search_gethostbyname+y}
29547 then :
29548 printf %s "(cached) " >&6
29549 else case e in #(
29550 e) ac_func_search_save_LIBS=$LIBS
29551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29552 /* end confdefs.h. */
29553
29554 /* Override any GCC internal prototype to avoid an error.
29555 Use char because int might match the return type of a GCC
29556 builtin and then its argument prototype would still apply.
29557 The 'extern "C"' is for builds by C++ compilers;
29558 although this is not generally supported in C code supporting it here
29559 has little cost and some practical benefit (sr 110532). */
29560 #ifdef __cplusplus
29561 extern "C"
29562 #endif
29563 char gethostbyname (void);
29564 int
29565 main (void)
29566 {
29567 return gethostbyname ();
29568 ;
29569 return 0;
29570 }
29571 _ACEOF
29572 for ac_lib in '' nsl socket
29573 do
29574 if test -z "$ac_lib"; then
29575 ac_res="none required"
29576 else
29577 ac_res=-l$ac_lib
29578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29579 fi
29580 if ac_fn_c_try_link "$LINENO"
29581 then :
29582 ac_cv_search_gethostbyname=$ac_res
29583 fi
29584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29585 conftest$ac_exeext
29586 if test ${ac_cv_search_gethostbyname+y}
29587 then :
29588 break
29589 fi
29590 done
29591 if test ${ac_cv_search_gethostbyname+y}
29592 then :
29593
29594 else case e in #(
29595 e) ac_cv_search_gethostbyname=no ;;
29596 esac
29597 fi
29598 rm conftest.$ac_ext
29599 LIBS=$ac_func_search_save_LIBS ;;
29600 esac
29601 fi
29602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
29603 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
29604 ac_res=$ac_cv_search_gethostbyname
29605 if test "$ac_res" != no
29606 then :
29607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29608
29609 fi
29610
29611 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
29612 if test "x$ac_cv_func_gethostbyname" = xyes
29613 then :
29614 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
29615
29616 fi
29617
29618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
29619 printf %s "checking for library containing gethostbyaddr... " >&6; }
29620 if test ${ac_cv_search_gethostbyaddr+y}
29621 then :
29622 printf %s "(cached) " >&6
29623 else case e in #(
29624 e) ac_func_search_save_LIBS=$LIBS
29625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29626 /* end confdefs.h. */
29627
29628 /* Override any GCC internal prototype to avoid an error.
29629 Use char because int might match the return type of a GCC
29630 builtin and then its argument prototype would still apply.
29631 The 'extern "C"' is for builds by C++ compilers;
29632 although this is not generally supported in C code supporting it here
29633 has little cost and some practical benefit (sr 110532). */
29634 #ifdef __cplusplus
29635 extern "C"
29636 #endif
29637 char gethostbyaddr (void);
29638 int
29639 main (void)
29640 {
29641 return gethostbyaddr ();
29642 ;
29643 return 0;
29644 }
29645 _ACEOF
29646 for ac_lib in '' nsl socket
29647 do
29648 if test -z "$ac_lib"; then
29649 ac_res="none required"
29650 else
29651 ac_res=-l$ac_lib
29652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29653 fi
29654 if ac_fn_c_try_link "$LINENO"
29655 then :
29656 ac_cv_search_gethostbyaddr=$ac_res
29657 fi
29658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29659 conftest$ac_exeext
29660 if test ${ac_cv_search_gethostbyaddr+y}
29661 then :
29662 break
29663 fi
29664 done
29665 if test ${ac_cv_search_gethostbyaddr+y}
29666 then :
29667
29668 else case e in #(
29669 e) ac_cv_search_gethostbyaddr=no ;;
29670 esac
29671 fi
29672 rm conftest.$ac_ext
29673 LIBS=$ac_func_search_save_LIBS ;;
29674 esac
29675 fi
29676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
29677 printf "%s\n" "$ac_cv_search_gethostbyaddr" >&6; }
29678 ac_res=$ac_cv_search_gethostbyaddr
29679 if test "$ac_res" != no
29680 then :
29681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29682
29683 fi
29684
29685 ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr"
29686 if test "x$ac_cv_func_gethostbyaddr" = xyes
29687 then :
29688 printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
29689
29690 fi
29691
29692 ;;
29693 esac
29694
29695
29696 # libiphlpapi (Cygwin and MinGW)
29697 #
29698 netsnmp_save_LIBS="$LIBS"
29699 LIBS="$LIBS -liphlpapi"
29700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29701 /* end confdefs.h. */
29702
29703 #include <winsock2.h>
29704 #include <iphlpapi.h>
29705
29706 int
29707 main (void)
29708 {
29709
29710 IpRenewAddress(0);
29711
29712 ;
29713 return 0;
29714 }
29715 _ACEOF
29716 if ac_fn_c_try_link "$LINENO"
29717 then :
29718
29719 # Keep LIBS.
29720 true
29721
29722 else case e in #(
29723 e)
29724 # Restore LIBS and complain.
29725 LIBS="$netsnmp_save_LIBS"
29726 case x$with_socklib in
29727 xwinsock2)
29728 as_fn_error $? "libiphlpapi not found." "$LINENO" 5
29729 ;;
29730 esac
29731 ;;
29732 esac
29733 fi
29734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29735 conftest$ac_exeext conftest.$ac_ext
29736
29737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MIB_IF_TABLE2" >&5
29738 printf %s "checking for MIB_IF_TABLE2... " >&6; }
29739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29740 /* end confdefs.h. */
29741
29742 #define _WIN32_WINNT 0xffff
29743 #include <winsock2.h>
29744 #include <ws2tcpip.h>
29745 #include <iphlpapi.h>
29746
29747 int
29748 main (void)
29749 {
29750
29751 return sizeof(MIB_IF_TABLE2)
29752
29753 ;
29754 return 0;
29755 }
29756 _ACEOF
29757 if ac_fn_c_try_link "$LINENO"
29758 then :
29759
29760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29761 printf "%s\n" "yes" >&6; }
29762
29763 printf "%s\n" "#define HAVE_MIB_IF_TABLE2 1" >>confdefs.h
29764
29765 else case e in #(
29766 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29767 printf "%s\n" "no" >&6; } ;;
29768 esac
29769 fi
29770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29771 conftest$ac_exeext conftest.$ac_ext
29772
29773
29774 # libregex (MinGW)
29775 #
29776 netsnmp_save_LIBS="$LIBS"
29777 LIBS="$LIBS -lregex"
29778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29779 /* end confdefs.h. */
29780
29781 #include <sys/types.h>
29782 #include <regex.h>
29783
29784 int
29785 main (void)
29786 {
29787
29788 regcomp(0, 0, 0);
29789
29790 ;
29791 return 0;
29792 }
29793 _ACEOF
29794 if ac_fn_c_try_link "$LINENO"
29795 then :
29796
29797 # Keep LIBS.
29798 true
29799
29800 else case e in #(
29801 e)
29802 # Restore LIBS.
29803 LIBS="$netsnmp_save_LIBS"
29804 ;;
29805 esac
29806 fi
29807 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29808 conftest$ac_exeext conftest.$ac_ext
29809
29810
29811 # libsnmpapi (MinGW)
29812 #
29813 netsnmp_save_LIBS="$LIBS"
29814 LIBS="$LIBS -lsnmpapi"
29815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29816 /* end confdefs.h. */
29817
29818 #include <snmp.h>
29819
29820 int
29821 main (void)
29822 {
29823
29824 SnmpUtilMemAlloc(0);
29825
29826 ;
29827 return 0;
29828 }
29829 _ACEOF
29830 if ac_fn_c_try_link "$LINENO"
29831 then :
29832
29833 # Keep LIBS.
29834 true
29835
29836 else case e in #(
29837 e)
29838 # Restore LIBS.
29839 LIBS="$netsnmp_save_LIBS"
29840 ;;
29841 esac
29842 fi
29843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29844 conftest$ac_exeext conftest.$ac_ext
29845
29846
29847 # kstat library (Solaris)
29848 #
29849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kstat_lookup in -lkstat" >&5
29850 printf %s "checking for kstat_lookup in -lkstat... " >&6; }
29851 if test ${ac_cv_lib_kstat_kstat_lookup+y}
29852 then :
29853 printf %s "(cached) " >&6
29854 else case e in #(
29855 e) ac_check_lib_save_LIBS=$LIBS
29856 LIBS="-lkstat $LIBS"
29857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29858 /* end confdefs.h. */
29859
29860 /* Override any GCC internal prototype to avoid an error.
29861 Use char because int might match the return type of a GCC
29862 builtin and then its argument prototype would still apply.
29863 The 'extern "C"' is for builds by C++ compilers;
29864 although this is not generally supported in C code supporting it here
29865 has little cost and some practical benefit (sr 110532). */
29866 #ifdef __cplusplus
29867 extern "C"
29868 #endif
29869 char kstat_lookup (void);
29870 int
29871 main (void)
29872 {
29873 return kstat_lookup ();
29874 ;
29875 return 0;
29876 }
29877 _ACEOF
29878 if ac_fn_c_try_link "$LINENO"
29879 then :
29880 ac_cv_lib_kstat_kstat_lookup=yes
29881 else case e in #(
29882 e) ac_cv_lib_kstat_kstat_lookup=no ;;
29883 esac
29884 fi
29885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29886 conftest$ac_exeext conftest.$ac_ext
29887 LIBS=$ac_check_lib_save_LIBS ;;
29888 esac
29889 fi
29890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_lookup" >&5
29891 printf "%s\n" "$ac_cv_lib_kstat_kstat_lookup" >&6; }
29892 if test "x$ac_cv_lib_kstat_kstat_lookup" = xyes
29893 then :
29894 LNETSNMPLIBS="$LNETSNMPLIBS -lkstat"
29895 fi
29896
29897
29898
29899 # socket library (Solaris)
29900 #
29901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in6addr_any in -lsocket" >&5
29902 printf %s "checking for in6addr_any in -lsocket... " >&6; }
29903 if test ${ac_cv_lib_socket_in6addr_any+y}
29904 then :
29905 printf %s "(cached) " >&6
29906 else case e in #(
29907 e) ac_check_lib_save_LIBS=$LIBS
29908 LIBS="-lsocket $LIBS"
29909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29910 /* end confdefs.h. */
29911
29912 /* Override any GCC internal prototype to avoid an error.
29913 Use char because int might match the return type of a GCC
29914 builtin and then its argument prototype would still apply.
29915 The 'extern "C"' is for builds by C++ compilers;
29916 although this is not generally supported in C code supporting it here
29917 has little cost and some practical benefit (sr 110532). */
29918 #ifdef __cplusplus
29919 extern "C"
29920 #endif
29921 char in6addr_any (void);
29922 int
29923 main (void)
29924 {
29925 return in6addr_any ();
29926 ;
29927 return 0;
29928 }
29929 _ACEOF
29930 if ac_fn_c_try_link "$LINENO"
29931 then :
29932 ac_cv_lib_socket_in6addr_any=yes
29933 else case e in #(
29934 e) ac_cv_lib_socket_in6addr_any=no ;;
29935 esac
29936 fi
29937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29938 conftest$ac_exeext conftest.$ac_ext
29939 LIBS=$ac_check_lib_save_LIBS ;;
29940 esac
29941 fi
29942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_in6addr_any" >&5
29943 printf "%s\n" "$ac_cv_lib_socket_in6addr_any" >&6; }
29944 if test "x$ac_cv_lib_socket_in6addr_any" = xyes
29945 then :
29946 LNETSNMPLIBS="$LNETSNMPLIBS -lsocket"
29947 fi
29948
29949
29950
29951 #
29952 # librt
29953 #
29954
29955
29956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
29957 printf %s "checking for library containing clock_gettime... " >&6; }
29958 if test ${netsnmp_cv_func_clock_gettime_LNETSNMPLIBS+y}
29959 then :
29960 printf %s "(cached) " >&6
29961 else case e in #(
29962 e) netsnmp_func_search_save_LIBS="$LIBS"
29963 netsnmp_target_val="$LNETSNMPLIBS"
29964 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
29965 netsnmp_result=no
29966 LIBS="${netsnmp_temp_LIBS}"
29967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29968 /* end confdefs.h. */
29969
29970 /* Override any GCC internal prototype to avoid an error.
29971 Use char because int might match the return type of a GCC
29972 builtin and then its argument prototype would still apply.
29973 The 'extern "C"' is for builds by C++ compilers;
29974 although this is not generally supported in C code supporting it here
29975 has little cost and some practical benefit (sr 110532). */
29976 #ifdef __cplusplus
29977 extern "C"
29978 #endif
29979 char clock_gettime (void);
29980 int
29981 main (void)
29982 {
29983 return clock_gettime ();
29984 ;
29985 return 0;
29986 }
29987 _ACEOF
29988 if ac_fn_c_try_link "$LINENO"
29989 then :
29990 netsnmp_result="none required"
29991 else case e in #(
29992 e) for netsnmp_cur_lib in rt ; do
29993 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
29994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29995 /* end confdefs.h. */
29996
29997 /* Override any GCC internal prototype to avoid an error.
29998 Use char because int might match the return type of a GCC
29999 builtin and then its argument prototype would still apply.
30000 The 'extern "C"' is for builds by C++ compilers;
30001 although this is not generally supported in C code supporting it here
30002 has little cost and some practical benefit (sr 110532). */
30003 #ifdef __cplusplus
30004 extern "C"
30005 #endif
30006 char clock_gettime (void);
30007 int
30008 main (void)
30009 {
30010 return clock_gettime ();
30011 ;
30012 return 0;
30013 }
30014 _ACEOF
30015 if ac_fn_c_try_link "$LINENO"
30016 then :
30017 netsnmp_result=-l${netsnmp_cur_lib}
30018 break
30019 fi
30020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30021 conftest$ac_exeext conftest.$ac_ext
30022 done ;;
30023 esac
30024 fi
30025 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30026 conftest$ac_exeext conftest.$ac_ext
30027 LIBS="${netsnmp_func_search_save_LIBS}"
30028 netsnmp_cv_func_clock_gettime_LNETSNMPLIBS="${netsnmp_result}" ;;
30029 esac
30030 fi
30031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_clock_gettime_LNETSNMPLIBS" >&5
30032 printf "%s\n" "$netsnmp_cv_func_clock_gettime_LNETSNMPLIBS" >&6; }
30033 if test "x${netsnmp_cv_func_clock_gettime_LNETSNMPLIBS}" != "xno" ; then
30034 if test "x${netsnmp_cv_func_clock_gettime_LNETSNMPLIBS}" != "xnone required" ; then
30035 LNETSNMPLIBS="${netsnmp_result} ${netsnmp_target_val}"
30036 fi
30037
30038 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
30039
30040
30041 fi
30042
30043
30044
30045 ##
30046 # MIB-module-specific checks
30047 ##
30048
30049 # libdevstat
30050 # (for diskIO MIB)
30051 #
30052 # Not-Used: HAVE_GETDEVS/HAVE_DEVSTAT_GETDEVS
30053 #
30054 echo " $module_list " | $GREP " ucd-snmp/diskio " >/dev/null
30055 if test $? -eq 0 ; then
30056
30057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getdevs" >&5
30058 printf %s "checking for library containing getdevs... " >&6; }
30059 if test ${netsnmp_cv_func_getdevs_LMIBLIBS+y}
30060 then :
30061 printf %s "(cached) " >&6
30062 else case e in #(
30063 e) netsnmp_func_search_save_LIBS="$LIBS"
30064 netsnmp_target_val="$LMIBLIBS"
30065 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
30066 netsnmp_result=no
30067 LIBS="${netsnmp_temp_LIBS}"
30068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30069 /* end confdefs.h. */
30070
30071 /* Override any GCC internal prototype to avoid an error.
30072 Use char because int might match the return type of a GCC
30073 builtin and then its argument prototype would still apply.
30074 The 'extern "C"' is for builds by C++ compilers;
30075 although this is not generally supported in C code supporting it here
30076 has little cost and some practical benefit (sr 110532). */
30077 #ifdef __cplusplus
30078 extern "C"
30079 #endif
30080 char getdevs (void);
30081 int
30082 main (void)
30083 {
30084 return getdevs ();
30085 ;
30086 return 0;
30087 }
30088 _ACEOF
30089 if ac_fn_c_try_link "$LINENO"
30090 then :
30091 netsnmp_result="none required"
30092 else case e in #(
30093 e) for netsnmp_cur_lib in devstat ; do
30094 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
30095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30096 /* end confdefs.h. */
30097
30098 /* Override any GCC internal prototype to avoid an error.
30099 Use char because int might match the return type of a GCC
30100 builtin and then its argument prototype would still apply.
30101 The 'extern "C"' is for builds by C++ compilers;
30102 although this is not generally supported in C code supporting it here
30103 has little cost and some practical benefit (sr 110532). */
30104 #ifdef __cplusplus
30105 extern "C"
30106 #endif
30107 char getdevs (void);
30108 int
30109 main (void)
30110 {
30111 return getdevs ();
30112 ;
30113 return 0;
30114 }
30115 _ACEOF
30116 if ac_fn_c_try_link "$LINENO"
30117 then :
30118 netsnmp_result=-l${netsnmp_cur_lib}
30119 break
30120 fi
30121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30122 conftest$ac_exeext conftest.$ac_ext
30123 done ;;
30124 esac
30125 fi
30126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30127 conftest$ac_exeext conftest.$ac_ext
30128 LIBS="${netsnmp_func_search_save_LIBS}"
30129 netsnmp_cv_func_getdevs_LMIBLIBS="${netsnmp_result}" ;;
30130 esac
30131 fi
30132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_getdevs_LMIBLIBS" >&5
30133 printf "%s\n" "$netsnmp_cv_func_getdevs_LMIBLIBS" >&6; }
30134 if test "x${netsnmp_cv_func_getdevs_LMIBLIBS}" != "xno" ; then
30135 if test "x${netsnmp_cv_func_getdevs_LMIBLIBS}" != "xnone required" ; then
30136 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
30137 fi
30138
30139 printf "%s\n" "#define HAVE_GETDEVS 1" >>confdefs.h
30140
30141
30142 fi
30143
30144
30145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing devstat_getdevs" >&5
30146 printf %s "checking for library containing devstat_getdevs... " >&6; }
30147 if test ${netsnmp_cv_func_devstat_getdevs_LMIBLIBS+y}
30148 then :
30149 printf %s "(cached) " >&6
30150 else case e in #(
30151 e) netsnmp_func_search_save_LIBS="$LIBS"
30152 netsnmp_target_val="$LMIBLIBS"
30153 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
30154 netsnmp_result=no
30155 LIBS="${netsnmp_temp_LIBS}"
30156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30157 /* end confdefs.h. */
30158
30159 /* Override any GCC internal prototype to avoid an error.
30160 Use char because int might match the return type of a GCC
30161 builtin and then its argument prototype would still apply.
30162 The 'extern "C"' is for builds by C++ compilers;
30163 although this is not generally supported in C code supporting it here
30164 has little cost and some practical benefit (sr 110532). */
30165 #ifdef __cplusplus
30166 extern "C"
30167 #endif
30168 char devstat_getdevs (void);
30169 int
30170 main (void)
30171 {
30172 return devstat_getdevs ();
30173 ;
30174 return 0;
30175 }
30176 _ACEOF
30177 if ac_fn_c_try_link "$LINENO"
30178 then :
30179 netsnmp_result="none required"
30180 else case e in #(
30181 e) for netsnmp_cur_lib in devstat ; do
30182 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
30183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30184 /* end confdefs.h. */
30185
30186 /* Override any GCC internal prototype to avoid an error.
30187 Use char because int might match the return type of a GCC
30188 builtin and then its argument prototype would still apply.
30189 The 'extern "C"' is for builds by C++ compilers;
30190 although this is not generally supported in C code supporting it here
30191 has little cost and some practical benefit (sr 110532). */
30192 #ifdef __cplusplus
30193 extern "C"
30194 #endif
30195 char devstat_getdevs (void);
30196 int
30197 main (void)
30198 {
30199 return devstat_getdevs ();
30200 ;
30201 return 0;
30202 }
30203 _ACEOF
30204 if ac_fn_c_try_link "$LINENO"
30205 then :
30206 netsnmp_result=-l${netsnmp_cur_lib}
30207 break
30208 fi
30209 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30210 conftest$ac_exeext conftest.$ac_ext
30211 done ;;
30212 esac
30213 fi
30214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30215 conftest$ac_exeext conftest.$ac_ext
30216 LIBS="${netsnmp_func_search_save_LIBS}"
30217 netsnmp_cv_func_devstat_getdevs_LMIBLIBS="${netsnmp_result}" ;;
30218 esac
30219 fi
30220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_devstat_getdevs_LMIBLIBS" >&5
30221 printf "%s\n" "$netsnmp_cv_func_devstat_getdevs_LMIBLIBS" >&6; }
30222 if test "x${netsnmp_cv_func_devstat_getdevs_LMIBLIBS}" != "xno" ; then
30223 if test "x${netsnmp_cv_func_devstat_getdevs_LMIBLIBS}" != "xnone required" ; then
30224 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
30225 fi
30226
30227 printf "%s\n" "#define HAVE_DEVSTAT_GETDEVS 1" >>confdefs.h
30228
30229
30230 fi
30231
30232 fi
30233
30234 # libpci
30235 # (for if-mib description)
30236 #
30237
30238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pci_lookup_name" >&5
30239 printf %s "checking for library containing pci_lookup_name... " >&6; }
30240 if test ${netsnmp_cv_func_pci_lookup_name_LMIBLIBS+y}
30241 then :
30242 printf %s "(cached) " >&6
30243 else case e in #(
30244 e) netsnmp_func_search_save_LIBS="$LIBS"
30245 netsnmp_target_val="$LMIBLIBS"
30246 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
30247 netsnmp_result=no
30248 LIBS="${netsnmp_temp_LIBS}"
30249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30250 /* end confdefs.h. */
30251
30252 /* Override any GCC internal prototype to avoid an error.
30253 Use char because int might match the return type of a GCC
30254 builtin and then its argument prototype would still apply.
30255 The 'extern "C"' is for builds by C++ compilers;
30256 although this is not generally supported in C code supporting it here
30257 has little cost and some practical benefit (sr 110532). */
30258 #ifdef __cplusplus
30259 extern "C"
30260 #endif
30261 char pci_lookup_name (void);
30262 int
30263 main (void)
30264 {
30265 return pci_lookup_name ();
30266 ;
30267 return 0;
30268 }
30269 _ACEOF
30270 if ac_fn_c_try_link "$LINENO"
30271 then :
30272 netsnmp_result="none required"
30273 else case e in #(
30274 e) for netsnmp_cur_lib in pci ; do
30275 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
30276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30277 /* end confdefs.h. */
30278
30279 /* Override any GCC internal prototype to avoid an error.
30280 Use char because int might match the return type of a GCC
30281 builtin and then its argument prototype would still apply.
30282 The 'extern "C"' is for builds by C++ compilers;
30283 although this is not generally supported in C code supporting it here
30284 has little cost and some practical benefit (sr 110532). */
30285 #ifdef __cplusplus
30286 extern "C"
30287 #endif
30288 char pci_lookup_name (void);
30289 int
30290 main (void)
30291 {
30292 return pci_lookup_name ();
30293 ;
30294 return 0;
30295 }
30296 _ACEOF
30297 if ac_fn_c_try_link "$LINENO"
30298 then :
30299 netsnmp_result=-l${netsnmp_cur_lib}
30300 break
30301 fi
30302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30303 conftest$ac_exeext conftest.$ac_ext
30304 done ;;
30305 esac
30306 fi
30307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30308 conftest$ac_exeext conftest.$ac_ext
30309 LIBS="${netsnmp_func_search_save_LIBS}"
30310 netsnmp_cv_func_pci_lookup_name_LMIBLIBS="${netsnmp_result}" ;;
30311 esac
30312 fi
30313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_pci_lookup_name_LMIBLIBS" >&5
30314 printf "%s\n" "$netsnmp_cv_func_pci_lookup_name_LMIBLIBS" >&6; }
30315 if test "x${netsnmp_cv_func_pci_lookup_name_LMIBLIBS}" != "xno" ; then
30316 if test "x${netsnmp_cv_func_pci_lookup_name_LMIBLIBS}" != "xnone required" ; then
30317 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
30318 fi
30319
30320 printf "%s\n" "#define HAVE_PCI_LOOKUP_NAME 1" >>confdefs.h
30321
30322
30323 fi
30324
30325
30326 # LM-SENSORS-MIB support
30327 #
30328 echo " $module_list " | $GREP -i "ucd-snmp/lmsensor" > /dev/null
30329 if test $? -eq 0 ; then
30330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sensors support" >&5
30331 printf %s "checking for sensors support... " >&6; }
30332 case $target_os in
30333 solaris*)
30334 # Agent: HAVE_PICL_H
30335 #
30336 ac_fn_c_check_header_compile "$LINENO" "picl.h" "ac_cv_header_picl_h" "$ac_includes_default"
30337 if test "x$ac_cv_header_picl_h" = xyes
30338 then :
30339 LMIBLIBS="${LMIBLIBS} -lpicl"
30340 fi
30341
30342 ac_fn_c_check_header_compile "$LINENO" "picl.h" "ac_cv_header_picl_h" "$ac_includes_default"
30343 if test "x$ac_cv_header_picl_h" = xyes
30344 then :
30345 printf "%s\n" "#define HAVE_PICL_H 1" >>confdefs.h
30346
30347 fi
30348
30349 ;;
30350 *)
30351 # Not-Used: HAVE_SENSORS_SENSORS_H
30352 #
30353 ac_fn_c_check_header_compile "$LINENO" "sensors/sensors.h" "ac_cv_header_sensors_sensors_h" "$ac_includes_default"
30354 if test "x$ac_cv_header_sensors_sensors_h" = xyes
30355 then :
30356
30357 else case e in #(
30358 e) as_fn_error $? "asked to use lm_sensors but I couldn't find sensors/sensors.h" "$LINENO" 5 ;;
30359 esac
30360 fi
30361
30362
30363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sensors_get_detected_chips" >&5
30364 printf %s "checking for library containing sensors_get_detected_chips... " >&6; }
30365 if test ${netsnmp_cv_func_sensors_get_detected_chips_LMIBLIBS+y}
30366 then :
30367 printf %s "(cached) " >&6
30368 else case e in #(
30369 e) netsnmp_func_search_save_LIBS="$LIBS"
30370 netsnmp_target_val="$LMIBLIBS"
30371 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
30372 netsnmp_result=no
30373 LIBS="${netsnmp_temp_LIBS}"
30374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30375 /* end confdefs.h. */
30376
30377 /* Override any GCC internal prototype to avoid an error.
30378 Use char because int might match the return type of a GCC
30379 builtin and then its argument prototype would still apply.
30380 The 'extern "C"' is for builds by C++ compilers;
30381 although this is not generally supported in C code supporting it here
30382 has little cost and some practical benefit (sr 110532). */
30383 #ifdef __cplusplus
30384 extern "C"
30385 #endif
30386 char sensors_get_detected_chips (void);
30387 int
30388 main (void)
30389 {
30390 return sensors_get_detected_chips ();
30391 ;
30392 return 0;
30393 }
30394 _ACEOF
30395 if ac_fn_c_try_link "$LINENO"
30396 then :
30397 netsnmp_result="none required"
30398 else case e in #(
30399 e) for netsnmp_cur_lib in sensors ; do
30400 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
30401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30402 /* end confdefs.h. */
30403
30404 /* Override any GCC internal prototype to avoid an error.
30405 Use char because int might match the return type of a GCC
30406 builtin and then its argument prototype would still apply.
30407 The 'extern "C"' is for builds by C++ compilers;
30408 although this is not generally supported in C code supporting it here
30409 has little cost and some practical benefit (sr 110532). */
30410 #ifdef __cplusplus
30411 extern "C"
30412 #endif
30413 char sensors_get_detected_chips (void);
30414 int
30415 main (void)
30416 {
30417 return sensors_get_detected_chips ();
30418 ;
30419 return 0;
30420 }
30421 _ACEOF
30422 if ac_fn_c_try_link "$LINENO"
30423 then :
30424 netsnmp_result=-l${netsnmp_cur_lib}
30425 break
30426 fi
30427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30428 conftest$ac_exeext conftest.$ac_ext
30429 done ;;
30430 esac
30431 fi
30432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30433 conftest$ac_exeext conftest.$ac_ext
30434 LIBS="${netsnmp_func_search_save_LIBS}"
30435 netsnmp_cv_func_sensors_get_detected_chips_LMIBLIBS="${netsnmp_result}" ;;
30436 esac
30437 fi
30438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_sensors_get_detected_chips_LMIBLIBS" >&5
30439 printf "%s\n" "$netsnmp_cv_func_sensors_get_detected_chips_LMIBLIBS" >&6; }
30440 if test "x${netsnmp_cv_func_sensors_get_detected_chips_LMIBLIBS}" != "xno" ; then
30441 if test "x${netsnmp_cv_func_sensors_get_detected_chips_LMIBLIBS}" != "xnone required" ; then
30442 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}"
30443 fi
30444
30445 else
30446 as_fn_error $? "asked to use lm_sensors but I couldn't find -lsensors" "$LINENO" 5
30447 fi
30448
30449 ;;
30450 esac
30451 fi
30452
30453 ##
30454 # More complex checks:
30455 ##
30456
30457 # Security related functions
30458 #
30459 NONAGENTLIBS=$LIBS # save old libraries
30460 SSHPROG=no
30461 TLSPROG=no
30462 if test "x$tryopenssl" != "xno" -a "x$tryopenssl" != "xinternal"; then
30463 # check for libpkcs11 if asked
30464 if test "x$askedopenssl" != "xyes" -a "x$askedpkcs" = "xyes"; then
30465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C_Initialize in -lpkcs11" >&5
30466 printf %s "checking for C_Initialize in -lpkcs11... " >&6; }
30467 if test ${ac_cv_lib_pkcs11_C_Initialize+y}
30468 then :
30469 printf %s "(cached) " >&6
30470 else case e in #(
30471 e) ac_check_lib_save_LIBS=$LIBS
30472 LIBS="-lpkcs11 $LIBS"
30473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30474 /* end confdefs.h. */
30475
30476 /* Override any GCC internal prototype to avoid an error.
30477 Use char because int might match the return type of a GCC
30478 builtin and then its argument prototype would still apply.
30479 The 'extern "C"' is for builds by C++ compilers;
30480 although this is not generally supported in C code supporting it here
30481 has little cost and some practical benefit (sr 110532). */
30482 #ifdef __cplusplus
30483 extern "C"
30484 #endif
30485 char C_Initialize (void);
30486 int
30487 main (void)
30488 {
30489 return C_Initialize ();
30490 ;
30491 return 0;
30492 }
30493 _ACEOF
30494 if ac_fn_c_try_link "$LINENO"
30495 then :
30496 ac_cv_lib_pkcs11_C_Initialize=yes
30497 else case e in #(
30498 e) ac_cv_lib_pkcs11_C_Initialize=no ;;
30499 esac
30500 fi
30501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30502 conftest$ac_exeext conftest.$ac_ext
30503 LIBS=$ac_check_lib_save_LIBS ;;
30504 esac
30505 fi
30506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pkcs11_C_Initialize" >&5
30507 printf "%s\n" "$ac_cv_lib_pkcs11_C_Initialize" >&6; }
30508 if test "x$ac_cv_lib_pkcs11_C_Initialize" = xyes
30509 then :
30510
30511 printf "%s\n" "#define HAVE_LIBPKCS11 1" >>confdefs.h
30512
30513 LIBPKCS11="-lpkcs11"
30514 fi
30515
30516 else
30517 if test "x$tryrsaref" != "xno"; then
30518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RSAPrivateDecrypt in -lrsaref" >&5
30519 printf %s "checking for RSAPrivateDecrypt in -lrsaref... " >&6; }
30520 if test ${ac_cv_lib_rsaref_RSAPrivateDecrypt+y}
30521 then :
30522 printf %s "(cached) " >&6
30523 else case e in #(
30524 e) ac_check_lib_save_LIBS=$LIBS
30525 LIBS="-lrsaref $LIBS"
30526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30527 /* end confdefs.h. */
30528
30529 /* Override any GCC internal prototype to avoid an error.
30530 Use char because int might match the return type of a GCC
30531 builtin and then its argument prototype would still apply.
30532 The 'extern "C"' is for builds by C++ compilers;
30533 although this is not generally supported in C code supporting it here
30534 has little cost and some practical benefit (sr 110532). */
30535 #ifdef __cplusplus
30536 extern "C"
30537 #endif
30538 char RSAPrivateDecrypt (void);
30539 int
30540 main (void)
30541 {
30542 return RSAPrivateDecrypt ();
30543 ;
30544 return 0;
30545 }
30546 _ACEOF
30547 if ac_fn_c_try_link "$LINENO"
30548 then :
30549 ac_cv_lib_rsaref_RSAPrivateDecrypt=yes
30550 else case e in #(
30551 e) ac_cv_lib_rsaref_RSAPrivateDecrypt=no ;;
30552 esac
30553 fi
30554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30555 conftest$ac_exeext conftest.$ac_ext
30556 LIBS=$ac_check_lib_save_LIBS ;;
30557 esac
30558 fi
30559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPrivateDecrypt" >&5
30560 printf "%s\n" "$ac_cv_lib_rsaref_RSAPrivateDecrypt" >&6; }
30561 if test "x$ac_cv_lib_rsaref_RSAPrivateDecrypt" = xyes
30562 then :
30563 printf "%s\n" "#define HAVE_LIBRSAREF 1" >>confdefs.h
30564
30565 LIBS="-lrsaref $LIBS"
30566
30567 fi
30568
30569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RSA_PKCS1_RSAref in -lRSAglue" >&5
30570 printf %s "checking for RSA_PKCS1_RSAref in -lRSAglue... " >&6; }
30571 if test ${ac_cv_lib_RSAglue_RSA_PKCS1_RSAref+y}
30572 then :
30573 printf %s "(cached) " >&6
30574 else case e in #(
30575 e) ac_check_lib_save_LIBS=$LIBS
30576 LIBS="-lRSAglue $LIBS"
30577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30578 /* end confdefs.h. */
30579
30580 /* Override any GCC internal prototype to avoid an error.
30581 Use char because int might match the return type of a GCC
30582 builtin and then its argument prototype would still apply.
30583 The 'extern "C"' is for builds by C++ compilers;
30584 although this is not generally supported in C code supporting it here
30585 has little cost and some practical benefit (sr 110532). */
30586 #ifdef __cplusplus
30587 extern "C"
30588 #endif
30589 char RSA_PKCS1_RSAref (void);
30590 int
30591 main (void)
30592 {
30593 return RSA_PKCS1_RSAref ();
30594 ;
30595 return 0;
30596 }
30597 _ACEOF
30598 if ac_fn_c_try_link "$LINENO"
30599 then :
30600 ac_cv_lib_RSAglue_RSA_PKCS1_RSAref=yes
30601 else case e in #(
30602 e) ac_cv_lib_RSAglue_RSA_PKCS1_RSAref=no ;;
30603 esac
30604 fi
30605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30606 conftest$ac_exeext conftest.$ac_ext
30607 LIBS=$ac_check_lib_save_LIBS ;;
30608 esac
30609 fi
30610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_RSAglue_RSA_PKCS1_RSAref" >&5
30611 printf "%s\n" "$ac_cv_lib_RSAglue_RSA_PKCS1_RSAref" >&6; }
30612 if test "x$ac_cv_lib_RSAglue_RSA_PKCS1_RSAref" = xyes
30613 then :
30614 printf "%s\n" "#define HAVE_LIBRSAGLUE 1" >>confdefs.h
30615
30616 LIBS="-lRSAglue $LIBS"
30617
30618 fi
30619
30620 fi
30621
30622 if test "x${with_wolfssl}" != x; then
30623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_EVP_md5 in -lwolfssl" >&5
30624 printf %s "checking for wolfSSL_EVP_md5 in -lwolfssl... " >&6; }
30625 if test ${ac_cv_lib_wolfssl_wolfSSL_EVP_md5+y}
30626 then :
30627 printf %s "(cached) " >&6
30628 else case e in #(
30629 e) ac_check_lib_save_LIBS=$LIBS
30630 LIBS="-lwolfssl $LIBS"
30631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30632 /* end confdefs.h. */
30633
30634 /* Override any GCC internal prototype to avoid an error.
30635 Use char because int might match the return type of a GCC
30636 builtin and then its argument prototype would still apply.
30637 The 'extern "C"' is for builds by C++ compilers;
30638 although this is not generally supported in C code supporting it here
30639 has little cost and some practical benefit (sr 110532). */
30640 #ifdef __cplusplus
30641 extern "C"
30642 #endif
30643 char wolfSSL_EVP_md5 (void);
30644 int
30645 main (void)
30646 {
30647 return wolfSSL_EVP_md5 ();
30648 ;
30649 return 0;
30650 }
30651 _ACEOF
30652 if ac_fn_c_try_link "$LINENO"
30653 then :
30654 ac_cv_lib_wolfssl_wolfSSL_EVP_md5=yes
30655 else case e in #(
30656 e) ac_cv_lib_wolfssl_wolfSSL_EVP_md5=no ;;
30657 esac
30658 fi
30659 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30660 conftest$ac_exeext conftest.$ac_ext
30661 LIBS=$ac_check_lib_save_LIBS ;;
30662 esac
30663 fi
30664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssl_wolfSSL_EVP_md5" >&5
30665 printf "%s\n" "$ac_cv_lib_wolfssl_wolfSSL_EVP_md5" >&6; }
30666 if test "x$ac_cv_lib_wolfssl_wolfSSL_EVP_md5" = xyes
30667 then :
30668
30669 ac_cv_lib_EVP_md5=yes
30670 CRYPTO="wolfssl"
30671 LIBCRYPTO="-lwolfssl"
30672
30673 fi
30674
30675 ac_fn_c_check_header_compile "$LINENO" "wolfssl/wolfcrypt/asn.h" "ac_cv_header_wolfssl_wolfcrypt_asn_h" "$ac_includes_default"
30676 if test "x$ac_cv_header_wolfssl_wolfcrypt_asn_h" = xyes
30677 then :
30678 printf "%s\n" "#define HAVE_WOLFSSL_WOLFCRYPT_ASN_H 1" >>confdefs.h
30679
30680 fi
30681 ac_fn_c_check_header_compile "$LINENO" "wolfssl/wolfcrypt/logging.h" "ac_cv_header_wolfssl_wolfcrypt_logging_h" "$ac_includes_default"
30682 if test "x$ac_cv_header_wolfssl_wolfcrypt_logging_h" = xyes
30683 then :
30684 printf "%s\n" "#define HAVE_WOLFSSL_WOLFCRYPT_LOGGING_H 1" >>confdefs.h
30685
30686 fi
30687
30688
30689 printf "%s\n" "#define HAVE_VOID_EVP_MD_CTX_INIT 1" >>confdefs.h
30690
30691 else
30692
30693 if test -n "$PKG_CONFIG" && \
30694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
30695 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
30696 ac_status=$?
30697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30698 test $ac_status = 0; }; then
30699
30700 pkg_failed=no
30701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
30702 printf %s "checking for OPENSSL... " >&6; }
30703
30704 if test -n "$OPENSSL_CFLAGS"; then
30705 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
30706 elif test -n "$PKG_CONFIG"; then
30707 if test -n "$PKG_CONFIG" && \
30708 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
30709 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
30710 ac_status=$?
30711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30712 test $ac_status = 0; }; then
30713 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
30714 test "x$?" != "x0" && pkg_failed=yes
30715 else
30716 pkg_failed=yes
30717 fi
30718 else
30719 pkg_failed=untried
30720 fi
30721 if test -n "$OPENSSL_LIBS"; then
30722 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
30723 elif test -n "$PKG_CONFIG"; then
30724 if test -n "$PKG_CONFIG" && \
30725 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
30726 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
30727 ac_status=$?
30728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30729 test $ac_status = 0; }; then
30730 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
30731 test "x$?" != "x0" && pkg_failed=yes
30732 else
30733 pkg_failed=yes
30734 fi
30735 else
30736 pkg_failed=untried
30737 fi
30738
30739
30740
30741 if test $pkg_failed = yes; then
30742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30743 printf "%s\n" "no" >&6; }
30744
30745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30746 _pkg_short_errors_supported=yes
30747 else
30748 _pkg_short_errors_supported=no
30749 fi
30750 if test $_pkg_short_errors_supported = yes; then
30751 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
30752 else
30753 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
30754 fi
30755 # Put the nasty error message in config.log where it belongs
30756 echo "$OPENSSL_PKG_ERRORS" >&5
30757
30758 as_fn_error $? "Package requirements (openssl) were not met:
30759
30760 $OPENSSL_PKG_ERRORS
30761
30762 Consider adjusting the PKG_CONFIG_PATH environment variable if you
30763 installed software in a non-standard prefix.
30764
30765 Alternatively, you may set the environment variables OPENSSL_CFLAGS
30766 and OPENSSL_LIBS to avoid the need to call pkg-config.
30767 See the pkg-config man page for more details." "$LINENO" 5
30768 elif test $pkg_failed = untried; then
30769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30770 printf "%s\n" "no" >&6; }
30771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
30772 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
30773 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
30774 is in your PATH or set the PKG_CONFIG environment variable to the full
30775 path to pkg-config.
30776
30777 Alternatively, you may set the environment variables OPENSSL_CFLAGS
30778 and OPENSSL_LIBS to avoid the need to call pkg-config.
30779 See the pkg-config man page for more details.
30780
30781 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30782 See 'config.log' for more details" "$LINENO" 5; }
30783 else
30784 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
30785 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
30786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30787 printf "%s\n" "yes" >&6; }
30788
30789 fi
30790 fi
30791 if test "x${PKG_CONFIG}" != "x"; then
30792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_CFLAGS=${OPENSSL_CFLAGS}" >&5
30793 printf "%s\n" "$as_me: OPENSSL_CFLAGS=${OPENSSL_CFLAGS}" >&6;}
30794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_LIBS=${OPENSSL_LIBS}" >&5
30795 printf "%s\n" "$as_me: OPENSSL_LIBS=${OPENSSL_LIBS}" >&6;}
30796 CRYPTO=use_pkg_config_for_openssl
30797 LIBCRYPTO="-lssl ${OPENSSL_LIBS}"
30798 netsnmp_save_LIBS="$LIBS"
30799 LIBS="-lssl ${OPENSSL_LIBS}"
30800 ac_fn_c_check_func "$LINENO" "EVP_md5" "ac_cv_func_EVP_md5"
30801 if test "x$ac_cv_func_EVP_md5" = xyes
30802 then :
30803
30804 fi
30805
30806 LIBS="$netsnmp_save_LIBS"
30807 fi
30808
30809
30810 if test "x${PKG_CONFIG}" = "x"; then
30811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Could not find pkg-config." >&5
30812 printf "%s\n" "$as_me: Could not find pkg-config." >&6;}
30813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -leay32" >&5
30814 printf %s "checking for -leay32... " >&6; }
30815 netsnmp_save_LIBS="$LIBS"
30816 LIBS="-leay32"
30817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30818 /* end confdefs.h. */
30819
30820 #include <openssl/evp.h>
30821 int
30822 main (void)
30823 {
30824 return EVP_md5();
30825 ;
30826 return 0;
30827 }
30828 _ACEOF
30829 if ac_fn_c_try_link "$LINENO"
30830 then :
30831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30832 printf "%s\n" "yes" >&6; }
30833 ac_cv_lib_EVP_md5=yes
30834 CRYPTO="eay32"
30835 LIBCRYPTO="-leay32"
30836
30837 else case e in #(
30838 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30839 printf "%s\n" "no" >&6; }
30840 ;;
30841 esac
30842 fi
30843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30844 conftest$ac_exeext conftest.$ac_ext
30845 LIBS="$netsnmp_save_LIBS"
30846
30847 if test x$CRYPTO = x; then
30848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_md5 in -lcrypto" >&5
30849 printf %s "checking for EVP_md5 in -lcrypto... " >&6; }
30850 if test ${ac_cv_lib_crypto_EVP_md5+y}
30851 then :
30852 printf %s "(cached) " >&6
30853 else case e in #(
30854 e) ac_check_lib_save_LIBS=$LIBS
30855 LIBS="-lcrypto $LIBS"
30856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30857 /* end confdefs.h. */
30858
30859 /* Override any GCC internal prototype to avoid an error.
30860 Use char because int might match the return type of a GCC
30861 builtin and then its argument prototype would still apply.
30862 The 'extern "C"' is for builds by C++ compilers;
30863 although this is not generally supported in C code supporting it here
30864 has little cost and some practical benefit (sr 110532). */
30865 #ifdef __cplusplus
30866 extern "C"
30867 #endif
30868 char EVP_md5 (void);
30869 int
30870 main (void)
30871 {
30872 return EVP_md5 ();
30873 ;
30874 return 0;
30875 }
30876 _ACEOF
30877 if ac_fn_c_try_link "$LINENO"
30878 then :
30879 ac_cv_lib_crypto_EVP_md5=yes
30880 else case e in #(
30881 e) ac_cv_lib_crypto_EVP_md5=no ;;
30882 esac
30883 fi
30884 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30885 conftest$ac_exeext conftest.$ac_ext
30886 LIBS=$ac_check_lib_save_LIBS ;;
30887 esac
30888 fi
30889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_md5" >&5
30890 printf "%s\n" "$ac_cv_lib_crypto_EVP_md5" >&6; }
30891 if test "x$ac_cv_lib_crypto_EVP_md5" = xyes
30892 then :
30893 ac_cv_lib_EVP_md5=yes
30894 CRYPTO="crypto"
30895 LIBCRYPTO="-lcrypto"
30896 else case e in #(
30897 e)
30898 unset ac_cv_lib_crypto_EVP_md5
30899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_md5 in -lcrypto" >&5
30900 printf %s "checking for EVP_md5 in -lcrypto... " >&6; }
30901 if test ${ac_cv_lib_crypto_EVP_md5+y}
30902 then :
30903 printf %s "(cached) " >&6
30904 else case e in #(
30905 e) ac_check_lib_save_LIBS=$LIBS
30906 LIBS="-lcrypto -lz $LIBS"
30907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30908 /* end confdefs.h. */
30909
30910 /* Override any GCC internal prototype to avoid an error.
30911 Use char because int might match the return type of a GCC
30912 builtin and then its argument prototype would still apply.
30913 The 'extern "C"' is for builds by C++ compilers;
30914 although this is not generally supported in C code supporting it here
30915 has little cost and some practical benefit (sr 110532). */
30916 #ifdef __cplusplus
30917 extern "C"
30918 #endif
30919 char EVP_md5 (void);
30920 int
30921 main (void)
30922 {
30923 return EVP_md5 ();
30924 ;
30925 return 0;
30926 }
30927 _ACEOF
30928 if ac_fn_c_try_link "$LINENO"
30929 then :
30930 ac_cv_lib_crypto_EVP_md5=yes
30931 else case e in #(
30932 e) ac_cv_lib_crypto_EVP_md5=no ;;
30933 esac
30934 fi
30935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30936 conftest$ac_exeext conftest.$ac_ext
30937 LIBS=$ac_check_lib_save_LIBS ;;
30938 esac
30939 fi
30940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_md5" >&5
30941 printf "%s\n" "$ac_cv_lib_crypto_EVP_md5" >&6; }
30942 if test "x$ac_cv_lib_crypto_EVP_md5" = xyes
30943 then :
30944 ac_cv_lib_EVP_md5=yes
30945 CRYPTO="crypto"
30946 LIBCRYPTO="-lcrypto -lz"
30947 fi
30948
30949 ;;
30950 esac
30951 fi
30952
30953 fi
30954 fi
30955 fi
30956
30957 if test x$CRYPTO != x; then
30958
30959 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
30960
30961 fi
30962
30963
30964
30965
30966
30967
30968
30969
30970
30971
30972
30973
30974
30975
30976
30977
30978
30979
30980
30981
30982
30983
30984
30985
30986
30987
30988
30989
30990 for symbol in \
30991 AES_cfb128_encrypt \
30992 ASN1_STRING_get0_data \
30993 DH_get0_key \
30994 DH_get0_pqg \
30995 DH_set0_pqg \
30996 DTLS_method \
30997 DTLSv1_method \
30998 ERR_get_error_all \
30999 ERR_get_error_func \
31000 EVP_MD_CTX_create \
31001 EVP_MD_CTX_destroy \
31002 EVP_MD_CTX_free \
31003 EVP_MD_CTX_new \
31004 EVP_aes_128_cfb \
31005 EVP_sha224 \
31006 EVP_sha384 \
31007 OPENSSL_sk_num \
31008 OPENSSL_sk_value \
31009 OpenSSL_add_all_algorithms \
31010 SSL_CTX_set_cookie_generate_cb \
31011 SSL_get1_peer_certificate \
31012 SSL_library_init \
31013 SSL_load_error_strings \
31014 TLS_method \
31015 TLSv1_method \
31016 X509_NAME_ENTRY_get_data \
31017 X509_NAME_ENTRY_get_object \
31018 X509_get_signature_nid \
31019 ; do
31020 have_symbol=$(echo "HAVE_${symbol}" | tr '[:lower:]' '[:upper:]')
31021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${symbol}" >&5
31022 printf %s "checking for ${symbol}... " >&6; }
31023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31024 /* end confdefs.h. */
31025
31026 #ifdef HAVE_OPENSSL_AES_H
31027 #include <openssl/aes.h>
31028 #endif
31029 #ifdef HAVE_OPENSSL_ERR_H
31030 #include <openssl/err.h>
31031 #endif
31032 #ifdef HAVE_OPENSSL_EVP_H
31033 #include <openssl/evp.h>
31034 #endif
31035 #ifdef HAVE_OPENSSL_SSL_H
31036 #include <openssl/ssl.h>
31037 #endif
31038 #ifdef HAVE_OPENSSL_STACK_H
31039 #include <openssl/stack.h>
31040 #endif
31041 #ifdef HAVE_OPENSSL_X509_H
31042 #include <openssl/x509.h>
31043 #endif
31044 #ifdef HAVE_OPENSSL_X509V3_H
31045 #include <openssl/x509v3.h>
31046 #endif
31047
31048 int
31049 main (void)
31050 {
31051
31052 #ifndef ${symbol}
31053 return !${symbol}
31054 #endif
31055
31056 ;
31057 return 0;
31058 }
31059 _ACEOF
31060 if ac_fn_c_try_compile "$LINENO"
31061 then :
31062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31063 printf "%s\n" "yes" >&6; }
31064 eval "ac_cv_func_${symbol}=yes"
31065 printf "%s\n" "#define ${have_symbol} 1" >>confdefs.h
31066
31067 else case e in #(
31068 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31069 printf "%s\n" "no" >&6; } ;;
31070 esac
31071 fi
31072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31073 done
31074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether 2nd app_verify_cookie_cb() arg is const" >&5
31075 printf %s "checking whether 2nd app_verify_cookie_cb() arg is const... " >&6; }
31076 netsnmp_save_CFLAGS="$CFLAGS"
31077 CFLAGS="$CFLAGS -Werror"
31078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31079 /* end confdefs.h. */
31080
31081 #include <openssl/ssl.h>
31082
31083 int
31084 main (void)
31085 {
31086
31087 int (*app_verify_cookie_cb)(SSL *ssl,
31088 const unsigned char *cookie,
31089 unsigned int cookie_len) = NULL;
31090 SSL_CTX_set_cookie_verify_cb(NULL, app_verify_cookie_cb);
31091
31092 ;
31093 return 0;
31094 }
31095 _ACEOF
31096 if ac_fn_c_try_compile "$LINENO"
31097 then :
31098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31099 printf "%s\n" "yes" >&6; }; ac_cv_saccaq=const
31100 else case e in #(
31101 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31102 printf "%s\n" "no" >&6; } ;;
31103 esac
31104 fi
31105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31106
31107 printf "%s\n" "#define SECOND_APPVERIFY_COOKIE_CB_ARG_QUALIFIER $ac_cv_saccaq" >>confdefs.h
31108
31109 CFLAGS="$netsnmp_save_CFLAGS"
31110
31111 if echo " $transport_result_list " | $GREP "DTLS" > /dev/null; then
31112 if test x$ac_cv_func_DTLSv1_method = xyes -o \
31113 x$ac_cv_func_DTLS_method = xyes; then
31114
31115 printf "%s\n" "#define HAVE_LIBSSL_DTLS 1" >>confdefs.h
31116
31117 if test "x$with_wolfssl" = x; then
31118 LIBCRYPTO=" -lssl $LIBCRYPTO"
31119 fi
31120 else
31121 as_fn_error $? "The DTLS based transports require the libssl library from OpenSSL to be available and support DTLS" "$LINENO" 5
31122 fi
31123 TLSPROG=yes
31124 fi
31125 if echo " $transport_result_list " | $GREP "TLS" > /dev/null; then
31126 if test x$ac_cv_func_TLSv1_method = xyes -o \
31127 x$ac_cv_func_TLS_method = xyes; then
31128
31129 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
31130
31131 if test "x$with_wolfssl" = x; then
31132 LIBCRYPTO=" -lssl $LIBCRYPTO"
31133 fi
31134 else
31135 as_fn_error $? "The TLS based transports require the libssl library from OpenSSL to be available" "$LINENO" 5
31136 fi
31137 TLSPROG=yes
31138 fi
31139 if echo " $transport_result_list " | $GREP " SSH " > /dev/null; then
31140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing libssh2_session_handshake" >&5
31141 printf %s "checking for library containing libssh2_session_handshake... " >&6; }
31142 if test ${ac_cv_search_libssh2_session_handshake+y}
31143 then :
31144 printf %s "(cached) " >&6
31145 else case e in #(
31146 e) ac_func_search_save_LIBS=$LIBS
31147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31148 /* end confdefs.h. */
31149
31150 /* Override any GCC internal prototype to avoid an error.
31151 Use char because int might match the return type of a GCC
31152 builtin and then its argument prototype would still apply.
31153 The 'extern "C"' is for builds by C++ compilers;
31154 although this is not generally supported in C code supporting it here
31155 has little cost and some practical benefit (sr 110532). */
31156 #ifdef __cplusplus
31157 extern "C"
31158 #endif
31159 char libssh2_session_handshake (void);
31160 int
31161 main (void)
31162 {
31163 return libssh2_session_handshake ();
31164 ;
31165 return 0;
31166 }
31167 _ACEOF
31168 for ac_lib in '' ssh2
31169 do
31170 if test -z "$ac_lib"; then
31171 ac_res="none required"
31172 else
31173 ac_res=-l$ac_lib
31174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31175 fi
31176 if ac_fn_c_try_link "$LINENO"
31177 then :
31178 ac_cv_search_libssh2_session_handshake=$ac_res
31179 fi
31180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31181 conftest$ac_exeext
31182 if test ${ac_cv_search_libssh2_session_handshake+y}
31183 then :
31184 break
31185 fi
31186 done
31187 if test ${ac_cv_search_libssh2_session_handshake+y}
31188 then :
31189
31190 else case e in #(
31191 e) ac_cv_search_libssh2_session_handshake=no ;;
31192 esac
31193 fi
31194 rm conftest.$ac_ext
31195 LIBS=$ac_func_search_save_LIBS ;;
31196 esac
31197 fi
31198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libssh2_session_handshake" >&5
31199 printf "%s\n" "$ac_cv_search_libssh2_session_handshake" >&6; }
31200 ac_res=$ac_cv_search_libssh2_session_handshake
31201 if test "$ac_res" != no
31202 then :
31203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31204
31205 fi
31206
31207 ac_fn_c_check_func "$LINENO" "libssh2_session_handshake" "ac_cv_func_libssh2_session_handshake"
31208 if test "x$ac_cv_func_libssh2_session_handshake" = xyes
31209 then :
31210 printf "%s\n" "#define HAVE_LIBSSH2_SESSION_HANDSHAKE 1" >>confdefs.h
31211
31212 fi
31213
31214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_init_ex in -lssh2" >&5
31215 printf %s "checking for libssh2_session_init_ex in -lssh2... " >&6; }
31216 if test ${ac_cv_lib_ssh2_libssh2_session_init_ex+y}
31217 then :
31218 printf %s "(cached) " >&6
31219 else case e in #(
31220 e) ac_check_lib_save_LIBS=$LIBS
31221 LIBS="-lssh2 $LIBS"
31222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31223 /* end confdefs.h. */
31224
31225 /* Override any GCC internal prototype to avoid an error.
31226 Use char because int might match the return type of a GCC
31227 builtin and then its argument prototype would still apply.
31228 The 'extern "C"' is for builds by C++ compilers;
31229 although this is not generally supported in C code supporting it here
31230 has little cost and some practical benefit (sr 110532). */
31231 #ifdef __cplusplus
31232 extern "C"
31233 #endif
31234 char libssh2_session_init_ex (void);
31235 int
31236 main (void)
31237 {
31238 return libssh2_session_init_ex ();
31239 ;
31240 return 0;
31241 }
31242 _ACEOF
31243 if ac_fn_c_try_link "$LINENO"
31244 then :
31245 ac_cv_lib_ssh2_libssh2_session_init_ex=yes
31246 else case e in #(
31247 e) ac_cv_lib_ssh2_libssh2_session_init_ex=no ;;
31248 esac
31249 fi
31250 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31251 conftest$ac_exeext conftest.$ac_ext
31252 LIBS=$ac_check_lib_save_LIBS ;;
31253 esac
31254 fi
31255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_init_ex" >&5
31256 printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_init_ex" >&6; }
31257 if test "x$ac_cv_lib_ssh2_libssh2_session_init_ex" = xyes
31258 then :
31259
31260 printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
31261
31262 LIBCRYPTO=" -lssh2 $LIBCRYPTO"
31263 else case e in #(
31264 e) as_fn_error $? "The SSH transport requires the libssh2 library to be available" "$LINENO" 5 ;;
31265 esac
31266 fi
31267
31268 SSHPROG=yes
31269 fi
31270 fi
31271 elif test "x$askedpkcs" = "xyes"; then
31272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C_Initialize in -lpkcs11" >&5
31273 printf %s "checking for C_Initialize in -lpkcs11... " >&6; }
31274 if test ${ac_cv_lib_pkcs11_C_Initialize+y}
31275 then :
31276 printf %s "(cached) " >&6
31277 else case e in #(
31278 e) ac_check_lib_save_LIBS=$LIBS
31279 LIBS="-lpkcs11 $LIBS"
31280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31281 /* end confdefs.h. */
31282
31283 /* Override any GCC internal prototype to avoid an error.
31284 Use char because int might match the return type of a GCC
31285 builtin and then its argument prototype would still apply.
31286 The 'extern "C"' is for builds by C++ compilers;
31287 although this is not generally supported in C code supporting it here
31288 has little cost and some practical benefit (sr 110532). */
31289 #ifdef __cplusplus
31290 extern "C"
31291 #endif
31292 char C_Initialize (void);
31293 int
31294 main (void)
31295 {
31296 return C_Initialize ();
31297 ;
31298 return 0;
31299 }
31300 _ACEOF
31301 if ac_fn_c_try_link "$LINENO"
31302 then :
31303 ac_cv_lib_pkcs11_C_Initialize=yes
31304 else case e in #(
31305 e) ac_cv_lib_pkcs11_C_Initialize=no ;;
31306 esac
31307 fi
31308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31309 conftest$ac_exeext conftest.$ac_ext
31310 LIBS=$ac_check_lib_save_LIBS ;;
31311 esac
31312 fi
31313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pkcs11_C_Initialize" >&5
31314 printf "%s\n" "$ac_cv_lib_pkcs11_C_Initialize" >&6; }
31315 if test "x$ac_cv_lib_pkcs11_C_Initialize" = xyes
31316 then :
31317 printf "%s\n" "#define HAVE_LIBPKCS11 1" >>confdefs.h
31318
31319 LIBPKCS11="-lpkcs11"
31320 fi
31321
31322 fi
31323
31324
31325
31326
31327
31328
31329 for symbol in ASN_BOOLEAN ASN_INTEGER ASN_OBJECT_ID ASN_SEQUENCE ASN_SET; do
31330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${symbol}" >&5
31331 printf %s "checking for ${symbol}... " >&6; }
31332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31333 /* end confdefs.h. */
31334 #include <openssl/ssl.h>
31335 int
31336 main (void)
31337 {
31338
31339 #ifndef ${symbol}
31340 return !${symbol}
31341 #endif
31342
31343 ;
31344 return 0;
31345 }
31346 _ACEOF
31347 if ac_fn_c_try_compile "$LINENO"
31348 then :
31349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31350 printf "%s\n" "yes" >&6; }
31351 printf "%s\n" "#define HAVE_${symbol} 1" >>confdefs.h
31352
31353 else case e in #(
31354 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31355 printf "%s\n" "no" >&6; } ;;
31356 esac
31357 fi
31358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31359 done
31360
31361 LIBS=$NONAGENTLIBS # restore old libraries
31362 if test "x$SSHPROG" = "xyes"; then
31363 NETSNMP_BUILD_SSH_PROG_TRUE=''
31364 NETSNMP_BUILD_SSH_PROG_FALSE='#'
31365 else
31366 NETSNMP_BUILD_SSH_PROG_TRUE='#'
31367 NETSNMP_BUILD_SSH_PROG_FALSE=''
31368 fi
31369 if test "x$TLSPROG" = "xyes" -a "x$enable_read_only" != "xyes" ; then
31370 NETSNMP_BUILD_TLS_PROG_TRUE=''
31371 NETSNMP_BUILD_TLS_PROG_FALSE='#'
31372 else
31373 NETSNMP_BUILD_TLS_PROG_TRUE='#'
31374 NETSNMP_BUILD_TLS_PROG_FALSE=''
31375 fi
31376 if echo " ${security_mod_list} " | grep -q ' usm ' ; then
31377 if test "x$enable_read_only" != "xyes" ; then
31378 NETSNMP_BUILD_USM_PROG_TRUE=''
31379 NETSNMP_BUILD_USM_PROG_FALSE='#'
31380 else
31381 NETSNMP_BUILD_USM_PROG_TRUE='#'
31382 NETSNMP_BUILD_USM_PROG_FALSE=''
31383 fi
31384 else
31385 NETSNMP_BUILD_USM_PROG_TRUE='#'
31386 NETSNMP_BUILD_USM_PROG_FALSE=''
31387 fi
31388 if test "x$enable_read_only" != "xyes" ; then
31389 NETSNMP_BUILD_SET_PROG_TRUE=""
31390 NETSNMP_BUILD_SET_PROG_FALSE="#"
31391 else
31392 NETSNMP_BUILD_SET_PROG_TRUE="#"
31393 NETSNMP_BUILD_SET_PROG_FALSE=""
31394 fi
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404 #
31405 # If we're using internal crypto support we need to compile in extra files
31406 #
31407 crypto_files_c=""
31408 crypto_files_o=""
31409 crypto_files_lo=""
31410 if test "x$tryopenssl" != "xno" -a "x$CRYPTO" = "x"; then
31411 # If we:
31412 # 1) couldn't find needed openssl support
31413 # 2) OR were asked to use internal support
31414 # 3) AND we have the needed files
31415 # then use it
31416 CRYPTO="internal"
31417 crypto_files_c="openssl/openssl_sha1.c openssl/openssl_md5.c openssl/openssl_set_key.c openssl/openssl_des_enc.c openssl/openssl_cbc_enc.c openssl/openssl_aes_cfb.c openssl/openssl_aes_core.c openssl/openssl_cfb128.c"
31418 crypto_files_o="openssl/openssl_sha1.o openssl/openssl_md5.o openssl/openssl_set_key.o openssl/openssl_des_enc.o openssl/openssl_cbc_enc.o openssl/openssl_aes_cfb.o openssl/openssl_aes_core.oo openssl/openssl_cfb128.o"
31419 crypto_files_lo="openssl/openssl_sha1.lo openssl/openssl_md5.lo openssl/openssl_set_key.lo openssl/openssl_des_enc.lo openssl/openssl_cbc_enc.lo openssl/openssl_aes_cfb.lo openssl/openssl_aes_core.lo openssl/openssl_cfb128.lo"
31420
31421 printf "%s\n" "#define HAVE_AES_CFB128_ENCRYPT 1" >>confdefs.h
31422
31423 fi
31424
31425
31426
31427
31428 #
31429 # if we can do any sort of crypto then note it
31430 #
31431 if test "x$CRYPTO" != "x" ; then
31432
31433 printf "%s\n" "#define NETSNMP_CAN_DO_CRYPTO 1" >>confdefs.h
31434
31435 fi
31436
31437 # TCP wrapper support
31438 #
31439 _cppflags="${CPPFLAGS}"
31440 _ldflags="${LDFLAGS}"
31441 if test "$with_libwrap" != "no"; then
31442 if test "$with_libwrap" != "yes"; then
31443 CPPFLAGS="${CPPFLAGS} -I$with_libwrap/include"
31444 LDFLAGS="${LDFLAGS} -L$with_libwrap/lib"
31445 fi
31446
31447 _libs=${LIBS}
31448 ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
31449 if test "x$ac_cv_header_tcpd_h" = xyes
31450 then :
31451
31452 else case e in #(
31453 e) as_fn_error $? "Asked to use libwrap but I couldn't find tcpd.h." "$LINENO" 5 ;;
31454 esac
31455 fi
31456
31457
31458 LIBS="$LIBS -lwrap"
31459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library -lwrap" >&5
31460 printf %s "checking for TCP wrappers library -lwrap... " >&6; }
31461 # XXX: should check for hosts_ctl
31462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31463 /* end confdefs.h. */
31464 #include <sys/types.h>
31465 #include <tcpd.h>
31466 int allow_severity = 0;
31467 int deny_severity = 0;
31468 int
31469 main (void)
31470 {
31471 hosts_access((void *)0)
31472 ;
31473 return 0;
31474 }
31475 _ACEOF
31476 if ac_fn_c_try_link "$LINENO"
31477 then :
31478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31479 printf "%s\n" "yes" >&6; }
31480 printf "%s\n" "#define NETSNMP_USE_LIBWRAP 1" >>confdefs.h
31481
31482 test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib"
31483 _wraplibs="$_wraplibs -lwrap"
31484 else case e in #(
31485 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31486 printf "%s\n" "no" >&6; }
31487 # Linux RedHat 6.1 won't link libwrap without libnsl
31488 ac_fn_c_check_func "$LINENO" "yp_get_default_domain" "ac_cv_func_yp_get_default_domain"
31489 if test "x$ac_cv_func_yp_get_default_domain" = xyes
31490 then :
31491
31492 else case e in #(
31493 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnsl" >&5
31494 printf %s "checking for yp_get_default_domain in -lnsl... " >&6; }
31495 if test ${ac_cv_lib_nsl_yp_get_default_domain+y}
31496 then :
31497 printf %s "(cached) " >&6
31498 else case e in #(
31499 e) ac_check_lib_save_LIBS=$LIBS
31500 LIBS="-lnsl $LIBS"
31501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31502 /* end confdefs.h. */
31503
31504 /* Override any GCC internal prototype to avoid an error.
31505 Use char because int might match the return type of a GCC
31506 builtin and then its argument prototype would still apply.
31507 The 'extern "C"' is for builds by C++ compilers;
31508 although this is not generally supported in C code supporting it here
31509 has little cost and some practical benefit (sr 110532). */
31510 #ifdef __cplusplus
31511 extern "C"
31512 #endif
31513 char yp_get_default_domain (void);
31514 int
31515 main (void)
31516 {
31517 return yp_get_default_domain ();
31518 ;
31519 return 0;
31520 }
31521 _ACEOF
31522 if ac_fn_c_try_link "$LINENO"
31523 then :
31524 ac_cv_lib_nsl_yp_get_default_domain=yes
31525 else case e in #(
31526 e) ac_cv_lib_nsl_yp_get_default_domain=no ;;
31527 esac
31528 fi
31529 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31530 conftest$ac_exeext conftest.$ac_ext
31531 LIBS=$ac_check_lib_save_LIBS ;;
31532 esac
31533 fi
31534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
31535 printf "%s\n" "$ac_cv_lib_nsl_yp_get_default_domain" >&6; }
31536 if test "x$ac_cv_lib_nsl_yp_get_default_domain" = xyes
31537 then :
31538 printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
31539
31540 LIBS="-lnsl $LIBS"
31541
31542 fi
31543 ;;
31544 esac
31545 fi
31546
31547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library -lwrap linked with -lnsl" >&5
31548 printf %s "checking for TCP wrappers library -lwrap linked with -lnsl... " >&6; }
31549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31550 /* end confdefs.h. */
31551 #include <sys/types.h>
31552 #include <tcpd.h>
31553 int allow_severity = 0;
31554 int deny_severity = 0;
31555 int
31556 main (void)
31557 {
31558 hosts_access((void *)0)
31559 ;
31560 return 0;
31561 }
31562 _ACEOF
31563 if ac_fn_c_try_link "$LINENO"
31564 then :
31565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31566 printf "%s\n" "yes" >&6; }
31567 printf "%s\n" "#define NETSNMP_USE_LIBWRAP 1" >>confdefs.h
31568
31569 test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib"
31570 _wraplibs="$_wraplibs -lwrap -lnsl"
31571 else case e in #(
31572 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31573 printf "%s\n" "no" >&6; }
31574 as_fn_error $? "Asked to use libwrap but I couldn't find it." "$LINENO" 5 ;;
31575 esac
31576 fi
31577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31578 conftest$ac_exeext conftest.$ac_ext ;;
31579 esac
31580 fi
31581 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31582 conftest$ac_exeext conftest.$ac_ext
31583 LAGENTLIBS="$LAGENTLIBS $_wraplibs"
31584 CPPFLAGS=${_cppflags}
31585 LDFLAGS=${_ldflags}
31586 LIBS=${_libs}
31587 fi
31588
31589
31590 ##
31591 # mysql
31592 ##
31593 if test "x$with_mysql" = "xyes" ; then
31594 for ac_prog in mysql_config
31595 do
31596 # Extract the first word of "$ac_prog", so it can be a program name with args.
31597 set dummy $ac_prog; ac_word=$2
31598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31599 printf %s "checking for $ac_word... " >&6; }
31600 if test ${ac_cv_path_MYSQLCONFIG+y}
31601 then :
31602 printf %s "(cached) " >&6
31603 else case e in #(
31604 e) case $MYSQLCONFIG in
31605 [\\/]* | ?:[\\/]*)
31606 ac_cv_path_MYSQLCONFIG="$MYSQLCONFIG" # Let the user override the test with a path.
31607 ;;
31608 *)
31609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31610 for as_dir in $PATH
31611 do
31612 IFS=$as_save_IFS
31613 case $as_dir in #(((
31614 '') as_dir=./ ;;
31615 */) ;;
31616 *) as_dir=$as_dir/ ;;
31617 esac
31618 for ac_exec_ext in '' $ac_executable_extensions; do
31619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31620 ac_cv_path_MYSQLCONFIG="$as_dir$ac_word$ac_exec_ext"
31621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31622 break 2
31623 fi
31624 done
31625 done
31626 IFS=$as_save_IFS
31627
31628 ;;
31629 esac ;;
31630 esac
31631 fi
31632 MYSQLCONFIG=$ac_cv_path_MYSQLCONFIG
31633 if test -n "$MYSQLCONFIG"; then
31634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MYSQLCONFIG" >&5
31635 printf "%s\n" "$MYSQLCONFIG" >&6; }
31636 else
31637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31638 printf "%s\n" "no" >&6; }
31639 fi
31640
31641
31642 test -n "$MYSQLCONFIG" && break
31643 done
31644
31645 test -x "$MYSQLCONFIG" \
31646 || as_fn_error $? "Could not find mysql_config and was specifically asked to use MySQL support" "$LINENO" 5
31647 MYSQL_LIBS=`$MYSQLCONFIG --libs`
31648 MYSQL_INCLUDES=`$MYSQLCONFIG --include`
31649 _libs="${LIBS}"
31650 _cppflags="${CPPFLAGS}"
31651 LIBS="${LIBS} ${MYSQL_LIBS}"
31652 CPPFLAGS="${CPPFLAGS} ${MYSQL_INCLUDES}"
31653 ac_fn_c_check_header_compile "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
31654 if test "x$ac_cv_header_mysql_h" = xyes
31655 then :
31656
31657 else case e in #(
31658 e) as_fn_error $? "Could not find mysql.h and was specifically asked to use MySQL support" "$LINENO" 5 ;;
31659 esac
31660 fi
31661
31662 ac_fn_c_check_header_compile "$LINENO" "my_global.h" "ac_cv_header_my_global_h" "$ac_includes_default"
31663 if test "x$ac_cv_header_my_global_h" = xyes
31664 then :
31665 printf "%s\n" "#define HAVE_MY_GLOBAL_H 1" >>confdefs.h
31666
31667 fi
31668 ac_fn_c_check_header_compile "$LINENO" "my_sys.h" "ac_cv_header_my_sys_h" "$ac_includes_default"
31669 if test "x$ac_cv_header_my_sys_h" = xyes
31670 then :
31671 printf "%s\n" "#define HAVE_MY_SYS_H 1" >>confdefs.h
31672
31673 fi
31674
31675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MY_INIT() works" >&5
31676 printf %s "checking whether MY_INIT() works... " >&6; }
31677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31678 /* end confdefs.h. */
31679
31680 #ifdef HAVE_MY_GLOBAL_H
31681 #include <my_global.h>
31682 #endif
31683 #ifdef HAVE_MY_SYS_H
31684 #include <my_sys.h>
31685 #endif
31686 #include <mysql.h>
31687 int
31688 main (void)
31689 {
31690 MY_INIT("my_init_test")
31691 ;
31692 return 0;
31693 }
31694 _ACEOF
31695 if ac_fn_c_try_link "$LINENO"
31696 then :
31697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31698 printf "%s\n" "yes" >&6; }
31699
31700 printf "%s\n" "#define HAVE_MY_INIT 1" >>confdefs.h
31701
31702 else case e in #(
31703 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31704 printf "%s\n" "no" >&6; } ;;
31705 esac
31706 fi
31707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31708 conftest$ac_exeext conftest.$ac_ext
31709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether my_load_defaults() exists" >&5
31710 printf %s "checking whether my_load_defaults() exists... " >&6; }
31711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31712 /* end confdefs.h. */
31713
31714 #ifdef HAVE_MY_GLOBAL_H
31715 #include <my_global.h>
31716 #endif
31717 #ifdef HAVE_MY_SYS_H
31718 #include <my_sys.h>
31719 #endif
31720 #include <mysql.h>
31721 int
31722 main (void)
31723 {
31724 my_load_defaults("my_init_test")
31725 ;
31726 return 0;
31727 }
31728 _ACEOF
31729 if ac_fn_c_try_link "$LINENO"
31730 then :
31731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31732 printf "%s\n" "yes" >&6; }
31733
31734 printf "%s\n" "#define HAVE_MY_LOAD_DEFAULTS 1" >>confdefs.h
31735
31736 else case e in #(
31737 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31738 printf "%s\n" "no" >&6; } ;;
31739 esac
31740 fi
31741 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31742 conftest$ac_exeext conftest.$ac_ext
31743 ac_fn_c_check_func "$LINENO" "load_defaults" "ac_cv_func_load_defaults"
31744 if test "x$ac_cv_func_load_defaults" = xyes
31745 then :
31746 printf "%s\n" "#define HAVE_LOAD_DEFAULTS 1" >>confdefs.h
31747
31748 fi
31749 ac_fn_c_check_func "$LINENO" "mysql_init" "ac_cv_func_mysql_init"
31750 if test "x$ac_cv_func_mysql_init" = xyes
31751 then :
31752 printf "%s\n" "#define HAVE_MYSQL_INIT 1" >>confdefs.h
31753
31754 fi
31755 ac_fn_c_check_func "$LINENO" "mysql_options" "ac_cv_func_mysql_options"
31756 if test "x$ac_cv_func_mysql_options" = xyes
31757 then :
31758 printf "%s\n" "#define HAVE_MYSQL_OPTIONS 1" >>confdefs.h
31759
31760 fi
31761
31762 CPPFLAGS="${_cppflags}"
31763 LIBS="${_libs}"
31764
31765 cat >> configure-summary << EOF
31766 MYSQL Trap Logging: enabled
31767 EOF
31768
31769 else
31770
31771 cat >> configure-summary << EOF
31772 MYSQL Trap Logging: unavailable
31773 EOF
31774
31775 fi
31776
31777
31778
31779 ##
31780 # libpcap
31781 ##
31782 NETSNMP_BUILD_PCAP_PROG_TRUE='#'
31783 NETSNMP_BUILD_PCAP_PROG_FALSE=''
31784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
31785 printf %s "checking for pcap_create in -lpcap... " >&6; }
31786 if test ${ac_cv_lib_pcap_pcap_create+y}
31787 then :
31788 printf %s "(cached) " >&6
31789 else case e in #(
31790 e) ac_check_lib_save_LIBS=$LIBS
31791 LIBS="-lpcap $LIBS"
31792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31793 /* end confdefs.h. */
31794
31795 /* Override any GCC internal prototype to avoid an error.
31796 Use char because int might match the return type of a GCC
31797 builtin and then its argument prototype would still apply.
31798 The 'extern "C"' is for builds by C++ compilers;
31799 although this is not generally supported in C code supporting it here
31800 has little cost and some practical benefit (sr 110532). */
31801 #ifdef __cplusplus
31802 extern "C"
31803 #endif
31804 char pcap_create (void);
31805 int
31806 main (void)
31807 {
31808 return pcap_create ();
31809 ;
31810 return 0;
31811 }
31812 _ACEOF
31813 if ac_fn_c_try_link "$LINENO"
31814 then :
31815 ac_cv_lib_pcap_pcap_create=yes
31816 else case e in #(
31817 e) ac_cv_lib_pcap_pcap_create=no ;;
31818 esac
31819 fi
31820 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31821 conftest$ac_exeext conftest.$ac_ext
31822 LIBS=$ac_check_lib_save_LIBS ;;
31823 esac
31824 fi
31825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
31826 printf "%s\n" "$ac_cv_lib_pcap_pcap_create" >&6; }
31827 if test "x$ac_cv_lib_pcap_pcap_create" = xyes
31828 then :
31829
31830 for ac_header in pcap/pcap.h
31831 do :
31832 ac_fn_c_check_header_compile "$LINENO" "pcap/pcap.h" "ac_cv_header_pcap_pcap_h" "$ac_includes_default"
31833 if test "x$ac_cv_header_pcap_pcap_h" = xyes
31834 then :
31835 printf "%s\n" "#define HAVE_PCAP_PCAP_H 1" >>confdefs.h
31836
31837 NETSNMP_BUILD_PCAP_PROG_TRUE=''
31838 NETSNMP_BUILD_PCAP_PROG_FALSE='#'
31839
31840 fi
31841
31842 done
31843
31844 fi
31845
31846
31847
31848
31849 ##
31850 # Non-library checks
31851 ##
31852
31853 # nlist
31854 ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist"
31855 if test "x$ac_cv_func_nlist" = xyes
31856 then :
31857 printf "%s\n" "#define HAVE_NLIST 1" >>confdefs.h
31858
31859 fi
31860 ac_fn_c_check_func "$LINENO" "nlist64" "ac_cv_func_nlist64"
31861 if test "x$ac_cv_func_nlist64" = xyes
31862 then :
31863 printf "%s\n" "#define HAVE_NLIST64 1" >>confdefs.h
31864
31865 fi
31866 ac_fn_c_check_func "$LINENO" "knlist" "ac_cv_func_knlist"
31867 if test "x$ac_cv_func_knlist" = xyes
31868 then :
31869 printf "%s\n" "#define HAVE_KNLIST 1" >>confdefs.h
31870
31871 fi
31872
31873
31874
31875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing endwin" >&5
31876 printf %s "checking for library containing endwin... " >&6; }
31877 if test ${netsnmp_cv_func_endwin_LIBCURSES+y}
31878 then :
31879 printf %s "(cached) " >&6
31880 else case e in #(
31881 e) netsnmp_func_search_save_LIBS="$LIBS"
31882 netsnmp_target_val="$LIBCURSES"
31883 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
31884 netsnmp_result=no
31885 LIBS="${netsnmp_temp_LIBS}"
31886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31887 /* end confdefs.h. */
31888
31889 /* Override any GCC internal prototype to avoid an error.
31890 Use char because int might match the return type of a GCC
31891 builtin and then its argument prototype would still apply.
31892 The 'extern "C"' is for builds by C++ compilers;
31893 although this is not generally supported in C code supporting it here
31894 has little cost and some practical benefit (sr 110532). */
31895 #ifdef __cplusplus
31896 extern "C"
31897 #endif
31898 char endwin (void);
31899 int
31900 main (void)
31901 {
31902 return endwin ();
31903 ;
31904 return 0;
31905 }
31906 _ACEOF
31907 if ac_fn_c_try_link "$LINENO"
31908 then :
31909 netsnmp_result="none required"
31910 else case e in #(
31911 e) for netsnmp_cur_lib in curses ncurses ; do
31912 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
31913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31914 /* end confdefs.h. */
31915
31916 /* Override any GCC internal prototype to avoid an error.
31917 Use char because int might match the return type of a GCC
31918 builtin and then its argument prototype would still apply.
31919 The 'extern "C"' is for builds by C++ compilers;
31920 although this is not generally supported in C code supporting it here
31921 has little cost and some practical benefit (sr 110532). */
31922 #ifdef __cplusplus
31923 extern "C"
31924 #endif
31925 char endwin (void);
31926 int
31927 main (void)
31928 {
31929 return endwin ();
31930 ;
31931 return 0;
31932 }
31933 _ACEOF
31934 if ac_fn_c_try_link "$LINENO"
31935 then :
31936 netsnmp_result=-l${netsnmp_cur_lib}
31937 break
31938 fi
31939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31940 conftest$ac_exeext conftest.$ac_ext
31941 done ;;
31942 esac
31943 fi
31944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31945 conftest$ac_exeext conftest.$ac_ext
31946 LIBS="${netsnmp_func_search_save_LIBS}"
31947 netsnmp_cv_func_endwin_LIBCURSES="${netsnmp_result}" ;;
31948 esac
31949 fi
31950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_endwin_LIBCURSES" >&5
31951 printf "%s\n" "$netsnmp_cv_func_endwin_LIBCURSES" >&6; }
31952 if test "x${netsnmp_cv_func_endwin_LIBCURSES}" != "xno" ; then
31953 if test "x${netsnmp_cv_func_endwin_LIBCURSES}" != "xnone required" ; then
31954 LIBCURSES="${netsnmp_result} ${netsnmp_target_val}"
31955 fi
31956
31957 ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
31958 if test "x$ac_cv_header_curses_h" = xyes
31959 then :
31960 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
31961
31962 fi
31963
31964 ac_fn_c_check_header_compile "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
31965 if test "x$ac_cv_header_ncurses_curses_h" = xyes
31966 then :
31967 printf "%s\n" "#define HAVE_NCURSES_CURSES_H 1" >>confdefs.h
31968
31969 fi
31970
31971 HAVE_LIBCURSES=TRUE
31972 else
31973 HAVE_LIBCURSES=FALSE
31974 fi
31975
31976
31977
31978
31979 # libm for ceil
31980 #
31981
31982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
31983 printf %s "checking for library containing ceil... " >&6; }
31984 if test ${netsnmp_cv_func_ceil_LNETSNMPLIBS+y}
31985 then :
31986 printf %s "(cached) " >&6
31987 else case e in #(
31988 e) netsnmp_func_search_save_LIBS="$LIBS"
31989 netsnmp_target_val="$LNETSNMPLIBS"
31990 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}"
31991 netsnmp_result=no
31992 LIBS="${netsnmp_temp_LIBS}"
31993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31994 /* end confdefs.h. */
31995
31996 /* Override any GCC internal prototype to avoid an error.
31997 Use char because int might match the return type of a GCC
31998 builtin and then its argument prototype would still apply.
31999 The 'extern "C"' is for builds by C++ compilers;
32000 although this is not generally supported in C code supporting it here
32001 has little cost and some practical benefit (sr 110532). */
32002 #ifdef __cplusplus
32003 extern "C"
32004 #endif
32005 char ceil (void);
32006 int
32007 main (void)
32008 {
32009 return ceil ();
32010 ;
32011 return 0;
32012 }
32013 _ACEOF
32014 if ac_fn_c_try_link "$LINENO"
32015 then :
32016 netsnmp_result="none required"
32017 else case e in #(
32018 e) for netsnmp_cur_lib in m ; do
32019 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}"
32020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32021 /* end confdefs.h. */
32022
32023 /* Override any GCC internal prototype to avoid an error.
32024 Use char because int might match the return type of a GCC
32025 builtin and then its argument prototype would still apply.
32026 The 'extern "C"' is for builds by C++ compilers;
32027 although this is not generally supported in C code supporting it here
32028 has little cost and some practical benefit (sr 110532). */
32029 #ifdef __cplusplus
32030 extern "C"
32031 #endif
32032 char ceil (void);
32033 int
32034 main (void)
32035 {
32036 return ceil ();
32037 ;
32038 return 0;
32039 }
32040 _ACEOF
32041 if ac_fn_c_try_link "$LINENO"
32042 then :
32043 netsnmp_result=-l${netsnmp_cur_lib}
32044 break
32045 fi
32046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32047 conftest$ac_exeext conftest.$ac_ext
32048 done ;;
32049 esac
32050 fi
32051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32052 conftest$ac_exeext conftest.$ac_ext
32053 LIBS="${netsnmp_func_search_save_LIBS}"
32054 netsnmp_cv_func_ceil_LNETSNMPLIBS="${netsnmp_result}" ;;
32055 esac
32056 fi
32057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_ceil_LNETSNMPLIBS" >&5
32058 printf "%s\n" "$netsnmp_cv_func_ceil_LNETSNMPLIBS" >&6; }
32059 if test "x${netsnmp_cv_func_ceil_LNETSNMPLIBS}" != "xno" ; then
32060 if test "x${netsnmp_cv_func_ceil_LNETSNMPLIBS}" != "xnone required" ; then
32061 LNETSNMPLIBS="${netsnmp_result} ${netsnmp_target_val}"
32062 fi
32063
32064
32065 fi
32066
32067
32068 cat >confcache <<\_ACEOF
32069 # This file is a shell script that caches the results of configure
32070 # tests run on this system so they can be shared between configure
32071 # scripts and configure runs, see configure's option --config-cache.
32072 # It is not useful on other systems. If it contains results you don't
32073 # want to keep, you may remove or edit it.
32074 #
32075 # config.status only pays attention to the cache file if you give it
32076 # the --recheck option to rerun configure.
32077 #
32078 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
32079 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
32080 # following values.
32081
32082 _ACEOF
32083
32084 # The following way of writing the cache mishandles newlines in values,
32085 # but we know of no workaround that is simple, portable, and efficient.
32086 # So, we kill variables containing newlines.
32087 # Ultrix sh set writes to stderr and can't be redirected directly,
32088 # and sets the high bit in the cache file unless we assign to the vars.
32089 (
32090 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32091 eval ac_val=\$$ac_var
32092 case $ac_val in #(
32093 *${as_nl}*)
32094 case $ac_var in #(
32095 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32096 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32097 esac
32098 case $ac_var in #(
32099 _ | IFS | as_nl) ;; #(
32100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32101 *) { eval $ac_var=; unset $ac_var;} ;;
32102 esac ;;
32103 esac
32104 done
32105
32106 (set) 2>&1 |
32107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32108 *${as_nl}ac_space=\ *)
32109 # 'set' does not quote correctly, so add quotes: double-quote
32110 # substitution turns \\\\ into \\, and sed turns \\ into \.
32111 sed -n \
32112 "s/'/'\\\\''/g;
32113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32114 ;; #(
32115 *)
32116 # 'set' quotes correctly as required by POSIX, so do not add quotes.
32117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32118 ;;
32119 esac |
32120 sort
32121 ) |
32122 sed '
32123 /^ac_cv_env_/b end
32124 t clear
32125 :clear
32126 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
32127 t end
32128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32129 :end' >>confcache
32130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32131 if test -w "$cache_file"; then
32132 if test "x$cache_file" != "x/dev/null"; then
32133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32134 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
32135 if test ! -f "$cache_file" || test -h "$cache_file"; then
32136 cat confcache >"$cache_file"
32137 else
32138 case $cache_file in #(
32139 */* | ?:*)
32140 mv -f confcache "$cache_file"$$ &&
32141 mv -f "$cache_file"$$ "$cache_file" ;; #(
32142 *)
32143 mv -f confcache "$cache_file" ;;
32144 esac
32145 fi
32146 fi
32147 else
32148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32149 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
32150 fi
32151 fi
32152 rm -f confcache
32153 # -*- autoconf -*-
32154 #########################################
32155 ##
32156 # Perl & Python support
32157 ##
32158 #########################################
32159
32160 ##
32161 # Check whether Net-SNMP configuration will support Perl
32162 ##
32163
32164 # Inputs:
32165 # install_perl: whether or not to install the Perl modules
32166 # yes/no/try (i.e. 'maybe' - the default)
32167 # embed_perl: whether or not to embed Perl support within the agent
32168 # yes/no/try (i.e. 'maybe' - the default)
32169 #
32170 # ac_cv_path_PERLPROG: Path to perl binary
32171
32172
32173 # Embedded Perl requires Perl modules, and the perl binary
32174 #
32175 if test "x$embed_perl" = "xtry" ; then
32176 if test "x$install_perl" = "xno" ; then
32177 install_perl="try"
32178 fi
32179 if test "x$ac_cv_path_PERLPROG" = "x" -o "x$ac_cv_path_PERLPROG" = "xno" ; then
32180 install_perl="no"
32181 embed_perl="no"
32182 fi
32183 fi
32184
32185 # Perl modules require the perl binary
32186 #
32187 if test "x$install_perl" != "xno" ; then
32188 myperl=$ac_cv_path_PERLPROG
32189 if test $myperl = "no" ; then
32190 if test "x$install_perl" = "xtry" ; then
32191 install_perl="no"
32192 else
32193 as_fn_error $? "--enable-embedded-perl requested but no perl executable found" "$LINENO" 5
32194 fi
32195 fi
32196 fi
32197
32198 # Perl modules require shared libraries
32199 #
32200 if test "x$install_perl" != "xno" ; then
32201 if test "x$enable_shared" != "xyes"; then
32202 if test "x$install_perl" = "xtry" ; then
32203 install_perl="no"
32204 else
32205 as_fn_error $? "Perl support requires --enable-shared" "$LINENO" 5
32206 fi
32207 fi
32208 fi
32209
32210 # Perl modules can only be installed from within the source tree
32211 #
32212 if test "x$install_perl" != "xno" ; then
32213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we are in the source tree so we can install Perl modules" >&5
32214 printf %s "checking if we are in the source tree so we can install Perl modules... " >&6; }
32215 if test "x$srcdir" = "x." -o -d perl/agent/default_store ; then
32216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Yes" >&5
32217 printf "%s\n" "Yes" >&6; }
32218 else
32219 if test "x$install_perl" = "xtry" ; then
32220 install_perl="no"
32221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: No" >&5
32222 printf "%s\n" "No" >&6; }
32223 else
32224 as_fn_error $? "Perl modules can not be built outside the source directory" "$LINENO" 5
32225 fi
32226 fi
32227 fi
32228
32229
32230 # The rest of the Perl-related checks aren't relevant
32231 # if we're not using the Perl modules
32232 #
32233 if test "x$install_perl" != "xno" ; then
32234
32235
32236 ##
32237 # Check compiler compatability
32238 ##
32239
32240 # What compiler was used to build the perl binary?
32241 #
32242 if test "x$enable_perl_cc_checks" != "xno" ; then
32243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl cc" >&5
32244 printf %s "checking for Perl cc... " >&6; }
32245
32246 PERLCC=`$myperl -V:cc | $myperl -n -e 'print if (s/^\s*cc=.([-=\w\s\/.]+).;\s*/$1/);'`
32247
32248 if test "x$PERLCC" != "x" ; then
32249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERLCC" >&5
32250 printf "%s\n" "$PERLCC" >&6; }
32251 else
32252 if test "x$install_perl" = "xtry" ; then
32253 install_perl="no"
32254 else
32255 as_fn_error $? "Could not determine the compiler that was used to build $myperl. Either set the environment variable PERLPROG to a different perl binary or use --without-perl-modules to build without Perl." "$LINENO" 5
32256 fi
32257 fi
32258
32259 # Was GCC used to build the perl binary?
32260 #
32261 if test "x$install_perl" != "xno" ; then
32262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PERLCC is a GNU C compiler" >&5
32263 printf %s "checking whether $PERLCC is a GNU C compiler... " >&6; }
32264 OLDCC=$CC
32265 CC="$PERLCC"
32266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32267 /* end confdefs.h. */
32268
32269
32270 int
32271 main (void)
32272 {
32273
32274 #ifndef __GNUC__
32275 choke me
32276 #endif
32277
32278 ;
32279 return 0;
32280 }
32281 _ACEOF
32282 if ac_fn_c_try_compile "$LINENO"
32283 then :
32284 perlcc_is_gnu=yes
32285 else case e in #(
32286 e) perlcc_is_gnu=no ;;
32287 esac
32288 fi
32289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perlcc_is_gnu" >&5
32291 printf "%s\n" "$perlcc_is_gnu" >&6; }
32292 CC=$OLDCC
32293
32294 # Check compatability: Gnu Net-SNMP vs Non-Gnu perl
32295 #
32296 if test "x$GCC" = "xyes" -a "x$perlcc_is_gnu" = "xno" ; then
32297 if test "x$install_perl" = "xtry" ; then
32298 install_perl="no"
32299 else
32300 as_fn_error $? "This build is using a GNU C compiler ($CC) while Perl has been compiled with a non-GNU (or non-working) compiler ($PERLCC). This likely won't work for building with Perl support. Either specify a different compiler (--with-cc=PATH), disable this check (--disable-perl-cc-checks) or build without Perl (--without-perl-modules)." "$LINENO" 5
32301 fi
32302 fi
32303 fi
32304
32305 # Check compatability: Non-Gnu Net-SNMP vs Gnu perl
32306 #
32307 if test "x$install_perl" != "xno" ; then
32308 if test "x$GCC" != "xyes" -a "x$perlcc_is_gnu" = "xyes" ; then
32309 if test "x$install_perl" = "xtry" ; then
32310 install_perl="no"
32311 else
32312 as_fn_error $? "This build is using a non-GNU C compiler ($CC) while Perl has been compiled with a GNU compiler ($PERLCC). This likely won't work for building with Perl support. Either specify a different compiler (--with-cc=PATH), disable this check (--disable-perl-cc-checks) or build without Perl (--without-perl-modules)." "$LINENO" 5
32313 fi
32314 fi
32315 fi
32316 fi
32317
32318 # Are we clear to proceed?
32319 #
32320 if test "x$install_perl" = "xtry" ; then
32321 install_perl="yes"
32322 else
32323 if test "x$install_perl" = "xno" ; then
32324 install_perl="no"
32325 embed_perl="no"
32326 fi
32327 fi
32328
32329
32330 ##
32331 # Determine compilation environment needed for embedded Perl
32332 ##
32333
32334 # System-specific requirements
32335 #
32336 case $target_os in
32337 solaris*)
32338 if test "x$embed_perl" != "xno" ; then
32339 # Check for LARGEFILE support (Solaris)
32340 #
32341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for problematic Perl cc flags on Suns" >&5
32342 printf %s "checking for problematic Perl cc flags on Suns... " >&6; }
32343 if $myperl -V:ccflags | $GREP LARGEFILE > /dev/null ; then
32344 if test "x$embed_perl" = "xtry" ; then
32345 embed_perl="no"
32346 else
32347 as_fn_error $? "Perl was compiled with LARGEFILE support which will break Net-SNMP. Either set the environment variable PERLPROG to a different perl binary or use --disable-embedded-perl to turn off embedded Perl functionality altogether." "$LINENO" 5
32348 fi
32349 else
32350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none known" >&5
32351 printf "%s\n" "none known" >&6; }
32352 fi
32353 fi
32354 ;;
32355
32356 # Embedded perl typically fails on HP-UX and Mac OS X
32357 # We really need to investigate why, and check for this explicitly
32358 # But for the time being, turn this off by default
32359 hpux*|darwin8*|darwin9*|darwin10*)
32360 if test "x$embed_perl" = "xtry" ; then
32361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Embedded perl defaulting to off" >&5
32362 printf "%s\n" "$as_me: WARNING: Embedded perl defaulting to off" >&2;}
32363 embed_perl="no"
32364 fi
32365 ;;
32366
32367 *)
32368 ;;
32369 esac
32370
32371 # Compiler flags
32372 #
32373 if test "x$embed_perl" != "xno" ; then
32374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl CFLAGS" >&5
32375 printf %s "checking for Perl CFLAGS... " >&6; }
32376 perlcflags=`$myperl -MExtUtils::Embed -e ccopts`
32377 if test "x$perlcflags" != "x" ; then
32378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perlcflags" >&5
32379 printf "%s\n" "$perlcflags" >&6; }
32380 CFLAGS="$CFLAGS $perlcflags"
32381 else
32382 if test "x$embed_perl" = "xtry" ; then
32383 embed_perl="no"
32384 else
32385 as_fn_error $? "Could not determine the C compiler flags that were used to build $myperl. Either set the environment variable PERLPROG to a different Perl binary or use --disable-embedded-perl to turn off embedded Perl functionality altogether." "$LINENO" 5
32386 fi
32387 fi
32388 fi
32389
32390 # Linker flags
32391 #
32392 if test "x$embed_perl" != "xno" ; then
32393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl LDFLAGS" >&5
32394 printf %s "checking for Perl LDFLAGS... " >&6; }
32395 netsnmp_perlldopts=`$myperl -MExtUtils::Embed -e ldopts`
32396 if test "x$netsnmp_perlldopts" != "x" ; then
32397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_perlldopts" >&5
32398 printf "%s\n" "$netsnmp_perlldopts" >&6; }
32399 else
32400 if test "x$embed_perl" = "xtry" ; then
32401 embed_perl="no"
32402 else
32403 as_fn_error $? "Could not determine the linker options that were used to build $myperl. Either set the environment variable PERLPROG to a different Perl binary or use --disable-embedded-perl to turn off embedded Perl functionality altogether." "$LINENO" 5
32404 fi
32405 fi
32406 if test "x$enable_as_needed" != "xno" ; then
32407 # Just-in-time linking will embed the Perl library within
32408 # the Net-SNMP library (rather than the agent application)
32409 #
32410 PERLLDOPTS_FOR_LIBS="$netsnmp_perlldopts"
32411 # Perl ccdlflags (RPATH to libperl, hopefully)
32412 #
32413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl CCDLFLAGS" >&5
32414 printf %s "checking for Perl CCDLFLAGS... " >&6; }
32415
32416 netsnmp_perlccdlflags=`$myperl -V:ccdlflags | $myperl -n -e 'print $1 '"if (/^\s*ccdlflags='([^']+)';/);"`
32417
32418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_perlccdlflags" >&5
32419 printf "%s\n" "$netsnmp_perlccdlflags" >&6; }
32420 PERLLDOPTS_FOR_APPS="$netsnmp_perlccdlflags"
32421 else
32422 # Otherwise embed the Perl library within the application
32423 #
32424 PERLLDOPTS_FOR_LIBS="$netsnmp_perlldopts"
32425 # link *applications* against libperl
32426 PERLLDOPTS_FOR_APPS="$netsnmp_perlldopts"
32427 fi
32428 fi
32429
32430 # 'Perl_eval_pv' function (and equivalents)
32431 #
32432 if test "x$embed_perl" != "xno" ; then
32433 # Three possible versions of this routine:
32434 # eval_pv (to 5.003_97d)
32435 # perl_eval_pv (5.004/5.005)
32436 # Perl_eval_pv (from 5.6ff)
32437 #
32438 OLDLIBS="$LIBS"
32439 LIBS="$LIBS $netsnmp_perlldopts"
32440 ac_fn_c_check_func "$LINENO" "eval_pv" "ac_cv_func_eval_pv"
32441 if test "x$ac_cv_func_eval_pv" = xyes
32442 then :
32443 printf "%s\n" "#define HAVE_EVAL_PV 1" >>confdefs.h
32444
32445 fi
32446
32447 ac_fn_c_check_func "$LINENO" "perl_eval_pv" "ac_cv_func_perl_eval_pv"
32448 if test "x$ac_cv_func_perl_eval_pv" = xyes
32449 then :
32450
32451 printf "%s\n" "#define HAVE_PERL_EVAL_PV_LC 1" >>confdefs.h
32452
32453 fi
32454
32455 ac_fn_c_check_func "$LINENO" "Perl_eval_pv" "ac_cv_func_Perl_eval_pv"
32456 if test "x$ac_cv_func_Perl_eval_pv" = xyes
32457 then :
32458
32459 printf "%s\n" "#define HAVE_PERL_EVAL_PV_UC 1" >>confdefs.h
32460
32461 fi
32462
32463 LIBS="$OLDLIBS"
32464 #
32465 # Note that autoconf flattens case when defining tokens,
32466 # so we need to explicitly distinguish between the latter two.
32467
32468 if test "x$ac_cv_func_perl_eval_pv" != "xyes" -a "x$ac_cv_func_Perl_eval_pv" != "xyes" -a "x$ac_cv_func_eval_pv" != "xyes" ; then
32469 if test "x$embed_perl" = "xtry" ; then
32470 embed_perl="no"
32471 else
32472 as_fn_error $? "Could not find the eval_pv, perl_eval_pv or Perl_eval_pv functions needed for embedded Perl support. Either set the environment variable PERLPROG to a different perl binary or use --disable-embedded-perl to turn off embedded Perl functionality altogether." "$LINENO" 5
32473 fi
32474 else
32475 # Activate Embedded Perl
32476 #
32477
32478 printf "%s\n" "#define NETSNMP_EMBEDDED_PERL 1" >>confdefs.h
32479
32480 OTHERAGENTLIBOBJS="snmp_perl.o"
32481 OTHERAGENTLIBLOBJS="snmp_perl.lo"
32482 OTHERAGENTLIBLFTS="snmp_perl.ft"
32483
32484 EMBEDPERLINSTALL="embedperlinstall"
32485 EMBEDPERLUNINSTALL="embedperluninstall"
32486 embed_perl="yes"
32487 fi
32488 else
32489 EMBEDPERLINSTALL=""
32490 EMBEDPERLUNINSTALL=""
32491 embed_perl="no"
32492 fi
32493 fi
32494
32495
32496 ##
32497 # Report and configure results
32498 ##
32499
32500
32501
32502
32503
32504
32505 # Results of Embedded Perl checks
32506 #
32507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for potential embedded Perl support" >&5
32508 printf %s "checking for potential embedded Perl support... " >&6; }
32509 if test "x$embed_perl" != "xyes" ; then
32510
32511 cat >> configure-summary << EOF
32512 Embedded Perl support: disabled
32513 EOF
32514
32515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
32516 printf "%s\n" "disabled" >&6; }
32517 else
32518
32519 cat >> configure-summary << EOF
32520 Embedded Perl support: enabled
32521 EOF
32522
32523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
32524 printf "%s\n" "enabled" >&6; }
32525 fi
32526
32527 # Results of Perl Module checks
32528 #
32529 PERLTARGS=""
32530 PERLINSTALLTARGS=""
32531 PERLUNINSTALLTARGS=""
32532 PERLFEATURES=""
32533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can install the Perl modules" >&5
32534 printf %s "checking if we can install the Perl modules... " >&6; }
32535 if test "x$install_perl" = "xyes" ; then
32536 PERLTARGS="perlmodules"
32537 PERLINSTALLTARGS="perlinstall"
32538 PERLUNINSTALLTARGS="perluninstall"
32539 PERLFEATURES="perlfeatures"
32540 if test "x$embed_perl" = "xyes" ; then
32541
32542 cat >> configure-summary << EOF
32543 SNMP Perl modules: building -- embeddable
32544 EOF
32545
32546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes -- and embeddable" >&5
32547 printf "%s\n" "yes -- and embeddable" >&6; }
32548 else
32549
32550 cat >> configure-summary << EOF
32551 SNMP Perl modules: building -- not embeddable
32552 EOF
32553
32554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes -- not embeddable" >&5
32555 printf "%s\n" "yes -- not embeddable" >&6; }
32556 fi
32557 else
32558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32559 printf "%s\n" "no" >&6; }
32560
32561 cat >> configure-summary << EOF
32562 SNMP Perl modules: disabled
32563 EOF
32564
32565 fi
32566
32567
32568
32569
32570
32571
32572
32573 # Reset LIBS to pre-libwrap value (???)
32574 #
32575 AGENTLIBS=$LIBS
32576 LIBS=$NONAGENTLIBS
32577
32578
32579
32580 ##
32581 # Python checks
32582 ##
32583
32584 PYTHONTARGS=""
32585 PYTHONINSTALLTARGS=""
32586 PYTHONUNINSTALLTARGS=""
32587 PYTHONCLEANTARGS=""
32588 PYTHONFEATURES=""
32589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should install the python bindings" >&5
32590 printf %s "checking if we should install the python bindings... " >&6; }
32591 if test "x$install_python" = "xyes" ; then
32592 PYTHONTARGS="pythonmodules"
32593 PYTHONINSTALLTARGS="pythoninstall"
32594 PYTHONUNINSTALLTARGS="pythonuninstall"
32595 PYTHONCLEANTARGS="pythonclean"
32596 PYTHONFEATURES="pythonfeatures"
32597
32598 cat >> configure-summary << EOF
32599 SNMP Python modules: building for $PYTHONPROG
32600 EOF
32601
32602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32603 printf "%s\n" "yes" >&6; }
32604 else
32605
32606 cat >> configure-summary << EOF
32607 SNMP Python modules: disabled
32608 EOF
32609
32610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32611 printf "%s\n" "no" >&6; }
32612 fi
32613
32614
32615
32616
32617
32618
32619
32620
32621
32622 # -*- autoconf -*-
32623 #########################################
32624 ##
32625 # Miscellaneous checks
32626 ##
32627 #########################################
32628
32629 ##
32630 # Package characteristics
32631 # Authentication/Encryption support
32632 ##
32633
32634 # Check for PKCS11
32635 #
32636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for authentication support" >&5
32637 printf %s "checking for authentication support... " >&6; }
32638 useopenssl=no
32639 usepkcs=no
32640 if test "x$ac_cv_lib_pkcs11_C_Initialize" != "xyes" -o "x$ac_cv_header_security_cryptoki_h" != "xyes"; then
32641 if test "x$askedpkcs" = "xyes"; then
32642 as_fn_error $? "Asked to use PKCS11 but I couldn't find it." "$LINENO" 5
32643 fi
32644 else
32645 if test "x$askedpkcs" = "xyes"; then
32646 usepkcs=yes
32647 fi
32648 fi
32649
32650 # Check for OpenSSL
32651 #
32652 if test \( "x$ac_cv_func_EVP_md5" != "xyes" -a \
32653 "x$ac_cv_lib_EVP_md5" != "xyes" \) -o \
32654 "x$ac_cv_header_openssl_hmac_h" != "xyes"; then
32655 if test "x$askedopenssl" = "xyes"; then
32656 as_fn_error $? "Asked to use OpenSSL but I couldn't find it." "$LINENO" 5
32657 fi
32658 else
32659 if test "x$askedopenssl" = "xyes"; then
32660 useopenssl=yes
32661 elif test "x$tryopenssl" = "xyes"; then
32662 if test "x$usepkcs" != "xyes"; then
32663 useopenssl=yes
32664 fi
32665 fi
32666 fi
32667
32668 # Available authentication/encryption modes
32669 #
32670 if test "x$CRYPTO" = "xinternal" ; then
32671 authmodes="MD5 SHA1"
32672 if test "x$enable_privacy" != "xno" ; then
32673 encrmodes="DES AES"
32674 else
32675 encrmodes="disabled"
32676 fi
32677
32678 printf "%s\n" "#define NETSNMP_USE_INTERNAL_CRYPTO 1" >>confdefs.h
32679
32680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Internal Crypto Support" >&5
32681 printf "%s\n" "Internal Crypto Support" >&6; }
32682 elif test "x$useopenssl" != "xno" ; then
32683 authmodes="MD5 SHA1"
32684 if test "x$ac_cv_func_EVP_sha224" = xyes; then
32685 authmodes="$authmodes SHA224 SHA256"
32686 fi
32687 if test "x$ac_cv_func_EVP_sha384" = xyes; then
32688 authmodes="$authmodes SHA384 SHA512"
32689 fi
32690 if test "x$enable_privacy" != "xno" ; then
32691 if test "x$ac_cv_header_openssl_aes_h" = "xyes" ; then
32692 encrmodes="DES AES"
32693 else
32694 encrmodes="DES"
32695 fi
32696 else
32697 encrmodes="disabled"
32698 fi
32699 printf "%s\n" "#define NETSNMP_USE_OPENSSL 1" >>confdefs.h
32700
32701 LNETSNMPLIBS="$LNETSNMPLIBS $LIBCRYPTO"
32702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenSSL Support" >&5
32703 printf "%s\n" "OpenSSL Support" >&6; }
32704 elif test "x$usepkcs" != "xno" ; then
32705 authmodes="MD5 SHA1"
32706 if test "x$enable_privacy" != "xno" ; then
32707 encrmodes="DES"
32708 else
32709 encrmodes="disabled"
32710 fi
32711
32712 printf "%s\n" "#define NETSNMP_USE_PKCS11 1" >>confdefs.h
32713
32714 LNETSNMPLIBS="$LNETSNMPLIBS $LIBPKCS11"
32715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: PKCS11 Support" >&5
32716 printf "%s\n" "PKCS11 Support" >&6; }
32717 elif test "x$enable_md5" != "xno"; then
32718 authmodes="MD5"
32719 encrmodes=""
32720 printf "%s\n" "#define NETSNMP_USE_INTERNAL_MD5 1" >>confdefs.h
32721
32722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Internal MD5 Support" >&5
32723 printf "%s\n" "Internal MD5 Support" >&6; }
32724 fi
32725 if test "x$enable_md5" = "xno"; then
32726 authmodes=`echo $authmodes | $SED 's/MD5 *//;'`
32727 fi
32728 if test "x$ac_cv_func_AES_cfb128_encrypt" = xyes ||
32729 test "x$CRYPTO" = xinternal; then
32730 encrmodes="$encrmodes AES128"
32731 if test "x$aes_capable" = "xyes"; then
32732 encrmodes="$encrmodes AES192 AES192C AES256 AES256C"
32733 fi
32734 fi
32735
32736
32737
32738
32739 cat >> configure-summary << EOF
32740 Crypto support from: $CRYPTO
32741 EOF
32742
32743
32744 cat >> configure-summary << EOF
32745 Authentication support: $authmodes
32746 EOF
32747
32748
32749 cat >> configure-summary << EOF
32750 Encryption support: $encrmodes
32751 EOF
32752
32753
32754 if test "x$all_warnings" != "x"; then
32755
32756 cat >> configure-summary << EOF
32757 WARNING: $all_warnings
32758 EOF
32759
32760 fi
32761
32762 #
32763 # Check whether user wants DNSSEC local validation support
32764 #
32765 _libs=${LIBS}
32766 if ! test "x-$want_dnssec" = "x-no" ; then
32767 ac_fn_c_check_header_compile "$LINENO" "validator/validator-config.h" "ac_cv_header_validator_validator_config_h" "$ac_includes_default"
32768 if test "x$ac_cv_header_validator_validator_config_h" = xyes
32769 then :
32770 printf "%s\n" "#define HAVE_VALIDATOR_VALIDATOR_CONFIG_H 1" >>confdefs.h
32771
32772 fi
32773
32774 if test "$ac_cv_header_validator_validator_config_h" != yes; then
32775 as_fn_error $? "Can't find validator.h" "$LINENO" 5
32776 fi
32777 if test "x$ac_cv_lib_EVP_md5" != "xyes" -o \
32778 "x$ac_cv_header_openssl_hmac_h" != "xyes"; then
32779 as_fn_error $? "Couldn't find OpenSSL for local DNSSEC validation support." "$LINENO" 5
32780 fi
32781 LIBS="$LIBS $LIBCRYPTO"
32782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for query_send in -lsres" >&5
32783 printf %s "checking for query_send in -lsres... " >&6; }
32784 if test ${ac_cv_lib_sres_query_send+y}
32785 then :
32786 printf %s "(cached) " >&6
32787 else case e in #(
32788 e) ac_check_lib_save_LIBS=$LIBS
32789 LIBS="-lsres $LIBS"
32790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32791 /* end confdefs.h. */
32792
32793 /* Override any GCC internal prototype to avoid an error.
32794 Use char because int might match the return type of a GCC
32795 builtin and then its argument prototype would still apply.
32796 The 'extern "C"' is for builds by C++ compilers;
32797 although this is not generally supported in C code supporting it here
32798 has little cost and some practical benefit (sr 110532). */
32799 #ifdef __cplusplus
32800 extern "C"
32801 #endif
32802 char query_send (void);
32803 int
32804 main (void)
32805 {
32806 return query_send ();
32807 ;
32808 return 0;
32809 }
32810 _ACEOF
32811 if ac_fn_c_try_link "$LINENO"
32812 then :
32813 ac_cv_lib_sres_query_send=yes
32814 else case e in #(
32815 e) ac_cv_lib_sres_query_send=no ;;
32816 esac
32817 fi
32818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32819 conftest$ac_exeext conftest.$ac_ext
32820 LIBS=$ac_check_lib_save_LIBS ;;
32821 esac
32822 fi
32823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sres_query_send" >&5
32824 printf "%s\n" "$ac_cv_lib_sres_query_send" >&6; }
32825 if test "x$ac_cv_lib_sres_query_send" = xyes
32826 then :
32827 printf "%s\n" "#define HAVE_LIBSRES 1" >>confdefs.h
32828
32829 LIBS="-lsres $LIBS"
32830
32831 else case e in #(
32832 e) as_fn_error $? "Can't find libsres" "$LINENO" 5 ;;
32833 esac
32834 fi
32835
32836 VAL_LIBS="-lsres $LIBCRYPTO"
32837 LIBS="$LIBS -lsres"
32838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for p_val_status in -lval" >&5
32839 printf %s "checking for p_val_status in -lval... " >&6; }
32840 if test ${ac_cv_lib_val_p_val_status+y}
32841 then :
32842 printf %s "(cached) " >&6
32843 else case e in #(
32844 e) ac_check_lib_save_LIBS=$LIBS
32845 LIBS="-lval $LIBS"
32846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32847 /* end confdefs.h. */
32848
32849 /* Override any GCC internal prototype to avoid an error.
32850 Use char because int might match the return type of a GCC
32851 builtin and then its argument prototype would still apply.
32852 The 'extern "C"' is for builds by C++ compilers;
32853 although this is not generally supported in C code supporting it here
32854 has little cost and some practical benefit (sr 110532). */
32855 #ifdef __cplusplus
32856 extern "C"
32857 #endif
32858 char p_val_status (void);
32859 int
32860 main (void)
32861 {
32862 return p_val_status ();
32863 ;
32864 return 0;
32865 }
32866 _ACEOF
32867 if ac_fn_c_try_link "$LINENO"
32868 then :
32869 ac_cv_lib_val_p_val_status=yes
32870 else case e in #(
32871 e) ac_cv_lib_val_p_val_status=no ;;
32872 esac
32873 fi
32874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32875 conftest$ac_exeext conftest.$ac_ext
32876 LIBS=$ac_check_lib_save_LIBS ;;
32877 esac
32878 fi
32879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_val_p_val_status" >&5
32880 printf "%s\n" "$ac_cv_lib_val_p_val_status" >&6; }
32881 if test "x$ac_cv_lib_val_p_val_status" = xyes
32882 then :
32883 LIBS="$LIBS -lval"
32884 VAL_LIBS="$VAL_LIBS -lval"
32885 have_val_res_query=yes
32886 else case e in #(
32887 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_init in -lpthread" >&5
32888 printf %s "checking for pthread_rwlock_init in -lpthread... " >&6; }
32889 if test ${ac_cv_lib_pthread_pthread_rwlock_init+y}
32890 then :
32891 printf %s "(cached) " >&6
32892 else case e in #(
32893 e) ac_check_lib_save_LIBS=$LIBS
32894 LIBS="-lpthread $LIBS"
32895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32896 /* end confdefs.h. */
32897
32898 /* Override any GCC internal prototype to avoid an error.
32899 Use char because int might match the return type of a GCC
32900 builtin and then its argument prototype would still apply.
32901 The 'extern "C"' is for builds by C++ compilers;
32902 although this is not generally supported in C code supporting it here
32903 has little cost and some practical benefit (sr 110532). */
32904 #ifdef __cplusplus
32905 extern "C"
32906 #endif
32907 char pthread_rwlock_init (void);
32908 int
32909 main (void)
32910 {
32911 return pthread_rwlock_init ();
32912 ;
32913 return 0;
32914 }
32915 _ACEOF
32916 if ac_fn_c_try_link "$LINENO"
32917 then :
32918 ac_cv_lib_pthread_pthread_rwlock_init=yes
32919 else case e in #(
32920 e) ac_cv_lib_pthread_pthread_rwlock_init=no ;;
32921 esac
32922 fi
32923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32924 conftest$ac_exeext conftest.$ac_ext
32925 LIBS=$ac_check_lib_save_LIBS ;;
32926 esac
32927 fi
32928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlock_init" >&5
32929 printf "%s\n" "$ac_cv_lib_pthread_pthread_rwlock_init" >&6; }
32930 if test "x$ac_cv_lib_pthread_pthread_rwlock_init" = xyes
32931 then :
32932 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
32933
32934 LIBS="-lpthread $LIBS"
32935
32936 fi
32937
32938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for p_val_status in -lval-threads" >&5
32939 printf %s "checking for p_val_status in -lval-threads... " >&6; }
32940 if test ${ac_cv_lib_val_threads_p_val_status+y}
32941 then :
32942 printf %s "(cached) " >&6
32943 else case e in #(
32944 e) ac_check_lib_save_LIBS=$LIBS
32945 LIBS="-lval-threads $LIBS"
32946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32947 /* end confdefs.h. */
32948
32949 /* Override any GCC internal prototype to avoid an error.
32950 Use char because int might match the return type of a GCC
32951 builtin and then its argument prototype would still apply.
32952 The 'extern "C"' is for builds by C++ compilers;
32953 although this is not generally supported in C code supporting it here
32954 has little cost and some practical benefit (sr 110532). */
32955 #ifdef __cplusplus
32956 extern "C"
32957 #endif
32958 char p_val_status (void);
32959 int
32960 main (void)
32961 {
32962 return p_val_status ();
32963 ;
32964 return 0;
32965 }
32966 _ACEOF
32967 if ac_fn_c_try_link "$LINENO"
32968 then :
32969 ac_cv_lib_val_threads_p_val_status=yes
32970 else case e in #(
32971 e) ac_cv_lib_val_threads_p_val_status=no ;;
32972 esac
32973 fi
32974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32975 conftest$ac_exeext conftest.$ac_ext
32976 LIBS=$ac_check_lib_save_LIBS ;;
32977 esac
32978 fi
32979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_val_threads_p_val_status" >&5
32980 printf "%s\n" "$ac_cv_lib_val_threads_p_val_status" >&6; }
32981 if test "x$ac_cv_lib_val_threads_p_val_status" = xyes
32982 then :
32983 have_val_res_query=yes
32984 LIBS="-lval-threads $LIBS"
32985 VAL_LIBS="-lval-threads -lpthread $VAL_LIBS"
32986 LIBVAL_SUFFIX="-threads"
32987 else case e in #(
32988 e) as_fn_error $? "Can't find libval or libval-threads" "$LINENO" 5 ;;
32989 esac
32990 fi
32991
32992 ;;
32993 esac
32994 fi
32995
32996
32997 printf "%s\n" "#define DNSSEC_LOCAL_VALIDATION 1" >>confdefs.h
32998
32999 DNSSEC="enabled"
33000 else
33001 DNSSEC="disabled"
33002 fi
33003
33004 LIBS=${_libs}
33005
33006
33007
33008 cat >> configure-summary << EOF
33009 Local DNSSEC validation: $DNSSEC
33010 EOF
33011
33012
33013
33014
33015 # -*- autoconf -*-
33016 #########################################
33017 ##
33018 # Checks for types
33019 ##
33020 #########################################
33021
33022 ##
33023 # Standard checks:
33024 ##
33025
33026 # Checks for typedefs, structures, and compiler characteristics.
33027 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
33028 if test "x$ac_cv_type_off_t" = xyes
33029 then :
33030
33031 else case e in #(
33032 e)
33033 printf "%s\n" "#define off_t long int" >>confdefs.h
33034 ;;
33035 esac
33036 fi
33037
33038
33039 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
33040 "
33041 if test "x$ac_cv_type_pid_t" = xyes
33042 then :
33043
33044 else case e in #(
33045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33046 /* end confdefs.h. */
33047
33048 #if defined _WIN64 && !defined __CYGWIN__
33049 LLP64
33050 #endif
33051
33052 int
33053 main (void)
33054 {
33055
33056 ;
33057 return 0;
33058 }
33059
33060 _ACEOF
33061 if ac_fn_c_try_compile "$LINENO"
33062 then :
33063 ac_pid_type='int'
33064 else case e in #(
33065 e) ac_pid_type='__int64' ;;
33066 esac
33067 fi
33068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33069
33070 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
33071
33072 ;;
33073 esac
33074 fi
33075
33076
33077
33078
33079 # Obsolete code to be removed.
33080 if test $ac_cv_header_sys_time_h = yes; then
33081
33082 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
33083
33084 fi
33085 # End of obsolete code.
33086
33087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33088 /* end confdefs.h. */
33089
33090 int
33091 main (void)
33092 {
33093 int x __attribute__((deprecated))
33094 ;
33095 return 0;
33096 }
33097 _ACEOF
33098 if ac_fn_c_try_compile "$LINENO"
33099 then :
33100 attr="__attribute__((deprecated))"
33101 else case e in #(
33102 e) attr="/**/" ;;
33103 esac
33104 fi
33105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33106
33107 printf "%s\n" "#define NETSNMP_ATTRIBUTE_DEPRECATED ${attr}" >>confdefs.h
33108
33109
33110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33111 /* end confdefs.h. */
33112
33113 int
33114 main (void)
33115 {
33116 int x __attribute__((unused))
33117 ;
33118 return 0;
33119 }
33120 _ACEOF
33121 if ac_fn_c_try_compile "$LINENO"
33122 then :
33123 attr="__attribute__((unused))"
33124 else case e in #(
33125 e) attr="/**/" ;;
33126 esac
33127 fi
33128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33129
33130 printf "%s\n" "#define NETSNMP_ATTRIBUTE_UNUSED ${attr}" >>confdefs.h
33131
33132
33133
33134 ##
33135 # More complex checks:
33136 ##
33137
33138 # Check for 'socklen_t', 'in_addr_t' and 'ssize_t'.
33139 #
33140 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
33141 #if defined(HAVE_WINSOCK2_H) && defined(HAVE_WS2TCPIP_H)
33142 #include <winsock2.h>
33143 #include <ws2tcpip.h>
33144 #endif
33145 #include <stdlib.h>
33146 #include <stddef.h>
33147 #ifdef HAVE_SYS_TYPES_H
33148 #include <sys/types.h>
33149 #endif
33150 #ifdef HAVE_SYS_SOCKET_H
33151 #include <sys/socket.h>
33152 #endif
33153 #ifdef HAVE_NETINET_IN_H
33154 #include <netinet/in.h>
33155 #endif
33156 "
33157 if test "x$ac_cv_type_socklen_t" = xyes
33158 then :
33159
33160 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
33161
33162
33163 fi
33164 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
33165 #if defined(HAVE_WINSOCK2_H) && defined(HAVE_WS2TCPIP_H)
33166 #include <winsock2.h>
33167 #include <ws2tcpip.h>
33168 #endif
33169 #include <stdlib.h>
33170 #include <stddef.h>
33171 #ifdef HAVE_SYS_TYPES_H
33172 #include <sys/types.h>
33173 #endif
33174 #ifdef HAVE_SYS_SOCKET_H
33175 #include <sys/socket.h>
33176 #endif
33177 #ifdef HAVE_NETINET_IN_H
33178 #include <netinet/in.h>
33179 #endif
33180 "
33181 if test "x$ac_cv_type_in_addr_t" = xyes
33182 then :
33183
33184 printf "%s\n" "#define HAVE_IN_ADDR_T 1" >>confdefs.h
33185
33186
33187 fi
33188 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
33189 #if defined(HAVE_WINSOCK2_H) && defined(HAVE_WS2TCPIP_H)
33190 #include <winsock2.h>
33191 #include <ws2tcpip.h>
33192 #endif
33193 #include <stdlib.h>
33194 #include <stddef.h>
33195 #ifdef HAVE_SYS_TYPES_H
33196 #include <sys/types.h>
33197 #endif
33198 #ifdef HAVE_SYS_SOCKET_H
33199 #include <sys/socket.h>
33200 #endif
33201 #ifdef HAVE_NETINET_IN_H
33202 #include <netinet/in.h>
33203 #endif
33204 "
33205 if test "x$ac_cv_type_ssize_t" = xyes
33206 then :
33207
33208 printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
33209
33210
33211 fi
33212
33213
33214 if test "x$ac_cv_type_in_addr_t" != xyes; then
33215
33216 printf "%s\n" "#define in_addr_t unsigned long" >>confdefs.h
33217
33218 fi
33219
33220 #
33221 # Determine the type of fd_set::fds_bits on Unix systems.
33222 #
33223
33224 netsnmp_save_CFLAGS=$CFLAGS
33225 CFLAGS="$CFLAGS -Werror"
33226
33227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the type of fd_set::fds_bits" >&5
33228 printf %s "checking for the type of fd_set::fds_bits... " >&6; }
33229 for type in __fd_mask __int32_t long 'unsigned long' unknown; do
33230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33231 /* end confdefs.h. */
33232
33233 #include <sys/select.h>
33234 #include <stddef.h>
33235 #include <string.h>
33236
33237 int
33238 main (void)
33239 {
33240
33241 fd_set set;
33242 memset(&set, 0, sizeof(set));
33243 {
33244 ${type} *fds_array = set.fds_bits;
33245 return fds_array != NULL;
33246 }
33247
33248 ;
33249 return 0;
33250 }
33251 _ACEOF
33252 if ac_fn_c_try_compile "$LINENO"
33253 then :
33254 break
33255 fi
33256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33257 done
33258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${type}" >&5
33259 printf "%s\n" "${type}" >&6; }
33260
33261 printf "%s\n" "#define NETSNMP_FD_MASK_TYPE ${type}" >>confdefs.h
33262
33263
33264 CFLAGS=$netsnmp_save_CFLAGS
33265
33266 #
33267 # Check for the type of the fifth argument of select()
33268 #
33269
33270 netsnmp_save_CFLAGS=$CFLAGS
33271 CFLAGS="$CFLAGS -Werror"
33272
33273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the type of the fifth argument of select()" >&5
33274 printf %s "checking for the type of the fifth argument of select()... " >&6; }
33275 arg_type="struct timeval"
33276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33277 /* end confdefs.h. */
33278
33279 int
33280 main (void)
33281 {
33282
33283 ;
33284 return 0;
33285 }
33286 _ACEOF
33287 if ac_fn_c_try_compile "$LINENO"
33288 then :
33289
33290 # The compiler supports -Werror.
33291 for t in "struct timeval" "struct __ms_timeval"; do
33292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33293 /* end confdefs.h. */
33294
33295 #if defined(HAVE_WINSOCK2_H) && defined(HAVE_WS2TCPIP_H)
33296 #include <winsock2.h>
33297 #include <ws2tcpip.h>
33298 #else
33299 #ifdef HAVE_SYS_SELECT_H
33300 #include <sys/select.h>
33301 #endif
33302 #ifdef HAVE_SYS_TIME_H
33303 #include <sys/time.h>
33304 #endif
33305 #endif
33306 #include <stddef.h>
33307
33308 int
33309 main (void)
33310 {
33311 return select(0, NULL, NULL, NULL, ($t *)NULL)
33312 ;
33313 return 0;
33314 }
33315 _ACEOF
33316 if ac_fn_c_try_compile "$LINENO"
33317 then :
33318 arg_type=$t; break
33319 fi
33320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33321 done
33322
33323 else case e in #(
33324 e)
33325 : # The compiler does not support -Werror.
33326 ;;
33327 esac
33328 fi
33329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${arg_type}" >&5
33331 printf "%s\n" "${arg_type}" >&6; }
33332
33333 printf "%s\n" "#define NETSNMP_SELECT_TIMEVAL ${arg_type}" >>confdefs.h
33334
33335
33336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the type of the third argument of ioctlsocket()" >&5
33337 printf %s "checking for the type of the third argument of ioctlsocket()... " >&6; }
33338 arg_type=unknown
33339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33340 /* end confdefs.h. */
33341
33342 int
33343 main (void)
33344 {
33345
33346 ;
33347 return 0;
33348 }
33349 _ACEOF
33350 if ac_fn_c_try_compile "$LINENO"
33351 then :
33352
33353 # The compiler supports -Werror.
33354 for t in "unsigned int" "unsigned long"; do
33355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33356 /* end confdefs.h. */
33357
33358 #if defined(HAVE_WINSOCK2_H) && defined(HAVE_WS2TCPIP_H)
33359 #include <winsock2.h>
33360 #include <ws2tcpip.h>
33361 #else
33362 #ifdef HAVE_SYS_SELECT_H
33363 #include <sys/select.h>
33364 #endif
33365 #endif
33366 #include <stddef.h>
33367
33368 int
33369 main (void)
33370 {
33371 return ioctlsocket(0, 0, ($t *)NULL)
33372 ;
33373 return 0;
33374 }
33375 _ACEOF
33376 if ac_fn_c_try_compile "$LINENO"
33377 then :
33378 arg_type=$t; break
33379 fi
33380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33381 done
33382
33383 else case e in #(
33384 e)
33385 : # The compiler does not support -Werror.
33386 ;;
33387 esac
33388 fi
33389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${arg_type}" >&5
33391 printf "%s\n" "${arg_type}" >&6; }
33392
33393 printf "%s\n" "#define NETSNMP_IOCTLSOCKET_ARG ${arg_type}" >>confdefs.h
33394
33395
33396 CFLAGS=$netsnmp_save_CFLAGS
33397
33398 # -*- autoconf -*-
33399 #########################################
33400 ##
33401 # Miscellaneous checks
33402 ##
33403 #########################################
33404
33405 ##
33406 # Compilation characteristics
33407 ##
33408
33409
33410 cat >confcache <<\_ACEOF
33411 # This file is a shell script that caches the results of configure
33412 # tests run on this system so they can be shared between configure
33413 # scripts and configure runs, see configure's option --config-cache.
33414 # It is not useful on other systems. If it contains results you don't
33415 # want to keep, you may remove or edit it.
33416 #
33417 # config.status only pays attention to the cache file if you give it
33418 # the --recheck option to rerun configure.
33419 #
33420 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
33421 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
33422 # following values.
33423
33424 _ACEOF
33425
33426 # The following way of writing the cache mishandles newlines in values,
33427 # but we know of no workaround that is simple, portable, and efficient.
33428 # So, we kill variables containing newlines.
33429 # Ultrix sh set writes to stderr and can't be redirected directly,
33430 # and sets the high bit in the cache file unless we assign to the vars.
33431 (
33432 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33433 eval ac_val=\$$ac_var
33434 case $ac_val in #(
33435 *${as_nl}*)
33436 case $ac_var in #(
33437 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33438 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33439 esac
33440 case $ac_var in #(
33441 _ | IFS | as_nl) ;; #(
33442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33443 *) { eval $ac_var=; unset $ac_var;} ;;
33444 esac ;;
33445 esac
33446 done
33447
33448 (set) 2>&1 |
33449 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33450 *${as_nl}ac_space=\ *)
33451 # 'set' does not quote correctly, so add quotes: double-quote
33452 # substitution turns \\\\ into \\, and sed turns \\ into \.
33453 sed -n \
33454 "s/'/'\\\\''/g;
33455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33456 ;; #(
33457 *)
33458 # 'set' quotes correctly as required by POSIX, so do not add quotes.
33459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33460 ;;
33461 esac |
33462 sort
33463 ) |
33464 sed '
33465 /^ac_cv_env_/b end
33466 t clear
33467 :clear
33468 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
33469 t end
33470 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33471 :end' >>confcache
33472 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33473 if test -w "$cache_file"; then
33474 if test "x$cache_file" != "x/dev/null"; then
33475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33476 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
33477 if test ! -f "$cache_file" || test -h "$cache_file"; then
33478 cat confcache >"$cache_file"
33479 else
33480 case $cache_file in #(
33481 */* | ?:*)
33482 mv -f confcache "$cache_file"$$ &&
33483 mv -f "$cache_file"$$ "$cache_file" ;; #(
33484 *)
33485 mv -f confcache "$cache_file" ;;
33486 esac
33487 fi
33488 fi
33489 else
33490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33491 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
33492 fi
33493 fi
33494 rm -f confcache
33495 # -*- autoconf -*-
33496 #########################################
33497 ##
33498 # Checks for library functions.
33499 ##
33500 #########################################
33501 #
33502 # Portions of this file are copyrighted by:
33503 # Copyright (c) 2016 VMware, Inc. All rights reserved.
33504 # Use is subject to license terms specified in the COPYING file
33505 # distributed with the Net-SNMP package.
33506
33507 ##
33508 # Standard checks:
33509 ##
33510 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
33511 if test "x$ac_cv_type_size_t" = xyes
33512 then :
33513
33514 else case e in #(
33515 e)
33516 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
33517 ;;
33518 esac
33519 fi
33520
33521 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
33522 # for constant arguments. Useless!
33523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
33524 printf %s "checking for working alloca.h... " >&6; }
33525 if test ${ac_cv_working_alloca_h+y}
33526 then :
33527 printf %s "(cached) " >&6
33528 else case e in #(
33529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33530 /* end confdefs.h. */
33531 #include <alloca.h>
33532 int
33533 main (void)
33534 {
33535 char *p = (char *) alloca (2 * sizeof (int));
33536 if (p) return 0;
33537 ;
33538 return 0;
33539 }
33540 _ACEOF
33541 if ac_fn_c_try_link "$LINENO"
33542 then :
33543 ac_cv_working_alloca_h=yes
33544 else case e in #(
33545 e) ac_cv_working_alloca_h=no ;;
33546 esac
33547 fi
33548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33549 conftest$ac_exeext conftest.$ac_ext ;;
33550 esac
33551 fi
33552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
33553 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
33554 if test $ac_cv_working_alloca_h = yes; then
33555
33556 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
33557
33558 fi
33559
33560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
33561 printf %s "checking for alloca... " >&6; }
33562 if test ${ac_cv_func_alloca_works+y}
33563 then :
33564 printf %s "(cached) " >&6
33565 else case e in #(
33566 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
33567 if test "$ac_cv_func_alloca_works" != yes
33568 then :
33569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33570 /* end confdefs.h. */
33571 #include <stdlib.h>
33572 #include <stddef.h>
33573 #ifndef alloca
33574 # ifdef __GNUC__
33575 # define alloca __builtin_alloca
33576 # elif defined _MSC_VER
33577 # include <malloc.h>
33578 # define alloca _alloca
33579 # else
33580 # ifdef __cplusplus
33581 extern "C"
33582 # endif
33583 void *alloca (size_t);
33584 # endif
33585 #endif
33586
33587 int
33588 main (void)
33589 {
33590 char *p = (char *) alloca (1);
33591 if (p) return 0;
33592 ;
33593 return 0;
33594 }
33595 _ACEOF
33596 if ac_fn_c_try_link "$LINENO"
33597 then :
33598 ac_cv_func_alloca_works=yes
33599 fi
33600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33601 conftest$ac_exeext conftest.$ac_ext
33602 fi ;;
33603 esac
33604 fi
33605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
33606 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
33607
33608 if test $ac_cv_func_alloca_works = yes; then
33609
33610 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
33611
33612 else
33613 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
33614 # that cause trouble. Some versions do not even contain alloca or
33615 # contain a buggy version. If you still want to use their alloca,
33616 # use ar to extract alloca.o from them instead of compiling alloca.c.
33617
33618 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
33619
33620 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
33621
33622
33623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
33624 printf %s "checking stack direction for C alloca... " >&6; }
33625 if test ${ac_cv_c_stack_direction+y}
33626 then :
33627 printf %s "(cached) " >&6
33628 else case e in #(
33629 e) if test "$cross_compiling" = yes
33630 then :
33631 ac_cv_c_stack_direction=0
33632 else case e in #(
33633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33634 /* end confdefs.h. */
33635 $ac_includes_default
33636 int
33637 find_stack_direction (int *addr, int depth)
33638 {
33639 int dir, dummy = 0;
33640 if (! addr)
33641 addr = &dummy;
33642 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
33643 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
33644 return dir + dummy;
33645 }
33646
33647 int
33648 main (int argc, char **argv)
33649 {
33650 return find_stack_direction (0, argc + !argv + 20) < 0;
33651 }
33652 _ACEOF
33653 if ac_fn_c_try_run "$LINENO"
33654 then :
33655 ac_cv_c_stack_direction=1
33656 else case e in #(
33657 e) ac_cv_c_stack_direction=-1 ;;
33658 esac
33659 fi
33660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33661 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
33662 esac
33663 fi
33664 ;;
33665 esac
33666 fi
33667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
33668 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
33669 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
33670
33671
33672 fi
33673 # alloca()
33674
33675
33676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
33677 printf %s "checking return type of signal handlers... " >&6; }
33678 if test ${ac_cv_type_signal+y}
33679 then :
33680 printf %s "(cached) " >&6
33681 else case e in #(
33682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33683 /* end confdefs.h. */
33684 #include <sys/types.h>
33685 #include <signal.h>
33686
33687 int
33688 main (void)
33689 {
33690 return *(signal (0, 0)) (0) == 1;
33691 ;
33692 return 0;
33693 }
33694 _ACEOF
33695 if ac_fn_c_try_compile "$LINENO"
33696 then :
33697 ac_cv_type_signal=int
33698 else case e in #(
33699 e) ac_cv_type_signal=void ;;
33700 esac
33701 fi
33702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
33703 esac
33704 fi
33705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
33706 printf "%s\n" "$ac_cv_type_signal" >&6; }
33707
33708 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
33709
33710
33711
33712 ##
33713 # Stand-alone function checks:
33714 ##
33715 # Core:
33716 ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand"
33717 if test "x$ac_cv_func_rand" = xyes
33718 then :
33719 printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h
33720
33721 fi
33722 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
33723 if test "x$ac_cv_func_random" = xyes
33724 then :
33725 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
33726
33727 fi
33728 ac_fn_c_check_func "$LINENO" "srand" "ac_cv_func_srand"
33729 if test "x$ac_cv_func_srand" = xyes
33730 then :
33731 printf "%s\n" "#define HAVE_SRAND 1" >>confdefs.h
33732
33733 fi
33734 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
33735 if test "x$ac_cv_func_srandom" = xyes
33736 then :
33737 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
33738
33739 fi
33740 ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
33741 if test "x$ac_cv_func_lrand48" = xyes
33742 then :
33743 printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h
33744
33745 fi
33746 ac_fn_c_check_func "$LINENO" "srand48" "ac_cv_func_srand48"
33747 if test "x$ac_cv_func_srand48" = xyes
33748 then :
33749 printf "%s\n" "#define HAVE_SRAND48 1" >>confdefs.h
33750
33751 fi
33752
33753
33754 # Library:
33755 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
33756 if test "x$ac_cv_func_asprintf" = xyes
33757 then :
33758 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
33759
33760 fi
33761 ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
33762 if test "x$ac_cv_func_closedir" = xyes
33763 then :
33764 printf "%s\n" "#define HAVE_CLOSEDIR 1" >>confdefs.h
33765
33766 fi
33767 ac_fn_c_check_func "$LINENO" "fgetc_unlocked" "ac_cv_func_fgetc_unlocked"
33768 if test "x$ac_cv_func_fgetc_unlocked" = xyes
33769 then :
33770 printf "%s\n" "#define HAVE_FGETC_UNLOCKED 1" >>confdefs.h
33771
33772 fi
33773 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
33774 if test "x$ac_cv_func_flockfile" = xyes
33775 then :
33776 printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h
33777
33778 fi
33779 ac_fn_c_check_func "$LINENO" "funlockfile" "ac_cv_func_funlockfile"
33780 if test "x$ac_cv_func_funlockfile" = xyes
33781 then :
33782 printf "%s\n" "#define HAVE_FUNLOCKFILE 1" >>confdefs.h
33783
33784 fi
33785 ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname"
33786 if test "x$ac_cv_func_getipnodebyname" = xyes
33787 then :
33788 printf "%s\n" "#define HAVE_GETIPNODEBYNAME 1" >>confdefs.h
33789
33790 fi
33791 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
33792 if test "x$ac_cv_func_gettimeofday" = xyes
33793 then :
33794 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
33795
33796 fi
33797 ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin"
33798 if test "x$ac_cv_func_getlogin" = xyes
33799 then :
33800 printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h
33801
33802 fi
33803 ac_fn_c_check_func "$LINENO" "getnetgrent" "ac_cv_func_getnetgrent"
33804 if test "x$ac_cv_func_getnetgrent" = xyes
33805 then :
33806 printf "%s\n" "#define HAVE_GETNETGRENT 1" >>confdefs.h
33807
33808 fi
33809 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
33810 if test "x$ac_cv_func_if_nametoindex" = xyes
33811 then :
33812 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
33813
33814 fi
33815 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
33816 if test "x$ac_cv_func_malloc_trim" = xyes
33817 then :
33818 printf "%s\n" "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
33819
33820 fi
33821 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
33822 if test "x$ac_cv_func_mkstemp" = xyes
33823 then :
33824 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
33825
33826 fi
33827 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
33828 if test "x$ac_cv_func_opendir" = xyes
33829 then :
33830 printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h
33831
33832 fi
33833 ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
33834 if test "x$ac_cv_func_readdir" = xyes
33835 then :
33836 printf "%s\n" "#define HAVE_READDIR 1" >>confdefs.h
33837
33838 fi
33839 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
33840 if test "x$ac_cv_func_regcomp" = xyes
33841 then :
33842 printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
33843
33844 fi
33845 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
33846 if test "x$ac_cv_func_setenv" = xyes
33847 then :
33848 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
33849
33850 fi
33851 ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
33852 if test "x$ac_cv_func_setitimer" = xyes
33853 then :
33854 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h
33855
33856 fi
33857 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
33858 if test "x$ac_cv_func_setlocale" = xyes
33859 then :
33860 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
33861
33862 fi
33863 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
33864 if test "x$ac_cv_func_setsid" = xyes
33865 then :
33866 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
33867
33868 fi
33869 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
33870 if test "x$ac_cv_func_snprintf" = xyes
33871 then :
33872 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
33873
33874 fi
33875 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
33876 if test "x$ac_cv_func_strcasestr" = xyes
33877 then :
33878 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
33879
33880 fi
33881 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
33882 if test "x$ac_cv_func_strdup" = xyes
33883 then :
33884 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
33885
33886 fi
33887 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
33888 if test "x$ac_cv_func_strerror" = xyes
33889 then :
33890 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
33891
33892 fi
33893 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
33894 if test "x$ac_cv_func_strncasecmp" = xyes
33895 then :
33896 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
33897
33898 fi
33899 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
33900 if test "x$ac_cv_func_sysconf" = xyes
33901 then :
33902 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
33903
33904 fi
33905 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
33906 if test "x$ac_cv_func_times" = xyes
33907 then :
33908 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
33909
33910 fi
33911 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
33912 if test "x$ac_cv_func_vsnprintf" = xyes
33913 then :
33914 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
33915
33916 fi
33917
33918
33919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _NSGetArgv()" >&5
33920 printf %s "checking for _NSGetArgv()... " >&6; }
33921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33922 /* end confdefs.h. */
33923 #include <crt_externs.h>
33924 int
33925 main (void)
33926 {
33927 return _NSGetArgv
33928 ;
33929 return 0;
33930 }
33931 _ACEOF
33932 if ac_fn_c_try_link "$LINENO"
33933 then :
33934
33935 printf "%s\n" "#define HAVE__NSGETARGV 1" >>confdefs.h
33936
33937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33938 printf "%s\n" "yes" >&6; }
33939
33940 else case e in #(
33941 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33942 printf "%s\n" "no" >&6; }
33943 ;;
33944 esac
33945 fi
33946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33947 conftest$ac_exeext conftest.$ac_ext
33948
33949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _NSGetExecutablePath()" >&5
33950 printf %s "checking for _NSGetExecutablePath()... " >&6; }
33951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33952 /* end confdefs.h. */
33953 #include <mach-o/dyld.h>
33954 int
33955 main (void)
33956 {
33957 return _NSGetExecutablePath
33958 ;
33959 return 0;
33960 }
33961 _ACEOF
33962 if ac_fn_c_try_link "$LINENO"
33963 then :
33964
33965 printf "%s\n" "#define HAVE__NSGETEXECUTABLEPATH 1" >>confdefs.h
33966
33967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33968 printf "%s\n" "yes" >&6; }
33969
33970 else case e in #(
33971 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33972 printf "%s\n" "no" >&6; }
33973 ;;
33974 esac
33975 fi
33976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33977 conftest$ac_exeext conftest.$ac_ext
33978
33979 # IPv4/IPv6 function checks. AC_CHECK_FUNC() can't find these on MinGW
33980 # since these functions have the __cdecl calling convention on MinGW.
33981 case x$with_socklib in
33982 xwinsock2)
33983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33984 /* end confdefs.h. */
33985 #include <winsock2.h>
33986 int
33987 main (void)
33988 {
33989 closesocket(0);
33990 ;
33991 return 0;
33992 }
33993 _ACEOF
33994 if ac_fn_c_try_link "$LINENO"
33995 then :
33996 ac_cv_func_closesocket=yes
33997 printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
33998
33999 fi
34000 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34001 conftest$ac_exeext conftest.$ac_ext
34002
34003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34004 /* end confdefs.h. */
34005 #include <ws2tcpip.h>
34006 int
34007 main (void)
34008 {
34009 gai_strerror(0);
34010 ;
34011 return 0;
34012 }
34013 _ACEOF
34014 if ac_fn_c_try_link "$LINENO"
34015 then :
34016 ac_cv_func_gai_strerror=yes
34017 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
34018
34019 fi
34020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34021 conftest$ac_exeext conftest.$ac_ext
34022
34023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34024 /* end confdefs.h. */
34025 #include <ws2tcpip.h>
34026 int
34027 main (void)
34028 {
34029 getaddrinfo(NULL, NULL, NULL, NULL);
34030 ;
34031 return 0;
34032 }
34033 _ACEOF
34034 if ac_fn_c_try_link "$LINENO"
34035 then :
34036 ac_cv_func_getaddrinfo=yes
34037 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
34038
34039 fi
34040 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34041 conftest$ac_exeext conftest.$ac_ext
34042
34043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34044 /* end confdefs.h. */
34045 #include <winsock2.h>
34046 int
34047 main (void)
34048 {
34049 gethostbyname(NULL);
34050 ;
34051 return 0;
34052 }
34053 _ACEOF
34054 if ac_fn_c_try_link "$LINENO"
34055 then :
34056 ac_cv_func_gethostbyname=yes
34057 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
34058
34059 fi
34060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34061 conftest$ac_exeext conftest.$ac_ext
34062
34063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34064 /* end confdefs.h. */
34065 #include <winsock2.h>
34066 int
34067 main (void)
34068 {
34069 gethostbyaddr(NULL);
34070 ;
34071 return 0;
34072 }
34073 _ACEOF
34074 if ac_fn_c_try_link "$LINENO"
34075 then :
34076 ac_cv_func_gethostbyaddr=yes
34077 printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
34078
34079 fi
34080 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34081 conftest$ac_exeext conftest.$ac_ext
34082
34083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34084 /* end confdefs.h. */
34085 #include <winsock2.h>
34086 int
34087 main (void)
34088 {
34089 gethostname(NULL, 0);
34090 ;
34091 return 0;
34092 }
34093 _ACEOF
34094 if ac_fn_c_try_link "$LINENO"
34095 then :
34096 ac_cv_func_gethostname=yes
34097 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
34098
34099 fi
34100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34101 conftest$ac_exeext conftest.$ac_ext
34102 ;;
34103
34104 *)
34105 # Do not use fork() nor any related function when using Windows sockets
34106 # because Windows sockets are not compatible with fork().
34107 ac_fn_c_check_func "$LINENO" "execv" "ac_cv_func_execv"
34108 if test "x$ac_cv_func_execv" = xyes
34109 then :
34110 printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h
34111
34112 fi
34113 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
34114 if test "x$ac_cv_func_fork" = xyes
34115 then :
34116 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
34117
34118 fi
34119 ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
34120 if test "x$ac_cv_func_signal" = xyes
34121 then :
34122 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
34123
34124 fi
34125 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
34126 if test "x$ac_cv_func_sigset" = xyes
34127 then :
34128 printf "%s\n" "#define HAVE_SIGSET 1" >>confdefs.h
34129
34130 fi
34131 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
34132 if test "x$ac_cv_func_uname" = xyes
34133 then :
34134 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
34135
34136 fi
34137 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
34138 if test "x$ac_cv_func_posix_spawn" = xyes
34139 then :
34140 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
34141
34142 fi
34143 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
34144 if test "x$ac_cv_func_waitpid" = xyes
34145 then :
34146 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
34147
34148 fi
34149 ac_fn_c_check_func "$LINENO" "closesocket" "ac_cv_func_closesocket"
34150 if test "x$ac_cv_func_closesocket" = xyes
34151 then :
34152 printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
34153
34154 fi
34155 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
34156 if test "x$ac_cv_func_gai_strerror" = xyes
34157 then :
34158 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
34159
34160 fi
34161 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
34162 if test "x$ac_cv_func_getaddrinfo" = xyes
34163 then :
34164 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
34165
34166 fi
34167 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
34168 if test "x$ac_cv_func_gethostbyname" = xyes
34169 then :
34170 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
34171
34172 fi
34173 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
34174 if test "x$ac_cv_func_gethostbyname2" = xyes
34175 then :
34176 printf "%s\n" "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
34177
34178 fi
34179 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
34180 if test "x$ac_cv_func_gethostname" = xyes
34181 then :
34182 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
34183
34184 fi
34185 ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr"
34186 if test "x$ac_cv_func_gethostbyaddr" = xyes
34187 then :
34188 printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
34189
34190 fi
34191 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
34192 if test "x$ac_cv_func_inet_ntop" = xyes
34193 then :
34194 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
34195
34196 fi
34197 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
34198 if test "x$ac_cv_func_inet_pton" = xyes
34199 then :
34200 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
34201
34202 fi
34203
34204 ;;
34205 esac
34206
34207 # Check for MSVC functions.
34208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _beginthreadex()" >&5
34209 printf %s "checking for _beginthreadex()... " >&6; }
34210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34211 /* end confdefs.h. */
34212
34213 #include <stddef.h>
34214 #include <process.h>
34215
34216 int
34217 main (void)
34218 {
34219 _beginthreadex(NULL, 0, NULL, NULL, 0, NULL);
34220 ;
34221 return 0;
34222 }
34223 _ACEOF
34224 if ac_fn_c_try_link "$LINENO"
34225 then :
34226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34227 printf "%s\n" "yes" >&6; }
34228
34229 printf "%s\n" "#define HAVE__BEGINTHREADEX 1" >>confdefs.h
34230
34231 else case e in #(
34232 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34233 printf "%s\n" "no" >&6; } ;;
34234 esac
34235 fi
34236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34237 conftest$ac_exeext conftest.$ac_ext
34238
34239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _cputs()" >&5
34240 printf %s "checking for _cputs()... " >&6; }
34241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34242 /* end confdefs.h. */
34243 #include <conio.h>
34244 int
34245 main (void)
34246 {
34247 _cputs(0);
34248 ;
34249 return 0;
34250 }
34251 _ACEOF
34252 if ac_fn_c_try_link "$LINENO"
34253 then :
34254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34255 printf "%s\n" "yes" >&6; }
34256
34257 printf "%s\n" "#define HAVE__CPUTS 1" >>confdefs.h
34258
34259 else case e in #(
34260 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34261 printf "%s\n" "no" >&6; } ;;
34262 esac
34263 fi
34264 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34265 conftest$ac_exeext conftest.$ac_ext
34266
34267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _get_osfhandle()" >&5
34268 printf %s "checking for _get_osfhandle()... " >&6; }
34269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34270 /* end confdefs.h. */
34271 #include <io.h>
34272 int
34273 main (void)
34274 {
34275 _get_osfhandle(0);
34276 ;
34277 return 0;
34278 }
34279 _ACEOF
34280 if ac_fn_c_try_link "$LINENO"
34281 then :
34282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34283 printf "%s\n" "yes" >&6; }
34284
34285 printf "%s\n" "#define HAVE__GET_OSFHANDLE 1" >>confdefs.h
34286
34287 else case e in #(
34288 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34289 printf "%s\n" "no" >&6; } ;;
34290 esac
34291 fi
34292 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34293 conftest$ac_exeext conftest.$ac_ext
34294
34295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _getch()" >&5
34296 printf %s "checking for _getch()... " >&6; }
34297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34298 /* end confdefs.h. */
34299 #include <conio.h>
34300 int
34301 main (void)
34302 {
34303 return _getch();
34304 ;
34305 return 0;
34306 }
34307 _ACEOF
34308 if ac_fn_c_try_link "$LINENO"
34309 then :
34310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34311 printf "%s\n" "yes" >&6; }
34312
34313 printf "%s\n" "#define HAVE__GETCH 1" >>confdefs.h
34314
34315 else case e in #(
34316 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34317 printf "%s\n" "no" >&6; } ;;
34318 esac
34319 fi
34320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34321 conftest$ac_exeext conftest.$ac_ext
34322
34323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _open_osfhandle()" >&5
34324 printf %s "checking for _open_osfhandle()... " >&6; }
34325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34326 /* end confdefs.h. */
34327
34328 #include <stddef.h>
34329 #include <io.h>
34330
34331 int
34332 main (void)
34333 {
34334 _open_osfhandle(NULL, 0);
34335 ;
34336 return 0;
34337 }
34338 _ACEOF
34339 if ac_fn_c_try_link "$LINENO"
34340 then :
34341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34342 printf "%s\n" "yes" >&6; }
34343
34344 printf "%s\n" "#define HAVE__OPEN_OSFHANDLE 1" >>confdefs.h
34345
34346 else case e in #(
34347 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34348 printf "%s\n" "no" >&6; } ;;
34349 esac
34350 fi
34351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34352 conftest$ac_exeext conftest.$ac_ext
34353
34354
34355
34356
34357 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
34358 if test "x$ac_cv_func_getopt" = xyes
34359 then :
34360 printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
34361
34362 else case e in #(
34363 e) case " $LIBOBJS " in
34364 *" getopt.$ac_objext "* ) ;;
34365 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
34366 ;;
34367 esac
34368 ;;
34369 esac
34370 fi
34371 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
34372 if test "x$ac_cv_func_strlcat" = xyes
34373 then :
34374 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
34375
34376 else case e in #(
34377 e) case " $LIBOBJS " in
34378 *" strlcat.$ac_objext "* ) ;;
34379 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
34380 ;;
34381 esac
34382 ;;
34383 esac
34384 fi
34385 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
34386 if test "x$ac_cv_func_strlcpy" = xyes
34387 then :
34388 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
34389
34390 else case e in #(
34391 e) case " $LIBOBJS " in
34392 *" strlcpy.$ac_objext "* ) ;;
34393 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
34394 ;;
34395 esac
34396 ;;
34397 esac
34398 fi
34399 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
34400 if test "x$ac_cv_func_strtok_r" = xyes
34401 then :
34402 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
34403
34404 else case e in #(
34405 e) case " $LIBOBJS " in
34406 *" strtok_r.$ac_objext "* ) ;;
34407 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
34408 ;;
34409 esac
34410 ;;
34411 esac
34412 fi
34413 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
34414 if test "x$ac_cv_func_strtol" = xyes
34415 then :
34416 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
34417
34418 else case e in #(
34419 e) case " $LIBOBJS " in
34420 *" strtol.$ac_objext "* ) ;;
34421 *) LIBOBJS="$LIBOBJS strtol.$ac_objext"
34422 ;;
34423 esac
34424 ;;
34425 esac
34426 fi
34427 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
34428 if test "x$ac_cv_func_strtoul" = xyes
34429 then :
34430 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
34431
34432 else case e in #(
34433 e) case " $LIBOBJS " in
34434 *" strtoul.$ac_objext "* ) ;;
34435 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
34436 ;;
34437 esac
34438 ;;
34439 esac
34440 fi
34441 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
34442 if test "x$ac_cv_func_strtoull" = xyes
34443 then :
34444 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
34445
34446 else case e in #(
34447 e) case " $LIBOBJS " in
34448 *" strtoull.$ac_objext "* ) ;;
34449 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
34450 ;;
34451 esac
34452 ;;
34453 esac
34454 fi
34455
34456
34457 # Agent:
34458 ac_fn_c_check_func "$LINENO" "cgetnext" "ac_cv_func_cgetnext"
34459 if test "x$ac_cv_func_cgetnext" = xyes
34460 then :
34461 printf "%s\n" "#define HAVE_CGETNEXT 1" >>confdefs.h
34462
34463 fi
34464 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
34465 if test "x$ac_cv_func_chown" = xyes
34466 then :
34467 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
34468
34469 fi
34470 ac_fn_c_check_func "$LINENO" "endfsent" "ac_cv_func_endfsent"
34471 if test "x$ac_cv_func_endfsent" = xyes
34472 then :
34473 printf "%s\n" "#define HAVE_ENDFSENT 1" >>confdefs.h
34474
34475 fi
34476 ac_fn_c_check_func "$LINENO" "forkall" "ac_cv_func_forkall"
34477 if test "x$ac_cv_func_forkall" = xyes
34478 then :
34479 printf "%s\n" "#define HAVE_FORKALL 1" >>confdefs.h
34480
34481 fi
34482 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
34483 if test "x$ac_cv_func_fsync" = xyes
34484 then :
34485 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
34486
34487 fi
34488 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
34489 if test "x$ac_cv_func_gai_strerror" = xyes
34490 then :
34491 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
34492
34493 fi
34494 ac_fn_c_check_func "$LINENO" "getfsent" "ac_cv_func_getfsent"
34495 if test "x$ac_cv_func_getfsent" = xyes
34496 then :
34497 printf "%s\n" "#define HAVE_GETFSENT 1" >>confdefs.h
34498
34499 fi
34500 ac_fn_c_check_func "$LINENO" "getgrnam" "ac_cv_func_getgrnam"
34501 if test "x$ac_cv_func_getgrnam" = xyes
34502 then :
34503 printf "%s\n" "#define HAVE_GETGRNAM 1" >>confdefs.h
34504
34505 fi
34506 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
34507 if test "x$ac_cv_func_gethostname" = xyes
34508 then :
34509 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
34510
34511 fi
34512 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
34513 if test "x$ac_cv_func_getloadavg" = xyes
34514 then :
34515 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h
34516
34517 fi
34518 ac_fn_c_check_func "$LINENO" "getmntent" "ac_cv_func_getmntent"
34519 if test "x$ac_cv_func_getmntent" = xyes
34520 then :
34521 printf "%s\n" "#define HAVE_GETMNTENT 1" >>confdefs.h
34522
34523 fi
34524 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
34525 if test "x$ac_cv_func_getmntinfo" = xyes
34526 then :
34527 printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
34528
34529 fi
34530 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
34531 if test "x$ac_cv_func_getpid" = xyes
34532 then :
34533 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
34534
34535 fi
34536 ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
34537 if test "x$ac_cv_func_getpwnam" = xyes
34538 then :
34539 printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
34540
34541 fi
34542 ac_fn_c_check_func "$LINENO" "hasmntopt" "ac_cv_func_hasmntopt"
34543 if test "x$ac_cv_func_hasmntopt" = xyes
34544 then :
34545 printf "%s\n" "#define HAVE_HASMNTOPT 1" >>confdefs.h
34546
34547 fi
34548 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
34549 if test "x$ac_cv_func_initgroups" = xyes
34550 then :
34551 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
34552
34553 fi
34554 ac_fn_c_check_func "$LINENO" "if_nameindex" "ac_cv_func_if_nameindex"
34555 if test "x$ac_cv_func_if_nameindex" = xyes
34556 then :
34557 printf "%s\n" "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h
34558
34559 fi
34560 ac_fn_c_check_func "$LINENO" "if_indextoname" "ac_cv_func_if_indextoname"
34561 if test "x$ac_cv_func_if_indextoname" = xyes
34562 then :
34563 printf "%s\n" "#define HAVE_IF_INDEXTONAME 1" >>confdefs.h
34564
34565 fi
34566 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
34567 if test "x$ac_cv_func_if_nametoindex" = xyes
34568 then :
34569 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
34570
34571 fi
34572 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
34573 if test "x$ac_cv_func_localtime_r" = xyes
34574 then :
34575 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
34576
34577 fi
34578 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
34579 if test "x$ac_cv_func_mkstemp" = xyes
34580 then :
34581 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
34582
34583 fi
34584 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
34585 if test "x$ac_cv_func_mktime" = xyes
34586 then :
34587 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
34588
34589 fi
34590 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
34591 if test "x$ac_cv_func_poll" = xyes
34592 then :
34593 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
34594
34595 fi
34596 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
34597 if test "x$ac_cv_func_regcomp" = xyes
34598 then :
34599 printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
34600
34601 fi
34602 ac_fn_c_check_func "$LINENO" "setfsent" "ac_cv_func_setfsent"
34603 if test "x$ac_cv_func_setfsent" = xyes
34604 then :
34605 printf "%s\n" "#define HAVE_SETFSENT 1" >>confdefs.h
34606
34607 fi
34608 ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid"
34609 if test "x$ac_cv_func_setgid" = xyes
34610 then :
34611 printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h
34612
34613 fi
34614 ac_fn_c_check_func "$LINENO" "setgroups" "ac_cv_func_setgroups"
34615 if test "x$ac_cv_func_setgroups" = xyes
34616 then :
34617 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
34618
34619 fi
34620 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
34621 if test "x$ac_cv_func_setmntent" = xyes
34622 then :
34623 printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
34624
34625 fi
34626 ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
34627 if test "x$ac_cv_func_setuid" = xyes
34628 then :
34629 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
34630
34631 fi
34632 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
34633 if test "x$ac_cv_func_sigaction" = xyes
34634 then :
34635 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
34636
34637 fi
34638 ac_fn_c_check_func "$LINENO" "sigblock" "ac_cv_func_sigblock"
34639 if test "x$ac_cv_func_sigblock" = xyes
34640 then :
34641 printf "%s\n" "#define HAVE_SIGBLOCK 1" >>confdefs.h
34642
34643 fi
34644 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
34645 if test "x$ac_cv_func_sigprocmask" = xyes
34646 then :
34647 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
34648
34649 fi
34650 ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
34651 if test "x$ac_cv_func_statfs" = xyes
34652 then :
34653 printf "%s\n" "#define HAVE_STATFS 1" >>confdefs.h
34654
34655 fi
34656 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
34657 if test "x$ac_cv_func_statvfs" = xyes
34658 then :
34659 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
34660
34661 fi
34662 ac_fn_c_check_func "$LINENO" "stime" "ac_cv_func_stime"
34663 if test "x$ac_cv_func_stime" = xyes
34664 then :
34665 printf "%s\n" "#define HAVE_STIME 1" >>confdefs.h
34666
34667 fi
34668 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
34669 if test "x$ac_cv_func_strncasecmp" = xyes
34670 then :
34671 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
34672
34673 fi
34674 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
34675 if test "x$ac_cv_func_system" = xyes
34676 then :
34677 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h
34678
34679 fi
34680 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
34681 if test "x$ac_cv_func_usleep" = xyes
34682 then :
34683 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
34684
34685 fi
34686
34687
34688 # Agent, Darwin (Apple):
34689 ac_fn_c_check_func "$LINENO" "vm_region" "ac_cv_func_vm_region"
34690 if test "x$ac_cv_func_vm_region" = xyes
34691 then :
34692 printf "%s\n" "#define HAVE_VM_REGION 1" >>confdefs.h
34693
34694 fi
34695 ac_fn_c_check_func "$LINENO" "vm_region_64" "ac_cv_func_vm_region_64"
34696 if test "x$ac_cv_func_vm_region_64" = xyes
34697 then :
34698 printf "%s\n" "#define HAVE_VM_REGION_64 1" >>confdefs.h
34699
34700 fi
34701
34702
34703 # Apps:
34704 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
34705 if test "x$ac_cv_func_getdtablesize" = xyes
34706 then :
34707 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
34708
34709 fi
34710 ac_fn_c_check_func "$LINENO" "getgrnam" "ac_cv_func_getgrnam"
34711 if test "x$ac_cv_func_getgrnam" = xyes
34712 then :
34713 printf "%s\n" "#define HAVE_GETGRNAM 1" >>confdefs.h
34714
34715 fi
34716 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
34717 if test "x$ac_cv_func_getpid" = xyes
34718 then :
34719 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
34720
34721 fi
34722 ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
34723 if test "x$ac_cv_func_getpwnam" = xyes
34724 then :
34725 printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
34726
34727 fi
34728 ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid"
34729 if test "x$ac_cv_func_setgid" = xyes
34730 then :
34731 printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h
34732
34733 fi
34734 ac_fn_c_check_func "$LINENO" "setgroups" "ac_cv_func_setgroups"
34735 if test "x$ac_cv_func_setgroups" = xyes
34736 then :
34737 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
34738
34739 fi
34740 ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
34741 if test "x$ac_cv_func_setuid" = xyes
34742 then :
34743 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
34744
34745 fi
34746 ac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
34747 if test "x$ac_cv_func_tcgetattr" = xyes
34748 then :
34749 printf "%s\n" "#define HAVE_TCGETATTR 1" >>confdefs.h
34750
34751 fi
34752
34753
34754 # Not-Used:
34755 ac_fn_c_check_func "$LINENO" "if_freenameindex" "ac_cv_func_if_freenameindex"
34756 if test "x$ac_cv_func_if_freenameindex" = xyes
34757 then :
34758 printf "%s\n" "#define HAVE_IF_FREENAMEINDEX 1" >>confdefs.h
34759
34760 fi
34761 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
34762 if test "x$ac_cv_func_getpagesize" = xyes
34763 then :
34764 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
34765
34766 fi
34767 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
34768 if test "x$ac_cv_func_lseek64" = xyes
34769 then :
34770 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
34771
34772 fi
34773 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
34774 if test "x$ac_cv_func_pread64" = xyes
34775 then :
34776 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
34777
34778 fi
34779 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
34780 if test "x$ac_cv_func_select" = xyes
34781 then :
34782 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
34783
34784 fi
34785 ac_fn_c_check_func "$LINENO" "sigalrm" "ac_cv_func_sigalrm"
34786 if test "x$ac_cv_func_sigalrm" = xyes
34787 then :
34788 printf "%s\n" "#define HAVE_SIGALRM 1" >>confdefs.h
34789
34790 fi
34791 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
34792 if test "x$ac_cv_func_socket" = xyes
34793 then :
34794 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
34795
34796 fi
34797
34798
34799
34800 ##
34801 # More complex function checks:
34802 # (Agent)
34803 ##
34804
34805 # rpmGetPath check needs clean LIBS environment (Linux)
34806 #
34807 if test "x$with_rpm" != "xno"; then
34808 OLDLIBS=$LIBS
34809 LIBS=$LMIBLIBS
34810 ac_fn_c_check_func "$LINENO" "rpmGetPath" "ac_cv_func_rpmGetPath"
34811 if test "x$ac_cv_func_rpmGetPath" = xyes
34812 then :
34813 printf "%s\n" "#define HAVE_RPMGETPATH 1" >>confdefs.h
34814
34815 fi
34816
34817 LIBS=$OLDLIBS
34818 fi
34819
34820 # statfs( char *, struct fs_data* ) (Ultrix)
34821 #
34822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
34823 printf %s "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
34824 if test ${fu_cv_sys_stat_fs_data+y}
34825 then :
34826 printf %s "(cached) " >&6
34827 else case e in #(
34828 e) if test "$cross_compiling" = yes
34829 then :
34830 fu_cv_sys_stat_fs_data=no
34831 else case e in #(
34832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34833 /* end confdefs.h. */
34834
34835 #ifdef HAVE_SYS_PARAM_H
34836 #include <sys/param.h>
34837 #endif
34838 #include <sys/types.h>
34839 #ifdef HAVE_SYS_MOUNT_H
34840 #include <sys/mount.h>
34841 #endif
34842 #ifdef HAVE_SYS_FS_TYPES_H
34843 #include <sys/fs_types.h>
34844 #endif
34845 #ifdef HAVE_SYS_STATFS_H
34846 #include <sys/statfs.h>
34847 #endif
34848 #ifdef HAVE_SYS_STATVFS_H
34849 #include <sys/statvfs.h>
34850 #endif
34851
34852 int main(void)
34853 {
34854 struct fs_data fsd;
34855 /* Ultrix's statfs returns 1 for success,
34856 0 for not mounted, -1 for failure. */
34857 return statfs (".", &fsd) != 1;
34858 }
34859 _ACEOF
34860 if ac_fn_c_try_run "$LINENO"
34861 then :
34862 fu_cv_sys_stat_fs_data=yes
34863 else case e in #(
34864 e) fu_cv_sys_stat_fs_data=no ;;
34865 esac
34866 fi
34867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34868 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
34869 esac
34870 fi
34871 ;;
34872 esac
34873 fi
34874
34875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
34876 printf "%s\n" "$fu_cv_sys_stat_fs_data" >&6; }
34877 if test $fu_cv_sys_stat_fs_data = yes; then
34878
34879 printf "%s\n" "#define STAT_STATFS_FS_DATA 1" >>confdefs.h
34880
34881 fi
34882
34883
34884 ##
34885 # Other function-related checks:
34886 # (general build)
34887 ##
34888
34889 # How to get the name of the current function
34890 #
34891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get the name of the current function" >&5
34892 printf %s "checking how to get the name of the current function... " >&6; }
34893 if test ${netsnmp_cv__func__name+y}
34894 then :
34895 printf %s "(cached) " >&6
34896 else case e in #(
34897 e)
34898 netsnmp_cv__func__name=no
34899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34900 /* end confdefs.h. */
34901
34902 int
34903 main (void)
34904 {
34905 const char* cp = __func__;
34906 ;
34907 return 0;
34908 }
34909 _ACEOF
34910 if ac_fn_c_try_compile "$LINENO"
34911 then :
34912 netsnmp_cv__func__name=__func__
34913 fi
34914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34915 if test "$netsnmp_cv__func__name" = no ; then
34916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34917 /* end confdefs.h. */
34918
34919 int
34920 main (void)
34921 {
34922 const char* cp = __FUNCTION__;
34923 ;
34924 return 0;
34925 }
34926 _ACEOF
34927 if ac_fn_c_try_compile "$LINENO"
34928 then :
34929 netsnmp_cv__func__name=__FUNCTION__
34930 fi
34931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34932 fi ;;
34933 esac
34934 fi
34935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv__func__name" >&5
34936 printf "%s\n" "$netsnmp_cv__func__name" >&6; }
34937 if test "$netsnmp_cv__func__name" != no; then
34938
34939 printf "%s\n" "#define NETSNMP_FUNCTION $netsnmp_cv__func__name" >>confdefs.h
34940
34941 fi
34942
34943
34944 # Whether static inline functions are broken (SCO Unixware)
34945 #
34946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether static inline functions are broken (Unixware)" >&5
34947 printf %s "checking whether static inline functions are broken (Unixware)... " >&6; }
34948 if test ${netsnmp_cv_broken_inline+y}
34949 then :
34950 printf %s "(cached) " >&6
34951 else case e in #(
34952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34953 /* end confdefs.h. */
34954
34955 static inline int nested_inline_function(void) {
34956 return 0;
34957 }
34958 inline int main_inline_function( void ) {
34959 return nested_inline_function();
34960 }
34961
34962 _ACEOF
34963 if ac_fn_c_try_compile "$LINENO"
34964 then :
34965
34966 # Yes - static inline functions are broken (Solaris 2.x)
34967 #
34968 case "$target_os" in
34969 solaris*)
34970 netsnmp_cv_broken_inline=yes
34971 ;;
34972 *)
34973 netsnmp_cv_broken_inline=no
34974 ;;
34975 esac
34976 else case e in #(
34977 e)
34978 netsnmp_cv_broken_inline=yes
34979 ;;
34980 esac
34981 fi
34982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
34983 esac
34984 fi
34985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_broken_inline" >&5
34986 printf "%s\n" "$netsnmp_cv_broken_inline" >&6; }
34987
34988 if test "$netsnmp_cv_broken_inline" = yes ; then
34989
34990 printf "%s\n" "#define NETSNMP_BROKEN_INLINE 1" >>confdefs.h
34991
34992 fi
34993
34994
34995 ##
34996 # Mis-placed (non-function) checks:
34997 ##
34998
34999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIOCGIFADDR in sys/ioctl.h" >&5
35000 printf %s "checking for SIOCGIFADDR in sys/ioctl.h... " >&6; }
35001 if test ${netsnmp_cv_sys_ioctl_h_has_SIOCGIFADDR+y}
35002 then :
35003 printf %s "(cached) " >&6
35004 else case e in #(
35005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35006 /* end confdefs.h. */
35007
35008 #ifdef HAVE_SYS_IOCTL_H
35009 #include <sys/ioctl.h>
35010 #endif
35011 #ifndef SIOCGIFADDR
35012 No SIOCGIFADDR found here.
35013 #endif
35014
35015 int
35016 main (void)
35017 {
35018
35019 ;
35020 return 0;
35021 }
35022 _ACEOF
35023 if ac_fn_c_try_compile "$LINENO"
35024 then :
35025 netsnmp_cv_sys_ioctl_h_has_SIOCGIFADDR=yes
35026 else case e in #(
35027 e) netsnmp_cv_sys_ioctl_h_has_SIOCGIFADDR=no ;;
35028 esac
35029 fi
35030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
35031 esac
35032 fi
35033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_sys_ioctl_h_has_SIOCGIFADDR" >&5
35034 printf "%s\n" "$netsnmp_cv_sys_ioctl_h_has_SIOCGIFADDR" >&6; }
35035 if test $netsnmp_cv_sys_ioctl_h_has_SIOCGIFADDR = yes; then
35036
35037 printf "%s\n" "#define SYS_IOCTL_H_HAS_SIOCGIFADDR 1" >>confdefs.h
35038
35039 fi
35040
35041 ##
35042 # Check how to print a size_t variable
35043 ##
35044
35045 case x${host_cpu}-${host_vendor}-${host_os} in
35046 x*mingw*)
35047 # MinGW or MinGW-w64.
35048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the underlying type of size_t" >&5
35049 printf %s "checking the underlying type of size_t... " >&6; }
35050 if test ${netsnmp_cv_size_t_type+y}
35051 then :
35052 printf %s "(cached) " >&6
35053 else case e in #(
35054 e) for TYPE in int long "long long" short char; do
35055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35056 /* end confdefs.h. */
35057
35058 $ac_includes_default
35059 extern unsigned $TYPE variable;
35060 extern size_t variable;
35061
35062 int
35063 main (void)
35064 {
35065
35066 ;
35067 return 0;
35068 }
35069 _ACEOF
35070 if ac_fn_c_try_compile "$LINENO"
35071 then :
35072 netsnmp_cv_size_t_type="$TYPE"
35073 fi
35074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35075 if test "x$netsnmp_cv_size_t_type" != x; then break; fi
35076 done ;;
35077 esac
35078 fi
35079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_size_t_type" >&5
35080 printf "%s\n" "$netsnmp_cv_size_t_type" >&6; }
35081
35082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to printf a size_t" >&5
35083 printf %s "checking how to printf a size_t... " >&6; }
35084 case "$netsnmp_cv_size_t_type" in
35085 char|short|int)
35086 netsnmp_PRIz="";;
35087 long)
35088 netsnmp_PRIz="l";;
35089 "long long")
35090 netsnmp_PRIz="I64";;
35091 *)
35092 as_fn_error $? "underlying type of size_t not known" "$LINENO" 5;;
35093 esac
35094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_PRIz" >&5
35095 printf "%s\n" "$netsnmp_PRIz" >&6; };;
35096 *)
35097 # Unix or Cygwin.
35098 netsnmp_PRIz="z";;
35099 esac
35100
35101 printf "%s\n" "#define NETSNMP_PRIz \"$netsnmp_PRIz\"" >>confdefs.h
35102
35103
35104 # check to see if the openssl is good enough for DTLS
35105 # (BIO_dgram_get_peer is a macro, not a true function)
35106 if echo " $transport_result_list " | $GREP "DTLS" > /dev/null; then
35107 if test ${netsnmp_cv_bio_dgram_get_peer+y}
35108 then :
35109 printf %s "(cached) " >&6
35110 else case e in #(
35111 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BIO_dgram_get_peer" >&5
35112 printf %s "checking for BIO_dgram_get_peer... " >&6; }
35113
35114 oldLIBS="$LIBS"
35115 LIBS="$LIBS -lcrypto"
35116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35117 /* end confdefs.h. */
35118 #include <openssl/bio.h>
35119 int
35120 main (void)
35121 {
35122 BIO_dgram_get_peer(NULL, NULL);
35123 ;
35124 return 0;
35125 }
35126 _ACEOF
35127 if ac_fn_c_try_link "$LINENO"
35128 then :
35129
35130 else case e in #(
35131 e) as_fn_error $? "DTLS support requires a newer version of OpenSSL" "$LINENO" 5 ;;
35132 esac
35133 fi
35134 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35135 conftest$ac_exeext conftest.$ac_ext
35136
35137 LIBS="$oldLIBS"
35138
35139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35140 printf "%s\n" "yes" >&6; }
35141 ;;
35142 esac
35143 fi
35144
35145 fi
35146
35147
35148 # -*- autoconf -*-
35149 #########################################
35150 ##
35151 # Checks for data structures & members
35152 ##
35153 #########################################
35154
35155 ##
35156 # Simple checks:
35157 ##
35158
35159 # struct arphd
35160 # Agent:
35161 #
35162 ac_fn_c_check_member "$LINENO" "struct arphd" "at_next" "ac_cv_member_struct_arphd_at_next" "
35163 $ac_includes_default
35164
35165 #ifdef HAVE_SYS_PARAM_H
35166 #include <sys/param.h>
35167 #endif
35168 #ifdef HAVE_SYS_SOCKET_H
35169 #include <sys/socket.h>
35170 #endif
35171 #ifdef HAVE_SYS_TIME_H
35172 #include <sys/time.h>
35173 #endif
35174 #include <net/if.h>
35175 #ifdef HAVE_NETINET_IN_H
35176 #include <netinet/in.h>
35177 #endif
35178 #ifdef HAVE_NETINET_IF_ETHER_H
35179 #include <netinet/if_ether.h>
35180 #endif
35181
35182 "
35183 if test "x$ac_cv_member_struct_arphd_at_next" = xyes
35184 then :
35185
35186 printf "%s\n" "#define HAVE_STRUCT_ARPHD_AT_NEXT 1" >>confdefs.h
35187
35188
35189 fi
35190
35191
35192 # struct des_ks_struct
35193 # ('weak_key' indicates older version of OpenSSL)
35194 # Library:
35195 #
35196 if test "x$ac_cv_header_openssl_des_h" = "xyes" ; then
35197 ac_fn_c_check_member "$LINENO" "struct des_ks_struct" "weak_key" "ac_cv_member_struct_des_ks_struct_weak_key" "
35198 #ifdef HAVE_OPENSSL_DES_H
35199 #include <openssl/des.h>
35200 #endif
35201
35202 "
35203 if test "x$ac_cv_member_struct_des_ks_struct_weak_key" = xyes
35204 then :
35205
35206 printf "%s\n" "#define HAVE_STRUCT_DES_KS_STRUCT_WEAK_KEY 1" >>confdefs.h
35207
35208
35209 fi
35210
35211 fi
35212
35213 # struct dirent
35214 # (see also AC_STRUCT_DIRENT_D_TYPE)
35215 # Library:
35216 #
35217 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
35218 $ac_includes_default
35219
35220 #ifdef HAVE_DIRENT_H
35221 #include <dirent.h>
35222 #endif
35223
35224 "
35225 if test "x$ac_cv_member_struct_dirent_d_type" = xyes
35226 then :
35227
35228 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
35229
35230
35231 fi
35232
35233
35234 # struct ethtool_cmd
35235 #
35236 if test "x$ac_cv_header_linux_ethtool_h" = "xyes" ; then
35237 ac_fn_c_check_member "$LINENO" "struct ethtool_cmd" "speed_hi" "ac_cv_member_struct_ethtool_cmd_speed_hi" "
35238 $ac_includes_default
35239
35240 #ifdef HAVE_LINUX_ETHTOOL_H
35241 #include <linux/ethtool.h>
35242 #endif
35243
35244 "
35245 if test "x$ac_cv_member_struct_ethtool_cmd_speed_hi" = xyes
35246 then :
35247
35248 printf "%s\n" "#define HAVE_STRUCT_ETHTOOL_CMD_SPEED_HI 1" >>confdefs.h
35249
35250
35251 fi
35252
35253 fi
35254
35255 # struct ipstat
35256 # Agent:
35257 #
35258 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_cantfrag" "ac_cv_member_struct_ipstat_ips_cantfrag" "
35259 $ac_includes_default
35260
35261 #ifdef HAVE_NETINET_IN_H
35262 #include <netinet/in.h>
35263 #endif
35264 #ifdef HAVE_NETINET_IP_VAR_H
35265 #include <netinet/ip_var.h>
35266 #endif
35267
35268 "
35269 if test "x$ac_cv_member_struct_ipstat_ips_cantfrag" = xyes
35270 then :
35271
35272 printf "%s\n" "#define HAVE_STRUCT_IPSTAT_IPS_CANTFRAG 1" >>confdefs.h
35273
35274
35275 fi
35276 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_delivered" "ac_cv_member_struct_ipstat_ips_delivered" "
35277 $ac_includes_default
35278
35279 #ifdef HAVE_NETINET_IN_H
35280 #include <netinet/in.h>
35281 #endif
35282 #ifdef HAVE_NETINET_IP_VAR_H
35283 #include <netinet/ip_var.h>
35284 #endif
35285
35286 "
35287 if test "x$ac_cv_member_struct_ipstat_ips_delivered" = xyes
35288 then :
35289
35290 printf "%s\n" "#define HAVE_STRUCT_IPSTAT_IPS_DELIVERED 1" >>confdefs.h
35291
35292
35293 fi
35294 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_fragdropped" "ac_cv_member_struct_ipstat_ips_fragdropped" "
35295 $ac_includes_default
35296
35297 #ifdef HAVE_NETINET_IN_H
35298 #include <netinet/in.h>
35299 #endif
35300 #ifdef HAVE_NETINET_IP_VAR_H
35301 #include <netinet/ip_var.h>
35302 #endif
35303
35304 "
35305 if test "x$ac_cv_member_struct_ipstat_ips_fragdropped" = xyes
35306 then :
35307
35308 printf "%s\n" "#define HAVE_STRUCT_IPSTAT_IPS_FRAGDROPPED 1" >>confdefs.h
35309
35310
35311 fi
35312 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_fragmented" "ac_cv_member_struct_ipstat_ips_fragmented" "
35313 $ac_includes_default
35314
35315 #ifdef HAVE_NETINET_IN_H
35316 #include <netinet/in.h>
35317 #endif
35318 #ifdef HAVE_NETINET_IP_VAR_H
35319 #include <netinet/ip_var.h>
35320 #endif
35321
35322 "
35323 if test "x$ac_cv_member_struct_ipstat_ips_fragmented" = xyes
35324 then :
35325
35326 printf "%s\n" "#define HAVE_STRUCT_IPSTAT_IPS_FRAGMENTED 1" >>confdefs.h
35327
35328
35329 fi
35330 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_localout" "ac_cv_member_struct_ipstat_ips_localout" "
35331 $ac_includes_default
35332
35333 #ifdef HAVE_NETINET_IN_H
35334 #include <netinet/in.h>
35335 #endif
35336 #ifdef HAVE_NETINET_IP_VAR_H
35337 #include <netinet/ip_var.h>
35338 #endif
35339
35340 "
35341 if test "x$ac_cv_member_struct_ipstat_ips_localout" = xyes
35342 then :
35343
35344 printf "%s\n" "#define HAVE_STRUCT_IPSTAT_IPS_LOCALOUT 1" >>confdefs.h
35345
35346
35347 fi
35348 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_noproto" "ac_cv_member_struct_ipstat_ips_noproto" "
35349 $ac_includes_default
35350
35351 #ifdef HAVE_NETINET_IN_H
35352 #include <netinet/in.h>
35353 #endif
35354 #ifdef HAVE_NETINET_IP_VAR_H
35355 #include <netinet/ip_var.h>
35356 #endif
35357
35358 "
35359 if test "x$ac_cv_member_struct_ipstat_ips_noproto" = xyes
35360 then :
35361
35362 printf "%s\n" "#define HAVE_STRUCT_IPSTAT_IPS_NOPROTO 1" >>confdefs.h
35363
35364
35365 fi
35366 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_noroute" "ac_cv_member_struct_ipstat_ips_noroute" "
35367 $ac_includes_default
35368
35369 #ifdef HAVE_NETINET_IN_H
35370 #include <netinet/in.h>
35371 #endif
35372 #ifdef HAVE_NETINET_IP_VAR_H
35373 #include <netinet/ip_var.h>
35374 #endif
35375
35376 "
35377 if test "x$ac_cv_member_struct_ipstat_ips_noroute" = xyes
35378 then :
35379
35380 printf "%s\n" "#define HAVE_STRUCT_IPSTAT_IPS_NOROUTE 1" >>confdefs.h
35381
35382
35383 fi
35384 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_odropped" "ac_cv_member_struct_ipstat_ips_odropped" "
35385 $ac_includes_default
35386
35387 #ifdef HAVE_NETINET_IN_H
35388 #include <netinet/in.h>
35389 #endif
35390 #ifdef HAVE_NETINET_IP_VAR_H
35391 #include <netinet/ip_var.h>
35392 #endif
35393
35394 "
35395 if test "x$ac_cv_member_struct_ipstat_ips_odropped" = xyes
35396 then :
35397
35398 printf "%s\n" "#define HAVE_STRUCT_IPSTAT_IPS_ODROPPED 1" >>confdefs.h
35399
35400
35401 fi
35402 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_ofragments" "ac_cv_member_struct_ipstat_ips_ofragments" "
35403 $ac_includes_default
35404
35405 #ifdef HAVE_NETINET_IN_H
35406 #include <netinet/in.h>
35407 #endif
35408 #ifdef HAVE_NETINET_IP_VAR_H
35409 #include <netinet/ip_var.h>
35410 #endif
35411
35412 "
35413 if test "x$ac_cv_member_struct_ipstat_ips_ofragments" = xyes
35414 then :
35415
35416 printf "%s\n" "#define HAVE_STRUCT_IPSTAT_IPS_OFRAGMENTS 1" >>confdefs.h
35417
35418
35419 fi
35420 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_reassembled" "ac_cv_member_struct_ipstat_ips_reassembled" "
35421 $ac_includes_default
35422
35423 #ifdef HAVE_NETINET_IN_H
35424 #include <netinet/in.h>
35425 #endif
35426 #ifdef HAVE_NETINET_IP_VAR_H
35427 #include <netinet/ip_var.h>
35428 #endif
35429
35430 "
35431 if test "x$ac_cv_member_struct_ipstat_ips_reassembled" = xyes
35432 then :
35433
35434 printf "%s\n" "#define HAVE_STRUCT_IPSTAT_IPS_REASSEMBLED 1" >>confdefs.h
35435
35436
35437 fi
35438
35439 # struct ip6stat
35440 # Agent:
35441 #
35442 ac_fn_c_check_member "$LINENO" "struct ip6stat" "ip6s_exthdrtoolong " "ac_cv_member_struct_ip6stat_ip6s_exthdrtoolong_" "
35443 $ac_includes_default
35444
35445 #ifdef HAVE_NETINET_IN_H
35446 #include <netinet/in.h>
35447 #endif
35448 #ifdef HAVE_NETINET6_IP6_VAR_H
35449 #include <netinet6/ip6_var.h>
35450 #endif
35451
35452 "
35453 if test "x$ac_cv_member_struct_ip6stat_ip6s_exthdrtoolong_" = xyes
35454 then :
35455
35456 printf "%s\n" "#define HAVE_STRUCT_IP6STAT_IP6S_EXTHDRTOOLONG_ 1" >>confdefs.h
35457
35458
35459 fi
35460
35461
35462 #
35463 # Not-Used:
35464 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_cantforward" "ac_cv_member_struct_ipstat_ips_cantforward" "
35465 $ac_includes_default
35466
35467 #ifdef HAVE_NETINET_IN_H
35468 #include <netinet/in.h>
35469 #endif
35470 #ifdef HAVE_NETINET_IP_VAR_H
35471 #include <netinet/ip_var.h>
35472 #endif
35473
35474 "
35475 if test "x$ac_cv_member_struct_ipstat_ips_cantforward" = xyes
35476 then :
35477
35478 printf "%s\n" "#define HAVE_STRUCT_IPSTAT_IPS_CANTFORWARD 1" >>confdefs.h
35479
35480
35481 fi
35482 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_fragtimeout" "ac_cv_member_struct_ipstat_ips_fragtimeout" "
35483 $ac_includes_default
35484
35485 #ifdef HAVE_NETINET_IN_H
35486 #include <netinet/in.h>
35487 #endif
35488 #ifdef HAVE_NETINET_IP_VAR_H
35489 #include <netinet/ip_var.h>
35490 #endif
35491
35492 "
35493 if test "x$ac_cv_member_struct_ipstat_ips_fragtimeout" = xyes
35494 then :
35495
35496 printf "%s\n" "#define HAVE_STRUCT_IPSTAT_IPS_FRAGTIMEOUT 1" >>confdefs.h
35497
35498
35499 fi
35500
35501
35502 # struct mbstat
35503 # Not-Used:
35504 #
35505 ac_fn_c_check_member "$LINENO" "struct mbstat" "m_clusters" "ac_cv_member_struct_mbstat_m_clusters" "
35506 $ac_includes_default
35507
35508 #ifdef HAVE_SYS_PARAM_H
35509 #include <sys/param.h>
35510 #endif
35511 #ifdef HAVE_SYS_MBUF_H
35512 #include <sys/mbuf.h>
35513 #endif
35514
35515 "
35516 if test "x$ac_cv_member_struct_mbstat_m_clusters" = xyes
35517 then :
35518
35519 printf "%s\n" "#define HAVE_STRUCT_MBSTAT_M_CLUSTERS 1" >>confdefs.h
35520
35521
35522 fi
35523 ac_fn_c_check_member "$LINENO" "struct mbstat" "m_clfree" "ac_cv_member_struct_mbstat_m_clfree" "
35524 $ac_includes_default
35525
35526 #ifdef HAVE_SYS_PARAM_H
35527 #include <sys/param.h>
35528 #endif
35529 #ifdef HAVE_SYS_MBUF_H
35530 #include <sys/mbuf.h>
35531 #endif
35532
35533 "
35534 if test "x$ac_cv_member_struct_mbstat_m_clfree" = xyes
35535 then :
35536
35537 printf "%s\n" "#define HAVE_STRUCT_MBSTAT_M_CLFREE 1" >>confdefs.h
35538
35539
35540 fi
35541 ac_fn_c_check_member "$LINENO" "struct mbstat" "m_mbufs" "ac_cv_member_struct_mbstat_m_mbufs" "
35542 $ac_includes_default
35543
35544 #ifdef HAVE_SYS_PARAM_H
35545 #include <sys/param.h>
35546 #endif
35547 #ifdef HAVE_SYS_MBUF_H
35548 #include <sys/mbuf.h>
35549 #endif
35550
35551 "
35552 if test "x$ac_cv_member_struct_mbstat_m_mbufs" = xyes
35553 then :
35554
35555 printf "%s\n" "#define HAVE_STRUCT_MBSTAT_M_MBUFS 1" >>confdefs.h
35556
35557
35558 fi
35559
35560
35561 # struct uvmexp
35562 #
35563 ac_fn_c_check_member "$LINENO" "struct uvmexp" "pgswapin" "ac_cv_member_struct_uvmexp_pgswapin" "
35564 $ac_includes_default
35565
35566 #include <sys/sysctl.h>
35567 #include <uvm/uvm_extern.h>
35568
35569 "
35570 if test "x$ac_cv_member_struct_uvmexp_pgswapin" = xyes
35571 then :
35572
35573 printf "%s\n" "#define HAVE_STRUCT_UVMEXP_PGSWAPIN 1" >>confdefs.h
35574
35575
35576 fi
35577
35578
35579 # struct nlist
35580 #
35581 ac_fn_c_check_member "$LINENO" "struct nlist" "n_value" "ac_cv_member_struct_nlist_n_value" "
35582 $ac_includes_default
35583
35584 #ifdef HAVE_NLIST_H
35585 #include <nlist.h>
35586 #endif
35587
35588 "
35589 if test "x$ac_cv_member_struct_nlist_n_value" = xyes
35590 then :
35591
35592 printf "%s\n" "#define HAVE_STRUCT_NLIST_N_VALUE 1" >>confdefs.h
35593
35594
35595 fi
35596 ac_fn_c_check_member "$LINENO" "struct nlist64" "n_value" "ac_cv_member_struct_nlist64_n_value" "
35597 $ac_includes_default
35598
35599 #ifdef HAVE_NLIST_H
35600 #include <nlist.h>
35601 #endif
35602
35603 "
35604 if test "x$ac_cv_member_struct_nlist64_n_value" = xyes
35605 then :
35606
35607 printf "%s\n" "#define HAVE_STRUCT_NLIST64_N_VALUE 1" >>confdefs.h
35608
35609
35610 fi
35611
35612
35613 # struct sigaction
35614 # Agent:
35615 #
35616 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "
35617 $ac_includes_default
35618
35619 #include <signal.h>
35620
35621 "
35622 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
35623 then :
35624
35625 printf "%s\n" "#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1" >>confdefs.h
35626
35627
35628 fi
35629
35630
35631 # struct sockaddr
35632 # Library:
35633 #
35634 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
35635 $ac_includes_default
35636
35637 #ifdef HAVE_SYS_PARAM_H
35638 #include <sys/param.h>
35639 #endif
35640 #ifdef HAVE_SYS_SOCKET_H
35641 #include <sys/socket.h>
35642 #elif defined(HAVE_WINSOCK2_H)
35643 #include <winsock2.h>
35644 #endif
35645 #ifdef HAVE_WS2TCPIP_H
35646 #include <ws2tcpip.h>
35647 #endif
35648
35649 "
35650 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
35651 then :
35652
35653 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
35654
35655
35656 fi
35657 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_union.sa_generic.sa_family2" "ac_cv_member_struct_sockaddr_sa_union_sa_generic_sa_family2" "
35658 $ac_includes_default
35659
35660 #ifdef HAVE_SYS_PARAM_H
35661 #include <sys/param.h>
35662 #endif
35663 #ifdef HAVE_SYS_SOCKET_H
35664 #include <sys/socket.h>
35665 #elif defined(HAVE_WINSOCK2_H)
35666 #include <winsock2.h>
35667 #endif
35668 #ifdef HAVE_WS2TCPIP_H
35669 #include <ws2tcpip.h>
35670 #endif
35671
35672 "
35673 if test "x$ac_cv_member_struct_sockaddr_sa_union_sa_generic_sa_family2" = xyes
35674 then :
35675
35676 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_UNION_SA_GENERIC_SA_FAMILY2 1" >>confdefs.h
35677
35678
35679 fi
35680 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "
35681 $ac_includes_default
35682
35683 #ifdef HAVE_SYS_PARAM_H
35684 #include <sys/param.h>
35685 #endif
35686 #ifdef HAVE_SYS_SOCKET_H
35687 #include <sys/socket.h>
35688 #elif defined(HAVE_WINSOCK2_H)
35689 #include <winsock2.h>
35690 #endif
35691 #ifdef HAVE_WS2TCPIP_H
35692 #include <ws2tcpip.h>
35693 #endif
35694
35695 "
35696 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
35697 then :
35698
35699 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h
35700
35701
35702 fi
35703 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "
35704 $ac_includes_default
35705
35706 #ifdef HAVE_SYS_PARAM_H
35707 #include <sys/param.h>
35708 #endif
35709 #ifdef HAVE_SYS_SOCKET_H
35710 #include <sys/socket.h>
35711 #elif defined(HAVE_WINSOCK2_H)
35712 #include <winsock2.h>
35713 #endif
35714 #ifdef HAVE_WS2TCPIP_H
35715 #include <ws2tcpip.h>
35716 #endif
35717
35718 "
35719 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
35720 then :
35721
35722 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1" >>confdefs.h
35723
35724
35725 fi
35726
35727
35728 # struct sockaddr_in6 (see RFC 2553)
35729 # Library:
35730 #
35731 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
35732 $ac_includes_default
35733
35734 #ifdef HAVE_SYS_PARAM_H
35735 #include <sys/param.h>
35736 #endif
35737 #ifdef HAVE_SYS_SOCKET_H
35738 #include <sys/socket.h>
35739 #endif
35740 #ifdef HAVE_NETINET_IN_H
35741 #include <netinet/in.h>
35742 #endif
35743 #ifdef HAVE_WINSOCK2_H
35744 #include <winsock2.h>
35745 #endif
35746 #ifdef HAVE_WS2TCPIP_H
35747 #include <ws2tcpip.h>
35748 #endif
35749
35750 "
35751 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes
35752 then :
35753
35754 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
35755
35756
35757 fi
35758
35759
35760 # struct sockaddr_un
35761 # Library:
35762 #
35763 # The cast to long int works around a bug in the HP C Compiler
35764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35765 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
35766 # This bug is HP SR number 8606223364.
35767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of sockaddr_un.sun_path" >&5
35768 printf %s "checking size of sockaddr_un.sun_path... " >&6; }
35769 if test ${ac_cv_sizeof_sockaddr_un_sun_path+y}
35770 then :
35771 printf %s "(cached) " >&6
35772 else case e in #(
35773 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (sockaddr_un.sun_path))" "ac_cv_sizeof_sockaddr_un_sun_path" "
35774 $ac_includes_default
35775
35776 #ifdef HAVE_SYS_UN_H
35777 #include <sys/un.h>
35778 #endif
35779 struct sockaddr_un sockaddr_un;
35780
35781 "
35782 then :
35783
35784 else case e in #(
35785 e) if test "$ac_cv_type_sockaddr_un_sun_path" = yes; then
35786 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
35787 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
35788 as_fn_error 77 "cannot compute sizeof (sockaddr_un.sun_path)
35789 See 'config.log' for more details" "$LINENO" 5; }
35790 else
35791 ac_cv_sizeof_sockaddr_un_sun_path=0
35792 fi ;;
35793 esac
35794 fi
35795 ;;
35796 esac
35797 fi
35798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_sockaddr_un_sun_path" >&5
35799 printf "%s\n" "$ac_cv_sizeof_sockaddr_un_sun_path" >&6; }
35800
35801
35802
35803 printf "%s\n" "#define SIZEOF_SOCKADDR_UN_SUN_PATH $ac_cv_sizeof_sockaddr_un_sun_path" >>confdefs.h
35804
35805
35806
35807 # struct statfs
35808 # Agent:
35809 #
35810 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "
35811 $ac_includes_default
35812
35813 #ifdef HAVE_SYS_STATFS_H
35814 #include <sys/statfs.h>
35815 #endif
35816 #ifdef HAVE_SYS_PARAM_H
35817 #include <sys/param.h>
35818 #endif
35819 #ifdef HAVE_SYS_MOUNT_H
35820 #include <sys/mount.h>
35821 #endif
35822 #ifdef HAVE_NBUTIL_H
35823 #include <nbutil.h>
35824 #endif
35825
35826 "
35827 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes
35828 then :
35829
35830 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FAVAIL 1" >>confdefs.h
35831
35832
35833 fi
35834 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "
35835 $ac_includes_default
35836
35837 #ifdef HAVE_SYS_STATFS_H
35838 #include <sys/statfs.h>
35839 #endif
35840 #ifdef HAVE_SYS_PARAM_H
35841 #include <sys/param.h>
35842 #endif
35843 #ifdef HAVE_SYS_MOUNT_H
35844 #include <sys/mount.h>
35845 #endif
35846 #ifdef HAVE_NBUTIL_H
35847 #include <nbutil.h>
35848 #endif
35849
35850 "
35851 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes
35852 then :
35853
35854 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FFREE 1" >>confdefs.h
35855
35856
35857 fi
35858 ac_fn_c_check_member "$LINENO" "struct statfs" "f_files" "ac_cv_member_struct_statfs_f_files" "
35859 $ac_includes_default
35860
35861 #ifdef HAVE_SYS_STATFS_H
35862 #include <sys/statfs.h>
35863 #endif
35864 #ifdef HAVE_SYS_PARAM_H
35865 #include <sys/param.h>
35866 #endif
35867 #ifdef HAVE_SYS_MOUNT_H
35868 #include <sys/mount.h>
35869 #endif
35870 #ifdef HAVE_NBUTIL_H
35871 #include <nbutil.h>
35872 #endif
35873
35874 "
35875 if test "x$ac_cv_member_struct_statfs_f_files" = xyes
35876 then :
35877
35878 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FILES 1" >>confdefs.h
35879
35880
35881 fi
35882 ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
35883 $ac_includes_default
35884
35885 #ifdef HAVE_SYS_STATFS_H
35886 #include <sys/statfs.h>
35887 #endif
35888 #ifdef HAVE_SYS_PARAM_H
35889 #include <sys/param.h>
35890 #endif
35891 #ifdef HAVE_SYS_MOUNT_H
35892 #include <sys/mount.h>
35893 #endif
35894 #ifdef HAVE_NBUTIL_H
35895 #include <nbutil.h>
35896 #endif
35897
35898 "
35899 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes
35900 then :
35901
35902 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FLAGS 1" >>confdefs.h
35903
35904
35905 fi
35906 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "
35907 $ac_includes_default
35908
35909 #ifdef HAVE_SYS_STATFS_H
35910 #include <sys/statfs.h>
35911 #endif
35912 #ifdef HAVE_SYS_PARAM_H
35913 #include <sys/param.h>
35914 #endif
35915 #ifdef HAVE_SYS_MOUNT_H
35916 #include <sys/mount.h>
35917 #endif
35918 #ifdef HAVE_NBUTIL_H
35919 #include <nbutil.h>
35920 #endif
35921
35922 "
35923 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes
35924 then :
35925
35926 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FRSIZE 1" >>confdefs.h
35927
35928
35929 fi
35930
35931
35932 # struct statvfs
35933 # Agent:
35934 #
35935 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_files" "ac_cv_member_struct_statvfs_f_files" "
35936 $ac_includes_default
35937
35938 #ifdef HAVE_SYS_STATFS_H
35939 #include <sys/statfs.h>
35940 #endif
35941 #ifdef HAVE_SYS_STATVFS_H
35942 #include <sys/statvfs.h>
35943 #endif
35944
35945 "
35946 if test "x$ac_cv_member_struct_statvfs_f_files" = xyes
35947 then :
35948
35949 printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_FILES 1" >>confdefs.h
35950
35951
35952 fi
35953 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_frsize" "ac_cv_member_struct_statvfs_f_frsize" "
35954 $ac_includes_default
35955
35956 #ifdef HAVE_SYS_STATFS_H
35957 #include <sys/statfs.h>
35958 #endif
35959 #ifdef HAVE_SYS_STATVFS_H
35960 #include <sys/statvfs.h>
35961 #endif
35962
35963 "
35964 if test "x$ac_cv_member_struct_statvfs_f_frsize" = xyes
35965 then :
35966
35967 printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_FRSIZE 1" >>confdefs.h
35968
35969
35970 fi
35971 ac_fn_c_check_member "$LINENO" "struct statvfs" "mnt_dir" "ac_cv_member_struct_statvfs_mnt_dir" "
35972 $ac_includes_default
35973
35974 #ifdef HAVE_SYS_STATFS_H
35975 #include <sys/statfs.h>
35976 #endif
35977 #ifdef HAVE_SYS_STATVFS_H
35978 #include <sys/statvfs.h>
35979 #endif
35980
35981 "
35982 if test "x$ac_cv_member_struct_statvfs_mnt_dir" = xyes
35983 then :
35984
35985 printf "%s\n" "#define HAVE_STRUCT_STATVFS_MNT_DIR 1" >>confdefs.h
35986
35987
35988 fi
35989
35990
35991 # struct swdevt
35992 # Not-Used:
35993 #
35994 ac_fn_c_check_member "$LINENO" "struct swdevt" "sw_nblksenabled" "ac_cv_member_struct_swdevt_sw_nblksenabled" "
35995 $ac_includes_default
35996
35997 #ifdef HAVE_SYS_PARAM_H
35998 #include <sys/param.h>
35999 #endif
36000 #ifdef HAVE_SYS_CONF_H
36001 #include <sys/conf.h>
36002 #endif
36003
36004 "
36005 if test "x$ac_cv_member_struct_swdevt_sw_nblksenabled" = xyes
36006 then :
36007
36008 printf "%s\n" "#define HAVE_STRUCT_SWDEVT_SW_NBLKSENABLED 1" >>confdefs.h
36009
36010
36011 fi
36012
36013
36014 # struct tcpstat
36015 # Agent:
36016 #
36017 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcp_rcvmemdrop" "ac_cv_member_struct_tcpstat_tcp_rcvmemdrop" "
36018 $ac_includes_default
36019
36020 #ifdef HAVE_SYS_PARAM_H
36021 #include <sys/param.h>
36022 #endif
36023 #ifdef HAVE_SYS_TIMEOUT_H
36024 #include <sys/timeout.h>
36025 #endif
36026 #ifdef HAVE_NETINET_TCP_H
36027 #include <netinet/tcp.h>
36028 #endif
36029 #ifdef HAVE_NETINET_TCP_TIMER_H
36030 #include <netinet/tcp_timer.h>
36031 #endif
36032 #ifdef HAVE_NETINET_TCP_VAR_H
36033 #include <netinet/tcp_var.h>
36034 #endif
36035
36036 "
36037 if test "x$ac_cv_member_struct_tcpstat_tcp_rcvmemdrop" = xyes
36038 then :
36039
36040 printf "%s\n" "#define HAVE_STRUCT_TCPSTAT_TCP_RCVMEMDROP 1" >>confdefs.h
36041
36042
36043 fi
36044
36045
36046 # struct tm
36047 # Library:
36048 #
36049 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
36050 $ac_includes_default
36051
36052 #ifdef TIME_WITH_SYS_TIME
36053 # include <sys/time.h>
36054 # include <time.h>
36055 #else
36056 # ifdef HAVE_SYS_TIME_H
36057 # include <sys/time.h>
36058 # else
36059 # include <time.h>
36060 # endif
36061 #endif
36062
36063 "
36064 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
36065 then :
36066
36067 printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
36068
36069
36070 fi
36071 ac_fn_c_check_member "$LINENO" "struct tm" "tm_isdst" "ac_cv_member_struct_tm_tm_isdst" "
36072 $ac_includes_default
36073
36074 #ifdef TIME_WITH_SYS_TIME
36075 # include <sys/time.h>
36076 # include <time.h>
36077 #else
36078 # ifdef HAVE_SYS_TIME_H
36079 # include <sys/time.h>
36080 # else
36081 # include <time.h>
36082 # endif
36083 #endif
36084
36085 "
36086 if test "x$ac_cv_member_struct_tm_tm_isdst" = xyes
36087 then :
36088
36089 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ISDST 1" >>confdefs.h
36090
36091
36092 fi
36093
36094
36095 ac_fn_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "
36096 #ifdef TIME_WITH_SYS_TIME
36097 # include <sys/time.h>
36098 # include <time.h>
36099 #else
36100 # ifdef HAVE_SYS_TIME_H
36101 # include <sys/time.h>
36102 # else
36103 # include <time.h>
36104 # endif
36105 #endif
36106
36107 " "$ac_c_undeclared_builtin_options" "CFLAGS"
36108 if test "x$ac_cv_have_decl_daylight" = xyes
36109 then :
36110 ac_have_decl=1
36111 else case e in #(
36112 e) ac_have_decl=0 ;;
36113 esac
36114 fi
36115 printf "%s\n" "#define HAVE_DECL_DAYLIGHT $ac_have_decl" >>confdefs.h
36116 ac_fn_check_decl "$LINENO" "timezone" "ac_cv_have_decl_timezone" "
36117 #ifdef TIME_WITH_SYS_TIME
36118 # include <sys/time.h>
36119 # include <time.h>
36120 #else
36121 # ifdef HAVE_SYS_TIME_H
36122 # include <sys/time.h>
36123 # else
36124 # include <time.h>
36125 # endif
36126 #endif
36127
36128 " "$ac_c_undeclared_builtin_options" "CFLAGS"
36129 if test "x$ac_cv_have_decl_timezone" = xyes
36130 then :
36131 ac_have_decl=1
36132 else case e in #(
36133 e) ac_have_decl=0 ;;
36134 esac
36135 fi
36136 printf "%s\n" "#define HAVE_DECL_TIMEZONE $ac_have_decl" >>confdefs.h
36137
36138
36139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether timezone is a scalar" >&5
36140 printf %s "checking whether timezone is a scalar... " >&6; }
36141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36142 /* end confdefs.h. */
36143
36144 #ifdef TIME_WITH_SYS_TIME
36145 # include <sys/time.h>
36146 # include <time.h>
36147 #else
36148 # ifdef HAVE_SYS_TIME_H
36149 # include <sys/time.h>
36150 # else
36151 # include <time.h>
36152 # endif
36153 #endif
36154
36155 int
36156 main (void)
36157 {
36158
36159 int a[2];
36160 return &a[timezone] != NULL;
36161
36162 ;
36163 return 0;
36164 }
36165 _ACEOF
36166 if ac_fn_c_try_compile "$LINENO"
36167 then :
36168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36169 printf "%s\n" "yes" >&6; }
36170
36171 printf "%s\n" "#define HAVE_SCALAR_TIMEZONE 1" >>confdefs.h
36172
36173 else case e in #(
36174 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36175 printf "%s\n" "no" >&6; } ;;
36176 esac
36177 fi
36178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36179
36180 # struct timezone
36181 # Library:
36182 #
36183 ac_fn_c_check_member "$LINENO" "struct timezone" "tz_dsttime" "ac_cv_member_struct_timezone_tz_dsttime" "
36184 $ac_includes_default
36185
36186 #ifdef HAVE_SYS_TIMEB_H
36187 # include <sys/timeb.h>
36188 #endif
36189 #ifdef TIME_WITH_SYS_TIME
36190 # include <sys/time.h>
36191 # include <time.h>
36192 #else
36193 # ifdef HAVE_SYS_TIME_H
36194 # include <sys/time.h>
36195 # else
36196 # include <time.h>
36197 # endif
36198 #endif
36199
36200 "
36201 if test "x$ac_cv_member_struct_timezone_tz_dsttime" = xyes
36202 then :
36203
36204 printf "%s\n" "#define HAVE_STRUCT_TIMEZONE_TZ_DSTTIME 1" >>confdefs.h
36205
36206
36207 fi
36208
36209
36210 # struct udpstat
36211 # Agent:
36212 #
36213 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_discard" "ac_cv_member_struct_udpstat_udps_discard" "
36214 $ac_includes_default
36215
36216 #ifdef HAVE_NETINET_IN_H
36217 #include <netinet/in.h>
36218 #endif
36219 #ifdef HAVE_NETINET_IP_VAR_H
36220 #include <netinet/ip_var.h>
36221 #endif
36222 #ifdef HAVE_NETINET_UDP_H
36223 #include <netinet/udp.h>
36224 #endif
36225 #ifdef HAVE_NETINET_UDP_VAR_H
36226 #include <netinet/udp_var.h>
36227 #endif
36228
36229 "
36230 if test "x$ac_cv_member_struct_udpstat_udps_discard" = xyes
36231 then :
36232
36233 printf "%s\n" "#define HAVE_STRUCT_UDPSTAT_UDPS_DISCARD 1" >>confdefs.h
36234
36235
36236 fi
36237 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_fullsock" "ac_cv_member_struct_udpstat_udps_fullsock" "
36238 $ac_includes_default
36239
36240 #ifdef HAVE_NETINET_IN_H
36241 #include <netinet/in.h>
36242 #endif
36243 #ifdef HAVE_NETINET_IP_VAR_H
36244 #include <netinet/ip_var.h>
36245 #endif
36246 #ifdef HAVE_NETINET_UDP_H
36247 #include <netinet/udp.h>
36248 #endif
36249 #ifdef HAVE_NETINET_UDP_VAR_H
36250 #include <netinet/udp_var.h>
36251 #endif
36252
36253 "
36254 if test "x$ac_cv_member_struct_udpstat_udps_fullsock" = xyes
36255 then :
36256
36257 printf "%s\n" "#define HAVE_STRUCT_UDPSTAT_UDPS_FULLSOCK 1" >>confdefs.h
36258
36259
36260 fi
36261 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_noport" "ac_cv_member_struct_udpstat_udps_noport" "
36262 $ac_includes_default
36263
36264 #ifdef HAVE_NETINET_IN_H
36265 #include <netinet/in.h>
36266 #endif
36267 #ifdef HAVE_NETINET_IP_VAR_H
36268 #include <netinet/ip_var.h>
36269 #endif
36270 #ifdef HAVE_NETINET_UDP_H
36271 #include <netinet/udp.h>
36272 #endif
36273 #ifdef HAVE_NETINET_UDP_VAR_H
36274 #include <netinet/udp_var.h>
36275 #endif
36276
36277 "
36278 if test "x$ac_cv_member_struct_udpstat_udps_noport" = xyes
36279 then :
36280
36281 printf "%s\n" "#define HAVE_STRUCT_UDPSTAT_UDPS_NOPORT 1" >>confdefs.h
36282
36283
36284 fi
36285 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_noportbcast" "ac_cv_member_struct_udpstat_udps_noportbcast" "
36286 $ac_includes_default
36287
36288 #ifdef HAVE_NETINET_IN_H
36289 #include <netinet/in.h>
36290 #endif
36291 #ifdef HAVE_NETINET_IP_VAR_H
36292 #include <netinet/ip_var.h>
36293 #endif
36294 #ifdef HAVE_NETINET_UDP_H
36295 #include <netinet/udp.h>
36296 #endif
36297 #ifdef HAVE_NETINET_UDP_VAR_H
36298 #include <netinet/udp_var.h>
36299 #endif
36300
36301 "
36302 if test "x$ac_cv_member_struct_udpstat_udps_noportbcast" = xyes
36303 then :
36304
36305 printf "%s\n" "#define HAVE_STRUCT_UDPSTAT_UDPS_NOPORTBCAST 1" >>confdefs.h
36306
36307
36308 fi
36309 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "
36310 $ac_includes_default
36311
36312 #ifdef HAVE_NETINET_IN_H
36313 #include <netinet/in.h>
36314 #endif
36315 #ifdef HAVE_NETINET_IP_VAR_H
36316 #include <netinet/ip_var.h>
36317 #endif
36318 #ifdef HAVE_NETINET_UDP_H
36319 #include <netinet/udp.h>
36320 #endif
36321 #ifdef HAVE_NETINET_UDP_VAR_H
36322 #include <netinet/udp_var.h>
36323 #endif
36324
36325 "
36326 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes
36327 then :
36328
36329 printf "%s\n" "#define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1" >>confdefs.h
36330
36331
36332 fi
36333 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_opackets" "ac_cv_member_struct_udpstat_udps_opackets" "
36334 $ac_includes_default
36335
36336 #ifdef HAVE_NETINET_IN_H
36337 #include <netinet/in.h>
36338 #endif
36339 #ifdef HAVE_NETINET_IP_VAR_H
36340 #include <netinet/ip_var.h>
36341 #endif
36342 #ifdef HAVE_NETINET_UDP_H
36343 #include <netinet/udp.h>
36344 #endif
36345 #ifdef HAVE_NETINET_UDP_VAR_H
36346 #include <netinet/udp_var.h>
36347 #endif
36348
36349 "
36350 if test "x$ac_cv_member_struct_udpstat_udps_opackets" = xyes
36351 then :
36352
36353 printf "%s\n" "#define HAVE_STRUCT_UDPSTAT_UDPS_OPACKETS 1" >>confdefs.h
36354
36355
36356 fi
36357
36358
36359
36360
36361 ##
36362 # ifnet-related checks:
36363 ##
36364
36365 # Does "struct ifnet" need _KERNEL defined? (Irix)
36366 #
36367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _KERNEL needs to be defined for if_mtu" >&5
36368 printf %s "checking if _KERNEL needs to be defined for if_mtu... " >&6; }
36369 if test ${ac_cv_IFNET_NEEDS_KERNEL+y}
36370 then :
36371 printf %s "(cached) " >&6
36372 else case e in #(
36373 e) ac_cv_IFNET_NEEDS_KERNEL=unknown
36374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36375 /* end confdefs.h. */
36376
36377 #include <sys/types.h>
36378 #ifdef HAVE_SYS_PARAM_H
36379 #include <sys/param.h>
36380 #endif
36381 #ifdef HAVE_SYS_SOCKET_H
36382 #include <sys/socket.h>
36383 #endif
36384 #ifdef HAVE_NET_IF_H
36385 #include <net/if.h>
36386 #endif
36387 #ifdef HAVE_NET_IF_VAR_H
36388 #include <net/if_var.h>
36389 #endif
36390
36391 int
36392 main (void)
36393 {
36394 struct ifnet test; test.if_mtu = 0; return sizeof(struct in_ifaddr);
36395 ;
36396 return 0;
36397 }
36398 _ACEOF
36399 if ac_fn_c_try_compile "$LINENO"
36400 then :
36401 ac_cv_IFNET_NEEDS_KERNEL=no
36402 fi
36403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36404 if test "$ac_cv_IFNET_NEEDS_KERNEL" = unknown ; then
36405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36406 /* end confdefs.h. */
36407
36408 #define _KERNEL 1
36409 #include <sys/types.h>
36410 #ifdef HAVE_SYS_PARAM_H
36411 #include <sys/param.h>
36412 #endif
36413 #ifdef HAVE_SYS_SOCKET_H
36414 #include <sys/socket.h>
36415 #endif
36416 #ifdef HAVE_NET_IF_H
36417 #include <net/if.h>
36418 #endif
36419 #ifdef HAVE_NET_IF_VAR_H
36420 #include <net/if_var.h>
36421 #endif
36422
36423 int
36424 main (void)
36425 {
36426 struct ifnet test; test.if_mtu = 0; return sizeof(struct in_ifaddr);
36427 ;
36428 return 0;
36429 }
36430 _ACEOF
36431 if ac_fn_c_try_compile "$LINENO"
36432 then :
36433 ac_cv_IFNET_NEEDS_KERNEL=yes
36434 fi
36435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36436 fi ;;
36437 esac
36438 fi
36439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_IFNET_NEEDS_KERNEL" >&5
36440 printf "%s\n" "$ac_cv_IFNET_NEEDS_KERNEL" >&6; }
36441
36442 if test "x$ac_cv_IFNET_NEEDS_KERNEL" = "xyes"; then
36443
36444 printf "%s\n" "#define NETSNMP_IFNET_NEEDS_KERNEL 1" >>confdefs.h
36445
36446 fi
36447
36448 # Does "struct ifnet" need _KERNEL_STRUCTURES defined? (DragonFly 3)
36449 #
36450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _KERNEL_STRUCTURES needs to be defined for if_mtu" >&5
36451 printf %s "checking if _KERNEL_STRUCTURES needs to be defined for if_mtu... " >&6; }
36452 if test ${ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES+y}
36453 then :
36454 printf %s "(cached) " >&6
36455 else case e in #(
36456 e) ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES=unknown
36457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36458 /* end confdefs.h. */
36459
36460 #include <sys/types.h>
36461 #ifdef HAVE_SYS_PARAM_H
36462 #include <sys/param.h>
36463 #endif
36464 #ifdef HAVE_SYS_SOCKET_H
36465 #include <sys/socket.h>
36466 #endif
36467 #ifdef HAVE_NET_IF_H
36468 #include <net/if.h>
36469 #endif
36470 #ifdef HAVE_NET_IF_VAR_H
36471 #include <net/if_var.h>
36472 #endif
36473
36474 int
36475 main (void)
36476 {
36477 struct ifnet test; test.if_mtu = 0; return sizeof(struct in_ifaddr);
36478 ;
36479 return 0;
36480 }
36481 _ACEOF
36482 if ac_fn_c_try_compile "$LINENO"
36483 then :
36484 ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES=no
36485 fi
36486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36487 if test "$ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES" = unknown ; then
36488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36489 /* end confdefs.h. */
36490
36491 #define _KERNEL_STRUCTURES 1
36492 #include <sys/types.h>
36493 #ifdef HAVE_SYS_PARAM_H
36494 #include <sys/param.h>
36495 #endif
36496 #ifdef HAVE_SYS_SOCKET_H
36497 #include <sys/socket.h>
36498 #endif
36499 #ifdef HAVE_NET_IF_H
36500 #include <net/if.h>
36501 #endif
36502 #ifdef HAVE_NET_IF_VAR_H
36503 #include <net/if_var.h>
36504 #endif
36505
36506 int
36507 main (void)
36508 {
36509 struct ifnet test; test.if_mtu = 0; return sizeof(struct in_ifaddr);
36510 ;
36511 return 0;
36512 }
36513 _ACEOF
36514 if ac_fn_c_try_compile "$LINENO"
36515 then :
36516 ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES=yes
36517 fi
36518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36519 fi ;;
36520 esac
36521 fi
36522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES" >&5
36523 printf "%s\n" "$ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES" >&6; }
36524
36525 if test "x$ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES" = "xyes"; then
36526
36527 printf "%s\n" "#define NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 1" >>confdefs.h
36528
36529 fi
36530
36531
36532 # struct ifaddr
36533 # Not-Used:
36534 #
36535 ac_fn_c_check_member "$LINENO" "struct ifaddr" "ifa_next" "ac_cv_member_struct_ifaddr_ifa_next" "
36536
36537 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
36538 #define _KERNEL_STRUCTURES 1
36539 #endif
36540 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
36541 #define KERNEL
36542 #if !defined(__DragonFly__)
36543 #define _KERNEL 1
36544 #endif
36545 #endif
36546
36547 $ac_includes_default
36548
36549 #ifdef HAVE_SYS_PARAM_H
36550 #include <sys/param.h>
36551 #endif
36552 #ifdef HAVE_SYS_SOCKET_H
36553 #include <sys/socket.h>
36554 #endif
36555 #ifdef HAVE_SYS_TIME_H
36556 #include <sys/time.h>
36557 #endif
36558 #ifdef HAVE_NET_IF_H
36559 #include <net/if.h>
36560 #endif
36561 #ifdef HAVE_NET_IF_VAR_H
36562 #include <net/if_var.h>
36563 #endif
36564
36565 "
36566 if test "x$ac_cv_member_struct_ifaddr_ifa_next" = xyes
36567 then :
36568
36569 printf "%s\n" "#define HAVE_STRUCT_IFADDR_IFA_NEXT 1" >>confdefs.h
36570
36571
36572 fi
36573
36574
36575 # struct ifnet
36576 # (Broken on FreeBSD - #define'd in <net/if.h>)
36577 # Agent: (?or Not-Used?)
36578 #
36579 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_addrlist" "ac_cv_member_struct_ifnet_if_addrlist" "
36580 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
36581 #define _KERNEL_STRUCTURES 1
36582 #endif
36583 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
36584 #define KERNEL
36585 #if !defined(__DragonFly__)
36586 #define _KERNEL 1
36587 #endif
36588 #endif
36589 #ifdef HAVE_SYS_TYPES_H
36590 #include <sys/types.h>
36591 #endif
36592 #ifdef HAVE_SYS_SOCKET_H
36593 #include <sys/socket.h>
36594 #endif
36595 #ifdef HAVE_SYS_TIME_H
36596 #include <sys/time.h>
36597 #endif
36598 #ifdef HAVE_NET_IF_H
36599 #include <net/if.h>
36600 #endif
36601 #ifdef HAVE_NET_IF_VAR_H
36602 #include <net/if_var.h>
36603 #endif
36604 #ifdef HAVE_SYS_QUEUE_H
36605 #include <sys/queue.h>
36606 #endif
36607 #ifdef linux
36608 struct ifnet {
36609 char *if_name; /* name, e.g. \"en\" or \"lo\" */
36610 short if_unit; /* sub-unit for lower level driver */
36611 short if_mtu; /* maximum transmission unit */
36612 short if_flags; /* up/down, broadcast, etc. */
36613 int if_metric; /* routing metric (external only) */
36614 char if_hwaddr [6]; /* ethernet address */
36615 int if_type; /* interface type: 1=generic,
36616 28=slip, ether=6, loopback=24 */
36617 int if_speed; /* interface speed: in bits/sec */
36618
36619 struct sockaddr if_addr; /* interface's address */
36620 struct sockaddr ifu_broadaddr; /* broadcast address */
36621 struct sockaddr ia_subnetmask; /* interface's mask */
36622
36623 struct ifqueue {
36624 int ifq_len;
36625 int ifq_drops;
36626 } if_snd; /* output queue */
36627 int if_ibytes; /* octets received on interface */
36628 int if_ipackets; /* packets received on interface */
36629 int if_ierrors; /* input errors on interface */
36630 int if_iqdrops; /* input queue overruns */
36631 int if_obytes; /* octets sent on interface */
36632 int if_opackets; /* packets sent on interface */
36633 int if_oerrors; /* output errors on interface */
36634 int if_collisions; /* collisions on csma interfaces */
36635 /* end statistics */
36636 struct ifnet *if_next;
36637 };
36638 #endif
36639
36640 "
36641 if test "x$ac_cv_member_struct_ifnet_if_addrlist" = xyes
36642 then :
36643
36644 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_ADDRLIST 1" >>confdefs.h
36645
36646
36647 fi
36648 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_addrhead.tqh_first" "ac_cv_member_struct_ifnet_if_addrhead_tqh_first" "
36649 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
36650 #define _KERNEL_STRUCTURES 1
36651 #endif
36652 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
36653 #define KERNEL
36654 #if !defined(__DragonFly__)
36655 #define _KERNEL 1
36656 #endif
36657 #endif
36658 #ifdef HAVE_SYS_TYPES_H
36659 #include <sys/types.h>
36660 #endif
36661 #ifdef HAVE_SYS_SOCKET_H
36662 #include <sys/socket.h>
36663 #endif
36664 #ifdef HAVE_SYS_TIME_H
36665 #include <sys/time.h>
36666 #endif
36667 #ifdef HAVE_NET_IF_H
36668 #include <net/if.h>
36669 #endif
36670 #ifdef HAVE_NET_IF_VAR_H
36671 #include <net/if_var.h>
36672 #endif
36673 #ifdef HAVE_SYS_QUEUE_H
36674 #include <sys/queue.h>
36675 #endif
36676 #ifdef linux
36677 struct ifnet {
36678 char *if_name; /* name, e.g. \"en\" or \"lo\" */
36679 short if_unit; /* sub-unit for lower level driver */
36680 short if_mtu; /* maximum transmission unit */
36681 short if_flags; /* up/down, broadcast, etc. */
36682 int if_metric; /* routing metric (external only) */
36683 char if_hwaddr [6]; /* ethernet address */
36684 int if_type; /* interface type: 1=generic,
36685 28=slip, ether=6, loopback=24 */
36686 int if_speed; /* interface speed: in bits/sec */
36687
36688 struct sockaddr if_addr; /* interface's address */
36689 struct sockaddr ifu_broadaddr; /* broadcast address */
36690 struct sockaddr ia_subnetmask; /* interface's mask */
36691
36692 struct ifqueue {
36693 int ifq_len;
36694 int ifq_drops;
36695 } if_snd; /* output queue */
36696 int if_ibytes; /* octets received on interface */
36697 int if_ipackets; /* packets received on interface */
36698 int if_ierrors; /* input errors on interface */
36699 int if_iqdrops; /* input queue overruns */
36700 int if_obytes; /* octets sent on interface */
36701 int if_opackets; /* packets sent on interface */
36702 int if_oerrors; /* output errors on interface */
36703 int if_collisions; /* collisions on csma interfaces */
36704 /* end statistics */
36705 struct ifnet *if_next;
36706 };
36707 #endif
36708
36709 "
36710 if test "x$ac_cv_member_struct_ifnet_if_addrhead_tqh_first" = xyes
36711 then :
36712
36713 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_ADDRHEAD_TQH_FIRST 1" >>confdefs.h
36714
36715
36716 fi
36717 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_baudrate" "ac_cv_member_struct_ifnet_if_baudrate" "
36718 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
36719 #define _KERNEL_STRUCTURES 1
36720 #endif
36721 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
36722 #define KERNEL
36723 #if !defined(__DragonFly__)
36724 #define _KERNEL 1
36725 #endif
36726 #endif
36727 #ifdef HAVE_SYS_TYPES_H
36728 #include <sys/types.h>
36729 #endif
36730 #ifdef HAVE_SYS_SOCKET_H
36731 #include <sys/socket.h>
36732 #endif
36733 #ifdef HAVE_SYS_TIME_H
36734 #include <sys/time.h>
36735 #endif
36736 #ifdef HAVE_NET_IF_H
36737 #include <net/if.h>
36738 #endif
36739 #ifdef HAVE_NET_IF_VAR_H
36740 #include <net/if_var.h>
36741 #endif
36742 #ifdef HAVE_SYS_QUEUE_H
36743 #include <sys/queue.h>
36744 #endif
36745 #ifdef linux
36746 struct ifnet {
36747 char *if_name; /* name, e.g. \"en\" or \"lo\" */
36748 short if_unit; /* sub-unit for lower level driver */
36749 short if_mtu; /* maximum transmission unit */
36750 short if_flags; /* up/down, broadcast, etc. */
36751 int if_metric; /* routing metric (external only) */
36752 char if_hwaddr [6]; /* ethernet address */
36753 int if_type; /* interface type: 1=generic,
36754 28=slip, ether=6, loopback=24 */
36755 int if_speed; /* interface speed: in bits/sec */
36756
36757 struct sockaddr if_addr; /* interface's address */
36758 struct sockaddr ifu_broadaddr; /* broadcast address */
36759 struct sockaddr ia_subnetmask; /* interface's mask */
36760
36761 struct ifqueue {
36762 int ifq_len;
36763 int ifq_drops;
36764 } if_snd; /* output queue */
36765 int if_ibytes; /* octets received on interface */
36766 int if_ipackets; /* packets received on interface */
36767 int if_ierrors; /* input errors on interface */
36768 int if_iqdrops; /* input queue overruns */
36769 int if_obytes; /* octets sent on interface */
36770 int if_opackets; /* packets sent on interface */
36771 int if_oerrors; /* output errors on interface */
36772 int if_collisions; /* collisions on csma interfaces */
36773 /* end statistics */
36774 struct ifnet *if_next;
36775 };
36776 #endif
36777
36778 "
36779 if test "x$ac_cv_member_struct_ifnet_if_baudrate" = xyes
36780 then :
36781
36782 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_BAUDRATE 1" >>confdefs.h
36783
36784
36785 fi
36786 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_baudrate.ifs_value" "ac_cv_member_struct_ifnet_if_baudrate_ifs_value" "
36787 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
36788 #define _KERNEL_STRUCTURES 1
36789 #endif
36790 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
36791 #define KERNEL
36792 #if !defined(__DragonFly__)
36793 #define _KERNEL 1
36794 #endif
36795 #endif
36796 #ifdef HAVE_SYS_TYPES_H
36797 #include <sys/types.h>
36798 #endif
36799 #ifdef HAVE_SYS_SOCKET_H
36800 #include <sys/socket.h>
36801 #endif
36802 #ifdef HAVE_SYS_TIME_H
36803 #include <sys/time.h>
36804 #endif
36805 #ifdef HAVE_NET_IF_H
36806 #include <net/if.h>
36807 #endif
36808 #ifdef HAVE_NET_IF_VAR_H
36809 #include <net/if_var.h>
36810 #endif
36811 #ifdef HAVE_SYS_QUEUE_H
36812 #include <sys/queue.h>
36813 #endif
36814 #ifdef linux
36815 struct ifnet {
36816 char *if_name; /* name, e.g. \"en\" or \"lo\" */
36817 short if_unit; /* sub-unit for lower level driver */
36818 short if_mtu; /* maximum transmission unit */
36819 short if_flags; /* up/down, broadcast, etc. */
36820 int if_metric; /* routing metric (external only) */
36821 char if_hwaddr [6]; /* ethernet address */
36822 int if_type; /* interface type: 1=generic,
36823 28=slip, ether=6, loopback=24 */
36824 int if_speed; /* interface speed: in bits/sec */
36825
36826 struct sockaddr if_addr; /* interface's address */
36827 struct sockaddr ifu_broadaddr; /* broadcast address */
36828 struct sockaddr ia_subnetmask; /* interface's mask */
36829
36830 struct ifqueue {
36831 int ifq_len;
36832 int ifq_drops;
36833 } if_snd; /* output queue */
36834 int if_ibytes; /* octets received on interface */
36835 int if_ipackets; /* packets received on interface */
36836 int if_ierrors; /* input errors on interface */
36837 int if_iqdrops; /* input queue overruns */
36838 int if_obytes; /* octets sent on interface */
36839 int if_opackets; /* packets sent on interface */
36840 int if_oerrors; /* output errors on interface */
36841 int if_collisions; /* collisions on csma interfaces */
36842 /* end statistics */
36843 struct ifnet *if_next;
36844 };
36845 #endif
36846
36847 "
36848 if test "x$ac_cv_member_struct_ifnet_if_baudrate_ifs_value" = xyes
36849 then :
36850
36851 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_BAUDRATE_IFS_VALUE 1" >>confdefs.h
36852
36853
36854 fi
36855 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_ibytes" "ac_cv_member_struct_ifnet_if_ibytes" "
36856 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
36857 #define _KERNEL_STRUCTURES 1
36858 #endif
36859 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
36860 #define KERNEL
36861 #if !defined(__DragonFly__)
36862 #define _KERNEL 1
36863 #endif
36864 #endif
36865 #ifdef HAVE_SYS_TYPES_H
36866 #include <sys/types.h>
36867 #endif
36868 #ifdef HAVE_SYS_SOCKET_H
36869 #include <sys/socket.h>
36870 #endif
36871 #ifdef HAVE_SYS_TIME_H
36872 #include <sys/time.h>
36873 #endif
36874 #ifdef HAVE_NET_IF_H
36875 #include <net/if.h>
36876 #endif
36877 #ifdef HAVE_NET_IF_VAR_H
36878 #include <net/if_var.h>
36879 #endif
36880 #ifdef HAVE_SYS_QUEUE_H
36881 #include <sys/queue.h>
36882 #endif
36883 #ifdef linux
36884 struct ifnet {
36885 char *if_name; /* name, e.g. \"en\" or \"lo\" */
36886 short if_unit; /* sub-unit for lower level driver */
36887 short if_mtu; /* maximum transmission unit */
36888 short if_flags; /* up/down, broadcast, etc. */
36889 int if_metric; /* routing metric (external only) */
36890 char if_hwaddr [6]; /* ethernet address */
36891 int if_type; /* interface type: 1=generic,
36892 28=slip, ether=6, loopback=24 */
36893 int if_speed; /* interface speed: in bits/sec */
36894
36895 struct sockaddr if_addr; /* interface's address */
36896 struct sockaddr ifu_broadaddr; /* broadcast address */
36897 struct sockaddr ia_subnetmask; /* interface's mask */
36898
36899 struct ifqueue {
36900 int ifq_len;
36901 int ifq_drops;
36902 } if_snd; /* output queue */
36903 int if_ibytes; /* octets received on interface */
36904 int if_ipackets; /* packets received on interface */
36905 int if_ierrors; /* input errors on interface */
36906 int if_iqdrops; /* input queue overruns */
36907 int if_obytes; /* octets sent on interface */
36908 int if_opackets; /* packets sent on interface */
36909 int if_oerrors; /* output errors on interface */
36910 int if_collisions; /* collisions on csma interfaces */
36911 /* end statistics */
36912 struct ifnet *if_next;
36913 };
36914 #endif
36915
36916 "
36917 if test "x$ac_cv_member_struct_ifnet_if_ibytes" = xyes
36918 then :
36919
36920 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_IBYTES 1" >>confdefs.h
36921
36922
36923 fi
36924 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_imcasts" "ac_cv_member_struct_ifnet_if_imcasts" "
36925 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
36926 #define _KERNEL_STRUCTURES 1
36927 #endif
36928 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
36929 #define KERNEL
36930 #if !defined(__DragonFly__)
36931 #define _KERNEL 1
36932 #endif
36933 #endif
36934 #ifdef HAVE_SYS_TYPES_H
36935 #include <sys/types.h>
36936 #endif
36937 #ifdef HAVE_SYS_SOCKET_H
36938 #include <sys/socket.h>
36939 #endif
36940 #ifdef HAVE_SYS_TIME_H
36941 #include <sys/time.h>
36942 #endif
36943 #ifdef HAVE_NET_IF_H
36944 #include <net/if.h>
36945 #endif
36946 #ifdef HAVE_NET_IF_VAR_H
36947 #include <net/if_var.h>
36948 #endif
36949 #ifdef HAVE_SYS_QUEUE_H
36950 #include <sys/queue.h>
36951 #endif
36952 #ifdef linux
36953 struct ifnet {
36954 char *if_name; /* name, e.g. \"en\" or \"lo\" */
36955 short if_unit; /* sub-unit for lower level driver */
36956 short if_mtu; /* maximum transmission unit */
36957 short if_flags; /* up/down, broadcast, etc. */
36958 int if_metric; /* routing metric (external only) */
36959 char if_hwaddr [6]; /* ethernet address */
36960 int if_type; /* interface type: 1=generic,
36961 28=slip, ether=6, loopback=24 */
36962 int if_speed; /* interface speed: in bits/sec */
36963
36964 struct sockaddr if_addr; /* interface's address */
36965 struct sockaddr ifu_broadaddr; /* broadcast address */
36966 struct sockaddr ia_subnetmask; /* interface's mask */
36967
36968 struct ifqueue {
36969 int ifq_len;
36970 int ifq_drops;
36971 } if_snd; /* output queue */
36972 int if_ibytes; /* octets received on interface */
36973 int if_ipackets; /* packets received on interface */
36974 int if_ierrors; /* input errors on interface */
36975 int if_iqdrops; /* input queue overruns */
36976 int if_obytes; /* octets sent on interface */
36977 int if_opackets; /* packets sent on interface */
36978 int if_oerrors; /* output errors on interface */
36979 int if_collisions; /* collisions on csma interfaces */
36980 /* end statistics */
36981 struct ifnet *if_next;
36982 };
36983 #endif
36984
36985 "
36986 if test "x$ac_cv_member_struct_ifnet_if_imcasts" = xyes
36987 then :
36988
36989 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_IMCASTS 1" >>confdefs.h
36990
36991
36992 fi
36993 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_iqdrops" "ac_cv_member_struct_ifnet_if_iqdrops" "
36994 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
36995 #define _KERNEL_STRUCTURES 1
36996 #endif
36997 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
36998 #define KERNEL
36999 #if !defined(__DragonFly__)
37000 #define _KERNEL 1
37001 #endif
37002 #endif
37003 #ifdef HAVE_SYS_TYPES_H
37004 #include <sys/types.h>
37005 #endif
37006 #ifdef HAVE_SYS_SOCKET_H
37007 #include <sys/socket.h>
37008 #endif
37009 #ifdef HAVE_SYS_TIME_H
37010 #include <sys/time.h>
37011 #endif
37012 #ifdef HAVE_NET_IF_H
37013 #include <net/if.h>
37014 #endif
37015 #ifdef HAVE_NET_IF_VAR_H
37016 #include <net/if_var.h>
37017 #endif
37018 #ifdef HAVE_SYS_QUEUE_H
37019 #include <sys/queue.h>
37020 #endif
37021 #ifdef linux
37022 struct ifnet {
37023 char *if_name; /* name, e.g. \"en\" or \"lo\" */
37024 short if_unit; /* sub-unit for lower level driver */
37025 short if_mtu; /* maximum transmission unit */
37026 short if_flags; /* up/down, broadcast, etc. */
37027 int if_metric; /* routing metric (external only) */
37028 char if_hwaddr [6]; /* ethernet address */
37029 int if_type; /* interface type: 1=generic,
37030 28=slip, ether=6, loopback=24 */
37031 int if_speed; /* interface speed: in bits/sec */
37032
37033 struct sockaddr if_addr; /* interface's address */
37034 struct sockaddr ifu_broadaddr; /* broadcast address */
37035 struct sockaddr ia_subnetmask; /* interface's mask */
37036
37037 struct ifqueue {
37038 int ifq_len;
37039 int ifq_drops;
37040 } if_snd; /* output queue */
37041 int if_ibytes; /* octets received on interface */
37042 int if_ipackets; /* packets received on interface */
37043 int if_ierrors; /* input errors on interface */
37044 int if_iqdrops; /* input queue overruns */
37045 int if_obytes; /* octets sent on interface */
37046 int if_opackets; /* packets sent on interface */
37047 int if_oerrors; /* output errors on interface */
37048 int if_collisions; /* collisions on csma interfaces */
37049 /* end statistics */
37050 struct ifnet *if_next;
37051 };
37052 #endif
37053
37054 "
37055 if test "x$ac_cv_member_struct_ifnet_if_iqdrops" = xyes
37056 then :
37057
37058 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_IQDROPS 1" >>confdefs.h
37059
37060
37061 fi
37062 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_lastchange.tv_sec" "ac_cv_member_struct_ifnet_if_lastchange_tv_sec" "
37063 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
37064 #define _KERNEL_STRUCTURES 1
37065 #endif
37066 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
37067 #define KERNEL
37068 #if !defined(__DragonFly__)
37069 #define _KERNEL 1
37070 #endif
37071 #endif
37072 #ifdef HAVE_SYS_TYPES_H
37073 #include <sys/types.h>
37074 #endif
37075 #ifdef HAVE_SYS_SOCKET_H
37076 #include <sys/socket.h>
37077 #endif
37078 #ifdef HAVE_SYS_TIME_H
37079 #include <sys/time.h>
37080 #endif
37081 #ifdef HAVE_NET_IF_H
37082 #include <net/if.h>
37083 #endif
37084 #ifdef HAVE_NET_IF_VAR_H
37085 #include <net/if_var.h>
37086 #endif
37087 #ifdef HAVE_SYS_QUEUE_H
37088 #include <sys/queue.h>
37089 #endif
37090 #ifdef linux
37091 struct ifnet {
37092 char *if_name; /* name, e.g. \"en\" or \"lo\" */
37093 short if_unit; /* sub-unit for lower level driver */
37094 short if_mtu; /* maximum transmission unit */
37095 short if_flags; /* up/down, broadcast, etc. */
37096 int if_metric; /* routing metric (external only) */
37097 char if_hwaddr [6]; /* ethernet address */
37098 int if_type; /* interface type: 1=generic,
37099 28=slip, ether=6, loopback=24 */
37100 int if_speed; /* interface speed: in bits/sec */
37101
37102 struct sockaddr if_addr; /* interface's address */
37103 struct sockaddr ifu_broadaddr; /* broadcast address */
37104 struct sockaddr ia_subnetmask; /* interface's mask */
37105
37106 struct ifqueue {
37107 int ifq_len;
37108 int ifq_drops;
37109 } if_snd; /* output queue */
37110 int if_ibytes; /* octets received on interface */
37111 int if_ipackets; /* packets received on interface */
37112 int if_ierrors; /* input errors on interface */
37113 int if_iqdrops; /* input queue overruns */
37114 int if_obytes; /* octets sent on interface */
37115 int if_opackets; /* packets sent on interface */
37116 int if_oerrors; /* output errors on interface */
37117 int if_collisions; /* collisions on csma interfaces */
37118 /* end statistics */
37119 struct ifnet *if_next;
37120 };
37121 #endif
37122
37123 "
37124 if test "x$ac_cv_member_struct_ifnet_if_lastchange_tv_sec" = xyes
37125 then :
37126
37127 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_LASTCHANGE_TV_SEC 1" >>confdefs.h
37128
37129
37130 fi
37131 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_lastchange.tv_nsec" "ac_cv_member_struct_ifnet_if_lastchange_tv_nsec" "
37132 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
37133 #define _KERNEL_STRUCTURES 1
37134 #endif
37135 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
37136 #define KERNEL
37137 #if !defined(__DragonFly__)
37138 #define _KERNEL 1
37139 #endif
37140 #endif
37141 #ifdef HAVE_SYS_TYPES_H
37142 #include <sys/types.h>
37143 #endif
37144 #ifdef HAVE_SYS_SOCKET_H
37145 #include <sys/socket.h>
37146 #endif
37147 #ifdef HAVE_SYS_TIME_H
37148 #include <sys/time.h>
37149 #endif
37150 #ifdef HAVE_NET_IF_H
37151 #include <net/if.h>
37152 #endif
37153 #ifdef HAVE_NET_IF_VAR_H
37154 #include <net/if_var.h>
37155 #endif
37156 #ifdef HAVE_SYS_QUEUE_H
37157 #include <sys/queue.h>
37158 #endif
37159 #ifdef linux
37160 struct ifnet {
37161 char *if_name; /* name, e.g. \"en\" or \"lo\" */
37162 short if_unit; /* sub-unit for lower level driver */
37163 short if_mtu; /* maximum transmission unit */
37164 short if_flags; /* up/down, broadcast, etc. */
37165 int if_metric; /* routing metric (external only) */
37166 char if_hwaddr [6]; /* ethernet address */
37167 int if_type; /* interface type: 1=generic,
37168 28=slip, ether=6, loopback=24 */
37169 int if_speed; /* interface speed: in bits/sec */
37170
37171 struct sockaddr if_addr; /* interface's address */
37172 struct sockaddr ifu_broadaddr; /* broadcast address */
37173 struct sockaddr ia_subnetmask; /* interface's mask */
37174
37175 struct ifqueue {
37176 int ifq_len;
37177 int ifq_drops;
37178 } if_snd; /* output queue */
37179 int if_ibytes; /* octets received on interface */
37180 int if_ipackets; /* packets received on interface */
37181 int if_ierrors; /* input errors on interface */
37182 int if_iqdrops; /* input queue overruns */
37183 int if_obytes; /* octets sent on interface */
37184 int if_opackets; /* packets sent on interface */
37185 int if_oerrors; /* output errors on interface */
37186 int if_collisions; /* collisions on csma interfaces */
37187 /* end statistics */
37188 struct ifnet *if_next;
37189 };
37190 #endif
37191
37192 "
37193 if test "x$ac_cv_member_struct_ifnet_if_lastchange_tv_nsec" = xyes
37194 then :
37195
37196 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_LASTCHANGE_TV_NSEC 1" >>confdefs.h
37197
37198
37199 fi
37200 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_mtu" "ac_cv_member_struct_ifnet_if_mtu" "
37201 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
37202 #define _KERNEL_STRUCTURES 1
37203 #endif
37204 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
37205 #define KERNEL
37206 #if !defined(__DragonFly__)
37207 #define _KERNEL 1
37208 #endif
37209 #endif
37210 #ifdef HAVE_SYS_TYPES_H
37211 #include <sys/types.h>
37212 #endif
37213 #ifdef HAVE_SYS_SOCKET_H
37214 #include <sys/socket.h>
37215 #endif
37216 #ifdef HAVE_SYS_TIME_H
37217 #include <sys/time.h>
37218 #endif
37219 #ifdef HAVE_NET_IF_H
37220 #include <net/if.h>
37221 #endif
37222 #ifdef HAVE_NET_IF_VAR_H
37223 #include <net/if_var.h>
37224 #endif
37225 #ifdef HAVE_SYS_QUEUE_H
37226 #include <sys/queue.h>
37227 #endif
37228 #ifdef linux
37229 struct ifnet {
37230 char *if_name; /* name, e.g. \"en\" or \"lo\" */
37231 short if_unit; /* sub-unit for lower level driver */
37232 short if_mtu; /* maximum transmission unit */
37233 short if_flags; /* up/down, broadcast, etc. */
37234 int if_metric; /* routing metric (external only) */
37235 char if_hwaddr [6]; /* ethernet address */
37236 int if_type; /* interface type: 1=generic,
37237 28=slip, ether=6, loopback=24 */
37238 int if_speed; /* interface speed: in bits/sec */
37239
37240 struct sockaddr if_addr; /* interface's address */
37241 struct sockaddr ifu_broadaddr; /* broadcast address */
37242 struct sockaddr ia_subnetmask; /* interface's mask */
37243
37244 struct ifqueue {
37245 int ifq_len;
37246 int ifq_drops;
37247 } if_snd; /* output queue */
37248 int if_ibytes; /* octets received on interface */
37249 int if_ipackets; /* packets received on interface */
37250 int if_ierrors; /* input errors on interface */
37251 int if_iqdrops; /* input queue overruns */
37252 int if_obytes; /* octets sent on interface */
37253 int if_opackets; /* packets sent on interface */
37254 int if_oerrors; /* output errors on interface */
37255 int if_collisions; /* collisions on csma interfaces */
37256 /* end statistics */
37257 struct ifnet *if_next;
37258 };
37259 #endif
37260
37261 "
37262 if test "x$ac_cv_member_struct_ifnet_if_mtu" = xyes
37263 then :
37264
37265 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_MTU 1" >>confdefs.h
37266
37267
37268 fi
37269 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_noproto" "ac_cv_member_struct_ifnet_if_noproto" "
37270 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
37271 #define _KERNEL_STRUCTURES 1
37272 #endif
37273 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
37274 #define KERNEL
37275 #if !defined(__DragonFly__)
37276 #define _KERNEL 1
37277 #endif
37278 #endif
37279 #ifdef HAVE_SYS_TYPES_H
37280 #include <sys/types.h>
37281 #endif
37282 #ifdef HAVE_SYS_SOCKET_H
37283 #include <sys/socket.h>
37284 #endif
37285 #ifdef HAVE_SYS_TIME_H
37286 #include <sys/time.h>
37287 #endif
37288 #ifdef HAVE_NET_IF_H
37289 #include <net/if.h>
37290 #endif
37291 #ifdef HAVE_NET_IF_VAR_H
37292 #include <net/if_var.h>
37293 #endif
37294 #ifdef HAVE_SYS_QUEUE_H
37295 #include <sys/queue.h>
37296 #endif
37297 #ifdef linux
37298 struct ifnet {
37299 char *if_name; /* name, e.g. \"en\" or \"lo\" */
37300 short if_unit; /* sub-unit for lower level driver */
37301 short if_mtu; /* maximum transmission unit */
37302 short if_flags; /* up/down, broadcast, etc. */
37303 int if_metric; /* routing metric (external only) */
37304 char if_hwaddr [6]; /* ethernet address */
37305 int if_type; /* interface type: 1=generic,
37306 28=slip, ether=6, loopback=24 */
37307 int if_speed; /* interface speed: in bits/sec */
37308
37309 struct sockaddr if_addr; /* interface's address */
37310 struct sockaddr ifu_broadaddr; /* broadcast address */
37311 struct sockaddr ia_subnetmask; /* interface's mask */
37312
37313 struct ifqueue {
37314 int ifq_len;
37315 int ifq_drops;
37316 } if_snd; /* output queue */
37317 int if_ibytes; /* octets received on interface */
37318 int if_ipackets; /* packets received on interface */
37319 int if_ierrors; /* input errors on interface */
37320 int if_iqdrops; /* input queue overruns */
37321 int if_obytes; /* octets sent on interface */
37322 int if_opackets; /* packets sent on interface */
37323 int if_oerrors; /* output errors on interface */
37324 int if_collisions; /* collisions on csma interfaces */
37325 /* end statistics */
37326 struct ifnet *if_next;
37327 };
37328 #endif
37329
37330 "
37331 if test "x$ac_cv_member_struct_ifnet_if_noproto" = xyes
37332 then :
37333
37334 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_NOPROTO 1" >>confdefs.h
37335
37336
37337 fi
37338 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_obytes" "ac_cv_member_struct_ifnet_if_obytes" "
37339 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
37340 #define _KERNEL_STRUCTURES 1
37341 #endif
37342 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
37343 #define KERNEL
37344 #if !defined(__DragonFly__)
37345 #define _KERNEL 1
37346 #endif
37347 #endif
37348 #ifdef HAVE_SYS_TYPES_H
37349 #include <sys/types.h>
37350 #endif
37351 #ifdef HAVE_SYS_SOCKET_H
37352 #include <sys/socket.h>
37353 #endif
37354 #ifdef HAVE_SYS_TIME_H
37355 #include <sys/time.h>
37356 #endif
37357 #ifdef HAVE_NET_IF_H
37358 #include <net/if.h>
37359 #endif
37360 #ifdef HAVE_NET_IF_VAR_H
37361 #include <net/if_var.h>
37362 #endif
37363 #ifdef HAVE_SYS_QUEUE_H
37364 #include <sys/queue.h>
37365 #endif
37366 #ifdef linux
37367 struct ifnet {
37368 char *if_name; /* name, e.g. \"en\" or \"lo\" */
37369 short if_unit; /* sub-unit for lower level driver */
37370 short if_mtu; /* maximum transmission unit */
37371 short if_flags; /* up/down, broadcast, etc. */
37372 int if_metric; /* routing metric (external only) */
37373 char if_hwaddr [6]; /* ethernet address */
37374 int if_type; /* interface type: 1=generic,
37375 28=slip, ether=6, loopback=24 */
37376 int if_speed; /* interface speed: in bits/sec */
37377
37378 struct sockaddr if_addr; /* interface's address */
37379 struct sockaddr ifu_broadaddr; /* broadcast address */
37380 struct sockaddr ia_subnetmask; /* interface's mask */
37381
37382 struct ifqueue {
37383 int ifq_len;
37384 int ifq_drops;
37385 } if_snd; /* output queue */
37386 int if_ibytes; /* octets received on interface */
37387 int if_ipackets; /* packets received on interface */
37388 int if_ierrors; /* input errors on interface */
37389 int if_iqdrops; /* input queue overruns */
37390 int if_obytes; /* octets sent on interface */
37391 int if_opackets; /* packets sent on interface */
37392 int if_oerrors; /* output errors on interface */
37393 int if_collisions; /* collisions on csma interfaces */
37394 /* end statistics */
37395 struct ifnet *if_next;
37396 };
37397 #endif
37398
37399 "
37400 if test "x$ac_cv_member_struct_ifnet_if_obytes" = xyes
37401 then :
37402
37403 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_OBYTES 1" >>confdefs.h
37404
37405
37406 fi
37407 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_omcasts" "ac_cv_member_struct_ifnet_if_omcasts" "
37408 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
37409 #define _KERNEL_STRUCTURES 1
37410 #endif
37411 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
37412 #define KERNEL
37413 #if !defined(__DragonFly__)
37414 #define _KERNEL 1
37415 #endif
37416 #endif
37417 #ifdef HAVE_SYS_TYPES_H
37418 #include <sys/types.h>
37419 #endif
37420 #ifdef HAVE_SYS_SOCKET_H
37421 #include <sys/socket.h>
37422 #endif
37423 #ifdef HAVE_SYS_TIME_H
37424 #include <sys/time.h>
37425 #endif
37426 #ifdef HAVE_NET_IF_H
37427 #include <net/if.h>
37428 #endif
37429 #ifdef HAVE_NET_IF_VAR_H
37430 #include <net/if_var.h>
37431 #endif
37432 #ifdef HAVE_SYS_QUEUE_H
37433 #include <sys/queue.h>
37434 #endif
37435 #ifdef linux
37436 struct ifnet {
37437 char *if_name; /* name, e.g. \"en\" or \"lo\" */
37438 short if_unit; /* sub-unit for lower level driver */
37439 short if_mtu; /* maximum transmission unit */
37440 short if_flags; /* up/down, broadcast, etc. */
37441 int if_metric; /* routing metric (external only) */
37442 char if_hwaddr [6]; /* ethernet address */
37443 int if_type; /* interface type: 1=generic,
37444 28=slip, ether=6, loopback=24 */
37445 int if_speed; /* interface speed: in bits/sec */
37446
37447 struct sockaddr if_addr; /* interface's address */
37448 struct sockaddr ifu_broadaddr; /* broadcast address */
37449 struct sockaddr ia_subnetmask; /* interface's mask */
37450
37451 struct ifqueue {
37452 int ifq_len;
37453 int ifq_drops;
37454 } if_snd; /* output queue */
37455 int if_ibytes; /* octets received on interface */
37456 int if_ipackets; /* packets received on interface */
37457 int if_ierrors; /* input errors on interface */
37458 int if_iqdrops; /* input queue overruns */
37459 int if_obytes; /* octets sent on interface */
37460 int if_opackets; /* packets sent on interface */
37461 int if_oerrors; /* output errors on interface */
37462 int if_collisions; /* collisions on csma interfaces */
37463 /* end statistics */
37464 struct ifnet *if_next;
37465 };
37466 #endif
37467
37468 "
37469 if test "x$ac_cv_member_struct_ifnet_if_omcasts" = xyes
37470 then :
37471
37472 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_OMCASTS 1" >>confdefs.h
37473
37474
37475 fi
37476 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_speed" "ac_cv_member_struct_ifnet_if_speed" "
37477 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
37478 #define _KERNEL_STRUCTURES 1
37479 #endif
37480 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
37481 #define KERNEL
37482 #if !defined(__DragonFly__)
37483 #define _KERNEL 1
37484 #endif
37485 #endif
37486 #ifdef HAVE_SYS_TYPES_H
37487 #include <sys/types.h>
37488 #endif
37489 #ifdef HAVE_SYS_SOCKET_H
37490 #include <sys/socket.h>
37491 #endif
37492 #ifdef HAVE_SYS_TIME_H
37493 #include <sys/time.h>
37494 #endif
37495 #ifdef HAVE_NET_IF_H
37496 #include <net/if.h>
37497 #endif
37498 #ifdef HAVE_NET_IF_VAR_H
37499 #include <net/if_var.h>
37500 #endif
37501 #ifdef HAVE_SYS_QUEUE_H
37502 #include <sys/queue.h>
37503 #endif
37504 #ifdef linux
37505 struct ifnet {
37506 char *if_name; /* name, e.g. \"en\" or \"lo\" */
37507 short if_unit; /* sub-unit for lower level driver */
37508 short if_mtu; /* maximum transmission unit */
37509 short if_flags; /* up/down, broadcast, etc. */
37510 int if_metric; /* routing metric (external only) */
37511 char if_hwaddr [6]; /* ethernet address */
37512 int if_type; /* interface type: 1=generic,
37513 28=slip, ether=6, loopback=24 */
37514 int if_speed; /* interface speed: in bits/sec */
37515
37516 struct sockaddr if_addr; /* interface's address */
37517 struct sockaddr ifu_broadaddr; /* broadcast address */
37518 struct sockaddr ia_subnetmask; /* interface's mask */
37519
37520 struct ifqueue {
37521 int ifq_len;
37522 int ifq_drops;
37523 } if_snd; /* output queue */
37524 int if_ibytes; /* octets received on interface */
37525 int if_ipackets; /* packets received on interface */
37526 int if_ierrors; /* input errors on interface */
37527 int if_iqdrops; /* input queue overruns */
37528 int if_obytes; /* octets sent on interface */
37529 int if_opackets; /* packets sent on interface */
37530 int if_oerrors; /* output errors on interface */
37531 int if_collisions; /* collisions on csma interfaces */
37532 /* end statistics */
37533 struct ifnet *if_next;
37534 };
37535 #endif
37536
37537 "
37538 if test "x$ac_cv_member_struct_ifnet_if_speed" = xyes
37539 then :
37540
37541 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_SPEED 1" >>confdefs.h
37542
37543
37544 fi
37545 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_type" "ac_cv_member_struct_ifnet_if_type" "
37546 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
37547 #define _KERNEL_STRUCTURES 1
37548 #endif
37549 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
37550 #define KERNEL
37551 #if !defined(__DragonFly__)
37552 #define _KERNEL 1
37553 #endif
37554 #endif
37555 #ifdef HAVE_SYS_TYPES_H
37556 #include <sys/types.h>
37557 #endif
37558 #ifdef HAVE_SYS_SOCKET_H
37559 #include <sys/socket.h>
37560 #endif
37561 #ifdef HAVE_SYS_TIME_H
37562 #include <sys/time.h>
37563 #endif
37564 #ifdef HAVE_NET_IF_H
37565 #include <net/if.h>
37566 #endif
37567 #ifdef HAVE_NET_IF_VAR_H
37568 #include <net/if_var.h>
37569 #endif
37570 #ifdef HAVE_SYS_QUEUE_H
37571 #include <sys/queue.h>
37572 #endif
37573 #ifdef linux
37574 struct ifnet {
37575 char *if_name; /* name, e.g. \"en\" or \"lo\" */
37576 short if_unit; /* sub-unit for lower level driver */
37577 short if_mtu; /* maximum transmission unit */
37578 short if_flags; /* up/down, broadcast, etc. */
37579 int if_metric; /* routing metric (external only) */
37580 char if_hwaddr [6]; /* ethernet address */
37581 int if_type; /* interface type: 1=generic,
37582 28=slip, ether=6, loopback=24 */
37583 int if_speed; /* interface speed: in bits/sec */
37584
37585 struct sockaddr if_addr; /* interface's address */
37586 struct sockaddr ifu_broadaddr; /* broadcast address */
37587 struct sockaddr ia_subnetmask; /* interface's mask */
37588
37589 struct ifqueue {
37590 int ifq_len;
37591 int ifq_drops;
37592 } if_snd; /* output queue */
37593 int if_ibytes; /* octets received on interface */
37594 int if_ipackets; /* packets received on interface */
37595 int if_ierrors; /* input errors on interface */
37596 int if_iqdrops; /* input queue overruns */
37597 int if_obytes; /* octets sent on interface */
37598 int if_opackets; /* packets sent on interface */
37599 int if_oerrors; /* output errors on interface */
37600 int if_collisions; /* collisions on csma interfaces */
37601 /* end statistics */
37602 struct ifnet *if_next;
37603 };
37604 #endif
37605
37606 "
37607 if test "x$ac_cv_member_struct_ifnet_if_type" = xyes
37608 then :
37609
37610 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_TYPE 1" >>confdefs.h
37611
37612
37613 fi
37614 ac_fn_c_check_member "$LINENO" "struct ifnet" "if_xname" "ac_cv_member_struct_ifnet_if_xname" "
37615 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
37616 #define _KERNEL_STRUCTURES 1
37617 #endif
37618 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
37619 #define KERNEL
37620 #if !defined(__DragonFly__)
37621 #define _KERNEL 1
37622 #endif
37623 #endif
37624 #ifdef HAVE_SYS_TYPES_H
37625 #include <sys/types.h>
37626 #endif
37627 #ifdef HAVE_SYS_SOCKET_H
37628 #include <sys/socket.h>
37629 #endif
37630 #ifdef HAVE_SYS_TIME_H
37631 #include <sys/time.h>
37632 #endif
37633 #ifdef HAVE_NET_IF_H
37634 #include <net/if.h>
37635 #endif
37636 #ifdef HAVE_NET_IF_VAR_H
37637 #include <net/if_var.h>
37638 #endif
37639 #ifdef HAVE_SYS_QUEUE_H
37640 #include <sys/queue.h>
37641 #endif
37642 #ifdef linux
37643 struct ifnet {
37644 char *if_name; /* name, e.g. \"en\" or \"lo\" */
37645 short if_unit; /* sub-unit for lower level driver */
37646 short if_mtu; /* maximum transmission unit */
37647 short if_flags; /* up/down, broadcast, etc. */
37648 int if_metric; /* routing metric (external only) */
37649 char if_hwaddr [6]; /* ethernet address */
37650 int if_type; /* interface type: 1=generic,
37651 28=slip, ether=6, loopback=24 */
37652 int if_speed; /* interface speed: in bits/sec */
37653
37654 struct sockaddr if_addr; /* interface's address */
37655 struct sockaddr ifu_broadaddr; /* broadcast address */
37656 struct sockaddr ia_subnetmask; /* interface's mask */
37657
37658 struct ifqueue {
37659 int ifq_len;
37660 int ifq_drops;
37661 } if_snd; /* output queue */
37662 int if_ibytes; /* octets received on interface */
37663 int if_ipackets; /* packets received on interface */
37664 int if_ierrors; /* input errors on interface */
37665 int if_iqdrops; /* input queue overruns */
37666 int if_obytes; /* octets sent on interface */
37667 int if_opackets; /* packets sent on interface */
37668 int if_oerrors; /* output errors on interface */
37669 int if_collisions; /* collisions on csma interfaces */
37670 /* end statistics */
37671 struct ifnet *if_next;
37672 };
37673 #endif
37674
37675 "
37676 if test "x$ac_cv_member_struct_ifnet_if_xname" = xyes
37677 then :
37678
37679 printf "%s\n" "#define HAVE_STRUCT_IFNET_IF_XNAME 1" >>confdefs.h
37680
37681
37682 fi
37683
37684
37685
37686 # Check for BSD 4.3 vs 4.4 struct rtentry
37687 #
37688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of rtentry structure" >&5
37689 printf %s "checking type of rtentry structure... " >&6; }
37690 if test ${ac_cv_RTENTRY_TYPE+y}
37691 then :
37692 printf %s "(cached) " >&6
37693 else case e in #(
37694 e)
37695 # BSD 4.4 compatible structure
37696 # ('rt_nodes' array)
37697 #
37698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37699 /* end confdefs.h. */
37700
37701 #ifdef HAVE_SYS_PARAM_H
37702 #include <sys/param.h>
37703 #endif
37704 #include <sys/types.h>
37705 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
37706 #define _KERNEL_STRUCTURES 1
37707 #endif
37708 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
37709 #define KERNEL
37710 #if !defined(__DragonFly__)
37711 #define _KERNEL 1
37712 #endif
37713 #endif
37714 #include <sys/socket.h>
37715 #undef KERNEL
37716 #undef _KERNEL
37717 #include <net/route.h>
37718
37719 int
37720 main (void)
37721 {
37722
37723
37724 #ifndef HAVE_STRUCT_RTENTRY_RT_DST
37725 #define rt_dst rt_nodes->rn_key
37726 #endif
37727
37728 struct rtentry rt;
37729 rt.rt_nodes[0].rn_flags = 1;
37730 rt.rt_dst;
37731
37732 ;
37733 return 0;
37734 }
37735 _ACEOF
37736 if ac_fn_c_try_compile "$LINENO"
37737 then :
37738 ac_cv_RTENTRY_TYPE="BSD-4.4"
37739 fi
37740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37741
37742 if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
37743 # BSD 4.3 compatible structure
37744 # ('rt_hash')
37745 #
37746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37747 /* end confdefs.h. */
37748
37749 #ifdef HAVE_SYS_PARAM_H
37750 #include <sys/param.h>
37751 #endif
37752 #include <sys/types.h>
37753 #ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES
37754 #define _KERNEL_STRUCTURES 1
37755 #endif
37756 #ifdef NETSNMP_IFNET_NEEDS_KERNEL
37757 #define KERNEL
37758 #if !defined(__DragonFly__)
37759 #define _KERNEL 1
37760 #endif
37761 #endif
37762 #include <sys/socket.h>
37763 #undef KERNEL
37764 #undef _KERNEL
37765 #include <net/route.h>
37766
37767 int
37768 main (void)
37769 {
37770
37771
37772 struct rtentry rt;
37773 rt.rt_hash;
37774
37775 ;
37776 return 0;
37777 }
37778 _ACEOF
37779 if ac_fn_c_try_compile "$LINENO"
37780 then :
37781 ac_cv_RTENTRY_TYPE="BSD-4.3"
37782 fi
37783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37784 fi
37785
37786 if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
37787 # Neither BSD 4.3 nor 4.4 compatible structure
37788 #
37789 ac_cv_RTENTRY_TYPE="unknown"
37790 fi
37791 ;;
37792 esac
37793 fi
37794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_RTENTRY_TYPE" >&5
37795 printf "%s\n" "$ac_cv_RTENTRY_TYPE" >&6; }
37796
37797 if test "x$ac_cv_RTENTRY_TYPE" = "xBSD-4.4"; then
37798
37799 printf "%s\n" "#define RTENTRY_4_4 1" >>confdefs.h
37800
37801 fi
37802
37803 # Check for ortentry (Alpha)
37804 #
37805 if test "x$ac_cv_RTENTRY_TYPE" = "xunknown"; then
37806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct rtentry" >&5
37807 printf %s "checking for struct rtentry... " >&6; }
37808 if test ${ac_cv_struct_rtentry+y}
37809 then :
37810 printf %s "(cached) " >&6
37811 else case e in #(
37812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37813 /* end confdefs.h. */
37814
37815 #define KERNEL
37816 #include <net/route.h>
37817
37818 _ACEOF
37819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37820 $EGREP_TRADITIONAL "ortentry" >/dev/null 2>&1
37821 then :
37822 ac_cv_struct_rtentry=ortentry
37823 else case e in #(
37824 e) ac_cv_struct_rtentry=rtentry ;;
37825 esac
37826 fi
37827 rm -rf conftest*
37828
37829 if test "x$ac_cv_struct_rtentry" = "xrtentry" ; then
37830 ac_cv_struct_rtentry="rtentry"
37831 else
37832 ac_cv_struct_rtentry="ortentry"
37833 fi
37834 ;;
37835 esac
37836 fi
37837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rtentry" >&5
37838 printf "%s\n" "$ac_cv_struct_rtentry" >&6; }
37839 else
37840 RTENTRY_TYPE="rtentry"
37841 ac_cv_struct_rtentry="rtentry"
37842 fi
37843
37844 if test "x$ac_cv_struct_rtentry" = "x"; then
37845 ac_cv_struct_rtentry=rtentry
37846 fi
37847
37848 printf "%s\n" "#define RTENTRY struct ${ac_cv_struct_rtentry}" >>confdefs.h
37849
37850
37851 # prioritynames
37852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking syslog prioritynames" >&5
37853 printf %s "checking syslog prioritynames... " >&6; }
37854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37855 /* end confdefs.h. */
37856
37857 #include <stdio.h>
37858 #ifdef HAVE_SYSLOG_H
37859 #define SYSLOG_NAMES
37860 #include <syslog.h>
37861 #endif
37862
37863 int
37864 main (void)
37865 {
37866
37867 char *test = prioritynames[0].c_name;
37868 printf("%s\n", test); /* so it's not unused */
37869
37870 ;
37871 return 0;
37872 }
37873 _ACEOF
37874 if ac_fn_c_try_link "$LINENO"
37875 then :
37876
37877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37878 printf "%s\n" "yes" >&6; }
37879
37880 printf "%s\n" "#define HAVE_PRIORITYNAMES 1" >>confdefs.h
37881
37882
37883 else case e in #(
37884 e)
37885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37886 printf "%s\n" "no" >&6; }
37887 ;;
37888 esac
37889 fi
37890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37891 conftest$ac_exeext conftest.$ac_ext
37892
37893 # -*- autoconf -*-
37894 #########################################
37895 ##
37896 # Miscellaneous Operating-System characteristics
37897 ##
37898 #########################################
37899
37900
37901 # Determine how to test for character devices
37902 # [We assume that /dev/null does actually exist!]
37903 #
37904 if test -c /dev/null; then
37905 CDEV_TEST_FLAG="-c"
37906 elif test -f /dev/null; then
37907 CDEV_TEST_FLAG="-f"
37908 else
37909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't reliably detect character devices" >&5
37910 printf "%s\n" "$as_me: WARNING: Can't reliably detect character devices" >&2;}
37911 # Is it actually sensible to fall back on "test -f" ?
37912 CDEV_TEST_FLAG="-f"
37913 fi
37914
37915 # Kernel Location
37916 # used in library/agent
37917 #
37918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for location of system kernel" >&5
37919 printf %s "checking for location of system kernel... " >&6; }
37920 if test ${ac_cv_KERNEL_LOC+y}
37921 then :
37922 printf %s "(cached) " >&6
37923 else case e in #(
37924 e) ac_cv_KERNEL_LOC="unknown"
37925 for i in /vmunix /hp-ux /stand/vmunix /dev/ksyms /kernel/unix /kernel/genunix /netbsd /unix /kernel /bsd /mach_kernel /boot/kernel/kernel
37926 do
37927 if test $CDEV_TEST_FLAG $i; then
37928 ac_cv_KERNEL_LOC="$i"
37929 break;
37930 fi
37931 done
37932 #
37933 # In principle, this test is meant to provide a default path to the kernel
37934 # In practice, the test is broken and the kernel path is set to "unknown"
37935 #
37936 # Note that on certain systems (e.g. some Linux distributions),
37937 # it is impossible to predict the name of the kernel,
37938 # particularly if it includes the kernel version, architecture, etc
37939 #
37940 # Since this default will never actually be used, then don't try to set it
37941 #
37942 if test $i = "unknown"; then
37943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't find system kernel... hopefully this won't be needed!" >&5
37944 printf "%s\n" "$as_me: WARNING: Can't find system kernel... hopefully this won't be needed!" >&2;}
37945 fi
37946 ;;
37947 esac
37948 fi
37949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_KERNEL_LOC" >&5
37950 printf "%s\n" "$ac_cv_KERNEL_LOC" >&6; }
37951
37952 printf "%s\n" "#define KERNEL_LOC \"$ac_cv_KERNEL_LOC\"" >>confdefs.h
37953
37954
37955
37956 # Swap device Location
37957 # (/dev/dmem or /dev/drum)
37958 # used in agent only
37959 #
37960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for location of swap device" >&5
37961 printf %s "checking for location of swap device... " >&6; }
37962 if test ${ac_cv_DMEM_LOC+y}
37963 then :
37964 printf %s "(cached) " >&6
37965 else case e in #(
37966 e) if test $CDEV_TEST_FLAG /dev/dmem; then
37967 ac_cv_DMEM_LOC="/dev/dmem"
37968 elif test $CDEV_TEST_FLAG /dev/drum; then
37969 ac_cv_DMEM_LOC="/dev/drum"
37970 else
37971 ac_cv_DMEM_LOC="none"
37972 fi
37973 ;;
37974 esac
37975 fi
37976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_DMEM_LOC" >&5
37977 printf "%s\n" "$ac_cv_DMEM_LOC" >&6; }
37978 #
37979 # Note that it's OK if this device is not found
37980 #
37981 if test "x$ac_cv_DMEM_LOC" != "xnone"; then
37982
37983 printf "%s\n" "#define DMEM_LOC \"$ac_cv_DMEM_LOC\"" >>confdefs.h
37984
37985 fi
37986
37987
37988 # Mount table Location
37989 # used in agent only
37990 #
37991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount table location" >&5
37992 printf %s "checking for mount table location... " >&6; }
37993 if test ${ac_cv_ETC_MNTTAB+y}
37994 then :
37995 printf %s "(cached) " >&6
37996 else case e in #(
37997 e) ac_cv_ETC_MNTTAB="${with_mnttab:-unknown}"
37998 if test "$ac_cv_ETC_MNTTAB" = "unknown"; then
37999 for i in /etc/mnttab /etc/mtab /etc/filesystems /dev/mnttab
38000 do
38001 if test -f $i -o -c $i; then
38002 ac_cv_ETC_MNTTAB="$i"
38003 break;
38004 fi
38005 done
38006 fi
38007 ;;
38008 esac
38009 fi
38010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ETC_MNTTAB" >&5
38011 printf "%s\n" "$ac_cv_ETC_MNTTAB" >&6; }
38012
38013 printf "%s\n" "#define ETC_MNTTAB \"$ac_cv_ETC_MNTTAB\"" >>confdefs.h
38014
38015
38016
38017 # Printing
38018 # used in agent only
38019 #
38020 # Extract the first word of "lpstat", so it can be a program name with args.
38021 set dummy lpstat; ac_word=$2
38022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38023 printf %s "checking for $ac_word... " >&6; }
38024 if test ${ac_cv_path_LPSTAT_PATH+y}
38025 then :
38026 printf %s "(cached) " >&6
38027 else case e in #(
38028 e) case $LPSTAT_PATH in
38029 [\\/]* | ?:[\\/]*)
38030 ac_cv_path_LPSTAT_PATH="$LPSTAT_PATH" # Let the user override the test with a path.
38031 ;;
38032 *)
38033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38034 for as_dir in $PATH
38035 do
38036 IFS=$as_save_IFS
38037 case $as_dir in #(((
38038 '') as_dir=./ ;;
38039 */) ;;
38040 *) as_dir=$as_dir/ ;;
38041 esac
38042 for ac_exec_ext in '' $ac_executable_extensions; do
38043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38044 ac_cv_path_LPSTAT_PATH="$as_dir$ac_word$ac_exec_ext"
38045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38046 break 2
38047 fi
38048 done
38049 done
38050 IFS=$as_save_IFS
38051
38052 ;;
38053 esac ;;
38054 esac
38055 fi
38056 LPSTAT_PATH=$ac_cv_path_LPSTAT_PATH
38057 if test -n "$LPSTAT_PATH"; then
38058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LPSTAT_PATH" >&5
38059 printf "%s\n" "$LPSTAT_PATH" >&6; }
38060 else
38061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38062 printf "%s\n" "no" >&6; }
38063 fi
38064
38065
38066 if test x$LPSTAT_PATH != x; then
38067
38068 printf "%s\n" "#define LPSTAT_PATH \"$LPSTAT_PATH\"" >>confdefs.h
38069
38070
38071 printf "%s\n" "#define HAVE_LPSTAT 1" >>confdefs.h
38072
38073 fi
38074 if test -r /etc/printcap; then
38075
38076 printf "%s\n" "#define HAVE_PRINTCAP 1" >>confdefs.h
38077
38078 fi
38079
38080
38081 # Check ps args
38082 # used in agent only
38083 #
38084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for correct flags to ps" >&5
38085 printf %s "checking for correct flags to ps... " >&6; }
38086 if test ${ac_cv_ps_flags+y}
38087 then :
38088 printf %s "(cached) " >&6
38089 else case e in #(
38090 e)
38091 case "x$PARTIALTARGETOS" in
38092 xcygwin|xmingw32*)
38093 ac_cv_ps_flags="-e";;
38094 *)
38095 ac_cv_ps_flags=""
38096 for args in -e -el acx -acx "-o pid,tt,state,time,ucomm" ax; do
38097 if test "`($PSPROG $args 2>&1) | $EGREP ' (ps) *$' | awk '{print $NF}'`" = "ps"; then
38098 ac_cv_ps_flags=$args
38099 break
38100 fi
38101 done
38102 if test "x${ac_cv_ps_flags}" = x; then
38103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine valid ps flags... defaulting..." >&5
38104 printf "%s\n" "$as_me: WARNING: Unable to determine valid ps flags... defaulting..." >&2;}
38105 ac_cv_ps_flags="-acx"
38106 elif $PSPROG $ac_cv_ps_flags -J 0 >/dev/null 2>&1; then
38107 ac_cv_ps_flags="$ac_cv_ps_flags -J 0"
38108 fi
38109 ;;
38110 esac
38111 ;;
38112 esac
38113 fi
38114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_flags" >&5
38115 printf "%s\n" "$ac_cv_ps_flags" >&6; }
38116
38117 PSCMD="$PSPROG $ac_cv_ps_flags"
38118
38119
38120 printf "%s\n" "#define PSCMD \"$PSPROG $ac_cv_ps_flags\"" >>confdefs.h
38121
38122
38123
38124 ##
38125 # System/Compilation-related
38126 ##
38127
38128 # Test for SIGHUP
38129 #
38130
38131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIGHUP" >&5
38132 printf %s "checking for SIGHUP... " >&6; }
38133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38134 /* end confdefs.h. */
38135 #include <signal.h>
38136 int
38137 main (void)
38138 {
38139 return SIGHUP
38140 ;
38141 return 0;
38142 }
38143 _ACEOF
38144 if ac_fn_c_try_compile "$LINENO"
38145 then :
38146 netsnmp_have_sighup=yes
38147 else case e in #(
38148 e) netsnmp_have_sighup=no
38149 ;;
38150 esac
38151 fi
38152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netsnmp_have_sighup" >&5
38154 printf "%s\n" "$netsnmp_have_sighup" >&6; }
38155 if test "x$netsnmp_have_sighup" = xyes; then
38156
38157 printf "%s\n" "#define HAVE_SIGHUP 1" >>confdefs.h
38158
38159 fi
38160
38161
38162 # Check whether sysctl() is usable
38163 # used in library/agent
38164 #
38165 if test $cross_compiling = yes; then
38166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't check sysctl, manually define NETSNMP_CAN_USE_SYSCTL if platform support available" >&5
38167 printf "%s\n" "$as_me: WARNING: Can't check sysctl, manually define NETSNMP_CAN_USE_SYSCTL if platform support available" >&2;}
38168 else
38169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sysctl can read kernel information" >&5
38170 printf %s "checking if sysctl can read kernel information... " >&6; }
38171 if test ${ac_cv_NETSNMP_CAN_USE_SYSCTL+y}
38172 then :
38173 printf %s "(cached) " >&6
38174 else case e in #(
38175 e) if test "$cross_compiling" = yes
38176 then :
38177 ac_cv_NETSNMP_CAN_USE_SYSCTL=no
38178 else case e in #(
38179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38180 /* end confdefs.h. */
38181
38182 #ifdef TIME_WITH_SYS_TIME
38183 # include <sys/time.h>
38184 # include <time.h>
38185 #else
38186 # ifdef HAVE_SYS_TIME_H
38187 # include <sys/time.h>
38188 # else
38189 # include <time.h>
38190 # endif
38191 #endif
38192 #ifdef HAVE_SYS_PARAM_H
38193 # include <sys/param.h>
38194 #endif
38195 #include <sys/types.h>
38196 #ifdef HAVE_SYS_SYSCTL_H
38197 # include <sys/sysctl.h>
38198 #endif
38199 #include <stddef.h>
38200 #include <stdlib.h>
38201
38202 int main(int argc, char **argv)
38203 {
38204 int mib[2];
38205 size_t len;
38206 struct timeval boottime;
38207
38208 mib[0] = CTL_KERN;
38209 mib[1] = KERN_BOOTTIME;
38210
38211 len = sizeof(boottime);
38212 return 1 - (sysctl(mib, 2, &boottime, &len, NULL, 0) == 0 && boottime.tv_sec);
38213 }
38214
38215 _ACEOF
38216 if ac_fn_c_try_run "$LINENO"
38217 then :
38218 ac_cv_NETSNMP_CAN_USE_SYSCTL=yes
38219 else case e in #(
38220 e) ac_cv_NETSNMP_CAN_USE_SYSCTL=no ;;
38221 esac
38222 fi
38223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38224 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
38225 esac
38226 fi
38227 ;;
38228 esac
38229 fi
38230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_NETSNMP_CAN_USE_SYSCTL" >&5
38231 printf "%s\n" "$ac_cv_NETSNMP_CAN_USE_SYSCTL" >&6; }
38232 fi
38233
38234 if test "x$ac_cv_NETSNMP_CAN_USE_SYSCTL" = "xyes"; then
38235
38236 printf "%s\n" "#define NETSNMP_CAN_USE_SYSCTL 1" >>confdefs.h
38237
38238 fi
38239
38240
38241 # Check whether TCP timer constants are indeed constant
38242 # or depend on the kernel clock tick 'hz'. (FreeBSD)
38243 #
38244 # If the latter, then we will need to have a local
38245 # variable 'hz' defined and with a suitable value,
38246 # whenever we want to use one one of these 'constants'.
38247 #
38248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether TCP timers depend on 'hz'" >&5
38249 printf %s "checking whether TCP timers depend on 'hz'... " >&6; }
38250 if test ${ac_cv_TCPTV_NEEDS_HZ+y}
38251 then :
38252 printf %s "(cached) " >&6
38253 else case e in #(
38254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38255 /* end confdefs.h. */
38256
38257 #include <netinet/tcp_timer.h>
38258 TCPTV_MIN
38259 TCPTV_REXMTMAX
38260
38261 _ACEOF
38262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38263 $EGREP_TRADITIONAL "hz" >/dev/null 2>&1
38264 then :
38265 ac_cv_TCPTV_NEEDS_HZ=yes
38266 else case e in #(
38267 e) ac_cv_TCPTV_NEEDS_HZ=no ;;
38268 esac
38269 fi
38270 rm -rf conftest*
38271 ;;
38272 esac
38273 fi
38274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_TCPTV_NEEDS_HZ" >&5
38275 printf "%s\n" "$ac_cv_TCPTV_NEEDS_HZ" >&6; }
38276
38277 if test "x$ac_cv_TCPTV_NEEDS_HZ" = "xyes"; then
38278
38279 printf "%s\n" "#define TCPTV_NEEDS_HZ 1" >>confdefs.h
38280
38281 fi
38282
38283
38284 # Check whether IP Route table is cached (Solaris)
38285 # used in agent only
38286 #
38287 case $target_os in
38288 solaris*)
38289 # Header checks (Solaris 2.6/7)
38290 #
38291 ac_fn_c_check_header_compile "$LINENO" "inet/common.h" "ac_cv_header_inet_common_h" "$ac_includes_default"
38292 if test "x$ac_cv_header_inet_common_h" = xyes
38293 then :
38294 printf "%s\n" "#define HAVE_INET_COMMON_H 1" >>confdefs.h
38295
38296 fi
38297
38298 for ac_header in inet/ip.h
38299 do :
38300 ac_fn_c_check_header_compile "$LINENO" "inet/ip.h" "ac_cv_header_inet_ip_h" "$ac_includes_default
38301
38302 #ifdef HAVE_SYS_STREAM_H
38303 #include <sys/stream.h>
38304 #endif
38305 #ifdef HAVE_INET_COMMON_H
38306 #include <inet/common.h>
38307 #endif
38308
38309 "
38310 if test "x$ac_cv_header_inet_ip_h" = xyes
38311 then :
38312 printf "%s\n" "#define HAVE_INET_IP_H 1" >>confdefs.h
38313 ac_inet_ip_h=yes
38314 else case e in #(
38315 e) ac_inet_ip_h=no ;;
38316 esac
38317 fi
38318
38319 done
38320 if test $ac_inet_ip_h = yes ; then
38321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mib2_ipRouteEntry_t in inet/mib2.h" >&5
38322 printf %s "checking for mib2_ipRouteEntry_t in inet/mib2.h... " >&6; }
38323 if test ${ac_cv_mib2_ipRouteEntry_t+y}
38324 then :
38325 printf %s "(cached) " >&6
38326 else case e in #(
38327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38328 /* end confdefs.h. */
38329
38330 #ifdef HAVE_INET_MIB2_H
38331 #include <inet/mib2.h>
38332 #endif
38333
38334 int
38335 main (void)
38336 {
38337
38338 mib2_ipRouteEntry_t testit;
38339 if(sizeof(testit))
38340 return(0);
38341
38342 ;
38343 return 0;
38344 }
38345 _ACEOF
38346 if ac_fn_c_try_compile "$LINENO"
38347 then :
38348 ac_cv_mib2_ipRouteEntry_t=yes
38349 else case e in #(
38350 e) ac_cv_mib2_ipRouteEntry_t=no ;;
38351 esac
38352 fi
38353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
38354 esac
38355 fi
38356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mib2_ipRouteEntry_t" >&5
38357 printf "%s\n" "$ac_cv_mib2_ipRouteEntry_t" >&6; }
38358
38359 if test "x$ac_cv_mib2_ipRouteEntry_t" = "xyes" ; then
38360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether IRE_CACHE is defined in inet/ip.h" >&5
38361 printf %s "checking whether IRE_CACHE is defined in inet/ip.h... " >&6; }
38362 if test ${ac_cv_ire_cache+y}
38363 then :
38364 printf %s "(cached) " >&6
38365 else case e in #(
38366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38367 /* end confdefs.h. */
38368
38369 #ifdef HAVE_INET_IP_H
38370 #include <inet/ip.h>
38371 #endif
38372
38373 int
38374 main (void)
38375 {
38376
38377 int testit=IRE_CACHE;
38378 if(testit)
38379 return(0);
38380
38381 ;
38382 return 0;
38383 }
38384 _ACEOF
38385 if ac_fn_c_try_compile "$LINENO"
38386 then :
38387 ac_cv_ire_cache=yes
38388 else case e in #(
38389 e) ac_cv_ire_cache=no ;;
38390 esac
38391 fi
38392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
38393 esac
38394 fi
38395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ire_cache" >&5
38396 printf "%s\n" "$ac_cv_ire_cache" >&6; }
38397 else
38398 ac_cv_ire_cache=no
38399 fi
38400
38401 if test "x$ac_cv_ire_cache" = "xyes" ; then
38402
38403 printf "%s\n" "#define HAVE_DEFINED_IRE_CACHE /**/" >>confdefs.h
38404
38405 else
38406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: It seems that you have inet/ip.h, but IRE_CACHE is not defined. \
38407 That means that your query to ipRoute MIB could generate over 20k results! \
38408 And this can be very slow." >&5
38409 printf "%s\n" "$as_me: WARNING: It seems that you have inet/ip.h, but IRE_CACHE is not defined. \
38410 That means that your query to ipRoute MIB could generate over 20k results! \
38411 And this can be very slow." >&2;}
38412 fi
38413 fi # "test $ac_inet_ip_h = yes"
38414 ;;
38415 esac
38416
38417 # Check whether SO_BINDTODEVICE is available.
38418 #
38419
38420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SO_BINDTODEVICE" >&5
38421 printf %s "checking for SO_BINDTODEVICE... " >&6; }
38422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38423 /* end confdefs.h. */
38424
38425 #include <sys/types.h>
38426 #include <sys/socket.h>
38427
38428 int
38429 main (void)
38430 {
38431
38432 return SO_BINDTODEVICE
38433
38434 ;
38435 return 0;
38436 }
38437 _ACEOF
38438 if ac_fn_c_try_link "$LINENO"
38439 then :
38440
38441 printf "%s\n" "#define HAVE_SO_BINDTODEVICE 1" >>confdefs.h
38442
38443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38444 printf "%s\n" "yes" >&6; }
38445 else case e in #(
38446 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38447 printf "%s\n" "no" >&6; } ;;
38448 esac
38449 fi
38450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38451 conftest$ac_exeext conftest.$ac_ext
38452
38453 # Check whether struct in_pktinfo.ipi_spec_dst is available.
38454 #
38455
38456 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
38457 #include <sys/types.h>
38458 #include <sys/socket.h>
38459 #include <netinet/in.h>
38460
38461 "
38462 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes
38463 then :
38464
38465 printf "%s\n" "#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1" >>confdefs.h
38466
38467
38468 fi
38469
38470
38471 # Check whether IP_PKTINFO is usable.
38472 #
38473
38474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IP_PKTINFO " >&5
38475 printf %s "checking for IP_PKTINFO ... " >&6; }
38476 if test ${ac_cv_have_ip_pktinfo+y}
38477 then :
38478 printf %s "(cached) " >&6
38479 else case e in #(
38480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38481 /* end confdefs.h. */
38482
38483 #include <stdio.h> /* printf() */
38484 #include <stdlib.h> /* malloc() */
38485 #include <string.h> /* memset() */
38486 #include <sys/types.h>
38487 #include <sys/socket.h>
38488 #include <netinet/in.h>
38489 #include <arpa/inet.h> /* inet_ntoa() */
38490
38491 int
38492 main (void)
38493 {
38494
38495 void *buf;
38496 int len;
38497 void *from;
38498 socklen_t *fromlen;
38499
38500 struct iovec iov;
38501 char *cmsg = malloc(CMSG_SPACE(sizeof(struct in_pktinfo)));
38502 struct cmsghdr *cm;
38503 struct msghdr msg;
38504
38505 iov.iov_base = buf;
38506 iov.iov_len = len;
38507
38508 memset(&msg, 0, sizeof msg);
38509 msg.msg_name = from;
38510 msg.msg_namelen = *fromlen;
38511 msg.msg_iov = &iov;
38512 msg.msg_iovlen = 1;
38513 msg.msg_control = &cmsg;
38514 msg.msg_controllen = sizeof(cmsg);
38515
38516 for (cm = CMSG_FIRSTHDR(&msg); cm; cm = CMSG_NXTHDR(&msg, cm)) {
38517 if (cm->cmsg_level == SOL_IP && cm->cmsg_type == IP_PKTINFO) {
38518 struct in_pktinfo* src = (struct in_pktinfo *)CMSG_DATA(cm);
38519 printf("Address: %s; index: %d\n", inet_ntoa(src->ipi_addr),
38520 src->ipi_ifindex);
38521 }
38522 }
38523
38524 ;
38525 return 0;
38526 }
38527 _ACEOF
38528 if ac_fn_c_try_link "$LINENO"
38529 then :
38530 ac_cv_have_ip_pktinfo=yes
38531 else case e in #(
38532 e) ac_cv_have_ip_pktinfo=no
38533 ;;
38534 esac
38535 fi
38536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38537 conftest$ac_exeext conftest.$ac_ext ;;
38538 esac
38539 fi
38540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ip_pktinfo" >&5
38541 printf "%s\n" "$ac_cv_have_ip_pktinfo" >&6; }
38542 if test x$ac_cv_have_ip_pktinfo = xyes; then
38543
38544 printf "%s\n" "#define HAVE_IP_PKTINFO 1" >>confdefs.h
38545
38546 fi
38547
38548 # Check whether IPV6_RECVPKTINFO is usable.
38549 #
38550
38551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPV6_RECVPKTINFO " >&5
38552 printf %s "checking for IPV6_RECVPKTINFO ... " >&6; }
38553 if test ${ac_cv_have_ipv6_recvpktinfo+y}
38554 then :
38555 printf %s "(cached) " >&6
38556 else case e in #(
38557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38558 /* end confdefs.h. */
38559
38560 #include <netinet/in.h>
38561
38562 int
38563 main (void)
38564 {
38565
38566 return IPV6_RECVPKTINFO
38567
38568 ;
38569 return 0;
38570 }
38571 _ACEOF
38572 if ac_fn_c_try_link "$LINENO"
38573 then :
38574 ac_cv_have_ipv6_recvpktinfo=yes
38575 else case e in #(
38576 e) ac_cv_have_ipv6_recvpktinfo=no
38577 ;;
38578 esac
38579 fi
38580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38581 conftest$ac_exeext conftest.$ac_ext ;;
38582 esac
38583 fi
38584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ipv6_recvpktinfo" >&5
38585 printf "%s\n" "$ac_cv_have_ipv6_recvpktinfo" >&6; }
38586 if test x$ac_cv_have_ipv6_recvpktinfo = xyes; then
38587
38588 printf "%s\n" "#define HAVE_IPV6_RECVPKTINFO 1" >>confdefs.h
38589
38590 fi
38591
38592 # Check whether IP_RECVDSTADDR is usable.
38593 #
38594
38595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IP_RECVDSTADDR " >&5
38596 printf %s "checking for IP_RECVDSTADDR ... " >&6; }
38597 if test ${ac_cv_have_ip_recvdstaddr+y}
38598 then :
38599 printf %s "(cached) " >&6
38600 else case e in #(
38601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38602 /* end confdefs.h. */
38603
38604 #include <stdio.h> /* printf() */
38605 #include <stdlib.h> /* malloc() */
38606 #include <string.h> /* memset() */
38607 #include <sys/types.h>
38608 #include <sys/socket.h>
38609 #include <netinet/in.h>
38610 #include <arpa/inet.h> /* inet_ntoa() */
38611
38612 int
38613 main (void)
38614 {
38615
38616 void *buf;
38617 int len;
38618 void *from;
38619 socklen_t *fromlen;
38620
38621 struct iovec iov;
38622 char *cmsg = malloc(CMSG_SPACE(sizeof(struct in_addr)));
38623 struct cmsghdr *cm;
38624 struct msghdr msg;
38625
38626 iov.iov_base = buf;
38627 iov.iov_len = len;
38628
38629 memset(&msg, 0, sizeof msg);
38630 msg.msg_name = from;
38631 msg.msg_namelen = *fromlen;
38632 msg.msg_iov = &iov;
38633 msg.msg_iovlen = 1;
38634 msg.msg_control = &cmsg;
38635 msg.msg_controllen = sizeof(cmsg);
38636
38637 for (cm = CMSG_FIRSTHDR(&msg); cm; cm = CMSG_NXTHDR(&msg, cm)) {
38638 if (cm->cmsg_level == IPPROTO_IP && cm->cmsg_type == IP_RECVDSTADDR) {
38639 struct in_addr* src = (struct in_addr *)CMSG_DATA(cm);
38640 printf("Address: %s\n", inet_ntoa(src));
38641 }
38642 }
38643
38644 ;
38645 return 0;
38646 }
38647 _ACEOF
38648 if ac_fn_c_try_link "$LINENO"
38649 then :
38650 ac_cv_have_ip_recvdstaddr=yes
38651 else case e in #(
38652 e) ac_cv_have_ip_recvdstaddr=no
38653 ;;
38654 esac
38655 fi
38656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38657 conftest$ac_exeext conftest.$ac_ext ;;
38658 esac
38659 fi
38660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ip_recvdstaddr" >&5
38661 printf "%s\n" "$ac_cv_have_ip_recvdstaddr" >&6; }
38662 if test x$ac_cv_have_ip_recvdstaddr = xyes; then
38663
38664 printf "%s\n" "#define HAVE_IP_RECVDSTADDR 1" >>confdefs.h
38665
38666 fi
38667
38668 cat >confcache <<\_ACEOF
38669 # This file is a shell script that caches the results of configure
38670 # tests run on this system so they can be shared between configure
38671 # scripts and configure runs, see configure's option --config-cache.
38672 # It is not useful on other systems. If it contains results you don't
38673 # want to keep, you may remove or edit it.
38674 #
38675 # config.status only pays attention to the cache file if you give it
38676 # the --recheck option to rerun configure.
38677 #
38678 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
38679 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
38680 # following values.
38681
38682 _ACEOF
38683
38684 # The following way of writing the cache mishandles newlines in values,
38685 # but we know of no workaround that is simple, portable, and efficient.
38686 # So, we kill variables containing newlines.
38687 # Ultrix sh set writes to stderr and can't be redirected directly,
38688 # and sets the high bit in the cache file unless we assign to the vars.
38689 (
38690 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38691 eval ac_val=\$$ac_var
38692 case $ac_val in #(
38693 *${as_nl}*)
38694 case $ac_var in #(
38695 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
38696 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
38697 esac
38698 case $ac_var in #(
38699 _ | IFS | as_nl) ;; #(
38700 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
38701 *) { eval $ac_var=; unset $ac_var;} ;;
38702 esac ;;
38703 esac
38704 done
38705
38706 (set) 2>&1 |
38707 case $as_nl`(ac_space=' '; set) 2>&1` in #(
38708 *${as_nl}ac_space=\ *)
38709 # 'set' does not quote correctly, so add quotes: double-quote
38710 # substitution turns \\\\ into \\, and sed turns \\ into \.
38711 sed -n \
38712 "s/'/'\\\\''/g;
38713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38714 ;; #(
38715 *)
38716 # 'set' quotes correctly as required by POSIX, so do not add quotes.
38717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38718 ;;
38719 esac |
38720 sort
38721 ) |
38722 sed '
38723 /^ac_cv_env_/b end
38724 t clear
38725 :clear
38726 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
38727 t end
38728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38729 :end' >>confcache
38730 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38731 if test -w "$cache_file"; then
38732 if test "x$cache_file" != "x/dev/null"; then
38733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
38734 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
38735 if test ! -f "$cache_file" || test -h "$cache_file"; then
38736 cat confcache >"$cache_file"
38737 else
38738 case $cache_file in #(
38739 */* | ?:*)
38740 mv -f confcache "$cache_file"$$ &&
38741 mv -f "$cache_file"$$ "$cache_file" ;; #(
38742 *)
38743 mv -f confcache "$cache_file" ;;
38744 esac
38745 fi
38746 fi
38747 else
38748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
38749 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
38750 fi
38751 fi
38752 rm -f confcache
38753 ##
38754 # Add back in the original CFLAGS setting
38755 ##
38756 CFLAGS="$noerr_CFLAGS ${CFLAGS#$CFLAGS_without_Werror}"
38757 export CFLAGS
38758
38759 #
38760 # define the agent libraries variables
38761 #
38762
38763
38764
38765
38766
38767
38768
38769
38770
38771
38772
38773 ac_config_files="$ac_config_files Makefile:Makefile.top:Makefile.in:Makefile.rules"
38774
38775 ac_config_files="$ac_config_files snmplib/Makefile:Makefile.top:snmplib/Makefile.in:Makefile.rules:snmplib/Makefile.depend"
38776
38777 ac_config_files="$ac_config_files apps/Makefile:Makefile.top:apps/Makefile.in:Makefile.rules:apps/Makefile.depend"
38778
38779 ac_config_files="$ac_config_files apps/snmpnetstat/Makefile:Makefile.top:apps/snmpnetstat/Makefile.in:Makefile.rules:apps/snmpnetstat/Makefile.depend"
38780
38781 ac_config_files="$ac_config_files agent/Makefile:Makefile.top:agent/Makefile.in:Makefile.rules:agent/Makefile.depend"
38782
38783 ac_config_files="$ac_config_files agent/helpers/Makefile:Makefile.top:agent/helpers/Makefile.in:Makefile.rules:agent/helpers/Makefile.depend"
38784
38785 ac_config_files="$ac_config_files agent/mibgroup/Makefile:Makefile.top:agent/mibgroup/Makefile.in:Makefile.rules:agent/mibgroup/Makefile.depend"
38786
38787 ac_config_files="$ac_config_files local/Makefile:Makefile.top:local/Makefile.in:Makefile.rules"
38788
38789 ac_config_files="$ac_config_files testing/Makefile:Makefile.top:testing/Makefile.in"
38790
38791 ac_config_files="$ac_config_files man/Makefile:Makefile.top:man/Makefile.in:Makefile.rules"
38792
38793 ac_config_files="$ac_config_files mibs/Makefile:Makefile.top:mibs/Makefile.in:Makefile.rules"
38794
38795 ac_config_files="$ac_config_files net-snmp-config:net-snmp-config.in"
38796
38797 ac_config_files="$ac_config_files net-snmp-create-v3-user:net-snmp-create-v3-user.in"
38798
38799 ac_config_files="$ac_config_files netsnmp.pc:netsnmp.pc.in netsnmp-agent.pc:netsnmp-agent.pc.in"
38800
38801 ac_config_files="$ac_config_files dist/generation-scripts/gen-variables:dist/generation-scripts/gen-variables.in"
38802
38803 ac_config_files="$ac_config_files local/snmpconf"
38804
38805
38806 ac_config_commands="$ac_config_commands default"
38807
38808
38809 #
38810 # protect PACKAGE_* variables
38811 #
38812
38813
38814
38815
38816
38817
38818 cat >confcache <<\_ACEOF
38819 # This file is a shell script that caches the results of configure
38820 # tests run on this system so they can be shared between configure
38821 # scripts and configure runs, see configure's option --config-cache.
38822 # It is not useful on other systems. If it contains results you don't
38823 # want to keep, you may remove or edit it.
38824 #
38825 # config.status only pays attention to the cache file if you give it
38826 # the --recheck option to rerun configure.
38827 #
38828 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
38829 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
38830 # following values.
38831
38832 _ACEOF
38833
38834 # The following way of writing the cache mishandles newlines in values,
38835 # but we know of no workaround that is simple, portable, and efficient.
38836 # So, we kill variables containing newlines.
38837 # Ultrix sh set writes to stderr and can't be redirected directly,
38838 # and sets the high bit in the cache file unless we assign to the vars.
38839 (
38840 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38841 eval ac_val=\$$ac_var
38842 case $ac_val in #(
38843 *${as_nl}*)
38844 case $ac_var in #(
38845 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
38846 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
38847 esac
38848 case $ac_var in #(
38849 _ | IFS | as_nl) ;; #(
38850 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
38851 *) { eval $ac_var=; unset $ac_var;} ;;
38852 esac ;;
38853 esac
38854 done
38855
38856 (set) 2>&1 |
38857 case $as_nl`(ac_space=' '; set) 2>&1` in #(
38858 *${as_nl}ac_space=\ *)
38859 # 'set' does not quote correctly, so add quotes: double-quote
38860 # substitution turns \\\\ into \\, and sed turns \\ into \.
38861 sed -n \
38862 "s/'/'\\\\''/g;
38863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38864 ;; #(
38865 *)
38866 # 'set' quotes correctly as required by POSIX, so do not add quotes.
38867 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38868 ;;
38869 esac |
38870 sort
38871 ) |
38872 sed '
38873 /^ac_cv_env_/b end
38874 t clear
38875 :clear
38876 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
38877 t end
38878 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38879 :end' >>confcache
38880 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38881 if test -w "$cache_file"; then
38882 if test "x$cache_file" != "x/dev/null"; then
38883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
38884 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
38885 if test ! -f "$cache_file" || test -h "$cache_file"; then
38886 cat confcache >"$cache_file"
38887 else
38888 case $cache_file in #(
38889 */* | ?:*)
38890 mv -f confcache "$cache_file"$$ &&
38891 mv -f "$cache_file"$$ "$cache_file" ;; #(
38892 *)
38893 mv -f confcache "$cache_file" ;;
38894 esac
38895 fi
38896 fi
38897 else
38898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
38899 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
38900 fi
38901 fi
38902 rm -f confcache
38903
38904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38905 # Let make expand exec_prefix.
38906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38907
38908 DEFS=-DHAVE_CONFIG_H
38909
38910 ac_libobjs=
38911 ac_ltlibobjs=
38912 U=
38913 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38914 # 1. Remove the extension, and $U if already installed.
38915 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38916 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
38917 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
38918 # will be set to the directory where LIBOBJS objects are built.
38919 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38920 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
38921 done
38922 LIBOBJS=$ac_libobjs
38923
38924 LTLIBOBJS=$ac_ltlibobjs
38925
38926
38927
38928 : "${CONFIG_STATUS=./config.status}"
38929 ac_write_fail=0
38930 ac_clean_files_save=$ac_clean_files
38931 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
38933 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
38934 as_write_fail=0
38935 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
38936 #! $SHELL
38937 # Generated by $as_me.
38938 # Run this file to recreate the current configuration.
38939 # Compiler output produced by configure, useful for debugging
38940 # configure, is in config.log if it exists.
38941
38942 debug=false
38943 ac_cs_recheck=false
38944 ac_cs_silent=false
38945
38946 SHELL=\${CONFIG_SHELL-$SHELL}
38947 export SHELL
38948 _ASEOF
38949 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
38950 ## -------------------- ##
38951 ## M4sh Initialization. ##
38952 ## -------------------- ##
38953
38954 # Be more Bourne compatible
38955 DUALCASE=1; export DUALCASE # for MKS sh
38956 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
38957 then :
38958 emulate sh
38959 NULLCMD=:
38960 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
38961 # is contrary to our usage. Disable this feature.
38962 alias -g '${1+"$@"}'='"$@"'
38963 setopt NO_GLOB_SUBST
38964 else case e in #(
38965 e) case `(set -o) 2>/dev/null` in #(
38966 *posix*) :
38967 set -o posix ;; #(
38968 *) :
38969 ;;
38970 esac ;;
38971 esac
38972 fi
38973
38974
38975
38976 # Reset variables that may have inherited troublesome values from
38977 # the environment.
38978
38979 # IFS needs to be set, to space, tab, and newline, in precisely that order.
38980 # (If _AS_PATH_WALK were called with IFS unset, it would have the
38981 # side effect of setting IFS to empty, thus disabling word splitting.)
38982 # Quoting is to prevent editors from complaining about space-tab.
38983 as_nl='
38984 '
38985 export as_nl
38986 IFS=" "" $as_nl"
38987
38988 PS1='$ '
38989 PS2='> '
38990 PS4='+ '
38991
38992 # Ensure predictable behavior from utilities with locale-dependent output.
38993 LC_ALL=C
38994 export LC_ALL
38995 LANGUAGE=C
38996 export LANGUAGE
38997
38998 # We cannot yet rely on "unset" to work, but we need these variables
38999 # to be unset--not just set to an empty or harmless value--now, to
39000 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
39001 # also avoids known problems related to "unset" and subshell syntax
39002 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
39003 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
39004 do eval test \${$as_var+y} \
39005 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
39006 done
39007
39008 # Ensure that fds 0, 1, and 2 are open.
39009 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
39010 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
39011 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
39012
39013 # The user is always right.
39014 if ${PATH_SEPARATOR+false} :; then
39015 PATH_SEPARATOR=:
39016 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
39017 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
39018 PATH_SEPARATOR=';'
39019 }
39020 fi
39021
39022
39023 # Find who we are. Look in the path if we contain no directory separator.
39024 as_myself=
39025 case $0 in #((
39026 *[\\/]* ) as_myself=$0 ;;
39027 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39028 for as_dir in $PATH
39029 do
39030 IFS=$as_save_IFS
39031 case $as_dir in #(((
39032 '') as_dir=./ ;;
39033 */) ;;
39034 *) as_dir=$as_dir/ ;;
39035 esac
39036 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
39037 done
39038 IFS=$as_save_IFS
39039
39040 ;;
39041 esac
39042 # We did not find ourselves, most probably we were run as 'sh COMMAND'
39043 # in which case we are not to be found in the path.
39044 if test "x$as_myself" = x; then
39045 as_myself=$0
39046 fi
39047 if test ! -f "$as_myself"; then
39048 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39049 exit 1
39050 fi
39051
39052
39053
39054 # as_fn_error STATUS ERROR [LINENO LOG_FD]
39055 # ----------------------------------------
39056 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
39057 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
39058 # script with STATUS, using 1 if that was 0.
39059 as_fn_error ()
39060 {
39061 as_status=$1; test $as_status -eq 0 && as_status=1
39062 if test "$4"; then
39063 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
39064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
39065 fi
39066 printf "%s\n" "$as_me: error: $2" >&2
39067 as_fn_exit $as_status
39068 } # as_fn_error
39069
39070
39071 # as_fn_set_status STATUS
39072 # -----------------------
39073 # Set $? to STATUS, without forking.
39074 as_fn_set_status ()
39075 {
39076 return $1
39077 } # as_fn_set_status
39078
39079 # as_fn_exit STATUS
39080 # -----------------
39081 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
39082 as_fn_exit ()
39083 {
39084 set +e
39085 as_fn_set_status $1
39086 exit $1
39087 } # as_fn_exit
39088
39089 # as_fn_unset VAR
39090 # ---------------
39091 # Portably unset VAR.
39092 as_fn_unset ()
39093 {
39094 { eval $1=; unset $1;}
39095 }
39096 as_unset=as_fn_unset
39097
39098 # as_fn_append VAR VALUE
39099 # ----------------------
39100 # Append the text in VALUE to the end of the definition contained in VAR. Take
39101 # advantage of any shell optimizations that allow amortized linear growth over
39102 # repeated appends, instead of the typical quadratic growth present in naive
39103 # implementations.
39104 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
39105 then :
39106 eval 'as_fn_append ()
39107 {
39108 eval $1+=\$2
39109 }'
39110 else case e in #(
39111 e) as_fn_append ()
39112 {
39113 eval $1=\$$1\$2
39114 } ;;
39115 esac
39116 fi # as_fn_append
39117
39118 # as_fn_arith ARG...
39119 # ------------------
39120 # Perform arithmetic evaluation on the ARGs, and store the result in the
39121 # global $as_val. Take advantage of shells that can avoid forks. The arguments
39122 # must be portable across $(()) and expr.
39123 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
39124 then :
39125 eval 'as_fn_arith ()
39126 {
39127 as_val=$(( $* ))
39128 }'
39129 else case e in #(
39130 e) as_fn_arith ()
39131 {
39132 as_val=`expr "$@" || test $? -eq 1`
39133 } ;;
39134 esac
39135 fi # as_fn_arith
39136
39137
39138 if expr a : '\(a\)' >/dev/null 2>&1 &&
39139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39140 as_expr=expr
39141 else
39142 as_expr=false
39143 fi
39144
39145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39146 as_basename=basename
39147 else
39148 as_basename=false
39149 fi
39150
39151 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39152 as_dirname=dirname
39153 else
39154 as_dirname=false
39155 fi
39156
39157 as_me=`$as_basename -- "$0" ||
39158 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39159 X"$0" : 'X\(//\)$' \| \
39160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39161 printf "%s\n" X/"$0" |
39162 sed '/^.*\/\([^/][^/]*\)\/*$/{
39163 s//\1/
39164 q
39165 }
39166 /^X\/\(\/\/\)$/{
39167 s//\1/
39168 q
39169 }
39170 /^X\/\(\/\).*/{
39171 s//\1/
39172 q
39173 }
39174 s/.*/./; q'`
39175
39176 # Avoid depending upon Character Ranges.
39177 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39178 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39179 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39180 as_cr_digits='0123456789'
39181 as_cr_alnum=$as_cr_Letters$as_cr_digits
39182
39183
39184 # Determine whether it's possible to make 'echo' print without a newline.
39185 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
39186 # for compatibility with existing Makefiles.
39187 ECHO_C= ECHO_N= ECHO_T=
39188 case `echo -n x` in #(((((
39189 -n*)
39190 case `echo 'xy\c'` in
39191 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
39192 xy) ECHO_C='\c';;
39193 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
39194 ECHO_T=' ';;
39195 esac;;
39196 *)
39197 ECHO_N='-n';;
39198 esac
39199
39200 # For backward compatibility with old third-party macros, we provide
39201 # the shell variables $as_echo and $as_echo_n. New code should use
39202 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
39203 as_echo='printf %s\n'
39204 as_echo_n='printf %s'
39205
39206 rm -f conf$$ conf$$.exe conf$$.file
39207 if test -d conf$$.dir; then
39208 rm -f conf$$.dir/conf$$.file
39209 else
39210 rm -f conf$$.dir
39211 mkdir conf$$.dir 2>/dev/null
39212 fi
39213 if (echo >conf$$.file) 2>/dev/null; then
39214 if ln -s conf$$.file conf$$ 2>/dev/null; then
39215 as_ln_s='ln -s'
39216 # ... but there are two gotchas:
39217 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
39218 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
39219 # In both cases, we have to default to 'cp -pR'.
39220 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39221 as_ln_s='cp -pR'
39222 elif ln conf$$.file conf$$ 2>/dev/null; then
39223 as_ln_s=ln
39224 else
39225 as_ln_s='cp -pR'
39226 fi
39227 else
39228 as_ln_s='cp -pR'
39229 fi
39230 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39231 rmdir conf$$.dir 2>/dev/null
39232
39233
39234 # as_fn_mkdir_p
39235 # -------------
39236 # Create "$as_dir" as a directory, including parents if necessary.
39237 as_fn_mkdir_p ()
39238 {
39239
39240 case $as_dir in #(
39241 -*) as_dir=./$as_dir;;
39242 esac
39243 test -d "$as_dir" || eval $as_mkdir_p || {
39244 as_dirs=
39245 while :; do
39246 case $as_dir in #(
39247 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
39248 *) as_qdir=$as_dir;;
39249 esac
39250 as_dirs="'$as_qdir' $as_dirs"
39251 as_dir=`$as_dirname -- "$as_dir" ||
39252 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39253 X"$as_dir" : 'X\(//\)[^/]' \| \
39254 X"$as_dir" : 'X\(//\)$' \| \
39255 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39256 printf "%s\n" X"$as_dir" |
39257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39258 s//\1/
39259 q
39260 }
39261 /^X\(\/\/\)[^/].*/{
39262 s//\1/
39263 q
39264 }
39265 /^X\(\/\/\)$/{
39266 s//\1/
39267 q
39268 }
39269 /^X\(\/\).*/{
39270 s//\1/
39271 q
39272 }
39273 s/.*/./; q'`
39274 test -d "$as_dir" && break
39275 done
39276 test -z "$as_dirs" || eval "mkdir $as_dirs"
39277 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
39278
39279
39280 } # as_fn_mkdir_p
39281 if mkdir -p . 2>/dev/null; then
39282 as_mkdir_p='mkdir -p "$as_dir"'
39283 else
39284 test -d ./-p && rmdir ./-p
39285 as_mkdir_p=false
39286 fi
39287
39288
39289 # as_fn_executable_p FILE
39290 # -----------------------
39291 # Test if FILE is an executable regular file.
39292 as_fn_executable_p ()
39293 {
39294 test -f "$1" && test -x "$1"
39295 } # as_fn_executable_p
39296 as_test_x='test -x'
39297 as_executable_p=as_fn_executable_p
39298
39299 # Sed expression to map a string onto a valid CPP name.
39300 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
39301 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
39302
39303 # Sed expression to map a string onto a valid variable name.
39304 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
39305 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
39306
39307
39308 exec 6>&1
39309 ## ----------------------------------- ##
39310 ## Main body of $CONFIG_STATUS script. ##
39311 ## ----------------------------------- ##
39312 _ASEOF
39313 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
39314
39315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39316 # Save the log message, to keep $0 and so on meaningful, and to
39317 # report actual input values of CONFIG_FILES etc. instead of their
39318 # values after options handling.
39319 ac_log="
39320 This file was extended by Net-SNMP $as_me 5.9.5.2, which was
39321 generated by GNU Autoconf 2.72. Invocation command line was
39322
39323 CONFIG_FILES = $CONFIG_FILES
39324 CONFIG_HEADERS = $CONFIG_HEADERS
39325 CONFIG_LINKS = $CONFIG_LINKS
39326 CONFIG_COMMANDS = $CONFIG_COMMANDS
39327 $ $0 $@
39328
39329 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39330 "
39331
39332 _ACEOF
39333
39334 case $ac_config_files in *"
39335 "*) set x $ac_config_files; shift; ac_config_files=$*;;
39336 esac
39337
39338 case $ac_config_headers in *"
39339 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
39340 esac
39341
39342
39343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39344 # Files that config.status was made for.
39345 config_files="$ac_config_files"
39346 config_headers="$ac_config_headers"
39347 config_commands="$ac_config_commands"
39348
39349 _ACEOF
39350
39351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39352 ac_cs_usage="\
39353 '$as_me' instantiates files and other configuration actions
39354 from templates according to the current configuration. Unless the files
39355 and actions are specified as TAGs, all are instantiated by default.
39356
39357 Usage: $0 [OPTION]... [TAG]...
39358
39359 -h, --help print this help, then exit
39360 -V, --version print version number and configuration settings, then exit
39361 --config print configuration, then exit
39362 -q, --quiet, --silent
39363 do not print progress messages
39364 -d, --debug don't remove temporary files
39365 --recheck update $as_me by reconfiguring in the same conditions
39366 --file=FILE[:TEMPLATE]
39367 instantiate the configuration file FILE
39368 --header=FILE[:TEMPLATE]
39369 instantiate the configuration header FILE
39370
39371 Configuration files:
39372 $config_files
39373
39374 Configuration headers:
39375 $config_headers
39376
39377 Configuration commands:
39378 $config_commands
39379
39380 Report bugs to <[email protected]>."
39381
39382 _ACEOF
39383 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
39384 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
39385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39386 ac_cs_config='$ac_cs_config_escaped'
39387 ac_cs_version="\\
39388 Net-SNMP config.status 5.9.5.2
39389 configured by $0, generated by GNU Autoconf 2.72,
39390 with options \\"\$ac_cs_config\\"
39391
39392 Copyright (C) 2023 Free Software Foundation, Inc.
39393 This config.status script is free software; the Free Software Foundation
39394 gives unlimited permission to copy, distribute and modify it."
39395
39396 ac_pwd='$ac_pwd'
39397 srcdir='$srcdir'
39398 INSTALL='$INSTALL'
39399 AWK='$AWK'
39400 test -n "\$AWK" || AWK=awk
39401 _ACEOF
39402
39403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39404 # The default lists apply if the user does not specify any file.
39405 ac_need_defaults=:
39406 while test $# != 0
39407 do
39408 case $1 in
39409 --*=?*)
39410 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39411 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39412 ac_shift=:
39413 ;;
39414 --*=)
39415 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39416 ac_optarg=
39417 ac_shift=:
39418 ;;
39419 *)
39420 ac_option=$1
39421 ac_optarg=$2
39422 ac_shift=shift
39423 ;;
39424 esac
39425
39426 case $ac_option in
39427 # Handling of the options.
39428 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39429 ac_cs_recheck=: ;;
39430 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39431 printf "%s\n" "$ac_cs_version"; exit ;;
39432 --config | --confi | --conf | --con | --co | --c )
39433 printf "%s\n" "$ac_cs_config"; exit ;;
39434 --debug | --debu | --deb | --de | --d | -d )
39435 debug=: ;;
39436 --file | --fil | --fi | --f )
39437 $ac_shift
39438 case $ac_optarg in
39439 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
39440 '') as_fn_error $? "missing file argument" ;;
39441 esac
39442 as_fn_append CONFIG_FILES " '$ac_optarg'"
39443 ac_need_defaults=false;;
39444 --header | --heade | --head | --hea )
39445 $ac_shift
39446 case $ac_optarg in
39447 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
39448 esac
39449 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
39450 ac_need_defaults=false;;
39451 --he | --h)
39452 # Conflict between --help and --header
39453 as_fn_error $? "ambiguous option: '$1'
39454 Try '$0 --help' for more information.";;
39455 --help | --hel | -h )
39456 printf "%s\n" "$ac_cs_usage"; exit ;;
39457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39458 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39459 ac_cs_silent=: ;;
39460
39461 # This is an error.
39462 -*) as_fn_error $? "unrecognized option: '$1'
39463 Try '$0 --help' for more information." ;;
39464
39465 *) as_fn_append ac_config_targets " $1"
39466 ac_need_defaults=false ;;
39467
39468 esac
39469 shift
39470 done
39471
39472 ac_configure_extra_args=
39473
39474 if $ac_cs_silent; then
39475 exec 6>/dev/null
39476 ac_configure_extra_args="$ac_configure_extra_args --silent"
39477 fi
39478
39479 _ACEOF
39480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39481 if \$ac_cs_recheck; then
39482 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39483 shift
39484 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
39485 CONFIG_SHELL='$SHELL'
39486 export CONFIG_SHELL
39487 exec "\$@"
39488 fi
39489
39490 _ACEOF
39491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39492 exec 5>>config.log
39493 {
39494 echo
39495 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39496 ## Running $as_me. ##
39497 _ASBOX
39498 printf "%s\n" "$ac_log"
39499 } >&5
39500
39501 _ACEOF
39502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39503 #
39504 # INIT-COMMANDS
39505 #
39506
39507
39508 # The HP-UX ksh and POSIX shell print the target directory to stdout
39509 # if CDPATH is set.
39510 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
39511
39512 sed_quote_subst='$sed_quote_subst'
39513 double_quote_subst='$double_quote_subst'
39514 delay_variable_subst='$delay_variable_subst'
39515 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
39516 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
39517 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
39518 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
39519 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
39520 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
39521 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
39522 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
39523 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
39524 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
39525 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
39526 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
39527 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
39528 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
39529 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
39530 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
39531 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
39532 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
39533 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
39534 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
39535 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
39536 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
39537 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
39538 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
39539 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
39540 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
39541 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
39542 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
39543 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
39544 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
39545 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
39546 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
39547 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
39548 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
39549 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
39550 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
39551 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
39552 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
39553 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
39554 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
39555 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
39556 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
39557 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
39558 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
39559 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
39560 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
39561 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
39562 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
39563 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
39564 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
39565 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
39566 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
39567 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
39568 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
39569 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
39570 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
39571 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
39572 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
39573 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
39574 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
39575 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
39576 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
39577 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
39578 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
39579 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
39580 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
39581 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
39582 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
39583 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
39584 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
39585 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
39586 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
39587 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
39588 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
39589 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
39590 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
39591 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
39592 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
39593 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
39594 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
39595 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
39596 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
39597 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
39598 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
39599 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
39600 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
39601 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
39602 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
39603 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
39604 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
39605 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
39606 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
39607 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
39608 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
39609 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
39610 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
39611 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
39612 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
39613 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
39614 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
39615 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
39616 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
39617 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
39618 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
39619 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
39620 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
39621 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
39622 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
39623 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
39624 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
39625 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
39626 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
39627 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
39628 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
39629 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
39630 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
39631 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
39632 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
39633 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
39634 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
39635 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
39636 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
39637 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
39638 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
39639 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
39640 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
39641 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
39642 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
39643 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
39644 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
39645 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
39646 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
39647 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
39648 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
39649 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
39650 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
39651 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
39652 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
39653 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
39654 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
39655 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
39656 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
39657 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
39658 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
39659 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
39660 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
39661 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
39662 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
39663 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
39664 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
39665 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
39666 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
39667 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
39668 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
39669 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
39670 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
39671 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
39672 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
39673 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
39674 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
39675 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
39676 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
39677 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
39678 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
39679 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
39680 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
39681 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
39682 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
39683 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
39684 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
39685 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
39686 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
39687 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
39688 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
39689 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
39690 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
39691 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
39692 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
39693
39694 LTCC='$LTCC'
39695 LTCFLAGS='$LTCFLAGS'
39696 compiler='$compiler_DEFAULT'
39697
39698 # A function that is used when there is no print builtin or printf.
39699 func_fallback_echo ()
39700 {
39701 eval 'cat <<_LTECHO_EOF
39702 \$1
39703 _LTECHO_EOF'
39704 }
39705
39706 # Quote evaled strings.
39707 for var in AS \
39708 DLLTOOL \
39709 OBJDUMP \
39710 SHELL \
39711 ECHO \
39712 PATH_SEPARATOR \
39713 SED \
39714 GREP \
39715 EGREP \
39716 FGREP \
39717 LD \
39718 NM \
39719 LN_S \
39720 lt_SP2NL \
39721 lt_NL2SP \
39722 reload_flag \
39723 deplibs_check_method \
39724 file_magic_cmd \
39725 file_magic_glob \
39726 want_nocaseglob \
39727 sharedlib_from_linklib_cmd \
39728 AR \
39729 AR_FLAGS \
39730 archiver_list_spec \
39731 STRIP \
39732 RANLIB \
39733 CC \
39734 CFLAGS \
39735 compiler \
39736 lt_cv_sys_global_symbol_pipe \
39737 lt_cv_sys_global_symbol_to_cdecl \
39738 lt_cv_sys_global_symbol_to_import \
39739 lt_cv_sys_global_symbol_to_c_name_address \
39740 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
39741 lt_cv_nm_interface \
39742 nm_file_list_spec \
39743 lt_cv_truncate_bin \
39744 lt_prog_compiler_no_builtin_flag \
39745 lt_prog_compiler_pic \
39746 lt_prog_compiler_wl \
39747 lt_prog_compiler_static \
39748 lt_cv_prog_compiler_c_o \
39749 need_locks \
39750 MANIFEST_TOOL \
39751 DSYMUTIL \
39752 NMEDIT \
39753 LIPO \
39754 OTOOL \
39755 OTOOL64 \
39756 shrext_cmds \
39757 export_dynamic_flag_spec \
39758 whole_archive_flag_spec \
39759 compiler_needs_object \
39760 with_gnu_ld \
39761 allow_undefined_flag \
39762 no_undefined_flag \
39763 hardcode_libdir_flag_spec \
39764 hardcode_libdir_separator \
39765 exclude_expsyms \
39766 include_expsyms \
39767 file_list_spec \
39768 variables_saved_for_relink \
39769 libname_spec \
39770 library_names_spec \
39771 soname_spec \
39772 install_override_mode \
39773 finish_eval \
39774 old_striplib \
39775 striplib \
39776 LD_RC \
39777 reload_flag_RC \
39778 compiler_RC \
39779 lt_prog_compiler_no_builtin_flag_RC \
39780 lt_prog_compiler_pic_RC \
39781 lt_prog_compiler_wl_RC \
39782 lt_prog_compiler_static_RC \
39783 lt_cv_prog_compiler_c_o_RC \
39784 export_dynamic_flag_spec_RC \
39785 whole_archive_flag_spec_RC \
39786 compiler_needs_object_RC \
39787 with_gnu_ld_RC \
39788 allow_undefined_flag_RC \
39789 no_undefined_flag_RC \
39790 hardcode_libdir_flag_spec_RC \
39791 hardcode_libdir_separator_RC \
39792 exclude_expsyms_RC \
39793 include_expsyms_RC \
39794 file_list_spec_RC; do
39795 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
39796 *[\\\\\\\`\\"\\\$]*)
39797 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
39798 ;;
39799 *)
39800 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
39801 ;;
39802 esac
39803 done
39804
39805 # Double-quote double-evaled strings.
39806 for var in reload_cmds \
39807 old_postinstall_cmds \
39808 old_postuninstall_cmds \
39809 old_archive_cmds \
39810 extract_expsyms_cmds \
39811 old_archive_from_new_cmds \
39812 old_archive_from_expsyms_cmds \
39813 archive_cmds \
39814 archive_expsym_cmds \
39815 module_cmds \
39816 module_expsym_cmds \
39817 export_symbols_cmds \
39818 prelink_cmds \
39819 postlink_cmds \
39820 postinstall_cmds \
39821 postuninstall_cmds \
39822 finish_cmds \
39823 sys_lib_search_path_spec \
39824 configure_time_dlsearch_path \
39825 configure_time_lt_sys_library_path \
39826 reload_cmds_RC \
39827 old_archive_cmds_RC \
39828 old_archive_from_new_cmds_RC \
39829 old_archive_from_expsyms_cmds_RC \
39830 archive_cmds_RC \
39831 archive_expsym_cmds_RC \
39832 module_cmds_RC \
39833 module_expsym_cmds_RC \
39834 export_symbols_cmds_RC \
39835 prelink_cmds_RC \
39836 postlink_cmds_RC; do
39837 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
39838 *[\\\\\\\`\\"\\\$]*)
39839 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
39840 ;;
39841 *)
39842 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
39843 ;;
39844 esac
39845 done
39846
39847 ac_aux_dir='$ac_aux_dir'
39848
39849 # See if we are running on zsh, and set the options that allow our
39850 # commands through without removal of \ escapes INIT.
39851 if test -n "\${ZSH_VERSION+set}"; then
39852 setopt NO_GLOB_SUBST
39853 fi
39854
39855
39856 PACKAGE='$PACKAGE'
39857 VERSION='$VERSION'
39858 RM='$RM'
39859 ofile='$ofile'
39860
39861
39862
39863
39864
39865
39866 _ACEOF
39867
39868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39869
39870 # Handling of arguments.
39871 for ac_config_target in $ac_config_targets
39872 do
39873 case $ac_config_target in
39874 "include/net-snmp/net-snmp-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/net-snmp/net-snmp-config.h" ;;
39875 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
39876 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.top:Makefile.in:Makefile.rules" ;;
39877 "snmplib/Makefile") CONFIG_FILES="$CONFIG_FILES snmplib/Makefile:Makefile.top:snmplib/Makefile.in:Makefile.rules:snmplib/Makefile.depend" ;;
39878 "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile:Makefile.top:apps/Makefile.in:Makefile.rules:apps/Makefile.depend" ;;
39879 "apps/snmpnetstat/Makefile") CONFIG_FILES="$CONFIG_FILES apps/snmpnetstat/Makefile:Makefile.top:apps/snmpnetstat/Makefile.in:Makefile.rules:apps/snmpnetstat/Makefile.depend" ;;
39880 "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile:Makefile.top:agent/Makefile.in:Makefile.rules:agent/Makefile.depend" ;;
39881 "agent/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES agent/helpers/Makefile:Makefile.top:agent/helpers/Makefile.in:Makefile.rules:agent/helpers/Makefile.depend" ;;
39882 "agent/mibgroup/Makefile") CONFIG_FILES="$CONFIG_FILES agent/mibgroup/Makefile:Makefile.top:agent/mibgroup/Makefile.in:Makefile.rules:agent/mibgroup/Makefile.depend" ;;
39883 "local/Makefile") CONFIG_FILES="$CONFIG_FILES local/Makefile:Makefile.top:local/Makefile.in:Makefile.rules" ;;
39884 "testing/Makefile") CONFIG_FILES="$CONFIG_FILES testing/Makefile:Makefile.top:testing/Makefile.in" ;;
39885 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile:Makefile.top:man/Makefile.in:Makefile.rules" ;;
39886 "mibs/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/Makefile:Makefile.top:mibs/Makefile.in:Makefile.rules" ;;
39887 "net-snmp-config") CONFIG_FILES="$CONFIG_FILES net-snmp-config:net-snmp-config.in" ;;
39888 "net-snmp-create-v3-user") CONFIG_FILES="$CONFIG_FILES net-snmp-create-v3-user:net-snmp-create-v3-user.in" ;;
39889 "netsnmp.pc") CONFIG_FILES="$CONFIG_FILES netsnmp.pc:netsnmp.pc.in" ;;
39890 "netsnmp-agent.pc") CONFIG_FILES="$CONFIG_FILES netsnmp-agent.pc:netsnmp-agent.pc.in" ;;
39891 "dist/generation-scripts/gen-variables") CONFIG_FILES="$CONFIG_FILES dist/generation-scripts/gen-variables:dist/generation-scripts/gen-variables.in" ;;
39892 "local/snmpconf") CONFIG_FILES="$CONFIG_FILES local/snmpconf" ;;
39893 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39894
39895 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
39896 esac
39897 done
39898
39899
39900 # If the user did not use the arguments to specify the items to instantiate,
39901 # then the envvar interface is used. Set only those that are not.
39902 # We use the long form for the default assignment because of an extremely
39903 # bizarre bug on SunOS 4.1.3.
39904 if $ac_need_defaults; then
39905 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
39906 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
39907 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
39908 fi
39909
39910 # Have a temporary directory for convenience. Make it in the build tree
39911 # simply because there is no reason against having it here, and in addition,
39912 # creating and moving files from /tmp can sometimes cause problems.
39913 # Hook for its removal unless debugging.
39914 # Note that there is a small window in which the directory will not be cleaned:
39915 # after its creation but before its name has been assigned to '$tmp'.
39916 $debug ||
39917 {
39918 tmp= ac_tmp=
39919 trap 'exit_status=$?
39920 : "${ac_tmp:=$tmp}"
39921 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
39922 ' 0
39923 trap 'as_fn_exit 1' 1 2 13 15
39924 }
39925 # Create a (secure) tmp directory for tmp files.
39926
39927 {
39928 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39929 test -d "$tmp"
39930 } ||
39931 {
39932 tmp=./conf$$-$RANDOM
39933 (umask 077 && mkdir "$tmp")
39934 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
39935 ac_tmp=$tmp
39936
39937 # Set up the scripts for CONFIG_FILES section.
39938 # No need to generate them if there are no CONFIG_FILES.
39939 # This happens for instance with './config.status config.h'.
39940 if test -n "$CONFIG_FILES"; then
39941
39942 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
39943 ac_cs_awk_getline=:
39944 ac_cs_awk_pipe_init=
39945 ac_cs_awk_read_file='
39946 while ((getline aline < (F[key])) > 0)
39947 print(aline)
39948 close(F[key])'
39949 ac_cs_awk_pipe_fini=
39950 else
39951 ac_cs_awk_getline=false
39952 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
39953 ac_cs_awk_read_file='
39954 print "|#_!!_#|"
39955 print "cat " F[key] " &&"
39956 '$ac_cs_awk_pipe_init
39957 # The final ':' finishes the AND list.
39958 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
39959 fi
39960 ac_cr=`echo X | tr X '\015'`
39961 # On cygwin, bash can eat \r inside `` if the user requested igncr.
39962 # But we know of no other shell where ac_cr would be empty at this
39963 # point, so we can use a bashism as a fallback.
39964 if test "x$ac_cr" = x; then
39965 eval ac_cr=\$\'\\r\'
39966 fi
39967 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
39968 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
39969 ac_cs_awk_cr='\\r'
39970 else
39971 ac_cs_awk_cr=$ac_cr
39972 fi
39973
39974 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
39975 _ACEOF
39976
39977 # Create commands to substitute file output variables.
39978 {
39979 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
39980 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
39981 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
39982 echo "_ACAWK" &&
39983 echo "_ACEOF"
39984 } >conf$$files.sh &&
39985 . ./conf$$files.sh ||
39986 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39987 rm -f conf$$files.sh
39988
39989 {
39990 echo "cat >conf$$subs.awk <<_ACEOF" &&
39991 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
39992 echo "_ACEOF"
39993 } >conf$$subs.sh ||
39994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39995 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
39996 ac_delim='%!_!# '
39997 for ac_last_try in false false false false false :; do
39998 . ./conf$$subs.sh ||
39999 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40000
40001 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
40002 if test $ac_delim_n = $ac_delim_num; then
40003 break
40004 elif $ac_last_try; then
40005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40006 else
40007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40008 fi
40009 done
40010 rm -f conf$$subs.sh
40011
40012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40013 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
40014 _ACEOF
40015 sed -n '
40016 h
40017 s/^/S["/; s/!.*/"]=/
40018 p
40019 g
40020 s/^[^!]*!//
40021 :repl
40022 t repl
40023 s/'"$ac_delim"'$//
40024 t delim
40025 :nl
40026 h
40027 s/\(.\{148\}\)..*/\1/
40028 t more1
40029 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
40030 p
40031 n
40032 b repl
40033 :more1
40034 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
40035 p
40036 g
40037 s/.\{148\}//
40038 t nl
40039 :delim
40040 h
40041 s/\(.\{148\}\)..*/\1/
40042 t more2
40043 s/["\\]/\\&/g; s/^/"/; s/$/"/
40044 p
40045 b
40046 :more2
40047 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
40048 p
40049 g
40050 s/.\{148\}//
40051 t delim
40052 ' <conf$$subs.awk | sed '
40053 /^[^""]/{
40054 N
40055 s/\n//
40056 }
40057 ' >>$CONFIG_STATUS || ac_write_fail=1
40058 rm -f conf$$subs.awk
40059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40060 _ACAWK
40061 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
40062 for (key in S) S_is_set[key] = 1
40063 FS = ""
40064 \$ac_cs_awk_pipe_init
40065 }
40066 {
40067 line = $ 0
40068 nfields = split(line, field, "@")
40069 substed = 0
40070 len = length(field[1])
40071 for (i = 2; i < nfields; i++) {
40072 key = field[i]
40073 keylen = length(key)
40074 if (S_is_set[key]) {
40075 value = S[key]
40076 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
40077 len += length(value) + length(field[++i])
40078 substed = 1
40079 } else
40080 len += 1 + keylen
40081 }
40082 if (nfields == 3 && !substed) {
40083 key = field[2]
40084 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
40085 \$ac_cs_awk_read_file
40086 next
40087 }
40088 }
40089 print line
40090 }
40091 \$ac_cs_awk_pipe_fini
40092 _ACAWK
40093 _ACEOF
40094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40095 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
40096 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
40097 else
40098 cat
40099 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
40100 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
40101 _ACEOF
40102
40103 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
40104 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
40105 # trailing colons and then remove the whole line if VPATH becomes empty
40106 # (actually we leave an empty line to preserve line numbers).
40107 if test "x$srcdir" = x.; then
40108 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
40109 h
40110 s///
40111 s/^/:/
40112 s/[ ]*$/:/
40113 s/:\$(srcdir):/:/g
40114 s/:\${srcdir}:/:/g
40115 s/:@srcdir@:/:/g
40116 s/^:*//
40117 s/:*$//
40118 x
40119 s/\(=[ ]*\).*/\1/
40120 G
40121 s/\n//
40122 s/^[^=]*=[ ]*$//
40123 }'
40124 fi
40125
40126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40127 fi # test -n "$CONFIG_FILES"
40128
40129 # Set up the scripts for CONFIG_HEADERS section.
40130 # No need to generate them if there are no CONFIG_HEADERS.
40131 # This happens for instance with './config.status Makefile'.
40132 if test -n "$CONFIG_HEADERS"; then
40133 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
40134 BEGIN {
40135 _ACEOF
40136
40137 # Transform confdefs.h into an awk script 'defines.awk', embedded as
40138 # here-document in config.status, that substitutes the proper values into
40139 # config.h.in to produce config.h.
40140
40141 # Create a delimiter string that does not exist in confdefs.h, to ease
40142 # handling of long lines.
40143 ac_delim='%!_!# '
40144 for ac_last_try in false false :; do
40145 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
40146 if test -z "$ac_tt"; then
40147 break
40148 elif $ac_last_try; then
40149 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
40150 else
40151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40152 fi
40153 done
40154
40155 # For the awk script, D is an array of macro values keyed by name,
40156 # likewise P contains macro parameters if any. Preserve backslash
40157 # newline sequences.
40158
40159 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40160 sed -n '
40161 s/.\{148\}/&'"$ac_delim"'/g
40162 t rset
40163 :rset
40164 s/^[ ]*#[ ]*define[ ][ ]*/ /
40165 t def
40166 d
40167 :def
40168 s/\\$//
40169 t bsnl
40170 s/["\\]/\\&/g
40171 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
40172 D["\1"]=" \3"/p
40173 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
40174 d
40175 :bsnl
40176 s/["\\]/\\&/g
40177 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
40178 D["\1"]=" \3\\\\\\n"\\/p
40179 t cont
40180 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
40181 t cont
40182 d
40183 :cont
40184 n
40185 s/.\{148\}/&'"$ac_delim"'/g
40186 t clear
40187 :clear
40188 s/\\$//
40189 t bsnlc
40190 s/["\\]/\\&/g; s/^/"/; s/$/"/p
40191 d
40192 :bsnlc
40193 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
40194 b cont
40195 ' <confdefs.h | sed '
40196 s/'"$ac_delim"'/"\\\
40197 "/g' >>$CONFIG_STATUS || ac_write_fail=1
40198
40199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40200 for (key in D) D_is_set[key] = 1
40201 FS = ""
40202 }
40203 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
40204 line = \$ 0
40205 split(line, arg, " ")
40206 if (arg[1] == "#") {
40207 defundef = arg[2]
40208 mac1 = arg[3]
40209 } else {
40210 defundef = substr(arg[1], 2)
40211 mac1 = arg[2]
40212 }
40213 split(mac1, mac2, "(") #)
40214 macro = mac2[1]
40215 prefix = substr(line, 1, index(line, defundef) - 1)
40216 if (D_is_set[macro]) {
40217 # Preserve the white space surrounding the "#".
40218 print prefix "define", macro P[macro] D[macro]
40219 next
40220 } else {
40221 # Replace #undef with comments. This is necessary, for example,
40222 # in the case of _POSIX_SOURCE, which is predefined and required
40223 # on some systems where configure will not decide to define it.
40224 if (defundef == "undef") {
40225 print "/*", prefix defundef, macro, "*/"
40226 next
40227 }
40228 }
40229 }
40230 { print }
40231 _ACAWK
40232 _ACEOF
40233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40234 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
40235 fi # test -n "$CONFIG_HEADERS"
40236
40237
40238 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
40239 shift
40240 for ac_tag
40241 do
40242 case $ac_tag in
40243 :[FHLC]) ac_mode=$ac_tag; continue;;
40244 esac
40245 case $ac_mode$ac_tag in
40246 :[FHL]*:*);;
40247 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
40248 :[FH]-) ac_tag=-:-;;
40249 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40250 esac
40251 ac_save_IFS=$IFS
40252 IFS=:
40253 set x $ac_tag
40254 IFS=$ac_save_IFS
40255 shift
40256 ac_file=$1
40257 shift
40258
40259 case $ac_mode in
40260 :L) ac_source=$1;;
40261 :[FH])
40262 ac_file_inputs=
40263 for ac_f
40264 do
40265 case $ac_f in
40266 -) ac_f="$ac_tmp/stdin";;
40267 *) # Look for the file first in the build tree, then in the source tree
40268 # (if the path is not absolute). The absolute path cannot be DOS-style,
40269 # because $ac_f cannot contain ':'.
40270 test -f "$ac_f" ||
40271 case $ac_f in
40272 [\\/$]*) false;;
40273 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40274 esac ||
40275 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
40276 esac
40277 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
40278 as_fn_append ac_file_inputs " '$ac_f'"
40279 done
40280
40281 # Let's still pretend it is 'configure' which instantiates (i.e., don't
40282 # use $as_me), people would be surprised to read:
40283 # /* config.h. Generated by config.status. */
40284 configure_input='Generated from '`
40285 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
40286 `' by configure.'
40287 if test x"$ac_file" != x-; then
40288 configure_input="$ac_file. $configure_input"
40289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
40290 printf "%s\n" "$as_me: creating $ac_file" >&6;}
40291 fi
40292 # Neutralize special characters interpreted by sed in replacement strings.
40293 case $configure_input in #(
40294 *\&* | *\|* | *\\* )
40295 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
40296 sed 's/[\\\\&|]/\\\\&/g'`;; #(
40297 *) ac_sed_conf_input=$configure_input;;
40298 esac
40299
40300 case $ac_tag in
40301 *:-:* | *:-) cat >"$ac_tmp/stdin" \
40302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
40303 esac
40304 ;;
40305 esac
40306
40307 ac_dir=`$as_dirname -- "$ac_file" ||
40308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40309 X"$ac_file" : 'X\(//\)[^/]' \| \
40310 X"$ac_file" : 'X\(//\)$' \| \
40311 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40312 printf "%s\n" X"$ac_file" |
40313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40314 s//\1/
40315 q
40316 }
40317 /^X\(\/\/\)[^/].*/{
40318 s//\1/
40319 q
40320 }
40321 /^X\(\/\/\)$/{
40322 s//\1/
40323 q
40324 }
40325 /^X\(\/\).*/{
40326 s//\1/
40327 q
40328 }
40329 s/.*/./; q'`
40330 as_dir="$ac_dir"; as_fn_mkdir_p
40331 ac_builddir=.
40332
40333 case "$ac_dir" in
40334 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40335 *)
40336 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
40337 # A ".." for each directory in $ac_dir_suffix.
40338 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
40339 case $ac_top_builddir_sub in
40340 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40341 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40342 esac ;;
40343 esac
40344 ac_abs_top_builddir=$ac_pwd
40345 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40346 # for backward compatibility:
40347 ac_top_builddir=$ac_top_build_prefix
40348
40349 case $srcdir in
40350 .) # We are building in place.
40351 ac_srcdir=.
40352 ac_top_srcdir=$ac_top_builddir_sub
40353 ac_abs_top_srcdir=$ac_pwd ;;
40354 [\\/]* | ?:[\\/]* ) # Absolute name.
40355 ac_srcdir=$srcdir$ac_dir_suffix;
40356 ac_top_srcdir=$srcdir
40357 ac_abs_top_srcdir=$srcdir ;;
40358 *) # Relative name.
40359 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40360 ac_top_srcdir=$ac_top_build_prefix$srcdir
40361 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40362 esac
40363 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40364
40365
40366 case $ac_mode in
40367 :F)
40368 #
40369 # CONFIG_FILE
40370 #
40371
40372 case $INSTALL in
40373 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40374 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40375 esac
40376 _ACEOF
40377
40378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40379 # If the template does not know about datarootdir, expand it.
40380 # FIXME: This hack should be removed a few years after 2.60.
40381 ac_datarootdir_hack=; ac_datarootdir_seen=
40382 ac_sed_dataroot='
40383 /datarootdir/ {
40384 p
40385 q
40386 }
40387 /@datadir@/p
40388 /@docdir@/p
40389 /@infodir@/p
40390 /@localedir@/p
40391 /@mandir@/p'
40392 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
40393 *datarootdir*) ac_datarootdir_seen=yes;;
40394 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40396 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40397 _ACEOF
40398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40399 ac_datarootdir_hack='
40400 s&@datadir@&$datadir&g
40401 s&@docdir@&$docdir&g
40402 s&@infodir@&$infodir&g
40403 s&@localedir@&$localedir&g
40404 s&@mandir@&$mandir&g
40405 s&\\\${datarootdir}&$datarootdir&g' ;;
40406 esac
40407 _ACEOF
40408
40409 # Neutralize VPATH when '$srcdir' = '.'.
40410 # Shell code in configure.ac might set extrasub.
40411 # FIXME: do we really want to maintain this feature?
40412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40413 ac_sed_extra="$ac_vpsub
40414 $extrasub
40415 _ACEOF
40416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40417 :t
40418 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40419 s|@configure_input@|$ac_sed_conf_input|;t t
40420 s&@top_builddir@&$ac_top_builddir_sub&;t t
40421 s&@top_build_prefix@&$ac_top_build_prefix&;t t
40422 s&@srcdir@&$ac_srcdir&;t t
40423 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40424 s&@top_srcdir@&$ac_top_srcdir&;t t
40425 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40426 s&@builddir@&$ac_builddir&;t t
40427 s&@abs_builddir@&$ac_abs_builddir&;t t
40428 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40429 s&@INSTALL@&$ac_INSTALL&;t t
40430 $ac_datarootdir_hack
40431 "
40432 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
40433 if $ac_cs_awk_getline; then
40434 $AWK -f "$ac_tmp/subs.awk"
40435 else
40436 $AWK -f "$ac_tmp/subs.awk" | $SHELL
40437 fi \
40438 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
40439
40440 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40441 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
40442 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
40443 "$ac_tmp/out"`; test -z "$ac_out"; } &&
40444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
40445 which seems to be undefined. Please make sure it is defined" >&5
40446 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
40447 which seems to be undefined. Please make sure it is defined" >&2;}
40448
40449 rm -f "$ac_tmp/stdin"
40450 case $ac_file in
40451 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
40452 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
40453 esac \
40454 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
40455 ;;
40456 :H)
40457 #
40458 # CONFIG_HEADER
40459 #
40460 if test x"$ac_file" != x-; then
40461 {
40462 printf "%s\n" "/* $configure_input */" >&1 \
40463 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
40464 } >"$ac_tmp/config.h" \
40465 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
40466 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
40467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
40468 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
40469 else
40470 rm -f "$ac_file"
40471 mv "$ac_tmp/config.h" "$ac_file" \
40472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
40473 fi
40474 else
40475 printf "%s\n" "/* $configure_input */" >&1 \
40476 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
40477 || as_fn_error $? "could not create -" "$LINENO" 5
40478 fi
40479 ;;
40480
40481 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
40482 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
40483 ;;
40484 esac
40485
40486
40487 case $ac_file$ac_mode in
40488 "libtool":C)
40489
40490 # See if we are running on zsh, and set the options that allow our
40491 # commands through without removal of \ escapes.
40492 if test -n "${ZSH_VERSION+set}"; then
40493 setopt NO_GLOB_SUBST
40494 fi
40495
40496 cfgfile=${ofile}T
40497 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
40498 $RM "$cfgfile"
40499
40500 cat <<_LT_EOF >> "$cfgfile"
40501 #! $SHELL
40502 # Generated automatically by $as_me ($PACKAGE) $VERSION
40503 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
40504 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
40505
40506 # Provide generalized library-building support services.
40507 # Written by Gordon Matzigkeit, 1996
40508
40509 # Copyright (C) 2014 Free Software Foundation, Inc.
40510 # This is free software; see the source for copying conditions. There is NO
40511 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
40512
40513 # GNU Libtool is free software; you can redistribute it and/or modify
40514 # it under the terms of the GNU General Public License as published by
40515 # the Free Software Foundation; either version 2 of of the License, or
40516 # (at your option) any later version.
40517 #
40518 # As a special exception to the GNU General Public License, if you
40519 # distribute this file as part of a program or library that is built
40520 # using GNU Libtool, you may include this file under the same
40521 # distribution terms that you use for the rest of that program.
40522 #
40523 # GNU Libtool is distributed in the hope that it will be useful, but
40524 # WITHOUT ANY WARRANTY; without even the implied warranty of
40525 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40526 # GNU General Public License for more details.
40527 #
40528 # You should have received a copy of the GNU General Public License
40529 # along with this program. If not, see <http://www.gnu.org/licenses/>.
40530
40531
40532 # The names of the tagged configurations supported by this script.
40533 available_tags='RC '
40534
40535 # Configured defaults for sys_lib_dlsearch_path munging.
40536 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
40537
40538 # ### BEGIN LIBTOOL CONFIG
40539
40540 # Which release of libtool.m4 was used?
40541 macro_version=$macro_version
40542 macro_revision=$macro_revision
40543
40544 # Assembler program.
40545 AS=$lt_AS
40546
40547 # DLL creation program.
40548 DLLTOOL=$lt_DLLTOOL
40549
40550 # Object dumper program.
40551 OBJDUMP=$lt_OBJDUMP
40552
40553 # Whether or not to build shared libraries.
40554 build_libtool_libs=$enable_shared
40555
40556 # Whether or not to build static libraries.
40557 build_old_libs=$enable_static
40558
40559 # What type of objects to build.
40560 pic_mode=$pic_mode
40561
40562 # Whether or not to optimize for fast installation.
40563 fast_install=$enable_fast_install
40564
40565 # Shared archive member basename,for filename based shared library versioning on AIX.
40566 shared_archive_member_spec=$shared_archive_member_spec
40567
40568 # Shell to use when invoking shell scripts.
40569 SHELL=$lt_SHELL
40570
40571 # An echo program that protects backslashes.
40572 ECHO=$lt_ECHO
40573
40574 # The PATH separator for the build system.
40575 PATH_SEPARATOR=$lt_PATH_SEPARATOR
40576
40577 # The host system.
40578 host_alias=$host_alias
40579 host=$host
40580 host_os=$host_os
40581
40582 # The build system.
40583 build_alias=$build_alias
40584 build=$build
40585 build_os=$build_os
40586
40587 # A sed program that does not truncate output.
40588 SED=$lt_SED
40589
40590 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
40591 Xsed="\$SED -e 1s/^X//"
40592
40593 # A grep program that handles long lines.
40594 GREP=$lt_GREP
40595
40596 # An ERE matcher.
40597 EGREP=$lt_EGREP
40598
40599 # A literal string matcher.
40600 FGREP=$lt_FGREP
40601
40602 # A BSD- or MS-compatible name lister.
40603 NM=$lt_NM
40604
40605 # Whether we need soft or hard links.
40606 LN_S=$lt_LN_S
40607
40608 # What is the maximum length of a command?
40609 max_cmd_len=$max_cmd_len
40610
40611 # Object file suffix (normally "o").
40612 objext=$ac_objext
40613
40614 # Executable file suffix (normally "").
40615 exeext=$exeext
40616
40617 # whether the shell understands "unset".
40618 lt_unset=$lt_unset
40619
40620 # turn spaces into newlines.
40621 SP2NL=$lt_lt_SP2NL
40622
40623 # turn newlines into spaces.
40624 NL2SP=$lt_lt_NL2SP
40625
40626 # convert \$build file names to \$host format.
40627 to_host_file_cmd=$lt_cv_to_host_file_cmd
40628
40629 # convert \$build files to toolchain format.
40630 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
40631
40632 # Method to check whether dependent libraries are shared objects.
40633 deplibs_check_method=$lt_deplibs_check_method
40634
40635 # Command to use when deplibs_check_method = "file_magic".
40636 file_magic_cmd=$lt_file_magic_cmd
40637
40638 # How to find potential files when deplibs_check_method = "file_magic".
40639 file_magic_glob=$lt_file_magic_glob
40640
40641 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
40642 want_nocaseglob=$lt_want_nocaseglob
40643
40644 # Command to associate shared and link libraries.
40645 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
40646
40647 # The archiver.
40648 AR=$lt_AR
40649
40650 # Flags to create an archive.
40651 AR_FLAGS=$lt_AR_FLAGS
40652
40653 # How to feed a file listing to the archiver.
40654 archiver_list_spec=$lt_archiver_list_spec
40655
40656 # A symbol stripping program.
40657 STRIP=$lt_STRIP
40658
40659 # Commands used to install an old-style archive.
40660 RANLIB=$lt_RANLIB
40661 old_postinstall_cmds=$lt_old_postinstall_cmds
40662 old_postuninstall_cmds=$lt_old_postuninstall_cmds
40663
40664 # Whether to use a lock for old archive extraction.
40665 lock_old_archive_extraction=$lock_old_archive_extraction
40666
40667 # A C compiler.
40668 LTCC=$lt_CC
40669
40670 # LTCC compiler flags.
40671 LTCFLAGS=$lt_CFLAGS
40672
40673 # Take the output of nm and produce a listing of raw symbols and C names.
40674 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
40675
40676 # Transform the output of nm in a proper C declaration.
40677 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
40678
40679 # Transform the output of nm into a list of symbols to manually relocate.
40680 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
40681
40682 # Transform the output of nm in a C name address pair.
40683 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
40684
40685 # Transform the output of nm in a C name address pair when lib prefix is needed.
40686 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
40687
40688 # The name lister interface.
40689 nm_interface=$lt_lt_cv_nm_interface
40690
40691 # Specify filename containing input files for \$NM.
40692 nm_file_list_spec=$lt_nm_file_list_spec
40693
40694 # The root where to search for dependent libraries,and where our libraries should be installed.
40695 lt_sysroot=$lt_sysroot
40696
40697 # Command to truncate a binary pipe.
40698 lt_truncate_bin=$lt_lt_cv_truncate_bin
40699
40700 # The name of the directory that contains temporary libtool files.
40701 objdir=$objdir
40702
40703 # Used to examine libraries when file_magic_cmd begins with "file".
40704 MAGIC_CMD=$MAGIC_CMD
40705
40706 # Must we lock files when doing compilation?
40707 need_locks=$lt_need_locks
40708
40709 # Manifest tool.
40710 MANIFEST_TOOL=$lt_MANIFEST_TOOL
40711
40712 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
40713 DSYMUTIL=$lt_DSYMUTIL
40714
40715 # Tool to change global to local symbols on Mac OS X.
40716 NMEDIT=$lt_NMEDIT
40717
40718 # Tool to manipulate fat objects and archives on Mac OS X.
40719 LIPO=$lt_LIPO
40720
40721 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
40722 OTOOL=$lt_OTOOL
40723
40724 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
40725 OTOOL64=$lt_OTOOL64
40726
40727 # Old archive suffix (normally "a").
40728 libext=$libext
40729
40730 # Shared library suffix (normally ".so").
40731 shrext_cmds=$lt_shrext_cmds
40732
40733 # The commands to extract the exported symbol list from a shared archive.
40734 extract_expsyms_cmds=$lt_extract_expsyms_cmds
40735
40736 # Variables whose values should be saved in libtool wrapper scripts and
40737 # restored at link time.
40738 variables_saved_for_relink=$lt_variables_saved_for_relink
40739
40740 # Do we need the "lib" prefix for modules?
40741 need_lib_prefix=$need_lib_prefix
40742
40743 # Do we need a version for libraries?
40744 need_version=$need_version
40745
40746 # Library versioning type.
40747 version_type=$version_type
40748
40749 # Shared library runtime path variable.
40750 runpath_var=$runpath_var
40751
40752 # Shared library path variable.
40753 shlibpath_var=$shlibpath_var
40754
40755 # Is shlibpath searched before the hard-coded library search path?
40756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
40757
40758 # Format of library name prefix.
40759 libname_spec=$lt_libname_spec
40760
40761 # List of archive names. First name is the real one, the rest are links.
40762 # The last name is the one that the linker finds with -lNAME
40763 library_names_spec=$lt_library_names_spec
40764
40765 # The coded name of the library, if different from the real name.
40766 soname_spec=$lt_soname_spec
40767
40768 # Permission mode override for installation of shared libraries.
40769 install_override_mode=$lt_install_override_mode
40770
40771 # Command to use after installation of a shared archive.
40772 postinstall_cmds=$lt_postinstall_cmds
40773
40774 # Command to use after uninstallation of a shared archive.
40775 postuninstall_cmds=$lt_postuninstall_cmds
40776
40777 # Commands used to finish a libtool library installation in a directory.
40778 finish_cmds=$lt_finish_cmds
40779
40780 # As "finish_cmds", except a single script fragment to be evaled but
40781 # not shown.
40782 finish_eval=$lt_finish_eval
40783
40784 # Whether we should hardcode library paths into libraries.
40785 hardcode_into_libs=$hardcode_into_libs
40786
40787 # Compile-time system search path for libraries.
40788 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
40789
40790 # Detected run-time system search path for libraries.
40791 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
40792
40793 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
40794 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
40795
40796 # Whether dlopen is supported.
40797 dlopen_support=$enable_dlopen
40798
40799 # Whether dlopen of programs is supported.
40800 dlopen_self=$enable_dlopen_self
40801
40802 # Whether dlopen of statically linked programs is supported.
40803 dlopen_self_static=$enable_dlopen_self_static
40804
40805 # Commands to strip libraries.
40806 old_striplib=$lt_old_striplib
40807 striplib=$lt_striplib
40808
40809
40810 # The linker used to build libraries.
40811 LD=$lt_LD
40812
40813 # How to create reloadable object files.
40814 reload_flag=$lt_reload_flag
40815 reload_cmds=$lt_reload_cmds
40816
40817 # Commands used to build an old-style archive.
40818 old_archive_cmds=$lt_old_archive_cmds
40819
40820 # A language specific compiler.
40821 CC=$lt_compiler
40822
40823 # Is the compiler the GNU compiler?
40824 with_gcc=$GCC
40825
40826 # Compiler flag to turn off builtin functions.
40827 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
40828
40829 # Additional compiler flags for building library objects.
40830 pic_flag=$lt_lt_prog_compiler_pic
40831
40832 # How to pass a linker flag through the compiler.
40833 wl=$lt_lt_prog_compiler_wl
40834
40835 # Compiler flag to prevent dynamic linking.
40836 link_static_flag=$lt_lt_prog_compiler_static
40837
40838 # Does compiler simultaneously support -c and -o options?
40839 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
40840
40841 # Whether or not to add -lc for building shared libraries.
40842 build_libtool_need_lc=$archive_cmds_need_lc
40843
40844 # Whether or not to disallow shared libs when runtime libs are static.
40845 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
40846
40847 # Compiler flag to allow reflexive dlopens.
40848 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
40849
40850 # Compiler flag to generate shared objects directly from archives.
40851 whole_archive_flag_spec=$lt_whole_archive_flag_spec
40852
40853 # Whether the compiler copes with passing no objects directly.
40854 compiler_needs_object=$lt_compiler_needs_object
40855
40856 # Create an old-style archive from a shared archive.
40857 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
40858
40859 # Create a temporary old-style archive to link instead of a shared archive.
40860 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
40861
40862 # Commands used to build a shared archive.
40863 archive_cmds=$lt_archive_cmds
40864 archive_expsym_cmds=$lt_archive_expsym_cmds
40865
40866 # Commands used to build a loadable module if different from building
40867 # a shared archive.
40868 module_cmds=$lt_module_cmds
40869 module_expsym_cmds=$lt_module_expsym_cmds
40870
40871 # Whether we are building with GNU ld or not.
40872 with_gnu_ld=$lt_with_gnu_ld
40873
40874 # Flag that allows shared libraries with undefined symbols to be built.
40875 allow_undefined_flag=$lt_allow_undefined_flag
40876
40877 # Flag that enforces no undefined symbols.
40878 no_undefined_flag=$lt_no_undefined_flag
40879
40880 # Flag to hardcode \$libdir into a binary during linking.
40881 # This must work even if \$libdir does not exist
40882 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
40883
40884 # Whether we need a single "-rpath" flag with a separated argument.
40885 hardcode_libdir_separator=$lt_hardcode_libdir_separator
40886
40887 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
40888 # DIR into the resulting binary.
40889 hardcode_direct=$hardcode_direct
40890
40891 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
40892 # DIR into the resulting binary and the resulting library dependency is
40893 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
40894 # library is relocated.
40895 hardcode_direct_absolute=$hardcode_direct_absolute
40896
40897 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
40898 # into the resulting binary.
40899 hardcode_minus_L=$hardcode_minus_L
40900
40901 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
40902 # into the resulting binary.
40903 hardcode_shlibpath_var=$hardcode_shlibpath_var
40904
40905 # Set to "yes" if building a shared library automatically hardcodes DIR
40906 # into the library and all subsequent libraries and executables linked
40907 # against it.
40908 hardcode_automatic=$hardcode_automatic
40909
40910 # Set to yes if linker adds runtime paths of dependent libraries
40911 # to runtime path list.
40912 inherit_rpath=$inherit_rpath
40913
40914 # Whether libtool must link a program against all its dependency libraries.
40915 link_all_deplibs=$link_all_deplibs
40916
40917 # Set to "yes" if exported symbols are required.
40918 always_export_symbols=$always_export_symbols
40919
40920 # The commands to list exported symbols.
40921 export_symbols_cmds=$lt_export_symbols_cmds
40922
40923 # Symbols that should not be listed in the preloaded symbols.
40924 exclude_expsyms=$lt_exclude_expsyms
40925
40926 # Symbols that must always be exported.
40927 include_expsyms=$lt_include_expsyms
40928
40929 # Commands necessary for linking programs (against libraries) with templates.
40930 prelink_cmds=$lt_prelink_cmds
40931
40932 # Commands necessary for finishing linking programs.
40933 postlink_cmds=$lt_postlink_cmds
40934
40935 # Specify filename containing input files.
40936 file_list_spec=$lt_file_list_spec
40937
40938 # How to hardcode a shared library path into an executable.
40939 hardcode_action=$hardcode_action
40940
40941 # ### END LIBTOOL CONFIG
40942
40943 _LT_EOF
40944
40945 cat <<'_LT_EOF' >> "$cfgfile"
40946
40947 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
40948
40949 # func_munge_path_list VARIABLE PATH
40950 # -----------------------------------
40951 # VARIABLE is name of variable containing _space_ separated list of
40952 # directories to be munged by the contents of PATH, which is string
40953 # having a format:
40954 # "DIR[:DIR]:"
40955 # string "DIR[ DIR]" will be prepended to VARIABLE
40956 # ":DIR[:DIR]"
40957 # string "DIR[ DIR]" will be appended to VARIABLE
40958 # "DIRP[:DIRP]::[DIRA:]DIRA"
40959 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
40960 # "DIRA[ DIRA]" will be appended to VARIABLE
40961 # "DIR[:DIR]"
40962 # VARIABLE will be replaced by "DIR[ DIR]"
40963 func_munge_path_list ()
40964 {
40965 case x$2 in
40966 x)
40967 ;;
40968 *:)
40969 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
40970 ;;
40971 x:*)
40972 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
40973 ;;
40974 *::*)
40975 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
40976 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
40977 ;;
40978 *)
40979 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
40980 ;;
40981 esac
40982 }
40983
40984
40985 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
40986 func_cc_basename ()
40987 {
40988 for cc_temp in $*""; do
40989 case $cc_temp in
40990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
40991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
40992 \-*) ;;
40993 *) break;;
40994 esac
40995 done
40996 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
40997 }
40998
40999
41000 # ### END FUNCTIONS SHARED WITH CONFIGURE
41001
41002 _LT_EOF
41003
41004 case $host_os in
41005 aix3*)
41006 cat <<\_LT_EOF >> "$cfgfile"
41007 # AIX sometimes has problems with the GCC collect2 program. For some
41008 # reason, if we set the COLLECT_NAMES environment variable, the problems
41009 # vanish in a puff of smoke.
41010 if test set != "${COLLECT_NAMES+set}"; then
41011 COLLECT_NAMES=
41012 export COLLECT_NAMES
41013 fi
41014 _LT_EOF
41015 ;;
41016 esac
41017
41018
41019
41020 ltmain=$ac_aux_dir/ltmain.sh
41021
41022
41023 # We use sed instead of cat because bash on DJGPP gets confused if
41024 # if finds mixed CR/LF and LF-only lines. Since sed operates in
41025 # text mode, it properly converts lines to CR/LF. This bash problem
41026 # is reportedly fixed, but why not run on old versions too?
41027 sed '$q' "$ltmain" >> "$cfgfile" \
41028 || (rm -f "$cfgfile"; exit 1)
41029
41030 mv -f "$cfgfile" "$ofile" ||
41031 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
41032 chmod +x "$ofile"
41033
41034
41035 cat <<_LT_EOF >> "$ofile"
41036
41037 # ### BEGIN LIBTOOL TAG CONFIG: RC
41038
41039 # The linker used to build libraries.
41040 LD=$lt_LD_RC
41041
41042 # How to create reloadable object files.
41043 reload_flag=$lt_reload_flag_RC
41044 reload_cmds=$lt_reload_cmds_RC
41045
41046 # Commands used to build an old-style archive.
41047 old_archive_cmds=$lt_old_archive_cmds_RC
41048
41049 # A language specific compiler.
41050 CC=$lt_compiler_RC
41051
41052 # Is the compiler the GNU compiler?
41053 with_gcc=$GCC_RC
41054
41055 # Compiler flag to turn off builtin functions.
41056 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
41057
41058 # Additional compiler flags for building library objects.
41059 pic_flag=$lt_lt_prog_compiler_pic_RC
41060
41061 # How to pass a linker flag through the compiler.
41062 wl=$lt_lt_prog_compiler_wl_RC
41063
41064 # Compiler flag to prevent dynamic linking.
41065 link_static_flag=$lt_lt_prog_compiler_static_RC
41066
41067 # Does compiler simultaneously support -c and -o options?
41068 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
41069
41070 # Whether or not to add -lc for building shared libraries.
41071 build_libtool_need_lc=$archive_cmds_need_lc_RC
41072
41073 # Whether or not to disallow shared libs when runtime libs are static.
41074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
41075
41076 # Compiler flag to allow reflexive dlopens.
41077 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
41078
41079 # Compiler flag to generate shared objects directly from archives.
41080 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
41081
41082 # Whether the compiler copes with passing no objects directly.
41083 compiler_needs_object=$lt_compiler_needs_object_RC
41084
41085 # Create an old-style archive from a shared archive.
41086 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
41087
41088 # Create a temporary old-style archive to link instead of a shared archive.
41089 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
41090
41091 # Commands used to build a shared archive.
41092 archive_cmds=$lt_archive_cmds_RC
41093 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
41094
41095 # Commands used to build a loadable module if different from building
41096 # a shared archive.
41097 module_cmds=$lt_module_cmds_RC
41098 module_expsym_cmds=$lt_module_expsym_cmds_RC
41099
41100 # Whether we are building with GNU ld or not.
41101 with_gnu_ld=$lt_with_gnu_ld_RC
41102
41103 # Flag that allows shared libraries with undefined symbols to be built.
41104 allow_undefined_flag=$lt_allow_undefined_flag_RC
41105
41106 # Flag that enforces no undefined symbols.
41107 no_undefined_flag=$lt_no_undefined_flag_RC
41108
41109 # Flag to hardcode \$libdir into a binary during linking.
41110 # This must work even if \$libdir does not exist
41111 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
41112
41113 # Whether we need a single "-rpath" flag with a separated argument.
41114 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
41115
41116 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
41117 # DIR into the resulting binary.
41118 hardcode_direct=$hardcode_direct_RC
41119
41120 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
41121 # DIR into the resulting binary and the resulting library dependency is
41122 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
41123 # library is relocated.
41124 hardcode_direct_absolute=$hardcode_direct_absolute_RC
41125
41126 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
41127 # into the resulting binary.
41128 hardcode_minus_L=$hardcode_minus_L_RC
41129
41130 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
41131 # into the resulting binary.
41132 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
41133
41134 # Set to "yes" if building a shared library automatically hardcodes DIR
41135 # into the library and all subsequent libraries and executables linked
41136 # against it.
41137 hardcode_automatic=$hardcode_automatic_RC
41138
41139 # Set to yes if linker adds runtime paths of dependent libraries
41140 # to runtime path list.
41141 inherit_rpath=$inherit_rpath_RC
41142
41143 # Whether libtool must link a program against all its dependency libraries.
41144 link_all_deplibs=$link_all_deplibs_RC
41145
41146 # Set to "yes" if exported symbols are required.
41147 always_export_symbols=$always_export_symbols_RC
41148
41149 # The commands to list exported symbols.
41150 export_symbols_cmds=$lt_export_symbols_cmds_RC
41151
41152 # Symbols that should not be listed in the preloaded symbols.
41153 exclude_expsyms=$lt_exclude_expsyms_RC
41154
41155 # Symbols that must always be exported.
41156 include_expsyms=$lt_include_expsyms_RC
41157
41158 # Commands necessary for linking programs (against libraries) with templates.
41159 prelink_cmds=$lt_prelink_cmds_RC
41160
41161 # Commands necessary for finishing linking programs.
41162 postlink_cmds=$lt_postlink_cmds_RC
41163
41164 # Specify filename containing input files.
41165 file_list_spec=$lt_file_list_spec_RC
41166
41167 # How to hardcode a shared library path into an executable.
41168 hardcode_action=$hardcode_action_RC
41169
41170 # ### END LIBTOOL TAG CONFIG: RC
41171 _LT_EOF
41172
41173 ;;
41174 "net-snmp-config":F) chmod +x net-snmp-config ;;
41175 "net-snmp-create-v3-user":F) chmod +x net-snmp-create-v3-user ;;
41176 "default":C) echo timestamp > stamp-h ;;
41177
41178 esac
41179 done # for ac_tag
41180
41181
41182 as_fn_exit 0
41183 _ACEOF
41184 ac_clean_files=$ac_clean_files_save
41185
41186 test $ac_write_fail = 0 ||
41187 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
41188
41189
41190 # configure is writing to config.log, and then calls config.status.
41191 # config.status does its own redirection, appending to config.log.
41192 # Unfortunately, on DOS this fails, as config.log is still kept open
41193 # by configure, so config.status won't be able to write to it; its
41194 # output is simply discarded. So we exec the FD to /dev/null,
41195 # effectively closing config.log, so it can be properly (re)opened and
41196 # appended to by config.status. When coming back to configure, we
41197 # need to make the FD available again.
41198 if test "$no_create" != yes; then
41199 ac_cs_success=:
41200 ac_config_status_args=
41201 test "$silent" = yes &&
41202 ac_config_status_args="$ac_config_status_args --quiet"
41203 exec 5>/dev/null
41204 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41205 exec 5>>config.log
41206 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41207 # would make configure fail if this is the last instruction.
41208 $ac_cs_success || as_fn_exit 1
41209 fi
41210 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
41211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
41212 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
41213 fi
41214
41215
41216
41217 echo ""
41218 echo "---------------------------------------------------------"
41219 echo " Net-SNMP configuration summary:"
41220 echo "---------------------------------------------------------"
41221 echo ""
41222 cat configure-summary
41223 echo ""
41224 echo "---------------------------------------------------------"
41225 echo ""
41226
41227 # Local Variables:
41228 # mode: Autoconf
41229 # comment-start: "#"
41230 # End:
41231