1#! /bin/sh 2# From configure.ac Revision. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for Net-SNMP 5.9. 5# 6# Report bugs to <net-snmp-coders@lists.sourceforge.net>. 7# 8# 9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37as_nl=' 38' 39export as_nl 40# Printing a long string crashes Solaris 7 /usr/bin/printf. 41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44# Prefer a ksh shell builtin over an external printf program on Solaris, 45# but without wasting forks for bash or zsh. 46if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# IFS 86# We need space, tab and new line, in precisely that order. Quoting is 87# there to prevent editors from complaining about space-tab. 88# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89# splitting by setting IFS to empty value.) 90IFS=" "" $as_nl" 91 92# Find who we are. Look in the path if we contain no directory separator. 93as_myself= 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 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. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138# Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143# neutralization value for shells without unset; and this also 144# works around shells that cannot unset nonexistent variables. 145# Preserve -v and -x to the replacement shell. 146BASH_ENV=/dev/null 147ENV=/dev/null 148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154esac 155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156# Admittedly, this is quite paranoid, since all the known shells bail 157# out after a failed `exec'. 158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177esac 178fi 179" 180 as_required="as_fn_return () { (exit \$1); } 181as_fn_success () { as_fn_return 0; } 182as_fn_failure () { as_fn_return 1; } 183as_fn_ret_success () { return 0; } 184as_fn_ret_failure () { return 1; } 185 186exitcode=0 187as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193else 194 exitcode=1; echo positional parameters were not saved. 195fi 196test x\$exitcode = x0 || exit 1 197test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202test \$(( 1 + 1 )) = 2 || exit 1 203 204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 208 PATH=/empty FPATH=/empty; export PATH FPATH 209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 211 if (eval "$as_required") 2>/dev/null; then : 212 as_have_required=yes 213else 214 as_have_required=no 215fi 216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 217 218else 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220as_found=false 221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 222do 223 IFS=$as_save_IFS 224 test -z "$as_dir" && as_dir=. 225 as_found=: 226 case $as_dir in #( 227 /*) 228 for as_base in sh bash ksh sh5; do 229 # Try only shells that exist, to save several forks. 230 as_shell=$as_dir/$as_base 231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 233 CONFIG_SHELL=$as_shell as_have_required=yes 234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 235 break 2 236fi 237fi 238 done;; 239 esac 240 as_found=false 241done 242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi; } 246IFS=$as_save_IFS 247 248 249 if test "x$CONFIG_SHELL" != x; then : 250 export CONFIG_SHELL 251 # We cannot yet assume a decent shell, so we have to provide a 252# neutralization value for shells without unset; and this also 253# works around shells that cannot unset nonexistent variables. 254# Preserve -v and -x to the replacement shell. 255BASH_ENV=/dev/null 256ENV=/dev/null 257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 258case $- in # (((( 259 *v*x* | *x*v* ) as_opts=-vx ;; 260 *v* ) as_opts=-v ;; 261 *x* ) as_opts=-x ;; 262 * ) as_opts= ;; 263esac 264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 265# Admittedly, this is quite paranoid, since all the known shells bail 266# out after a failed `exec'. 267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 268exit 255 269fi 270 271 if test x$as_have_required = xno; then : 272 $as_echo "$0: This script requires a shell more modern than all" 273 $as_echo "$0: the shells that I found on your system." 274 if test x${ZSH_VERSION+set} = xset ; then 275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 $as_echo "$0: Please tell bug-autoconf@gnu.org and 279$0: net-snmp-coders@lists.sourceforge.net about your 280$0: system, including any error possibly output before this 281$0: message. Then install a modern shell, or manually run 282$0: the script under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='Net-SNMP' 593PACKAGE_TARNAME='net-snmp' 594PACKAGE_VERSION='5.9' 595PACKAGE_STRING='Net-SNMP 5.9' 596PACKAGE_BUGREPORT='net-snmp-coders@lists.sourceforge.net' 597PACKAGE_URL='' 598 599ac_unique_file="agent/snmpd.c" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_config_libobj_dir=snmplib 637ac_subst_vars='LTLIBOBJS 638ac_cv_NETSNMP_SYSTEM_INCLUDE_FILE 639PARTIALTARGETFLAGS 640DLLIBS 641OTHERAGENTLIBLFTS 642OTHERAGENTLIBLOBJS 643OTHERAGENTLIBOBJS 644AGENTLIBS 645PSCMD 646LPSTAT_PATH 647LIBOBJS 648ALLOCA 649VAL_LIBS 650LNETSNMPLIBS 651PYTHONFEATURES 652PYTHONARGS 653PYTHONCLEANTARGS 654PYTHONUNINSTALLTARGS 655PYTHONINSTALLTARGS 656PYTHONTARGS 657PERLFEATURES 658PERLARGS 659PERLUNINSTALLTARGS 660PERLINSTALLTARGS 661PERLTARGS 662PERLLDOPTS_FOR_APPS 663PERLLDOPTS_FOR_LIBS 664EMBEDPERLUNINSTALL 665EMBEDPERLINSTALL 666LIBCURSES 667HAVE_LIBCURSES 668NETSNMP_BUILD_PCAP_PROG_FALSE 669NETSNMP_BUILD_PCAP_PROG_TRUE 670MYSQL_INCLUDES 671MYSQL_LIBS 672MYSQLCONFIG 673crypto_files_lo 674crypto_files_o 675crypto_files_c 676NETSNMP_BUILD_SET_PROG_FALSE 677NETSNMP_BUILD_SET_PROG_TRUE 678NETSNMP_BUILD_USM_PROG_FALSE 679NETSNMP_BUILD_USM_PROG_TRUE 680NETSNMP_BUILD_TLS_PROG_FALSE 681NETSNMP_BUILD_TLS_PROG_TRUE 682NETSNMP_BUILD_SSH_PROG_FALSE 683NETSNMP_BUILD_SSH_PROG_TRUE 684LIBNL3_LIBS 685LIBNL3_CFLAGS 686PKG_CONFIG_LIBDIR 687PKG_CONFIG_PATH 688PKG_CONFIG 689NETSNMP_HAVE_AGENTX_LIBS_FALSE 690NETSNMP_HAVE_AGENTX_LIBS_TRUE 691NETSNMP_DEFAULT_MIBS 692ENV_SEPARATOR 693dllcleans 694default_mibs_install 695LMIBLIBS 696LAGENTLIBS 697krb5_config 698security_ftobj_list 699security_lobj_list 700security_obj_list 701security_hdr_list 702security_src_list 703transport_ftobj_list 704transport_lobj_list 705transport_obj_list 706transport_src_list 707transport_hdr_list 708other_trapd_objects 709other_ftagentobjs 710other_lagentobjs 711other_agentobjs 712other_ftobjs_list 713other_lobjs_list 714other_objs_list 715other_src_list 716SNMPCONFPATH 717NETSNMP_DEFAULT_MIBDIRS 718SNMPSHAREPATH 719SNMPLIBPATH 720VERSION 721DPKG_QUERY_PATH 722CCPATH 723EXTRACPPFLAGS 724LD_NO_UNDEFINED 725target_os 726target_vendor 727target_cpu 728target 729NON_GNU_VPATH 730GNU_vpath 731EXTERNAL_MIBGROUP_INCLUDES 732MIBGROUP_INCLUDES 733HELPER_INCLUDES 734AGENT_INCLUDES 735SNMPLIB_INCLUDES 736TOP_INCLUDES 737DEVFLAGS 738LIBTOOL_DEPS 739RC 740LT_SYS_LIBRARY_PATH 741OTOOL64 742OTOOL 743LIPO 744NMEDIT 745DSYMUTIL 746MANIFEST_TOOL 747AWK 748RANLIB 749STRIP 750ac_ct_AR 751AR 752NM 753ac_ct_DUMPBIN 754DUMPBIN 755LD 756FGREP 757host_os 758host_vendor 759host_cpu 760host 761build_os 762build_vendor 763build_cpu 764build 765LIBTOOL 766OBJDUMP 767DLLTOOL 768AS 769LINKCC 770PERL_SYSTEM_INVOKES_POSIX_SHELL 771UNAMEPROG 772PYTHONPROG 773PSPROG 774PERLPROG 775AUTOHEADER 776AUTOCONF 777WHOAMI 778FIND 779FILE 780SED 781SET_MAKE 782LN_S 783INSTALL_DATA 784INSTALL_SCRIPT 785INSTALL_PROGRAM 786COPY_PERSISTENT_FILES 787UCDPERSISTENT_DIRECTORY 788PERSISTENT_DIRECTORY 789FEATUREHEADERS 790FEATURETARGS 791FEATURE_REMOVE_FLAGS 792FEATURE_ADD_FLAGS 793installucdlibs 794installucdheaders 795FTMAINSUBS 796MAINSUBS 797USETRAPLIBS 798TRAPLIBS 799SNMPD 800INSTALL_PREFIX 801LIBTOOLFLAGS 802EGREP 803GREP 804CPP 805OBJEXT 806EXEEXT 807ac_ct_CC 808CPPFLAGS 809LDFLAGS 810CFLAGS 811CC 812CONFIGURE_OPTIONS 813target_alias 814host_alias 815build_alias 816LIBS 817ECHO_T 818ECHO_N 819ECHO_C 820DEFS 821mandir 822localedir 823libdir 824psdir 825pdfdir 826dvidir 827htmldir 828infodir 829docdir 830oldincludedir 831includedir 832localstatedir 833sharedstatedir 834sysconfdir 835datadir 836datarootdir 837libexecdir 838sbindir 839bindir 840program_transform_name 841prefix 842exec_prefix 843PACKAGE_URL 844PACKAGE_BUGREPORT 845PACKAGE_STRING 846PACKAGE_VERSION 847PACKAGE_TARNAME 848PACKAGE_NAME 849PATH_SEPARATOR 850SHELL' 851ac_subst_files='MODULE_LIST 852module_list_c 853module_list_o 854module_list_lo 855module_list_ft 856mib_module_list_c 857mib_module_list_o 858mib_module_list_lo 859mib_module_list_ft 860agent_module_list_c 861agent_module_list_o 862agent_module_list_lo 863agent_module_list_ft 864mibgroup_list_o 865mibgroup_list_lo 866mibgroup_list_ft 867agentgroup_list_o 868agentgroup_list_lo 869agentgroup_list_ft 870module_rules 871module_list_deps 872mib_module_list_deps 873agent_module_list_deps' 874ac_user_opts=' 875enable_option_checking 876with_cc 877with_linkcc 878with_ar 879with_endianness 880with_cflags 881with_ldflags 882enable_as_needed 883with_libs 884enable_silent_libtool 885with_rsaref 886enable_rsaref 887with_openssl 888enable_openssl 889with_ssl 890enable_ssl 891with_pkcs 892enable_pkcs 893with_krb5 894enable_krb5 895with_dnssec_local_validation 896enable_dnssec_local_validation 897with_dnssec 898enable_dnssec 899with_rpm 900enable_rpm 901with_pcre 902enable_pcre 903with_install_prefix 904enable_agent 905with_agent 906enable_applications 907with_applications 908enable_manuals 909with_manuals 910enable_scripts 911with_scripts 912enable_mibs 913enable_mib_config_checking 914with_mib_config_checking 915enable_mib_config_debug 916with_mib_config_debug 917enable_new_features 918enable_old_features 919with_features_of 920with_defaults 921enable_defaults 922enable_ucd_snmp_compatibility 923with_ucd_snmp_compatibility 924enable_mib_loading 925with_mib_loading 926with_mibdirs 927enable_mibdirs 928with_mibs 929with_mibfiles 930enable_mibfiles 931enable_des 932with_des 933enable_privacy 934with_privacy 935enable_md5 936with_md5 937enable_internal_md5 938with_internal_md5 939enable_blumenthal_aes 940with_blumenthal_aes 941with_opaque_special_types 942enable_opaque_special_types 943enable_ipv6 944with_ipv6 945with_logfile 946enable_logfile 947enable_usmUser_uses_default_auth_priv 948with_usmUser_uses_default_auth_priv 949enable_daemons_syslog_as_default 950with_daemons_syslog_as_default 951with_persistent_directory 952enable_persistent_directory 953with_persistent_mask 954enable_persistent_mask 955with_copy_persistent_files 956enable_copy_persistent_files 957with_temp_file_pattern 958enable_temp_file_pattern 959enable_snmpv1 960with_snmpv1 961enable_snmpv2c 962with_snmpv2c 963with_default_snmp_version 964enable_default_snmp_version 965with_transports 966with_out_transports 967with_transport 968with_out_transport 969with_security_modules 970enable_security_modules 971with_out_security_modules 972enable_out_security_modules 973enable_debugging 974with_debugging 975enable_developer 976with_developer 977enable_testing_code 978with_testing_code 979enable_reentrant 980with_reentrant 981enable_deprecated 982with_deprecated 983with_root_access 984enable_root_access 985with_kmem_usage 986enable_kmem_usage 987with_dummy_values 988enable_dummy_values 989with_systemd 990enable_systemd 991enable_set_support 992with_set_support 993with_sys_contact 994enable_sys_contact 995with_sys_location 996enable_sys_location 997enable_local_smux 998with_local_smux 999enable_agentx_dom_sock_only 1000with_agentx_dom_sock_only 1001enable_snmptrapd_subagent 1002with_snmptrapd_subagent 1003with_agentx_socket 1004enable_agentx_socket 1005with_features 1006enable_features 1007with_out_features 1008enable_out_features 1009with_feature 1010with_out_feature 1011enable_minimalist 1012with_minimalist 1013enable_notify_only 1014with_notify_only 1015enable_notifyonly 1016enable_no_listen 1017with_no_listen 1018enable_nolisten 1019enable_read_only 1020with_read_only 1021enable_readonly 1022enable_mini_agent 1023with_mini_agent 1024with_miniagent 1025enable_miniagent 1026enable_mfd_rewrites 1027with_mfd_rewrites 1028with_mib_modules 1029enable_mib_modules 1030with_out_mib_modules 1031enable_out_mib_modules 1032with_mib_module 1033with_module 1034with_modules 1035with_out_mib_module 1036with_out_module 1037with_out_modules 1038with_enterprise_oid 1039enable_enterprise_oid 1040with_enterprise_sysoid 1041enable_enterprise_sysoid 1042with_enterprise_notification_oid 1043enable_enterprise_notification_oid 1044with_perl_modules 1045enable_perl_modules 1046enable_embedded_perl 1047with_embedded_perl 1048enable_perl_cc_checks 1049with_perl_cc_checks 1050with_python_modules 1051with_server_send_buf 1052enable_server_send_buf 1053with_server_recv_buf 1054enable_server_recv_buf 1055with_client_send_buf 1056enable_client_send_buf 1057with_client_recv_buf 1058enable_client_recv_buf 1059with_elf 1060enable_elf 1061with_nl 1062enable_nl 1063with_libwrap 1064enable_libwrap 1065with_zlib 1066enable_zlib 1067with_bzip2 1068with_mnttab 1069enable_mnttab 1070with_mysql 1071enable_mysql 1072enable_shared 1073enable_static 1074with_pic 1075enable_fast_install 1076with_aix_soname 1077with_gnu_ld 1078with_sysroot 1079enable_libtool_lock 1080' 1081 ac_precious_vars='build_alias 1082host_alias 1083target_alias 1084CC 1085CFLAGS 1086LDFLAGS 1087LIBS 1088CPPFLAGS 1089CPP 1090LT_SYS_LIBRARY_PATH 1091PKG_CONFIG 1092PKG_CONFIG_PATH 1093PKG_CONFIG_LIBDIR 1094LIBNL3_CFLAGS 1095LIBNL3_LIBS' 1096 1097 1098# Initialize some variables set by options. 1099ac_init_help= 1100ac_init_version=false 1101ac_unrecognized_opts= 1102ac_unrecognized_sep= 1103# The variables have the same names as the options, with 1104# dashes changed to underlines. 1105cache_file=/dev/null 1106exec_prefix=NONE 1107no_create= 1108no_recursion= 1109prefix=NONE 1110program_prefix=NONE 1111program_suffix=NONE 1112program_transform_name=s,x,x, 1113silent= 1114site= 1115srcdir= 1116verbose= 1117x_includes=NONE 1118x_libraries=NONE 1119 1120# Installation directory options. 1121# These are left unexpanded so users can "make install exec_prefix=/foo" 1122# and all the variables that are supposed to be based on exec_prefix 1123# by default will actually change. 1124# Use braces instead of parens because sh, perl, etc. also accept them. 1125# (The list follows the same order as the GNU Coding Standards.) 1126bindir='${exec_prefix}/bin' 1127sbindir='${exec_prefix}/sbin' 1128libexecdir='${exec_prefix}/libexec' 1129datarootdir='${prefix}/share' 1130datadir='${datarootdir}' 1131sysconfdir='${prefix}/etc' 1132sharedstatedir='${prefix}/com' 1133localstatedir='${prefix}/var' 1134includedir='${prefix}/include' 1135oldincludedir='/usr/include' 1136docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1137infodir='${datarootdir}/info' 1138htmldir='${docdir}' 1139dvidir='${docdir}' 1140pdfdir='${docdir}' 1141psdir='${docdir}' 1142libdir='${exec_prefix}/lib' 1143localedir='${datarootdir}/locale' 1144mandir='${datarootdir}/man' 1145 1146ac_prev= 1147ac_dashdash= 1148for ac_option 1149do 1150 # If the previous option needs an argument, assign it. 1151 if test -n "$ac_prev"; then 1152 eval $ac_prev=\$ac_option 1153 ac_prev= 1154 continue 1155 fi 1156 1157 case $ac_option in 1158 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1159 *=) ac_optarg= ;; 1160 *) ac_optarg=yes ;; 1161 esac 1162 1163 # Accept the important Cygnus configure options, so we can diagnose typos. 1164 1165 case $ac_dashdash$ac_option in 1166 --) 1167 ac_dashdash=yes ;; 1168 1169 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1170 ac_prev=bindir ;; 1171 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1172 bindir=$ac_optarg ;; 1173 1174 -build | --build | --buil | --bui | --bu) 1175 ac_prev=build_alias ;; 1176 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1177 build_alias=$ac_optarg ;; 1178 1179 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1181 ac_prev=cache_file ;; 1182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1184 cache_file=$ac_optarg ;; 1185 1186 --config-cache | -C) 1187 cache_file=config.cache ;; 1188 1189 -datadir | --datadir | --datadi | --datad) 1190 ac_prev=datadir ;; 1191 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1192 datadir=$ac_optarg ;; 1193 1194 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1195 | --dataroo | --dataro | --datar) 1196 ac_prev=datarootdir ;; 1197 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1198 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1199 datarootdir=$ac_optarg ;; 1200 1201 -disable-* | --disable-*) 1202 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1203 # Reject names that are not valid shell variable names. 1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1205 as_fn_error $? "invalid feature name: $ac_useropt" 1206 ac_useropt_orig=$ac_useropt 1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1208 case $ac_user_opts in 1209 *" 1210"enable_$ac_useropt" 1211"*) ;; 1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1213 ac_unrecognized_sep=', ';; 1214 esac 1215 eval enable_$ac_useropt=no ;; 1216 1217 -docdir | --docdir | --docdi | --doc | --do) 1218 ac_prev=docdir ;; 1219 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1220 docdir=$ac_optarg ;; 1221 1222 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1223 ac_prev=dvidir ;; 1224 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1225 dvidir=$ac_optarg ;; 1226 1227 -enable-* | --enable-*) 1228 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1229 # Reject names that are not valid shell variable names. 1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1231 as_fn_error $? "invalid feature name: $ac_useropt" 1232 ac_useropt_orig=$ac_useropt 1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1234 case $ac_user_opts in 1235 *" 1236"enable_$ac_useropt" 1237"*) ;; 1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1239 ac_unrecognized_sep=', ';; 1240 esac 1241 eval enable_$ac_useropt=\$ac_optarg ;; 1242 1243 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1244 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1245 | --exec | --exe | --ex) 1246 ac_prev=exec_prefix ;; 1247 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1248 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1249 | --exec=* | --exe=* | --ex=*) 1250 exec_prefix=$ac_optarg ;; 1251 1252 -gas | --gas | --ga | --g) 1253 # Obsolete; use --with-gas. 1254 with_gas=yes ;; 1255 1256 -help | --help | --hel | --he | -h) 1257 ac_init_help=long ;; 1258 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1259 ac_init_help=recursive ;; 1260 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1261 ac_init_help=short ;; 1262 1263 -host | --host | --hos | --ho) 1264 ac_prev=host_alias ;; 1265 -host=* | --host=* | --hos=* | --ho=*) 1266 host_alias=$ac_optarg ;; 1267 1268 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1269 ac_prev=htmldir ;; 1270 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1271 | --ht=*) 1272 htmldir=$ac_optarg ;; 1273 1274 -includedir | --includedir | --includedi | --included | --include \ 1275 | --includ | --inclu | --incl | --inc) 1276 ac_prev=includedir ;; 1277 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1278 | --includ=* | --inclu=* | --incl=* | --inc=*) 1279 includedir=$ac_optarg ;; 1280 1281 -infodir | --infodir | --infodi | --infod | --info | --inf) 1282 ac_prev=infodir ;; 1283 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1284 infodir=$ac_optarg ;; 1285 1286 -libdir | --libdir | --libdi | --libd) 1287 ac_prev=libdir ;; 1288 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1289 libdir=$ac_optarg ;; 1290 1291 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1292 | --libexe | --libex | --libe) 1293 ac_prev=libexecdir ;; 1294 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1295 | --libexe=* | --libex=* | --libe=*) 1296 libexecdir=$ac_optarg ;; 1297 1298 -localedir | --localedir | --localedi | --localed | --locale) 1299 ac_prev=localedir ;; 1300 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1301 localedir=$ac_optarg ;; 1302 1303 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1304 | --localstate | --localstat | --localsta | --localst | --locals) 1305 ac_prev=localstatedir ;; 1306 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1307 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1308 localstatedir=$ac_optarg ;; 1309 1310 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1311 ac_prev=mandir ;; 1312 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1313 mandir=$ac_optarg ;; 1314 1315 -nfp | --nfp | --nf) 1316 # Obsolete; use --without-fp. 1317 with_fp=no ;; 1318 1319 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1320 | --no-cr | --no-c | -n) 1321 no_create=yes ;; 1322 1323 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1324 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1325 no_recursion=yes ;; 1326 1327 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1328 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1329 | --oldin | --oldi | --old | --ol | --o) 1330 ac_prev=oldincludedir ;; 1331 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1332 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1333 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1334 oldincludedir=$ac_optarg ;; 1335 1336 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1337 ac_prev=prefix ;; 1338 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1339 prefix=$ac_optarg ;; 1340 1341 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1342 | --program-pre | --program-pr | --program-p) 1343 ac_prev=program_prefix ;; 1344 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1345 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1346 program_prefix=$ac_optarg ;; 1347 1348 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1349 | --program-suf | --program-su | --program-s) 1350 ac_prev=program_suffix ;; 1351 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1352 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1353 program_suffix=$ac_optarg ;; 1354 1355 -program-transform-name | --program-transform-name \ 1356 | --program-transform-nam | --program-transform-na \ 1357 | --program-transform-n | --program-transform- \ 1358 | --program-transform | --program-transfor \ 1359 | --program-transfo | --program-transf \ 1360 | --program-trans | --program-tran \ 1361 | --progr-tra | --program-tr | --program-t) 1362 ac_prev=program_transform_name ;; 1363 -program-transform-name=* | --program-transform-name=* \ 1364 | --program-transform-nam=* | --program-transform-na=* \ 1365 | --program-transform-n=* | --program-transform-=* \ 1366 | --program-transform=* | --program-transfor=* \ 1367 | --program-transfo=* | --program-transf=* \ 1368 | --program-trans=* | --program-tran=* \ 1369 | --progr-tra=* | --program-tr=* | --program-t=*) 1370 program_transform_name=$ac_optarg ;; 1371 1372 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1373 ac_prev=pdfdir ;; 1374 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1375 pdfdir=$ac_optarg ;; 1376 1377 -psdir | --psdir | --psdi | --psd | --ps) 1378 ac_prev=psdir ;; 1379 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1380 psdir=$ac_optarg ;; 1381 1382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1383 | -silent | --silent | --silen | --sile | --sil) 1384 silent=yes ;; 1385 1386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1387 ac_prev=sbindir ;; 1388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1389 | --sbi=* | --sb=*) 1390 sbindir=$ac_optarg ;; 1391 1392 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1394 | --sharedst | --shareds | --shared | --share | --shar \ 1395 | --sha | --sh) 1396 ac_prev=sharedstatedir ;; 1397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1400 | --sha=* | --sh=*) 1401 sharedstatedir=$ac_optarg ;; 1402 1403 -site | --site | --sit) 1404 ac_prev=site ;; 1405 -site=* | --site=* | --sit=*) 1406 site=$ac_optarg ;; 1407 1408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1409 ac_prev=srcdir ;; 1410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1411 srcdir=$ac_optarg ;; 1412 1413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1414 | --syscon | --sysco | --sysc | --sys | --sy) 1415 ac_prev=sysconfdir ;; 1416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1418 sysconfdir=$ac_optarg ;; 1419 1420 -target | --target | --targe | --targ | --tar | --ta | --t) 1421 ac_prev=target_alias ;; 1422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1423 target_alias=$ac_optarg ;; 1424 1425 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1426 verbose=yes ;; 1427 1428 -version | --version | --versio | --versi | --vers | -V) 1429 ac_init_version=: ;; 1430 1431 -with-* | --with-*) 1432 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1433 # Reject names that are not valid shell variable names. 1434 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1435 as_fn_error $? "invalid package name: $ac_useropt" 1436 ac_useropt_orig=$ac_useropt 1437 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1438 case $ac_user_opts in 1439 *" 1440"with_$ac_useropt" 1441"*) ;; 1442 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1443 ac_unrecognized_sep=', ';; 1444 esac 1445 eval with_$ac_useropt=\$ac_optarg ;; 1446 1447 -without-* | --without-*) 1448 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1449 # Reject names that are not valid shell variable names. 1450 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1451 as_fn_error $? "invalid package name: $ac_useropt" 1452 ac_useropt_orig=$ac_useropt 1453 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1454 case $ac_user_opts in 1455 *" 1456"with_$ac_useropt" 1457"*) ;; 1458 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1459 ac_unrecognized_sep=', ';; 1460 esac 1461 eval with_$ac_useropt=no ;; 1462 1463 --x) 1464 # Obsolete; use --with-x. 1465 with_x=yes ;; 1466 1467 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1468 | --x-incl | --x-inc | --x-in | --x-i) 1469 ac_prev=x_includes ;; 1470 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1471 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1472 x_includes=$ac_optarg ;; 1473 1474 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1475 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1476 ac_prev=x_libraries ;; 1477 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1478 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1479 x_libraries=$ac_optarg ;; 1480 1481 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1482Try \`$0 --help' for more information" 1483 ;; 1484 1485 *=*) 1486 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1487 # Reject names that are not valid shell variable names. 1488 case $ac_envvar in #( 1489 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1490 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1491 esac 1492 eval $ac_envvar=\$ac_optarg 1493 export $ac_envvar ;; 1494 1495 *) 1496 # FIXME: should be removed in autoconf 3.0. 1497 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1498 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1499 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1500 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1501 ;; 1502 1503 esac 1504done 1505 1506if test -n "$ac_prev"; then 1507 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1508 as_fn_error $? "missing argument to $ac_option" 1509fi 1510 1511if test -n "$ac_unrecognized_opts"; then 1512 case $enable_option_checking in 1513 no) ;; 1514 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1515 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1516 esac 1517fi 1518 1519# Check all directory arguments for consistency. 1520for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1521 datadir sysconfdir sharedstatedir localstatedir includedir \ 1522 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1523 libdir localedir mandir 1524do 1525 eval ac_val=\$$ac_var 1526 # Remove trailing slashes. 1527 case $ac_val in 1528 */ ) 1529 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1530 eval $ac_var=\$ac_val;; 1531 esac 1532 # Be sure to have absolute directory names. 1533 case $ac_val in 1534 [\\/$]* | ?:[\\/]* ) continue;; 1535 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1536 esac 1537 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1538done 1539 1540# There might be people who depend on the old broken behavior: `$host' 1541# used to hold the argument of --host etc. 1542# FIXME: To remove some day. 1543build=$build_alias 1544host=$host_alias 1545target=$target_alias 1546 1547# FIXME: To remove some day. 1548if test "x$host_alias" != x; then 1549 if test "x$build_alias" = x; then 1550 cross_compiling=maybe 1551 elif test "x$build_alias" != "x$host_alias"; then 1552 cross_compiling=yes 1553 fi 1554fi 1555 1556ac_tool_prefix= 1557test -n "$host_alias" && ac_tool_prefix=$host_alias- 1558 1559test "$silent" = yes && exec 6>/dev/null 1560 1561 1562ac_pwd=`pwd` && test -n "$ac_pwd" && 1563ac_ls_di=`ls -di .` && 1564ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1565 as_fn_error $? "working directory cannot be determined" 1566test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1567 as_fn_error $? "pwd does not report name of working directory" 1568 1569 1570# Find the source files, if location was not specified. 1571if test -z "$srcdir"; then 1572 ac_srcdir_defaulted=yes 1573 # Try the directory containing this script, then the parent directory. 1574 ac_confdir=`$as_dirname -- "$as_myself" || 1575$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1576 X"$as_myself" : 'X\(//\)[^/]' \| \ 1577 X"$as_myself" : 'X\(//\)$' \| \ 1578 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1579$as_echo X"$as_myself" | 1580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1581 s//\1/ 1582 q 1583 } 1584 /^X\(\/\/\)[^/].*/{ 1585 s//\1/ 1586 q 1587 } 1588 /^X\(\/\/\)$/{ 1589 s//\1/ 1590 q 1591 } 1592 /^X\(\/\).*/{ 1593 s//\1/ 1594 q 1595 } 1596 s/.*/./; q'` 1597 srcdir=$ac_confdir 1598 if test ! -r "$srcdir/$ac_unique_file"; then 1599 srcdir=.. 1600 fi 1601else 1602 ac_srcdir_defaulted=no 1603fi 1604if test ! -r "$srcdir/$ac_unique_file"; then 1605 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1606 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1607fi 1608ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1609ac_abs_confdir=`( 1610 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1611 pwd)` 1612# When building in place, set srcdir=. 1613if test "$ac_abs_confdir" = "$ac_pwd"; then 1614 srcdir=. 1615fi 1616# Remove unnecessary trailing slashes from srcdir. 1617# Double slashes in file names in object file debugging info 1618# mess up M-x gdb in Emacs. 1619case $srcdir in 1620*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1621esac 1622for ac_var in $ac_precious_vars; do 1623 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1624 eval ac_env_${ac_var}_value=\$${ac_var} 1625 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1626 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1627done 1628 1629# 1630# Report the --help message. 1631# 1632if test "$ac_init_help" = "long"; then 1633 # Omit some internal or obsolete options to make the list less imposing. 1634 # This message is too long to be a string in the A/UX 3.1 sh. 1635 cat <<_ACEOF 1636\`configure' configures Net-SNMP 5.9 to adapt to many kinds of systems. 1637 1638Usage: $0 [OPTION]... [VAR=VALUE]... 1639 1640To assign environment variables (e.g., CC, CFLAGS...), specify them as 1641VAR=VALUE. See below for descriptions of some of the useful variables. 1642 1643Defaults for the options are specified in brackets. 1644 1645Configuration: 1646 -h, --help display this help and exit 1647 --help=short display options specific to this package 1648 --help=recursive display the short help of all the included packages 1649 -V, --version display version information and exit 1650 -q, --quiet, --silent do not print \`checking ...' messages 1651 --cache-file=FILE cache test results in FILE [disabled] 1652 -C, --config-cache alias for \`--cache-file=config.cache' 1653 -n, --no-create do not create output files 1654 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1655 1656Installation directories: 1657 --prefix=PREFIX install architecture-independent files in PREFIX 1658 [$ac_default_prefix] 1659 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1660 [PREFIX] 1661 1662By default, \`make install' will install all the files in 1663\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1664an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1665for instance \`--prefix=\$HOME'. 1666 1667For better control, use the options below. 1668 1669Fine tuning of the installation directories: 1670 --bindir=DIR user executables [EPREFIX/bin] 1671 --sbindir=DIR system admin executables [EPREFIX/sbin] 1672 --libexecdir=DIR program executables [EPREFIX/libexec] 1673 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1674 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1675 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1676 --libdir=DIR object code libraries [EPREFIX/lib] 1677 --includedir=DIR C header files [PREFIX/include] 1678 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1679 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1680 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1681 --infodir=DIR info documentation [DATAROOTDIR/info] 1682 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1683 --mandir=DIR man documentation [DATAROOTDIR/man] 1684 --docdir=DIR documentation root [DATAROOTDIR/doc/net-snmp] 1685 --htmldir=DIR html documentation [DOCDIR] 1686 --dvidir=DIR dvi documentation [DOCDIR] 1687 --pdfdir=DIR pdf documentation [DOCDIR] 1688 --psdir=DIR ps documentation [DOCDIR] 1689_ACEOF 1690 1691 cat <<\_ACEOF 1692 1693System types: 1694 --build=BUILD configure for building on BUILD [guessed] 1695 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1696 --target=TARGET configure for building compilers for TARGET [HOST] 1697_ACEOF 1698fi 1699 1700if test -n "$ac_init_help"; then 1701 case $ac_init_help in 1702 short | recursive ) echo "Configuration of Net-SNMP 5.9:";; 1703 esac 1704 cat <<\_ACEOF 1705 1706Optional Features: 1707 --disable-option-checking ignore unrecognized --enable/--with options 1708 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1709 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1710 --disable-as-needed Link libperl against applications rather 1711 than Net-SNMP libraries. Use only if the other 1712 way doesn't work. 1713 --enable-silent-libtool Pass --silent to libtool. 1714 1715 --disable-agent Do not build the agent (snmpd). 1716 --disable-applications Do not build the apps (snmpget, ...). 1717 --disable-manuals Do not install the manuals. 1718 --disable-scripts Do not install the scripts (mib2c, ...). 1719 --disable-mibs Do not install the mib files. 1720 --enable-mib-config-checking Turns on extra checks during configuration 1721 of mib modules. Any conflicts will cause 1722 configure to abort (default is to issue a 1723 warning and continue.) 1724 --enable-mib-config-debug Turns on verbose output during mib module 1725 configure processing. 1726 --enable-new-features Compile in new MIB modules and other experimental 1727 features which are due to be included in future 1728 releases. 1729 --enable-old-features Compile in old MIB modules and other deprecated 1730 features which were replaced in the default build of 1731 this release. 1732 --enable-ucd-snmp-compatibility Install ucd-snmp look-alike headers and libs. 1733 1734 --disable-mib-loading Do not include code that parses and 1735 manipulates the mib files. 1736 --disable-des Do not support DES encryption. 1737 --disable-privacy Don't compile in support for privacy (encryption). 1738 --disable-md5 Do not support MD5 authentication. 1739 --enable-internal-md5 Use the internal MD5 support. 1740 --enable-blumenthal-aes Enable AES-192/AES-256 (Blumenthal draft) 1741 --disable-ipv6 Disable IPv6 support. 1742 --enable-usmUser-uses-default-auth-priv Use default auth/priv protocols; createUser 1743 only needs auth/priv passphrases. 1744 --enable-daemons-syslog-as-default Use syslog when no other log destination defined. 1745 --disable-snmpv1 Do not include code that implements SNMPv1. 1746 --disable-snmpv2c Do not include code that implements SNMPv2c. 1747 --enable-debugging Outputs extra debugging information at all 1748 times. Normally, you should not enable this, 1749 but instead use the -D flag of the commands, 1750 which toggles debuging output at runtime. 1751 --disable-debugging Disallows debugging code to be built in. 1752 This might provide some speed benefits. 1753 --enable-developer Turns on super-duper-extra-compile-warnings 1754 when using gcc. 1755 --enable-testing-code Enables some code sections that should 1756 only be used for testing of certain 1757 SNMP functionalities. This should *not* 1758 be turned on for production use. Ever. 1759 --enable-reentrant Enables locking functions that protect 1760 library resources in some multi-threading 1761 environments. This does not guarantee 1762 thread-safe operation. 1763 Currently an experimental setting. 1764 --disable-deprecated Don't compile in deprecated functions. 1765 --disable-set-support Do not allow SNMP set requests. 1766 --enable-local-smux Restrict SMUX connections to localhost (by default). 1767 --enable-agentx-dom-sock-only Disable UDP/TCP transports for agentx. 1768 --disable-snmptrapd-subagent Disable agentx subagent code in snmptrapd. 1769 --enable-minimalist Remove all non-essential code features. 1770 --enable-notify-only Build tools that can only send notifications. 1771 --enable-no-listen Build tools that can't listen to ports. 1772 --enable-read-only Remove all SET support from the code. 1773 --enable-mini-agent Build a minimal agent. 1774 --enable-mfd-rewrites Use new MFD rewrites of mib modules, 1775 where available. (default is to use 1776 original mib module code). 1777 --disable-embedded-perl Disable embedded Perl in the SNMP agent and 1778 snmptrapd. enabled by default 1779 --disable-perl-cc-checks Disable configure checks for whether Perl's 1780 C Compiler is compatible with ours when 1781 embedded Perl is enabled. 1782 --enable-shared[=PKGS] build shared libraries [default=yes] 1783 --enable-static[=PKGS] build static libraries [default=yes] 1784 --enable-fast-install[=PKGS] 1785 optimize for fast installation [default=yes] 1786 --disable-libtool-lock avoid locking (might break parallel builds) 1787 1788Optional Packages: 1789 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1790 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1791 1792Compiler Options: 1793 --with-cc=CC use CC to compile (default=gcc). 1794 1795 --with-linkcc=CC use CC to link (default=gcc). 1796 --with-ar=AR use AR as the archiver. 1797 --with-endianness=big|little define endianness of target platform when 1798 cross-compiling. 1799 --with-cflags=CFLAGS use CFLAGS as compile time arguments. 1800 --with-ldflags=LDFLAGS use LDFLAGS as link time arguments to ld. 1801 --with-libs=LIBS use LIBS as link time arguments to ld. 1802 --with-rsaref=PATH Look for librsaref in PATH/lib. 1803 --with-openssl=PATH Look for openssl in PATH/lib, 1804 or PATH may be "internal" to build with 1805 minimal copied OpenSSL code for USM only. 1806 1807 --with-pkcs=PATH Look for pkcs11 in PATH/lib. 1808 --with-krb5=PATH Look for krb5 in PATH/lib. 1809 --with-dnssec-local-validation Enable local DNSSEC validation using libval (no) 1810 --without-rpm Don't include support for the RPM package 1811 management system when building the host MIB 1812 module. 1813 --without-pcre Don't include pcre process searching 1814 support in the agent. 1815 --with-install-prefix=PATH Just for installing, prefix all 1816 directories with PATH. This is known not 1817 to work on some systems with shared 1818 libraries (eg, HPUX) 1819 --with-features-of=version 1820 Compile in MIB modules and other features as if this 1821 was release "version" (default is 5.9). 1822 1823Miscellaneous: 1824 --with-defaults Use defaults for prompted values. 1825 --with-mibdirs="dir1:dir2:" Default directories to look for mibs. 1826 (Default: \$HOME/.snmp/mibs:DATADIR/snmp/mibs) 1827 --with-mibs="item1:item2:" Default mib IDs to read. 1828 (The default list is 1829 "SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB" 1830 with the addition of any mibs used 1831 by the mib modules the agent is 1832 configured with) 1833 --with-mibfiles="file1:file2" Default mib files to load. 1834 (Default: none. uses IDs above instead.) 1835 --without-opaque-special-types Don't use special opaque encodings. 1836 SNMP normally cannot handle 1837 floating numbers, nor large 64 bit 1838 integers well. By default, the 1839 net-snmp package compiles in 1840 support for these extra datatypes 1841 (in a legal way) 1842 --with-logfile="location" Default log file location for snmpd. 1843 --with-persistent-directory="directory" 1844 Default directory for persistent data storage. 1845 --with-persistent-mask="mask" Default mask for persistent data storage. 1846 (Default: 077) 1847 --with-copy-persistent-files="no" Don't copy persistent files 1848 (or use "yes" to copy them). 1849 (Default: yes) 1850 --with-temp-file-pattern=PATTERN Pattern of temporary files (Default: /tmp/snmpdXXXXXX) 1851 --with-default-snmp-version="3" Default version of SNMP to use. 1852 (Default: 3) 1853 Legal values: 1, 2 (for SNMPv2c) or 3. 1854 --with-transports="t1 t2 ..." Compile in the given SNMP transport 1855 modules (space or comma separated list). 1856 --with-out-transports="t1 ..." Exclude listed SNMP transports 1857 (space or comma separated list). 1858 1859 Available SNMP transport modules are: 1860 1861 UDP support for SNMP over UDP/IP. 1862 This transport is always compiled in. 1863 UDPIPv6 support for SNMP over UDP/IPv6. 1864 This transport is available for Linux, Solaris and 1865 FreeBSD at least. 1866 This transport is compiled in by default if IPv6 support is enabled. 1867 UDPshared Allows a UDP port to be shared with multiple transports. It 1868 enables multiple notification destinations to share a single 1869 source address/port. 1870 TCPIPv6 support for SNMP over UDP/IPv6. 1871 This transport is available for Linux, Solaris and 1872 FreeBSD at least. 1873 This transport is compiled in by default if IPv6 support is enabled. 1874 TCP support for SNMP over TCP/IP. 1875 This transport is compiled in by default, but may be omitted. 1876 Unix support for SNMP over Unix domain protocols. 1877 This transport is compiled in by default except on Win32 1878 platforms, and may be omitted. 1879 Callback support for SNMP over an internal locally connected pair 1880 of snmp_sessions. 1881 Alias The alias transport simply lets you define more complex 1882 transport strings and alias them to simple names in 1883 the snmp.conf file. 1884 AAL5PVC support for SNMP over AAL5 PVCs. 1885 This transport is presently only available for Linux, 1886 is never compiled in by default and may be omitted. 1887 IPX support for SNMP over IPX per RFC 1420. 1888 This transport is presently only available for Linux, 1889 is never compiled in by default and may be omitted. 1890 DTLSUDP support for tunneling SNMP over DTLS/UDP 1891 TLSTCP support for tunneling SNMP over TLS/TCP 1892 SSH (alpha) support for tunneling SNMP over SSH 1893 1894 --with-security-modules="s1 s2 ..." Compile in the given SNMP security 1895 module services (space separated list). 1896 1897 Available SNMP security services: 1898 1899 usm support for user based SNMP security 1900 ksm support for kerberos based SNMP security 1901 tsm support for the Transport-based security 1902 (for use with the SSH, DTLSUDP and TLSTCP transports) 1903 1904 --with-out-security-modules="s1 s2 ..." Removes the given SNMP security 1905 module services from the default list. 1906 1907 1908Configuring the agent: 1909 --without-root-access The snmpd agent won't require root access to 1910 run it. The information it returns in the 1911 mib-II tree may not be correct, however. 1912 --without-kmem-usage Do not include any code related to the use 1913 of kmem. 1914 --with-dummy-values Provide 'placeholder' dummy values where 1915 the necessary information is not available. 1916 This is technically not compliant with the 1917 SNMP specifications, but was how the agent 1918 operated for versions < 4.0. 1919 --with-systemd Provide systemd support. See README.systemd 1920 for details. 1921 --with-sys-contact="who@where" Default system contact. 1922 (Default: LOGIN@DOMAINNAME) 1923 --with-sys-location="location" Default system location. 1924 (Default: Unknown) 1925 --with-agentx-socket=FILE AgentX socket (Default: /var/agentx/master as specified in RFC2741) 1926 --with-features="feat1 feat2" Request extra features to be turned on. 1927 (only useful with --enable-minimalist) 1928 --with-out-features="feat1..." Remove specific features. 1929 (implies --enable-minimalist) 1930 --with-mib-modules="item1 ..." Compile with additional mib modules 1931 (Space separated list). 1932 --with-out-mib-modules="list" Compile without these mib modules. 1933 1934 Default mib modules compiled into the agent (which can be removed): 1935 1936 mibII support for the mib-II tree. 1937 snmpv3mibs support for the snmpv3 mib modules. 1938 ucd_snmp UCD-SNMP-MIB specific extensions. 1939 agent_mibs NET-SNMP-AGENT-MIB extensions 1940 agentx AgentX support (see below) 1941 notification mibs supporting specification of trap destinations. 1942 target Support for the SNMP WGs TARGET-MIB. 1943 utilities general agent configuration utilities. 1944 disman/event support for the DISMAN-EVENT-MIB 1945 (supports self monitoring and notification 1946 delivery when error conditions are found) 1947 disman/schedule support for the DISMAN-SCHEDULE-MIB 1948 (trigger SET requests at specified times) 1949 host host resources mib support. 1950 (only on major supported platforms) 1951 1952 Optional mib modules that can be built into the agent include: 1953 smux smux support to allow subagents to attach to snmpd. 1954 mibII/mta_sendmail Sendmail statistics monitoring (MTA-MIB) 1955 ucd-snmp/diskio Table of io-devices and how much data they have 1956 read/written. (only tested on Solaris, Linux) 1957 disman/old-event-mib previous implementation of the DISMAN-EVENT-MIB 1958 1959 Optional modules for specific platforms 1960 Linux 1961 ucd-snmp/lmSensors hardware monitoring (LM-SENSORS-MIB) 1962 ip-mib/ipv4InterfaceTable (experimental) 1963 ip-mib/ipv6InterfaceTable (experimental) 1964 tunnel Linux TUNNEL-MIB support (ifTable extension) 1965 mibII/interfaces (old ifTable implementation) 1966 misc/ipfwacc accounting rules IP firewall information 1967 ipfwchains/ipfwchains firewall chains under ipfw 1968 (See agent/mibgroup/ipfwchains/README) 1969 sctp-mib support for the SCTP-MIB 1970 etherlike-mib support for the EtherLike-MIB 1971 1972 Solaris 1973 ucd-snmp/lmSensors hardware monitoring (LM-SENSORS-MIB) 1974 if-mib IF-MIB rewrite (add --enable-mfd-rewrites) 1975 tcp-mib TCP-MIB rewrite (tcpConnectionTable and 1976 tcpListenerTable; add --enable-mfd-rewrites) 1977 udp-mib UDP-MIB rewrite (udpEndpointTable; 1978 add --enable-mfd-rewrites) 1979 1980 FreeBSD/OpenBSD 1981 if-mib IF-MIB rewrite (add --enable-mfd-rewrites) 1982 1983 AgentX support: 1984 agentx/subagent allows the agent to run as either a snmp agent 1985 or as an agentX sub-agent. 1986 agentx/master makes the agent run as an agentX master agent 1987 as well as a normal snmp agent. 1988 agentx includes both agentx/master and agentx/client. 1989 1990 Optional modules for C coders to look at and/or include as extension examples: 1991 1992 examples/ucdDemoPublic SNMPv3 interoperability testing mib. 1993 examples/example example C code extension. 1994Enterprise OIDs: (warning: this should be used with caution.) 1995 1996 --with-enterprise-oid The enterprise number assigned to the 1997 vendor by IANA. See 1998 http://www.iana.org/cgi-bin/enterprise.pl 1999 to get one, though using the default is 2000 probably the right choice is most cases. 2001 (default 8072 = "enterprise.net-snmp") 2002 2003 --with-enterprise-sysoid The base OID for the sysObjectID 2004 of the system group 2005 (default .1.3.6.1.4.1.8072.3.2... = 2006 "netSnmpAgentOIDs...") 2007 2008 --with-enterprise-notification-oid The OID used for the root of 2009 enterprise specific notifications. 2010 (default .1.3.6.1.4.1.8072.4 = 2011 "netSnmpNotificationPrefix") 2012 2013Perl: 2014 --with-perl-modules=ARGS Install the Perl modules along with the rest 2015 of the net-snmp toolkit. If ARGS is specified, 2016 they're passed to the Makefile.PL script. Use 2017 --with-perl-modules=verbose while debugging 2018 the Makefile.PL files 2019 2020Python: 2021 --with-python-modules=ARGS Install the python bindings along with the 2022 rest of the net-snmp toolkit. If ARGS is 2023 specified, they're passed to the 2024 setup.py script as arguments. 2025 2026Network Buffers: 2027 --with-server-send-buf=ARG Use ARG for the default UDP/TCP send buffer instead 2028 of the OS buffer for server sockets that are 2029 created (snmpd, snmptrapd). 2030 This default can be overridden in the runtime 2031 configuration files. 2032 The ARG should be the size in bytes 2033 --with-server-recv-buf=ARG Similar as previous option, but for receive buffer 2034 --with-client-send-buf=ARG Similar as previous options, but for the 2035 receive buffer of client sockets 2036 --with-client-recv-buf=ARG Similar as previous options, but for the send buffer 2037 --without-elf use elf libraries 2038 --with-nl use libnl to get netlink data (linux only). 2039 --with-libwrap=LIBPATH Compile in libwrap (tcp_wrappers) support. 2040 --with-zlib=DIR use libz in DIR 2041 --with-bzip2=DIR use libbz2 in DIR 2042 --with-mnttab="/etc/mnttab" 2043 Mount table location. The default is to autodetect 2044 this. 2045 --with-mysql Include support for MySQL. 2046 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2047 both] 2048 --with-aix-soname=aix|svr4|both 2049 shared library versioning (aka "SONAME") variant to 2050 provide on AIX, [default=aix]. 2051 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2052 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2053 compiler's sysroot if not specified). 2054 2055Some influential environment variables: 2056 CC C compiler command 2057 CFLAGS C compiler flags 2058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2059 nonstandard directory <lib dir> 2060 LIBS libraries to pass to the linker, e.g. -l<library> 2061 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2062 you have headers in a nonstandard directory <include dir> 2063 CPP C preprocessor 2064 LT_SYS_LIBRARY_PATH 2065 User-defined run-time library search path. 2066 PKG_CONFIG path to pkg-config utility 2067 PKG_CONFIG_PATH 2068 directories to add to pkg-config's search path 2069 PKG_CONFIG_LIBDIR 2070 path overriding pkg-config's built-in search path 2071 LIBNL3_CFLAGS 2072 C compiler flags for LIBNL3, overriding pkg-config 2073 LIBNL3_LIBS linker flags for LIBNL3, overriding pkg-config 2074 2075Use these variables to override the choices made by `configure' or to help 2076it to find libraries and programs with nonstandard names/locations. 2077 2078Report bugs to <net-snmp-coders@lists.sourceforge.net>. 2079_ACEOF 2080ac_status=$? 2081fi 2082 2083if test "$ac_init_help" = "recursive"; then 2084 # If there are subdirs, report their specific --help. 2085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2086 test -d "$ac_dir" || 2087 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2088 continue 2089 ac_builddir=. 2090 2091case "$ac_dir" in 2092.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2093*) 2094 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2095 # A ".." for each directory in $ac_dir_suffix. 2096 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2097 case $ac_top_builddir_sub in 2098 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2099 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2100 esac ;; 2101esac 2102ac_abs_top_builddir=$ac_pwd 2103ac_abs_builddir=$ac_pwd$ac_dir_suffix 2104# for backward compatibility: 2105ac_top_builddir=$ac_top_build_prefix 2106 2107case $srcdir in 2108 .) # We are building in place. 2109 ac_srcdir=. 2110 ac_top_srcdir=$ac_top_builddir_sub 2111 ac_abs_top_srcdir=$ac_pwd ;; 2112 [\\/]* | ?:[\\/]* ) # Absolute name. 2113 ac_srcdir=$srcdir$ac_dir_suffix; 2114 ac_top_srcdir=$srcdir 2115 ac_abs_top_srcdir=$srcdir ;; 2116 *) # Relative name. 2117 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2118 ac_top_srcdir=$ac_top_build_prefix$srcdir 2119 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2120esac 2121ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2122 2123 cd "$ac_dir" || { ac_status=$?; continue; } 2124 # Check for guested configure. 2125 if test -f "$ac_srcdir/configure.gnu"; then 2126 echo && 2127 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2128 elif test -f "$ac_srcdir/configure"; then 2129 echo && 2130 $SHELL "$ac_srcdir/configure" --help=recursive 2131 else 2132 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2133 fi || ac_status=$? 2134 cd "$ac_pwd" || { ac_status=$?; break; } 2135 done 2136fi 2137 2138test -n "$ac_init_help" && exit $ac_status 2139if $ac_init_version; then 2140 cat <<\_ACEOF 2141Net-SNMP configure 5.9 2142generated by GNU Autoconf 2.69 2143 2144Copyright (C) 2012 Free Software Foundation, Inc. 2145This configure script is free software; the Free Software Foundation 2146gives unlimited permission to copy, distribute and modify it. 2147_ACEOF 2148 exit 2149fi 2150 2151## ------------------------ ## 2152## Autoconf initialization. ## 2153## ------------------------ ## 2154 2155# ac_fn_c_try_compile LINENO 2156# -------------------------- 2157# Try to compile conftest.$ac_ext, and return whether this succeeded. 2158ac_fn_c_try_compile () 2159{ 2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2161 rm -f conftest.$ac_objext 2162 if { { ac_try="$ac_compile" 2163case "(($ac_try" in 2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2165 *) ac_try_echo=$ac_try;; 2166esac 2167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2168$as_echo "$ac_try_echo"; } >&5 2169 (eval "$ac_compile") 2>conftest.err 2170 ac_status=$? 2171 if test -s conftest.err; then 2172 grep -v '^ *+' conftest.err >conftest.er1 2173 cat conftest.er1 >&5 2174 mv -f conftest.er1 conftest.err 2175 fi 2176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2177 test $ac_status = 0; } && { 2178 test -z "$ac_c_werror_flag" || 2179 test ! -s conftest.err 2180 } && test -s conftest.$ac_objext; then : 2181 ac_retval=0 2182else 2183 $as_echo "$as_me: failed program was:" >&5 2184sed 's/^/| /' conftest.$ac_ext >&5 2185 2186 ac_retval=1 2187fi 2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2189 as_fn_set_status $ac_retval 2190 2191} # ac_fn_c_try_compile 2192 2193# ac_fn_c_try_cpp LINENO 2194# ---------------------- 2195# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2196ac_fn_c_try_cpp () 2197{ 2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2199 if { { ac_try="$ac_cpp conftest.$ac_ext" 2200case "(($ac_try" in 2201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2202 *) ac_try_echo=$ac_try;; 2203esac 2204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2205$as_echo "$ac_try_echo"; } >&5 2206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2207 ac_status=$? 2208 if test -s conftest.err; then 2209 grep -v '^ *+' conftest.err >conftest.er1 2210 cat conftest.er1 >&5 2211 mv -f conftest.er1 conftest.err 2212 fi 2213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2214 test $ac_status = 0; } > conftest.i && { 2215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2216 test ! -s conftest.err 2217 }; then : 2218 ac_retval=0 2219else 2220 $as_echo "$as_me: failed program was:" >&5 2221sed 's/^/| /' conftest.$ac_ext >&5 2222 2223 ac_retval=1 2224fi 2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2226 as_fn_set_status $ac_retval 2227 2228} # ac_fn_c_try_cpp 2229 2230# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2231# ------------------------------------------------------- 2232# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2233# the include files in INCLUDES and setting the cache variable VAR 2234# accordingly. 2235ac_fn_c_check_header_mongrel () 2236{ 2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2238 if eval \${$3+:} false; then : 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2240$as_echo_n "checking for $2... " >&6; } 2241if eval \${$3+:} false; then : 2242 $as_echo_n "(cached) " >&6 2243fi 2244eval ac_res=\$$3 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2246$as_echo "$ac_res" >&6; } 2247else 2248 # Is the header compilable? 2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2250$as_echo_n "checking $2 usability... " >&6; } 2251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2252/* end confdefs.h. */ 2253$4 2254#include <$2> 2255_ACEOF 2256if ac_fn_c_try_compile "$LINENO"; then : 2257 ac_header_compiler=yes 2258else 2259 ac_header_compiler=no 2260fi 2261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2263$as_echo "$ac_header_compiler" >&6; } 2264 2265# Is the header present? 2266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2267$as_echo_n "checking $2 presence... " >&6; } 2268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2269/* end confdefs.h. */ 2270#include <$2> 2271_ACEOF 2272if ac_fn_c_try_cpp "$LINENO"; then : 2273 ac_header_preproc=yes 2274else 2275 ac_header_preproc=no 2276fi 2277rm -f conftest.err conftest.i conftest.$ac_ext 2278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2279$as_echo "$ac_header_preproc" >&6; } 2280 2281# So? What about this header? 2282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2283 yes:no: ) 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2285$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2287$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2288 ;; 2289 no:yes:* ) 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2291$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2293$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2295$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2297$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2299$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2300( $as_echo "## ---------------------------------------------------- ## 2301## Report this to net-snmp-coders@lists.sourceforge.net ## 2302## ---------------------------------------------------- ##" 2303 ) | sed "s/^/$as_me: WARNING: /" >&2 2304 ;; 2305esac 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2307$as_echo_n "checking for $2... " >&6; } 2308if eval \${$3+:} false; then : 2309 $as_echo_n "(cached) " >&6 2310else 2311 eval "$3=\$ac_header_compiler" 2312fi 2313eval ac_res=\$$3 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2315$as_echo "$ac_res" >&6; } 2316fi 2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2318 2319} # ac_fn_c_check_header_mongrel 2320 2321# ac_fn_c_try_run LINENO 2322# ---------------------- 2323# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2324# that executables *can* be run. 2325ac_fn_c_try_run () 2326{ 2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2328 if { { ac_try="$ac_link" 2329case "(($ac_try" in 2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2331 *) ac_try_echo=$ac_try;; 2332esac 2333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2334$as_echo "$ac_try_echo"; } >&5 2335 (eval "$ac_link") 2>&5 2336 ac_status=$? 2337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2338 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2339 { { case "(($ac_try" in 2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2341 *) ac_try_echo=$ac_try;; 2342esac 2343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2344$as_echo "$ac_try_echo"; } >&5 2345 (eval "$ac_try") 2>&5 2346 ac_status=$? 2347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2348 test $ac_status = 0; }; }; then : 2349 ac_retval=0 2350else 2351 $as_echo "$as_me: program exited with status $ac_status" >&5 2352 $as_echo "$as_me: failed program was:" >&5 2353sed 's/^/| /' conftest.$ac_ext >&5 2354 2355 ac_retval=$ac_status 2356fi 2357 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2359 as_fn_set_status $ac_retval 2360 2361} # ac_fn_c_try_run 2362 2363# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2364# ------------------------------------------------------- 2365# Tests whether HEADER exists and can be compiled using the include files in 2366# INCLUDES, setting the cache variable VAR accordingly. 2367ac_fn_c_check_header_compile () 2368{ 2369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2371$as_echo_n "checking for $2... " >&6; } 2372if eval \${$3+:} false; then : 2373 $as_echo_n "(cached) " >&6 2374else 2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2376/* end confdefs.h. */ 2377$4 2378#include <$2> 2379_ACEOF 2380if ac_fn_c_try_compile "$LINENO"; then : 2381 eval "$3=yes" 2382else 2383 eval "$3=no" 2384fi 2385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2386fi 2387eval ac_res=\$$3 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2389$as_echo "$ac_res" >&6; } 2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2391 2392} # ac_fn_c_check_header_compile 2393 2394# ac_fn_c_try_link LINENO 2395# ----------------------- 2396# Try to link conftest.$ac_ext, and return whether this succeeded. 2397ac_fn_c_try_link () 2398{ 2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2400 rm -f conftest.$ac_objext conftest$ac_exeext 2401 if { { ac_try="$ac_link" 2402case "(($ac_try" in 2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2404 *) ac_try_echo=$ac_try;; 2405esac 2406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2407$as_echo "$ac_try_echo"; } >&5 2408 (eval "$ac_link") 2>conftest.err 2409 ac_status=$? 2410 if test -s conftest.err; then 2411 grep -v '^ *+' conftest.err >conftest.er1 2412 cat conftest.er1 >&5 2413 mv -f conftest.er1 conftest.err 2414 fi 2415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2416 test $ac_status = 0; } && { 2417 test -z "$ac_c_werror_flag" || 2418 test ! -s conftest.err 2419 } && test -s conftest$ac_exeext && { 2420 test "$cross_compiling" = yes || 2421 test -x conftest$ac_exeext 2422 }; then : 2423 ac_retval=0 2424else 2425 $as_echo "$as_me: failed program was:" >&5 2426sed 's/^/| /' conftest.$ac_ext >&5 2427 2428 ac_retval=1 2429fi 2430 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2431 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2432 # interfere with the next link command; also delete a directory that is 2433 # left behind by Apple's compiler. We do this before executing the actions. 2434 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2435 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2436 as_fn_set_status $ac_retval 2437 2438} # ac_fn_c_try_link 2439 2440# ac_fn_c_check_func LINENO FUNC VAR 2441# ---------------------------------- 2442# Tests whether FUNC exists, setting the cache variable VAR accordingly 2443ac_fn_c_check_func () 2444{ 2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2447$as_echo_n "checking for $2... " >&6; } 2448if eval \${$3+:} false; then : 2449 $as_echo_n "(cached) " >&6 2450else 2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2452/* end confdefs.h. */ 2453/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2454 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2455#define $2 innocuous_$2 2456 2457/* System header to define __stub macros and hopefully few prototypes, 2458 which can conflict with char $2 (); below. 2459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2460 <limits.h> exists even on freestanding compilers. */ 2461 2462#ifdef __STDC__ 2463# include <limits.h> 2464#else 2465# include <assert.h> 2466#endif 2467 2468#undef $2 2469 2470/* Override any GCC internal prototype to avoid an error. 2471 Use char because int might match the return type of a GCC 2472 builtin and then its argument prototype would still apply. */ 2473#ifdef __cplusplus 2474extern "C" 2475#endif 2476char $2 (); 2477/* The GNU C library defines this for functions which it implements 2478 to always fail with ENOSYS. Some functions are actually named 2479 something starting with __ and the normal name is an alias. */ 2480#if defined __stub_$2 || defined __stub___$2 2481choke me 2482#endif 2483 2484int 2485main () 2486{ 2487return $2 (); 2488 ; 2489 return 0; 2490} 2491_ACEOF 2492if ac_fn_c_try_link "$LINENO"; then : 2493 eval "$3=yes" 2494else 2495 eval "$3=no" 2496fi 2497rm -f core conftest.err conftest.$ac_objext \ 2498 conftest$ac_exeext conftest.$ac_ext 2499fi 2500eval ac_res=\$$3 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2502$as_echo "$ac_res" >&6; } 2503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2504 2505} # ac_fn_c_check_func 2506 2507# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2508# ---------------------------------------------------- 2509# Tries to find if the field MEMBER exists in type AGGR, after including 2510# INCLUDES, setting cache variable VAR accordingly. 2511ac_fn_c_check_member () 2512{ 2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2515$as_echo_n "checking for $2.$3... " >&6; } 2516if eval \${$4+:} false; then : 2517 $as_echo_n "(cached) " >&6 2518else 2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2520/* end confdefs.h. */ 2521$5 2522int 2523main () 2524{ 2525static $2 ac_aggr; 2526if (ac_aggr.$3) 2527return 0; 2528 ; 2529 return 0; 2530} 2531_ACEOF 2532if ac_fn_c_try_compile "$LINENO"; then : 2533 eval "$4=yes" 2534else 2535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2536/* end confdefs.h. */ 2537$5 2538int 2539main () 2540{ 2541static $2 ac_aggr; 2542if (sizeof ac_aggr.$3) 2543return 0; 2544 ; 2545 return 0; 2546} 2547_ACEOF 2548if ac_fn_c_try_compile "$LINENO"; then : 2549 eval "$4=yes" 2550else 2551 eval "$4=no" 2552fi 2553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2554fi 2555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2556fi 2557eval ac_res=\$$4 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2559$as_echo "$ac_res" >&6; } 2560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2561 2562} # ac_fn_c_check_member 2563 2564# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2565# -------------------------------------------- 2566# Tries to find the compile-time value of EXPR in a program that includes 2567# INCLUDES, setting VAR accordingly. Returns whether the value could be 2568# computed 2569ac_fn_c_compute_int () 2570{ 2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2572 if test "$cross_compiling" = yes; then 2573 # Depending upon the size, compute the lo and hi bounds. 2574cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2575/* end confdefs.h. */ 2576$4 2577int 2578main () 2579{ 2580static int test_array [1 - 2 * !(($2) >= 0)]; 2581test_array [0] = 0; 2582return test_array [0]; 2583 2584 ; 2585 return 0; 2586} 2587_ACEOF 2588if ac_fn_c_try_compile "$LINENO"; then : 2589 ac_lo=0 ac_mid=0 2590 while :; do 2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2592/* end confdefs.h. */ 2593$4 2594int 2595main () 2596{ 2597static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2598test_array [0] = 0; 2599return test_array [0]; 2600 2601 ; 2602 return 0; 2603} 2604_ACEOF 2605if ac_fn_c_try_compile "$LINENO"; then : 2606 ac_hi=$ac_mid; break 2607else 2608 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2609 if test $ac_lo -le $ac_mid; then 2610 ac_lo= ac_hi= 2611 break 2612 fi 2613 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2614fi 2615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2616 done 2617else 2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2619/* end confdefs.h. */ 2620$4 2621int 2622main () 2623{ 2624static int test_array [1 - 2 * !(($2) < 0)]; 2625test_array [0] = 0; 2626return test_array [0]; 2627 2628 ; 2629 return 0; 2630} 2631_ACEOF 2632if ac_fn_c_try_compile "$LINENO"; then : 2633 ac_hi=-1 ac_mid=-1 2634 while :; do 2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2636/* end confdefs.h. */ 2637$4 2638int 2639main () 2640{ 2641static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2642test_array [0] = 0; 2643return test_array [0]; 2644 2645 ; 2646 return 0; 2647} 2648_ACEOF 2649if ac_fn_c_try_compile "$LINENO"; then : 2650 ac_lo=$ac_mid; break 2651else 2652 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2653 if test $ac_mid -le $ac_hi; then 2654 ac_lo= ac_hi= 2655 break 2656 fi 2657 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2658fi 2659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2660 done 2661else 2662 ac_lo= ac_hi= 2663fi 2664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2665fi 2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2667# Binary search between lo and hi bounds. 2668while test "x$ac_lo" != "x$ac_hi"; do 2669 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2671/* end confdefs.h. */ 2672$4 2673int 2674main () 2675{ 2676static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2677test_array [0] = 0; 2678return test_array [0]; 2679 2680 ; 2681 return 0; 2682} 2683_ACEOF 2684if ac_fn_c_try_compile "$LINENO"; then : 2685 ac_hi=$ac_mid 2686else 2687 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2688fi 2689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2690done 2691case $ac_lo in #(( 2692?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2693'') ac_retval=1 ;; 2694esac 2695 else 2696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2697/* end confdefs.h. */ 2698$4 2699static long int longval () { return $2; } 2700static unsigned long int ulongval () { return $2; } 2701#include <stdio.h> 2702#include <stdlib.h> 2703int 2704main () 2705{ 2706 2707 FILE *f = fopen ("conftest.val", "w"); 2708 if (! f) 2709 return 1; 2710 if (($2) < 0) 2711 { 2712 long int i = longval (); 2713 if (i != ($2)) 2714 return 1; 2715 fprintf (f, "%ld", i); 2716 } 2717 else 2718 { 2719 unsigned long int i = ulongval (); 2720 if (i != ($2)) 2721 return 1; 2722 fprintf (f, "%lu", i); 2723 } 2724 /* Do not output a trailing newline, as this causes \r\n confusion 2725 on some platforms. */ 2726 return ferror (f) || fclose (f) != 0; 2727 2728 ; 2729 return 0; 2730} 2731_ACEOF 2732if ac_fn_c_try_run "$LINENO"; then : 2733 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2734else 2735 ac_retval=1 2736fi 2737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2738 conftest.$ac_objext conftest.beam conftest.$ac_ext 2739rm -f conftest.val 2740 2741 fi 2742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2743 as_fn_set_status $ac_retval 2744 2745} # ac_fn_c_compute_int 2746 2747# ac_fn_c_find_intX_t LINENO BITS VAR 2748# ----------------------------------- 2749# Finds a signed integer type with width BITS, setting cache variable VAR 2750# accordingly. 2751ac_fn_c_find_intX_t () 2752{ 2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2755$as_echo_n "checking for int$2_t... " >&6; } 2756if eval \${$3+:} false; then : 2757 $as_echo_n "(cached) " >&6 2758else 2759 eval "$3=no" 2760 # Order is important - never check a type that is potentially smaller 2761 # than half of the expected target width. 2762 for ac_type in int$2_t 'int' 'long int' \ 2763 'long long int' 'short int' 'signed char'; do 2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2765/* end confdefs.h. */ 2766$ac_includes_default 2767 enum { N = $2 / 2 - 1 }; 2768int 2769main () 2770{ 2771static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2772test_array [0] = 0; 2773return test_array [0]; 2774 2775 ; 2776 return 0; 2777} 2778_ACEOF 2779if ac_fn_c_try_compile "$LINENO"; then : 2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2781/* end confdefs.h. */ 2782$ac_includes_default 2783 enum { N = $2 / 2 - 1 }; 2784int 2785main () 2786{ 2787static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2788 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2789test_array [0] = 0; 2790return test_array [0]; 2791 2792 ; 2793 return 0; 2794} 2795_ACEOF 2796if ac_fn_c_try_compile "$LINENO"; then : 2797 2798else 2799 case $ac_type in #( 2800 int$2_t) : 2801 eval "$3=yes" ;; #( 2802 *) : 2803 eval "$3=\$ac_type" ;; 2804esac 2805fi 2806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2807fi 2808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2809 if eval test \"x\$"$3"\" = x"no"; then : 2810 2811else 2812 break 2813fi 2814 done 2815fi 2816eval ac_res=\$$3 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2818$as_echo "$ac_res" >&6; } 2819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2820 2821} # ac_fn_c_find_intX_t 2822 2823# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2824# ------------------------------------------- 2825# Tests whether TYPE exists after having included INCLUDES, setting cache 2826# variable VAR accordingly. 2827ac_fn_c_check_type () 2828{ 2829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2831$as_echo_n "checking for $2... " >&6; } 2832if eval \${$3+:} false; then : 2833 $as_echo_n "(cached) " >&6 2834else 2835 eval "$3=no" 2836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2837/* end confdefs.h. */ 2838$4 2839int 2840main () 2841{ 2842if (sizeof ($2)) 2843 return 0; 2844 ; 2845 return 0; 2846} 2847_ACEOF 2848if ac_fn_c_try_compile "$LINENO"; then : 2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2850/* end confdefs.h. */ 2851$4 2852int 2853main () 2854{ 2855if (sizeof (($2))) 2856 return 0; 2857 ; 2858 return 0; 2859} 2860_ACEOF 2861if ac_fn_c_try_compile "$LINENO"; then : 2862 2863else 2864 eval "$3=yes" 2865fi 2866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2867fi 2868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2869fi 2870eval ac_res=\$$3 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2872$as_echo "$ac_res" >&6; } 2873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2874 2875} # ac_fn_c_check_type 2876 2877# ac_fn_c_find_uintX_t LINENO BITS VAR 2878# ------------------------------------ 2879# Finds an unsigned integer type with width BITS, setting cache variable VAR 2880# accordingly. 2881ac_fn_c_find_uintX_t () 2882{ 2883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2885$as_echo_n "checking for uint$2_t... " >&6; } 2886if eval \${$3+:} false; then : 2887 $as_echo_n "(cached) " >&6 2888else 2889 eval "$3=no" 2890 # Order is important - never check a type that is potentially smaller 2891 # than half of the expected target width. 2892 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2893 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2895/* end confdefs.h. */ 2896$ac_includes_default 2897int 2898main () 2899{ 2900static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2901test_array [0] = 0; 2902return test_array [0]; 2903 2904 ; 2905 return 0; 2906} 2907_ACEOF 2908if ac_fn_c_try_compile "$LINENO"; then : 2909 case $ac_type in #( 2910 uint$2_t) : 2911 eval "$3=yes" ;; #( 2912 *) : 2913 eval "$3=\$ac_type" ;; 2914esac 2915fi 2916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2917 if eval test \"x\$"$3"\" = x"no"; then : 2918 2919else 2920 break 2921fi 2922 done 2923fi 2924eval ac_res=\$$3 2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2926$as_echo "$ac_res" >&6; } 2927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2928 2929} # ac_fn_c_find_uintX_t 2930 2931# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2932# --------------------------------------------- 2933# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2934# accordingly. 2935ac_fn_c_check_decl () 2936{ 2937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2938 as_decl_name=`echo $2|sed 's/ *(.*//'` 2939 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2941$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2942if eval \${$3+:} false; then : 2943 $as_echo_n "(cached) " >&6 2944else 2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2946/* end confdefs.h. */ 2947$4 2948int 2949main () 2950{ 2951#ifndef $as_decl_name 2952#ifdef __cplusplus 2953 (void) $as_decl_use; 2954#else 2955 (void) $as_decl_name; 2956#endif 2957#endif 2958 2959 ; 2960 return 0; 2961} 2962_ACEOF 2963if ac_fn_c_try_compile "$LINENO"; then : 2964 eval "$3=yes" 2965else 2966 eval "$3=no" 2967fi 2968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2969fi 2970eval ac_res=\$$3 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2972$as_echo "$ac_res" >&6; } 2973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2974 2975} # ac_fn_c_check_decl 2976cat >config.log <<_ACEOF 2977This file contains any messages produced by compilers while 2978running configure, to aid debugging if configure makes a mistake. 2979 2980It was created by Net-SNMP $as_me 5.9, which was 2981generated by GNU Autoconf 2.69. Invocation command line was 2982 2983 $ $0 $@ 2984 2985_ACEOF 2986exec 5>>config.log 2987{ 2988cat <<_ASUNAME 2989## --------- ## 2990## Platform. ## 2991## --------- ## 2992 2993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2994uname -m = `(uname -m) 2>/dev/null || echo unknown` 2995uname -r = `(uname -r) 2>/dev/null || echo unknown` 2996uname -s = `(uname -s) 2>/dev/null || echo unknown` 2997uname -v = `(uname -v) 2>/dev/null || echo unknown` 2998 2999/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3000/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3001 3002/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3003/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3004/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3005/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3006/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3007/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3008/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3009 3010_ASUNAME 3011 3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3013for as_dir in $PATH 3014do 3015 IFS=$as_save_IFS 3016 test -z "$as_dir" && as_dir=. 3017 $as_echo "PATH: $as_dir" 3018 done 3019IFS=$as_save_IFS 3020 3021} >&5 3022 3023cat >&5 <<_ACEOF 3024 3025 3026## ----------- ## 3027## Core tests. ## 3028## ----------- ## 3029 3030_ACEOF 3031 3032 3033# Keep a trace of the command line. 3034# Strip out --no-create and --no-recursion so they do not pile up. 3035# Strip out --silent because we don't want to record it for future runs. 3036# Also quote any args containing shell meta-characters. 3037# Make two passes to allow for proper duplicate-argument suppression. 3038ac_configure_args= 3039ac_configure_args0= 3040ac_configure_args1= 3041ac_must_keep_next=false 3042for ac_pass in 1 2 3043do 3044 for ac_arg 3045 do 3046 case $ac_arg in 3047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3049 | -silent | --silent | --silen | --sile | --sil) 3050 continue ;; 3051 *\'*) 3052 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3053 esac 3054 case $ac_pass in 3055 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3056 2) 3057 as_fn_append ac_configure_args1 " '$ac_arg'" 3058 if test $ac_must_keep_next = true; then 3059 ac_must_keep_next=false # Got value, back to normal. 3060 else 3061 case $ac_arg in 3062 *=* | --config-cache | -C | -disable-* | --disable-* \ 3063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3065 | -with-* | --with-* | -without-* | --without-* | --x) 3066 case "$ac_configure_args0 " in 3067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3068 esac 3069 ;; 3070 -* ) ac_must_keep_next=true ;; 3071 esac 3072 fi 3073 as_fn_append ac_configure_args " '$ac_arg'" 3074 ;; 3075 esac 3076 done 3077done 3078{ ac_configure_args0=; unset ac_configure_args0;} 3079{ ac_configure_args1=; unset ac_configure_args1;} 3080 3081# When interrupted or exit'd, cleanup temporary files, and complete 3082# config.log. We remove comments because anyway the quotes in there 3083# would cause problems or look ugly. 3084# WARNING: Use '\'' to represent an apostrophe within the trap. 3085# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3086trap 'exit_status=$? 3087 # Save into config.log some information that might help in debugging. 3088 { 3089 echo 3090 3091 $as_echo "## ---------------- ## 3092## Cache variables. ## 3093## ---------------- ##" 3094 echo 3095 # The following way of writing the cache mishandles newlines in values, 3096( 3097 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3098 eval ac_val=\$$ac_var 3099 case $ac_val in #( 3100 *${as_nl}*) 3101 case $ac_var in #( 3102 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3103$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3104 esac 3105 case $ac_var in #( 3106 _ | IFS | as_nl) ;; #( 3107 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3108 *) { eval $ac_var=; unset $ac_var;} ;; 3109 esac ;; 3110 esac 3111 done 3112 (set) 2>&1 | 3113 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3114 *${as_nl}ac_space=\ *) 3115 sed -n \ 3116 "s/'\''/'\''\\\\'\'''\''/g; 3117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3118 ;; #( 3119 *) 3120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3121 ;; 3122 esac | 3123 sort 3124) 3125 echo 3126 3127 $as_echo "## ----------------- ## 3128## Output variables. ## 3129## ----------------- ##" 3130 echo 3131 for ac_var in $ac_subst_vars 3132 do 3133 eval ac_val=\$$ac_var 3134 case $ac_val in 3135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3136 esac 3137 $as_echo "$ac_var='\''$ac_val'\''" 3138 done | sort 3139 echo 3140 3141 if test -n "$ac_subst_files"; then 3142 $as_echo "## ------------------- ## 3143## File substitutions. ## 3144## ------------------- ##" 3145 echo 3146 for ac_var in $ac_subst_files 3147 do 3148 eval ac_val=\$$ac_var 3149 case $ac_val in 3150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3151 esac 3152 $as_echo "$ac_var='\''$ac_val'\''" 3153 done | sort 3154 echo 3155 fi 3156 3157 if test -s confdefs.h; then 3158 $as_echo "## ----------- ## 3159## confdefs.h. ## 3160## ----------- ##" 3161 echo 3162 cat confdefs.h 3163 echo 3164 fi 3165 test "$ac_signal" != 0 && 3166 $as_echo "$as_me: caught signal $ac_signal" 3167 $as_echo "$as_me: exit $exit_status" 3168 } >&5 3169 rm -f core *.core core.conftest.* && 3170 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3171 exit $exit_status 3172' 0 3173for ac_signal in 1 2 13 15; do 3174 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3175done 3176ac_signal=0 3177 3178# confdefs.h avoids OS command line length limits that DEFS can exceed. 3179rm -f -r conftest* confdefs.h 3180 3181$as_echo "/* confdefs.h */" > confdefs.h 3182 3183# Predefined preprocessor variables. 3184 3185cat >>confdefs.h <<_ACEOF 3186#define PACKAGE_NAME "$PACKAGE_NAME" 3187_ACEOF 3188 3189cat >>confdefs.h <<_ACEOF 3190#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3191_ACEOF 3192 3193cat >>confdefs.h <<_ACEOF 3194#define PACKAGE_VERSION "$PACKAGE_VERSION" 3195_ACEOF 3196 3197cat >>confdefs.h <<_ACEOF 3198#define PACKAGE_STRING "$PACKAGE_STRING" 3199_ACEOF 3200 3201cat >>confdefs.h <<_ACEOF 3202#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3203_ACEOF 3204 3205cat >>confdefs.h <<_ACEOF 3206#define PACKAGE_URL "$PACKAGE_URL" 3207_ACEOF 3208 3209 3210# Let the site file select an alternate cache file if it wants to. 3211# Prefer an explicitly selected file to automatically selected ones. 3212ac_site_file1=NONE 3213ac_site_file2=NONE 3214if test -n "$CONFIG_SITE"; then 3215 # We do not want a PATH search for config.site. 3216 case $CONFIG_SITE in #(( 3217 -*) ac_site_file1=./$CONFIG_SITE;; 3218 */*) ac_site_file1=$CONFIG_SITE;; 3219 *) ac_site_file1=./$CONFIG_SITE;; 3220 esac 3221elif test "x$prefix" != xNONE; then 3222 ac_site_file1=$prefix/share/config.site 3223 ac_site_file2=$prefix/etc/config.site 3224else 3225 ac_site_file1=$ac_default_prefix/share/config.site 3226 ac_site_file2=$ac_default_prefix/etc/config.site 3227fi 3228for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3229do 3230 test "x$ac_site_file" = xNONE && continue 3231 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3233$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3234 sed 's/^/| /' "$ac_site_file" >&5 3235 . "$ac_site_file" \ 3236 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3238as_fn_error $? "failed to load site script $ac_site_file 3239See \`config.log' for more details" "$LINENO" 5; } 3240 fi 3241done 3242 3243if test -r "$cache_file"; then 3244 # Some versions of bash will fail to source /dev/null (special files 3245 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3246 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3248$as_echo "$as_me: loading cache $cache_file" >&6;} 3249 case $cache_file in 3250 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3251 *) . "./$cache_file";; 3252 esac 3253 fi 3254else 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3256$as_echo "$as_me: creating cache $cache_file" >&6;} 3257 >$cache_file 3258fi 3259 3260# Check that the precious variables saved in the cache have kept the same 3261# value. 3262ac_cache_corrupted=false 3263for ac_var in $ac_precious_vars; do 3264 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3265 eval ac_new_set=\$ac_env_${ac_var}_set 3266 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3267 eval ac_new_val=\$ac_env_${ac_var}_value 3268 case $ac_old_set,$ac_new_set in 3269 set,) 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3271$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3272 ac_cache_corrupted=: ;; 3273 ,set) 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3275$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3276 ac_cache_corrupted=: ;; 3277 ,);; 3278 *) 3279 if test "x$ac_old_val" != "x$ac_new_val"; then 3280 # differences in whitespace do not lead to failure. 3281 ac_old_val_w=`echo x $ac_old_val` 3282 ac_new_val_w=`echo x $ac_new_val` 3283 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3285$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3286 ac_cache_corrupted=: 3287 else 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3289$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3290 eval $ac_var=\$ac_old_val 3291 fi 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3293$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3295$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3296 fi;; 3297 esac 3298 # Pass precious variables to config.status. 3299 if test "$ac_new_set" = set; then 3300 case $ac_new_val in 3301 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3302 *) ac_arg=$ac_var=$ac_new_val ;; 3303 esac 3304 case " $ac_configure_args " in 3305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3306 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3307 esac 3308 fi 3309done 3310if $ac_cache_corrupted; then 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3314$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3315 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3316fi 3317## -------------------- ## 3318## Main body of script. ## 3319## -------------------- ## 3320 3321ac_ext=c 3322ac_cpp='$CPP $CPPFLAGS' 3323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3325ac_compiler_gnu=$ac_cv_c_compiler_gnu 3326 3327 3328 3329 3330 3331 3332 3333ac_config_headers="$ac_config_headers include/net-snmp/net-snmp-config.h" 3334 3335 3336 3337 rm -f configure-summary 3338 3339 3340# 3341# save the configure arguments 3342# 3343 3344cat >>confdefs.h <<_ACEOF 3345#define NETSNMP_CONFIGURE_OPTIONS "${NETSNMP_CONFIGURE_OPTIONS-$ac_configure_args}" 3346_ACEOF 3347 3348CONFIGURE_OPTIONS="\"$ac_configure_args\"" 3349 3350 3351# 3352# Check whether _GNU_SOURCE etc. should be defined 3353# 3354ac_ext=c 3355ac_cpp='$CPP $CPPFLAGS' 3356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3358ac_compiler_gnu=$ac_cv_c_compiler_gnu 3359if test -n "$ac_tool_prefix"; then 3360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3361set dummy ${ac_tool_prefix}gcc; ac_word=$2 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3363$as_echo_n "checking for $ac_word... " >&6; } 3364if ${ac_cv_prog_CC+:} false; then : 3365 $as_echo_n "(cached) " >&6 3366else 3367 if test -n "$CC"; then 3368 ac_cv_prog_CC="$CC" # Let the user override the test. 3369else 3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3371for as_dir in $PATH 3372do 3373 IFS=$as_save_IFS 3374 test -z "$as_dir" && as_dir=. 3375 for ac_exec_ext in '' $ac_executable_extensions; do 3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3377 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3379 break 2 3380 fi 3381done 3382 done 3383IFS=$as_save_IFS 3384 3385fi 3386fi 3387CC=$ac_cv_prog_CC 3388if test -n "$CC"; then 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3390$as_echo "$CC" >&6; } 3391else 3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3393$as_echo "no" >&6; } 3394fi 3395 3396 3397fi 3398if test -z "$ac_cv_prog_CC"; then 3399 ac_ct_CC=$CC 3400 # Extract the first word of "gcc", so it can be a program name with args. 3401set dummy gcc; ac_word=$2 3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3403$as_echo_n "checking for $ac_word... " >&6; } 3404if ${ac_cv_prog_ac_ct_CC+:} false; then : 3405 $as_echo_n "(cached) " >&6 3406else 3407 if test -n "$ac_ct_CC"; then 3408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3409else 3410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3411for as_dir in $PATH 3412do 3413 IFS=$as_save_IFS 3414 test -z "$as_dir" && as_dir=. 3415 for ac_exec_ext in '' $ac_executable_extensions; do 3416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3417 ac_cv_prog_ac_ct_CC="gcc" 3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3419 break 2 3420 fi 3421done 3422 done 3423IFS=$as_save_IFS 3424 3425fi 3426fi 3427ac_ct_CC=$ac_cv_prog_ac_ct_CC 3428if test -n "$ac_ct_CC"; then 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3430$as_echo "$ac_ct_CC" >&6; } 3431else 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3433$as_echo "no" >&6; } 3434fi 3435 3436 if test "x$ac_ct_CC" = x; then 3437 CC="" 3438 else 3439 case $cross_compiling:$ac_tool_warned in 3440yes:) 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3443ac_tool_warned=yes ;; 3444esac 3445 CC=$ac_ct_CC 3446 fi 3447else 3448 CC="$ac_cv_prog_CC" 3449fi 3450 3451if test -z "$CC"; then 3452 if test -n "$ac_tool_prefix"; then 3453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3454set dummy ${ac_tool_prefix}cc; ac_word=$2 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3456$as_echo_n "checking for $ac_word... " >&6; } 3457if ${ac_cv_prog_CC+:} false; then : 3458 $as_echo_n "(cached) " >&6 3459else 3460 if test -n "$CC"; then 3461 ac_cv_prog_CC="$CC" # Let the user override the test. 3462else 3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3464for as_dir in $PATH 3465do 3466 IFS=$as_save_IFS 3467 test -z "$as_dir" && as_dir=. 3468 for ac_exec_ext in '' $ac_executable_extensions; do 3469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3470 ac_cv_prog_CC="${ac_tool_prefix}cc" 3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3472 break 2 3473 fi 3474done 3475 done 3476IFS=$as_save_IFS 3477 3478fi 3479fi 3480CC=$ac_cv_prog_CC 3481if test -n "$CC"; then 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3483$as_echo "$CC" >&6; } 3484else 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3486$as_echo "no" >&6; } 3487fi 3488 3489 3490 fi 3491fi 3492if test -z "$CC"; then 3493 # Extract the first word of "cc", so it can be a program name with args. 3494set dummy cc; ac_word=$2 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3496$as_echo_n "checking for $ac_word... " >&6; } 3497if ${ac_cv_prog_CC+:} false; then : 3498 $as_echo_n "(cached) " >&6 3499else 3500 if test -n "$CC"; then 3501 ac_cv_prog_CC="$CC" # Let the user override the test. 3502else 3503 ac_prog_rejected=no 3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3505for as_dir in $PATH 3506do 3507 IFS=$as_save_IFS 3508 test -z "$as_dir" && as_dir=. 3509 for ac_exec_ext in '' $ac_executable_extensions; do 3510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3511 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3512 ac_prog_rejected=yes 3513 continue 3514 fi 3515 ac_cv_prog_CC="cc" 3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3517 break 2 3518 fi 3519done 3520 done 3521IFS=$as_save_IFS 3522 3523if test $ac_prog_rejected = yes; then 3524 # We found a bogon in the path, so make sure we never use it. 3525 set dummy $ac_cv_prog_CC 3526 shift 3527 if test $# != 0; then 3528 # We chose a different compiler from the bogus one. 3529 # However, it has the same basename, so the bogon will be chosen 3530 # first if we set CC to just the basename; use the full file name. 3531 shift 3532 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3533 fi 3534fi 3535fi 3536fi 3537CC=$ac_cv_prog_CC 3538if test -n "$CC"; then 3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3540$as_echo "$CC" >&6; } 3541else 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3543$as_echo "no" >&6; } 3544fi 3545 3546 3547fi 3548if test -z "$CC"; then 3549 if test -n "$ac_tool_prefix"; then 3550 for ac_prog in cl.exe 3551 do 3552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3553set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3555$as_echo_n "checking for $ac_word... " >&6; } 3556if ${ac_cv_prog_CC+:} false; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 if test -n "$CC"; then 3560 ac_cv_prog_CC="$CC" # Let the user override the test. 3561else 3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3563for as_dir in $PATH 3564do 3565 IFS=$as_save_IFS 3566 test -z "$as_dir" && as_dir=. 3567 for ac_exec_ext in '' $ac_executable_extensions; do 3568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3571 break 2 3572 fi 3573done 3574 done 3575IFS=$as_save_IFS 3576 3577fi 3578fi 3579CC=$ac_cv_prog_CC 3580if test -n "$CC"; then 3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3582$as_echo "$CC" >&6; } 3583else 3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3585$as_echo "no" >&6; } 3586fi 3587 3588 3589 test -n "$CC" && break 3590 done 3591fi 3592if test -z "$CC"; then 3593 ac_ct_CC=$CC 3594 for ac_prog in cl.exe 3595do 3596 # Extract the first word of "$ac_prog", so it can be a program name with args. 3597set dummy $ac_prog; ac_word=$2 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3599$as_echo_n "checking for $ac_word... " >&6; } 3600if ${ac_cv_prog_ac_ct_CC+:} false; then : 3601 $as_echo_n "(cached) " >&6 3602else 3603 if test -n "$ac_ct_CC"; then 3604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3605else 3606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3607for as_dir in $PATH 3608do 3609 IFS=$as_save_IFS 3610 test -z "$as_dir" && as_dir=. 3611 for ac_exec_ext in '' $ac_executable_extensions; do 3612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3613 ac_cv_prog_ac_ct_CC="$ac_prog" 3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3615 break 2 3616 fi 3617done 3618 done 3619IFS=$as_save_IFS 3620 3621fi 3622fi 3623ac_ct_CC=$ac_cv_prog_ac_ct_CC 3624if test -n "$ac_ct_CC"; then 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3626$as_echo "$ac_ct_CC" >&6; } 3627else 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3629$as_echo "no" >&6; } 3630fi 3631 3632 3633 test -n "$ac_ct_CC" && break 3634done 3635 3636 if test "x$ac_ct_CC" = x; then 3637 CC="" 3638 else 3639 case $cross_compiling:$ac_tool_warned in 3640yes:) 3641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3643ac_tool_warned=yes ;; 3644esac 3645 CC=$ac_ct_CC 3646 fi 3647fi 3648 3649fi 3650 3651 3652test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3654as_fn_error $? "no acceptable C compiler found in \$PATH 3655See \`config.log' for more details" "$LINENO" 5; } 3656 3657# Provide some information about the compiler. 3658$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3659set X $ac_compile 3660ac_compiler=$2 3661for ac_option in --version -v -V -qversion; do 3662 { { ac_try="$ac_compiler $ac_option >&5" 3663case "(($ac_try" in 3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3665 *) ac_try_echo=$ac_try;; 3666esac 3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3668$as_echo "$ac_try_echo"; } >&5 3669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3670 ac_status=$? 3671 if test -s conftest.err; then 3672 sed '10a\ 3673... rest of stderr output deleted ... 3674 10q' conftest.err >conftest.er1 3675 cat conftest.er1 >&5 3676 fi 3677 rm -f conftest.er1 conftest.err 3678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3679 test $ac_status = 0; } 3680done 3681 3682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3683/* end confdefs.h. */ 3684 3685int 3686main () 3687{ 3688 3689 ; 3690 return 0; 3691} 3692_ACEOF 3693ac_clean_files_save=$ac_clean_files 3694ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3695# Try to create an executable without -o first, disregard a.out. 3696# It will help us diagnose broken compilers, and finding out an intuition 3697# of exeext. 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3699$as_echo_n "checking whether the C compiler works... " >&6; } 3700ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3701 3702# The possible output files: 3703ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3704 3705ac_rmfiles= 3706for ac_file in $ac_files 3707do 3708 case $ac_file in 3709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3710 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3711 esac 3712done 3713rm -f $ac_rmfiles 3714 3715if { { ac_try="$ac_link_default" 3716case "(($ac_try" in 3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3718 *) ac_try_echo=$ac_try;; 3719esac 3720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3721$as_echo "$ac_try_echo"; } >&5 3722 (eval "$ac_link_default") 2>&5 3723 ac_status=$? 3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3725 test $ac_status = 0; }; then : 3726 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3727# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3728# in a Makefile. We should not override ac_cv_exeext if it was cached, 3729# so that the user can short-circuit this test for compilers unknown to 3730# Autoconf. 3731for ac_file in $ac_files '' 3732do 3733 test -f "$ac_file" || continue 3734 case $ac_file in 3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3736 ;; 3737 [ab].out ) 3738 # We found the default executable, but exeext='' is most 3739 # certainly right. 3740 break;; 3741 *.* ) 3742 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3743 then :; else 3744 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3745 fi 3746 # We set ac_cv_exeext here because the later test for it is not 3747 # safe: cross compilers may not add the suffix if given an `-o' 3748 # argument, so we may need to know it at that point already. 3749 # Even if this section looks crufty: it has the advantage of 3750 # actually working. 3751 break;; 3752 * ) 3753 break;; 3754 esac 3755done 3756test "$ac_cv_exeext" = no && ac_cv_exeext= 3757 3758else 3759 ac_file='' 3760fi 3761if test -z "$ac_file"; then : 3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3763$as_echo "no" >&6; } 3764$as_echo "$as_me: failed program was:" >&5 3765sed 's/^/| /' conftest.$ac_ext >&5 3766 3767{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3769as_fn_error 77 "C compiler cannot create executables 3770See \`config.log' for more details" "$LINENO" 5; } 3771else 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3773$as_echo "yes" >&6; } 3774fi 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3776$as_echo_n "checking for C compiler default output file name... " >&6; } 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3778$as_echo "$ac_file" >&6; } 3779ac_exeext=$ac_cv_exeext 3780 3781rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3782ac_clean_files=$ac_clean_files_save 3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3784$as_echo_n "checking for suffix of executables... " >&6; } 3785if { { ac_try="$ac_link" 3786case "(($ac_try" in 3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3788 *) ac_try_echo=$ac_try;; 3789esac 3790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3791$as_echo "$ac_try_echo"; } >&5 3792 (eval "$ac_link") 2>&5 3793 ac_status=$? 3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3795 test $ac_status = 0; }; then : 3796 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3797# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3798# work properly (i.e., refer to `conftest.exe'), while it won't with 3799# `rm'. 3800for ac_file in conftest.exe conftest conftest.*; do 3801 test -f "$ac_file" || continue 3802 case $ac_file in 3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3805 break;; 3806 * ) break;; 3807 esac 3808done 3809else 3810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3812as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3813See \`config.log' for more details" "$LINENO" 5; } 3814fi 3815rm -f conftest conftest$ac_cv_exeext 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3817$as_echo "$ac_cv_exeext" >&6; } 3818 3819rm -f conftest.$ac_ext 3820EXEEXT=$ac_cv_exeext 3821ac_exeext=$EXEEXT 3822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3823/* end confdefs.h. */ 3824#include <stdio.h> 3825int 3826main () 3827{ 3828FILE *f = fopen ("conftest.out", "w"); 3829 return ferror (f) || fclose (f) != 0; 3830 3831 ; 3832 return 0; 3833} 3834_ACEOF 3835ac_clean_files="$ac_clean_files conftest.out" 3836# Check that the compiler produces executables we can run. If not, either 3837# the compiler is broken, or we cross compile. 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3839$as_echo_n "checking whether we are cross compiling... " >&6; } 3840if test "$cross_compiling" != yes; then 3841 { { ac_try="$ac_link" 3842case "(($ac_try" in 3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3844 *) ac_try_echo=$ac_try;; 3845esac 3846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3847$as_echo "$ac_try_echo"; } >&5 3848 (eval "$ac_link") 2>&5 3849 ac_status=$? 3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3851 test $ac_status = 0; } 3852 if { ac_try='./conftest$ac_cv_exeext' 3853 { { case "(($ac_try" in 3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3855 *) ac_try_echo=$ac_try;; 3856esac 3857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3858$as_echo "$ac_try_echo"; } >&5 3859 (eval "$ac_try") 2>&5 3860 ac_status=$? 3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3862 test $ac_status = 0; }; }; then 3863 cross_compiling=no 3864 else 3865 if test "$cross_compiling" = maybe; then 3866 cross_compiling=yes 3867 else 3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3870as_fn_error $? "cannot run C compiled programs. 3871If you meant to cross compile, use \`--host'. 3872See \`config.log' for more details" "$LINENO" 5; } 3873 fi 3874 fi 3875fi 3876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3877$as_echo "$cross_compiling" >&6; } 3878 3879rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3880ac_clean_files=$ac_clean_files_save 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3882$as_echo_n "checking for suffix of object files... " >&6; } 3883if ${ac_cv_objext+:} false; then : 3884 $as_echo_n "(cached) " >&6 3885else 3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3887/* end confdefs.h. */ 3888 3889int 3890main () 3891{ 3892 3893 ; 3894 return 0; 3895} 3896_ACEOF 3897rm -f conftest.o conftest.obj 3898if { { ac_try="$ac_compile" 3899case "(($ac_try" in 3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3901 *) ac_try_echo=$ac_try;; 3902esac 3903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3904$as_echo "$ac_try_echo"; } >&5 3905 (eval "$ac_compile") 2>&5 3906 ac_status=$? 3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3908 test $ac_status = 0; }; then : 3909 for ac_file in conftest.o conftest.obj conftest.*; do 3910 test -f "$ac_file" || continue; 3911 case $ac_file in 3912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3913 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3914 break;; 3915 esac 3916done 3917else 3918 $as_echo "$as_me: failed program was:" >&5 3919sed 's/^/| /' conftest.$ac_ext >&5 3920 3921{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3923as_fn_error $? "cannot compute suffix of object files: cannot compile 3924See \`config.log' for more details" "$LINENO" 5; } 3925fi 3926rm -f conftest.$ac_cv_objext conftest.$ac_ext 3927fi 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3929$as_echo "$ac_cv_objext" >&6; } 3930OBJEXT=$ac_cv_objext 3931ac_objext=$OBJEXT 3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3933$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3934if ${ac_cv_c_compiler_gnu+:} false; then : 3935 $as_echo_n "(cached) " >&6 3936else 3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938/* end confdefs.h. */ 3939 3940int 3941main () 3942{ 3943#ifndef __GNUC__ 3944 choke me 3945#endif 3946 3947 ; 3948 return 0; 3949} 3950_ACEOF 3951if ac_fn_c_try_compile "$LINENO"; then : 3952 ac_compiler_gnu=yes 3953else 3954 ac_compiler_gnu=no 3955fi 3956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3957ac_cv_c_compiler_gnu=$ac_compiler_gnu 3958 3959fi 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3961$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3962if test $ac_compiler_gnu = yes; then 3963 GCC=yes 3964else 3965 GCC= 3966fi 3967ac_test_CFLAGS=${CFLAGS+set} 3968ac_save_CFLAGS=$CFLAGS 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3970$as_echo_n "checking whether $CC accepts -g... " >&6; } 3971if ${ac_cv_prog_cc_g+:} false; then : 3972 $as_echo_n "(cached) " >&6 3973else 3974 ac_save_c_werror_flag=$ac_c_werror_flag 3975 ac_c_werror_flag=yes 3976 ac_cv_prog_cc_g=no 3977 CFLAGS="-g" 3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979/* end confdefs.h. */ 3980 3981int 3982main () 3983{ 3984 3985 ; 3986 return 0; 3987} 3988_ACEOF 3989if ac_fn_c_try_compile "$LINENO"; then : 3990 ac_cv_prog_cc_g=yes 3991else 3992 CFLAGS="" 3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995 3996int 3997main () 3998{ 3999 4000 ; 4001 return 0; 4002} 4003_ACEOF 4004if ac_fn_c_try_compile "$LINENO"; then : 4005 4006else 4007 ac_c_werror_flag=$ac_save_c_werror_flag 4008 CFLAGS="-g" 4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4010/* end confdefs.h. */ 4011 4012int 4013main () 4014{ 4015 4016 ; 4017 return 0; 4018} 4019_ACEOF 4020if ac_fn_c_try_compile "$LINENO"; then : 4021 ac_cv_prog_cc_g=yes 4022fi 4023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4024fi 4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4026fi 4027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4028 ac_c_werror_flag=$ac_save_c_werror_flag 4029fi 4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4031$as_echo "$ac_cv_prog_cc_g" >&6; } 4032if test "$ac_test_CFLAGS" = set; then 4033 CFLAGS=$ac_save_CFLAGS 4034elif test $ac_cv_prog_cc_g = yes; then 4035 if test "$GCC" = yes; then 4036 CFLAGS="-g -O2" 4037 else 4038 CFLAGS="-g" 4039 fi 4040else 4041 if test "$GCC" = yes; then 4042 CFLAGS="-O2" 4043 else 4044 CFLAGS= 4045 fi 4046fi 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4048$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4049if ${ac_cv_prog_cc_c89+:} false; then : 4050 $as_echo_n "(cached) " >&6 4051else 4052 ac_cv_prog_cc_c89=no 4053ac_save_CC=$CC 4054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056#include <stdarg.h> 4057#include <stdio.h> 4058struct stat; 4059/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4060struct buf { int x; }; 4061FILE * (*rcsopen) (struct buf *, struct stat *, int); 4062static char *e (p, i) 4063 char **p; 4064 int i; 4065{ 4066 return p[i]; 4067} 4068static char *f (char * (*g) (char **, int), char **p, ...) 4069{ 4070 char *s; 4071 va_list v; 4072 va_start (v,p); 4073 s = g (p, va_arg (v,int)); 4074 va_end (v); 4075 return s; 4076} 4077 4078/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4079 function prototypes and stuff, but not '\xHH' hex character constants. 4080 These don't provoke an error unfortunately, instead are silently treated 4081 as 'x'. The following induces an error, until -std is added to get 4082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4083 array size at least. It's necessary to write '\x00'==0 to get something 4084 that's true only with -std. */ 4085int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4086 4087/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4088 inside strings and character constants. */ 4089#define FOO(x) 'x' 4090int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4091 4092int test (int i, double x); 4093struct s1 {int (*f) (int a);}; 4094struct s2 {int (*f) (double a);}; 4095int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4096int argc; 4097char **argv; 4098int 4099main () 4100{ 4101return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4102 ; 4103 return 0; 4104} 4105_ACEOF 4106for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4108do 4109 CC="$ac_save_CC $ac_arg" 4110 if ac_fn_c_try_compile "$LINENO"; then : 4111 ac_cv_prog_cc_c89=$ac_arg 4112fi 4113rm -f core conftest.err conftest.$ac_objext 4114 test "x$ac_cv_prog_cc_c89" != "xno" && break 4115done 4116rm -f conftest.$ac_ext 4117CC=$ac_save_CC 4118 4119fi 4120# AC_CACHE_VAL 4121case "x$ac_cv_prog_cc_c89" in 4122 x) 4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4124$as_echo "none needed" >&6; } ;; 4125 xno) 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4127$as_echo "unsupported" >&6; } ;; 4128 *) 4129 CC="$CC $ac_cv_prog_cc_c89" 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4131$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4132esac 4133if test "x$ac_cv_prog_cc_c89" != xno; then : 4134 4135fi 4136 4137ac_ext=c 4138ac_cpp='$CPP $CPPFLAGS' 4139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4141ac_compiler_gnu=$ac_cv_c_compiler_gnu 4142 4143 4144ac_ext=c 4145ac_cpp='$CPP $CPPFLAGS' 4146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4148ac_compiler_gnu=$ac_cv_c_compiler_gnu 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4150$as_echo_n "checking how to run the C preprocessor... " >&6; } 4151# On Suns, sometimes $CPP names a directory. 4152if test -n "$CPP" && test -d "$CPP"; then 4153 CPP= 4154fi 4155if test -z "$CPP"; then 4156 if ${ac_cv_prog_CPP+:} false; then : 4157 $as_echo_n "(cached) " >&6 4158else 4159 # Double quotes because CPP needs to be expanded 4160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4161 do 4162 ac_preproc_ok=false 4163for ac_c_preproc_warn_flag in '' yes 4164do 4165 # Use a header file that comes with gcc, so configuring glibc 4166 # with a fresh cross-compiler works. 4167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4168 # <limits.h> exists even on freestanding compilers. 4169 # On the NeXT, cc -E runs the code through the compiler's parser, 4170 # not just through cpp. "Syntax error" is here to catch this case. 4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4172/* end confdefs.h. */ 4173#ifdef __STDC__ 4174# include <limits.h> 4175#else 4176# include <assert.h> 4177#endif 4178 Syntax error 4179_ACEOF 4180if ac_fn_c_try_cpp "$LINENO"; then : 4181 4182else 4183 # Broken: fails on valid input. 4184continue 4185fi 4186rm -f conftest.err conftest.i conftest.$ac_ext 4187 4188 # OK, works on sane cases. Now check whether nonexistent headers 4189 # can be detected and how. 4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4191/* end confdefs.h. */ 4192#include <ac_nonexistent.h> 4193_ACEOF 4194if ac_fn_c_try_cpp "$LINENO"; then : 4195 # Broken: success on invalid input. 4196continue 4197else 4198 # Passes both tests. 4199ac_preproc_ok=: 4200break 4201fi 4202rm -f conftest.err conftest.i conftest.$ac_ext 4203 4204done 4205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4206rm -f conftest.i conftest.err conftest.$ac_ext 4207if $ac_preproc_ok; then : 4208 break 4209fi 4210 4211 done 4212 ac_cv_prog_CPP=$CPP 4213 4214fi 4215 CPP=$ac_cv_prog_CPP 4216else 4217 ac_cv_prog_CPP=$CPP 4218fi 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4220$as_echo "$CPP" >&6; } 4221ac_preproc_ok=false 4222for ac_c_preproc_warn_flag in '' yes 4223do 4224 # Use a header file that comes with gcc, so configuring glibc 4225 # with a fresh cross-compiler works. 4226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4227 # <limits.h> exists even on freestanding compilers. 4228 # On the NeXT, cc -E runs the code through the compiler's parser, 4229 # not just through cpp. "Syntax error" is here to catch this case. 4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4231/* end confdefs.h. */ 4232#ifdef __STDC__ 4233# include <limits.h> 4234#else 4235# include <assert.h> 4236#endif 4237 Syntax error 4238_ACEOF 4239if ac_fn_c_try_cpp "$LINENO"; then : 4240 4241else 4242 # Broken: fails on valid input. 4243continue 4244fi 4245rm -f conftest.err conftest.i conftest.$ac_ext 4246 4247 # OK, works on sane cases. Now check whether nonexistent headers 4248 # can be detected and how. 4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4250/* end confdefs.h. */ 4251#include <ac_nonexistent.h> 4252_ACEOF 4253if ac_fn_c_try_cpp "$LINENO"; then : 4254 # Broken: success on invalid input. 4255continue 4256else 4257 # Passes both tests. 4258ac_preproc_ok=: 4259break 4260fi 4261rm -f conftest.err conftest.i conftest.$ac_ext 4262 4263done 4264# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4265rm -f conftest.i conftest.err conftest.$ac_ext 4266if $ac_preproc_ok; then : 4267 4268else 4269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4271as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4272See \`config.log' for more details" "$LINENO" 5; } 4273fi 4274 4275ac_ext=c 4276ac_cpp='$CPP $CPPFLAGS' 4277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4279ac_compiler_gnu=$ac_cv_c_compiler_gnu 4280 4281 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4283$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4284if ${ac_cv_path_GREP+:} false; then : 4285 $as_echo_n "(cached) " >&6 4286else 4287 if test -z "$GREP"; then 4288 ac_path_GREP_found=false 4289 # Loop through the user's path and test for each of PROGNAME-LIST 4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4291for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4292do 4293 IFS=$as_save_IFS 4294 test -z "$as_dir" && as_dir=. 4295 for ac_prog in grep ggrep; do 4296 for ac_exec_ext in '' $ac_executable_extensions; do 4297 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4298 as_fn_executable_p "$ac_path_GREP" || continue 4299# Check for GNU ac_path_GREP and select it if it is found. 4300 # Check for GNU $ac_path_GREP 4301case `"$ac_path_GREP" --version 2>&1` in 4302*GNU*) 4303 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4304*) 4305 ac_count=0 4306 $as_echo_n 0123456789 >"conftest.in" 4307 while : 4308 do 4309 cat "conftest.in" "conftest.in" >"conftest.tmp" 4310 mv "conftest.tmp" "conftest.in" 4311 cp "conftest.in" "conftest.nl" 4312 $as_echo 'GREP' >> "conftest.nl" 4313 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4315 as_fn_arith $ac_count + 1 && ac_count=$as_val 4316 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4317 # Best one so far, save it but keep looking for a better one 4318 ac_cv_path_GREP="$ac_path_GREP" 4319 ac_path_GREP_max=$ac_count 4320 fi 4321 # 10*(2^10) chars as input seems more than enough 4322 test $ac_count -gt 10 && break 4323 done 4324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4325esac 4326 4327 $ac_path_GREP_found && break 3 4328 done 4329 done 4330 done 4331IFS=$as_save_IFS 4332 if test -z "$ac_cv_path_GREP"; then 4333 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4334 fi 4335else 4336 ac_cv_path_GREP=$GREP 4337fi 4338 4339fi 4340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4341$as_echo "$ac_cv_path_GREP" >&6; } 4342 GREP="$ac_cv_path_GREP" 4343 4344 4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4346$as_echo_n "checking for egrep... " >&6; } 4347if ${ac_cv_path_EGREP+:} false; then : 4348 $as_echo_n "(cached) " >&6 4349else 4350 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4351 then ac_cv_path_EGREP="$GREP -E" 4352 else 4353 if test -z "$EGREP"; then 4354 ac_path_EGREP_found=false 4355 # Loop through the user's path and test for each of PROGNAME-LIST 4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4357for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4358do 4359 IFS=$as_save_IFS 4360 test -z "$as_dir" && as_dir=. 4361 for ac_prog in egrep; do 4362 for ac_exec_ext in '' $ac_executable_extensions; do 4363 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4364 as_fn_executable_p "$ac_path_EGREP" || continue 4365# Check for GNU ac_path_EGREP and select it if it is found. 4366 # Check for GNU $ac_path_EGREP 4367case `"$ac_path_EGREP" --version 2>&1` in 4368*GNU*) 4369 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4370*) 4371 ac_count=0 4372 $as_echo_n 0123456789 >"conftest.in" 4373 while : 4374 do 4375 cat "conftest.in" "conftest.in" >"conftest.tmp" 4376 mv "conftest.tmp" "conftest.in" 4377 cp "conftest.in" "conftest.nl" 4378 $as_echo 'EGREP' >> "conftest.nl" 4379 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4381 as_fn_arith $ac_count + 1 && ac_count=$as_val 4382 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4383 # Best one so far, save it but keep looking for a better one 4384 ac_cv_path_EGREP="$ac_path_EGREP" 4385 ac_path_EGREP_max=$ac_count 4386 fi 4387 # 10*(2^10) chars as input seems more than enough 4388 test $ac_count -gt 10 && break 4389 done 4390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4391esac 4392 4393 $ac_path_EGREP_found && break 3 4394 done 4395 done 4396 done 4397IFS=$as_save_IFS 4398 if test -z "$ac_cv_path_EGREP"; then 4399 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4400 fi 4401else 4402 ac_cv_path_EGREP=$EGREP 4403fi 4404 4405 fi 4406fi 4407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4408$as_echo "$ac_cv_path_EGREP" >&6; } 4409 EGREP="$ac_cv_path_EGREP" 4410 4411 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4413$as_echo_n "checking for ANSI C header files... " >&6; } 4414if ${ac_cv_header_stdc+:} false; then : 4415 $as_echo_n "(cached) " >&6 4416else 4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4418/* end confdefs.h. */ 4419#include <stdlib.h> 4420#include <stdarg.h> 4421#include <string.h> 4422#include <float.h> 4423 4424int 4425main () 4426{ 4427 4428 ; 4429 return 0; 4430} 4431_ACEOF 4432if ac_fn_c_try_compile "$LINENO"; then : 4433 ac_cv_header_stdc=yes 4434else 4435 ac_cv_header_stdc=no 4436fi 4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4438 4439if test $ac_cv_header_stdc = yes; then 4440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4442/* end confdefs.h. */ 4443#include <string.h> 4444 4445_ACEOF 4446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4447 $EGREP "memchr" >/dev/null 2>&1; then : 4448 4449else 4450 ac_cv_header_stdc=no 4451fi 4452rm -f conftest* 4453 4454fi 4455 4456if test $ac_cv_header_stdc = yes; then 4457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4459/* end confdefs.h. */ 4460#include <stdlib.h> 4461 4462_ACEOF 4463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4464 $EGREP "free" >/dev/null 2>&1; then : 4465 4466else 4467 ac_cv_header_stdc=no 4468fi 4469rm -f conftest* 4470 4471fi 4472 4473if test $ac_cv_header_stdc = yes; then 4474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4475 if test "$cross_compiling" = yes; then : 4476 : 4477else 4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4479/* end confdefs.h. */ 4480#include <ctype.h> 4481#include <stdlib.h> 4482#if ((' ' & 0x0FF) == 0x020) 4483# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4484# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4485#else 4486# define ISLOWER(c) \ 4487 (('a' <= (c) && (c) <= 'i') \ 4488 || ('j' <= (c) && (c) <= 'r') \ 4489 || ('s' <= (c) && (c) <= 'z')) 4490# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4491#endif 4492 4493#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4494int 4495main () 4496{ 4497 int i; 4498 for (i = 0; i < 256; i++) 4499 if (XOR (islower (i), ISLOWER (i)) 4500 || toupper (i) != TOUPPER (i)) 4501 return 2; 4502 return 0; 4503} 4504_ACEOF 4505if ac_fn_c_try_run "$LINENO"; then : 4506 4507else 4508 ac_cv_header_stdc=no 4509fi 4510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4511 conftest.$ac_objext conftest.beam conftest.$ac_ext 4512fi 4513 4514fi 4515fi 4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4517$as_echo "$ac_cv_header_stdc" >&6; } 4518if test $ac_cv_header_stdc = yes; then 4519 4520$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4521 4522fi 4523 4524# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4525for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4526 inttypes.h stdint.h unistd.h 4527do : 4528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4529ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4530" 4531if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4532 cat >>confdefs.h <<_ACEOF 4533#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4534_ACEOF 4535 4536fi 4537 4538done 4539 4540 4541 4542 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4543if test "x$ac_cv_header_minix_config_h" = xyes; then : 4544 MINIX=yes 4545else 4546 MINIX= 4547fi 4548 4549 4550 if test "$MINIX" = yes; then 4551 4552$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4553 4554 4555$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4556 4557 4558$as_echo "#define _MINIX 1" >>confdefs.h 4559 4560 fi 4561 4562 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4564$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4565if ${ac_cv_safe_to_define___extensions__+:} false; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4569/* end confdefs.h. */ 4570 4571# define __EXTENSIONS__ 1 4572 $ac_includes_default 4573int 4574main () 4575{ 4576 4577 ; 4578 return 0; 4579} 4580_ACEOF 4581if ac_fn_c_try_compile "$LINENO"; then : 4582 ac_cv_safe_to_define___extensions__=yes 4583else 4584 ac_cv_safe_to_define___extensions__=no 4585fi 4586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4587fi 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4589$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4590 test $ac_cv_safe_to_define___extensions__ = yes && 4591 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4592 4593 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4594 4595 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4596 4597 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4598 4599 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4600 4601 4602 4603## 4604## Recommended structure: 4605## 4606# information on the package 4607# checks for programs 4608# checks for libraries 4609# checks for header files 4610# checks for types 4611# checks for structures 4612# checks for compiler characteristics 4613# checks for library functions 4614# checks for system services 4615 4616 4617 4618 4619 4620# -*- autoconf -*- 4621######################################### 4622## 4623# Command-line processing - --with/--enable 4624## 4625######################################### 4626 4627## 4628# System: Compiler settings 4629## 4630 4631 4632# Check whether --with-cc was given. 4633if test "${with_cc+set}" = set; then : 4634 withval=$with_cc; CC=$with_cc;export CC 4635fi 4636 4637 4638 4639# Check whether --with-linkcc was given. 4640if test "${with_linkcc+set}" = set; then : 4641 withval=$with_linkcc; LINKCC=$with_linkcc;export LINKCC 4642fi 4643 4644 4645 4646# Check whether --with-ar was given. 4647if test "${with_ar+set}" = set; then : 4648 withval=$with_ar; AR=$with_ar; export AR 4649fi 4650 4651 4652 4653# Check whether --with-endianness was given. 4654if test "${with_endianness+set}" = set; then : 4655 withval=$with_endianness; if test $with_endianness != "big" -a $with_endianness != "little" ; then 4656 as_fn_error $? "Endianness must be big or little, not \"$with_endianness\"." "$LINENO" 5; 4657 else 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-endianness is obsolete" >&5 4659$as_echo "$as_me: WARNING: --with-endianness is obsolete" >&2;} 4660 fi 4661 4662fi 4663 4664 4665 4666# Check whether --with-cflags was given. 4667if test "${with_cflags+set}" = set; then : 4668 withval=$with_cflags; CFLAGS=$with_cflags; export CFLAGS 4669fi 4670 4671 4672 4673# Check whether --with-ldflags was given. 4674if test "${with_ldflags+set}" = set; then : 4675 withval=$with_ldflags; LDFLAGS=$with_ldflags; export LDFLAGS 4676fi 4677 4678 4679# Check whether --enable-as-needed was given. 4680if test "${enable_as_needed+set}" = set; then : 4681 enableval=$enable_as_needed; 4682fi 4683 4684 4685 4686# Check whether --with-libs was given. 4687if test "${with_libs+set}" = set; then : 4688 withval=$with_libs; LIBS=$with_libs; export LIBS 4689fi 4690 4691 4692# Check whether --enable-silent-libtool was given. 4693if test "${enable_silent_libtool+set}" = set; then : 4694 enableval=$enable_silent_libtool; LIBTOOLFLAGS=--silent 4695fi 4696 4697 4698 4699 4700## 4701# System: Library settings 4702## 4703 4704tryrsaref=no 4705 4706# Check whether --with-rsaref was given. 4707if test "${with_rsaref+set}" = set; then : 4708 withval=$with_rsaref; if test "x$withval" = "xyes"; then 4709 tryrsaref=yes 4710 elif test "x$withval" = "xno"; then 4711 tryrsaref=no 4712 elif test -d "$withval"; then 4713 4714 if test "x$withval" != x -a -d $withval; then 4715 if test -d $withval/lib; then 4716 LDFLAGS="-L$withval/lib $LDFLAGS" 4717 fi 4718 if test -d $withval/include; then 4719 CPPFLAGS="-I$withval/include $CPPFLAGS" 4720 fi 4721 fi 4722 4723 tryrsaref=yes 4724 fi 4725fi 4726 4727 # Check whether --enable-rsaref was given. 4728if test "${enable_rsaref+set}" = set; then : 4729 enableval=$enable_rsaref; as_fn_error $? "Invalid option. Use --with-rsaref/--without-rsaref instead" "$LINENO" 5 4730fi 4731 4732 4733tryopenssl=defaultyes 4734askedopenssl=no 4735aes_capable=no 4736 4737# Check whether --with-openssl was given. 4738if test "${with_openssl+set}" = set; then : 4739 withval=$with_openssl; if test "x$withval" = "xyes"; then 4740 tryopenssl=yes 4741 askedopenssl=yes 4742 elif test "x$withval" = "xinternal"; then 4743 tryopenssl=internal 4744 askedopenssl=internal 4745 elif test "x$withval" = "xno"; then 4746 tryopenssl=no 4747 elif test -d "$withval"; then 4748 if test -d "$withval/lib/MinGW"; then 4749 LDFLAGS="-L$withval/lib/MinGW $LDFLAGS" 4750 CPPFLAGS="-I$withval/include $CPPFLAGS" 4751 else 4752 4753 if test "x$withval" != x -a -d $withval; then 4754 if test -d $withval/lib; then 4755 LDFLAGS="-L$withval/lib $LDFLAGS" 4756 fi 4757 if test -d $withval/include; then 4758 CPPFLAGS="-I$withval/include $CPPFLAGS" 4759 fi 4760 fi 4761 4762 fi 4763 tryopenssl=yes 4764 askedopenssl=yes 4765 fi 4766fi 4767 4768 # Check whether --enable-openssl was given. 4769if test "${enable_openssl+set}" = set; then : 4770 enableval=$enable_openssl; as_fn_error $? "Invalid option. Use --with-openssl/--without-openssl instead" "$LINENO" 5 4771fi 4772 4773if test "x$tryopenssl" = "xdefaultyes"; then 4774 4775 if test "x/usr/local/ssl" != x -a -d /usr/local/ssl; then 4776 if test -d /usr/local/ssl/lib; then 4777 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS" 4778 fi 4779 if test -d /usr/local/ssl/include; then 4780 CPPFLAGS="-I/usr/local/ssl/include $CPPFLAGS" 4781 fi 4782 fi 4783 4784 tryopenssl=yes 4785fi 4786if test "x$tryopenssl" = "xyes"; then 4787 for ac_header in openssl/aes.h openssl/evp.h 4788do : 4789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4790ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4791if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4792 cat >>confdefs.h <<_ACEOF 4793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4794_ACEOF 4795 aes_capable=yes 4796fi 4797 4798done 4799 4800fi 4801 4802 4803# Check whether --with-ssl was given. 4804if test "${with_ssl+set}" = set; then : 4805 withval=$with_ssl; as_fn_error $? "Invalid option. Use --with-openssl/--without-openssl instead" "$LINENO" 5 4806fi 4807 4808# Check whether --enable-ssl was given. 4809if test "${enable_ssl+set}" = set; then : 4810 enableval=$enable_ssl; as_fn_error $? "Invalid option. Use --with-openssl/--without-openssl instead" "$LINENO" 5 4811fi 4812 4813 4814askedpkcs=no 4815 4816# Check whether --with-pkcs was given. 4817if test "${with_pkcs+set}" = set; then : 4818 withval=$with_pkcs; if test "x$withval" = "xyes"; then 4819 askedpkcs=yes 4820 elif test "x$withval" = "xno"; then 4821 askedpkcs=no 4822 elif test -d "$withval"; then 4823 4824 if test "x$withval" != x -a -d $withval; then 4825 if test -d $withval/lib; then 4826 LDFLAGS="-L$withval/lib $LDFLAGS" 4827 fi 4828 if test -d $withval/include; then 4829 CPPFLAGS="-I$withval/include $CPPFLAGS" 4830 fi 4831 fi 4832 4833 askedpkcs=yes 4834 fi 4835fi 4836 4837 # Check whether --enable-pkcs was given. 4838if test "${enable_pkcs+set}" = set; then : 4839 enableval=$enable_pkcs; as_fn_error $? "Invalid option. Use --with-pkcs/--without-pkcs instead" "$LINENO" 5 4840fi 4841 4842 4843trykrb5=defaultyes 4844askedkrb5=no 4845 4846# Check whether --with-krb5 was given. 4847if test "${with_krb5+set}" = set; then : 4848 withval=$with_krb5; if test "x$withval" = "xyes"; then 4849 trykrb5=yes 4850 askedkrb5=yes 4851 krb5path=undef 4852 elif test "x$withval" = "xno"; then 4853 trykrb5=no 4854 krb5path=undef 4855 elif test -d "$withval"; then 4856 trykrb5=yes 4857 askedkrb5=yes 4858 krb5path=$withval 4859 fi 4860fi 4861 4862 # Check whether --enable-krb5 was given. 4863if test "${enable_krb5+set}" = set; then : 4864 enableval=$enable_krb5; as_fn_error $? "Invalid option. Use --with-krb5/--without-krb5 instead" "$LINENO" 5 4865fi 4866 4867if test "x$trykrb5" = "xdefaultyes"; then 4868 trykrb5=yes 4869 krb5path=/usr/kerberos 4870fi 4871 4872 4873# Check whether --with-dnssec-local-validation was given. 4874if test "${with_dnssec_local_validation+set}" = set; then : 4875 withval=$with_dnssec_local_validation; want_dnssec=$withval 4876else 4877 want_dnssec=no 4878fi 4879 4880# Check whether --enable-dnssec-local-validation was given. 4881if test "${enable_dnssec_local_validation+set}" = set; then : 4882 enableval=$enable_dnssec_local_validation; as_fn_error $? "Invalid option. Use --with-dnssec-local-validation/--without-dnssec-local-validation instead" "$LINENO" 5 4883fi 4884 4885 4886# Check whether --with-dnssec was given. 4887if test "${with_dnssec+set}" = set; then : 4888 withval=$with_dnssec; as_fn_error $? "Invalid option. Use --with-dnssec-local-validation/--without-dnssec-local-validation instead" "$LINENO" 5 4889fi 4890 4891# Check whether --enable-dnssec was given. 4892if test "${enable_dnssec+set}" = set; then : 4893 enableval=$enable_dnssec; as_fn_error $? "Invalid option. Use --with-dnssec-local-validation/--without-dnssec-local-validation instead" "$LINENO" 5 4894fi 4895 4896 4897 4898# Check whether --with-rpm was given. 4899if test "${with_rpm+set}" = set; then : 4900 withval=$with_rpm; 4901fi 4902 4903 # Check whether --enable-rpm was given. 4904if test "${enable_rpm+set}" = set; then : 4905 enableval=$enable_rpm; as_fn_error $? "Invalid option. Use --with-rpm/--without-rpm instead" "$LINENO" 5 4906fi 4907 4908 4909 4910 4911# Check whether --with-pcre was given. 4912if test "${with_pcre+set}" = set; then : 4913 withval=$with_pcre; with_pcre="$withval" 4914else 4915 with_pcre="maybe" 4916fi 4917 4918 # Check whether --enable-pcre was given. 4919if test "${enable_pcre+set}" = set; then : 4920 enableval=$enable_pcre; as_fn_error $? "Invalid option. Use --with-pcre/--without-pcre instead" "$LINENO" 5 4921fi 4922 4923 4924## 4925# Project: Build configuration settings 4926## 4927 4928# Install prefix 4929# 4930 4931# Check whether --with-install-prefix was given. 4932if test "${with_install_prefix+set}" = set; then : 4933 withval=$with_install_prefix; INSTALL_PREFIX="$withval" 4934fi 4935 4936 4937if test "x$INSTALL_PREFIX" = "xyes" ; then 4938 as_fn_error $? "--with-install-prefix requires an argument" "$LINENO" 5 4939fi 4940if test "x$INSTALL_PREFIX" = "xno" ; then 4941 INSTALL_PREFIX="" 4942fi 4943 4944 4945 4946# 4947# Subsystems to build: 4948# Library 4949# 4950FEATUREHEADERS="library/features.h" 4951FTMAINSUBS="" 4952 4953# 4954# Agent 4955# 4956# Check whether --enable-agent was given. 4957if test "${enable_agent+set}" = set; then : 4958 enableval=$enable_agent; 4959fi 4960 4961 4962# Check whether --with-agent was given. 4963if test "${with_agent+set}" = set; then : 4964 withval=$with_agent; as_fn_error $? "Invalid option. Use --enable-agent/--disable-agent instead" "$LINENO" 5 4965fi 4966 4967if test "x$enable_agent" != "xno"; then 4968 SNMPD='snmpd$(EXEEXT)' 4969 MAINSUBS="$MAINSUBS agent" 4970 FEATUREHEADERS="$FEATUREHEADERS agent/features-mibgroups.h agent/features.h" 4971 FTMAINSUBS="agent $FTMAINSUBS" 4972 TRAPLIBS='$(TRAPDWITHAGENT)' 4973 USETRAPLIBS='$(USEAGENTLIBS)' 4974else 4975 SNMPD="" 4976 # we still need/want the agentlibs (for subagents, e.g. snmptrapd) 4977 MAINSUBS="$MAINSUBS agent" 4978 # building snmptrapd w/o agentlibs doesn't work atm 4979 #TRAPLIBS='$(TRAPDWITHOUTAGENT)' 4980 #USETRAPLIBS='$(USELIBS)' 4981 TRAPLIBS='$(TRAPDWITHAGENT)' 4982 USETRAPLIBS='$(USEAGENTLIBS)' 4983 4984$as_echo "#define NETSNMP_DISABLE_AGENT 1" >>confdefs.h 4985 4986fi 4987 4988 4989 4990 4991 4992# Applications 4993# 4994# Check whether --enable-applications was given. 4995if test "${enable_applications+set}" = set; then : 4996 enableval=$enable_applications; 4997fi 4998 4999 5000# Check whether --with-applications was given. 5001if test "${with_applications+set}" = set; then : 5002 withval=$with_applications; as_fn_error $? "Invalid option. Use --enable-applications/--disable-applications instead" "$LINENO" 5 5003fi 5004 5005if test "x$enable_applications" != "xno"; then 5006 MAINSUBS="$MAINSUBS apps" 5007 FEATUREHEADERS="$FEATUREHEADERS features-snmpnetstat.h features-apps.h" 5008 FTMAINSUBS="apps $FTMAINSUBS" 5009else 5010 5011$as_echo "#define NETSNMP_DISABLE_APPS 1" >>confdefs.h 5012 5013fi 5014 5015# Manual pages 5016# 5017# Check whether --enable-manuals was given. 5018if test "${enable_manuals+set}" = set; then : 5019 enableval=$enable_manuals; 5020fi 5021 5022 5023# Check whether --with-manuals was given. 5024if test "${with_manuals+set}" = set; then : 5025 withval=$with_manuals; as_fn_error $? "Invalid option. Use --enable-manuals/--disable-manuals instead" "$LINENO" 5 5026fi 5027 5028if test "x$enable_manuals" != "xno"; then 5029 MAINSUBS="$MAINSUBS man" 5030fi 5031 5032# Supporting scripts 5033# 5034# Check whether --enable-scripts was given. 5035if test "${enable_scripts+set}" = set; then : 5036 enableval=$enable_scripts; 5037fi 5038 5039 5040# Check whether --with-scripts was given. 5041if test "${with_scripts+set}" = set; then : 5042 withval=$with_scripts; as_fn_error $? "Invalid option. Use --enable-scripts/--disable-scripts instead" "$LINENO" 5 5043fi 5044 5045if test "x$enable_scripts" != "xno"; then 5046 MAINSUBS="$MAINSUBS local" 5047fi 5048 5049# MIB files 5050# 5051# Check whether --enable-mibs was given. 5052if test "${enable_mibs+set}" = set; then : 5053 enableval=$enable_mibs; 5054fi 5055 5056if test "x$enable_mibs" != "xno"; then 5057 MAINSUBS="$MAINSUBS mibs" 5058fi 5059# with-mibs is valid too, but means something else 5060 5061 5062 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to build and install" >&5 5064$as_echo_n "checking what to build and install... " >&6; } 5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAINSUBS" >&5 5066$as_echo "$MAINSUBS" >&6; } 5067 5068 5069# MIB module validation (during "configure") 5070# 5071# Check whether --enable-mib-config-checking was given. 5072if test "${enable_mib_config_checking+set}" = set; then : 5073 enableval=$enable_mib_config_checking; if test "$enableval" = yes -o "$enableval" = no ; then 5074 with_mib_cfg_checks="$enableval" 5075 else 5076 as_fn_error $? "Please use --enable/--disable-mib-config-checking" "$LINENO" 5 5077 fi 5078else 5079 with_mib_cfg_checks="no" 5080fi 5081 5082 5083# Check whether --with-mib-config-checking was given. 5084if test "${with_mib_config_checking+set}" = set; then : 5085 withval=$with_mib_config_checking; as_fn_error $? "Invalid option. Use --enable-mib-config-checking/--disable-mib-config-checking instead" "$LINENO" 5 5086fi 5087 5088 5089# Check whether --enable-mib-config-debug was given. 5090if test "${enable_mib_config_debug+set}" = set; then : 5091 enableval=$enable_mib_config_debug; if test "$enableval" = yes -o "$enableval" = no ; then 5092 with_mib_cfg_debug="$enableval" 5093 else 5094 as_fn_error $? "Please use --enable/--disable-mib-config-debug" "$LINENO" 5 5095 fi 5096else 5097 with_mib_cfg_debug="no" 5098fi 5099 5100 5101# Check whether --with-mib-config-debug was given. 5102if test "${with_mib_config_debug+set}" = set; then : 5103 withval=$with_mib_config_debug; as_fn_error $? "Invalid option. Use --enable-mib-config-debug/--disable-mib-config-debug instead" "$LINENO" 5 5104fi 5105 5106 5107 5108# Version-specific features 5109# 5110# Check whether --enable-new-features was given. 5111if test "${enable_new_features+set}" = set; then : 5112 enableval=$enable_new_features; 5113fi 5114 5115 5116# Check whether --enable-old-features was given. 5117if test "${enable_old_features+set}" = set; then : 5118 enableval=$enable_old_features; 5119fi 5120 5121 5122 5123# Check whether --with-features-of was given. 5124if test "${with_features_of+set}" = set; then : 5125 withval=$with_features_of; 5126else 5127 with_features_of=$PACKAGE_VERSION 5128fi 5129 5130 5131 5132# Manual prompting during "configure" 5133# 5134 5135# Check whether --with-defaults was given. 5136if test "${with_defaults+set}" = set; then : 5137 withval=$with_defaults; if test "$withval" = yes -o "$withval" = no ; then 5138 defaults="$withval" 5139 else 5140 as_fn_error $? "Please use --with/--without-defaults" "$LINENO" 5 5141 fi 5142else 5143 defaults="no" 5144fi 5145 5146 # Check whether --enable-defaults was given. 5147if test "${enable_defaults+set}" = set; then : 5148 enableval=$enable_defaults; as_fn_error $? "Invalid option. Use --with-defaults/--without-defaults instead" "$LINENO" 5 5149fi 5150 5151 5152 5153# UCD compatability 5154# 5155# Check whether --enable-ucd-snmp-compatibility was given. 5156if test "${enable_ucd_snmp_compatibility+set}" = set; then : 5157 enableval=$enable_ucd_snmp_compatibility; 5158fi 5159 5160 5161# Check whether --with-ucd-snmp-compatibility was given. 5162if test "${with_ucd_snmp_compatibility+set}" = set; then : 5163 withval=$with_ucd_snmp_compatibility; as_fn_error $? "Invalid option. Use --enable-ucd-snmp-compatibility/--disable-ucd-snmp-compatibility instead" "$LINENO" 5 5164fi 5165 5166 5167if test "x$enable_ucd_snmp_compatibility" = "xyes" ; then 5168 installucdheaders=installucdheaders 5169 installucdlibs=installucdlibs 5170 5171 cat >> configure-summary << EOF 5172 UCD-SNMP compatability: enabled 5173EOF 5174 5175fi 5176 5177 5178 5179 5180## 5181# Project: Library: MIB configuration settings 5182## 5183 5184# Check whether --enable-mib-loading was given. 5185if test "${enable_mib_loading+set}" = set; then : 5186 enableval=$enable_mib_loading; 5187fi 5188 5189 5190# Check whether --with-mib-loading was given. 5191if test "${with_mib_loading+set}" = set; then : 5192 withval=$with_mib_loading; as_fn_error $? "Invalid option. Use --enable-mib-loading/--disable-mib-loading instead" "$LINENO" 5 5193fi 5194 5195if test "x$enable_mib_loading" = "xno"; then 5196 5197$as_echo "#define NETSNMP_DISABLE_MIB_LOADING 1" >>confdefs.h 5198 5199fi 5200 5201 5202# Check whether --with-mibdirs was given. 5203if test "${with_mibdirs+set}" = set; then : 5204 withval=$with_mibdirs; NETSNMP_DEFAULT_MIBDIRS="$with_mibdirs" 5205 5206cat >>confdefs.h <<_ACEOF 5207#define NETSNMP_DEFAULT_MIBDIRS "$with_mibdirs" 5208_ACEOF 5209 5210fi 5211 5212 # Check whether --enable-mibdirs was given. 5213if test "${enable_mibdirs+set}" = set; then : 5214 enableval=$enable_mibdirs; as_fn_error $? "Invalid option. Use --with-mibdirs/--without-mibdirs instead" "$LINENO" 5 5215fi 5216 5217 5218 5219# Check whether --with-mibs was given. 5220if test "${with_mibs+set}" = set; then : 5221 withval=$with_mibs; NETSNMP_DEFAULT_MIBS="$with_mibs" 5222fi 5223 5224# enable-mibs is valid too, but means something else 5225 5226 5227# Check whether --with-mibfiles was given. 5228if test "${with_mibfiles+set}" = set; then : 5229 withval=$with_mibfiles; 5230cat >>confdefs.h <<_ACEOF 5231#define NETSNMP_DEFAULT_MIBFILES "$with_mibfiles" 5232_ACEOF 5233 5234fi 5235 5236 # Check whether --enable-mibfiles was given. 5237if test "${enable_mibfiles+set}" = set; then : 5238 enableval=$enable_mibfiles; as_fn_error $? "Invalid option. Use --with-mibfiles/--without-mibfiles instead" "$LINENO" 5 5239fi 5240 5241 5242 5243## 5244# Project: Library: Security configuration 5245## 5246 5247# Check whether --enable-des was given. 5248if test "${enable_des+set}" = set; then : 5249 enableval=$enable_des; 5250fi 5251 5252 5253# Check whether --with-des was given. 5254if test "${with_des+set}" = set; then : 5255 withval=$with_des; as_fn_error $? "Invalid option. Use --enable-des/--disable-des instead" "$LINENO" 5 5256fi 5257 5258if test "x$enable_des" = "xno"; then 5259 5260$as_echo "#define NETSNMP_DISABLE_DES 1" >>confdefs.h 5261 5262fi 5263 5264# Check whether --enable-privacy was given. 5265if test "${enable_privacy+set}" = set; then : 5266 enableval=$enable_privacy; 5267fi 5268 5269 5270# Check whether --with-privacy was given. 5271if test "${with_privacy+set}" = set; then : 5272 withval=$with_privacy; as_fn_error $? "Invalid option. Use --enable-privacy/--disable-privacy instead" "$LINENO" 5 5273fi 5274 5275if test "x$enable_privacy" != "xno"; then 5276 5277$as_echo "#define NETSNMP_ENABLE_SCAPI_AUTHPRIV 1" >>confdefs.h 5278 5279fi 5280 5281# Check whether --enable-md5 was given. 5282if test "${enable_md5+set}" = set; then : 5283 enableval=$enable_md5; 5284fi 5285 5286 5287# Check whether --with-md5 was given. 5288if test "${with_md5+set}" = set; then : 5289 withval=$with_md5; as_fn_error $? "Invalid option. Use --enable-md5/--disable-md5 instead" "$LINENO" 5 5290fi 5291 5292if test "x$enable_md5" = "xno"; then 5293 5294$as_echo "#define NETSNMP_DISABLE_MD5 1" >>confdefs.h 5295 5296fi 5297 5298# Check whether --enable-internal-md5 was given. 5299if test "${enable_internal_md5+set}" = set; then : 5300 enableval=$enable_internal_md5; 5301fi 5302 5303 5304# Check whether --with-internal-md5 was given. 5305if test "${with_internal_md5+set}" = set; then : 5306 withval=$with_internal_md5; as_fn_error $? "Invalid option. Use --enable-internal-md5/--disable-internal-md5 instead" "$LINENO" 5 5307fi 5308 5309if test "x$enable_internal_md5" = "xyes"; then 5310 if test "x$enable_md5" = "xno"; then 5311 as_fn_error $? "You can not specify both --enable-internal-md5 and --disable-md5" "$LINENO" 5 5312 else 5313 5314$as_echo "#define NETSNMP_USE_INTERNAL_MD5 1" >>confdefs.h 5315 5316 fi 5317fi 5318 5319# Check whether --enable-blumenthal-aes was given. 5320if test "${enable_blumenthal_aes+set}" = set; then : 5321 enableval=$enable_blumenthal_aes; 5322fi 5323 5324 5325# Check whether --with-blumenthal-aes was given. 5326if test "${with_blumenthal_aes+set}" = set; then : 5327 withval=$with_blumenthal_aes; as_fn_error $? "Invalid option. Use --enable-blumenthal-aes/--disable-blumenthal-aes instead" "$LINENO" 5 5328fi 5329 5330if test "x$enable_blumenthal_aes" = "xyes"; then 5331 if test "x$aes_capable" = "xyes"; then 5332 5333$as_echo "#define NETSNMP_DRAFT_BLUMENTHAL_AES_04 1" >>confdefs.h 5334 5335 else 5336 as_fn_error $? "Blumenthal draft requires OpenSSL with AES functions enabled" "$LINENO" 5 5337 fi 5338fi 5339 5340 5341## 5342# Project: Library: Misc configuration 5343## 5344 5345 5346# Check whether --with-opaque-special-types was given. 5347if test "${with_opaque_special_types+set}" = set; then : 5348 withval=$with_opaque_special_types; 5349fi 5350 5351 # Check whether --enable-opaque-special-types was given. 5352if test "${enable_opaque_special_types+set}" = set; then : 5353 enableval=$enable_opaque_special_types; as_fn_error $? "Invalid option. Use --with-opaque-special-types/--without-opaque-special-types instead" "$LINENO" 5 5354fi 5355 5356# Only define if specifically chosen as --without (i.e., default to true). 5357if test "x$with_opaque_special_types" != "xno"; then 5358 5359$as_echo "#define NETSNMP_WITH_OPAQUE_SPECIAL_TYPES 1" >>confdefs.h 5360 5361fi 5362 5363# Check whether --enable-ipv6 was given. 5364if test "${enable_ipv6+set}" = set; then : 5365 enableval=$enable_ipv6; 5366else 5367 enable_ipv6="yes" 5368fi 5369 5370 5371# Check whether --with-ipv6 was given. 5372if test "${with_ipv6+set}" = set; then : 5373 withval=$with_ipv6; as_fn_error $? "Invalid option. Use --enable-ipv6/--disable-ipv6 instead" "$LINENO" 5 5374fi 5375 5376if test "x$enable_ipv6" != "xno"; then 5377 5378$as_echo "#define NETSNMP_ENABLE_IPV6 1" >>confdefs.h 5379 5380fi 5381 5382 5383# Check whether --with-logfile was given. 5384if test "${with_logfile+set}" = set; then : 5385 withval=$with_logfile; ac_cv_user_prompt_NETSNMP_LOGFILE="$with_logfile" 5386fi 5387 5388 # Check whether --enable-logfile was given. 5389if test "${enable_logfile+set}" = set; then : 5390 enableval=$enable_logfile; as_fn_error $? "Invalid option. Use --with-logfile/--without-logfile instead" "$LINENO" 5 5391fi 5392 5393if test "$ac_cv_user_prompt_NETSNMP_LOGFILE" = "no"; then 5394 ac_cv_user_prompt_NETSNMP_LOGFILE="none" 5395fi 5396 5397# Check whether --enable-usmUser-uses-default-auth-priv was given. 5398if test "${enable_usmUser_uses_default_auth_priv+set}" = set; then : 5399 enableval=$enable_usmUser_uses_default_auth_priv; if test "x$enable_usmUser_uses_default_auth_priv" = "xyes"; then 5400 5401$as_echo "#define NETSNMP_FORCE_SYSTEM_V3_AUTHPRIV 1" >>confdefs.h 5402 5403 fi 5404fi 5405 5406 5407# Check whether --with-usmUser-uses-default-auth-priv was given. 5408if test "${with_usmUser_uses_default_auth_priv+set}" = set; then : 5409 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 5410fi 5411 5412 5413# Check whether --enable-daemons-syslog-as-default was given. 5414if test "${enable_daemons_syslog_as_default+set}" = set; then : 5415 enableval=$enable_daemons_syslog_as_default; if test "x$enable_daemons_syslog_as_default" = "xyes"; then 5416 5417$as_echo "#define NETSNMP_DAEMONS_DEFAULT_LOG_SYSLOG 1" >>confdefs.h 5418 5419 fi 5420fi 5421 5422 5423# Check whether --with-daemons-syslog-as-default was given. 5424if test "${with_daemons_syslog_as_default+set}" = set; then : 5425 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 5426fi 5427 5428 5429 5430# Check whether --with-persistent-directory was given. 5431if test "${with_persistent_directory+set}" = set; then : 5432 withval=$with_persistent_directory; ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY="$with_persistent_directory" 5433fi 5434 5435 # Check whether --enable-persistent-directory was given. 5436if test "${enable_persistent_directory+set}" = set; then : 5437 enableval=$enable_persistent_directory; as_fn_error $? "Invalid option. Use --with-persistent-directory/--without-persistent-directory instead" "$LINENO" 5 5438fi 5439 5440 5441 5442# Check whether --with-persistent-mask was given. 5443if test "${with_persistent_mask+set}" = set; then : 5444 withval=$with_persistent_mask; if test `expr "X$withval" : 'X[0-7]*$'` -eq 4 ; then 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using persistent mask $withval" >&5 5446$as_echo "using persistent mask $withval" >&6; } 5447 withval="0$withval" 5448 else 5449 as_fn_error $? "Please provide a three digit octal persistent mask value" "$LINENO" 5 5450 fi 5451else 5452 withval=077 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default persistent mask $withval" >&5 5454$as_echo "using default persistent mask $withval" >&6; } 5455fi 5456 5457 # Check whether --enable-persistent-mask was given. 5458if test "${enable_persistent_mask+set}" = set; then : 5459 enableval=$enable_persistent_mask; as_fn_error $? "Invalid option. Use --with-persistent-mask/--without-persistent-mask instead" "$LINENO" 5 5460fi 5461 5462 5463cat >>confdefs.h <<_ACEOF 5464#define NETSNMP_PERSISTENT_MASK $withval 5465_ACEOF 5466 5467 5468 5469# Check whether --with-copy_persistent_files was given. 5470if test "${with_copy_persistent_files+set}" = set; then : 5471 withval=$with_copy_persistent_files; ac_cv_user_prompt_COPY_PERSISTENT_FILES="$with_copy_persistent_files" 5472fi 5473 5474 # Check whether --enable-copy_persistent_files was given. 5475if test "${enable_copy_persistent_files+set}" = set; then : 5476 enableval=$enable_copy_persistent_files; as_fn_error $? "Invalid option. Use --with-copy_persistent_files/--without-copy_persistent_files instead" "$LINENO" 5 5477fi 5478 5479 5480default_temp_file_pattern="/tmp/snmpdXXXXXX" 5481 5482# Check whether --with-temp-file-pattern was given. 5483if test "${with_temp_file_pattern+set}" = set; then : 5484 withval=$with_temp_file_pattern; if test `expr "X$withval" : ".*XXXXXX$"` -ne 0 ; then 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using temporary file pattern $withval" >&5 5486$as_echo "using temporary file pattern $withval" >&6; } 5487 else 5488 as_fn_error $? "temporary file pattens must end with 6 X's" "$LINENO" 5 5489 fi 5490else 5491 withval="$default_temp_file_pattern" 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default temporary file pattern $withval" >&5 5493$as_echo "using default temporary file pattern $withval" >&6; } 5494fi 5495 5496 # Check whether --enable-temp-file-pattern was given. 5497if test "${enable_temp_file_pattern+set}" = set; then : 5498 enableval=$enable_temp_file_pattern; as_fn_error $? "Invalid option. Use --with-temp-file-pattern/--without-temp-file-pattern instead" "$LINENO" 5 5499fi 5500 5501 5502cat >>confdefs.h <<_ACEOF 5503#define NETSNMP_TEMP_FILE_PATTERN "$withval" 5504_ACEOF 5505 5506 5507 5508## 5509# Project: Library: Version configuration 5510## 5511 5512SNMP_VERSIONS="" 5513# Check whether --enable-snmpv1 was given. 5514if test "${enable_snmpv1+set}" = set; then : 5515 enableval=$enable_snmpv1; 5516fi 5517 5518 5519# Check whether --with-snmpv1 was given. 5520if test "${with_snmpv1+set}" = set; then : 5521 withval=$with_snmpv1; as_fn_error $? "Invalid option. Use --enable-snmpv1/--disable-snmpv1 instead" "$LINENO" 5 5522fi 5523 5524if test "x$enable_snmpv1" = "xno"; then 5525 5526$as_echo "#define NETSNMP_DISABLE_SNMPV1 1" >>confdefs.h 5527 5528else 5529 SNMP_VERSIONS="$SNMP_VERSIONS 1" 5530fi 5531 5532# Check whether --enable-snmpv2c was given. 5533if test "${enable_snmpv2c+set}" = set; then : 5534 enableval=$enable_snmpv2c; 5535fi 5536 5537 5538# Check whether --with-snmpv2c was given. 5539if test "${with_snmpv2c+set}" = set; then : 5540 withval=$with_snmpv2c; as_fn_error $? "Invalid option. Use --enable-snmpv2c/--disable-snmpv2c instead" "$LINENO" 5 5541fi 5542 5543if test "x$enable_snmpv2c" = "xno"; then 5544 5545$as_echo "#define NETSNMP_DISABLE_SNMPV2C 1" >>confdefs.h 5546 5547else 5548 SNMP_VERSIONS="$SNMP_VERSIONS 2c" 5549fi 5550 5551SNMP_VERSIONS="$SNMP_VERSIONS 3" 5552 5553 cat >> configure-summary << EOF 5554 SNMP Versions Supported: $SNMP_VERSIONS 5555EOF 5556 5557 5558 5559# Check whether --with-default-snmp-version was given. 5560if test "${with_default_snmp_version+set}" = set; then : 5561 withval=$with_default_snmp_version; ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION="$with_default_snmp_version" 5562fi 5563 5564 # Check whether --enable-default-snmp-version was given. 5565if test "${enable_default_snmp_version+set}" = set; then : 5566 enableval=$enable_default_snmp_version; as_fn_error $? "Invalid option. Use --with-default-snmp-version/--without-default-snmp-version instead" "$LINENO" 5 5567fi 5568 5569 5570# we test this now and later as well. we test it now so configure can die 5571# early on with an error rather than waiting till the end of the script. 5572case "${ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION-3}" in 5573 [123]) ;; 5574 2c) ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION=2 ;; 5575 *) 5576 as_fn_error $? "Illegal version number. Only 1, 2 (for SNMPv2c) and 3 are supported." "$LINENO" 5 5577 ;; 5578esac 5579 5580 5581## 5582# Project: Library: Transport modules 5583## 5584 5585 5586# Check whether --with-transports was given. 5587if test "${with_transports+set}" = set; then : 5588 withval=$with_transports; 5589fi 5590 5591 5592# Check whether --with-out_transports was given. 5593if test "${with_out_transports+set}" = set; then : 5594 withval=$with_out_transports; 5595fi 5596 5597 5598# 5599# Catch common mistakes in transport options 5600# 5601 5602# Check whether --with-transport was given. 5603if test "${with_transport+set}" = set; then : 5604 withval=$with_transport; as_fn_error $? "Invalid option. Use --with-transports/--without-transports instead" "$LINENO" 5 5605fi 5606 5607 5608# Check whether --with-out-transport was given. 5609if test "${with_out_transport+set}" = set; then : 5610 withval=$with_out_transport; as_fn_error $? "Invalid option. Use --with-out-transports/--without-out-transports instead" "$LINENO" 5 5611fi 5612 5613 5614 5615## 5616# Project: Library: Security modules 5617## 5618 5619 5620# Check whether --with-security-modules was given. 5621if test "${with_security_modules+set}" = set; then : 5622 withval=$with_security_modules; 5623fi 5624 5625 # Check whether --enable-security-modules was given. 5626if test "${enable_security_modules+set}" = set; then : 5627 enableval=$enable_security_modules; as_fn_error $? "Invalid option. Use --with-security-modules/--without-security-modules instead" "$LINENO" 5 5628fi 5629 5630 5631 5632# Check whether --with-out-security-modules was given. 5633if test "${with_out_security_modules+set}" = set; then : 5634 withval=$with_out_security_modules; 5635fi 5636 5637 # Check whether --enable-out-security-modules was given. 5638if test "${enable_out_security_modules+set}" = set; then : 5639 enableval=$enable_out_security_modules; as_fn_error $? "Invalid option. Use --with-out-security-modules/--without-out-security-modules instead" "$LINENO" 5 5640fi 5641 5642 5643 5644## 5645# Project: Library: Developer-related settings 5646## 5647 5648# Check whether --enable-debugging was given. 5649if test "${enable_debugging+set}" = set; then : 5650 enableval=$enable_debugging; $as_echo "#define NETSNMP_ALWAYS_DEBUG 1" >>confdefs.h 5651 5652fi 5653 5654 5655# Check whether --with-debugging was given. 5656if test "${with_debugging+set}" = set; then : 5657 withval=$with_debugging; as_fn_error $? "Invalid option. Use --enable-debugging/--disable-debugging instead" "$LINENO" 5 5658fi 5659 5660if test "x$enable_debugging" = "xno"; then 5661 $as_echo "#define NETSNMP_NO_DEBUGGING 1" >>confdefs.h 5662 5663fi 5664 5665# Check whether --enable-developer was given. 5666if test "${enable_developer+set}" = set; then : 5667 enableval=$enable_developer; if test "$enableval" = yes ; then 5668 developer="yes" 5669 elif test "$enableval" != no ; then 5670 as_fn_error $? "Please use --enable/--disable-developer" "$LINENO" 5 5671 else 5672 developer="no" 5673 fi 5674fi 5675 5676 5677# Check whether --with-developer was given. 5678if test "${with_developer+set}" = set; then : 5679 withval=$with_developer; as_fn_error $? "Invalid option. Use --enable-developer/--disable-developer instead" "$LINENO" 5 5680fi 5681 5682 5683# Check whether --enable-testing-code was given. 5684if test "${enable_testing_code+set}" = set; then : 5685 enableval=$enable_testing_code; if test "$enableval" = yes ; then 5686 5687$as_echo "#define NETSNMP_ENABLE_TESTING_CODE 1" >>confdefs.h 5688 5689 elif test "$enableval" != no ; then 5690 as_fn_error $? "Please use --enable/--disable-testing-code" "$LINENO" 5 5691 fi 5692fi 5693 5694 5695# Check whether --with-testing-code was given. 5696if test "${with_testing_code+set}" = set; then : 5697 withval=$with_testing_code; as_fn_error $? "Invalid option. Use --enable-testing-code/--disable-testing-code instead" "$LINENO" 5 5698fi 5699 5700 5701# Check whether --enable-reentrant was given. 5702if test "${enable_reentrant+set}" = set; then : 5703 enableval=$enable_reentrant; if test "$enableval" = yes -o "$enableval" = no ; then 5704 with_res_locks="$enableval" 5705 else 5706 as_fn_error $? "Please use --enable/--disable-reentrant" "$LINENO" 5 5707 fi 5708else 5709 with_res_locks="no" 5710fi 5711 5712 5713# Check whether --with-reentrant was given. 5714if test "${with_reentrant+set}" = set; then : 5715 withval=$with_reentrant; as_fn_error $? "Invalid option. Use --enable-reentrant/--disable-reentrant instead" "$LINENO" 5 5716fi 5717 5718 5719# Check whether --enable-deprecated was given. 5720if test "${enable_deprecated+set}" = set; then : 5721 enableval=$enable_deprecated; 5722fi 5723 5724 5725# Check whether --with-deprecated was given. 5726if test "${with_deprecated+set}" = set; then : 5727 withval=$with_deprecated; as_fn_error $? "Invalid option. Use --enable-deprecated/--disable-deprecated instead" "$LINENO" 5 5728fi 5729 5730if test "$enable_deprecated" = no ; then 5731 5732$as_echo "#define NETSNMP_NO_DEPRECATED_FUNCTIONS 1" >>confdefs.h 5733 5734fi 5735 5736 5737 5738## 5739# Project: Agent configuration settings 5740## 5741 5742 5743# Check whether --with-root-access was given. 5744if test "${with_root_access+set}" = set; then : 5745 withval=$with_root_access; 5746fi 5747 5748 # Check whether --enable-root-access was given. 5749if test "${enable_root_access+set}" = set; then : 5750 enableval=$enable_root_access; as_fn_error $? "Invalid option. Use --with-root-access/--without-root-access instead" "$LINENO" 5 5751fi 5752 5753# Only define if specifically chosen as --without (i.e., default to true). 5754if test "x$with_root_access" = "xno"; then 5755 5756$as_echo "#define NETSNMP_NO_ROOT_ACCESS 1" >>confdefs.h 5757 5758fi 5759 5760 5761# Check whether --with-kmem-usage was given. 5762if test "${with_kmem_usage+set}" = set; then : 5763 withval=$with_kmem_usage; 5764fi 5765 5766 # Check whether --enable-kmem-usage was given. 5767if test "${enable_kmem_usage+set}" = set; then : 5768 enableval=$enable_kmem_usage; as_fn_error $? "Invalid option. Use --with-kmem-usage/--without-kmem-usage instead" "$LINENO" 5 5769fi 5770 5771# Only define if specifically chosen as --without (i.e., default to true). 5772if test "x$with_kmem_usage" = "xno"; then 5773 5774$as_echo "#define NETSNMP_NO_KMEM_USAGE 1" >>confdefs.h 5775 5776fi 5777 5778 5779# Check whether --with-dummy-values was given. 5780if test "${with_dummy_values+set}" = set; then : 5781 withval=$with_dummy_values; 5782fi 5783 5784 # Check whether --enable-dummy-values was given. 5785if test "${enable_dummy_values+set}" = set; then : 5786 enableval=$enable_dummy_values; as_fn_error $? "Invalid option. Use --with-dummy-values/--without-dummy-values instead" "$LINENO" 5 5787fi 5788 5789# Define unless specifically suppressed (i.e., option defaults to false). 5790if test "x$with_dummy_values" != "xyes"; then 5791 5792$as_echo "#define NETSNMP_NO_DUMMY_VALUES 1" >>confdefs.h 5793 5794fi 5795 5796 5797# Check whether --with-systemd was given. 5798if test "${with_systemd+set}" = set; then : 5799 withval=$with_systemd; 5800fi 5801 5802 # Check whether --enable-systemd was given. 5803if test "${enable_systemd+set}" = set; then : 5804 enableval=$enable_systemd; as_fn_error $? "Invalid option. Use --with-systemd/--without-systemd instead" "$LINENO" 5 5805fi 5806 5807# Define unless specifically suppressed (i.e., option defaults to false). 5808if test "x$with_systemd" != "xyes"; then 5809 5810$as_echo "#define NETSNMP_NO_SYSTEMD 1" >>confdefs.h 5811 5812fi 5813 5814# Check whether --enable-set-support was given. 5815if test "${enable_set_support+set}" = set; then : 5816 enableval=$enable_set_support; 5817fi 5818 5819 5820# Check whether --with-set-support was given. 5821if test "${with_set_support+set}" = set; then : 5822 withval=$with_set_support; as_fn_error $? "Invalid option. Use --enable-set-support/--disable-set-support instead" "$LINENO" 5 5823fi 5824 5825if test "x$enable_set_support" = "xno"; then 5826 5827$as_echo "#define NETSNMP_DISABLE_SET_SUPPORT 1" >>confdefs.h 5828 5829fi 5830 5831 5832 5833# Check whether --with-sys_contact was given. 5834if test "${with_sys_contact+set}" = set; then : 5835 withval=$with_sys_contact; ac_cv_user_prompt_NETSNMP_SYS_CONTACT="$with_sys_contact" 5836fi 5837 5838 # Check whether --enable-sys_contact was given. 5839if test "${enable_sys_contact+set}" = set; then : 5840 enableval=$enable_sys_contact; as_fn_error $? "Invalid option. Use --with-sys_contact/--without-sys_contact instead" "$LINENO" 5 5841fi 5842 5843 5844 5845# Check whether --with-sys_location was given. 5846if test "${with_sys_location+set}" = set; then : 5847 withval=$with_sys_location; ac_cv_user_prompt_NETSNMP_SYS_LOC="$with_sys_location" 5848fi 5849 5850 # Check whether --enable-sys_location was given. 5851if test "${enable_sys_location+set}" = set; then : 5852 enableval=$enable_sys_location; as_fn_error $? "Invalid option. Use --with-sys_location/--without-sys_location instead" "$LINENO" 5 5853fi 5854 5855 5856 5857 5858## 5859# Project: Agent: Extensibility configuration 5860## 5861 5862# Check whether --enable-local-smux was given. 5863if test "${enable_local_smux+set}" = set; then : 5864 enableval=$enable_local_smux; if test "x$enable_local_smux" = "xyes"; then 5865 5866$as_echo "#define NETSNMP_ENABLE_LOCAL_SMUX 1" >>confdefs.h 5867 5868 fi 5869fi 5870 5871 5872# Check whether --with-local-smux was given. 5873if test "${with_local_smux+set}" = set; then : 5874 withval=$with_local_smux; as_fn_error $? "Invalid option. Use --enable-local-smux/--disable-local-smux instead" "$LINENO" 5 5875fi 5876 5877 5878# Check whether --enable-agentx-dom-sock-only was given. 5879if test "${enable_agentx_dom_sock_only+set}" = set; then : 5880 enableval=$enable_agentx_dom_sock_only; 5881$as_echo "#define NETSNMP_AGENTX_DOM_SOCK_ONLY 1" >>confdefs.h 5882 5883fi 5884 5885 5886# Check whether --with-agentx-dom-sock-only was given. 5887if test "${with_agentx_dom_sock_only+set}" = set; then : 5888 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 5889fi 5890 5891 5892# Check whether --enable-snmptrapd-subagent was given. 5893if test "${enable_snmptrapd_subagent+set}" = set; then : 5894 enableval=$enable_snmptrapd_subagent; 5895fi 5896 5897 5898# Check whether --with-snmptrapd-subagent was given. 5899if test "${with_snmptrapd_subagent+set}" = set; then : 5900 withval=$with_snmptrapd_subagent; as_fn_error $? "Invalid option. Use --enable-snmptrapd-subagent/--disable-snmptrapd-subagent instead" "$LINENO" 5 5901fi 5902 5903if test "x$enable_snmptrapd_subagent" = "xno"; then 5904 5905$as_echo "#define NETSNMP_SNMPTRAPD_DISABLE_AGENTX 1" >>confdefs.h 5906 5907fi 5908 5909default_agentx_socket="/var/agentx/master" 5910 5911# Check whether --with-agentx-socket was given. 5912if test "${with_agentx_socket+set}" = set; then : 5913 withval=$with_agentx_socket; 5914 if test "$withval" = yes; then 5915 as_fn_error $? " Please provide a full path " "$LINENO" 5; 5916 fi 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AgentX socket $withval" >&5 5918$as_echo "using AgentX socket $withval" >&6; } 5919 5920else 5921 5922 withval=$default_agentx_socket 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default AgentX socket $default_agentx_socket" >&5 5924$as_echo "using default AgentX socket $default_agentx_socket" >&6; } 5925 5926fi 5927 5928 # Check whether --enable-agentx-socket was given. 5929if test "${enable_agentx_socket+set}" = set; then : 5930 enableval=$enable_agentx_socket; as_fn_error $? "Invalid option. Use --with-agentx-socket/--without-agentx-socket instead" "$LINENO" 5 5931fi 5932 5933 5934cat >>confdefs.h <<_ACEOF 5935#define NETSNMP_AGENTX_SOCKET "$withval" 5936_ACEOF 5937 5938 5939# 5940# feature addition/removal and minimialist support 5941# 5942FEATURE_ADD_FLAGS="" 5943 5944# Check whether --with-features was given. 5945if test "${with_features+set}" = set; then : 5946 withval=$with_features; 5947 if test "$withval" = yes; then 5948 as_fn_error $? " Please provide a list of features " "$LINENO" 5; 5949 fi 5950 FEATURE_ADD_FLAGS="--add $withval" 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding in features: $withval" >&5 5952$as_echo "adding in features: $withval" >&6; } 5953 5954fi 5955 5956 # Check whether --enable-features was given. 5957if test "${enable_features+set}" = set; then : 5958 enableval=$enable_features; as_fn_error $? "Invalid option. Use --with-features/--without-features instead" "$LINENO" 5 5959fi 5960 5961 5962 5963 5964FEATURE_REMOVE_FLAGS="" 5965 5966# Check whether --with-out-features was given. 5967if test "${with_out_features+set}" = set; then : 5968 withval=$with_out_features; 5969 if test "$withval" = yes; then 5970 as_fn_error $? " Please provide a list of features " "$LINENO" 5; 5971 fi 5972 FEATURE_REMOVE_FLAGS="--remove $withval" 5973 FEATURETARGS="features" 5974 5975$as_echo "#define NETSNMP_MINIMAL_CODE 1" >>confdefs.h 5976 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: removing features: $withval" >&5 5978$as_echo "removing features: $withval" >&6; } 5979 5980fi 5981 5982 # Check whether --enable-out-features was given. 5983if test "${enable_out_features+set}" = set; then : 5984 enableval=$enable_out_features; as_fn_error $? "Invalid option. Use --with-out-features/--without-out-features instead" "$LINENO" 5 5985fi 5986 5987 5988 5989 5990# Catch common mistakes 5991 5992# Check whether --with-feature was given. 5993if test "${with_feature+set}" = set; then : 5994 withval=$with_feature; as_fn_error $? "Invalid option. Use --with-features/--without-features instead" "$LINENO" 5 5995fi 5996 5997 5998# Check whether --with-out-feature was given. 5999if test "${with_out_feature+set}" = set; then : 6000 withval=$with_out_feature; as_fn_error $? "Invalid option. Use --with-out-features/--without-out-features instead" "$LINENO" 5 6001fi 6002 6003 6004FEATURETARGS="" 6005# Check whether --enable-minimalist was given. 6006if test "${enable_minimalist+set}" = set; then : 6007 enableval=$enable_minimalist; 6008fi 6009 6010 6011# Check whether --with-minimalist was given. 6012if test "${with_minimalist+set}" = set; then : 6013 withval=$with_minimalist; as_fn_error $? "Invalid option. Use --enable-minimalist/--disable-minimalist instead" "$LINENO" 5 6014fi 6015 6016if test "x$enable_minimalist" = "xyes"; then 6017 # we'll assume the mini agent is desired here as well 6018 mini_agent="yes" 6019 FEATURETARGS="features" 6020 6021 # needed to bootstrap later checks 6022 echo "" > include/net-snmp/feature-details.h 6023 6024$as_echo "#define NETSNMP_MINIMAL_CODE 1" >>confdefs.h 6025 6026else 6027 FEATUREHEADERS="" 6028fi 6029 6030# Check whether --with-minimalist was given. 6031if test "${with_minimalist+set}" = set; then : 6032 withval=$with_minimalist; as_fn_error $? "Invalid option. Use --enable-minimalist/--disable-minimalist instead" "$LINENO" 5 6033fi 6034 6035 6036 6037 6038# Check whether --enable-notify-only was given. 6039if test "${enable_notify_only+set}" = set; then : 6040 enableval=$enable_notify_only; 6041fi 6042 6043 6044# Check whether --with-notify-only was given. 6045if test "${with_notify_only+set}" = set; then : 6046 withval=$with_notify_only; as_fn_error $? "Invalid option. Use --enable-notify-only/--disable-notify-only instead" "$LINENO" 5 6047fi 6048 6049if test "x$enable_notify_only" = "xyes"; then 6050 6051$as_echo "#define NETSNMP_NOTIFY_ONLY 1" >>confdefs.h 6052 6053fi 6054 6055# Check whether --with-notify-only was given. 6056if test "${with_notify_only+set}" = set; then : 6057 withval=$with_notify_only; as_fn_error $? "Invalid option. Use --enable-notify-only/--disable-notify-only instead" "$LINENO" 5 6058fi 6059 6060# Check whether --enable-notifyonly was given. 6061if test "${enable_notifyonly+set}" = set; then : 6062 enableval=$enable_notifyonly; as_fn_error $? "Invalid option. Use --enable-notify-only/--disable-notify-only instead" "$LINENO" 5 6063fi 6064 6065 6066# Check whether --enable-no-listen was given. 6067if test "${enable_no_listen+set}" = set; then : 6068 enableval=$enable_no_listen; 6069fi 6070 6071 6072# Check whether --with-no-listen was given. 6073if test "${with_no_listen+set}" = set; then : 6074 withval=$with_no_listen; as_fn_error $? "Invalid option. Use --enable-no-listen/--disable-no-listen instead" "$LINENO" 5 6075fi 6076 6077if test "x$enable_no_listen" = "xyes" -o "x$enable_notify_only" = "xyes"; then 6078 enable_no_listen="yes" 6079 6080$as_echo "#define NETSNMP_NO_LISTEN_SUPPORT 1" >>confdefs.h 6081 6082fi 6083 6084# Check whether --with-no-listen was given. 6085if test "${with_no_listen+set}" = set; then : 6086 withval=$with_no_listen; as_fn_error $? "Invalid option. Use --enable-no-listen/--disable-no-listen instead" "$LINENO" 5 6087fi 6088 6089# Check whether --enable-nolisten was given. 6090if test "${enable_nolisten+set}" = set; then : 6091 enableval=$enable_nolisten; as_fn_error $? "Invalid option. Use --enable-no-listen/--disable-no-listen instead" "$LINENO" 5 6092fi 6093 6094 6095# Check whether --enable-read-only was given. 6096if test "${enable_read_only+set}" = set; then : 6097 enableval=$enable_read_only; 6098fi 6099 6100 6101# Check whether --with-read-only was given. 6102if test "${with_read_only+set}" = set; then : 6103 withval=$with_read_only; as_fn_error $? "Invalid option. Use --enable-read-only/--disable-read-only instead" "$LINENO" 5 6104fi 6105 6106if test "x$enable_read_only" = "xyes" -o "x$enable_notify_only" = "xyes" ; then 6107 enable_read_only="yes" 6108 6109$as_echo "#define NETSNMP_NO_WRITE_SUPPORT 1" >>confdefs.h 6110 6111fi 6112 6113# Check whether --with-read-only was given. 6114if test "${with_read_only+set}" = set; then : 6115 withval=$with_read_only; as_fn_error $? "Invalid option. Use --enable-read-only/--disable-read-only instead" "$LINENO" 5 6116fi 6117 6118# Check whether --enable-readonly was given. 6119if test "${enable_readonly+set}" = set; then : 6120 enableval=$enable_readonly; as_fn_error $? "Invalid option. Use --enable-read-only/--disable-read-only instead" "$LINENO" 5 6121fi 6122 6123 6124 6125## 6126# Project: Agent: MIB module configuration 6127## 6128 6129# Check whether --enable-mini_agent was given. 6130if test "${enable_mini_agent+set}" = set; then : 6131 enableval=$enable_mini_agent; 6132fi 6133 6134 6135# Check whether --with-mini_agent was given. 6136if test "${with_mini_agent+set}" = set; then : 6137 withval=$with_mini_agent; as_fn_error $? "Invalid option. Use --enable-mini_agent/--disable-mini_agent instead" "$LINENO" 5 6138fi 6139 6140if test "x$enable_mini_agent" = "xyes"; then 6141 mini_agent="yes" 6142else 6143 mini_agent="no" 6144fi 6145 6146# Check whether --with-miniagent was given. 6147if test "${with_miniagent+set}" = set; then : 6148 withval=$with_miniagent; as_fn_error $? "Invalid option. Use --enable-mini-agent/--disable-mini-agent instead" "$LINENO" 5 6149fi 6150 6151# Check whether --enable-miniagent was given. 6152if test "${enable_miniagent+set}" = set; then : 6153 enableval=$enable_miniagent; as_fn_error $? "Invalid option. Use --enable-mini-agent/--disable-mini-agent instead" "$LINENO" 5 6154fi 6155 6156 6157 6158 6159 6160# Check whether --enable-mfd-rewrites was given. 6161if test "${enable_mfd_rewrites+set}" = set; then : 6162 enableval=$enable_mfd_rewrites; 6163fi 6164 6165 6166# Check whether --with-mfd-rewrites was given. 6167if test "${with_mfd_rewrites+set}" = set; then : 6168 withval=$with_mfd_rewrites; as_fn_error $? "Invalid option. Use --enable-mfd-rewrites/--disable-mfd-rewrites instead" "$LINENO" 5 6169fi 6170 6171if test "x$enable_mfd_rewrites" = "xyes"; then 6172 6173$as_echo "#define NETSNMP_ENABLE_MFD_REWRITES 1" >>confdefs.h 6174 6175fi 6176 6177 6178 6179# Check whether --with-mib_modules was given. 6180if test "${with_mib_modules+set}" = set; then : 6181 withval=$with_mib_modules; 6182fi 6183 6184 # Check whether --enable-mib_modules was given. 6185if test "${enable_mib_modules+set}" = set; then : 6186 enableval=$enable_mib_modules; as_fn_error $? "Invalid option. Use --with-mib_modules/--without-mib_modules instead" "$LINENO" 5 6187fi 6188 6189 6190 6191# Check whether --with-out_mib_modules was given. 6192if test "${with_out_mib_modules+set}" = set; then : 6193 withval=$with_out_mib_modules; 6194fi 6195 6196 # Check whether --enable-out_mib_modules was given. 6197if test "${enable_out_mib_modules+set}" = set; then : 6198 enableval=$enable_out_mib_modules; as_fn_error $? "Invalid option. Use --with-out_mib_modules/--without-out_mib_modules instead" "$LINENO" 5 6199fi 6200 6201 6202 6203# 6204# Catch common mistakes in configure options 6205# 6206 6207# Check whether --with-mib-module was given. 6208if test "${with_mib_module+set}" = set; then : 6209 withval=$with_mib_module; as_fn_error $? "Invalid option. Use --with-mib-modules/--without-mib-modules instead" "$LINENO" 5 6210fi 6211 6212 6213# Check whether --with-module was given. 6214if test "${with_module+set}" = set; then : 6215 withval=$with_module; as_fn_error $? "Invalid option. Use --with-mib-modules/--without-mib-modules instead" "$LINENO" 5 6216fi 6217 6218 6219# Check whether --with-modules was given. 6220if test "${with_modules+set}" = set; then : 6221 withval=$with_modules; as_fn_error $? "Invalid option. Use --with-mib-modules/--without-mib-modules instead" "$LINENO" 5 6222fi 6223 6224 6225 6226# Check whether --with-out-mib-module was given. 6227if test "${with_out_mib_module+set}" = set; then : 6228 withval=$with_out_mib_module; as_fn_error $? "Invalid option. Use --with-out-mib-modules/--without-out-mib-modules instead" "$LINENO" 5 6229fi 6230 6231 6232# Check whether --with-out-module was given. 6233if test "${with_out_module+set}" = set; then : 6234 withval=$with_out_module; as_fn_error $? "Invalid option. Use --with-out-mib-modules/--without-out-mib-modules instead" "$LINENO" 5 6235fi 6236 6237 6238# Check whether --with-out-modules was given. 6239if test "${with_out_modules+set}" = set; then : 6240 withval=$with_out_modules; as_fn_error $? "Invalid option. Use --with-out-mib-modules/--without-out-mib-modules instead" "$LINENO" 5 6241fi 6242 6243 6244 6245## 6246# Project: Enterprise settings (? Agent/Library/Both?) 6247## 6248 6249 6250# Check whether --with-enterprise-oid was given. 6251if test "${with_enterprise_oid+set}" = set; then : 6252 withval=$with_enterprise_oid; 6253 if test "$withval" = yes; then 6254 as_fn_error $? " Please provide a value for the enterprise number " "$LINENO" 5; 6255 fi 6256 cat >>confdefs.h <<_ACEOF 6257#define NETSNMP_ENTERPRISE_OID $withval 6258_ACEOF 6259 6260 ent_oid="1,3,6,1,4,1,$withval" 6261 cat >>confdefs.h <<_ACEOF 6262#define NETSNMP_ENTERPRISE_MIB $ent_oid 6263_ACEOF 6264 6265 ent_dot_oid="1.3.6.1.4.1.$withval" 6266 cat >>confdefs.h <<_ACEOF 6267#define NETSNMP_ENTERPRISE_DOT_MIB $ent_dot_oid 6268_ACEOF 6269 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using enterprise number $withval" >&5 6271$as_echo "using enterprise number $withval" >&6; } 6272 6273else 6274 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default \"enterprise.net-snmp\"" >&5 6276$as_echo "using default \"enterprise.net-snmp\"" >&6; } 6277 6278fi 6279 6280 # Check whether --enable-enterprise-oid was given. 6281if test "${enable_enterprise_oid+set}" = set; then : 6282 enableval=$enable_enterprise_oid; as_fn_error $? "Invalid option. Use --with-enterprise-oid/--without-enterprise-oid instead" "$LINENO" 5 6283fi 6284 6285 6286 6287# Check whether --with-enterprise-sysoid was given. 6288if test "${with_enterprise_sysoid+set}" = set; then : 6289 withval=$with_enterprise_sysoid; 6290 if test "$withval" = yes; then 6291 as_fn_error $? " Please provide a base OID value " "$LINENO" 5; 6292 fi 6293 sys_oid=`echo "$withval" | sed 's/^\.//' | sed 's/\./\,/g'` 6294 cat >>confdefs.h <<_ACEOF 6295#define NETSNMP_SYSTEM_MIB $sys_oid 6296_ACEOF 6297 6298 sys_dot_oid=`echo "$withval" | sed 's/^\.//'` 6299 cat >>confdefs.h <<_ACEOF 6300#define NETSNMP_SYSTEM_DOT_MIB $sys_dot_oid 6301_ACEOF 6302 6303 sysoid_len=`echo "$withval" | sed 's/^\.//g' | awk -F\. '{ print NF }'` 6304 cat >>confdefs.h <<_ACEOF 6305#define NETSNMP_SYSTEM_DOT_MIB_LENGTH $sysoid_len 6306_ACEOF 6307 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using enterprise sysOID $withval ...." >&5 6309$as_echo "using enterprise sysOID $withval ...." >&6; } 6310 6311else 6312 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default enterprise sysOID \"NET-SNMP-MIB::netSnmpAgentOIDs...\"" >&5 6314$as_echo "using default enterprise sysOID \"NET-SNMP-MIB::netSnmpAgentOIDs...\"" >&6; } 6315 6316fi 6317 6318 # Check whether --enable-enterprise-sysoid was given. 6319if test "${enable_enterprise_sysoid+set}" = set; then : 6320 enableval=$enable_enterprise_sysoid; as_fn_error $? "Invalid option. Use --with-enterprise-sysoid/--without-enterprise-sysoid instead" "$LINENO" 5 6321fi 6322 6323 6324 6325# Check whether --with-enterprise-notification-oid was given. 6326if test "${with_enterprise_notification_oid+set}" = set; then : 6327 withval=$with_enterprise_notification_oid; 6328 if test "$withval" = yes; then 6329 as_fn_error $? " Please provide a base OID value " "$LINENO" 5; 6330 fi 6331 notification_oid=`echo "$withval" | sed 's/^\.//' | sed 's/\./\,/g'` 6332 cat >>confdefs.h <<_ACEOF 6333#define NETSNMP_NOTIFICATION_MIB $notification_oid 6334_ACEOF 6335 6336 notification_dot_oid=`echo "$withval" | sed 's/^\.//'` 6337 cat >>confdefs.h <<_ACEOF 6338#define NETSNMP_NOTIFICATION_DOT_MIB $notification_dot_oid 6339_ACEOF 6340 6341 notificationoid_len=`echo "$withval" | sed 's/^\.//g' | awk -F\. '{ print NF }'` 6342 cat >>confdefs.h <<_ACEOF 6343#define NETSNMP_NOTIFICATION_DOT_MIB_LENGTH $notificationoid_len 6344_ACEOF 6345 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using enterprise notifications $withval" >&5 6347$as_echo "using enterprise notifications $withval" >&6; } 6348 6349else 6350 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default notifications \"NET-SNMP-MIB::netSnmpNotifications\"" >&5 6352$as_echo "using default notifications \"NET-SNMP-MIB::netSnmpNotifications\"" >&6; } 6353 6354fi 6355 6356 # Check whether --enable-enterprise-notification-oid was given. 6357if test "${enable_enterprise_notification_oid+set}" = set; then : 6358 enableval=$enable_enterprise_notification_oid; as_fn_error $? "Invalid option. Use --with-enterprise-notification-oid/--without-enterprise-notification-oid instead" "$LINENO" 5 6359fi 6360 6361 6362 6363## 6364# Project: Perl settings 6365## 6366 6367 6368# Check whether --with-perl-modules was given. 6369if test "${with_perl_modules+set}" = set; then : 6370 withval=$with_perl_modules; 6371 if test "$withval" = "no"; then 6372 install_perl="no" 6373 else 6374 install_perl="yes" 6375 if test "$withval" != "yes"; then 6376 PERLARGS="$withval" 6377 fi 6378 fi 6379 6380else 6381 install_perl="try" 6382fi 6383 6384 # Check whether --enable-perl-modules was given. 6385if test "${enable_perl_modules+set}" = set; then : 6386 enableval=$enable_perl_modules; as_fn_error $? "Invalid option. Use --with-perl-modules/--without-perl-modules instead" "$LINENO" 5 6387fi 6388 6389 6390# Check whether --enable-embedded-perl was given. 6391if test "${enable_embedded_perl+set}" = set; then : 6392 enableval=$enable_embedded_perl; embed_perl="$enableval" 6393else 6394 embed_perl="try" 6395fi 6396 6397 6398# Check whether --with-embedded-perl was given. 6399if test "${with_embedded_perl+set}" = set; then : 6400 withval=$with_embedded_perl; as_fn_error $? "Invalid option. Use --enable-embedded-perl/--disable-embedded-perl instead" "$LINENO" 5 6401fi 6402 6403 6404# Check whether --enable-perl-cc-checks was given. 6405if test "${enable_perl_cc_checks+set}" = set; then : 6406 enableval=$enable_perl_cc_checks; 6407fi 6408 6409 6410# Check whether --with-perl-cc-checks was given. 6411if test "${with_perl_cc_checks+set}" = set; then : 6412 withval=$with_perl_cc_checks; as_fn_error $? "Invalid option. Use --enable-perl-cc-checks/--disable-perl-cc-checks instead" "$LINENO" 5 6413fi 6414 6415 6416 6417## 6418# Project: Python settings 6419## 6420 6421 6422# Check whether --with-python-modules was given. 6423if test "${with_python_modules+set}" = set; then : 6424 withval=$with_python_modules; 6425 install_python="yes" 6426 if test "$withval" = "yes"; then 6427 PYTHONARGS="" 6428 elif test "$withval" = "no"; then 6429 PYTHONARGS="" 6430 install_python="no" 6431 else 6432 PYTHONARGS="$withval" 6433 fi 6434 6435else 6436 install_python="no" 6437fi 6438 6439 6440 6441## 6442# Project: Library settings 6443## 6444 6445 6446# Check whether --with-server-send-buf was given. 6447if test "${with_server_send_buf+set}" = set; then : 6448 withval=$with_server_send_buf; 6449 if test "$withval" = yes; then 6450 as_fn_error $? " Please provide a positive number for the server send buffer " "$LINENO" 5 6451 fi 6452 cat >>confdefs.h <<_ACEOF 6453#define NETSNMP_DEFAULT_SERVER_SEND_BUF $withval 6454_ACEOF 6455 6456else 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OS default send buffer size for server sockets" >&5 6458$as_echo "using OS default send buffer size for server sockets" >&6; } 6459fi 6460 6461 # Check whether --enable-server-send-buf was given. 6462if test "${enable_server_send_buf+set}" = set; then : 6463 enableval=$enable_server_send_buf; as_fn_error $? "Invalid option. Use --with-server-send-buf/--without-server-send-buf instead" "$LINENO" 5 6464fi 6465 6466 6467 6468# Check whether --with-server-recv-buf was given. 6469if test "${with_server_recv_buf+set}" = set; then : 6470 withval=$with_server_recv_buf; 6471 if test "$withval" = yes; then 6472 as_fn_error $? " Please provide a positive number for the server recv buffer " "$LINENO" 5 6473 fi 6474 cat >>confdefs.h <<_ACEOF 6475#define NETSNMP_DEFAULT_SERVER_RECV_BUF $withval 6476_ACEOF 6477 6478else 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OS default recv buffer size for server sockets" >&5 6480$as_echo "using OS default recv buffer size for server sockets" >&6; } 6481fi 6482 6483 # Check whether --enable-server-recv-buf was given. 6484if test "${enable_server_recv_buf+set}" = set; then : 6485 enableval=$enable_server_recv_buf; as_fn_error $? "Invalid option. Use --with-server-recv-buf/--without-server-recv-buf instead" "$LINENO" 5 6486fi 6487 6488 6489 6490# Check whether --with-client-send-buf was given. 6491if test "${with_client_send_buf+set}" = set; then : 6492 withval=$with_client_send_buf; 6493 if test "$withval" = yes; then 6494 as_fn_error $? " Please provide a positive number for the client send buffer " "$LINENO" 5 6495 fi 6496 cat >>confdefs.h <<_ACEOF 6497#define NETSNMP_DEFAULT_CLIENT_SEND_BUF $withval 6498_ACEOF 6499 6500else 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OS default send buffer size for client sockets" >&5 6502$as_echo "using OS default send buffer size for client sockets" >&6; } 6503fi 6504 6505 # Check whether --enable-client-send-buf was given. 6506if test "${enable_client_send_buf+set}" = set; then : 6507 enableval=$enable_client_send_buf; as_fn_error $? "Invalid option. Use --with-client-send-buf/--without-client-send-buf instead" "$LINENO" 5 6508fi 6509 6510 6511 6512# Check whether --with-client-recv-buf was given. 6513if test "${with_client_recv_buf+set}" = set; then : 6514 withval=$with_client_recv_buf; 6515 if test "$withval" = yes; then 6516 as_fn_error $? " Please provide a positive number for the client recv buffer " "$LINENO" 5 6517 fi 6518 cat >>confdefs.h <<_ACEOF 6519#define NETSNMP_DEFAULT_CLIENT_RECV_BUF $withval 6520_ACEOF 6521 6522else 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OS default recv buffer size for client sockets" >&5 6524$as_echo "using OS default recv buffer size for client sockets" >&6; } 6525fi 6526 6527 # Check whether --enable-client-recv-buf was given. 6528if test "${enable_client_recv_buf+set}" = set; then : 6529 enableval=$enable_client_recv_buf; as_fn_error $? "Invalid option. Use --with-client-recv-buf/--without-client-recv-buf instead" "$LINENO" 5 6530fi 6531 6532 6533## 6534# System: library settings (more) 6535## 6536 6537 6538# Check whether --with-elf was given. 6539if test "${with_elf+set}" = set; then : 6540 withval=$with_elf; 6541fi 6542 6543 # Check whether --enable-elf was given. 6544if test "${enable_elf+set}" = set; then : 6545 enableval=$enable_elf; as_fn_error $? "Invalid option. Use --with-elf/--without-elf instead" "$LINENO" 5 6546fi 6547 6548 6549 6550# Check whether --with-nl was given. 6551if test "${with_nl+set}" = set; then : 6552 withval=$with_nl; 6553fi 6554 6555 # Check whether --enable-nl was given. 6556if test "${enable_nl+set}" = set; then : 6557 enableval=$enable_nl; as_fn_error $? "Invalid option. Use --with-nl/--without-nl instead" "$LINENO" 5 6558fi 6559 6560 6561 6562# Check whether --with-libwrap was given. 6563if test "${with_libwrap+set}" = set; then : 6564 withval=$with_libwrap; 6565else 6566 with_libwrap="no" 6567fi 6568 6569 # Check whether --enable-libwrap was given. 6570if test "${enable_libwrap+set}" = set; then : 6571 enableval=$enable_libwrap; as_fn_error $? "Invalid option. Use --with-libwrap/--without-libwrap instead" "$LINENO" 5 6572fi 6573 6574 6575 6576# Check whether --with-zlib was given. 6577if test "${with_zlib+set}" = set; then : 6578 withval=$with_zlib; 6579else 6580 with_zlib="no" 6581fi 6582 6583 # Check whether --enable-zlib was given. 6584if test "${enable_zlib+set}" = set; then : 6585 enableval=$enable_zlib; as_fn_error $? "Invalid option. Use --with-zlib/--without-zlib instead" "$LINENO" 5 6586fi 6587 6588 6589 6590# Check whether --with-bzip2 was given. 6591if test "${with_bzip2+set}" = set; then : 6592 withval=$with_bzip2; 6593else 6594 with_bzip2="no" 6595fi 6596 6597 6598 6599# Check whether --with-mnttab was given. 6600if test "${with_mnttab+set}" = set; then : 6601 withval=$with_mnttab; 6602fi 6603 6604 # Check whether --enable-mnttab was given. 6605if test "${enable_mnttab+set}" = set; then : 6606 enableval=$enable_mnttab; as_fn_error $? "Invalid option. Use --with-mnttab/--without-mnttab instead" "$LINENO" 5 6607fi 6608 6609 6610## 6611# Project: mysql 6612## 6613 6614 6615# Check whether --with-mysql was given. 6616if test "${with_mysql+set}" = set; then : 6617 withval=$with_mysql; 6618fi 6619 6620 # Check whether --enable-mysql was given. 6621if test "${enable_mysql+set}" = set; then : 6622 enableval=$enable_mysql; as_fn_error $? "Invalid option. Use --with-mysql/--without-mysql instead" "$LINENO" 5 6623fi 6624 6625if test "x$with_mysql" = "xyes"; then 6626 6627$as_echo "#define NETSNMP_USE_MYSQL 1" >>confdefs.h 6628 6629fi 6630 6631## 6632# Protect against CFLAGS with -Werror which causes failures for some tests 6633# (e.g. it causes type mismatches in the AC_CV_FUNCS call) 6634## 6635noerr_CFLAGS="$CFLAGS" 6636CFLAGS=`echo $CFLAGS | sed 's/-Werror[^ ]*//g'` 6637CFLAGS_without_Werror=$CFLAGS 6638export CFLAGS 6639# -*- autoconf -*- 6640# 6641# Prompt for various bits of user information 6642# 6643 6644if 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 6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to prompt for values" >&5 6646$as_echo_n "checking whether to prompt for values... " >&6; } 6647if ${ac_cv_have_warned+:} false; then : 6648 $as_echo_n "(cached) " >&6 6649else 6650 6651if test "x$defaults" = "xno"; then 6652{ $as_echo "$as_me:${as_lineno-$LINENO}: 6653 6654 ************** Configuration Section ************** 6655 6656 You are about to be prompted with a series of questions. Answer 6657them carefully, as they determine how the SNMP agent and related 6658applications are to function. 6659 6660 After the configure script finishes, you can browse the newly 6661created net-snmp-config.h file for further - less important - parameters to 6662modify. Be careful if you re-run configure though, since net-snmp-config.h 6663will be overwritten. 6664 6665-Press return to continue- 6666" >&5 6667$as_echo "$as_me: 6668 6669 ************** Configuration Section ************** 6670 6671 You are about to be prompted with a series of questions. Answer 6672them carefully, as they determine how the SNMP agent and related 6673applications are to function. 6674 6675 After the configure script finishes, you can browse the newly 6676created net-snmp-config.h file for further - less important - parameters to 6677modify. Be careful if you re-run configure though, since net-snmp-config.h 6678will be overwritten. 6679 6680-Press return to continue- 6681" >&6;} 6682 6683read tmpinput <&7 6684ac_cv_have_warned="yes" 6685else 6686 ac_cv_have_warned="no" 6687fi 6688 6689fi 6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_warned" >&5 6691$as_echo "$ac_cv_have_warned" >&6; } 6692else 6693 ac_cv_have_warned="yes" 6694fi 6695 6696ME=`$WHOAMI` 6697if test -f /etc/resolv.conf; then 6698 LOC=`awk '/^domain/{loc=$NF}END{print loc}' /etc/resolv.conf` 6699fi 6700if test "x$LOC" = x; then 6701 LOC="@no.where" 6702fi 6703 6704 6705MSG_CHECK="Default version of SNMP to use" 6706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $MSG_CHECK" >&5 6707$as_echo_n "checking $MSG_CHECK... " >&6; } 6708if ${ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION+:} false; then : 6709 $as_echo_n "(cached) " >&6 6710else 6711 echo "" >&6 6712 6713if test "x$defaults" = "xno"; then 6714echo $ECHO_N " 6715 6716*** Default SNMP Version: 6717 6718 Starting with Net-SNMP 5.0, you can choose the default version of 6719the SNMP protocol to use when no version is given explicitly on the 6720command line, or via an 'snmp.conf' file. In the past this was set to 6721SNMPv1, but you can use this to switch to SNMPv3 if desired. SNMPv3 6722will provide a more secure management environment (and thus you're 6723encouraged to switch to SNMPv3), but may break existing scripts that 6724rely on the old behaviour. (Though such scripts will probably need to 6725be changed to use the '-c' community flag anyway, as the SNMPv1 6726command line usage has changed as well.). 6727 At this prompt you can select \"1\", \"2\" (for SNMPv2c), or \"3\" as 6728the default version for the command tools (snmpget, ...) to use. This 6729can always be overridden at runtime using the -v flag to the tools, or 6730by using the \"defVersion\" token in your snmp.conf file. 6731 Providing the --with-default-snmp-version=\"x\" parameter to ./configure 6732will avoid this prompt. 6733 6734Default version of SNMP to use (3): $ECHO_C" 6735read tmpinput <&7 6736if test "$tmpinput" = "" -a "3" != ""; then 6737 tmpinput="3" 6738fi 6739eval NETSNMP_DEFAULT_SNMP_VERSION=\"$tmpinput\" 6740else 6741tmpinput="3" 6742eval NETSNMP_DEFAULT_SNMP_VERSION=\"$tmpinput\" 6743fi 6744 6745eval ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION=\$NETSNMP_DEFAULT_SNMP_VERSION 6746echo $ECHO_N "setting $MSG_CHECK to... $ECHO_C" >&6 6747 6748fi 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION" >&5 6750$as_echo "$ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION" >&6; } 6751if test "$ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION" != "none"; then 6752 if test "xunquoted" = "xquoted" -o "xunquoted" = "xQUOTED"; then 6753 cat >>confdefs.h <<_ACEOF 6754#define NETSNMP_DEFAULT_SNMP_VERSION "$ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION" 6755_ACEOF 6756 6757 else 6758 cat >>confdefs.h <<_ACEOF 6759#define NETSNMP_DEFAULT_SNMP_VERSION $ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION 6760_ACEOF 6761 6762 fi 6763fi 6764 6765 6766# we tested this above before the prompt, but the prompt may give a new value. 6767case "${ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION}" in 6768 [123]) ;; 6769 2c) ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION=2 ;; 6770 *) 6771 as_fn_error $? "Illegal version number. Only 1, 2 (for SNMPv2c) and 3 are supported." "$LINENO" 5 6772 ;; 6773esac 6774 6775 6776MSG_CHECK="System Contact Information" 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $MSG_CHECK" >&5 6778$as_echo_n "checking $MSG_CHECK... " >&6; } 6779if ${ac_cv_user_prompt_NETSNMP_SYS_CONTACT+:} false; then : 6780 $as_echo_n "(cached) " >&6 6781else 6782 echo "" >&6 6783 6784if test "x$defaults" = "xno"; then 6785echo $ECHO_N " 6786 6787*** System Contact Information: 6788 6789 Describes who should be contacted about the host the agent is 6790running on. This information is available in the MIB-II tree. This 6791can also be over-ridden using the \"syscontact\" syntax in the agent's 6792configuration files. 6793 Providing the --with-sys-contact=\"contact\" parameter to ./configure 6794will avoid this prompt. 6795 6796System Contact Information ($ME@$LOC): $ECHO_C" 6797read tmpinput <&7 6798if test "$tmpinput" = "" -a "$ME@$LOC" != ""; then 6799 tmpinput="$ME@$LOC" 6800fi 6801eval NETSNMP_SYS_CONTACT=\"$tmpinput\" 6802else 6803tmpinput="$ME@$LOC" 6804eval NETSNMP_SYS_CONTACT=\"$tmpinput\" 6805fi 6806 6807eval ac_cv_user_prompt_NETSNMP_SYS_CONTACT=\$NETSNMP_SYS_CONTACT 6808echo $ECHO_N "setting $MSG_CHECK to... $ECHO_C" >&6 6809 6810fi 6811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_user_prompt_NETSNMP_SYS_CONTACT" >&5 6812$as_echo "$ac_cv_user_prompt_NETSNMP_SYS_CONTACT" >&6; } 6813if test "$ac_cv_user_prompt_NETSNMP_SYS_CONTACT" != "none"; then 6814 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then 6815 cat >>confdefs.h <<_ACEOF 6816#define NETSNMP_SYS_CONTACT "$ac_cv_user_prompt_NETSNMP_SYS_CONTACT" 6817_ACEOF 6818 6819 else 6820 cat >>confdefs.h <<_ACEOF 6821#define NETSNMP_SYS_CONTACT $ac_cv_user_prompt_NETSNMP_SYS_CONTACT 6822_ACEOF 6823 6824 fi 6825fi 6826 6827 6828 6829MSG_CHECK="System Location" 6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $MSG_CHECK" >&5 6831$as_echo_n "checking $MSG_CHECK... " >&6; } 6832if ${ac_cv_user_prompt_NETSNMP_SYS_LOC+:} false; then : 6833 $as_echo_n "(cached) " >&6 6834else 6835 echo "" >&6 6836 6837if test "x$defaults" = "xno"; then 6838echo $ECHO_N " 6839 6840*** System Location: 6841 6842 Describes the location of the system. This information is 6843available in the MIB-II tree. this can also be over-ridden using the 6844\"syslocation\" syntax in the agent's configuration files. 6845 Providing the --with-sys-location=\"location\" parameter to ./configure 6846will avoid this prompt. 6847 6848System Location (Unknown): $ECHO_C" 6849read tmpinput <&7 6850if test "$tmpinput" = "" -a "Unknown" != ""; then 6851 tmpinput="Unknown" 6852fi 6853eval NETSNMP_SYS_LOC=\"$tmpinput\" 6854else 6855tmpinput="Unknown" 6856eval NETSNMP_SYS_LOC=\"$tmpinput\" 6857fi 6858 6859eval ac_cv_user_prompt_NETSNMP_SYS_LOC=\$NETSNMP_SYS_LOC 6860echo $ECHO_N "setting $MSG_CHECK to... $ECHO_C" >&6 6861 6862fi 6863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_user_prompt_NETSNMP_SYS_LOC" >&5 6864$as_echo "$ac_cv_user_prompt_NETSNMP_SYS_LOC" >&6; } 6865if test "$ac_cv_user_prompt_NETSNMP_SYS_LOC" != "none"; then 6866 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then 6867 cat >>confdefs.h <<_ACEOF 6868#define NETSNMP_SYS_LOC "$ac_cv_user_prompt_NETSNMP_SYS_LOC" 6869_ACEOF 6870 6871 else 6872 cat >>confdefs.h <<_ACEOF 6873#define NETSNMP_SYS_LOC $ac_cv_user_prompt_NETSNMP_SYS_LOC 6874_ACEOF 6875 6876 fi 6877fi 6878 6879 6880if test -d /var/log; then 6881 defaultlog="/var/log/snmpd.log" 6882else 6883 defaultlog="/usr/adm/snmpd.log" 6884fi 6885 6886 6887MSG_CHECK="Location to write logfile" 6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $MSG_CHECK" >&5 6889$as_echo_n "checking $MSG_CHECK... " >&6; } 6890if ${ac_cv_user_prompt_NETSNMP_LOGFILE+:} false; then : 6891 $as_echo_n "(cached) " >&6 6892else 6893 echo "" >&6 6894 6895if test "x$defaults" = "xno"; then 6896echo $ECHO_N " 6897 6898*** Logfile location: 6899 6900 Enter the default location for the snmpd agent to dump 6901information & errors to. If not defined (enter the keyword \"none\" 6902at the prompt below) the agent will use stdout and stderr instead. 6903(Note: This value can be over-ridden using command line options.) 6904 Providing the --with-logfile=\"path\" parameter to ./configure 6905will avoid this prompt. 6906 6907Location to write logfile ($defaultlog): $ECHO_C" 6908read tmpinput <&7 6909if test "$tmpinput" = "" -a "$defaultlog" != ""; then 6910 tmpinput="$defaultlog" 6911fi 6912eval NETSNMP_LOGFILE=\"$tmpinput\" 6913else 6914tmpinput="$defaultlog" 6915eval NETSNMP_LOGFILE=\"$tmpinput\" 6916fi 6917 6918eval ac_cv_user_prompt_NETSNMP_LOGFILE=\$NETSNMP_LOGFILE 6919echo $ECHO_N "setting $MSG_CHECK to... $ECHO_C" >&6 6920 6921fi 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_user_prompt_NETSNMP_LOGFILE" >&5 6923$as_echo "$ac_cv_user_prompt_NETSNMP_LOGFILE" >&6; } 6924if test "$ac_cv_user_prompt_NETSNMP_LOGFILE" != "none"; then 6925 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then 6926 cat >>confdefs.h <<_ACEOF 6927#define NETSNMP_LOGFILE "$ac_cv_user_prompt_NETSNMP_LOGFILE" 6928_ACEOF 6929 6930 else 6931 cat >>confdefs.h <<_ACEOF 6932#define NETSNMP_LOGFILE $ac_cv_user_prompt_NETSNMP_LOGFILE 6933_ACEOF 6934 6935 fi 6936fi 6937 6938 6939if test -d /var; then 6940 defaultstore="/var/net-snmp" 6941 ucddefaultstore="/var/ucd-snmp" 6942else 6943 defaultstore="/etc/net-snmp" 6944 ucddefaultstore="/etc/ucd-snmp" 6945fi 6946 6947 6948MSG_CHECK="Location to write persistent information" 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $MSG_CHECK" >&5 6950$as_echo_n "checking $MSG_CHECK... " >&6; } 6951if ${ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY+:} false; then : 6952 $as_echo_n "(cached) " >&6 6953else 6954 echo "" >&6 6955 6956if test "x$defaults" = "xno"; then 6957echo $ECHO_N " 6958 6959*** snmpd persistent storage location: 6960 6961 Enter a directory for the SNMP library to store persistent 6962data in the form of a configuration file. This default location is 6963different than the old default location (which was for ucd-snmp). If 6964you stay with the new path, I'll ask you in a second if you wish to 6965copy your files over to the new location (once only). If you pick 6966some other path than the default, you'll have to copy them yourself. 6967There is nothing wrong with picking the old path ($ucddefaultstore) if 6968you'd rather. 6969 Providing the --with-persistent-directory=\"path\" parameter to 6970./configure will avoid this prompt. 6971 6972Location to write persistent information ($defaultstore): $ECHO_C" 6973read tmpinput <&7 6974if test "$tmpinput" = "" -a "$defaultstore" != ""; then 6975 tmpinput="$defaultstore" 6976fi 6977eval NETSNMP_PERSISTENT_DIRECTORY=\"$tmpinput\" 6978else 6979tmpinput="$defaultstore" 6980eval NETSNMP_PERSISTENT_DIRECTORY=\"$tmpinput\" 6981fi 6982 6983eval ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY=\$NETSNMP_PERSISTENT_DIRECTORY 6984echo $ECHO_N "setting $MSG_CHECK to... $ECHO_C" >&6 6985 6986fi 6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY" >&5 6988$as_echo "$ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY" >&6; } 6989if test "$ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY" != "none"; then 6990 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then 6991 cat >>confdefs.h <<_ACEOF 6992#define NETSNMP_PERSISTENT_DIRECTORY "$ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY" 6993_ACEOF 6994 6995 else 6996 cat >>confdefs.h <<_ACEOF 6997#define NETSNMP_PERSISTENT_DIRECTORY $ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY 6998_ACEOF 6999 7000 fi 7001fi 7002 7003 7004PERSISTENT_DIRECTORY=$ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY 7005 7006UCDPERSISTENT_DIRECTORY=$ucddefaultstore 7007 7008 7009if test $PERSISTENT_DIRECTORY = "$defaultstore" -a -d "$ucddefaultstore" -a ! -d "$defaultstore" ; then 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking If we should copy the old persistent directory" >&5 7011$as_echo_n "checking If we should copy the old persistent directory... " >&6; } 7012if ${ac_cv_user_prompt_COPY_PERSISTENT_FILES+:} false; then : 7013 $as_echo_n "(cached) " >&6 7014else 7015 7016 7017if test "x$defaults" = "xno"; then 7018echo $ECHO_N " 7019 7020*** Copying old ucd-snmp persistent files to net-snmp persistent directory: 7021 7022 Would you like to copy the older ucd-snmp persistent files 7023into your new net-snmp persistent file path? This will functionally 7024save all your ucd-snmp data and let it be used within the net-snmp 7025tools. This will only be done once when you run make install. If you 7026wish to do this, enter "yes" at the prompt. 7027 Providing the --with-copy-persistent-files=\"no\" (or \"yes\") 7028parameters to ./configure will avoid this prompt. 7029 7030Copy ucd-snmp data into the net-snmp data directory ("yes"): $ECHO_C" 7031read tmpinput <&7 7032if test "$tmpinput" = "" -a ""yes"" != ""; then 7033 tmpinput=""yes"" 7034fi 7035eval ac_cv_user_prompt_COPY_PERSISTENT_FILES=\"$tmpinput\" 7036else 7037tmpinput=""yes"" 7038eval ac_cv_user_prompt_COPY_PERSISTENT_FILES=\"$tmpinput\" 7039fi 7040 7041 7042fi 7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_user_prompt_COPY_PERSISTENT_FILES" >&5 7044$as_echo "$ac_cv_user_prompt_COPY_PERSISTENT_FILES" >&6; } 7045else 7046ac_cv_user_prompt_COPY_PERSISTENT_FILES="no" 7047fi 7048COPY_PERSISTENT_FILES="$ac_cv_user_prompt_COPY_PERSISTENT_FILES" 7049 7050 7051# -*- autoconf -*- 7052######################################### 7053## 7054# Checks for programs 7055## 7056######################################### 7057 7058## 7059# Shell checks: 7060## 7061 7062# Check for 'sh' overflow (HP-UX) 7063# (taken from Perl's configure script) 7064# 7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if I need to feed myself to ksh" >&5 7066$as_echo_n "checking if I need to feed myself to ksh... " >&6; } 7067if test -f /hp-ux -a -f /bin/ksh; then 7068 if (PATH=.; alias -x) >/dev/null 2>&1; then 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7070$as_echo "no" >&6; } 7071 else 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7073$as_echo "yes" >&6; } 7074 if test "x$1" = "x"; then 7075 exec /bin/ksh $0 7076 else 7077 exec /bin/ksh $0 "$@" 7078 fi 7079 fi 7080else 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7082$as_echo "no" >&6; } 7083fi 7084 7085 7086## 7087# Standard and path program checks: 7088## 7089 7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7091$as_echo_n "checking for egrep... " >&6; } 7092if ${ac_cv_path_EGREP+:} false; then : 7093 $as_echo_n "(cached) " >&6 7094else 7095 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7096 then ac_cv_path_EGREP="$GREP -E" 7097 else 7098 if test -z "$EGREP"; then 7099 ac_path_EGREP_found=false 7100 # Loop through the user's path and test for each of PROGNAME-LIST 7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7102for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7103do 7104 IFS=$as_save_IFS 7105 test -z "$as_dir" && as_dir=. 7106 for ac_prog in egrep; do 7107 for ac_exec_ext in '' $ac_executable_extensions; do 7108 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 7109 as_fn_executable_p "$ac_path_EGREP" || continue 7110# Check for GNU ac_path_EGREP and select it if it is found. 7111 # Check for GNU $ac_path_EGREP 7112case `"$ac_path_EGREP" --version 2>&1` in 7113*GNU*) 7114 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7115*) 7116 ac_count=0 7117 $as_echo_n 0123456789 >"conftest.in" 7118 while : 7119 do 7120 cat "conftest.in" "conftest.in" >"conftest.tmp" 7121 mv "conftest.tmp" "conftest.in" 7122 cp "conftest.in" "conftest.nl" 7123 $as_echo 'EGREP' >> "conftest.nl" 7124 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7126 as_fn_arith $ac_count + 1 && ac_count=$as_val 7127 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7128 # Best one so far, save it but keep looking for a better one 7129 ac_cv_path_EGREP="$ac_path_EGREP" 7130 ac_path_EGREP_max=$ac_count 7131 fi 7132 # 10*(2^10) chars as input seems more than enough 7133 test $ac_count -gt 10 && break 7134 done 7135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7136esac 7137 7138 $ac_path_EGREP_found && break 3 7139 done 7140 done 7141 done 7142IFS=$as_save_IFS 7143 if test -z "$ac_cv_path_EGREP"; then 7144 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7145 fi 7146else 7147 ac_cv_path_EGREP=$EGREP 7148fi 7149 7150 fi 7151fi 7152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7153$as_echo "$ac_cv_path_EGREP" >&6; } 7154 EGREP="$ac_cv_path_EGREP" 7155 7156 7157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7158$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 7159if ${ac_cv_path_GREP+:} false; then : 7160 $as_echo_n "(cached) " >&6 7161else 7162 if test -z "$GREP"; then 7163 ac_path_GREP_found=false 7164 # Loop through the user's path and test for each of PROGNAME-LIST 7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7166for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7167do 7168 IFS=$as_save_IFS 7169 test -z "$as_dir" && as_dir=. 7170 for ac_prog in grep ggrep; do 7171 for ac_exec_ext in '' $ac_executable_extensions; do 7172 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7173 as_fn_executable_p "$ac_path_GREP" || continue 7174# Check for GNU ac_path_GREP and select it if it is found. 7175 # Check for GNU $ac_path_GREP 7176case `"$ac_path_GREP" --version 2>&1` in 7177*GNU*) 7178 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7179*) 7180 ac_count=0 7181 $as_echo_n 0123456789 >"conftest.in" 7182 while : 7183 do 7184 cat "conftest.in" "conftest.in" >"conftest.tmp" 7185 mv "conftest.tmp" "conftest.in" 7186 cp "conftest.in" "conftest.nl" 7187 $as_echo 'GREP' >> "conftest.nl" 7188 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7190 as_fn_arith $ac_count + 1 && ac_count=$as_val 7191 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7192 # Best one so far, save it but keep looking for a better one 7193 ac_cv_path_GREP="$ac_path_GREP" 7194 ac_path_GREP_max=$ac_count 7195 fi 7196 # 10*(2^10) chars as input seems more than enough 7197 test $ac_count -gt 10 && break 7198 done 7199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7200esac 7201 7202 $ac_path_GREP_found && break 3 7203 done 7204 done 7205 done 7206IFS=$as_save_IFS 7207 if test -z "$ac_cv_path_GREP"; then 7208 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7209 fi 7210else 7211 ac_cv_path_GREP=$GREP 7212fi 7213 7214fi 7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7216$as_echo "$ac_cv_path_GREP" >&6; } 7217 GREP="$ac_cv_path_GREP" 7218 7219 7220ac_aux_dir= 7221for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 7222 if test -f "$ac_dir/install-sh"; then 7223 ac_aux_dir=$ac_dir 7224 ac_install_sh="$ac_aux_dir/install-sh -c" 7225 break 7226 elif test -f "$ac_dir/install.sh"; then 7227 ac_aux_dir=$ac_dir 7228 ac_install_sh="$ac_aux_dir/install.sh -c" 7229 break 7230 elif test -f "$ac_dir/shtool"; then 7231 ac_aux_dir=$ac_dir 7232 ac_install_sh="$ac_aux_dir/shtool install -c" 7233 break 7234 fi 7235done 7236if test -z "$ac_aux_dir"; then 7237 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 7238fi 7239 7240# These three variables are undocumented and unsupported, 7241# and are intended to be withdrawn in a future Autoconf release. 7242# They can cause serious problems if a builder's source tree is in a directory 7243# whose full name contains unusual characters. 7244ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 7245ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 7246ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 7247 7248 7249# Find a good install program. We prefer a C program (faster), 7250# so one script is as good as another. But avoid the broken or 7251# incompatible versions: 7252# SysV /etc/install, /usr/sbin/install 7253# SunOS /usr/etc/install 7254# IRIX /sbin/install 7255# AIX /bin/install 7256# AmigaOS /C/install, which installs bootblocks on floppy discs 7257# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7258# AFS /usr/afsws/bin/install, which mishandles nonexistent args 7259# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7260# OS/2's system install, which has a completely different semantic 7261# ./install, which can be erroneously created by make from ./install.sh. 7262# Reject install programs that cannot install multiple files. 7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 7264$as_echo_n "checking for a BSD-compatible install... " >&6; } 7265if test -z "$INSTALL"; then 7266if ${ac_cv_path_install+:} false; then : 7267 $as_echo_n "(cached) " >&6 7268else 7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7270for as_dir in $PATH 7271do 7272 IFS=$as_save_IFS 7273 test -z "$as_dir" && as_dir=. 7274 # Account for people who put trailing slashes in PATH elements. 7275case $as_dir/ in #(( 7276 ./ | .// | /[cC]/* | \ 7277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7278 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 7279 /usr/ucb/* ) ;; 7280 *) 7281 # OSF1 and SCO ODT 3.0 have their own names for install. 7282 # Don't use installbsd from OSF since it installs stuff as root 7283 # by default. 7284 for ac_prog in ginstall scoinst install; do 7285 for ac_exec_ext in '' $ac_executable_extensions; do 7286 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 7287 if test $ac_prog = install && 7288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7289 # AIX install. It has an incompatible calling convention. 7290 : 7291 elif test $ac_prog = install && 7292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7293 # program-specific install script used by HP pwplus--don't use. 7294 : 7295 else 7296 rm -rf conftest.one conftest.two conftest.dir 7297 echo one > conftest.one 7298 echo two > conftest.two 7299 mkdir conftest.dir 7300 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 7301 test -s conftest.one && test -s conftest.two && 7302 test -s conftest.dir/conftest.one && 7303 test -s conftest.dir/conftest.two 7304 then 7305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7306 break 3 7307 fi 7308 fi 7309 fi 7310 done 7311 done 7312 ;; 7313esac 7314 7315 done 7316IFS=$as_save_IFS 7317 7318rm -rf conftest.one conftest.two conftest.dir 7319 7320fi 7321 if test "${ac_cv_path_install+set}" = set; then 7322 INSTALL=$ac_cv_path_install 7323 else 7324 # As a last resort, use the slow shell script. Don't cache a 7325 # value for INSTALL within a source directory, because that will 7326 # break other packages using the cache if that directory is 7327 # removed, or if the value is a relative name. 7328 INSTALL=$ac_install_sh 7329 fi 7330fi 7331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 7332$as_echo "$INSTALL" >&6; } 7333 7334# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7335# It thinks the first close brace ends the variable substitution. 7336test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7337 7338test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7339 7340test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7341 7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7343$as_echo_n "checking whether ln -s works... " >&6; } 7344LN_S=$as_ln_s 7345if test "$LN_S" = "ln -s"; then 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7347$as_echo "yes" >&6; } 7348else 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7350$as_echo "no, using $LN_S" >&6; } 7351fi 7352 7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 7354$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 7355set x ${MAKE-make} 7356ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 7357if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 7358 $as_echo_n "(cached) " >&6 7359else 7360 cat >conftest.make <<\_ACEOF 7361SHELL = /bin/sh 7362all: 7363 @echo '@@@%%%=$(MAKE)=@@@%%%' 7364_ACEOF 7365# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7366case `${MAKE-make} -f conftest.make 2>/dev/null` in 7367 *@@@%%%=?*=@@@%%%*) 7368 eval ac_cv_prog_make_${ac_make}_set=yes;; 7369 *) 7370 eval ac_cv_prog_make_${ac_make}_set=no;; 7371esac 7372rm -f conftest.make 7373fi 7374if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7376$as_echo "yes" >&6; } 7377 SET_MAKE= 7378else 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7380$as_echo "no" >&6; } 7381 SET_MAKE="MAKE=${MAKE-make}" 7382fi 7383 7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7385$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7386if ${ac_cv_path_SED+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7390 for ac_i in 1 2 3 4 5 6 7; do 7391 ac_script="$ac_script$as_nl$ac_script" 7392 done 7393 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7394 { ac_script=; unset ac_script;} 7395 if test -z "$SED"; then 7396 ac_path_SED_found=false 7397 # Loop through the user's path and test for each of PROGNAME-LIST 7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7399for as_dir in $PATH 7400do 7401 IFS=$as_save_IFS 7402 test -z "$as_dir" && as_dir=. 7403 for ac_prog in sed gsed; do 7404 for ac_exec_ext in '' $ac_executable_extensions; do 7405 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7406 as_fn_executable_p "$ac_path_SED" || continue 7407# Check for GNU ac_path_SED and select it if it is found. 7408 # Check for GNU $ac_path_SED 7409case `"$ac_path_SED" --version 2>&1` in 7410*GNU*) 7411 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7412*) 7413 ac_count=0 7414 $as_echo_n 0123456789 >"conftest.in" 7415 while : 7416 do 7417 cat "conftest.in" "conftest.in" >"conftest.tmp" 7418 mv "conftest.tmp" "conftest.in" 7419 cp "conftest.in" "conftest.nl" 7420 $as_echo '' >> "conftest.nl" 7421 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7423 as_fn_arith $ac_count + 1 && ac_count=$as_val 7424 if test $ac_count -gt ${ac_path_SED_max-0}; then 7425 # Best one so far, save it but keep looking for a better one 7426 ac_cv_path_SED="$ac_path_SED" 7427 ac_path_SED_max=$ac_count 7428 fi 7429 # 10*(2^10) chars as input seems more than enough 7430 test $ac_count -gt 10 && break 7431 done 7432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7433esac 7434 7435 $ac_path_SED_found && break 3 7436 done 7437 done 7438 done 7439IFS=$as_save_IFS 7440 if test -z "$ac_cv_path_SED"; then 7441 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7442 fi 7443else 7444 ac_cv_path_SED=$SED 7445fi 7446 7447fi 7448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7449$as_echo "$ac_cv_path_SED" >&6; } 7450 SED="$ac_cv_path_SED" 7451 rm -f conftest.sed 7452 7453 7454for ac_prog in file 7455do 7456 # Extract the first word of "$ac_prog", so it can be a program name with args. 7457set dummy $ac_prog; ac_word=$2 7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7459$as_echo_n "checking for $ac_word... " >&6; } 7460if ${ac_cv_prog_FILE+:} false; then : 7461 $as_echo_n "(cached) " >&6 7462else 7463 if test -n "$FILE"; then 7464 ac_cv_prog_FILE="$FILE" # Let the user override the test. 7465else 7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7467for as_dir in $PATH 7468do 7469 IFS=$as_save_IFS 7470 test -z "$as_dir" && as_dir=. 7471 for ac_exec_ext in '' $ac_executable_extensions; do 7472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7473 ac_cv_prog_FILE="$ac_prog" 7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7475 break 2 7476 fi 7477done 7478 done 7479IFS=$as_save_IFS 7480 7481fi 7482fi 7483FILE=$ac_cv_prog_FILE 7484if test -n "$FILE"; then 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7486$as_echo "$FILE" >&6; } 7487else 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7489$as_echo "no" >&6; } 7490fi 7491 7492 7493 test -n "$FILE" && break 7494done 7495 7496if test x$ac_cv_prog_FILE = x; then 7497 # The file program is not included in the default Cygwin setup, although 7498 # this program is essential for libtool to work properly. It is nontrivial 7499 # to deduce from the message printed by libtool that the 'file' tool is 7500 # missing and libtool does not abort when the file program is not found. So 7501 # stop now if the file program has not been found. 7502 as_fn_error 1 "file program not found although it is needed by libtool." "$LINENO" 5 7503fi 7504 7505for ac_prog in find 7506do 7507 # Extract the first word of "$ac_prog", so it can be a program name with args. 7508set dummy $ac_prog; ac_word=$2 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7510$as_echo_n "checking for $ac_word... " >&6; } 7511if ${ac_cv_prog_FIND+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513else 7514 if test -n "$FIND"; then 7515 ac_cv_prog_FIND="$FIND" # Let the user override the test. 7516else 7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7518for as_dir in $PATH 7519do 7520 IFS=$as_save_IFS 7521 test -z "$as_dir" && as_dir=. 7522 for ac_exec_ext in '' $ac_executable_extensions; do 7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7524 ac_cv_prog_FIND="$ac_prog" 7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7526 break 2 7527 fi 7528done 7529 done 7530IFS=$as_save_IFS 7531 7532fi 7533fi 7534FIND=$ac_cv_prog_FIND 7535if test -n "$FIND"; then 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7537$as_echo "$FIND" >&6; } 7538else 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7540$as_echo "no" >&6; } 7541fi 7542 7543 7544 test -n "$FIND" && break 7545done 7546 7547for ac_prog in whoami logname 7548do 7549 # Extract the first word of "$ac_prog", so it can be a program name with args. 7550set dummy $ac_prog; ac_word=$2 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7552$as_echo_n "checking for $ac_word... " >&6; } 7553if ${ac_cv_prog_WHOAMI+:} false; then : 7554 $as_echo_n "(cached) " >&6 7555else 7556 if test -n "$WHOAMI"; then 7557 ac_cv_prog_WHOAMI="$WHOAMI" # Let the user override the test. 7558else 7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7560for as_dir in $PATH 7561do 7562 IFS=$as_save_IFS 7563 test -z "$as_dir" && as_dir=. 7564 for ac_exec_ext in '' $ac_executable_extensions; do 7565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7566 ac_cv_prog_WHOAMI="$ac_prog" 7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7568 break 2 7569 fi 7570done 7571 done 7572IFS=$as_save_IFS 7573 7574fi 7575fi 7576WHOAMI=$ac_cv_prog_WHOAMI 7577if test -n "$WHOAMI"; then 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHOAMI" >&5 7579$as_echo "$WHOAMI" >&6; } 7580else 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7582$as_echo "no" >&6; } 7583fi 7584 7585 7586 test -n "$WHOAMI" && break 7587done 7588test -n "$WHOAMI" || WHOAMI="whoami" 7589 7590 7591# Extract the first word of "autoconf", so it can be a program name with args. 7592set dummy autoconf; ac_word=$2 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7594$as_echo_n "checking for $ac_word... " >&6; } 7595if ${ac_cv_path_AUTOCONF+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597else 7598 case $AUTOCONF in 7599 [\\/]* | ?:[\\/]*) 7600 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path. 7601 ;; 7602 *) 7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7604for as_dir in $PATH 7605do 7606 IFS=$as_save_IFS 7607 test -z "$as_dir" && as_dir=. 7608 for ac_exec_ext in '' $ac_executable_extensions; do 7609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7610 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext" 7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7612 break 2 7613 fi 7614done 7615 done 7616IFS=$as_save_IFS 7617 7618 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF=":" 7619 ;; 7620esac 7621fi 7622AUTOCONF=$ac_cv_path_AUTOCONF 7623if test -n "$AUTOCONF"; then 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 7625$as_echo "$AUTOCONF" >&6; } 7626else 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7628$as_echo "no" >&6; } 7629fi 7630 7631 7632# Extract the first word of "autoheader", so it can be a program name with args. 7633set dummy autoheader; ac_word=$2 7634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7635$as_echo_n "checking for $ac_word... " >&6; } 7636if ${ac_cv_path_AUTOHEADER+:} false; then : 7637 $as_echo_n "(cached) " >&6 7638else 7639 case $AUTOHEADER in 7640 [\\/]* | ?:[\\/]*) 7641 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path. 7642 ;; 7643 *) 7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7645for as_dir in $PATH 7646do 7647 IFS=$as_save_IFS 7648 test -z "$as_dir" && as_dir=. 7649 for ac_exec_ext in '' $ac_executable_extensions; do 7650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7651 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext" 7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7653 break 2 7654 fi 7655done 7656 done 7657IFS=$as_save_IFS 7658 7659 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER=":" 7660 ;; 7661esac 7662fi 7663AUTOHEADER=$ac_cv_path_AUTOHEADER 7664if test -n "$AUTOHEADER"; then 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 7666$as_echo "$AUTOHEADER" >&6; } 7667else 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7669$as_echo "no" >&6; } 7670fi 7671 7672 7673# Extract the first word of "perl", so it can be a program name with args. 7674set dummy perl; ac_word=$2 7675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7676$as_echo_n "checking for $ac_word... " >&6; } 7677if ${ac_cv_path_PERLPROG+:} false; then : 7678 $as_echo_n "(cached) " >&6 7679else 7680 case $PERLPROG in 7681 [\\/]* | ?:[\\/]*) 7682 ac_cv_path_PERLPROG="$PERLPROG" # Let the user override the test with a path. 7683 ;; 7684 *) 7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7686for as_dir in $PATH 7687do 7688 IFS=$as_save_IFS 7689 test -z "$as_dir" && as_dir=. 7690 for ac_exec_ext in '' $ac_executable_extensions; do 7691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7692 ac_cv_path_PERLPROG="$as_dir/$ac_word$ac_exec_ext" 7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7694 break 2 7695 fi 7696done 7697 done 7698IFS=$as_save_IFS 7699 7700 ;; 7701esac 7702fi 7703PERLPROG=$ac_cv_path_PERLPROG 7704if test -n "$PERLPROG"; then 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLPROG" >&5 7706$as_echo "$PERLPROG" >&6; } 7707else 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7709$as_echo "no" >&6; } 7710fi 7711 7712 7713# Extract the first word of "ps", so it can be a program name with args. 7714set dummy ps; ac_word=$2 7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7716$as_echo_n "checking for $ac_word... " >&6; } 7717if ${ac_cv_path_PSPROG+:} false; then : 7718 $as_echo_n "(cached) " >&6 7719else 7720 case $PSPROG in 7721 [\\/]* | ?:[\\/]*) 7722 ac_cv_path_PSPROG="$PSPROG" # Let the user override the test with a path. 7723 ;; 7724 *) 7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7726for as_dir in $PATH 7727do 7728 IFS=$as_save_IFS 7729 test -z "$as_dir" && as_dir=. 7730 for ac_exec_ext in '' $ac_executable_extensions; do 7731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7732 ac_cv_path_PSPROG="$as_dir/$ac_word$ac_exec_ext" 7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7734 break 2 7735 fi 7736done 7737 done 7738IFS=$as_save_IFS 7739 7740 ;; 7741esac 7742fi 7743PSPROG=$ac_cv_path_PSPROG 7744if test -n "$PSPROG"; then 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSPROG" >&5 7746$as_echo "$PSPROG" >&6; } 7747else 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7749$as_echo "no" >&6; } 7750fi 7751 7752 7753# Extract the first word of "python3", so it can be a program name with args. 7754set dummy python3; ac_word=$2 7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7756$as_echo_n "checking for $ac_word... " >&6; } 7757if ${ac_cv_path_PYTHONPROG+:} false; then : 7758 $as_echo_n "(cached) " >&6 7759else 7760 case $PYTHONPROG in 7761 [\\/]* | ?:[\\/]*) 7762 ac_cv_path_PYTHONPROG="$PYTHONPROG" # Let the user override the test with a path. 7763 ;; 7764 *) 7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7766for as_dir in $PATH 7767do 7768 IFS=$as_save_IFS 7769 test -z "$as_dir" && as_dir=. 7770 for ac_exec_ext in '' $ac_executable_extensions; do 7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7772 ac_cv_path_PYTHONPROG="$as_dir/$ac_word$ac_exec_ext" 7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7774 break 2 7775 fi 7776done 7777 done 7778IFS=$as_save_IFS 7779 7780 ;; 7781esac 7782fi 7783PYTHONPROG=$ac_cv_path_PYTHONPROG 7784if test -n "$PYTHONPROG"; then 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHONPROG" >&5 7786$as_echo "$PYTHONPROG" >&6; } 7787else 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7789$as_echo "no" >&6; } 7790fi 7791 7792 7793 7794# Extract the first word of "uname", so it can be a program name with args. 7795set dummy uname; ac_word=$2 7796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7797$as_echo_n "checking for $ac_word... " >&6; } 7798if ${ac_cv_path_UNAMEPROG+:} false; then : 7799 $as_echo_n "(cached) " >&6 7800else 7801 case $UNAMEPROG in 7802 [\\/]* | ?:[\\/]*) 7803 ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path. 7804 ;; 7805 *) 7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7807for as_dir in $PATH 7808do 7809 IFS=$as_save_IFS 7810 test -z "$as_dir" && as_dir=. 7811 for ac_exec_ext in '' $ac_executable_extensions; do 7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7813 ac_cv_path_UNAMEPROG="$as_dir/$ac_word$ac_exec_ext" 7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7815 break 2 7816 fi 7817done 7818 done 7819IFS=$as_save_IFS 7820 7821 ;; 7822esac 7823fi 7824UNAMEPROG=$ac_cv_path_UNAMEPROG 7825if test -n "$UNAMEPROG"; then 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5 7827$as_echo "$UNAMEPROG" >&6; } 7828else 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7830$as_echo "no" >&6; } 7831fi 7832 7833 7834 7835cat >>confdefs.h <<_ACEOF 7836#define UNAMEPROG "$UNAMEPROG" 7837_ACEOF 7838 7839 7840MAKE=${MAKE-"make"} 7841$MAKE -v -f /dev/null 2>/dev/null | $GREP GNU >/dev/null 7842have_gnu_make=$? 7843 7844 7845## 7846# The Perl function system() is used for running the Net-SNMP regression 7847# tests. Find out whether that function invokes a POSIX shell, which is 7848# necessary in order to run the regression tests. When using Windows + MSYS 7849# + ActiveState Perl, Perl's system() function does invoke Windows' cmd.exe 7850# which is not a POSIX shell. 7851## 7852 7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Perl function system() invokes a POSIX shell" >&5 7854$as_echo_n "checking whether the Perl function system() invokes a POSIX shell... " >&6; } 7855if test "x$PERLPROG" != 'x' && test -x "$PERLPROG" && test "x`$PERLPROG -e 'system('\''echo $OSTYPE'\'');'`" != 'x$OSTYPE'; then 7856 PERL_SYSTEM_INVOKES_POSIX_SHELL=yes 7857else 7858 PERL_SYSTEM_INVOKES_POSIX_SHELL=no 7859fi 7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_SYSTEM_INVOKES_POSIX_SHELL" >&5 7861$as_echo "$PERL_SYSTEM_INVOKES_POSIX_SHELL" >&6; } 7862 7863 7864 7865## 7866# Compilation-related program checks: 7867## 7868 7869ac_ext=c 7870ac_cpp='$CPP $CPPFLAGS' 7871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7873ac_compiler_gnu=$ac_cv_c_compiler_gnu 7874 7875ac_ext=c 7876ac_cpp='$CPP $CPPFLAGS' 7877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7879ac_compiler_gnu=$ac_cv_c_compiler_gnu 7880if test -n "$ac_tool_prefix"; then 7881 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 7882set dummy ${ac_tool_prefix}gcc; ac_word=$2 7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7884$as_echo_n "checking for $ac_word... " >&6; } 7885if ${ac_cv_prog_CC+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 if test -n "$CC"; then 7889 ac_cv_prog_CC="$CC" # Let the user override the test. 7890else 7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7892for as_dir in $PATH 7893do 7894 IFS=$as_save_IFS 7895 test -z "$as_dir" && as_dir=. 7896 for ac_exec_ext in '' $ac_executable_extensions; do 7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7898 ac_cv_prog_CC="${ac_tool_prefix}gcc" 7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7900 break 2 7901 fi 7902done 7903 done 7904IFS=$as_save_IFS 7905 7906fi 7907fi 7908CC=$ac_cv_prog_CC 7909if test -n "$CC"; then 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 7911$as_echo "$CC" >&6; } 7912else 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7914$as_echo "no" >&6; } 7915fi 7916 7917 7918fi 7919if test -z "$ac_cv_prog_CC"; then 7920 ac_ct_CC=$CC 7921 # Extract the first word of "gcc", so it can be a program name with args. 7922set dummy gcc; ac_word=$2 7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7924$as_echo_n "checking for $ac_word... " >&6; } 7925if ${ac_cv_prog_ac_ct_CC+:} false; then : 7926 $as_echo_n "(cached) " >&6 7927else 7928 if test -n "$ac_ct_CC"; then 7929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 7930else 7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7932for as_dir in $PATH 7933do 7934 IFS=$as_save_IFS 7935 test -z "$as_dir" && as_dir=. 7936 for ac_exec_ext in '' $ac_executable_extensions; do 7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7938 ac_cv_prog_ac_ct_CC="gcc" 7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7940 break 2 7941 fi 7942done 7943 done 7944IFS=$as_save_IFS 7945 7946fi 7947fi 7948ac_ct_CC=$ac_cv_prog_ac_ct_CC 7949if test -n "$ac_ct_CC"; then 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 7951$as_echo "$ac_ct_CC" >&6; } 7952else 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7954$as_echo "no" >&6; } 7955fi 7956 7957 if test "x$ac_ct_CC" = x; then 7958 CC="" 7959 else 7960 case $cross_compiling:$ac_tool_warned in 7961yes:) 7962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7964ac_tool_warned=yes ;; 7965esac 7966 CC=$ac_ct_CC 7967 fi 7968else 7969 CC="$ac_cv_prog_CC" 7970fi 7971 7972if test -z "$CC"; then 7973 if test -n "$ac_tool_prefix"; then 7974 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 7975set dummy ${ac_tool_prefix}cc; ac_word=$2 7976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7977$as_echo_n "checking for $ac_word... " >&6; } 7978if ${ac_cv_prog_CC+:} false; then : 7979 $as_echo_n "(cached) " >&6 7980else 7981 if test -n "$CC"; then 7982 ac_cv_prog_CC="$CC" # Let the user override the test. 7983else 7984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7985for as_dir in $PATH 7986do 7987 IFS=$as_save_IFS 7988 test -z "$as_dir" && as_dir=. 7989 for ac_exec_ext in '' $ac_executable_extensions; do 7990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7991 ac_cv_prog_CC="${ac_tool_prefix}cc" 7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7993 break 2 7994 fi 7995done 7996 done 7997IFS=$as_save_IFS 7998 7999fi 8000fi 8001CC=$ac_cv_prog_CC 8002if test -n "$CC"; then 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8004$as_echo "$CC" >&6; } 8005else 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8007$as_echo "no" >&6; } 8008fi 8009 8010 8011 fi 8012fi 8013if test -z "$CC"; then 8014 # Extract the first word of "cc", so it can be a program name with args. 8015set dummy cc; ac_word=$2 8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8017$as_echo_n "checking for $ac_word... " >&6; } 8018if ${ac_cv_prog_CC+:} false; then : 8019 $as_echo_n "(cached) " >&6 8020else 8021 if test -n "$CC"; then 8022 ac_cv_prog_CC="$CC" # Let the user override the test. 8023else 8024 ac_prog_rejected=no 8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8026for as_dir in $PATH 8027do 8028 IFS=$as_save_IFS 8029 test -z "$as_dir" && as_dir=. 8030 for ac_exec_ext in '' $ac_executable_extensions; do 8031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8032 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 8033 ac_prog_rejected=yes 8034 continue 8035 fi 8036 ac_cv_prog_CC="cc" 8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8038 break 2 8039 fi 8040done 8041 done 8042IFS=$as_save_IFS 8043 8044if test $ac_prog_rejected = yes; then 8045 # We found a bogon in the path, so make sure we never use it. 8046 set dummy $ac_cv_prog_CC 8047 shift 8048 if test $# != 0; then 8049 # We chose a different compiler from the bogus one. 8050 # However, it has the same basename, so the bogon will be chosen 8051 # first if we set CC to just the basename; use the full file name. 8052 shift 8053 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 8054 fi 8055fi 8056fi 8057fi 8058CC=$ac_cv_prog_CC 8059if test -n "$CC"; then 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8061$as_echo "$CC" >&6; } 8062else 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8064$as_echo "no" >&6; } 8065fi 8066 8067 8068fi 8069if test -z "$CC"; then 8070 if test -n "$ac_tool_prefix"; then 8071 for ac_prog in cl.exe 8072 do 8073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8074set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8076$as_echo_n "checking for $ac_word... " >&6; } 8077if ${ac_cv_prog_CC+:} false; then : 8078 $as_echo_n "(cached) " >&6 8079else 8080 if test -n "$CC"; then 8081 ac_cv_prog_CC="$CC" # Let the user override the test. 8082else 8083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8084for as_dir in $PATH 8085do 8086 IFS=$as_save_IFS 8087 test -z "$as_dir" && as_dir=. 8088 for ac_exec_ext in '' $ac_executable_extensions; do 8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8090 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8092 break 2 8093 fi 8094done 8095 done 8096IFS=$as_save_IFS 8097 8098fi 8099fi 8100CC=$ac_cv_prog_CC 8101if test -n "$CC"; then 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8103$as_echo "$CC" >&6; } 8104else 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8106$as_echo "no" >&6; } 8107fi 8108 8109 8110 test -n "$CC" && break 8111 done 8112fi 8113if test -z "$CC"; then 8114 ac_ct_CC=$CC 8115 for ac_prog in cl.exe 8116do 8117 # Extract the first word of "$ac_prog", so it can be a program name with args. 8118set dummy $ac_prog; ac_word=$2 8119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8120$as_echo_n "checking for $ac_word... " >&6; } 8121if ${ac_cv_prog_ac_ct_CC+:} false; then : 8122 $as_echo_n "(cached) " >&6 8123else 8124 if test -n "$ac_ct_CC"; then 8125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 8126else 8127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8128for as_dir in $PATH 8129do 8130 IFS=$as_save_IFS 8131 test -z "$as_dir" && as_dir=. 8132 for ac_exec_ext in '' $ac_executable_extensions; do 8133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8134 ac_cv_prog_ac_ct_CC="$ac_prog" 8135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8136 break 2 8137 fi 8138done 8139 done 8140IFS=$as_save_IFS 8141 8142fi 8143fi 8144ac_ct_CC=$ac_cv_prog_ac_ct_CC 8145if test -n "$ac_ct_CC"; then 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 8147$as_echo "$ac_ct_CC" >&6; } 8148else 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8150$as_echo "no" >&6; } 8151fi 8152 8153 8154 test -n "$ac_ct_CC" && break 8155done 8156 8157 if test "x$ac_ct_CC" = x; then 8158 CC="" 8159 else 8160 case $cross_compiling:$ac_tool_warned in 8161yes:) 8162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8164ac_tool_warned=yes ;; 8165esac 8166 CC=$ac_ct_CC 8167 fi 8168fi 8169 8170fi 8171 8172 8173test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8175as_fn_error $? "no acceptable C compiler found in \$PATH 8176See \`config.log' for more details" "$LINENO" 5; } 8177 8178# Provide some information about the compiler. 8179$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 8180set X $ac_compile 8181ac_compiler=$2 8182for ac_option in --version -v -V -qversion; do 8183 { { ac_try="$ac_compiler $ac_option >&5" 8184case "(($ac_try" in 8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8186 *) ac_try_echo=$ac_try;; 8187esac 8188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8189$as_echo "$ac_try_echo"; } >&5 8190 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 8191 ac_status=$? 8192 if test -s conftest.err; then 8193 sed '10a\ 8194... rest of stderr output deleted ... 8195 10q' conftest.err >conftest.er1 8196 cat conftest.er1 >&5 8197 fi 8198 rm -f conftest.er1 conftest.err 8199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8200 test $ac_status = 0; } 8201done 8202 8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 8204$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 8205if ${ac_cv_c_compiler_gnu+:} false; then : 8206 $as_echo_n "(cached) " >&6 8207else 8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8209/* end confdefs.h. */ 8210 8211int 8212main () 8213{ 8214#ifndef __GNUC__ 8215 choke me 8216#endif 8217 8218 ; 8219 return 0; 8220} 8221_ACEOF 8222if ac_fn_c_try_compile "$LINENO"; then : 8223 ac_compiler_gnu=yes 8224else 8225 ac_compiler_gnu=no 8226fi 8227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8228ac_cv_c_compiler_gnu=$ac_compiler_gnu 8229 8230fi 8231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 8232$as_echo "$ac_cv_c_compiler_gnu" >&6; } 8233if test $ac_compiler_gnu = yes; then 8234 GCC=yes 8235else 8236 GCC= 8237fi 8238ac_test_CFLAGS=${CFLAGS+set} 8239ac_save_CFLAGS=$CFLAGS 8240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 8241$as_echo_n "checking whether $CC accepts -g... " >&6; } 8242if ${ac_cv_prog_cc_g+:} false; then : 8243 $as_echo_n "(cached) " >&6 8244else 8245 ac_save_c_werror_flag=$ac_c_werror_flag 8246 ac_c_werror_flag=yes 8247 ac_cv_prog_cc_g=no 8248 CFLAGS="-g" 8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8250/* end confdefs.h. */ 8251 8252int 8253main () 8254{ 8255 8256 ; 8257 return 0; 8258} 8259_ACEOF 8260if ac_fn_c_try_compile "$LINENO"; then : 8261 ac_cv_prog_cc_g=yes 8262else 8263 CFLAGS="" 8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8265/* end confdefs.h. */ 8266 8267int 8268main () 8269{ 8270 8271 ; 8272 return 0; 8273} 8274_ACEOF 8275if ac_fn_c_try_compile "$LINENO"; then : 8276 8277else 8278 ac_c_werror_flag=$ac_save_c_werror_flag 8279 CFLAGS="-g" 8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8281/* end confdefs.h. */ 8282 8283int 8284main () 8285{ 8286 8287 ; 8288 return 0; 8289} 8290_ACEOF 8291if ac_fn_c_try_compile "$LINENO"; then : 8292 ac_cv_prog_cc_g=yes 8293fi 8294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8295fi 8296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8297fi 8298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8299 ac_c_werror_flag=$ac_save_c_werror_flag 8300fi 8301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 8302$as_echo "$ac_cv_prog_cc_g" >&6; } 8303if test "$ac_test_CFLAGS" = set; then 8304 CFLAGS=$ac_save_CFLAGS 8305elif test $ac_cv_prog_cc_g = yes; then 8306 if test "$GCC" = yes; then 8307 CFLAGS="-g -O2" 8308 else 8309 CFLAGS="-g" 8310 fi 8311else 8312 if test "$GCC" = yes; then 8313 CFLAGS="-O2" 8314 else 8315 CFLAGS= 8316 fi 8317fi 8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 8319$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 8320if ${ac_cv_prog_cc_c89+:} false; then : 8321 $as_echo_n "(cached) " >&6 8322else 8323 ac_cv_prog_cc_c89=no 8324ac_save_CC=$CC 8325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8326/* end confdefs.h. */ 8327#include <stdarg.h> 8328#include <stdio.h> 8329struct stat; 8330/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 8331struct buf { int x; }; 8332FILE * (*rcsopen) (struct buf *, struct stat *, int); 8333static char *e (p, i) 8334 char **p; 8335 int i; 8336{ 8337 return p[i]; 8338} 8339static char *f (char * (*g) (char **, int), char **p, ...) 8340{ 8341 char *s; 8342 va_list v; 8343 va_start (v,p); 8344 s = g (p, va_arg (v,int)); 8345 va_end (v); 8346 return s; 8347} 8348 8349/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 8350 function prototypes and stuff, but not '\xHH' hex character constants. 8351 These don't provoke an error unfortunately, instead are silently treated 8352 as 'x'. The following induces an error, until -std is added to get 8353 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 8354 array size at least. It's necessary to write '\x00'==0 to get something 8355 that's true only with -std. */ 8356int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 8357 8358/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 8359 inside strings and character constants. */ 8360#define FOO(x) 'x' 8361int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 8362 8363int test (int i, double x); 8364struct s1 {int (*f) (int a);}; 8365struct s2 {int (*f) (double a);}; 8366int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 8367int argc; 8368char **argv; 8369int 8370main () 8371{ 8372return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 8373 ; 8374 return 0; 8375} 8376_ACEOF 8377for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 8378 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 8379do 8380 CC="$ac_save_CC $ac_arg" 8381 if ac_fn_c_try_compile "$LINENO"; then : 8382 ac_cv_prog_cc_c89=$ac_arg 8383fi 8384rm -f core conftest.err conftest.$ac_objext 8385 test "x$ac_cv_prog_cc_c89" != "xno" && break 8386done 8387rm -f conftest.$ac_ext 8388CC=$ac_save_CC 8389 8390fi 8391# AC_CACHE_VAL 8392case "x$ac_cv_prog_cc_c89" in 8393 x) 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 8395$as_echo "none needed" >&6; } ;; 8396 xno) 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 8398$as_echo "unsupported" >&6; } ;; 8399 *) 8400 CC="$CC $ac_cv_prog_cc_c89" 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 8402$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 8403esac 8404if test "x$ac_cv_prog_cc_c89" != xno; then : 8405 8406fi 8407 8408ac_ext=c 8409ac_cpp='$CPP $CPPFLAGS' 8410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8412ac_compiler_gnu=$ac_cv_c_compiler_gnu 8413 8414ac_ext=c 8415ac_cpp='$CPP $CPPFLAGS' 8416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8418ac_compiler_gnu=$ac_cv_c_compiler_gnu 8419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8420$as_echo_n "checking how to run the C preprocessor... " >&6; } 8421# On Suns, sometimes $CPP names a directory. 8422if test -n "$CPP" && test -d "$CPP"; then 8423 CPP= 8424fi 8425if test -z "$CPP"; then 8426 if ${ac_cv_prog_CPP+:} false; then : 8427 $as_echo_n "(cached) " >&6 8428else 8429 # Double quotes because CPP needs to be expanded 8430 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8431 do 8432 ac_preproc_ok=false 8433for ac_c_preproc_warn_flag in '' yes 8434do 8435 # Use a header file that comes with gcc, so configuring glibc 8436 # with a fresh cross-compiler works. 8437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8438 # <limits.h> exists even on freestanding compilers. 8439 # On the NeXT, cc -E runs the code through the compiler's parser, 8440 # not just through cpp. "Syntax error" is here to catch this case. 8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8442/* end confdefs.h. */ 8443#ifdef __STDC__ 8444# include <limits.h> 8445#else 8446# include <assert.h> 8447#endif 8448 Syntax error 8449_ACEOF 8450if ac_fn_c_try_cpp "$LINENO"; then : 8451 8452else 8453 # Broken: fails on valid input. 8454continue 8455fi 8456rm -f conftest.err conftest.i conftest.$ac_ext 8457 8458 # OK, works on sane cases. Now check whether nonexistent headers 8459 # can be detected and how. 8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461/* end confdefs.h. */ 8462#include <ac_nonexistent.h> 8463_ACEOF 8464if ac_fn_c_try_cpp "$LINENO"; then : 8465 # Broken: success on invalid input. 8466continue 8467else 8468 # Passes both tests. 8469ac_preproc_ok=: 8470break 8471fi 8472rm -f conftest.err conftest.i conftest.$ac_ext 8473 8474done 8475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8476rm -f conftest.i conftest.err conftest.$ac_ext 8477if $ac_preproc_ok; then : 8478 break 8479fi 8480 8481 done 8482 ac_cv_prog_CPP=$CPP 8483 8484fi 8485 CPP=$ac_cv_prog_CPP 8486else 8487 ac_cv_prog_CPP=$CPP 8488fi 8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8490$as_echo "$CPP" >&6; } 8491ac_preproc_ok=false 8492for ac_c_preproc_warn_flag in '' yes 8493do 8494 # Use a header file that comes with gcc, so configuring glibc 8495 # with a fresh cross-compiler works. 8496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8497 # <limits.h> exists even on freestanding compilers. 8498 # On the NeXT, cc -E runs the code through the compiler's parser, 8499 # not just through cpp. "Syntax error" is here to catch this case. 8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8501/* end confdefs.h. */ 8502#ifdef __STDC__ 8503# include <limits.h> 8504#else 8505# include <assert.h> 8506#endif 8507 Syntax error 8508_ACEOF 8509if ac_fn_c_try_cpp "$LINENO"; then : 8510 8511else 8512 # Broken: fails on valid input. 8513continue 8514fi 8515rm -f conftest.err conftest.i conftest.$ac_ext 8516 8517 # OK, works on sane cases. Now check whether nonexistent headers 8518 # can be detected and how. 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520/* end confdefs.h. */ 8521#include <ac_nonexistent.h> 8522_ACEOF 8523if ac_fn_c_try_cpp "$LINENO"; then : 8524 # Broken: success on invalid input. 8525continue 8526else 8527 # Passes both tests. 8528ac_preproc_ok=: 8529break 8530fi 8531rm -f conftest.err conftest.i conftest.$ac_ext 8532 8533done 8534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8535rm -f conftest.i conftest.err conftest.$ac_ext 8536if $ac_preproc_ok; then : 8537 8538else 8539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8541as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8542See \`config.log' for more details" "$LINENO" 5; } 8543fi 8544 8545ac_ext=c 8546ac_cpp='$CPP $CPPFLAGS' 8547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8549ac_compiler_gnu=$ac_cv_c_compiler_gnu 8550 8551LINKCC=${LINKCC-"$CC"} 8552 8553 8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 8555$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 8556if ${ac_cv_c_const+:} false; then : 8557 $as_echo_n "(cached) " >&6 8558else 8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8560/* end confdefs.h. */ 8561 8562int 8563main () 8564{ 8565 8566#ifndef __cplusplus 8567 /* Ultrix mips cc rejects this sort of thing. */ 8568 typedef int charset[2]; 8569 const charset cs = { 0, 0 }; 8570 /* SunOS 4.1.1 cc rejects this. */ 8571 char const *const *pcpcc; 8572 char **ppc; 8573 /* NEC SVR4.0.2 mips cc rejects this. */ 8574 struct point {int x, y;}; 8575 static struct point const zero = {0,0}; 8576 /* AIX XL C 1.02.0.0 rejects this. 8577 It does not let you subtract one const X* pointer from another in 8578 an arm of an if-expression whose if-part is not a constant 8579 expression */ 8580 const char *g = "string"; 8581 pcpcc = &g + (g ? g-g : 0); 8582 /* HPUX 7.0 cc rejects these. */ 8583 ++pcpcc; 8584 ppc = (char**) pcpcc; 8585 pcpcc = (char const *const *) ppc; 8586 { /* SCO 3.2v4 cc rejects this sort of thing. */ 8587 char tx; 8588 char *t = &tx; 8589 char const *s = 0 ? (char *) 0 : (char const *) 0; 8590 8591 *t++ = 0; 8592 if (s) return 0; 8593 } 8594 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8595 int x[] = {25, 17}; 8596 const int *foo = &x[0]; 8597 ++foo; 8598 } 8599 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8600 typedef const int *iptr; 8601 iptr p = 0; 8602 ++p; 8603 } 8604 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 8605 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8606 struct s { int j; const int *ap[3]; } bx; 8607 struct s *b = &bx; b->j = 5; 8608 } 8609 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8610 const int foo = 10; 8611 if (!foo) return 0; 8612 } 8613 return !cs[0] && !zero.x; 8614#endif 8615 8616 ; 8617 return 0; 8618} 8619_ACEOF 8620if ac_fn_c_try_compile "$LINENO"; then : 8621 ac_cv_c_const=yes 8622else 8623 ac_cv_c_const=no 8624fi 8625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8626fi 8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 8628$as_echo "$ac_cv_c_const" >&6; } 8629if test $ac_cv_c_const = no; then 8630 8631$as_echo "#define const /**/" >>confdefs.h 8632 8633fi 8634 8635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 8636$as_echo_n "checking for inline... " >&6; } 8637if ${ac_cv_c_inline+:} false; then : 8638 $as_echo_n "(cached) " >&6 8639else 8640 ac_cv_c_inline=no 8641for ac_kw in inline __inline__ __inline; do 8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8643/* end confdefs.h. */ 8644#ifndef __cplusplus 8645typedef int foo_t; 8646static $ac_kw foo_t static_foo () {return 0; } 8647$ac_kw foo_t foo () {return 0; } 8648#endif 8649 8650_ACEOF 8651if ac_fn_c_try_compile "$LINENO"; then : 8652 ac_cv_c_inline=$ac_kw 8653fi 8654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8655 test "$ac_cv_c_inline" != no && break 8656done 8657 8658fi 8659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 8660$as_echo "$ac_cv_c_inline" >&6; } 8661 8662case $ac_cv_c_inline in 8663 inline | yes) ;; 8664 *) 8665 case $ac_cv_c_inline in 8666 no) ac_val=;; 8667 *) ac_val=$ac_cv_c_inline;; 8668 esac 8669 cat >>confdefs.h <<_ACEOF 8670#ifndef __cplusplus 8671#define inline $ac_val 8672#endif 8673_ACEOF 8674 ;; 8675esac 8676 8677 8678# libtool stuff for shared/static libraries. 8679# 8680 8681case `pwd` in 8682 *\ * | *\ *) 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8684$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8685esac 8686 8687 8688 8689macro_version='2.4.6' 8690macro_revision='2.4.6' 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704ltmain=$ac_aux_dir/ltmain.sh 8705 8706# Make sure we can run config.sub. 8707$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 8708 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 8709 8710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 8711$as_echo_n "checking build system type... " >&6; } 8712if ${ac_cv_build+:} false; then : 8713 $as_echo_n "(cached) " >&6 8714else 8715 ac_build_alias=$build_alias 8716test "x$ac_build_alias" = x && 8717 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 8718test "x$ac_build_alias" = x && 8719 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 8720ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 8721 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 8722 8723fi 8724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 8725$as_echo "$ac_cv_build" >&6; } 8726case $ac_cv_build in 8727*-*-*) ;; 8728*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 8729esac 8730build=$ac_cv_build 8731ac_save_IFS=$IFS; IFS='-' 8732set x $ac_cv_build 8733shift 8734build_cpu=$1 8735build_vendor=$2 8736shift; shift 8737# Remember, the first character of IFS is used to create $*, 8738# except with old shells: 8739build_os=$* 8740IFS=$ac_save_IFS 8741case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 8742 8743 8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 8745$as_echo_n "checking host system type... " >&6; } 8746if ${ac_cv_host+:} false; then : 8747 $as_echo_n "(cached) " >&6 8748else 8749 if test "x$host_alias" = x; then 8750 ac_cv_host=$ac_cv_build 8751else 8752 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 8753 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 8754fi 8755 8756fi 8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 8758$as_echo "$ac_cv_host" >&6; } 8759case $ac_cv_host in 8760*-*-*) ;; 8761*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 8762esac 8763host=$ac_cv_host 8764ac_save_IFS=$IFS; IFS='-' 8765set x $ac_cv_host 8766shift 8767host_cpu=$1 8768host_vendor=$2 8769shift; shift 8770# Remember, the first character of IFS is used to create $*, 8771# except with old shells: 8772host_os=$* 8773IFS=$ac_save_IFS 8774case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 8775 8776 8777# Backslashify metacharacters that are still active within 8778# double-quoted strings. 8779sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8780 8781# Same as above, but do not quote variable references. 8782double_quote_subst='s/\(["`\\]\)/\\\1/g' 8783 8784# Sed substitution to delay expansion of an escaped shell variable in a 8785# double_quote_subst'ed string. 8786delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8787 8788# Sed substitution to delay expansion of an escaped single quote. 8789delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8790 8791# Sed substitution to avoid accidental globbing in evaled expressions 8792no_glob_subst='s/\*/\\\*/g' 8793 8794ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8795ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8796ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8797 8798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8799$as_echo_n "checking how to print strings... " >&6; } 8800# Test print first, because it will be a builtin if present. 8801if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8802 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8803 ECHO='print -r --' 8804elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8805 ECHO='printf %s\n' 8806else 8807 # Use this function as a fallback that always works. 8808 func_fallback_echo () 8809 { 8810 eval 'cat <<_LTECHO_EOF 8811$1 8812_LTECHO_EOF' 8813 } 8814 ECHO='func_fallback_echo' 8815fi 8816 8817# func_echo_all arg... 8818# Invoke $ECHO with all args, space-separated. 8819func_echo_all () 8820{ 8821 $ECHO "" 8822} 8823 8824case $ECHO in 8825 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8826$as_echo "printf" >&6; } ;; 8827 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8828$as_echo "print -r" >&6; } ;; 8829 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8830$as_echo "cat" >&6; } ;; 8831esac 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8847$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8848if ${ac_cv_path_SED+:} false; then : 8849 $as_echo_n "(cached) " >&6 8850else 8851 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8852 for ac_i in 1 2 3 4 5 6 7; do 8853 ac_script="$ac_script$as_nl$ac_script" 8854 done 8855 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8856 { ac_script=; unset ac_script;} 8857 if test -z "$SED"; then 8858 ac_path_SED_found=false 8859 # Loop through the user's path and test for each of PROGNAME-LIST 8860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8861for as_dir in $PATH 8862do 8863 IFS=$as_save_IFS 8864 test -z "$as_dir" && as_dir=. 8865 for ac_prog in sed gsed; do 8866 for ac_exec_ext in '' $ac_executable_extensions; do 8867 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8868 as_fn_executable_p "$ac_path_SED" || continue 8869# Check for GNU ac_path_SED and select it if it is found. 8870 # Check for GNU $ac_path_SED 8871case `"$ac_path_SED" --version 2>&1` in 8872*GNU*) 8873 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8874*) 8875 ac_count=0 8876 $as_echo_n 0123456789 >"conftest.in" 8877 while : 8878 do 8879 cat "conftest.in" "conftest.in" >"conftest.tmp" 8880 mv "conftest.tmp" "conftest.in" 8881 cp "conftest.in" "conftest.nl" 8882 $as_echo '' >> "conftest.nl" 8883 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8885 as_fn_arith $ac_count + 1 && ac_count=$as_val 8886 if test $ac_count -gt ${ac_path_SED_max-0}; then 8887 # Best one so far, save it but keep looking for a better one 8888 ac_cv_path_SED="$ac_path_SED" 8889 ac_path_SED_max=$ac_count 8890 fi 8891 # 10*(2^10) chars as input seems more than enough 8892 test $ac_count -gt 10 && break 8893 done 8894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8895esac 8896 8897 $ac_path_SED_found && break 3 8898 done 8899 done 8900 done 8901IFS=$as_save_IFS 8902 if test -z "$ac_cv_path_SED"; then 8903 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8904 fi 8905else 8906 ac_cv_path_SED=$SED 8907fi 8908 8909fi 8910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8911$as_echo "$ac_cv_path_SED" >&6; } 8912 SED="$ac_cv_path_SED" 8913 rm -f conftest.sed 8914 8915test -z "$SED" && SED=sed 8916Xsed="$SED -e 1s/^X//" 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8929$as_echo_n "checking for fgrep... " >&6; } 8930if ${ac_cv_path_FGREP+:} false; then : 8931 $as_echo_n "(cached) " >&6 8932else 8933 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8934 then ac_cv_path_FGREP="$GREP -F" 8935 else 8936 if test -z "$FGREP"; then 8937 ac_path_FGREP_found=false 8938 # Loop through the user's path and test for each of PROGNAME-LIST 8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8940for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8941do 8942 IFS=$as_save_IFS 8943 test -z "$as_dir" && as_dir=. 8944 for ac_prog in fgrep; do 8945 for ac_exec_ext in '' $ac_executable_extensions; do 8946 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 8947 as_fn_executable_p "$ac_path_FGREP" || continue 8948# Check for GNU ac_path_FGREP and select it if it is found. 8949 # Check for GNU $ac_path_FGREP 8950case `"$ac_path_FGREP" --version 2>&1` in 8951*GNU*) 8952 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8953*) 8954 ac_count=0 8955 $as_echo_n 0123456789 >"conftest.in" 8956 while : 8957 do 8958 cat "conftest.in" "conftest.in" >"conftest.tmp" 8959 mv "conftest.tmp" "conftest.in" 8960 cp "conftest.in" "conftest.nl" 8961 $as_echo 'FGREP' >> "conftest.nl" 8962 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8964 as_fn_arith $ac_count + 1 && ac_count=$as_val 8965 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8966 # Best one so far, save it but keep looking for a better one 8967 ac_cv_path_FGREP="$ac_path_FGREP" 8968 ac_path_FGREP_max=$ac_count 8969 fi 8970 # 10*(2^10) chars as input seems more than enough 8971 test $ac_count -gt 10 && break 8972 done 8973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8974esac 8975 8976 $ac_path_FGREP_found && break 3 8977 done 8978 done 8979 done 8980IFS=$as_save_IFS 8981 if test -z "$ac_cv_path_FGREP"; then 8982 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8983 fi 8984else 8985 ac_cv_path_FGREP=$FGREP 8986fi 8987 8988 fi 8989fi 8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8991$as_echo "$ac_cv_path_FGREP" >&6; } 8992 FGREP="$ac_cv_path_FGREP" 8993 8994 8995test -z "$GREP" && GREP=grep 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015# Check whether --with-gnu-ld was given. 9016if test "${with_gnu_ld+set}" = set; then : 9017 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 9018else 9019 with_gnu_ld=no 9020fi 9021 9022ac_prog=ld 9023if test yes = "$GCC"; then 9024 # Check if gcc -print-prog-name=ld gives a path. 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 9026$as_echo_n "checking for ld used by $CC... " >&6; } 9027 case $host in 9028 *-*-mingw*) 9029 # gcc leaves a trailing carriage return, which upsets mingw 9030 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9031 *) 9032 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9033 esac 9034 case $ac_prog in 9035 # Accept absolute paths. 9036 [\\/]* | ?:[\\/]*) 9037 re_direlt='/[^/][^/]*/\.\./' 9038 # Canonicalize the pathname of ld 9039 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 9040 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 9041 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 9042 done 9043 test -z "$LD" && LD=$ac_prog 9044 ;; 9045 "") 9046 # If it fails, then pretend we aren't using GCC. 9047 ac_prog=ld 9048 ;; 9049 *) 9050 # If it is relative, then search for the first ld in PATH. 9051 with_gnu_ld=unknown 9052 ;; 9053 esac 9054elif test yes = "$with_gnu_ld"; then 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 9056$as_echo_n "checking for GNU ld... " >&6; } 9057else 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 9059$as_echo_n "checking for non-GNU ld... " >&6; } 9060fi 9061if ${lt_cv_path_LD+:} false; then : 9062 $as_echo_n "(cached) " >&6 9063else 9064 if test -z "$LD"; then 9065 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9066 for ac_dir in $PATH; do 9067 IFS=$lt_save_ifs 9068 test -z "$ac_dir" && ac_dir=. 9069 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9070 lt_cv_path_LD=$ac_dir/$ac_prog 9071 # Check to see if the program is GNU ld. I'd rather use --version, 9072 # but apparently some variants of GNU ld only accept -v. 9073 # Break only if it was the GNU/non-GNU ld that we prefer. 9074 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9075 *GNU* | *'with BFD'*) 9076 test no != "$with_gnu_ld" && break 9077 ;; 9078 *) 9079 test yes != "$with_gnu_ld" && break 9080 ;; 9081 esac 9082 fi 9083 done 9084 IFS=$lt_save_ifs 9085else 9086 lt_cv_path_LD=$LD # Let the user override the test with a path. 9087fi 9088fi 9089 9090LD=$lt_cv_path_LD 9091if test -n "$LD"; then 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 9093$as_echo "$LD" >&6; } 9094else 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9096$as_echo "no" >&6; } 9097fi 9098test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 9099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 9100$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 9101if ${lt_cv_prog_gnu_ld+:} false; then : 9102 $as_echo_n "(cached) " >&6 9103else 9104 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9105case `$LD -v 2>&1 </dev/null` in 9106*GNU* | *'with BFD'*) 9107 lt_cv_prog_gnu_ld=yes 9108 ;; 9109*) 9110 lt_cv_prog_gnu_ld=no 9111 ;; 9112esac 9113fi 9114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 9115$as_echo "$lt_cv_prog_gnu_ld" >&6; } 9116with_gnu_ld=$lt_cv_prog_gnu_ld 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 9127$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 9128if ${lt_cv_path_NM+:} false; then : 9129 $as_echo_n "(cached) " >&6 9130else 9131 if test -n "$NM"; then 9132 # Let the user override the test. 9133 lt_cv_path_NM=$NM 9134else 9135 lt_nm_to_check=${ac_tool_prefix}nm 9136 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 9137 lt_nm_to_check="$lt_nm_to_check nm" 9138 fi 9139 for lt_tmp_nm in $lt_nm_to_check; do 9140 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9141 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 9142 IFS=$lt_save_ifs 9143 test -z "$ac_dir" && ac_dir=. 9144 tmp_nm=$ac_dir/$lt_tmp_nm 9145 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 9146 # Check to see if the nm accepts a BSD-compat flag. 9147 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 9148 # nm: unknown option "B" ignored 9149 # Tru64's nm complains that /dev/null is an invalid object file 9150 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 9151 case $build_os in 9152 mingw*) lt_bad_file=conftest.nm/nofile ;; 9153 *) lt_bad_file=/dev/null ;; 9154 esac 9155 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 9156 *$lt_bad_file* | *'Invalid file or object type'*) 9157 lt_cv_path_NM="$tmp_nm -B" 9158 break 2 9159 ;; 9160 *) 9161 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 9162 */dev/null*) 9163 lt_cv_path_NM="$tmp_nm -p" 9164 break 2 9165 ;; 9166 *) 9167 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 9168 continue # so that we can try to find one that supports BSD flags 9169 ;; 9170 esac 9171 ;; 9172 esac 9173 fi 9174 done 9175 IFS=$lt_save_ifs 9176 done 9177 : ${lt_cv_path_NM=no} 9178fi 9179fi 9180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 9181$as_echo "$lt_cv_path_NM" >&6; } 9182if test no != "$lt_cv_path_NM"; then 9183 NM=$lt_cv_path_NM 9184else 9185 # Didn't find any BSD compatible name lister, look for dumpbin. 9186 if test -n "$DUMPBIN"; then : 9187 # Let the user override the test. 9188 else 9189 if test -n "$ac_tool_prefix"; then 9190 for ac_prog in dumpbin "link -dump" 9191 do 9192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9193set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9195$as_echo_n "checking for $ac_word... " >&6; } 9196if ${ac_cv_prog_DUMPBIN+:} false; then : 9197 $as_echo_n "(cached) " >&6 9198else 9199 if test -n "$DUMPBIN"; then 9200 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 9201else 9202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9203for as_dir in $PATH 9204do 9205 IFS=$as_save_IFS 9206 test -z "$as_dir" && as_dir=. 9207 for ac_exec_ext in '' $ac_executable_extensions; do 9208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9209 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 9210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9211 break 2 9212 fi 9213done 9214 done 9215IFS=$as_save_IFS 9216 9217fi 9218fi 9219DUMPBIN=$ac_cv_prog_DUMPBIN 9220if test -n "$DUMPBIN"; then 9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 9222$as_echo "$DUMPBIN" >&6; } 9223else 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9225$as_echo "no" >&6; } 9226fi 9227 9228 9229 test -n "$DUMPBIN" && break 9230 done 9231fi 9232if test -z "$DUMPBIN"; then 9233 ac_ct_DUMPBIN=$DUMPBIN 9234 for ac_prog in dumpbin "link -dump" 9235do 9236 # Extract the first word of "$ac_prog", so it can be a program name with args. 9237set dummy $ac_prog; ac_word=$2 9238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9239$as_echo_n "checking for $ac_word... " >&6; } 9240if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 9241 $as_echo_n "(cached) " >&6 9242else 9243 if test -n "$ac_ct_DUMPBIN"; then 9244 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 9245else 9246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9247for as_dir in $PATH 9248do 9249 IFS=$as_save_IFS 9250 test -z "$as_dir" && as_dir=. 9251 for ac_exec_ext in '' $ac_executable_extensions; do 9252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9253 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9255 break 2 9256 fi 9257done 9258 done 9259IFS=$as_save_IFS 9260 9261fi 9262fi 9263ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 9264if test -n "$ac_ct_DUMPBIN"; then 9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 9266$as_echo "$ac_ct_DUMPBIN" >&6; } 9267else 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9269$as_echo "no" >&6; } 9270fi 9271 9272 9273 test -n "$ac_ct_DUMPBIN" && break 9274done 9275 9276 if test "x$ac_ct_DUMPBIN" = x; then 9277 DUMPBIN=":" 9278 else 9279 case $cross_compiling:$ac_tool_warned in 9280yes:) 9281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9283ac_tool_warned=yes ;; 9284esac 9285 DUMPBIN=$ac_ct_DUMPBIN 9286 fi 9287fi 9288 9289 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 9290 *COFF*) 9291 DUMPBIN="$DUMPBIN -symbols -headers" 9292 ;; 9293 *) 9294 DUMPBIN=: 9295 ;; 9296 esac 9297 fi 9298 9299 if test : != "$DUMPBIN"; then 9300 NM=$DUMPBIN 9301 fi 9302fi 9303test -z "$NM" && NM=nm 9304 9305 9306 9307 9308 9309 9310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 9311$as_echo_n "checking the name lister ($NM) interface... " >&6; } 9312if ${lt_cv_nm_interface+:} false; then : 9313 $as_echo_n "(cached) " >&6 9314else 9315 lt_cv_nm_interface="BSD nm" 9316 echo "int some_variable = 0;" > conftest.$ac_ext 9317 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 9318 (eval "$ac_compile" 2>conftest.err) 9319 cat conftest.err >&5 9320 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 9321 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 9322 cat conftest.err >&5 9323 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 9324 cat conftest.out >&5 9325 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 9326 lt_cv_nm_interface="MS dumpbin" 9327 fi 9328 rm -f conftest* 9329fi 9330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 9331$as_echo "$lt_cv_nm_interface" >&6; } 9332 9333# find the maximum length of command line arguments 9334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 9335$as_echo_n "checking the maximum length of command line arguments... " >&6; } 9336if ${lt_cv_sys_max_cmd_len+:} false; then : 9337 $as_echo_n "(cached) " >&6 9338else 9339 i=0 9340 teststring=ABCD 9341 9342 case $build_os in 9343 msdosdjgpp*) 9344 # On DJGPP, this test can blow up pretty badly due to problems in libc 9345 # (any single argument exceeding 2000 bytes causes a buffer overrun 9346 # during glob expansion). Even if it were fixed, the result of this 9347 # check would be larger than it should be. 9348 lt_cv_sys_max_cmd_len=12288; # 12K is about right 9349 ;; 9350 9351 gnu*) 9352 # Under GNU Hurd, this test is not required because there is 9353 # no limit to the length of command line arguments. 9354 # Libtool will interpret -1 as no limit whatsoever 9355 lt_cv_sys_max_cmd_len=-1; 9356 ;; 9357 9358 cygwin* | mingw* | cegcc*) 9359 # On Win9x/ME, this test blows up -- it succeeds, but takes 9360 # about 5 minutes as the teststring grows exponentially. 9361 # Worse, since 9x/ME are not pre-emptively multitasking, 9362 # you end up with a "frozen" computer, even though with patience 9363 # the test eventually succeeds (with a max line length of 256k). 9364 # Instead, let's just punt: use the minimum linelength reported by 9365 # all of the supported platforms: 8192 (on NT/2K/XP). 9366 lt_cv_sys_max_cmd_len=8192; 9367 ;; 9368 9369 mint*) 9370 # On MiNT this can take a long time and run out of memory. 9371 lt_cv_sys_max_cmd_len=8192; 9372 ;; 9373 9374 amigaos*) 9375 # On AmigaOS with pdksh, this test takes hours, literally. 9376 # So we just punt and use a minimum line length of 8192. 9377 lt_cv_sys_max_cmd_len=8192; 9378 ;; 9379 9380 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 9381 # This has been around since 386BSD, at least. Likely further. 9382 if test -x /sbin/sysctl; then 9383 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 9384 elif test -x /usr/sbin/sysctl; then 9385 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 9386 else 9387 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 9388 fi 9389 # And add a safety zone 9390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9392 ;; 9393 9394 interix*) 9395 # We know the value 262144 and hardcode it with a safety zone (like BSD) 9396 lt_cv_sys_max_cmd_len=196608 9397 ;; 9398 9399 os2*) 9400 # The test takes a long time on OS/2. 9401 lt_cv_sys_max_cmd_len=8192 9402 ;; 9403 9404 osf*) 9405 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 9406 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 9407 # nice to cause kernel panics so lets avoid the loop below. 9408 # First set a reasonable default. 9409 lt_cv_sys_max_cmd_len=16384 9410 # 9411 if test -x /sbin/sysconfig; then 9412 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 9413 *1*) lt_cv_sys_max_cmd_len=-1 ;; 9414 esac 9415 fi 9416 ;; 9417 sco3.2v5*) 9418 lt_cv_sys_max_cmd_len=102400 9419 ;; 9420 sysv5* | sco5v6* | sysv4.2uw2*) 9421 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 9422 if test -n "$kargmax"; then 9423 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 9424 else 9425 lt_cv_sys_max_cmd_len=32768 9426 fi 9427 ;; 9428 *) 9429 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 9430 if test -n "$lt_cv_sys_max_cmd_len" && \ 9431 test undefined != "$lt_cv_sys_max_cmd_len"; then 9432 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9434 else 9435 # Make teststring a little bigger before we do anything with it. 9436 # a 1K string should be a reasonable start. 9437 for i in 1 2 3 4 5 6 7 8; do 9438 teststring=$teststring$teststring 9439 done 9440 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9441 # If test is not a shell built-in, we'll probably end up computing a 9442 # maximum length that is only half of the actual maximum length, but 9443 # we can't tell. 9444 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 9445 = "X$teststring$teststring"; } >/dev/null 2>&1 && 9446 test 17 != "$i" # 1/2 MB should be enough 9447 do 9448 i=`expr $i + 1` 9449 teststring=$teststring$teststring 9450 done 9451 # Only check the string length outside the loop. 9452 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 9453 teststring= 9454 # Add a significant safety factor because C++ compilers can tack on 9455 # massive amounts of additional arguments before passing them to the 9456 # linker. It appears as though 1/2 is a usable value. 9457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9458 fi 9459 ;; 9460 esac 9461 9462fi 9463 9464if test -n "$lt_cv_sys_max_cmd_len"; then 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 9466$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 9467else 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 9469$as_echo "none" >&6; } 9470fi 9471max_cmd_len=$lt_cv_sys_max_cmd_len 9472 9473 9474 9475 9476 9477 9478: ${CP="cp -f"} 9479: ${MV="mv -f"} 9480: ${RM="rm -f"} 9481 9482if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9483 lt_unset=unset 9484else 9485 lt_unset=false 9486fi 9487 9488 9489 9490 9491 9492# test EBCDIC or ASCII 9493case `echo X|tr X '\101'` in 9494 A) # ASCII based system 9495 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9496 lt_SP2NL='tr \040 \012' 9497 lt_NL2SP='tr \015\012 \040\040' 9498 ;; 9499 *) # EBCDIC based system 9500 lt_SP2NL='tr \100 \n' 9501 lt_NL2SP='tr \r\n \100\100' 9502 ;; 9503esac 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 9514$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 9515if ${lt_cv_to_host_file_cmd+:} false; then : 9516 $as_echo_n "(cached) " >&6 9517else 9518 case $host in 9519 *-*-mingw* ) 9520 case $build in 9521 *-*-mingw* ) # actually msys 9522 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9523 ;; 9524 *-*-cygwin* ) 9525 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9526 ;; 9527 * ) # otherwise, assume *nix 9528 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9529 ;; 9530 esac 9531 ;; 9532 *-*-cygwin* ) 9533 case $build in 9534 *-*-mingw* ) # actually msys 9535 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9536 ;; 9537 *-*-cygwin* ) 9538 lt_cv_to_host_file_cmd=func_convert_file_noop 9539 ;; 9540 * ) # otherwise, assume *nix 9541 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9542 ;; 9543 esac 9544 ;; 9545 * ) # unhandled hosts (and "normal" native builds) 9546 lt_cv_to_host_file_cmd=func_convert_file_noop 9547 ;; 9548esac 9549 9550fi 9551 9552to_host_file_cmd=$lt_cv_to_host_file_cmd 9553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 9554$as_echo "$lt_cv_to_host_file_cmd" >&6; } 9555 9556 9557 9558 9559 9560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 9561$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 9562if ${lt_cv_to_tool_file_cmd+:} false; then : 9563 $as_echo_n "(cached) " >&6 9564else 9565 #assume ordinary cross tools, or native build. 9566lt_cv_to_tool_file_cmd=func_convert_file_noop 9567case $host in 9568 *-*-mingw* ) 9569 case $build in 9570 *-*-mingw* ) # actually msys 9571 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9572 ;; 9573 esac 9574 ;; 9575esac 9576 9577fi 9578 9579to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 9581$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 9582 9583 9584 9585 9586 9587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9588$as_echo_n "checking for $LD option to reload object files... " >&6; } 9589if ${lt_cv_ld_reload_flag+:} false; then : 9590 $as_echo_n "(cached) " >&6 9591else 9592 lt_cv_ld_reload_flag='-r' 9593fi 9594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9595$as_echo "$lt_cv_ld_reload_flag" >&6; } 9596reload_flag=$lt_cv_ld_reload_flag 9597case $reload_flag in 9598"" | " "*) ;; 9599*) reload_flag=" $reload_flag" ;; 9600esac 9601reload_cmds='$LD$reload_flag -o $output$reload_objs' 9602case $host_os in 9603 cygwin* | mingw* | pw32* | cegcc*) 9604 if test yes != "$GCC"; then 9605 reload_cmds=false 9606 fi 9607 ;; 9608 darwin*) 9609 if test yes = "$GCC"; then 9610 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 9611 else 9612 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9613 fi 9614 ;; 9615esac 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625if test -n "$ac_tool_prefix"; then 9626 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9627set dummy ${ac_tool_prefix}objdump; ac_word=$2 9628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9629$as_echo_n "checking for $ac_word... " >&6; } 9630if ${ac_cv_prog_OBJDUMP+:} false; then : 9631 $as_echo_n "(cached) " >&6 9632else 9633 if test -n "$OBJDUMP"; then 9634 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9635else 9636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9637for as_dir in $PATH 9638do 9639 IFS=$as_save_IFS 9640 test -z "$as_dir" && as_dir=. 9641 for ac_exec_ext in '' $ac_executable_extensions; do 9642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9643 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9645 break 2 9646 fi 9647done 9648 done 9649IFS=$as_save_IFS 9650 9651fi 9652fi 9653OBJDUMP=$ac_cv_prog_OBJDUMP 9654if test -n "$OBJDUMP"; then 9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9656$as_echo "$OBJDUMP" >&6; } 9657else 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9659$as_echo "no" >&6; } 9660fi 9661 9662 9663fi 9664if test -z "$ac_cv_prog_OBJDUMP"; then 9665 ac_ct_OBJDUMP=$OBJDUMP 9666 # Extract the first word of "objdump", so it can be a program name with args. 9667set dummy objdump; ac_word=$2 9668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9669$as_echo_n "checking for $ac_word... " >&6; } 9670if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9671 $as_echo_n "(cached) " >&6 9672else 9673 if test -n "$ac_ct_OBJDUMP"; then 9674 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9675else 9676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9677for as_dir in $PATH 9678do 9679 IFS=$as_save_IFS 9680 test -z "$as_dir" && as_dir=. 9681 for ac_exec_ext in '' $ac_executable_extensions; do 9682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9683 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9685 break 2 9686 fi 9687done 9688 done 9689IFS=$as_save_IFS 9690 9691fi 9692fi 9693ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9694if test -n "$ac_ct_OBJDUMP"; then 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9696$as_echo "$ac_ct_OBJDUMP" >&6; } 9697else 9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9699$as_echo "no" >&6; } 9700fi 9701 9702 if test "x$ac_ct_OBJDUMP" = x; then 9703 OBJDUMP="false" 9704 else 9705 case $cross_compiling:$ac_tool_warned in 9706yes:) 9707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9709ac_tool_warned=yes ;; 9710esac 9711 OBJDUMP=$ac_ct_OBJDUMP 9712 fi 9713else 9714 OBJDUMP="$ac_cv_prog_OBJDUMP" 9715fi 9716 9717test -z "$OBJDUMP" && OBJDUMP=objdump 9718 9719 9720 9721 9722 9723 9724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 9725$as_echo_n "checking how to recognize dependent libraries... " >&6; } 9726if ${lt_cv_deplibs_check_method+:} false; then : 9727 $as_echo_n "(cached) " >&6 9728else 9729 lt_cv_file_magic_cmd='$MAGIC_CMD' 9730lt_cv_file_magic_test_file= 9731lt_cv_deplibs_check_method='unknown' 9732# Need to set the preceding variable on all platforms that support 9733# interlibrary dependencies. 9734# 'none' -- dependencies not supported. 9735# 'unknown' -- same as none, but documents that we really don't know. 9736# 'pass_all' -- all dependencies passed with no checks. 9737# 'test_compile' -- check by making test program. 9738# 'file_magic [[regex]]' -- check by looking for files in library path 9739# that responds to the $file_magic_cmd with a given extended regex. 9740# If you have 'file' or equivalent on your system and you're not sure 9741# whether 'pass_all' will *always* work, you probably want this one. 9742 9743case $host_os in 9744aix[4-9]*) 9745 lt_cv_deplibs_check_method=pass_all 9746 ;; 9747 9748beos*) 9749 lt_cv_deplibs_check_method=pass_all 9750 ;; 9751 9752bsdi[45]*) 9753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9754 lt_cv_file_magic_cmd='/usr/bin/file -L' 9755 lt_cv_file_magic_test_file=/shlib/libc.so 9756 ;; 9757 9758cygwin*) 9759 # func_win32_libid is a shell function defined in ltmain.sh 9760 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9761 lt_cv_file_magic_cmd='func_win32_libid' 9762 ;; 9763 9764mingw* | pw32*) 9765 # Base MSYS/MinGW do not provide the 'file' command needed by 9766 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9767 # unless we find 'file', for example because we are cross-compiling. 9768 if ( file / ) >/dev/null 2>&1; then 9769 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9770 lt_cv_file_magic_cmd='func_win32_libid' 9771 else 9772 # Keep this pattern in sync with the one in func_win32_libid. 9773 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 9774 lt_cv_file_magic_cmd='$OBJDUMP -f' 9775 fi 9776 ;; 9777 9778cegcc*) 9779 # use the weaker test based on 'objdump'. See mingw*. 9780 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9781 lt_cv_file_magic_cmd='$OBJDUMP -f' 9782 ;; 9783 9784darwin* | rhapsody*) 9785 lt_cv_deplibs_check_method=pass_all 9786 ;; 9787 9788freebsd* | dragonfly*) 9789 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9790 case $host_cpu in 9791 i*86 ) 9792 # Not sure whether the presence of OpenBSD here was a mistake. 9793 # Let's accept both of them until this is cleared up. 9794 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 9795 lt_cv_file_magic_cmd=/usr/bin/file 9796 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 9797 ;; 9798 esac 9799 else 9800 lt_cv_deplibs_check_method=pass_all 9801 fi 9802 ;; 9803 9804haiku*) 9805 lt_cv_deplibs_check_method=pass_all 9806 ;; 9807 9808hpux10.20* | hpux11*) 9809 lt_cv_file_magic_cmd=/usr/bin/file 9810 case $host_cpu in 9811 ia64*) 9812 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 9813 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 9814 ;; 9815 hppa*64*) 9816 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]' 9817 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 9818 ;; 9819 *) 9820 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 9821 lt_cv_file_magic_test_file=/usr/lib/libc.sl 9822 ;; 9823 esac 9824 ;; 9825 9826interix[3-9]*) 9827 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 9828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 9829 ;; 9830 9831irix5* | irix6* | nonstopux*) 9832 case $LD in 9833 *-32|*"-32 ") libmagic=32-bit;; 9834 *-n32|*"-n32 ") libmagic=N32;; 9835 *-64|*"-64 ") libmagic=64-bit;; 9836 *) libmagic=never-match;; 9837 esac 9838 lt_cv_deplibs_check_method=pass_all 9839 ;; 9840 9841# This must be glibc/ELF. 9842linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9843 lt_cv_deplibs_check_method=pass_all 9844 ;; 9845 9846netbsd*) 9847 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9849 else 9850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 9851 fi 9852 ;; 9853 9854newos6*) 9855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 9856 lt_cv_file_magic_cmd=/usr/bin/file 9857 lt_cv_file_magic_test_file=/usr/lib/libnls.so 9858 ;; 9859 9860*nto* | *qnx*) 9861 lt_cv_deplibs_check_method=pass_all 9862 ;; 9863 9864openbsd* | bitrig*) 9865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 9867 else 9868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9869 fi 9870 ;; 9871 9872osf3* | osf4* | osf5*) 9873 lt_cv_deplibs_check_method=pass_all 9874 ;; 9875 9876rdos*) 9877 lt_cv_deplibs_check_method=pass_all 9878 ;; 9879 9880solaris*) 9881 lt_cv_deplibs_check_method=pass_all 9882 ;; 9883 9884sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9885 lt_cv_deplibs_check_method=pass_all 9886 ;; 9887 9888sysv4 | sysv4.3*) 9889 case $host_vendor in 9890 motorola) 9891 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]' 9892 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9893 ;; 9894 ncr) 9895 lt_cv_deplibs_check_method=pass_all 9896 ;; 9897 sequent) 9898 lt_cv_file_magic_cmd='/bin/file' 9899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9900 ;; 9901 sni) 9902 lt_cv_file_magic_cmd='/bin/file' 9903 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9904 lt_cv_file_magic_test_file=/lib/libc.so 9905 ;; 9906 siemens) 9907 lt_cv_deplibs_check_method=pass_all 9908 ;; 9909 pc) 9910 lt_cv_deplibs_check_method=pass_all 9911 ;; 9912 esac 9913 ;; 9914 9915tpf*) 9916 lt_cv_deplibs_check_method=pass_all 9917 ;; 9918os2*) 9919 lt_cv_deplibs_check_method=pass_all 9920 ;; 9921esac 9922 9923fi 9924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9925$as_echo "$lt_cv_deplibs_check_method" >&6; } 9926 9927file_magic_glob= 9928want_nocaseglob=no 9929if test "$build" = "$host"; then 9930 case $host_os in 9931 mingw* | pw32*) 9932 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 9933 want_nocaseglob=yes 9934 else 9935 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 9936 fi 9937 ;; 9938 esac 9939fi 9940 9941file_magic_cmd=$lt_cv_file_magic_cmd 9942deplibs_check_method=$lt_cv_deplibs_check_method 9943test -z "$deplibs_check_method" && deplibs_check_method=unknown 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966if test -n "$ac_tool_prefix"; then 9967 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9968set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9970$as_echo_n "checking for $ac_word... " >&6; } 9971if ${ac_cv_prog_DLLTOOL+:} false; then : 9972 $as_echo_n "(cached) " >&6 9973else 9974 if test -n "$DLLTOOL"; then 9975 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9976else 9977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9978for as_dir in $PATH 9979do 9980 IFS=$as_save_IFS 9981 test -z "$as_dir" && as_dir=. 9982 for ac_exec_ext in '' $ac_executable_extensions; do 9983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9984 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9986 break 2 9987 fi 9988done 9989 done 9990IFS=$as_save_IFS 9991 9992fi 9993fi 9994DLLTOOL=$ac_cv_prog_DLLTOOL 9995if test -n "$DLLTOOL"; then 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9997$as_echo "$DLLTOOL" >&6; } 9998else 9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10000$as_echo "no" >&6; } 10001fi 10002 10003 10004fi 10005if test -z "$ac_cv_prog_DLLTOOL"; then 10006 ac_ct_DLLTOOL=$DLLTOOL 10007 # Extract the first word of "dlltool", so it can be a program name with args. 10008set dummy dlltool; ac_word=$2 10009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10010$as_echo_n "checking for $ac_word... " >&6; } 10011if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 10012 $as_echo_n "(cached) " >&6 10013else 10014 if test -n "$ac_ct_DLLTOOL"; then 10015 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10016else 10017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10018for as_dir in $PATH 10019do 10020 IFS=$as_save_IFS 10021 test -z "$as_dir" && as_dir=. 10022 for ac_exec_ext in '' $ac_executable_extensions; do 10023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10024 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10026 break 2 10027 fi 10028done 10029 done 10030IFS=$as_save_IFS 10031 10032fi 10033fi 10034ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10035if test -n "$ac_ct_DLLTOOL"; then 10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10037$as_echo "$ac_ct_DLLTOOL" >&6; } 10038else 10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10040$as_echo "no" >&6; } 10041fi 10042 10043 if test "x$ac_ct_DLLTOOL" = x; then 10044 DLLTOOL="false" 10045 else 10046 case $cross_compiling:$ac_tool_warned in 10047yes:) 10048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10050ac_tool_warned=yes ;; 10051esac 10052 DLLTOOL=$ac_ct_DLLTOOL 10053 fi 10054else 10055 DLLTOOL="$ac_cv_prog_DLLTOOL" 10056fi 10057 10058test -z "$DLLTOOL" && DLLTOOL=dlltool 10059 10060 10061 10062 10063 10064 10065 10066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 10067$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 10068if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 10069 $as_echo_n "(cached) " >&6 10070else 10071 lt_cv_sharedlib_from_linklib_cmd='unknown' 10072 10073case $host_os in 10074cygwin* | mingw* | pw32* | cegcc*) 10075 # two different shell functions defined in ltmain.sh; 10076 # decide which one to use based on capabilities of $DLLTOOL 10077 case `$DLLTOOL --help 2>&1` in 10078 *--identify-strict*) 10079 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 10080 ;; 10081 *) 10082 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 10083 ;; 10084 esac 10085 ;; 10086*) 10087 # fallback: assume linklib IS sharedlib 10088 lt_cv_sharedlib_from_linklib_cmd=$ECHO 10089 ;; 10090esac 10091 10092fi 10093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 10094$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 10095sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 10096test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 10097 10098 10099 10100 10101 10102 10103 10104if test -n "$ac_tool_prefix"; then 10105 for ac_prog in ar 10106 do 10107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10108set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10110$as_echo_n "checking for $ac_word... " >&6; } 10111if ${ac_cv_prog_AR+:} false; then : 10112 $as_echo_n "(cached) " >&6 10113else 10114 if test -n "$AR"; then 10115 ac_cv_prog_AR="$AR" # Let the user override the test. 10116else 10117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10118for as_dir in $PATH 10119do 10120 IFS=$as_save_IFS 10121 test -z "$as_dir" && as_dir=. 10122 for ac_exec_ext in '' $ac_executable_extensions; do 10123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10124 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 10125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10126 break 2 10127 fi 10128done 10129 done 10130IFS=$as_save_IFS 10131 10132fi 10133fi 10134AR=$ac_cv_prog_AR 10135if test -n "$AR"; then 10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 10137$as_echo "$AR" >&6; } 10138else 10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10140$as_echo "no" >&6; } 10141fi 10142 10143 10144 test -n "$AR" && break 10145 done 10146fi 10147if test -z "$AR"; then 10148 ac_ct_AR=$AR 10149 for ac_prog in ar 10150do 10151 # Extract the first word of "$ac_prog", so it can be a program name with args. 10152set dummy $ac_prog; ac_word=$2 10153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10154$as_echo_n "checking for $ac_word... " >&6; } 10155if ${ac_cv_prog_ac_ct_AR+:} false; then : 10156 $as_echo_n "(cached) " >&6 10157else 10158 if test -n "$ac_ct_AR"; then 10159 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10160else 10161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10162for as_dir in $PATH 10163do 10164 IFS=$as_save_IFS 10165 test -z "$as_dir" && as_dir=. 10166 for ac_exec_ext in '' $ac_executable_extensions; do 10167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10168 ac_cv_prog_ac_ct_AR="$ac_prog" 10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10170 break 2 10171 fi 10172done 10173 done 10174IFS=$as_save_IFS 10175 10176fi 10177fi 10178ac_ct_AR=$ac_cv_prog_ac_ct_AR 10179if test -n "$ac_ct_AR"; then 10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 10181$as_echo "$ac_ct_AR" >&6; } 10182else 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10184$as_echo "no" >&6; } 10185fi 10186 10187 10188 test -n "$ac_ct_AR" && break 10189done 10190 10191 if test "x$ac_ct_AR" = x; then 10192 AR="false" 10193 else 10194 case $cross_compiling:$ac_tool_warned in 10195yes:) 10196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10198ac_tool_warned=yes ;; 10199esac 10200 AR=$ac_ct_AR 10201 fi 10202fi 10203 10204: ${AR=ar} 10205: ${AR_FLAGS=cru} 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 10218$as_echo_n "checking for archiver @FILE support... " >&6; } 10219if ${lt_cv_ar_at_file+:} false; then : 10220 $as_echo_n "(cached) " >&6 10221else 10222 lt_cv_ar_at_file=no 10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10224/* end confdefs.h. */ 10225 10226int 10227main () 10228{ 10229 10230 ; 10231 return 0; 10232} 10233_ACEOF 10234if ac_fn_c_try_compile "$LINENO"; then : 10235 echo conftest.$ac_objext > conftest.lst 10236 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 10237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10238 (eval $lt_ar_try) 2>&5 10239 ac_status=$? 10240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10241 test $ac_status = 0; } 10242 if test 0 -eq "$ac_status"; then 10243 # Ensure the archiver fails upon bogus file names. 10244 rm -f conftest.$ac_objext libconftest.a 10245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10246 (eval $lt_ar_try) 2>&5 10247 ac_status=$? 10248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10249 test $ac_status = 0; } 10250 if test 0 -ne "$ac_status"; then 10251 lt_cv_ar_at_file=@ 10252 fi 10253 fi 10254 rm -f conftest.* libconftest.a 10255 10256fi 10257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10258 10259fi 10260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 10261$as_echo "$lt_cv_ar_at_file" >&6; } 10262 10263if test no = "$lt_cv_ar_at_file"; then 10264 archiver_list_spec= 10265else 10266 archiver_list_spec=$lt_cv_ar_at_file 10267fi 10268 10269 10270 10271 10272 10273 10274 10275if test -n "$ac_tool_prefix"; then 10276 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10277set dummy ${ac_tool_prefix}strip; ac_word=$2 10278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10279$as_echo_n "checking for $ac_word... " >&6; } 10280if ${ac_cv_prog_STRIP+:} false; then : 10281 $as_echo_n "(cached) " >&6 10282else 10283 if test -n "$STRIP"; then 10284 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10285else 10286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10287for as_dir in $PATH 10288do 10289 IFS=$as_save_IFS 10290 test -z "$as_dir" && as_dir=. 10291 for ac_exec_ext in '' $ac_executable_extensions; do 10292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10293 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10295 break 2 10296 fi 10297done 10298 done 10299IFS=$as_save_IFS 10300 10301fi 10302fi 10303STRIP=$ac_cv_prog_STRIP 10304if test -n "$STRIP"; then 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10306$as_echo "$STRIP" >&6; } 10307else 10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10309$as_echo "no" >&6; } 10310fi 10311 10312 10313fi 10314if test -z "$ac_cv_prog_STRIP"; then 10315 ac_ct_STRIP=$STRIP 10316 # Extract the first word of "strip", so it can be a program name with args. 10317set dummy strip; ac_word=$2 10318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10319$as_echo_n "checking for $ac_word... " >&6; } 10320if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 10321 $as_echo_n "(cached) " >&6 10322else 10323 if test -n "$ac_ct_STRIP"; then 10324 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10325else 10326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10327for as_dir in $PATH 10328do 10329 IFS=$as_save_IFS 10330 test -z "$as_dir" && as_dir=. 10331 for ac_exec_ext in '' $ac_executable_extensions; do 10332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10333 ac_cv_prog_ac_ct_STRIP="strip" 10334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10335 break 2 10336 fi 10337done 10338 done 10339IFS=$as_save_IFS 10340 10341fi 10342fi 10343ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10344if test -n "$ac_ct_STRIP"; then 10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10346$as_echo "$ac_ct_STRIP" >&6; } 10347else 10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10349$as_echo "no" >&6; } 10350fi 10351 10352 if test "x$ac_ct_STRIP" = x; then 10353 STRIP=":" 10354 else 10355 case $cross_compiling:$ac_tool_warned in 10356yes:) 10357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10359ac_tool_warned=yes ;; 10360esac 10361 STRIP=$ac_ct_STRIP 10362 fi 10363else 10364 STRIP="$ac_cv_prog_STRIP" 10365fi 10366 10367test -z "$STRIP" && STRIP=: 10368 10369 10370 10371 10372 10373 10374if test -n "$ac_tool_prefix"; then 10375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10376set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10378$as_echo_n "checking for $ac_word... " >&6; } 10379if ${ac_cv_prog_RANLIB+:} false; then : 10380 $as_echo_n "(cached) " >&6 10381else 10382 if test -n "$RANLIB"; then 10383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10384else 10385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10386for as_dir in $PATH 10387do 10388 IFS=$as_save_IFS 10389 test -z "$as_dir" && as_dir=. 10390 for ac_exec_ext in '' $ac_executable_extensions; do 10391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10392 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10394 break 2 10395 fi 10396done 10397 done 10398IFS=$as_save_IFS 10399 10400fi 10401fi 10402RANLIB=$ac_cv_prog_RANLIB 10403if test -n "$RANLIB"; then 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10405$as_echo "$RANLIB" >&6; } 10406else 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10408$as_echo "no" >&6; } 10409fi 10410 10411 10412fi 10413if test -z "$ac_cv_prog_RANLIB"; then 10414 ac_ct_RANLIB=$RANLIB 10415 # Extract the first word of "ranlib", so it can be a program name with args. 10416set dummy ranlib; ac_word=$2 10417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10418$as_echo_n "checking for $ac_word... " >&6; } 10419if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 10420 $as_echo_n "(cached) " >&6 10421else 10422 if test -n "$ac_ct_RANLIB"; then 10423 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10424else 10425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10426for as_dir in $PATH 10427do 10428 IFS=$as_save_IFS 10429 test -z "$as_dir" && as_dir=. 10430 for ac_exec_ext in '' $ac_executable_extensions; do 10431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10432 ac_cv_prog_ac_ct_RANLIB="ranlib" 10433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10434 break 2 10435 fi 10436done 10437 done 10438IFS=$as_save_IFS 10439 10440fi 10441fi 10442ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10443if test -n "$ac_ct_RANLIB"; then 10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10445$as_echo "$ac_ct_RANLIB" >&6; } 10446else 10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10448$as_echo "no" >&6; } 10449fi 10450 10451 if test "x$ac_ct_RANLIB" = x; then 10452 RANLIB=":" 10453 else 10454 case $cross_compiling:$ac_tool_warned in 10455yes:) 10456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10458ac_tool_warned=yes ;; 10459esac 10460 RANLIB=$ac_ct_RANLIB 10461 fi 10462else 10463 RANLIB="$ac_cv_prog_RANLIB" 10464fi 10465 10466test -z "$RANLIB" && RANLIB=: 10467 10468 10469 10470 10471 10472 10473# Determine commands to create old-style static archives. 10474old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 10475old_postinstall_cmds='chmod 644 $oldlib' 10476old_postuninstall_cmds= 10477 10478if test -n "$RANLIB"; then 10479 case $host_os in 10480 bitrig* | openbsd*) 10481 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 10482 ;; 10483 *) 10484 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 10485 ;; 10486 esac 10487 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 10488fi 10489 10490case $host_os in 10491 darwin*) 10492 lock_old_archive_extraction=yes ;; 10493 *) 10494 lock_old_archive_extraction=no ;; 10495esac 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517for ac_prog in gawk mawk nawk awk 10518do 10519 # Extract the first word of "$ac_prog", so it can be a program name with args. 10520set dummy $ac_prog; ac_word=$2 10521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10522$as_echo_n "checking for $ac_word... " >&6; } 10523if ${ac_cv_prog_AWK+:} false; then : 10524 $as_echo_n "(cached) " >&6 10525else 10526 if test -n "$AWK"; then 10527 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10528else 10529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10530for as_dir in $PATH 10531do 10532 IFS=$as_save_IFS 10533 test -z "$as_dir" && as_dir=. 10534 for ac_exec_ext in '' $ac_executable_extensions; do 10535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10536 ac_cv_prog_AWK="$ac_prog" 10537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10538 break 2 10539 fi 10540done 10541 done 10542IFS=$as_save_IFS 10543 10544fi 10545fi 10546AWK=$ac_cv_prog_AWK 10547if test -n "$AWK"; then 10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 10549$as_echo "$AWK" >&6; } 10550else 10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10552$as_echo "no" >&6; } 10553fi 10554 10555 10556 test -n "$AWK" && break 10557done 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577# If no C compiler was specified, use CC. 10578LTCC=${LTCC-"$CC"} 10579 10580# If no C compiler flags were specified, use CFLAGS. 10581LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10582 10583# Allow CC to be a program name with arguments. 10584compiler=$CC 10585 10586 10587# Check for command to grab the raw symbol name followed by C symbol from nm. 10588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 10589$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 10590if ${lt_cv_sys_global_symbol_pipe+:} false; then : 10591 $as_echo_n "(cached) " >&6 10592else 10593 10594# These are sane defaults that work on at least a few old systems. 10595# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10596 10597# Character class describing NM global symbol codes. 10598symcode='[BCDEGRST]' 10599 10600# Regexp to match symbols that can be accessed directly from C. 10601sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10602 10603# Define system-specific variables. 10604case $host_os in 10605aix*) 10606 symcode='[BCDT]' 10607 ;; 10608cygwin* | mingw* | pw32* | cegcc*) 10609 symcode='[ABCDGISTW]' 10610 ;; 10611hpux*) 10612 if test ia64 = "$host_cpu"; then 10613 symcode='[ABCDEGRST]' 10614 fi 10615 ;; 10616irix* | nonstopux*) 10617 symcode='[BCDEGRST]' 10618 ;; 10619osf*) 10620 symcode='[BCDEGQRST]' 10621 ;; 10622solaris*) 10623 symcode='[BDRT]' 10624 ;; 10625sco3.2v5*) 10626 symcode='[DT]' 10627 ;; 10628sysv4.2uw2*) 10629 symcode='[DT]' 10630 ;; 10631sysv5* | sco5v6* | unixware* | OpenUNIX*) 10632 symcode='[ABDT]' 10633 ;; 10634sysv4) 10635 symcode='[DFNSTU]' 10636 ;; 10637esac 10638 10639# If we're using GNU nm, then use its standard symbol codes. 10640case `$NM -V 2>&1` in 10641*GNU* | *'with BFD'*) 10642 symcode='[ABCDGIRSTW]' ;; 10643esac 10644 10645if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10646 # Gets list of data symbols to import. 10647 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 10648 # Adjust the below global symbol transforms to fixup imported variables. 10649 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 10650 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 10651 lt_c_name_lib_hook="\ 10652 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 10653 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 10654else 10655 # Disable hooks by default. 10656 lt_cv_sys_global_symbol_to_import= 10657 lt_cdecl_hook= 10658 lt_c_name_hook= 10659 lt_c_name_lib_hook= 10660fi 10661 10662# Transform an extracted symbol line into a proper C declaration. 10663# Some systems (esp. on ia64) link data and code symbols differently, 10664# so use this general approach. 10665lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 10666$lt_cdecl_hook\ 10667" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 10668" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 10669 10670# Transform an extracted symbol line into symbol name and symbol address 10671lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 10672$lt_c_name_hook\ 10673" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10674" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 10675 10676# Transform an extracted symbol line into symbol name with lib prefix and 10677# symbol address. 10678lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 10679$lt_c_name_lib_hook\ 10680" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10681" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 10682" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 10683 10684# Handle CRLF in mingw tool chain 10685opt_cr= 10686case $build_os in 10687mingw*) 10688 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10689 ;; 10690esac 10691 10692# Try without a prefix underscore, then with it. 10693for ac_symprfx in "" "_"; do 10694 10695 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10696 symxfrm="\\1 $ac_symprfx\\2 \\2" 10697 10698 # Write the raw and C identifiers. 10699 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10700 # Fake it for dumpbin and say T for any non-static function, 10701 # D for any global variable and I for any imported variable. 10702 # Also find C++ and __fastcall symbols from MSVC++, 10703 # which start with @ or ?. 10704 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10705" {last_section=section; section=\$ 3};"\ 10706" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 10707" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10708" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 10709" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 10710" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 10711" \$ 0!~/External *\|/{next};"\ 10712" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10713" {if(hide[section]) next};"\ 10714" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 10715" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 10716" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 10717" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 10718" ' prfx=^$ac_symprfx" 10719 else 10720 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10721 fi 10722 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 10723 10724 # Check to see that the pipe works correctly. 10725 pipe_works=no 10726 10727 rm -f conftest* 10728 cat > conftest.$ac_ext <<_LT_EOF 10729#ifdef __cplusplus 10730extern "C" { 10731#endif 10732char nm_test_var; 10733void nm_test_func(void); 10734void nm_test_func(void){} 10735#ifdef __cplusplus 10736} 10737#endif 10738int main(){nm_test_var='a';nm_test_func();return(0);} 10739_LT_EOF 10740 10741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10742 (eval $ac_compile) 2>&5 10743 ac_status=$? 10744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10745 test $ac_status = 0; }; then 10746 # Now try to grab the symbols. 10747 nlist=conftest.nm 10748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 10749 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 10750 ac_status=$? 10751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10752 test $ac_status = 0; } && test -s "$nlist"; then 10753 # Try sorting and uniquifying the output. 10754 if sort "$nlist" | uniq > "$nlist"T; then 10755 mv -f "$nlist"T "$nlist" 10756 else 10757 rm -f "$nlist"T 10758 fi 10759 10760 # Make sure that we snagged all the symbols we need. 10761 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10762 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10763 cat <<_LT_EOF > conftest.$ac_ext 10764/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10765#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 10766/* DATA imports from DLLs on WIN32 can't be const, because runtime 10767 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10768# define LT_DLSYM_CONST 10769#elif defined __osf__ 10770/* This system does not cope well with relocations in const data. */ 10771# define LT_DLSYM_CONST 10772#else 10773# define LT_DLSYM_CONST const 10774#endif 10775 10776#ifdef __cplusplus 10777extern "C" { 10778#endif 10779 10780_LT_EOF 10781 # Now generate the symbol file. 10782 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10783 10784 cat <<_LT_EOF >> conftest.$ac_ext 10785 10786/* The mapping between symbol names and symbols. */ 10787LT_DLSYM_CONST struct { 10788 const char *name; 10789 void *address; 10790} 10791lt__PROGRAM__LTX_preloaded_symbols[] = 10792{ 10793 { "@PROGRAM@", (void *) 0 }, 10794_LT_EOF 10795 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10796 cat <<\_LT_EOF >> conftest.$ac_ext 10797 {0, (void *) 0} 10798}; 10799 10800/* This works around a problem in FreeBSD linker */ 10801#ifdef FREEBSD_WORKAROUND 10802static const void *lt_preloaded_setup() { 10803 return lt__PROGRAM__LTX_preloaded_symbols; 10804} 10805#endif 10806 10807#ifdef __cplusplus 10808} 10809#endif 10810_LT_EOF 10811 # Now try linking the two files. 10812 mv conftest.$ac_objext conftstm.$ac_objext 10813 lt_globsym_save_LIBS=$LIBS 10814 lt_globsym_save_CFLAGS=$CFLAGS 10815 LIBS=conftstm.$ac_objext 10816 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10818 (eval $ac_link) 2>&5 10819 ac_status=$? 10820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10821 test $ac_status = 0; } && test -s conftest$ac_exeext; then 10822 pipe_works=yes 10823 fi 10824 LIBS=$lt_globsym_save_LIBS 10825 CFLAGS=$lt_globsym_save_CFLAGS 10826 else 10827 echo "cannot find nm_test_func in $nlist" >&5 10828 fi 10829 else 10830 echo "cannot find nm_test_var in $nlist" >&5 10831 fi 10832 else 10833 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10834 fi 10835 else 10836 echo "$progname: failed program was:" >&5 10837 cat conftest.$ac_ext >&5 10838 fi 10839 rm -rf conftest* conftst* 10840 10841 # Do not use the global_symbol_pipe unless it works. 10842 if test yes = "$pipe_works"; then 10843 break 10844 else 10845 lt_cv_sys_global_symbol_pipe= 10846 fi 10847done 10848 10849fi 10850 10851if test -z "$lt_cv_sys_global_symbol_pipe"; then 10852 lt_cv_sys_global_symbol_to_cdecl= 10853fi 10854if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10856$as_echo "failed" >&6; } 10857else 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10859$as_echo "ok" >&6; } 10860fi 10861 10862# Response file support. 10863if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10864 nm_file_list_spec='@' 10865elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 10866 nm_file_list_spec='@' 10867fi 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 10906$as_echo_n "checking for sysroot... " >&6; } 10907 10908# Check whether --with-sysroot was given. 10909if test "${with_sysroot+set}" = set; then : 10910 withval=$with_sysroot; 10911else 10912 with_sysroot=no 10913fi 10914 10915 10916lt_sysroot= 10917case $with_sysroot in #( 10918 yes) 10919 if test yes = "$GCC"; then 10920 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 10921 fi 10922 ;; #( 10923 /*) 10924 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 10925 ;; #( 10926 no|'') 10927 ;; #( 10928 *) 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 10930$as_echo "$with_sysroot" >&6; } 10931 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10932 ;; 10933esac 10934 10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10936$as_echo "${lt_sysroot:-no}" >&6; } 10937 10938 10939 10940 10941 10942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 10943$as_echo_n "checking for a working dd... " >&6; } 10944if ${ac_cv_path_lt_DD+:} false; then : 10945 $as_echo_n "(cached) " >&6 10946else 10947 printf 0123456789abcdef0123456789abcdef >conftest.i 10948cat conftest.i conftest.i >conftest2.i 10949: ${lt_DD:=$DD} 10950if test -z "$lt_DD"; then 10951 ac_path_lt_DD_found=false 10952 # Loop through the user's path and test for each of PROGNAME-LIST 10953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10954for as_dir in $PATH 10955do 10956 IFS=$as_save_IFS 10957 test -z "$as_dir" && as_dir=. 10958 for ac_prog in dd; do 10959 for ac_exec_ext in '' $ac_executable_extensions; do 10960 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 10961 as_fn_executable_p "$ac_path_lt_DD" || continue 10962if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10963 cmp -s conftest.i conftest.out \ 10964 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 10965fi 10966 $ac_path_lt_DD_found && break 3 10967 done 10968 done 10969 done 10970IFS=$as_save_IFS 10971 if test -z "$ac_cv_path_lt_DD"; then 10972 : 10973 fi 10974else 10975 ac_cv_path_lt_DD=$lt_DD 10976fi 10977 10978rm -f conftest.i conftest2.i conftest.out 10979fi 10980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 10981$as_echo "$ac_cv_path_lt_DD" >&6; } 10982 10983 10984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 10985$as_echo_n "checking how to truncate binary pipes... " >&6; } 10986if ${lt_cv_truncate_bin+:} false; then : 10987 $as_echo_n "(cached) " >&6 10988else 10989 printf 0123456789abcdef0123456789abcdef >conftest.i 10990cat conftest.i conftest.i >conftest2.i 10991lt_cv_truncate_bin= 10992if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10993 cmp -s conftest.i conftest.out \ 10994 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 10995fi 10996rm -f conftest.i conftest2.i conftest.out 10997test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 10998fi 10999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 11000$as_echo "$lt_cv_truncate_bin" >&6; } 11001 11002 11003 11004 11005 11006 11007 11008# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 11009func_cc_basename () 11010{ 11011 for cc_temp in $*""; do 11012 case $cc_temp in 11013 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11014 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11015 \-*) ;; 11016 *) break;; 11017 esac 11018 done 11019 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11020} 11021 11022# Check whether --enable-libtool-lock was given. 11023if test "${enable_libtool_lock+set}" = set; then : 11024 enableval=$enable_libtool_lock; 11025fi 11026 11027test no = "$enable_libtool_lock" || enable_libtool_lock=yes 11028 11029# Some flags need to be propagated to the compiler or linker for good 11030# libtool support. 11031case $host in 11032ia64-*-hpux*) 11033 # Find out what ABI is being produced by ac_compile, and set mode 11034 # options accordingly. 11035 echo 'int i;' > conftest.$ac_ext 11036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11037 (eval $ac_compile) 2>&5 11038 ac_status=$? 11039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11040 test $ac_status = 0; }; then 11041 case `/usr/bin/file conftest.$ac_objext` in 11042 *ELF-32*) 11043 HPUX_IA64_MODE=32 11044 ;; 11045 *ELF-64*) 11046 HPUX_IA64_MODE=64 11047 ;; 11048 esac 11049 fi 11050 rm -rf conftest* 11051 ;; 11052*-*-irix6*) 11053 # Find out what ABI is being produced by ac_compile, and set linker 11054 # options accordingly. 11055 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11057 (eval $ac_compile) 2>&5 11058 ac_status=$? 11059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11060 test $ac_status = 0; }; then 11061 if test yes = "$lt_cv_prog_gnu_ld"; then 11062 case `/usr/bin/file conftest.$ac_objext` in 11063 *32-bit*) 11064 LD="${LD-ld} -melf32bsmip" 11065 ;; 11066 *N32*) 11067 LD="${LD-ld} -melf32bmipn32" 11068 ;; 11069 *64-bit*) 11070 LD="${LD-ld} -melf64bmip" 11071 ;; 11072 esac 11073 else 11074 case `/usr/bin/file conftest.$ac_objext` in 11075 *32-bit*) 11076 LD="${LD-ld} -32" 11077 ;; 11078 *N32*) 11079 LD="${LD-ld} -n32" 11080 ;; 11081 *64-bit*) 11082 LD="${LD-ld} -64" 11083 ;; 11084 esac 11085 fi 11086 fi 11087 rm -rf conftest* 11088 ;; 11089 11090mips64*-*linux*) 11091 # Find out what ABI is being produced by ac_compile, and set linker 11092 # options accordingly. 11093 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11095 (eval $ac_compile) 2>&5 11096 ac_status=$? 11097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11098 test $ac_status = 0; }; then 11099 emul=elf 11100 case `/usr/bin/file conftest.$ac_objext` in 11101 *32-bit*) 11102 emul="${emul}32" 11103 ;; 11104 *64-bit*) 11105 emul="${emul}64" 11106 ;; 11107 esac 11108 case `/usr/bin/file conftest.$ac_objext` in 11109 *MSB*) 11110 emul="${emul}btsmip" 11111 ;; 11112 *LSB*) 11113 emul="${emul}ltsmip" 11114 ;; 11115 esac 11116 case `/usr/bin/file conftest.$ac_objext` in 11117 *N32*) 11118 emul="${emul}n32" 11119 ;; 11120 esac 11121 LD="${LD-ld} -m $emul" 11122 fi 11123 rm -rf conftest* 11124 ;; 11125 11126x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 11127s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 11128 # Find out what ABI is being produced by ac_compile, and set linker 11129 # options accordingly. Note that the listed cases only cover the 11130 # situations where additional linker options are needed (such as when 11131 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 11132 # vice versa); the common cases where no linker options are needed do 11133 # not appear in the list. 11134 echo 'int i;' > conftest.$ac_ext 11135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11136 (eval $ac_compile) 2>&5 11137 ac_status=$? 11138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11139 test $ac_status = 0; }; then 11140 case `/usr/bin/file conftest.o` in 11141 *32-bit*) 11142 case $host in 11143 x86_64-*kfreebsd*-gnu) 11144 LD="${LD-ld} -m elf_i386_fbsd" 11145 ;; 11146 x86_64-*linux*) 11147 case `/usr/bin/file conftest.o` in 11148 *x86-64*) 11149 LD="${LD-ld} -m elf32_x86_64" 11150 ;; 11151 *) 11152 LD="${LD-ld} -m elf_i386" 11153 ;; 11154 esac 11155 ;; 11156 powerpc64le-*linux*) 11157 LD="${LD-ld} -m elf32lppclinux" 11158 ;; 11159 powerpc64-*linux*) 11160 LD="${LD-ld} -m elf32ppclinux" 11161 ;; 11162 s390x-*linux*) 11163 LD="${LD-ld} -m elf_s390" 11164 ;; 11165 sparc64-*linux*) 11166 LD="${LD-ld} -m elf32_sparc" 11167 ;; 11168 esac 11169 ;; 11170 *64-bit*) 11171 case $host in 11172 x86_64-*kfreebsd*-gnu) 11173 LD="${LD-ld} -m elf_x86_64_fbsd" 11174 ;; 11175 x86_64-*linux*) 11176 LD="${LD-ld} -m elf_x86_64" 11177 ;; 11178 powerpcle-*linux*) 11179 LD="${LD-ld} -m elf64lppc" 11180 ;; 11181 powerpc-*linux*) 11182 LD="${LD-ld} -m elf64ppc" 11183 ;; 11184 s390*-*linux*|s390*-*tpf*) 11185 LD="${LD-ld} -m elf64_s390" 11186 ;; 11187 sparc*-*linux*) 11188 LD="${LD-ld} -m elf64_sparc" 11189 ;; 11190 esac 11191 ;; 11192 esac 11193 fi 11194 rm -rf conftest* 11195 ;; 11196 11197*-*-sco3.2v5*) 11198 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 11199 SAVE_CFLAGS=$CFLAGS 11200 CFLAGS="$CFLAGS -belf" 11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 11202$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 11203if ${lt_cv_cc_needs_belf+:} false; then : 11204 $as_echo_n "(cached) " >&6 11205else 11206 ac_ext=c 11207ac_cpp='$CPP $CPPFLAGS' 11208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11210ac_compiler_gnu=$ac_cv_c_compiler_gnu 11211 11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11213/* end confdefs.h. */ 11214 11215int 11216main () 11217{ 11218 11219 ; 11220 return 0; 11221} 11222_ACEOF 11223if ac_fn_c_try_link "$LINENO"; then : 11224 lt_cv_cc_needs_belf=yes 11225else 11226 lt_cv_cc_needs_belf=no 11227fi 11228rm -f core conftest.err conftest.$ac_objext \ 11229 conftest$ac_exeext conftest.$ac_ext 11230 ac_ext=c 11231ac_cpp='$CPP $CPPFLAGS' 11232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11234ac_compiler_gnu=$ac_cv_c_compiler_gnu 11235 11236fi 11237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 11238$as_echo "$lt_cv_cc_needs_belf" >&6; } 11239 if test yes != "$lt_cv_cc_needs_belf"; then 11240 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 11241 CFLAGS=$SAVE_CFLAGS 11242 fi 11243 ;; 11244*-*solaris*) 11245 # Find out what ABI is being produced by ac_compile, and set linker 11246 # options accordingly. 11247 echo 'int i;' > conftest.$ac_ext 11248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11249 (eval $ac_compile) 2>&5 11250 ac_status=$? 11251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11252 test $ac_status = 0; }; then 11253 case `/usr/bin/file conftest.o` in 11254 *64-bit*) 11255 case $lt_cv_prog_gnu_ld in 11256 yes*) 11257 case $host in 11258 i?86-*-solaris*|x86_64-*-solaris*) 11259 LD="${LD-ld} -m elf_x86_64" 11260 ;; 11261 sparc*-*-solaris*) 11262 LD="${LD-ld} -m elf64_sparc" 11263 ;; 11264 esac 11265 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 11266 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 11267 LD=${LD-ld}_sol2 11268 fi 11269 ;; 11270 *) 11271 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 11272 LD="${LD-ld} -64" 11273 fi 11274 ;; 11275 esac 11276 ;; 11277 esac 11278 fi 11279 rm -rf conftest* 11280 ;; 11281esac 11282 11283need_locks=$enable_libtool_lock 11284 11285if test -n "$ac_tool_prefix"; then 11286 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 11287set dummy ${ac_tool_prefix}mt; ac_word=$2 11288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11289$as_echo_n "checking for $ac_word... " >&6; } 11290if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 11291 $as_echo_n "(cached) " >&6 11292else 11293 if test -n "$MANIFEST_TOOL"; then 11294 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 11295else 11296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11297for as_dir in $PATH 11298do 11299 IFS=$as_save_IFS 11300 test -z "$as_dir" && as_dir=. 11301 for ac_exec_ext in '' $ac_executable_extensions; do 11302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11303 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11305 break 2 11306 fi 11307done 11308 done 11309IFS=$as_save_IFS 11310 11311fi 11312fi 11313MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 11314if test -n "$MANIFEST_TOOL"; then 11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 11316$as_echo "$MANIFEST_TOOL" >&6; } 11317else 11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11319$as_echo "no" >&6; } 11320fi 11321 11322 11323fi 11324if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 11325 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 11326 # Extract the first word of "mt", so it can be a program name with args. 11327set dummy mt; ac_word=$2 11328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11329$as_echo_n "checking for $ac_word... " >&6; } 11330if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 11331 $as_echo_n "(cached) " >&6 11332else 11333 if test -n "$ac_ct_MANIFEST_TOOL"; then 11334 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 11335else 11336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11337for as_dir in $PATH 11338do 11339 IFS=$as_save_IFS 11340 test -z "$as_dir" && as_dir=. 11341 for ac_exec_ext in '' $ac_executable_extensions; do 11342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11343 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 11344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11345 break 2 11346 fi 11347done 11348 done 11349IFS=$as_save_IFS 11350 11351fi 11352fi 11353ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 11354if test -n "$ac_ct_MANIFEST_TOOL"; then 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 11356$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 11357else 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11359$as_echo "no" >&6; } 11360fi 11361 11362 if test "x$ac_ct_MANIFEST_TOOL" = x; then 11363 MANIFEST_TOOL=":" 11364 else 11365 case $cross_compiling:$ac_tool_warned in 11366yes:) 11367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11369ac_tool_warned=yes ;; 11370esac 11371 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 11372 fi 11373else 11374 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 11375fi 11376 11377test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 11378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 11379$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 11380if ${lt_cv_path_mainfest_tool+:} false; then : 11381 $as_echo_n "(cached) " >&6 11382else 11383 lt_cv_path_mainfest_tool=no 11384 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 11385 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 11386 cat conftest.err >&5 11387 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 11388 lt_cv_path_mainfest_tool=yes 11389 fi 11390 rm -f conftest* 11391fi 11392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 11393$as_echo "$lt_cv_path_mainfest_tool" >&6; } 11394if test yes != "$lt_cv_path_mainfest_tool"; then 11395 MANIFEST_TOOL=: 11396fi 11397 11398 11399 11400 11401 11402 11403 case $host_os in 11404 rhapsody* | darwin*) 11405 if test -n "$ac_tool_prefix"; then 11406 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 11407set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 11408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11409$as_echo_n "checking for $ac_word... " >&6; } 11410if ${ac_cv_prog_DSYMUTIL+:} false; then : 11411 $as_echo_n "(cached) " >&6 11412else 11413 if test -n "$DSYMUTIL"; then 11414 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 11415else 11416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11417for as_dir in $PATH 11418do 11419 IFS=$as_save_IFS 11420 test -z "$as_dir" && as_dir=. 11421 for ac_exec_ext in '' $ac_executable_extensions; do 11422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11423 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 11424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11425 break 2 11426 fi 11427done 11428 done 11429IFS=$as_save_IFS 11430 11431fi 11432fi 11433DSYMUTIL=$ac_cv_prog_DSYMUTIL 11434if test -n "$DSYMUTIL"; then 11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 11436$as_echo "$DSYMUTIL" >&6; } 11437else 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11439$as_echo "no" >&6; } 11440fi 11441 11442 11443fi 11444if test -z "$ac_cv_prog_DSYMUTIL"; then 11445 ac_ct_DSYMUTIL=$DSYMUTIL 11446 # Extract the first word of "dsymutil", so it can be a program name with args. 11447set dummy dsymutil; ac_word=$2 11448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11449$as_echo_n "checking for $ac_word... " >&6; } 11450if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 11451 $as_echo_n "(cached) " >&6 11452else 11453 if test -n "$ac_ct_DSYMUTIL"; then 11454 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 11455else 11456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11457for as_dir in $PATH 11458do 11459 IFS=$as_save_IFS 11460 test -z "$as_dir" && as_dir=. 11461 for ac_exec_ext in '' $ac_executable_extensions; do 11462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11463 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 11464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11465 break 2 11466 fi 11467done 11468 done 11469IFS=$as_save_IFS 11470 11471fi 11472fi 11473ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 11474if test -n "$ac_ct_DSYMUTIL"; then 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 11476$as_echo "$ac_ct_DSYMUTIL" >&6; } 11477else 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11479$as_echo "no" >&6; } 11480fi 11481 11482 if test "x$ac_ct_DSYMUTIL" = x; then 11483 DSYMUTIL=":" 11484 else 11485 case $cross_compiling:$ac_tool_warned in 11486yes:) 11487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11489ac_tool_warned=yes ;; 11490esac 11491 DSYMUTIL=$ac_ct_DSYMUTIL 11492 fi 11493else 11494 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 11495fi 11496 11497 if test -n "$ac_tool_prefix"; then 11498 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 11499set dummy ${ac_tool_prefix}nmedit; ac_word=$2 11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11501$as_echo_n "checking for $ac_word... " >&6; } 11502if ${ac_cv_prog_NMEDIT+:} false; then : 11503 $as_echo_n "(cached) " >&6 11504else 11505 if test -n "$NMEDIT"; then 11506 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 11507else 11508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11509for as_dir in $PATH 11510do 11511 IFS=$as_save_IFS 11512 test -z "$as_dir" && as_dir=. 11513 for ac_exec_ext in '' $ac_executable_extensions; do 11514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11515 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11517 break 2 11518 fi 11519done 11520 done 11521IFS=$as_save_IFS 11522 11523fi 11524fi 11525NMEDIT=$ac_cv_prog_NMEDIT 11526if test -n "$NMEDIT"; then 11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 11528$as_echo "$NMEDIT" >&6; } 11529else 11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11531$as_echo "no" >&6; } 11532fi 11533 11534 11535fi 11536if test -z "$ac_cv_prog_NMEDIT"; then 11537 ac_ct_NMEDIT=$NMEDIT 11538 # Extract the first word of "nmedit", so it can be a program name with args. 11539set dummy nmedit; ac_word=$2 11540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11541$as_echo_n "checking for $ac_word... " >&6; } 11542if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 11543 $as_echo_n "(cached) " >&6 11544else 11545 if test -n "$ac_ct_NMEDIT"; then 11546 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 11547else 11548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11549for as_dir in $PATH 11550do 11551 IFS=$as_save_IFS 11552 test -z "$as_dir" && as_dir=. 11553 for ac_exec_ext in '' $ac_executable_extensions; do 11554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11555 ac_cv_prog_ac_ct_NMEDIT="nmedit" 11556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11557 break 2 11558 fi 11559done 11560 done 11561IFS=$as_save_IFS 11562 11563fi 11564fi 11565ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 11566if test -n "$ac_ct_NMEDIT"; then 11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 11568$as_echo "$ac_ct_NMEDIT" >&6; } 11569else 11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11571$as_echo "no" >&6; } 11572fi 11573 11574 if test "x$ac_ct_NMEDIT" = x; then 11575 NMEDIT=":" 11576 else 11577 case $cross_compiling:$ac_tool_warned in 11578yes:) 11579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11581ac_tool_warned=yes ;; 11582esac 11583 NMEDIT=$ac_ct_NMEDIT 11584 fi 11585else 11586 NMEDIT="$ac_cv_prog_NMEDIT" 11587fi 11588 11589 if test -n "$ac_tool_prefix"; then 11590 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 11591set dummy ${ac_tool_prefix}lipo; ac_word=$2 11592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11593$as_echo_n "checking for $ac_word... " >&6; } 11594if ${ac_cv_prog_LIPO+:} false; then : 11595 $as_echo_n "(cached) " >&6 11596else 11597 if test -n "$LIPO"; then 11598 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 11599else 11600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11601for as_dir in $PATH 11602do 11603 IFS=$as_save_IFS 11604 test -z "$as_dir" && as_dir=. 11605 for ac_exec_ext in '' $ac_executable_extensions; do 11606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11607 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 11608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11609 break 2 11610 fi 11611done 11612 done 11613IFS=$as_save_IFS 11614 11615fi 11616fi 11617LIPO=$ac_cv_prog_LIPO 11618if test -n "$LIPO"; then 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 11620$as_echo "$LIPO" >&6; } 11621else 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11623$as_echo "no" >&6; } 11624fi 11625 11626 11627fi 11628if test -z "$ac_cv_prog_LIPO"; then 11629 ac_ct_LIPO=$LIPO 11630 # Extract the first word of "lipo", so it can be a program name with args. 11631set dummy lipo; ac_word=$2 11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11633$as_echo_n "checking for $ac_word... " >&6; } 11634if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 11635 $as_echo_n "(cached) " >&6 11636else 11637 if test -n "$ac_ct_LIPO"; then 11638 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 11639else 11640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11641for as_dir in $PATH 11642do 11643 IFS=$as_save_IFS 11644 test -z "$as_dir" && as_dir=. 11645 for ac_exec_ext in '' $ac_executable_extensions; do 11646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11647 ac_cv_prog_ac_ct_LIPO="lipo" 11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11649 break 2 11650 fi 11651done 11652 done 11653IFS=$as_save_IFS 11654 11655fi 11656fi 11657ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 11658if test -n "$ac_ct_LIPO"; then 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 11660$as_echo "$ac_ct_LIPO" >&6; } 11661else 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11663$as_echo "no" >&6; } 11664fi 11665 11666 if test "x$ac_ct_LIPO" = x; then 11667 LIPO=":" 11668 else 11669 case $cross_compiling:$ac_tool_warned in 11670yes:) 11671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11673ac_tool_warned=yes ;; 11674esac 11675 LIPO=$ac_ct_LIPO 11676 fi 11677else 11678 LIPO="$ac_cv_prog_LIPO" 11679fi 11680 11681 if test -n "$ac_tool_prefix"; then 11682 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 11683set dummy ${ac_tool_prefix}otool; ac_word=$2 11684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11685$as_echo_n "checking for $ac_word... " >&6; } 11686if ${ac_cv_prog_OTOOL+:} false; then : 11687 $as_echo_n "(cached) " >&6 11688else 11689 if test -n "$OTOOL"; then 11690 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 11691else 11692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11693for as_dir in $PATH 11694do 11695 IFS=$as_save_IFS 11696 test -z "$as_dir" && as_dir=. 11697 for ac_exec_ext in '' $ac_executable_extensions; do 11698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11699 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11701 break 2 11702 fi 11703done 11704 done 11705IFS=$as_save_IFS 11706 11707fi 11708fi 11709OTOOL=$ac_cv_prog_OTOOL 11710if test -n "$OTOOL"; then 11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11712$as_echo "$OTOOL" >&6; } 11713else 11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11715$as_echo "no" >&6; } 11716fi 11717 11718 11719fi 11720if test -z "$ac_cv_prog_OTOOL"; then 11721 ac_ct_OTOOL=$OTOOL 11722 # Extract the first word of "otool", so it can be a program name with args. 11723set dummy otool; ac_word=$2 11724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11725$as_echo_n "checking for $ac_word... " >&6; } 11726if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 11727 $as_echo_n "(cached) " >&6 11728else 11729 if test -n "$ac_ct_OTOOL"; then 11730 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 11731else 11732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11733for as_dir in $PATH 11734do 11735 IFS=$as_save_IFS 11736 test -z "$as_dir" && as_dir=. 11737 for ac_exec_ext in '' $ac_executable_extensions; do 11738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11739 ac_cv_prog_ac_ct_OTOOL="otool" 11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11741 break 2 11742 fi 11743done 11744 done 11745IFS=$as_save_IFS 11746 11747fi 11748fi 11749ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 11750if test -n "$ac_ct_OTOOL"; then 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 11752$as_echo "$ac_ct_OTOOL" >&6; } 11753else 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11755$as_echo "no" >&6; } 11756fi 11757 11758 if test "x$ac_ct_OTOOL" = x; then 11759 OTOOL=":" 11760 else 11761 case $cross_compiling:$ac_tool_warned in 11762yes:) 11763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11765ac_tool_warned=yes ;; 11766esac 11767 OTOOL=$ac_ct_OTOOL 11768 fi 11769else 11770 OTOOL="$ac_cv_prog_OTOOL" 11771fi 11772 11773 if test -n "$ac_tool_prefix"; then 11774 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 11775set dummy ${ac_tool_prefix}otool64; ac_word=$2 11776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11777$as_echo_n "checking for $ac_word... " >&6; } 11778if ${ac_cv_prog_OTOOL64+:} false; then : 11779 $as_echo_n "(cached) " >&6 11780else 11781 if test -n "$OTOOL64"; then 11782 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 11783else 11784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11785for as_dir in $PATH 11786do 11787 IFS=$as_save_IFS 11788 test -z "$as_dir" && as_dir=. 11789 for ac_exec_ext in '' $ac_executable_extensions; do 11790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11791 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 11792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11793 break 2 11794 fi 11795done 11796 done 11797IFS=$as_save_IFS 11798 11799fi 11800fi 11801OTOOL64=$ac_cv_prog_OTOOL64 11802if test -n "$OTOOL64"; then 11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 11804$as_echo "$OTOOL64" >&6; } 11805else 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11807$as_echo "no" >&6; } 11808fi 11809 11810 11811fi 11812if test -z "$ac_cv_prog_OTOOL64"; then 11813 ac_ct_OTOOL64=$OTOOL64 11814 # Extract the first word of "otool64", so it can be a program name with args. 11815set dummy otool64; ac_word=$2 11816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11817$as_echo_n "checking for $ac_word... " >&6; } 11818if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 11819 $as_echo_n "(cached) " >&6 11820else 11821 if test -n "$ac_ct_OTOOL64"; then 11822 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 11823else 11824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11825for as_dir in $PATH 11826do 11827 IFS=$as_save_IFS 11828 test -z "$as_dir" && as_dir=. 11829 for ac_exec_ext in '' $ac_executable_extensions; do 11830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11831 ac_cv_prog_ac_ct_OTOOL64="otool64" 11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11833 break 2 11834 fi 11835done 11836 done 11837IFS=$as_save_IFS 11838 11839fi 11840fi 11841ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 11842if test -n "$ac_ct_OTOOL64"; then 11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 11844$as_echo "$ac_ct_OTOOL64" >&6; } 11845else 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11847$as_echo "no" >&6; } 11848fi 11849 11850 if test "x$ac_ct_OTOOL64" = x; then 11851 OTOOL64=":" 11852 else 11853 case $cross_compiling:$ac_tool_warned in 11854yes:) 11855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11857ac_tool_warned=yes ;; 11858esac 11859 OTOOL64=$ac_ct_OTOOL64 11860 fi 11861else 11862 OTOOL64="$ac_cv_prog_OTOOL64" 11863fi 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11892$as_echo_n "checking for -single_module linker flag... " >&6; } 11893if ${lt_cv_apple_cc_single_mod+:} false; then : 11894 $as_echo_n "(cached) " >&6 11895else 11896 lt_cv_apple_cc_single_mod=no 11897 if test -z "$LT_MULTI_MODULE"; then 11898 # By default we will add the -single_module flag. You can override 11899 # by either setting the environment variable LT_MULTI_MODULE 11900 # non-empty at configure time, or by adding -multi_module to the 11901 # link flags. 11902 rm -rf libconftest.dylib* 11903 echo "int foo(void){return 1;}" > conftest.c 11904 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11905-dynamiclib -Wl,-single_module conftest.c" >&5 11906 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11907 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11908 _lt_result=$? 11909 # If there is a non-empty error log, and "single_module" 11910 # appears in it, assume the flag caused a linker warning 11911 if test -s conftest.err && $GREP single_module conftest.err; then 11912 cat conftest.err >&5 11913 # Otherwise, if the output was created with a 0 exit code from 11914 # the compiler, it worked. 11915 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 11916 lt_cv_apple_cc_single_mod=yes 11917 else 11918 cat conftest.err >&5 11919 fi 11920 rm -rf libconftest.dylib* 11921 rm -f conftest.* 11922 fi 11923fi 11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11925$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 11926 11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11928$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 11929if ${lt_cv_ld_exported_symbols_list+:} false; then : 11930 $as_echo_n "(cached) " >&6 11931else 11932 lt_cv_ld_exported_symbols_list=no 11933 save_LDFLAGS=$LDFLAGS 11934 echo "_main" > conftest.sym 11935 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11937/* end confdefs.h. */ 11938 11939int 11940main () 11941{ 11942 11943 ; 11944 return 0; 11945} 11946_ACEOF 11947if ac_fn_c_try_link "$LINENO"; then : 11948 lt_cv_ld_exported_symbols_list=yes 11949else 11950 lt_cv_ld_exported_symbols_list=no 11951fi 11952rm -f core conftest.err conftest.$ac_objext \ 11953 conftest$ac_exeext conftest.$ac_ext 11954 LDFLAGS=$save_LDFLAGS 11955 11956fi 11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11958$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 11959 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11961$as_echo_n "checking for -force_load linker flag... " >&6; } 11962if ${lt_cv_ld_force_load+:} false; then : 11963 $as_echo_n "(cached) " >&6 11964else 11965 lt_cv_ld_force_load=no 11966 cat > conftest.c << _LT_EOF 11967int forced_loaded() { return 2;} 11968_LT_EOF 11969 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11970 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11971 echo "$AR cru libconftest.a conftest.o" >&5 11972 $AR cru libconftest.a conftest.o 2>&5 11973 echo "$RANLIB libconftest.a" >&5 11974 $RANLIB libconftest.a 2>&5 11975 cat > conftest.c << _LT_EOF 11976int main() { return 0;} 11977_LT_EOF 11978 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11979 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11980 _lt_result=$? 11981 if test -s conftest.err && $GREP force_load conftest.err; then 11982 cat conftest.err >&5 11983 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 11984 lt_cv_ld_force_load=yes 11985 else 11986 cat conftest.err >&5 11987 fi 11988 rm -f conftest.err libconftest.a conftest conftest.c 11989 rm -rf conftest.dSYM 11990 11991fi 11992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11993$as_echo "$lt_cv_ld_force_load" >&6; } 11994 case $host_os in 11995 rhapsody* | darwin1.[012]) 11996 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 11997 darwin1.*) 11998 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11999 darwin*) # darwin 5.x on 12000 # if running on 10.5 or later, the deployment target defaults 12001 # to the OS version, if on x86, and 10.4, the deployment 12002 # target defaults to 10.4. Don't you love it? 12003 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 12004 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 12005 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 12006 10.[012][,.]*) 12007 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 12008 10.*) 12009 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 12010 esac 12011 ;; 12012 esac 12013 if test yes = "$lt_cv_apple_cc_single_mod"; then 12014 _lt_dar_single_mod='$single_module' 12015 fi 12016 if test yes = "$lt_cv_ld_exported_symbols_list"; then 12017 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 12018 else 12019 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 12020 fi 12021 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 12022 _lt_dsymutil='~$DSYMUTIL $lib || :' 12023 else 12024 _lt_dsymutil= 12025 fi 12026 ;; 12027 esac 12028 12029# func_munge_path_list VARIABLE PATH 12030# ----------------------------------- 12031# VARIABLE is name of variable containing _space_ separated list of 12032# directories to be munged by the contents of PATH, which is string 12033# having a format: 12034# "DIR[:DIR]:" 12035# string "DIR[ DIR]" will be prepended to VARIABLE 12036# ":DIR[:DIR]" 12037# string "DIR[ DIR]" will be appended to VARIABLE 12038# "DIRP[:DIRP]::[DIRA:]DIRA" 12039# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 12040# "DIRA[ DIRA]" will be appended to VARIABLE 12041# "DIR[:DIR]" 12042# VARIABLE will be replaced by "DIR[ DIR]" 12043func_munge_path_list () 12044{ 12045 case x$2 in 12046 x) 12047 ;; 12048 *:) 12049 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 12050 ;; 12051 x:*) 12052 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 12053 ;; 12054 *::*) 12055 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 12056 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 12057 ;; 12058 *) 12059 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 12060 ;; 12061 esac 12062} 12063 12064for ac_header in dlfcn.h 12065do : 12066 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 12067" 12068if test "x$ac_cv_header_dlfcn_h" = xyes; then : 12069 cat >>confdefs.h <<_ACEOF 12070#define HAVE_DLFCN_H 1 12071_ACEOF 12072 12073fi 12074 12075done 12076 12077 12078 12079 12080 12081# Set options 12082enable_win32_dll=yes 12083 12084case $host in 12085*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 12086 if test -n "$ac_tool_prefix"; then 12087 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 12088set dummy ${ac_tool_prefix}as; ac_word=$2 12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12090$as_echo_n "checking for $ac_word... " >&6; } 12091if ${ac_cv_prog_AS+:} false; then : 12092 $as_echo_n "(cached) " >&6 12093else 12094 if test -n "$AS"; then 12095 ac_cv_prog_AS="$AS" # Let the user override the test. 12096else 12097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12098for as_dir in $PATH 12099do 12100 IFS=$as_save_IFS 12101 test -z "$as_dir" && as_dir=. 12102 for ac_exec_ext in '' $ac_executable_extensions; do 12103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12104 ac_cv_prog_AS="${ac_tool_prefix}as" 12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12106 break 2 12107 fi 12108done 12109 done 12110IFS=$as_save_IFS 12111 12112fi 12113fi 12114AS=$ac_cv_prog_AS 12115if test -n "$AS"; then 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 12117$as_echo "$AS" >&6; } 12118else 12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12120$as_echo "no" >&6; } 12121fi 12122 12123 12124fi 12125if test -z "$ac_cv_prog_AS"; then 12126 ac_ct_AS=$AS 12127 # Extract the first word of "as", so it can be a program name with args. 12128set dummy as; ac_word=$2 12129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12130$as_echo_n "checking for $ac_word... " >&6; } 12131if ${ac_cv_prog_ac_ct_AS+:} false; then : 12132 $as_echo_n "(cached) " >&6 12133else 12134 if test -n "$ac_ct_AS"; then 12135 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 12136else 12137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12138for as_dir in $PATH 12139do 12140 IFS=$as_save_IFS 12141 test -z "$as_dir" && as_dir=. 12142 for ac_exec_ext in '' $ac_executable_extensions; do 12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12144 ac_cv_prog_ac_ct_AS="as" 12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12146 break 2 12147 fi 12148done 12149 done 12150IFS=$as_save_IFS 12151 12152fi 12153fi 12154ac_ct_AS=$ac_cv_prog_ac_ct_AS 12155if test -n "$ac_ct_AS"; then 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 12157$as_echo "$ac_ct_AS" >&6; } 12158else 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12160$as_echo "no" >&6; } 12161fi 12162 12163 if test "x$ac_ct_AS" = x; then 12164 AS="false" 12165 else 12166 case $cross_compiling:$ac_tool_warned in 12167yes:) 12168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12170ac_tool_warned=yes ;; 12171esac 12172 AS=$ac_ct_AS 12173 fi 12174else 12175 AS="$ac_cv_prog_AS" 12176fi 12177 12178 if test -n "$ac_tool_prefix"; then 12179 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12180set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12182$as_echo_n "checking for $ac_word... " >&6; } 12183if ${ac_cv_prog_DLLTOOL+:} false; then : 12184 $as_echo_n "(cached) " >&6 12185else 12186 if test -n "$DLLTOOL"; then 12187 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12188else 12189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12190for as_dir in $PATH 12191do 12192 IFS=$as_save_IFS 12193 test -z "$as_dir" && as_dir=. 12194 for ac_exec_ext in '' $ac_executable_extensions; do 12195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12196 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12198 break 2 12199 fi 12200done 12201 done 12202IFS=$as_save_IFS 12203 12204fi 12205fi 12206DLLTOOL=$ac_cv_prog_DLLTOOL 12207if test -n "$DLLTOOL"; then 12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12209$as_echo "$DLLTOOL" >&6; } 12210else 12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12212$as_echo "no" >&6; } 12213fi 12214 12215 12216fi 12217if test -z "$ac_cv_prog_DLLTOOL"; then 12218 ac_ct_DLLTOOL=$DLLTOOL 12219 # Extract the first word of "dlltool", so it can be a program name with args. 12220set dummy dlltool; ac_word=$2 12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12222$as_echo_n "checking for $ac_word... " >&6; } 12223if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12224 $as_echo_n "(cached) " >&6 12225else 12226 if test -n "$ac_ct_DLLTOOL"; then 12227 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12228else 12229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12230for as_dir in $PATH 12231do 12232 IFS=$as_save_IFS 12233 test -z "$as_dir" && as_dir=. 12234 for ac_exec_ext in '' $ac_executable_extensions; do 12235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12236 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12238 break 2 12239 fi 12240done 12241 done 12242IFS=$as_save_IFS 12243 12244fi 12245fi 12246ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12247if test -n "$ac_ct_DLLTOOL"; then 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12249$as_echo "$ac_ct_DLLTOOL" >&6; } 12250else 12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12252$as_echo "no" >&6; } 12253fi 12254 12255 if test "x$ac_ct_DLLTOOL" = x; then 12256 DLLTOOL="false" 12257 else 12258 case $cross_compiling:$ac_tool_warned in 12259yes:) 12260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12262ac_tool_warned=yes ;; 12263esac 12264 DLLTOOL=$ac_ct_DLLTOOL 12265 fi 12266else 12267 DLLTOOL="$ac_cv_prog_DLLTOOL" 12268fi 12269 12270 if test -n "$ac_tool_prefix"; then 12271 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12272set dummy ${ac_tool_prefix}objdump; ac_word=$2 12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12274$as_echo_n "checking for $ac_word... " >&6; } 12275if ${ac_cv_prog_OBJDUMP+:} false; then : 12276 $as_echo_n "(cached) " >&6 12277else 12278 if test -n "$OBJDUMP"; then 12279 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12280else 12281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12282for as_dir in $PATH 12283do 12284 IFS=$as_save_IFS 12285 test -z "$as_dir" && as_dir=. 12286 for ac_exec_ext in '' $ac_executable_extensions; do 12287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12288 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12290 break 2 12291 fi 12292done 12293 done 12294IFS=$as_save_IFS 12295 12296fi 12297fi 12298OBJDUMP=$ac_cv_prog_OBJDUMP 12299if test -n "$OBJDUMP"; then 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12301$as_echo "$OBJDUMP" >&6; } 12302else 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12304$as_echo "no" >&6; } 12305fi 12306 12307 12308fi 12309if test -z "$ac_cv_prog_OBJDUMP"; then 12310 ac_ct_OBJDUMP=$OBJDUMP 12311 # Extract the first word of "objdump", so it can be a program name with args. 12312set dummy objdump; ac_word=$2 12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12314$as_echo_n "checking for $ac_word... " >&6; } 12315if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12316 $as_echo_n "(cached) " >&6 12317else 12318 if test -n "$ac_ct_OBJDUMP"; then 12319 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12320else 12321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12322for as_dir in $PATH 12323do 12324 IFS=$as_save_IFS 12325 test -z "$as_dir" && as_dir=. 12326 for ac_exec_ext in '' $ac_executable_extensions; do 12327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12328 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12330 break 2 12331 fi 12332done 12333 done 12334IFS=$as_save_IFS 12335 12336fi 12337fi 12338ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12339if test -n "$ac_ct_OBJDUMP"; then 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12341$as_echo "$ac_ct_OBJDUMP" >&6; } 12342else 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12344$as_echo "no" >&6; } 12345fi 12346 12347 if test "x$ac_ct_OBJDUMP" = x; then 12348 OBJDUMP="false" 12349 else 12350 case $cross_compiling:$ac_tool_warned in 12351yes:) 12352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12354ac_tool_warned=yes ;; 12355esac 12356 OBJDUMP=$ac_ct_OBJDUMP 12357 fi 12358else 12359 OBJDUMP="$ac_cv_prog_OBJDUMP" 12360fi 12361 12362 ;; 12363esac 12364 12365test -z "$AS" && AS=as 12366 12367 12368 12369 12370 12371test -z "$DLLTOOL" && DLLTOOL=dlltool 12372 12373 12374 12375 12376 12377test -z "$OBJDUMP" && OBJDUMP=objdump 12378 12379 12380 12381 12382 12383 12384 12385 enable_dlopen=no 12386 12387 12388 12389 # Check whether --enable-shared was given. 12390if test "${enable_shared+set}" = set; then : 12391 enableval=$enable_shared; p=${PACKAGE-default} 12392 case $enableval in 12393 yes) enable_shared=yes ;; 12394 no) enable_shared=no ;; 12395 *) 12396 enable_shared=no 12397 # Look at the argument we got. We use all the common list separators. 12398 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12399 for pkg in $enableval; do 12400 IFS=$lt_save_ifs 12401 if test "X$pkg" = "X$p"; then 12402 enable_shared=yes 12403 fi 12404 done 12405 IFS=$lt_save_ifs 12406 ;; 12407 esac 12408else 12409 enable_shared=yes 12410fi 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 # Check whether --enable-static was given. 12421if test "${enable_static+set}" = set; then : 12422 enableval=$enable_static; p=${PACKAGE-default} 12423 case $enableval in 12424 yes) enable_static=yes ;; 12425 no) enable_static=no ;; 12426 *) 12427 enable_static=no 12428 # Look at the argument we got. We use all the common list separators. 12429 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12430 for pkg in $enableval; do 12431 IFS=$lt_save_ifs 12432 if test "X$pkg" = "X$p"; then 12433 enable_static=yes 12434 fi 12435 done 12436 IFS=$lt_save_ifs 12437 ;; 12438 esac 12439else 12440 enable_static=yes 12441fi 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452# Check whether --with-pic was given. 12453if test "${with_pic+set}" = set; then : 12454 withval=$with_pic; lt_p=${PACKAGE-default} 12455 case $withval in 12456 yes|no) pic_mode=$withval ;; 12457 *) 12458 pic_mode=default 12459 # Look at the argument we got. We use all the common list separators. 12460 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12461 for lt_pkg in $withval; do 12462 IFS=$lt_save_ifs 12463 if test "X$lt_pkg" = "X$lt_p"; then 12464 pic_mode=yes 12465 fi 12466 done 12467 IFS=$lt_save_ifs 12468 ;; 12469 esac 12470else 12471 pic_mode=default 12472fi 12473 12474 12475 12476 12477 12478 12479 12480 12481 # Check whether --enable-fast-install was given. 12482if test "${enable_fast_install+set}" = set; then : 12483 enableval=$enable_fast_install; p=${PACKAGE-default} 12484 case $enableval in 12485 yes) enable_fast_install=yes ;; 12486 no) enable_fast_install=no ;; 12487 *) 12488 enable_fast_install=no 12489 # Look at the argument we got. We use all the common list separators. 12490 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12491 for pkg in $enableval; do 12492 IFS=$lt_save_ifs 12493 if test "X$pkg" = "X$p"; then 12494 enable_fast_install=yes 12495 fi 12496 done 12497 IFS=$lt_save_ifs 12498 ;; 12499 esac 12500else 12501 enable_fast_install=yes 12502fi 12503 12504 12505 12506 12507 12508 12509 12510 12511 shared_archive_member_spec= 12512case $host,$enable_shared in 12513power*-*-aix[5-9]*,yes) 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 12515$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 12516 12517# Check whether --with-aix-soname was given. 12518if test "${with_aix_soname+set}" = set; then : 12519 withval=$with_aix_soname; case $withval in 12520 aix|svr4|both) 12521 ;; 12522 *) 12523 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 12524 ;; 12525 esac 12526 lt_cv_with_aix_soname=$with_aix_soname 12527else 12528 if ${lt_cv_with_aix_soname+:} false; then : 12529 $as_echo_n "(cached) " >&6 12530else 12531 lt_cv_with_aix_soname=aix 12532fi 12533 12534 with_aix_soname=$lt_cv_with_aix_soname 12535fi 12536 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 12538$as_echo "$with_aix_soname" >&6; } 12539 if test aix != "$with_aix_soname"; then 12540 # For the AIX way of multilib, we name the shared archive member 12541 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 12542 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 12543 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 12544 # the AIX toolchain works better with OBJECT_MODE set (default 32). 12545 if test 64 = "${OBJECT_MODE-32}"; then 12546 shared_archive_member_spec=shr_64 12547 else 12548 shared_archive_member_spec=shr 12549 fi 12550 fi 12551 ;; 12552*) 12553 with_aix_soname=aix 12554 ;; 12555esac 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566# This can be used to rebuild libtool when needed 12567LIBTOOL_DEPS=$ltmain 12568 12569# Always use our own libtool. 12570LIBTOOL='$(SHELL) $(top_builddir)/libtool' 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601test -z "$LN_S" && LN_S="ln -s" 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616if test -n "${ZSH_VERSION+set}"; then 12617 setopt NO_GLOB_SUBST 12618fi 12619 12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 12621$as_echo_n "checking for objdir... " >&6; } 12622if ${lt_cv_objdir+:} false; then : 12623 $as_echo_n "(cached) " >&6 12624else 12625 rm -f .libs 2>/dev/null 12626mkdir .libs 2>/dev/null 12627if test -d .libs; then 12628 lt_cv_objdir=.libs 12629else 12630 # MS-DOS does not allow filenames that begin with a dot. 12631 lt_cv_objdir=_libs 12632fi 12633rmdir .libs 2>/dev/null 12634fi 12635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 12636$as_echo "$lt_cv_objdir" >&6; } 12637objdir=$lt_cv_objdir 12638 12639 12640 12641 12642 12643cat >>confdefs.h <<_ACEOF 12644#define LT_OBJDIR "$lt_cv_objdir/" 12645_ACEOF 12646 12647 12648 12649 12650case $host_os in 12651aix3*) 12652 # AIX sometimes has problems with the GCC collect2 program. For some 12653 # reason, if we set the COLLECT_NAMES environment variable, the problems 12654 # vanish in a puff of smoke. 12655 if test set != "${COLLECT_NAMES+set}"; then 12656 COLLECT_NAMES= 12657 export COLLECT_NAMES 12658 fi 12659 ;; 12660esac 12661 12662# Global variables: 12663ofile=libtool 12664can_build_shared=yes 12665 12666# All known linkers require a '.a' archive for static linking (except MSVC, 12667# which needs '.lib'). 12668libext=a 12669 12670with_gnu_ld=$lt_cv_prog_gnu_ld 12671 12672old_CC=$CC 12673old_CFLAGS=$CFLAGS 12674 12675# Set sane defaults for various variables 12676test -z "$CC" && CC=cc 12677test -z "$LTCC" && LTCC=$CC 12678test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 12679test -z "$LD" && LD=ld 12680test -z "$ac_objext" && ac_objext=o 12681 12682func_cc_basename $compiler 12683cc_basename=$func_cc_basename_result 12684 12685 12686# Only perform the check for file, if the check method requires it 12687test -z "$MAGIC_CMD" && MAGIC_CMD=file 12688case $deplibs_check_method in 12689file_magic*) 12690 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 12692$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 12693if ${lt_cv_path_MAGIC_CMD+:} false; then : 12694 $as_echo_n "(cached) " >&6 12695else 12696 case $MAGIC_CMD in 12697[\\/*] | ?:[\\/]*) 12698 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 12699 ;; 12700*) 12701 lt_save_MAGIC_CMD=$MAGIC_CMD 12702 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12703 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12704 for ac_dir in $ac_dummy; do 12705 IFS=$lt_save_ifs 12706 test -z "$ac_dir" && ac_dir=. 12707 if test -f "$ac_dir/${ac_tool_prefix}file"; then 12708 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 12709 if test -n "$file_magic_test_file"; then 12710 case $deplibs_check_method in 12711 "file_magic "*) 12712 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12713 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12714 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12715 $EGREP "$file_magic_regex" > /dev/null; then 12716 : 12717 else 12718 cat <<_LT_EOF 1>&2 12719 12720*** Warning: the command libtool uses to detect shared libraries, 12721*** $file_magic_cmd, produces output that libtool cannot recognize. 12722*** The result is that libtool may fail to recognize shared libraries 12723*** as such. This will affect the creation of libtool libraries that 12724*** depend on shared libraries, but programs linked with such libtool 12725*** libraries will work regardless of this problem. Nevertheless, you 12726*** may want to report the problem to your system manager and/or to 12727*** bug-libtool@gnu.org 12728 12729_LT_EOF 12730 fi ;; 12731 esac 12732 fi 12733 break 12734 fi 12735 done 12736 IFS=$lt_save_ifs 12737 MAGIC_CMD=$lt_save_MAGIC_CMD 12738 ;; 12739esac 12740fi 12741 12742MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12743if test -n "$MAGIC_CMD"; then 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12745$as_echo "$MAGIC_CMD" >&6; } 12746else 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12748$as_echo "no" >&6; } 12749fi 12750 12751 12752 12753 12754 12755if test -z "$lt_cv_path_MAGIC_CMD"; then 12756 if test -n "$ac_tool_prefix"; then 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 12758$as_echo_n "checking for file... " >&6; } 12759if ${lt_cv_path_MAGIC_CMD+:} false; then : 12760 $as_echo_n "(cached) " >&6 12761else 12762 case $MAGIC_CMD in 12763[\\/*] | ?:[\\/]*) 12764 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 12765 ;; 12766*) 12767 lt_save_MAGIC_CMD=$MAGIC_CMD 12768 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12769 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12770 for ac_dir in $ac_dummy; do 12771 IFS=$lt_save_ifs 12772 test -z "$ac_dir" && ac_dir=. 12773 if test -f "$ac_dir/file"; then 12774 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 12775 if test -n "$file_magic_test_file"; then 12776 case $deplibs_check_method in 12777 "file_magic "*) 12778 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12779 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12780 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12781 $EGREP "$file_magic_regex" > /dev/null; then 12782 : 12783 else 12784 cat <<_LT_EOF 1>&2 12785 12786*** Warning: the command libtool uses to detect shared libraries, 12787*** $file_magic_cmd, produces output that libtool cannot recognize. 12788*** The result is that libtool may fail to recognize shared libraries 12789*** as such. This will affect the creation of libtool libraries that 12790*** depend on shared libraries, but programs linked with such libtool 12791*** libraries will work regardless of this problem. Nevertheless, you 12792*** may want to report the problem to your system manager and/or to 12793*** bug-libtool@gnu.org 12794 12795_LT_EOF 12796 fi ;; 12797 esac 12798 fi 12799 break 12800 fi 12801 done 12802 IFS=$lt_save_ifs 12803 MAGIC_CMD=$lt_save_MAGIC_CMD 12804 ;; 12805esac 12806fi 12807 12808MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12809if test -n "$MAGIC_CMD"; then 12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12811$as_echo "$MAGIC_CMD" >&6; } 12812else 12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12814$as_echo "no" >&6; } 12815fi 12816 12817 12818 else 12819 MAGIC_CMD=: 12820 fi 12821fi 12822 12823 fi 12824 ;; 12825esac 12826 12827# Use C for the default configuration in the libtool script 12828 12829lt_save_CC=$CC 12830ac_ext=c 12831ac_cpp='$CPP $CPPFLAGS' 12832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12834ac_compiler_gnu=$ac_cv_c_compiler_gnu 12835 12836 12837# Source file extension for C test sources. 12838ac_ext=c 12839 12840# Object file extension for compiled C test sources. 12841objext=o 12842objext=$objext 12843 12844# Code to be used in simple compile tests 12845lt_simple_compile_test_code="int some_variable = 0;" 12846 12847# Code to be used in simple link tests 12848lt_simple_link_test_code='int main(){return(0);}' 12849 12850 12851 12852 12853 12854 12855 12856# If no C compiler was specified, use CC. 12857LTCC=${LTCC-"$CC"} 12858 12859# If no C compiler flags were specified, use CFLAGS. 12860LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12861 12862# Allow CC to be a program name with arguments. 12863compiler=$CC 12864 12865# Save the default compiler, since it gets overwritten when the other 12866# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 12867compiler_DEFAULT=$CC 12868 12869# save warnings/boilerplate of simple test code 12870ac_outfile=conftest.$ac_objext 12871echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12872eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12873_lt_compiler_boilerplate=`cat conftest.err` 12874$RM conftest* 12875 12876ac_outfile=conftest.$ac_objext 12877echo "$lt_simple_link_test_code" >conftest.$ac_ext 12878eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12879_lt_linker_boilerplate=`cat conftest.err` 12880$RM -r conftest* 12881 12882 12883## CAVEAT EMPTOR: 12884## There is no encapsulation within the following macros, do not change 12885## the running order or otherwise move them around unless you know exactly 12886## what you are doing... 12887if test -n "$compiler"; then 12888 12889lt_prog_compiler_no_builtin_flag= 12890 12891if test yes = "$GCC"; then 12892 case $cc_basename in 12893 nvcc*) 12894 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 12895 *) 12896 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 12897 esac 12898 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 12900$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 12901if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 12902 $as_echo_n "(cached) " >&6 12903else 12904 lt_cv_prog_compiler_rtti_exceptions=no 12905 ac_outfile=conftest.$ac_objext 12906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12907 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 12908 # Insert the option either (1) after the last *FLAGS variable, or 12909 # (2) before a word containing "conftest.", or (3) at the end. 12910 # Note that $ac_compile itself does not contain backslashes and begins 12911 # with a dollar sign (not a hyphen), so the echo should work correctly. 12912 # The option is referenced via a variable to avoid confusing sed. 12913 lt_compile=`echo "$ac_compile" | $SED \ 12914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12916 -e 's:$: $lt_compiler_flag:'` 12917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12918 (eval "$lt_compile" 2>conftest.err) 12919 ac_status=$? 12920 cat conftest.err >&5 12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12922 if (exit $ac_status) && test -s "$ac_outfile"; then 12923 # The compiler can only warn and ignore the option if not recognized 12924 # So say no if there are warnings other than the usual output. 12925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12927 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12928 lt_cv_prog_compiler_rtti_exceptions=yes 12929 fi 12930 fi 12931 $RM conftest* 12932 12933fi 12934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 12935$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 12936 12937if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 12938 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 12939else 12940 : 12941fi 12942 12943fi 12944 12945 12946 12947 12948 12949 12950 lt_prog_compiler_wl= 12951lt_prog_compiler_pic= 12952lt_prog_compiler_static= 12953 12954 12955 if test yes = "$GCC"; then 12956 lt_prog_compiler_wl='-Wl,' 12957 lt_prog_compiler_static='-static' 12958 12959 case $host_os in 12960 aix*) 12961 # All AIX code is PIC. 12962 if test ia64 = "$host_cpu"; then 12963 # AIX 5 now supports IA64 processor 12964 lt_prog_compiler_static='-Bstatic' 12965 fi 12966 lt_prog_compiler_pic='-fPIC' 12967 ;; 12968 12969 amigaos*) 12970 case $host_cpu in 12971 powerpc) 12972 # see comment about AmigaOS4 .so support 12973 lt_prog_compiler_pic='-fPIC' 12974 ;; 12975 m68k) 12976 # FIXME: we need at least 68020 code to build shared libraries, but 12977 # adding the '-m68020' flag to GCC prevents building anything better, 12978 # like '-m68040'. 12979 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12980 ;; 12981 esac 12982 ;; 12983 12984 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12985 # PIC is the default for these OSes. 12986 ;; 12987 12988 mingw* | cygwin* | pw32* | os2* | cegcc*) 12989 # This hack is so that the source file can tell whether it is being 12990 # built for inclusion in a dll (and should export symbols for example). 12991 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12992 # (--disable-auto-import) libraries 12993 lt_prog_compiler_pic='-DDLL_EXPORT' 12994 case $host_os in 12995 os2*) 12996 lt_prog_compiler_static='$wl-static' 12997 ;; 12998 esac 12999 ;; 13000 13001 darwin* | rhapsody*) 13002 # PIC is the default on this platform 13003 # Common symbols not allowed in MH_DYLIB files 13004 lt_prog_compiler_pic='-fno-common' 13005 ;; 13006 13007 haiku*) 13008 # PIC is the default for Haiku. 13009 # The "-static" flag exists, but is broken. 13010 lt_prog_compiler_static= 13011 ;; 13012 13013 hpux*) 13014 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13015 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13016 # sets the default TLS model and affects inlining. 13017 case $host_cpu in 13018 hppa*64*) 13019 # +Z the default 13020 ;; 13021 *) 13022 lt_prog_compiler_pic='-fPIC' 13023 ;; 13024 esac 13025 ;; 13026 13027 interix[3-9]*) 13028 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13029 # Instead, we relocate shared libraries at runtime. 13030 ;; 13031 13032 msdosdjgpp*) 13033 # Just because we use GCC doesn't mean we suddenly get shared libraries 13034 # on systems that don't support them. 13035 lt_prog_compiler_can_build_shared=no 13036 enable_shared=no 13037 ;; 13038 13039 *nto* | *qnx*) 13040 # QNX uses GNU C++, but need to define -shared option too, otherwise 13041 # it will coredump. 13042 lt_prog_compiler_pic='-fPIC -shared' 13043 ;; 13044 13045 sysv4*MP*) 13046 if test -d /usr/nec; then 13047 lt_prog_compiler_pic=-Kconform_pic 13048 fi 13049 ;; 13050 13051 *) 13052 lt_prog_compiler_pic='-fPIC' 13053 ;; 13054 esac 13055 13056 case $cc_basename in 13057 nvcc*) # Cuda Compiler Driver 2.2 13058 lt_prog_compiler_wl='-Xlinker ' 13059 if test -n "$lt_prog_compiler_pic"; then 13060 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 13061 fi 13062 ;; 13063 esac 13064 else 13065 # PORTME Check for flag to pass linker flags through the system compiler. 13066 case $host_os in 13067 aix*) 13068 lt_prog_compiler_wl='-Wl,' 13069 if test ia64 = "$host_cpu"; then 13070 # AIX 5 now supports IA64 processor 13071 lt_prog_compiler_static='-Bstatic' 13072 else 13073 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 13074 fi 13075 ;; 13076 13077 darwin* | rhapsody*) 13078 # PIC is the default on this platform 13079 # Common symbols not allowed in MH_DYLIB files 13080 lt_prog_compiler_pic='-fno-common' 13081 case $cc_basename in 13082 nagfor*) 13083 # NAG Fortran compiler 13084 lt_prog_compiler_wl='-Wl,-Wl,,' 13085 lt_prog_compiler_pic='-PIC' 13086 lt_prog_compiler_static='-Bstatic' 13087 ;; 13088 esac 13089 ;; 13090 13091 mingw* | cygwin* | pw32* | os2* | cegcc*) 13092 # This hack is so that the source file can tell whether it is being 13093 # built for inclusion in a dll (and should export symbols for example). 13094 lt_prog_compiler_pic='-DDLL_EXPORT' 13095 case $host_os in 13096 os2*) 13097 lt_prog_compiler_static='$wl-static' 13098 ;; 13099 esac 13100 ;; 13101 13102 hpux9* | hpux10* | hpux11*) 13103 lt_prog_compiler_wl='-Wl,' 13104 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13105 # not for PA HP-UX. 13106 case $host_cpu in 13107 hppa*64*|ia64*) 13108 # +Z the default 13109 ;; 13110 *) 13111 lt_prog_compiler_pic='+Z' 13112 ;; 13113 esac 13114 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13115 lt_prog_compiler_static='$wl-a ${wl}archive' 13116 ;; 13117 13118 irix5* | irix6* | nonstopux*) 13119 lt_prog_compiler_wl='-Wl,' 13120 # PIC (with -KPIC) is the default. 13121 lt_prog_compiler_static='-non_shared' 13122 ;; 13123 13124 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13125 case $cc_basename in 13126 # old Intel for x86_64, which still supported -KPIC. 13127 ecc*) 13128 lt_prog_compiler_wl='-Wl,' 13129 lt_prog_compiler_pic='-KPIC' 13130 lt_prog_compiler_static='-static' 13131 ;; 13132 # icc used to be incompatible with GCC. 13133 # ICC 10 doesn't accept -KPIC any more. 13134 icc* | ifort*) 13135 lt_prog_compiler_wl='-Wl,' 13136 lt_prog_compiler_pic='-fPIC' 13137 lt_prog_compiler_static='-static' 13138 ;; 13139 # Lahey Fortran 8.1. 13140 lf95*) 13141 lt_prog_compiler_wl='-Wl,' 13142 lt_prog_compiler_pic='--shared' 13143 lt_prog_compiler_static='--static' 13144 ;; 13145 nagfor*) 13146 # NAG Fortran compiler 13147 lt_prog_compiler_wl='-Wl,-Wl,,' 13148 lt_prog_compiler_pic='-PIC' 13149 lt_prog_compiler_static='-Bstatic' 13150 ;; 13151 tcc*) 13152 # Fabrice Bellard et al's Tiny C Compiler 13153 lt_prog_compiler_wl='-Wl,' 13154 lt_prog_compiler_pic='-fPIC' 13155 lt_prog_compiler_static='-static' 13156 ;; 13157 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13158 # Portland Group compilers (*not* the Pentium gcc compiler, 13159 # which looks to be a dead project) 13160 lt_prog_compiler_wl='-Wl,' 13161 lt_prog_compiler_pic='-fpic' 13162 lt_prog_compiler_static='-Bstatic' 13163 ;; 13164 ccc*) 13165 lt_prog_compiler_wl='-Wl,' 13166 # All Alpha code is PIC. 13167 lt_prog_compiler_static='-non_shared' 13168 ;; 13169 xl* | bgxl* | bgf* | mpixl*) 13170 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13171 lt_prog_compiler_wl='-Wl,' 13172 lt_prog_compiler_pic='-qpic' 13173 lt_prog_compiler_static='-qstaticlink' 13174 ;; 13175 *) 13176 case `$CC -V 2>&1 | sed 5q` in 13177 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13178 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13179 lt_prog_compiler_pic='-KPIC' 13180 lt_prog_compiler_static='-Bstatic' 13181 lt_prog_compiler_wl='' 13182 ;; 13183 *Sun\ F* | *Sun*Fortran*) 13184 lt_prog_compiler_pic='-KPIC' 13185 lt_prog_compiler_static='-Bstatic' 13186 lt_prog_compiler_wl='-Qoption ld ' 13187 ;; 13188 *Sun\ C*) 13189 # Sun C 5.9 13190 lt_prog_compiler_pic='-KPIC' 13191 lt_prog_compiler_static='-Bstatic' 13192 lt_prog_compiler_wl='-Wl,' 13193 ;; 13194 *Intel*\ [CF]*Compiler*) 13195 lt_prog_compiler_wl='-Wl,' 13196 lt_prog_compiler_pic='-fPIC' 13197 lt_prog_compiler_static='-static' 13198 ;; 13199 *Portland\ Group*) 13200 lt_prog_compiler_wl='-Wl,' 13201 lt_prog_compiler_pic='-fpic' 13202 lt_prog_compiler_static='-Bstatic' 13203 ;; 13204 esac 13205 ;; 13206 esac 13207 ;; 13208 13209 newsos6) 13210 lt_prog_compiler_pic='-KPIC' 13211 lt_prog_compiler_static='-Bstatic' 13212 ;; 13213 13214 *nto* | *qnx*) 13215 # QNX uses GNU C++, but need to define -shared option too, otherwise 13216 # it will coredump. 13217 lt_prog_compiler_pic='-fPIC -shared' 13218 ;; 13219 13220 osf3* | osf4* | osf5*) 13221 lt_prog_compiler_wl='-Wl,' 13222 # All OSF/1 code is PIC. 13223 lt_prog_compiler_static='-non_shared' 13224 ;; 13225 13226 rdos*) 13227 lt_prog_compiler_static='-non_shared' 13228 ;; 13229 13230 solaris*) 13231 lt_prog_compiler_pic='-KPIC' 13232 lt_prog_compiler_static='-Bstatic' 13233 case $cc_basename in 13234 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13235 lt_prog_compiler_wl='-Qoption ld ';; 13236 *) 13237 lt_prog_compiler_wl='-Wl,';; 13238 esac 13239 ;; 13240 13241 sunos4*) 13242 lt_prog_compiler_wl='-Qoption ld ' 13243 lt_prog_compiler_pic='-PIC' 13244 lt_prog_compiler_static='-Bstatic' 13245 ;; 13246 13247 sysv4 | sysv4.2uw2* | sysv4.3*) 13248 lt_prog_compiler_wl='-Wl,' 13249 lt_prog_compiler_pic='-KPIC' 13250 lt_prog_compiler_static='-Bstatic' 13251 ;; 13252 13253 sysv4*MP*) 13254 if test -d /usr/nec; then 13255 lt_prog_compiler_pic='-Kconform_pic' 13256 lt_prog_compiler_static='-Bstatic' 13257 fi 13258 ;; 13259 13260 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13261 lt_prog_compiler_wl='-Wl,' 13262 lt_prog_compiler_pic='-KPIC' 13263 lt_prog_compiler_static='-Bstatic' 13264 ;; 13265 13266 unicos*) 13267 lt_prog_compiler_wl='-Wl,' 13268 lt_prog_compiler_can_build_shared=no 13269 ;; 13270 13271 uts4*) 13272 lt_prog_compiler_pic='-pic' 13273 lt_prog_compiler_static='-Bstatic' 13274 ;; 13275 13276 *) 13277 lt_prog_compiler_can_build_shared=no 13278 ;; 13279 esac 13280 fi 13281 13282case $host_os in 13283 # For platforms that do not support PIC, -DPIC is meaningless: 13284 *djgpp*) 13285 lt_prog_compiler_pic= 13286 ;; 13287 *) 13288 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13289 ;; 13290esac 13291 13292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13293$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13294if ${lt_cv_prog_compiler_pic+:} false; then : 13295 $as_echo_n "(cached) " >&6 13296else 13297 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 13298fi 13299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13300$as_echo "$lt_cv_prog_compiler_pic" >&6; } 13301lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13302 13303# 13304# Check to make sure the PIC flag actually works. 13305# 13306if test -n "$lt_prog_compiler_pic"; then 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13308$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13309if ${lt_cv_prog_compiler_pic_works+:} false; then : 13310 $as_echo_n "(cached) " >&6 13311else 13312 lt_cv_prog_compiler_pic_works=no 13313 ac_outfile=conftest.$ac_objext 13314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13315 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 13316 # Insert the option either (1) after the last *FLAGS variable, or 13317 # (2) before a word containing "conftest.", or (3) at the end. 13318 # Note that $ac_compile itself does not contain backslashes and begins 13319 # with a dollar sign (not a hyphen), so the echo should work correctly. 13320 # The option is referenced via a variable to avoid confusing sed. 13321 lt_compile=`echo "$ac_compile" | $SED \ 13322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13324 -e 's:$: $lt_compiler_flag:'` 13325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13326 (eval "$lt_compile" 2>conftest.err) 13327 ac_status=$? 13328 cat conftest.err >&5 13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13330 if (exit $ac_status) && test -s "$ac_outfile"; then 13331 # The compiler can only warn and ignore the option if not recognized 13332 # So say no if there are warnings other than the usual output. 13333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13336 lt_cv_prog_compiler_pic_works=yes 13337 fi 13338 fi 13339 $RM conftest* 13340 13341fi 13342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13343$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 13344 13345if test yes = "$lt_cv_prog_compiler_pic_works"; then 13346 case $lt_prog_compiler_pic in 13347 "" | " "*) ;; 13348 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13349 esac 13350else 13351 lt_prog_compiler_pic= 13352 lt_prog_compiler_can_build_shared=no 13353fi 13354 13355fi 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367# 13368# Check to make sure the static flag actually works. 13369# 13370wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13372$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13373if ${lt_cv_prog_compiler_static_works+:} false; then : 13374 $as_echo_n "(cached) " >&6 13375else 13376 lt_cv_prog_compiler_static_works=no 13377 save_LDFLAGS=$LDFLAGS 13378 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13379 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13380 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13381 # The linker can only warn and ignore the option if not recognized 13382 # So say no if there are warnings 13383 if test -s conftest.err; then 13384 # Append any errors to the config.log. 13385 cat conftest.err 1>&5 13386 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13388 if diff conftest.exp conftest.er2 >/dev/null; then 13389 lt_cv_prog_compiler_static_works=yes 13390 fi 13391 else 13392 lt_cv_prog_compiler_static_works=yes 13393 fi 13394 fi 13395 $RM -r conftest* 13396 LDFLAGS=$save_LDFLAGS 13397 13398fi 13399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13400$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 13401 13402if test yes = "$lt_cv_prog_compiler_static_works"; then 13403 : 13404else 13405 lt_prog_compiler_static= 13406fi 13407 13408 13409 13410 13411 13412 13413 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13415$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13416if ${lt_cv_prog_compiler_c_o+:} false; then : 13417 $as_echo_n "(cached) " >&6 13418else 13419 lt_cv_prog_compiler_c_o=no 13420 $RM -r conftest 2>/dev/null 13421 mkdir conftest 13422 cd conftest 13423 mkdir out 13424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13425 13426 lt_compiler_flag="-o out/conftest2.$ac_objext" 13427 # Insert the option either (1) after the last *FLAGS variable, or 13428 # (2) before a word containing "conftest.", or (3) at the end. 13429 # Note that $ac_compile itself does not contain backslashes and begins 13430 # with a dollar sign (not a hyphen), so the echo should work correctly. 13431 lt_compile=`echo "$ac_compile" | $SED \ 13432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13434 -e 's:$: $lt_compiler_flag:'` 13435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13436 (eval "$lt_compile" 2>out/conftest.err) 13437 ac_status=$? 13438 cat out/conftest.err >&5 13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13440 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13441 then 13442 # The compiler can only warn and ignore the option if not recognized 13443 # So say no if there are warnings 13444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13447 lt_cv_prog_compiler_c_o=yes 13448 fi 13449 fi 13450 chmod u+w . 2>&5 13451 $RM conftest* 13452 # SGI C++ compiler will create directory out/ii_files/ for 13453 # template instantiation 13454 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13455 $RM out/* && rmdir out 13456 cd .. 13457 $RM -r conftest 13458 $RM conftest* 13459 13460fi 13461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13462$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 13463 13464 13465 13466 13467 13468 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13470$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13471if ${lt_cv_prog_compiler_c_o+:} false; then : 13472 $as_echo_n "(cached) " >&6 13473else 13474 lt_cv_prog_compiler_c_o=no 13475 $RM -r conftest 2>/dev/null 13476 mkdir conftest 13477 cd conftest 13478 mkdir out 13479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13480 13481 lt_compiler_flag="-o out/conftest2.$ac_objext" 13482 # Insert the option either (1) after the last *FLAGS variable, or 13483 # (2) before a word containing "conftest.", or (3) at the end. 13484 # Note that $ac_compile itself does not contain backslashes and begins 13485 # with a dollar sign (not a hyphen), so the echo should work correctly. 13486 lt_compile=`echo "$ac_compile" | $SED \ 13487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13489 -e 's:$: $lt_compiler_flag:'` 13490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13491 (eval "$lt_compile" 2>out/conftest.err) 13492 ac_status=$? 13493 cat out/conftest.err >&5 13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13495 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13496 then 13497 # The compiler can only warn and ignore the option if not recognized 13498 # So say no if there are warnings 13499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13500 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13501 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13502 lt_cv_prog_compiler_c_o=yes 13503 fi 13504 fi 13505 chmod u+w . 2>&5 13506 $RM conftest* 13507 # SGI C++ compiler will create directory out/ii_files/ for 13508 # template instantiation 13509 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13510 $RM out/* && rmdir out 13511 cd .. 13512 $RM -r conftest 13513 $RM conftest* 13514 13515fi 13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13517$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 13518 13519 13520 13521 13522hard_links=nottested 13523if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 13524 # do not overwrite the value of need_locks provided by the user 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13526$as_echo_n "checking if we can lock with hard links... " >&6; } 13527 hard_links=yes 13528 $RM conftest* 13529 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13530 touch conftest.a 13531 ln conftest.a conftest.b 2>&5 || hard_links=no 13532 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13534$as_echo "$hard_links" >&6; } 13535 if test no = "$hard_links"; then 13536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 13537$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 13538 need_locks=warn 13539 fi 13540else 13541 need_locks=no 13542fi 13543 13544 13545 13546 13547 13548 13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13550$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13551 13552 runpath_var= 13553 allow_undefined_flag= 13554 always_export_symbols=no 13555 archive_cmds= 13556 archive_expsym_cmds= 13557 compiler_needs_object=no 13558 enable_shared_with_static_runtimes=no 13559 export_dynamic_flag_spec= 13560 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13561 hardcode_automatic=no 13562 hardcode_direct=no 13563 hardcode_direct_absolute=no 13564 hardcode_libdir_flag_spec= 13565 hardcode_libdir_separator= 13566 hardcode_minus_L=no 13567 hardcode_shlibpath_var=unsupported 13568 inherit_rpath=no 13569 link_all_deplibs=unknown 13570 module_cmds= 13571 module_expsym_cmds= 13572 old_archive_from_new_cmds= 13573 old_archive_from_expsyms_cmds= 13574 thread_safe_flag_spec= 13575 whole_archive_flag_spec= 13576 # include_expsyms should be a list of space-separated symbols to be *always* 13577 # included in the symbol list 13578 include_expsyms= 13579 # exclude_expsyms can be an extended regexp of symbols to exclude 13580 # it will be wrapped by ' (' and ')$', so one must not match beginning or 13581 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 13582 # as well as any symbol that contains 'd'. 13583 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13585 # platforms (ab)use it in PIC code, but their linkers get confused if 13586 # the symbol is explicitly referenced. Since portable code cannot 13587 # rely on this symbol name, it's probably fine to never include it in 13588 # preloaded symbol tables. 13589 # Exclude shared library initialization/finalization symbols. 13590 extract_expsyms_cmds= 13591 13592 case $host_os in 13593 cygwin* | mingw* | pw32* | cegcc*) 13594 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13595 # When not using gcc, we currently assume that we are using 13596 # Microsoft Visual C++. 13597 if test yes != "$GCC"; then 13598 with_gnu_ld=no 13599 fi 13600 ;; 13601 interix*) 13602 # we just hope/assume this is gcc and not c89 (= MSVC++) 13603 with_gnu_ld=yes 13604 ;; 13605 openbsd* | bitrig*) 13606 with_gnu_ld=no 13607 ;; 13608 esac 13609 13610 ld_shlibs=yes 13611 13612 # On some targets, GNU ld is compatible enough with the native linker 13613 # that we're better off using the native interface for both. 13614 lt_use_gnu_ld_interface=no 13615 if test yes = "$with_gnu_ld"; then 13616 case $host_os in 13617 aix*) 13618 # The AIX port of GNU ld has always aspired to compatibility 13619 # with the native linker. However, as the warning in the GNU ld 13620 # block says, versions before 2.19.5* couldn't really create working 13621 # shared libraries, regardless of the interface used. 13622 case `$LD -v 2>&1` in 13623 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 13624 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 13625 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 13626 *) 13627 lt_use_gnu_ld_interface=yes 13628 ;; 13629 esac 13630 ;; 13631 *) 13632 lt_use_gnu_ld_interface=yes 13633 ;; 13634 esac 13635 fi 13636 13637 if test yes = "$lt_use_gnu_ld_interface"; then 13638 # If archive_cmds runs LD, not CC, wlarc should be empty 13639 wlarc='$wl' 13640 13641 # Set some defaults for GNU ld with shared library support. These 13642 # are reset later if shared libraries are not supported. Putting them 13643 # here allows them to be overridden if necessary. 13644 runpath_var=LD_RUN_PATH 13645 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13646 export_dynamic_flag_spec='$wl--export-dynamic' 13647 # ancient GNU ld didn't support --whole-archive et. al. 13648 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 13649 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13650 else 13651 whole_archive_flag_spec= 13652 fi 13653 supports_anon_versioning=no 13654 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 13655 *GNU\ gold*) supports_anon_versioning=yes ;; 13656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13659 *\ 2.11.*) ;; # other 2.11 versions 13660 *) supports_anon_versioning=yes ;; 13661 esac 13662 13663 # See if GNU ld supports shared libraries. 13664 case $host_os in 13665 aix[3-9]*) 13666 # On AIX/PPC, the GNU linker is very broken 13667 if test ia64 != "$host_cpu"; then 13668 ld_shlibs=no 13669 cat <<_LT_EOF 1>&2 13670 13671*** Warning: the GNU linker, at least up to release 2.19, is reported 13672*** to be unable to reliably create shared libraries on AIX. 13673*** Therefore, libtool is disabling shared libraries support. If you 13674*** really care for shared libraries, you may want to install binutils 13675*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 13676*** You will then need to restart the configuration process. 13677 13678_LT_EOF 13679 fi 13680 ;; 13681 13682 amigaos*) 13683 case $host_cpu in 13684 powerpc) 13685 # see comment about AmigaOS4 .so support 13686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13687 archive_expsym_cmds='' 13688 ;; 13689 m68k) 13690 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)' 13691 hardcode_libdir_flag_spec='-L$libdir' 13692 hardcode_minus_L=yes 13693 ;; 13694 esac 13695 ;; 13696 13697 beos*) 13698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13699 allow_undefined_flag=unsupported 13700 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13701 # support --undefined. This deserves some investigation. FIXME 13702 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13703 else 13704 ld_shlibs=no 13705 fi 13706 ;; 13707 13708 cygwin* | mingw* | pw32* | cegcc*) 13709 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 13710 # as there is no search path for DLLs. 13711 hardcode_libdir_flag_spec='-L$libdir' 13712 export_dynamic_flag_spec='$wl--export-all-symbols' 13713 allow_undefined_flag=unsupported 13714 always_export_symbols=no 13715 enable_shared_with_static_runtimes=yes 13716 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' 13717 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 13718 13719 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13721 # If the export-symbols file already is a .def file, use it as 13722 # is; otherwise, prepend EXPORTS... 13723 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13724 cp $export_symbols $output_objdir/$soname.def; 13725 else 13726 echo EXPORTS > $output_objdir/$soname.def; 13727 cat $export_symbols >> $output_objdir/$soname.def; 13728 fi~ 13729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13730 else 13731 ld_shlibs=no 13732 fi 13733 ;; 13734 13735 haiku*) 13736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13737 link_all_deplibs=yes 13738 ;; 13739 13740 os2*) 13741 hardcode_libdir_flag_spec='-L$libdir' 13742 hardcode_minus_L=yes 13743 allow_undefined_flag=unsupported 13744 shrext_cmds=.dll 13745 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13746 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13747 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13748 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13749 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13750 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13751 emximp -o $lib $output_objdir/$libname.def' 13752 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13753 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13754 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13755 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13756 prefix_cmds="$SED"~ 13757 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13758 prefix_cmds="$prefix_cmds -e 1d"; 13759 fi~ 13760 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13761 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13762 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13763 emximp -o $lib $output_objdir/$libname.def' 13764 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13765 enable_shared_with_static_runtimes=yes 13766 ;; 13767 13768 interix[3-9]*) 13769 hardcode_direct=no 13770 hardcode_shlibpath_var=no 13771 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13772 export_dynamic_flag_spec='$wl-E' 13773 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13774 # Instead, shared libraries are loaded at an image base (0x10000000 by 13775 # default) and relocated if they conflict, which is a slow very memory 13776 # consuming and fragmenting process. To avoid this, we pick a random, 13777 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13778 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13779 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13780 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' 13781 ;; 13782 13783 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 13784 tmp_diet=no 13785 if test linux-dietlibc = "$host_os"; then 13786 case $cc_basename in 13787 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13788 esac 13789 fi 13790 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13791 && test no = "$tmp_diet" 13792 then 13793 tmp_addflag=' $pic_flag' 13794 tmp_sharedflag='-shared' 13795 case $cc_basename,$host_cpu in 13796 pgcc*) # Portland Group C compiler 13797 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' 13798 tmp_addflag=' $pic_flag' 13799 ;; 13800 pgf77* | pgf90* | pgf95* | pgfortran*) 13801 # Portland Group f77 and f90 compilers 13802 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' 13803 tmp_addflag=' $pic_flag -Mnomain' ;; 13804 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13805 tmp_addflag=' -i_dynamic' ;; 13806 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13807 tmp_addflag=' -i_dynamic -nofor_main' ;; 13808 ifc* | ifort*) # Intel Fortran compiler 13809 tmp_addflag=' -nofor_main' ;; 13810 lf95*) # Lahey Fortran 8.1 13811 whole_archive_flag_spec= 13812 tmp_sharedflag='--shared' ;; 13813 nagfor*) # NAGFOR 5.3 13814 tmp_sharedflag='-Wl,-shared' ;; 13815 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13816 tmp_sharedflag='-qmkshrobj' 13817 tmp_addflag= ;; 13818 nvcc*) # Cuda Compiler Driver 2.2 13819 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' 13820 compiler_needs_object=yes 13821 ;; 13822 esac 13823 case `$CC -V 2>&1 | sed 5q` in 13824 *Sun\ C*) # Sun C 5.9 13825 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' 13826 compiler_needs_object=yes 13827 tmp_sharedflag='-G' ;; 13828 *Sun\ F*) # Sun Fortran 8.3 13829 tmp_sharedflag='-G' ;; 13830 esac 13831 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13832 13833 if test yes = "$supports_anon_versioning"; then 13834 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13836 echo "local: *; };" >> $output_objdir/$libname.ver~ 13837 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13838 fi 13839 13840 case $cc_basename in 13841 tcc*) 13842 export_dynamic_flag_spec='-rdynamic' 13843 ;; 13844 xlf* | bgf* | bgxlf* | mpixlf*) 13845 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13846 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 13847 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13848 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 13849 if test yes = "$supports_anon_versioning"; then 13850 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13851 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13852 echo "local: *; };" >> $output_objdir/$libname.ver~ 13853 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13854 fi 13855 ;; 13856 esac 13857 else 13858 ld_shlibs=no 13859 fi 13860 ;; 13861 13862 netbsd*) 13863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13864 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13865 wlarc= 13866 else 13867 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13868 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13869 fi 13870 ;; 13871 13872 solaris*) 13873 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 13874 ld_shlibs=no 13875 cat <<_LT_EOF 1>&2 13876 13877*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13878*** create shared libraries on Solaris systems. Therefore, libtool 13879*** is disabling shared libraries support. We urge you to upgrade GNU 13880*** binutils to release 2.9.1 or newer. Another option is to modify 13881*** your PATH or compiler configuration so that the native linker is 13882*** used, and then restart. 13883 13884_LT_EOF 13885 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13887 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13888 else 13889 ld_shlibs=no 13890 fi 13891 ;; 13892 13893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13894 case `$LD -v 2>&1` in 13895 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13896 ld_shlibs=no 13897 cat <<_LT_EOF 1>&2 13898 13899*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 13900*** reliably create shared libraries on SCO systems. Therefore, libtool 13901*** is disabling shared libraries support. We urge you to upgrade GNU 13902*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13903*** your PATH or compiler configuration so that the native linker is 13904*** used, and then restart. 13905 13906_LT_EOF 13907 ;; 13908 *) 13909 # For security reasons, it is highly recommended that you always 13910 # use absolute paths for naming shared libraries, and exclude the 13911 # DT_RUNPATH tag from executables and libraries. But doing so 13912 # requires that you compile everything twice, which is a pain. 13913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13914 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13916 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13917 else 13918 ld_shlibs=no 13919 fi 13920 ;; 13921 esac 13922 ;; 13923 13924 sunos4*) 13925 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13926 wlarc= 13927 hardcode_direct=yes 13928 hardcode_shlibpath_var=no 13929 ;; 13930 13931 *) 13932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13934 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13935 else 13936 ld_shlibs=no 13937 fi 13938 ;; 13939 esac 13940 13941 if test no = "$ld_shlibs"; then 13942 runpath_var= 13943 hardcode_libdir_flag_spec= 13944 export_dynamic_flag_spec= 13945 whole_archive_flag_spec= 13946 fi 13947 else 13948 # PORTME fill in a description of your system's linker (not GNU ld) 13949 case $host_os in 13950 aix3*) 13951 allow_undefined_flag=unsupported 13952 always_export_symbols=yes 13953 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' 13954 # Note: this linker hardcodes the directories in LIBPATH if there 13955 # are no directories specified by -L. 13956 hardcode_minus_L=yes 13957 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 13958 # Neither direct hardcoding nor static linking is supported with a 13959 # broken collect2. 13960 hardcode_direct=unsupported 13961 fi 13962 ;; 13963 13964 aix[4-9]*) 13965 if test ia64 = "$host_cpu"; then 13966 # On IA64, the linker does run time linking by default, so we don't 13967 # have to do anything special. 13968 aix_use_runtimelinking=no 13969 exp_sym_flag='-Bexport' 13970 no_entry_flag= 13971 else 13972 # If we're using GNU nm, then we don't want the "-C" option. 13973 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 13974 # Without the "-l" option, or with the "-B" option, AIX nm treats 13975 # weak defined symbols like other global defined symbols, whereas 13976 # GNU nm marks them as "W". 13977 # While the 'weak' keyword is ignored in the Export File, we need 13978 # it in the Import File for the 'aix-soname' feature, so we have 13979 # to replace the "-B" option with "-P" for AIX nm. 13980 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13981 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' 13982 else 13983 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' 13984 fi 13985 aix_use_runtimelinking=no 13986 13987 # Test if we are trying to use run time linking or normal 13988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13989 # have runtime linking enabled, and use it for executables. 13990 # For shared libraries, we enable/disable runtime linking 13991 # depending on the kind of the shared library created - 13992 # when "with_aix_soname,aix_use_runtimelinking" is: 13993 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13994 # "aix,yes" lib.so shared, rtl:yes, for executables 13995 # lib.a static archive 13996 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13997 # lib.a(lib.so.V) shared, rtl:no, for executables 13998 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13999 # lib.a(lib.so.V) shared, rtl:no 14000 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14001 # lib.a static archive 14002 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14003 for ld_flag in $LDFLAGS; do 14004 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 14005 aix_use_runtimelinking=yes 14006 break 14007 fi 14008 done 14009 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14010 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14011 # so we don't have lib.a shared libs to link our executables. 14012 # We have to force runtime linking in this case. 14013 aix_use_runtimelinking=yes 14014 LDFLAGS="$LDFLAGS -Wl,-brtl" 14015 fi 14016 ;; 14017 esac 14018 14019 exp_sym_flag='-bexport' 14020 no_entry_flag='-bnoentry' 14021 fi 14022 14023 # When large executables or shared objects are built, AIX ld can 14024 # have problems creating the table of contents. If linking a library 14025 # or program results in "error TOC overflow" add -mminimal-toc to 14026 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14027 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14028 14029 archive_cmds='' 14030 hardcode_direct=yes 14031 hardcode_direct_absolute=yes 14032 hardcode_libdir_separator=':' 14033 link_all_deplibs=yes 14034 file_list_spec='$wl-f,' 14035 case $with_aix_soname,$aix_use_runtimelinking in 14036 aix,*) ;; # traditional, no import file 14037 svr4,* | *,yes) # use import file 14038 # The Import File defines what to hardcode. 14039 hardcode_direct=no 14040 hardcode_direct_absolute=no 14041 ;; 14042 esac 14043 14044 if test yes = "$GCC"; then 14045 case $host_os in aix4.[012]|aix4.[012].*) 14046 # We only want to do this on AIX 4.2 and lower, the check 14047 # below for broken collect2 doesn't work under 4.3+ 14048 collect2name=`$CC -print-prog-name=collect2` 14049 if test -f "$collect2name" && 14050 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14051 then 14052 # We have reworked collect2 14053 : 14054 else 14055 # We have old collect2 14056 hardcode_direct=unsupported 14057 # It fails to find uninstalled libraries when the uninstalled 14058 # path is not listed in the libpath. Setting hardcode_minus_L 14059 # to unsupported forces relinking 14060 hardcode_minus_L=yes 14061 hardcode_libdir_flag_spec='-L$libdir' 14062 hardcode_libdir_separator= 14063 fi 14064 ;; 14065 esac 14066 shared_flag='-shared' 14067 if test yes = "$aix_use_runtimelinking"; then 14068 shared_flag="$shared_flag "'$wl-G' 14069 fi 14070 # Need to ensure runtime linking is disabled for the traditional 14071 # shared library, or the linker may eventually find shared libraries 14072 # /with/ Import File - we do not want to mix them. 14073 shared_flag_aix='-shared' 14074 shared_flag_svr4='-shared $wl-G' 14075 else 14076 # not using gcc 14077 if test ia64 = "$host_cpu"; then 14078 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14079 # chokes on -Wl,-G. The following line is correct: 14080 shared_flag='-G' 14081 else 14082 if test yes = "$aix_use_runtimelinking"; then 14083 shared_flag='$wl-G' 14084 else 14085 shared_flag='$wl-bM:SRE' 14086 fi 14087 shared_flag_aix='$wl-bM:SRE' 14088 shared_flag_svr4='$wl-G' 14089 fi 14090 fi 14091 14092 export_dynamic_flag_spec='$wl-bexpall' 14093 # It seems that -bexpall does not export symbols beginning with 14094 # underscore (_), so it is better to generate a list of symbols to export. 14095 always_export_symbols=yes 14096 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14097 # Warning - without using the other runtime loading flags (-brtl), 14098 # -berok will link without error, but may produce a broken library. 14099 allow_undefined_flag='-berok' 14100 # Determine the default libpath from the value encoded in an 14101 # empty executable. 14102 if test set = "${lt_cv_aix_libpath+set}"; then 14103 aix_libpath=$lt_cv_aix_libpath 14104else 14105 if ${lt_cv_aix_libpath_+:} false; then : 14106 $as_echo_n "(cached) " >&6 14107else 14108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14109/* end confdefs.h. */ 14110 14111int 14112main () 14113{ 14114 14115 ; 14116 return 0; 14117} 14118_ACEOF 14119if ac_fn_c_try_link "$LINENO"; then : 14120 14121 lt_aix_libpath_sed=' 14122 /Import File Strings/,/^$/ { 14123 /^0/ { 14124 s/^0 *\([^ ]*\) *$/\1/ 14125 p 14126 } 14127 }' 14128 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14129 # Check for a 64-bit object if we didn't find anything. 14130 if test -z "$lt_cv_aix_libpath_"; then 14131 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14132 fi 14133fi 14134rm -f core conftest.err conftest.$ac_objext \ 14135 conftest$ac_exeext conftest.$ac_ext 14136 if test -z "$lt_cv_aix_libpath_"; then 14137 lt_cv_aix_libpath_=/usr/lib:/lib 14138 fi 14139 14140fi 14141 14142 aix_libpath=$lt_cv_aix_libpath_ 14143fi 14144 14145 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14146 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 14147 else 14148 if test ia64 = "$host_cpu"; then 14149 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 14150 allow_undefined_flag="-z nodefs" 14151 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" 14152 else 14153 # Determine the default libpath from the value encoded in an 14154 # empty executable. 14155 if test set = "${lt_cv_aix_libpath+set}"; then 14156 aix_libpath=$lt_cv_aix_libpath 14157else 14158 if ${lt_cv_aix_libpath_+:} false; then : 14159 $as_echo_n "(cached) " >&6 14160else 14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14162/* end confdefs.h. */ 14163 14164int 14165main () 14166{ 14167 14168 ; 14169 return 0; 14170} 14171_ACEOF 14172if ac_fn_c_try_link "$LINENO"; then : 14173 14174 lt_aix_libpath_sed=' 14175 /Import File Strings/,/^$/ { 14176 /^0/ { 14177 s/^0 *\([^ ]*\) *$/\1/ 14178 p 14179 } 14180 }' 14181 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14182 # Check for a 64-bit object if we didn't find anything. 14183 if test -z "$lt_cv_aix_libpath_"; then 14184 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14185 fi 14186fi 14187rm -f core conftest.err conftest.$ac_objext \ 14188 conftest$ac_exeext conftest.$ac_ext 14189 if test -z "$lt_cv_aix_libpath_"; then 14190 lt_cv_aix_libpath_=/usr/lib:/lib 14191 fi 14192 14193fi 14194 14195 aix_libpath=$lt_cv_aix_libpath_ 14196fi 14197 14198 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14199 # Warning - without using the other run time loading flags, 14200 # -berok will link without error, but may produce a broken library. 14201 no_undefined_flag=' $wl-bernotok' 14202 allow_undefined_flag=' $wl-berok' 14203 if test yes = "$with_gnu_ld"; then 14204 # We only use this code for GNU lds that support --whole-archive. 14205 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 14206 else 14207 # Exported symbols can be pulled into shared objects from archives 14208 whole_archive_flag_spec='$convenience' 14209 fi 14210 archive_cmds_need_lc=yes 14211 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14212 # -brtl affects multiple linker settings, -berok does not and is overridden later 14213 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14214 if test svr4 != "$with_aix_soname"; then 14215 # This is similar to how AIX traditionally builds its shared libraries. 14216 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' 14217 fi 14218 if test aix != "$with_aix_soname"; then 14219 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' 14220 else 14221 # used by -dlpreopen to get the symbols 14222 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14223 fi 14224 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 14225 fi 14226 fi 14227 ;; 14228 14229 amigaos*) 14230 case $host_cpu in 14231 powerpc) 14232 # see comment about AmigaOS4 .so support 14233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14234 archive_expsym_cmds='' 14235 ;; 14236 m68k) 14237 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)' 14238 hardcode_libdir_flag_spec='-L$libdir' 14239 hardcode_minus_L=yes 14240 ;; 14241 esac 14242 ;; 14243 14244 bsdi[45]*) 14245 export_dynamic_flag_spec=-rdynamic 14246 ;; 14247 14248 cygwin* | mingw* | pw32* | cegcc*) 14249 # When not using gcc, we currently assume that we are using 14250 # Microsoft Visual C++. 14251 # hardcode_libdir_flag_spec is actually meaningless, as there is 14252 # no search path for DLLs. 14253 case $cc_basename in 14254 cl*) 14255 # Native MSVC 14256 hardcode_libdir_flag_spec=' ' 14257 allow_undefined_flag=unsupported 14258 always_export_symbols=yes 14259 file_list_spec='@' 14260 # Tell ltmain to make .lib files, not .a files. 14261 libext=lib 14262 # Tell ltmain to make .dll files, not .so files. 14263 shrext_cmds=.dll 14264 # FIXME: Setting linknames here is a bad hack. 14265 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14266 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14267 cp "$export_symbols" "$output_objdir/$soname.def"; 14268 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14269 else 14270 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14271 fi~ 14272 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14273 linknames=' 14274 # The linker will not automatically build a static lib if we build a DLL. 14275 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 14276 enable_shared_with_static_runtimes=yes 14277 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14278 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14279 # Don't use ranlib 14280 old_postinstall_cmds='chmod 644 $oldlib' 14281 postlink_cmds='lt_outputfile="@OUTPUT@"~ 14282 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14283 case $lt_outputfile in 14284 *.exe|*.EXE) ;; 14285 *) 14286 lt_outputfile=$lt_outputfile.exe 14287 lt_tool_outputfile=$lt_tool_outputfile.exe 14288 ;; 14289 esac~ 14290 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14291 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14292 $RM "$lt_outputfile.manifest"; 14293 fi' 14294 ;; 14295 *) 14296 # Assume MSVC wrapper 14297 hardcode_libdir_flag_spec=' ' 14298 allow_undefined_flag=unsupported 14299 # Tell ltmain to make .lib files, not .a files. 14300 libext=lib 14301 # Tell ltmain to make .dll files, not .so files. 14302 shrext_cmds=.dll 14303 # FIXME: Setting linknames here is a bad hack. 14304 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 14305 # The linker will automatically build a .lib file if we build a DLL. 14306 old_archive_from_new_cmds='true' 14307 # FIXME: Should let the user specify the lib program. 14308 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 14309 enable_shared_with_static_runtimes=yes 14310 ;; 14311 esac 14312 ;; 14313 14314 darwin* | rhapsody*) 14315 14316 14317 archive_cmds_need_lc=no 14318 hardcode_direct=no 14319 hardcode_automatic=yes 14320 hardcode_shlibpath_var=unsupported 14321 if test yes = "$lt_cv_ld_force_load"; then 14322 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\"`' 14323 14324 else 14325 whole_archive_flag_spec='' 14326 fi 14327 link_all_deplibs=yes 14328 allow_undefined_flag=$_lt_dar_allow_undefined 14329 case $cc_basename in 14330 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14331 *) _lt_dar_can_shared=$GCC ;; 14332 esac 14333 if test yes = "$_lt_dar_can_shared"; then 14334 output_verbose_link_cmd=func_echo_all 14335 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14336 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14337 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" 14338 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" 14339 14340 else 14341 ld_shlibs=no 14342 fi 14343 14344 ;; 14345 14346 dgux*) 14347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14348 hardcode_libdir_flag_spec='-L$libdir' 14349 hardcode_shlibpath_var=no 14350 ;; 14351 14352 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14353 # support. Future versions do this automatically, but an explicit c++rt0.o 14354 # does not break anything, and helps significantly (at the cost of a little 14355 # extra space). 14356 freebsd2.2*) 14357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14358 hardcode_libdir_flag_spec='-R$libdir' 14359 hardcode_direct=yes 14360 hardcode_shlibpath_var=no 14361 ;; 14362 14363 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14364 freebsd2.*) 14365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14366 hardcode_direct=yes 14367 hardcode_minus_L=yes 14368 hardcode_shlibpath_var=no 14369 ;; 14370 14371 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14372 freebsd* | dragonfly*) 14373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14374 hardcode_libdir_flag_spec='-R$libdir' 14375 hardcode_direct=yes 14376 hardcode_shlibpath_var=no 14377 ;; 14378 14379 hpux9*) 14380 if test yes = "$GCC"; then 14381 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' 14382 else 14383 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' 14384 fi 14385 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14386 hardcode_libdir_separator=: 14387 hardcode_direct=yes 14388 14389 # hardcode_minus_L: Not really in the search PATH, 14390 # but as the default location of the library. 14391 hardcode_minus_L=yes 14392 export_dynamic_flag_spec='$wl-E' 14393 ;; 14394 14395 hpux10*) 14396 if test yes,no = "$GCC,$with_gnu_ld"; then 14397 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14398 else 14399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14400 fi 14401 if test no = "$with_gnu_ld"; then 14402 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14403 hardcode_libdir_separator=: 14404 hardcode_direct=yes 14405 hardcode_direct_absolute=yes 14406 export_dynamic_flag_spec='$wl-E' 14407 # hardcode_minus_L: Not really in the search PATH, 14408 # but as the default location of the library. 14409 hardcode_minus_L=yes 14410 fi 14411 ;; 14412 14413 hpux11*) 14414 if test yes,no = "$GCC,$with_gnu_ld"; then 14415 case $host_cpu in 14416 hppa*64*) 14417 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14418 ;; 14419 ia64*) 14420 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14421 ;; 14422 *) 14423 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14424 ;; 14425 esac 14426 else 14427 case $host_cpu in 14428 hppa*64*) 14429 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14430 ;; 14431 ia64*) 14432 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14433 ;; 14434 *) 14435 14436 # Older versions of the 11.00 compiler do not understand -b yet 14437 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 14439$as_echo_n "checking if $CC understands -b... " >&6; } 14440if ${lt_cv_prog_compiler__b+:} false; then : 14441 $as_echo_n "(cached) " >&6 14442else 14443 lt_cv_prog_compiler__b=no 14444 save_LDFLAGS=$LDFLAGS 14445 LDFLAGS="$LDFLAGS -b" 14446 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14447 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14448 # The linker can only warn and ignore the option if not recognized 14449 # So say no if there are warnings 14450 if test -s conftest.err; then 14451 # Append any errors to the config.log. 14452 cat conftest.err 1>&5 14453 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14455 if diff conftest.exp conftest.er2 >/dev/null; then 14456 lt_cv_prog_compiler__b=yes 14457 fi 14458 else 14459 lt_cv_prog_compiler__b=yes 14460 fi 14461 fi 14462 $RM -r conftest* 14463 LDFLAGS=$save_LDFLAGS 14464 14465fi 14466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 14467$as_echo "$lt_cv_prog_compiler__b" >&6; } 14468 14469if test yes = "$lt_cv_prog_compiler__b"; then 14470 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14471else 14472 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14473fi 14474 14475 ;; 14476 esac 14477 fi 14478 if test no = "$with_gnu_ld"; then 14479 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14480 hardcode_libdir_separator=: 14481 14482 case $host_cpu in 14483 hppa*64*|ia64*) 14484 hardcode_direct=no 14485 hardcode_shlibpath_var=no 14486 ;; 14487 *) 14488 hardcode_direct=yes 14489 hardcode_direct_absolute=yes 14490 export_dynamic_flag_spec='$wl-E' 14491 14492 # hardcode_minus_L: Not really in the search PATH, 14493 # but as the default location of the library. 14494 hardcode_minus_L=yes 14495 ;; 14496 esac 14497 fi 14498 ;; 14499 14500 irix5* | irix6* | nonstopux*) 14501 if test yes = "$GCC"; then 14502 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' 14503 # Try to use the -exported_symbol ld option, if it does not 14504 # work, assume that -exports_file does not work either and 14505 # implicitly export all symbols. 14506 # This should be the same for all languages, so no per-tag cache variable. 14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 14508$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 14509if ${lt_cv_irix_exported_symbol+:} false; then : 14510 $as_echo_n "(cached) " >&6 14511else 14512 save_LDFLAGS=$LDFLAGS 14513 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14515/* end confdefs.h. */ 14516int foo (void) { return 0; } 14517_ACEOF 14518if ac_fn_c_try_link "$LINENO"; then : 14519 lt_cv_irix_exported_symbol=yes 14520else 14521 lt_cv_irix_exported_symbol=no 14522fi 14523rm -f core conftest.err conftest.$ac_objext \ 14524 conftest$ac_exeext conftest.$ac_ext 14525 LDFLAGS=$save_LDFLAGS 14526fi 14527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 14528$as_echo "$lt_cv_irix_exported_symbol" >&6; } 14529 if test yes = "$lt_cv_irix_exported_symbol"; then 14530 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' 14531 fi 14532 else 14533 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' 14534 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' 14535 fi 14536 archive_cmds_need_lc='no' 14537 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14538 hardcode_libdir_separator=: 14539 inherit_rpath=yes 14540 link_all_deplibs=yes 14541 ;; 14542 14543 linux*) 14544 case $cc_basename in 14545 tcc*) 14546 # Fabrice Bellard et al's Tiny C Compiler 14547 ld_shlibs=yes 14548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14549 ;; 14550 esac 14551 ;; 14552 14553 netbsd*) 14554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14556 else 14557 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14558 fi 14559 hardcode_libdir_flag_spec='-R$libdir' 14560 hardcode_direct=yes 14561 hardcode_shlibpath_var=no 14562 ;; 14563 14564 newsos6) 14565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14566 hardcode_direct=yes 14567 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14568 hardcode_libdir_separator=: 14569 hardcode_shlibpath_var=no 14570 ;; 14571 14572 *nto* | *qnx*) 14573 ;; 14574 14575 openbsd* | bitrig*) 14576 if test -f /usr/libexec/ld.so; then 14577 hardcode_direct=yes 14578 hardcode_shlibpath_var=no 14579 hardcode_direct_absolute=yes 14580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14582 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 14583 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14584 export_dynamic_flag_spec='$wl-E' 14585 else 14586 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14587 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14588 fi 14589 else 14590 ld_shlibs=no 14591 fi 14592 ;; 14593 14594 os2*) 14595 hardcode_libdir_flag_spec='-L$libdir' 14596 hardcode_minus_L=yes 14597 allow_undefined_flag=unsupported 14598 shrext_cmds=.dll 14599 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14600 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14601 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14602 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14603 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14604 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14605 emximp -o $lib $output_objdir/$libname.def' 14606 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14607 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14608 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14609 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14610 prefix_cmds="$SED"~ 14611 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14612 prefix_cmds="$prefix_cmds -e 1d"; 14613 fi~ 14614 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14615 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14616 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14617 emximp -o $lib $output_objdir/$libname.def' 14618 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14619 enable_shared_with_static_runtimes=yes 14620 ;; 14621 14622 osf3*) 14623 if test yes = "$GCC"; then 14624 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 14625 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' 14626 else 14627 allow_undefined_flag=' -expect_unresolved \*' 14628 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' 14629 fi 14630 archive_cmds_need_lc='no' 14631 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14632 hardcode_libdir_separator=: 14633 ;; 14634 14635 osf4* | osf5*) # as osf3* with the addition of -msym flag 14636 if test yes = "$GCC"; then 14637 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 14638 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' 14639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14640 else 14641 allow_undefined_flag=' -expect_unresolved \*' 14642 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' 14643 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~ 14644 $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' 14645 14646 # Both c and cxx compiler support -rpath directly 14647 hardcode_libdir_flag_spec='-rpath $libdir' 14648 fi 14649 archive_cmds_need_lc='no' 14650 hardcode_libdir_separator=: 14651 ;; 14652 14653 solaris*) 14654 no_undefined_flag=' -z defs' 14655 if test yes = "$GCC"; then 14656 wlarc='$wl' 14657 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14658 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14659 $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' 14660 else 14661 case `$CC -V 2>&1` in 14662 *"Compilers 5.0"*) 14663 wlarc='' 14664 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 14665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14666 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 14667 ;; 14668 *) 14669 wlarc='$wl' 14670 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 14671 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14672 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 14673 ;; 14674 esac 14675 fi 14676 hardcode_libdir_flag_spec='-R$libdir' 14677 hardcode_shlibpath_var=no 14678 case $host_os in 14679 solaris2.[0-5] | solaris2.[0-5].*) ;; 14680 *) 14681 # The compiler driver will combine and reorder linker options, 14682 # but understands '-z linker_flag'. GCC discards it without '$wl', 14683 # but is careful enough not to reorder. 14684 # Supported since Solaris 2.6 (maybe 2.5.1?) 14685 if test yes = "$GCC"; then 14686 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14687 else 14688 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 14689 fi 14690 ;; 14691 esac 14692 link_all_deplibs=yes 14693 ;; 14694 14695 sunos4*) 14696 if test sequent = "$host_vendor"; then 14697 # Use $CC to link under sequent, because it throws in some extra .o 14698 # files that make .init and .fini sections work. 14699 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14700 else 14701 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14702 fi 14703 hardcode_libdir_flag_spec='-L$libdir' 14704 hardcode_direct=yes 14705 hardcode_minus_L=yes 14706 hardcode_shlibpath_var=no 14707 ;; 14708 14709 sysv4) 14710 case $host_vendor in 14711 sni) 14712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14713 hardcode_direct=yes # is this really true??? 14714 ;; 14715 siemens) 14716 ## LD is ld it makes a PLAMLIB 14717 ## CC just makes a GrossModule. 14718 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14719 reload_cmds='$CC -r -o $output$reload_objs' 14720 hardcode_direct=no 14721 ;; 14722 motorola) 14723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14724 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 14725 ;; 14726 esac 14727 runpath_var='LD_RUN_PATH' 14728 hardcode_shlibpath_var=no 14729 ;; 14730 14731 sysv4.3*) 14732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14733 hardcode_shlibpath_var=no 14734 export_dynamic_flag_spec='-Bexport' 14735 ;; 14736 14737 sysv4*MP*) 14738 if test -d /usr/nec; then 14739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14740 hardcode_shlibpath_var=no 14741 runpath_var=LD_RUN_PATH 14742 hardcode_runpath_var=yes 14743 ld_shlibs=yes 14744 fi 14745 ;; 14746 14747 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14748 no_undefined_flag='$wl-z,text' 14749 archive_cmds_need_lc=no 14750 hardcode_shlibpath_var=no 14751 runpath_var='LD_RUN_PATH' 14752 14753 if test yes = "$GCC"; then 14754 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14755 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14756 else 14757 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14758 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14759 fi 14760 ;; 14761 14762 sysv5* | sco3.2v5* | sco5v6*) 14763 # Note: We CANNOT use -z defs as we might desire, because we do not 14764 # link with -lc, and that would cause any symbols used from libc to 14765 # always be unresolved, which means just about no library would 14766 # ever link correctly. If we're not using GNU ld we use -z text 14767 # though, which does catch some bad symbols but isn't as heavy-handed 14768 # as -z defs. 14769 no_undefined_flag='$wl-z,text' 14770 allow_undefined_flag='$wl-z,nodefs' 14771 archive_cmds_need_lc=no 14772 hardcode_shlibpath_var=no 14773 hardcode_libdir_flag_spec='$wl-R,$libdir' 14774 hardcode_libdir_separator=':' 14775 link_all_deplibs=yes 14776 export_dynamic_flag_spec='$wl-Bexport' 14777 runpath_var='LD_RUN_PATH' 14778 14779 if test yes = "$GCC"; then 14780 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14781 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14782 else 14783 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14784 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14785 fi 14786 ;; 14787 14788 uts4*) 14789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14790 hardcode_libdir_flag_spec='-L$libdir' 14791 hardcode_shlibpath_var=no 14792 ;; 14793 14794 *) 14795 ld_shlibs=no 14796 ;; 14797 esac 14798 14799 if test sni = "$host_vendor"; then 14800 case $host in 14801 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14802 export_dynamic_flag_spec='$wl-Blargedynsym' 14803 ;; 14804 esac 14805 fi 14806 fi 14807 14808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 14809$as_echo "$ld_shlibs" >&6; } 14810test no = "$ld_shlibs" && can_build_shared=no 14811 14812with_gnu_ld=$with_gnu_ld 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828# 14829# Do we need to explicitly link libc? 14830# 14831case "x$archive_cmds_need_lc" in 14832x|xyes) 14833 # Assume -lc should be added 14834 archive_cmds_need_lc=yes 14835 14836 if test yes,yes = "$GCC,$enable_shared"; then 14837 case $archive_cmds in 14838 *'~'*) 14839 # FIXME: we may have to deal with multi-command sequences. 14840 ;; 14841 '$CC '*) 14842 # Test whether the compiler implicitly links with -lc since on some 14843 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14844 # to ld, don't add -lc before -lgcc. 14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14846$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14847if ${lt_cv_archive_cmds_need_lc+:} false; then : 14848 $as_echo_n "(cached) " >&6 14849else 14850 $RM conftest* 14851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14852 14853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14854 (eval $ac_compile) 2>&5 14855 ac_status=$? 14856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14857 test $ac_status = 0; } 2>conftest.err; then 14858 soname=conftest 14859 lib=conftest 14860 libobjs=conftest.$ac_objext 14861 deplibs= 14862 wl=$lt_prog_compiler_wl 14863 pic_flag=$lt_prog_compiler_pic 14864 compiler_flags=-v 14865 linker_flags=-v 14866 verstring= 14867 output_objdir=. 14868 libname=conftest 14869 lt_save_allow_undefined_flag=$allow_undefined_flag 14870 allow_undefined_flag= 14871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14872 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14873 ac_status=$? 14874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14875 test $ac_status = 0; } 14876 then 14877 lt_cv_archive_cmds_need_lc=no 14878 else 14879 lt_cv_archive_cmds_need_lc=yes 14880 fi 14881 allow_undefined_flag=$lt_save_allow_undefined_flag 14882 else 14883 cat conftest.err 1>&5 14884 fi 14885 $RM conftest* 14886 14887fi 14888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 14889$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 14890 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 14891 ;; 14892 esac 14893 fi 14894 ;; 14895esac 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15049$as_echo_n "checking dynamic linker characteristics... " >&6; } 15050 15051if test yes = "$GCC"; then 15052 case $host_os in 15053 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 15054 *) lt_awk_arg='/^libraries:/' ;; 15055 esac 15056 case $host_os in 15057 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 15058 *) lt_sed_strip_eq='s|=/|/|g' ;; 15059 esac 15060 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 15061 case $lt_search_path_spec in 15062 *\;*) 15063 # if the path contains ";" then we assume it to be the separator 15064 # otherwise default to the standard path separator (i.e. ":") - it is 15065 # assumed that no part of a normal pathname contains ";" but that should 15066 # okay in the real world where ";" in dirpaths is itself problematic. 15067 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 15068 ;; 15069 *) 15070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 15071 ;; 15072 esac 15073 # Ok, now we have the path, separated by spaces, we can step through it 15074 # and add multilib dir if necessary... 15075 lt_tmp_lt_search_path_spec= 15076 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 15077 # ...but if some path component already ends with the multilib dir we assume 15078 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 15079 case "$lt_multi_os_dir; $lt_search_path_spec " in 15080 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 15081 lt_multi_os_dir= 15082 ;; 15083 esac 15084 for lt_sys_path in $lt_search_path_spec; do 15085 if test -d "$lt_sys_path$lt_multi_os_dir"; then 15086 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 15087 elif test -n "$lt_multi_os_dir"; then 15088 test -d "$lt_sys_path" && \ 15089 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 15090 fi 15091 done 15092 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 15093BEGIN {RS = " "; FS = "/|\n";} { 15094 lt_foo = ""; 15095 lt_count = 0; 15096 for (lt_i = NF; lt_i > 0; lt_i--) { 15097 if ($lt_i != "" && $lt_i != ".") { 15098 if ($lt_i == "..") { 15099 lt_count++; 15100 } else { 15101 if (lt_count == 0) { 15102 lt_foo = "/" $lt_i lt_foo; 15103 } else { 15104 lt_count--; 15105 } 15106 } 15107 } 15108 } 15109 if (lt_foo != "") { lt_freq[lt_foo]++; } 15110 if (lt_freq[lt_foo] == 1) { print lt_foo; } 15111}'` 15112 # AWK program above erroneously prepends '/' to C:/dos/paths 15113 # for these hosts. 15114 case $host_os in 15115 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 15116 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 15117 esac 15118 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 15119else 15120 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15121fi 15122library_names_spec= 15123libname_spec='lib$name' 15124soname_spec= 15125shrext_cmds=.so 15126postinstall_cmds= 15127postuninstall_cmds= 15128finish_cmds= 15129finish_eval= 15130shlibpath_var= 15131shlibpath_overrides_runpath=unknown 15132version_type=none 15133dynamic_linker="$host_os ld.so" 15134sys_lib_dlsearch_path_spec="/lib /usr/lib" 15135need_lib_prefix=unknown 15136hardcode_into_libs=no 15137 15138# when you set need_version to no, make sure it does not cause -set_version 15139# flags to be left without arguments 15140need_version=unknown 15141 15142 15143 15144case $host_os in 15145aix3*) 15146 version_type=linux # correct to gnu/linux during the next big refactor 15147 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15148 shlibpath_var=LIBPATH 15149 15150 # AIX 3 has no versioning support, so we append a major version to the name. 15151 soname_spec='$libname$release$shared_ext$major' 15152 ;; 15153 15154aix[4-9]*) 15155 version_type=linux # correct to gnu/linux during the next big refactor 15156 need_lib_prefix=no 15157 need_version=no 15158 hardcode_into_libs=yes 15159 if test ia64 = "$host_cpu"; then 15160 # AIX 5 supports IA64 15161 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15162 shlibpath_var=LD_LIBRARY_PATH 15163 else 15164 # With GCC up to 2.95.x, collect2 would create an import file 15165 # for dependence libraries. The import file would start with 15166 # the line '#! .'. This would cause the generated library to 15167 # depend on '.', always an invalid library. This was fixed in 15168 # development snapshots of GCC prior to 3.0. 15169 case $host_os in 15170 aix4 | aix4.[01] | aix4.[01].*) 15171 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15172 echo ' yes ' 15173 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15174 : 15175 else 15176 can_build_shared=no 15177 fi 15178 ;; 15179 esac 15180 # Using Import Files as archive members, it is possible to support 15181 # filename-based versioning of shared library archives on AIX. While 15182 # this would work for both with and without runtime linking, it will 15183 # prevent static linking of such archives. So we do filename-based 15184 # shared library versioning with .so extension only, which is used 15185 # when both runtime linking and shared linking is enabled. 15186 # Unfortunately, runtime linking may impact performance, so we do 15187 # not want this to be the default eventually. Also, we use the 15188 # versioned .so libs for executables only if there is the -brtl 15189 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15190 # To allow for filename-based versioning support, we need to create 15191 # libNAME.so.V as an archive file, containing: 15192 # *) an Import File, referring to the versioned filename of the 15193 # archive as well as the shared archive member, telling the 15194 # bitwidth (32 or 64) of that shared object, and providing the 15195 # list of exported symbols of that shared object, eventually 15196 # decorated with the 'weak' keyword 15197 # *) the shared object with the F_LOADONLY flag set, to really avoid 15198 # it being seen by the linker. 15199 # At run time we better use the real file rather than another symlink, 15200 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15201 15202 case $with_aix_soname,$aix_use_runtimelinking in 15203 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15204 # soname into executable. Probably we can add versioning support to 15205 # collect2, so additional links can be useful in future. 15206 aix,yes) # traditional libtool 15207 dynamic_linker='AIX unversionable lib.so' 15208 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15209 # instead of lib<name>.a to let people know that these are not 15210 # typical AIX shared libraries. 15211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15212 ;; 15213 aix,no) # traditional AIX only 15214 dynamic_linker='AIX lib.a(lib.so.V)' 15215 # We preserve .a as extension for shared libraries through AIX4.2 15216 # and later when we are not doing run time linking. 15217 library_names_spec='$libname$release.a $libname.a' 15218 soname_spec='$libname$release$shared_ext$major' 15219 ;; 15220 svr4,*) # full svr4 only 15221 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15222 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15223 # We do not specify a path in Import Files, so LIBPATH fires. 15224 shlibpath_overrides_runpath=yes 15225 ;; 15226 *,yes) # both, prefer svr4 15227 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15228 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15229 # unpreferred sharedlib libNAME.a needs extra handling 15230 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"' 15231 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"' 15232 # We do not specify a path in Import Files, so LIBPATH fires. 15233 shlibpath_overrides_runpath=yes 15234 ;; 15235 *,no) # both, prefer aix 15236 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15237 library_names_spec='$libname$release.a $libname.a' 15238 soname_spec='$libname$release$shared_ext$major' 15239 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15240 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)' 15241 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"' 15242 ;; 15243 esac 15244 shlibpath_var=LIBPATH 15245 fi 15246 ;; 15247 15248amigaos*) 15249 case $host_cpu in 15250 powerpc) 15251 # Since July 2007 AmigaOS4 officially supports .so libraries. 15252 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15254 ;; 15255 m68k) 15256 library_names_spec='$libname.ixlibrary $libname.a' 15257 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15258 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' 15259 ;; 15260 esac 15261 ;; 15262 15263beos*) 15264 library_names_spec='$libname$shared_ext' 15265 dynamic_linker="$host_os ld.so" 15266 shlibpath_var=LIBRARY_PATH 15267 ;; 15268 15269bsdi[45]*) 15270 version_type=linux # correct to gnu/linux during the next big refactor 15271 need_version=no 15272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15273 soname_spec='$libname$release$shared_ext$major' 15274 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15275 shlibpath_var=LD_LIBRARY_PATH 15276 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15277 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15278 # the default ld.so.conf also contains /usr/contrib/lib and 15279 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15280 # libtool to hard-code these into programs 15281 ;; 15282 15283cygwin* | mingw* | pw32* | cegcc*) 15284 version_type=windows 15285 shrext_cmds=.dll 15286 need_version=no 15287 need_lib_prefix=no 15288 15289 case $GCC,$cc_basename in 15290 yes,*) 15291 # gcc 15292 library_names_spec='$libname.dll.a' 15293 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15294 postinstall_cmds='base_file=`basename \$file`~ 15295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15296 dldir=$destdir/`dirname \$dlpath`~ 15297 test -d \$dldir || mkdir -p \$dldir~ 15298 $install_prog $dir/$dlname \$dldir/$dlname~ 15299 chmod a+x \$dldir/$dlname~ 15300 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15301 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15302 fi' 15303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15304 dlpath=$dir/\$dldll~ 15305 $RM \$dlpath' 15306 shlibpath_overrides_runpath=yes 15307 15308 case $host_os in 15309 cygwin*) 15310 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15311 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15312 15313 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 15314 ;; 15315 mingw* | cegcc*) 15316 # MinGW DLLs use traditional 'lib' prefix 15317 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15318 ;; 15319 pw32*) 15320 # pw32 DLLs use 'pw' prefix rather than 'lib' 15321 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15322 ;; 15323 esac 15324 dynamic_linker='Win32 ld.exe' 15325 ;; 15326 15327 *,cl*) 15328 # Native MSVC 15329 libname_spec='$name' 15330 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15331 library_names_spec='$libname.dll.lib' 15332 15333 case $build_os in 15334 mingw*) 15335 sys_lib_search_path_spec= 15336 lt_save_ifs=$IFS 15337 IFS=';' 15338 for lt_path in $LIB 15339 do 15340 IFS=$lt_save_ifs 15341 # Let DOS variable expansion print the short 8.3 style file name. 15342 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15343 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15344 done 15345 IFS=$lt_save_ifs 15346 # Convert to MSYS style. 15347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15348 ;; 15349 cygwin*) 15350 # Convert to unix form, then to dos form, then back to unix form 15351 # but this time dos style (no spaces!) so that the unix form looks 15352 # like /cygdrive/c/PROGRA~1:/cygdr... 15353 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15354 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15355 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15356 ;; 15357 *) 15358 sys_lib_search_path_spec=$LIB 15359 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15360 # It is most probably a Windows format PATH. 15361 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15362 else 15363 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15364 fi 15365 # FIXME: find the short name or the path components, as spaces are 15366 # common. (e.g. "Program Files" -> "PROGRA~1") 15367 ;; 15368 esac 15369 15370 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15371 postinstall_cmds='base_file=`basename \$file`~ 15372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15373 dldir=$destdir/`dirname \$dlpath`~ 15374 test -d \$dldir || mkdir -p \$dldir~ 15375 $install_prog $dir/$dlname \$dldir/$dlname' 15376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15377 dlpath=$dir/\$dldll~ 15378 $RM \$dlpath' 15379 shlibpath_overrides_runpath=yes 15380 dynamic_linker='Win32 link.exe' 15381 ;; 15382 15383 *) 15384 # Assume MSVC wrapper 15385 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15386 dynamic_linker='Win32 ld.exe' 15387 ;; 15388 esac 15389 # FIXME: first we should search . and the directory the executable is in 15390 shlibpath_var=PATH 15391 ;; 15392 15393darwin* | rhapsody*) 15394 dynamic_linker="$host_os dyld" 15395 version_type=darwin 15396 need_lib_prefix=no 15397 need_version=no 15398 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15399 soname_spec='$libname$release$major$shared_ext' 15400 shlibpath_overrides_runpath=yes 15401 shlibpath_var=DYLD_LIBRARY_PATH 15402 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15403 15404 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 15405 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15406 ;; 15407 15408dgux*) 15409 version_type=linux # correct to gnu/linux during the next big refactor 15410 need_lib_prefix=no 15411 need_version=no 15412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15413 soname_spec='$libname$release$shared_ext$major' 15414 shlibpath_var=LD_LIBRARY_PATH 15415 ;; 15416 15417freebsd* | dragonfly*) 15418 # DragonFly does not have aout. When/if they implement a new 15419 # versioning mechanism, adjust this. 15420 if test -x /usr/bin/objformat; then 15421 objformat=`/usr/bin/objformat` 15422 else 15423 case $host_os in 15424 freebsd[23].*) objformat=aout ;; 15425 *) objformat=elf ;; 15426 esac 15427 fi 15428 version_type=freebsd-$objformat 15429 case $version_type in 15430 freebsd-elf*) 15431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15432 soname_spec='$libname$release$shared_ext$major' 15433 need_version=no 15434 need_lib_prefix=no 15435 ;; 15436 freebsd-*) 15437 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15438 need_version=yes 15439 ;; 15440 esac 15441 shlibpath_var=LD_LIBRARY_PATH 15442 case $host_os in 15443 freebsd2.*) 15444 shlibpath_overrides_runpath=yes 15445 ;; 15446 freebsd3.[01]* | freebsdelf3.[01]*) 15447 shlibpath_overrides_runpath=yes 15448 hardcode_into_libs=yes 15449 ;; 15450 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15451 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15452 shlibpath_overrides_runpath=no 15453 hardcode_into_libs=yes 15454 ;; 15455 *) # from 4.6 on, and DragonFly 15456 shlibpath_overrides_runpath=yes 15457 hardcode_into_libs=yes 15458 ;; 15459 esac 15460 ;; 15461 15462haiku*) 15463 version_type=linux # correct to gnu/linux during the next big refactor 15464 need_lib_prefix=no 15465 need_version=no 15466 dynamic_linker="$host_os runtime_loader" 15467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15468 soname_spec='$libname$release$shared_ext$major' 15469 shlibpath_var=LIBRARY_PATH 15470 shlibpath_overrides_runpath=no 15471 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15472 hardcode_into_libs=yes 15473 ;; 15474 15475hpux9* | hpux10* | hpux11*) 15476 # Give a soname corresponding to the major version so that dld.sl refuses to 15477 # link against other versions. 15478 version_type=sunos 15479 need_lib_prefix=no 15480 need_version=no 15481 case $host_cpu in 15482 ia64*) 15483 shrext_cmds='.so' 15484 hardcode_into_libs=yes 15485 dynamic_linker="$host_os dld.so" 15486 shlibpath_var=LD_LIBRARY_PATH 15487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15489 soname_spec='$libname$release$shared_ext$major' 15490 if test 32 = "$HPUX_IA64_MODE"; then 15491 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15492 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15493 else 15494 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15495 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15496 fi 15497 ;; 15498 hppa*64*) 15499 shrext_cmds='.sl' 15500 hardcode_into_libs=yes 15501 dynamic_linker="$host_os dld.sl" 15502 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15505 soname_spec='$libname$release$shared_ext$major' 15506 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15507 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15508 ;; 15509 *) 15510 shrext_cmds='.sl' 15511 dynamic_linker="$host_os dld.sl" 15512 shlibpath_var=SHLIB_PATH 15513 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15515 soname_spec='$libname$release$shared_ext$major' 15516 ;; 15517 esac 15518 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15519 postinstall_cmds='chmod 555 $lib' 15520 # or fails outright, so override atomically: 15521 install_override_mode=555 15522 ;; 15523 15524interix[3-9]*) 15525 version_type=linux # correct to gnu/linux during the next big refactor 15526 need_lib_prefix=no 15527 need_version=no 15528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15529 soname_spec='$libname$release$shared_ext$major' 15530 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15531 shlibpath_var=LD_LIBRARY_PATH 15532 shlibpath_overrides_runpath=no 15533 hardcode_into_libs=yes 15534 ;; 15535 15536irix5* | irix6* | nonstopux*) 15537 case $host_os in 15538 nonstopux*) version_type=nonstopux ;; 15539 *) 15540 if test yes = "$lt_cv_prog_gnu_ld"; then 15541 version_type=linux # correct to gnu/linux during the next big refactor 15542 else 15543 version_type=irix 15544 fi ;; 15545 esac 15546 need_lib_prefix=no 15547 need_version=no 15548 soname_spec='$libname$release$shared_ext$major' 15549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15550 case $host_os in 15551 irix5* | nonstopux*) 15552 libsuff= shlibsuff= 15553 ;; 15554 *) 15555 case $LD in # libtool.m4 will add one of these switches to LD 15556 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15557 libsuff= shlibsuff= libmagic=32-bit;; 15558 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15559 libsuff=32 shlibsuff=N32 libmagic=N32;; 15560 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15561 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15562 *) libsuff= shlibsuff= libmagic=never-match;; 15563 esac 15564 ;; 15565 esac 15566 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15567 shlibpath_overrides_runpath=no 15568 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15569 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15570 hardcode_into_libs=yes 15571 ;; 15572 15573# No shared lib support for Linux oldld, aout, or coff. 15574linux*oldld* | linux*aout* | linux*coff*) 15575 dynamic_linker=no 15576 ;; 15577 15578linux*android*) 15579 version_type=none # Android doesn't support versioned libraries. 15580 need_lib_prefix=no 15581 need_version=no 15582 library_names_spec='$libname$release$shared_ext' 15583 soname_spec='$libname$release$shared_ext' 15584 finish_cmds= 15585 shlibpath_var=LD_LIBRARY_PATH 15586 shlibpath_overrides_runpath=yes 15587 15588 # This implies no fast_install, which is unacceptable. 15589 # Some rework will be needed to allow for fast_install 15590 # before this can be enabled. 15591 hardcode_into_libs=yes 15592 15593 dynamic_linker='Android linker' 15594 # Don't embed -rpath directories since the linker doesn't support them. 15595 hardcode_libdir_flag_spec='-L$libdir' 15596 ;; 15597 15598# This must be glibc/ELF. 15599linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15600 version_type=linux # correct to gnu/linux during the next big refactor 15601 need_lib_prefix=no 15602 need_version=no 15603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15604 soname_spec='$libname$release$shared_ext$major' 15605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15606 shlibpath_var=LD_LIBRARY_PATH 15607 shlibpath_overrides_runpath=no 15608 15609 # Some binutils ld are patched to set DT_RUNPATH 15610 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15611 $as_echo_n "(cached) " >&6 15612else 15613 lt_cv_shlibpath_overrides_runpath=no 15614 save_LDFLAGS=$LDFLAGS 15615 save_libdir=$libdir 15616 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 15617 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15619/* end confdefs.h. */ 15620 15621int 15622main () 15623{ 15624 15625 ; 15626 return 0; 15627} 15628_ACEOF 15629if ac_fn_c_try_link "$LINENO"; then : 15630 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15631 lt_cv_shlibpath_overrides_runpath=yes 15632fi 15633fi 15634rm -f core conftest.err conftest.$ac_objext \ 15635 conftest$ac_exeext conftest.$ac_ext 15636 LDFLAGS=$save_LDFLAGS 15637 libdir=$save_libdir 15638 15639fi 15640 15641 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15642 15643 # This implies no fast_install, which is unacceptable. 15644 # Some rework will be needed to allow for fast_install 15645 # before this can be enabled. 15646 hardcode_into_libs=yes 15647 15648 # Ideally, we could use ldconfig to report *all* directores which are 15649 # searched for libraries, however this is still not possible. Aside from not 15650 # being certain /sbin/ldconfig is available, command 15651 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15652 # even though it is searched at run-time. Try to do the best guess by 15653 # appending ld.so.conf contents (and includes) to the search path. 15654 if test -f /etc/ld.so.conf; then 15655 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' ' '` 15656 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15657 fi 15658 15659 # We used to test for /lib/ld.so.1 and disable shared libraries on 15660 # powerpc, because MkLinux only supported shared libraries with the 15661 # GNU dynamic linker. Since this was broken with cross compilers, 15662 # most powerpc-linux boxes support dynamic linking these days and 15663 # people can always --disable-shared, the test was removed, and we 15664 # assume the GNU/Linux dynamic linker is in use. 15665 dynamic_linker='GNU/Linux ld.so' 15666 ;; 15667 15668netbsd*) 15669 version_type=sunos 15670 need_lib_prefix=no 15671 need_version=no 15672 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15673 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15675 dynamic_linker='NetBSD (a.out) ld.so' 15676 else 15677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15678 soname_spec='$libname$release$shared_ext$major' 15679 dynamic_linker='NetBSD ld.elf_so' 15680 fi 15681 shlibpath_var=LD_LIBRARY_PATH 15682 shlibpath_overrides_runpath=yes 15683 hardcode_into_libs=yes 15684 ;; 15685 15686newsos6) 15687 version_type=linux # correct to gnu/linux during the next big refactor 15688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15689 shlibpath_var=LD_LIBRARY_PATH 15690 shlibpath_overrides_runpath=yes 15691 ;; 15692 15693*nto* | *qnx*) 15694 version_type=qnx 15695 need_lib_prefix=no 15696 need_version=no 15697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15698 soname_spec='$libname$release$shared_ext$major' 15699 shlibpath_var=LD_LIBRARY_PATH 15700 shlibpath_overrides_runpath=no 15701 hardcode_into_libs=yes 15702 dynamic_linker='ldqnx.so' 15703 ;; 15704 15705openbsd* | bitrig*) 15706 version_type=sunos 15707 sys_lib_dlsearch_path_spec=/usr/lib 15708 need_lib_prefix=no 15709 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15710 need_version=no 15711 else 15712 need_version=yes 15713 fi 15714 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15716 shlibpath_var=LD_LIBRARY_PATH 15717 shlibpath_overrides_runpath=yes 15718 ;; 15719 15720os2*) 15721 libname_spec='$name' 15722 version_type=windows 15723 shrext_cmds=.dll 15724 need_version=no 15725 need_lib_prefix=no 15726 # OS/2 can only load a DLL with a base name of 8 characters or less. 15727 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15728 v=$($ECHO $release$versuffix | tr -d .-); 15729 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15730 $ECHO $n$v`$shared_ext' 15731 library_names_spec='${libname}_dll.$libext' 15732 dynamic_linker='OS/2 ld.exe' 15733 shlibpath_var=BEGINLIBPATH 15734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15736 postinstall_cmds='base_file=`basename \$file`~ 15737 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15738 dldir=$destdir/`dirname \$dlpath`~ 15739 test -d \$dldir || mkdir -p \$dldir~ 15740 $install_prog $dir/$dlname \$dldir/$dlname~ 15741 chmod a+x \$dldir/$dlname~ 15742 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15743 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15744 fi' 15745 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15746 dlpath=$dir/\$dldll~ 15747 $RM \$dlpath' 15748 ;; 15749 15750osf3* | osf4* | osf5*) 15751 version_type=osf 15752 need_lib_prefix=no 15753 need_version=no 15754 soname_spec='$libname$release$shared_ext$major' 15755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15756 shlibpath_var=LD_LIBRARY_PATH 15757 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15759 ;; 15760 15761rdos*) 15762 dynamic_linker=no 15763 ;; 15764 15765solaris*) 15766 version_type=linux # correct to gnu/linux during the next big refactor 15767 need_lib_prefix=no 15768 need_version=no 15769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15770 soname_spec='$libname$release$shared_ext$major' 15771 shlibpath_var=LD_LIBRARY_PATH 15772 shlibpath_overrides_runpath=yes 15773 hardcode_into_libs=yes 15774 # ldd complains unless libraries are executable 15775 postinstall_cmds='chmod +x $lib' 15776 ;; 15777 15778sunos4*) 15779 version_type=sunos 15780 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15781 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15782 shlibpath_var=LD_LIBRARY_PATH 15783 shlibpath_overrides_runpath=yes 15784 if test yes = "$with_gnu_ld"; then 15785 need_lib_prefix=no 15786 fi 15787 need_version=yes 15788 ;; 15789 15790sysv4 | sysv4.3*) 15791 version_type=linux # correct to gnu/linux during the next big refactor 15792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15793 soname_spec='$libname$release$shared_ext$major' 15794 shlibpath_var=LD_LIBRARY_PATH 15795 case $host_vendor in 15796 sni) 15797 shlibpath_overrides_runpath=no 15798 need_lib_prefix=no 15799 runpath_var=LD_RUN_PATH 15800 ;; 15801 siemens) 15802 need_lib_prefix=no 15803 ;; 15804 motorola) 15805 need_lib_prefix=no 15806 need_version=no 15807 shlibpath_overrides_runpath=no 15808 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15809 ;; 15810 esac 15811 ;; 15812 15813sysv4*MP*) 15814 if test -d /usr/nec; then 15815 version_type=linux # correct to gnu/linux during the next big refactor 15816 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15817 soname_spec='$libname$shared_ext.$major' 15818 shlibpath_var=LD_LIBRARY_PATH 15819 fi 15820 ;; 15821 15822sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15823 version_type=sco 15824 need_lib_prefix=no 15825 need_version=no 15826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15827 soname_spec='$libname$release$shared_ext$major' 15828 shlibpath_var=LD_LIBRARY_PATH 15829 shlibpath_overrides_runpath=yes 15830 hardcode_into_libs=yes 15831 if test yes = "$with_gnu_ld"; then 15832 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15833 else 15834 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15835 case $host_os in 15836 sco3.2v5*) 15837 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15838 ;; 15839 esac 15840 fi 15841 sys_lib_dlsearch_path_spec='/usr/lib' 15842 ;; 15843 15844tpf*) 15845 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15846 version_type=linux # correct to gnu/linux during the next big refactor 15847 need_lib_prefix=no 15848 need_version=no 15849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15850 shlibpath_var=LD_LIBRARY_PATH 15851 shlibpath_overrides_runpath=no 15852 hardcode_into_libs=yes 15853 ;; 15854 15855uts4*) 15856 version_type=linux # correct to gnu/linux during the next big refactor 15857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15858 soname_spec='$libname$release$shared_ext$major' 15859 shlibpath_var=LD_LIBRARY_PATH 15860 ;; 15861 15862*) 15863 dynamic_linker=no 15864 ;; 15865esac 15866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15867$as_echo "$dynamic_linker" >&6; } 15868test no = "$dynamic_linker" && can_build_shared=no 15869 15870variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15871if test yes = "$GCC"; then 15872 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15873fi 15874 15875if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15876 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15877fi 15878 15879if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15880 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15881fi 15882 15883# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15884configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15885 15886# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15887func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15888 15889# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15890configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15989$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15990hardcode_action= 15991if test -n "$hardcode_libdir_flag_spec" || 15992 test -n "$runpath_var" || 15993 test yes = "$hardcode_automatic"; then 15994 15995 # We can hardcode non-existent directories. 15996 if test no != "$hardcode_direct" && 15997 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15998 # have to relink, otherwise we might link with an installed library 15999 # when we should be linking with a yet-to-be-installed one 16000 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 16001 test no != "$hardcode_minus_L"; then 16002 # Linking always hardcodes the temporary library directory. 16003 hardcode_action=relink 16004 else 16005 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16006 hardcode_action=immediate 16007 fi 16008else 16009 # We cannot hardcode anything, or else we can only hardcode existing 16010 # directories. 16011 hardcode_action=unsupported 16012fi 16013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 16014$as_echo "$hardcode_action" >&6; } 16015 16016if test relink = "$hardcode_action" || 16017 test yes = "$inherit_rpath"; then 16018 # Fast installation is not supported 16019 enable_fast_install=no 16020elif test yes = "$shlibpath_overrides_runpath" || 16021 test no = "$enable_shared"; then 16022 # Fast installation is not necessary 16023 enable_fast_install=needless 16024fi 16025 16026 16027 16028 16029 16030 16031 if test yes != "$enable_dlopen"; then 16032 enable_dlopen=unknown 16033 enable_dlopen_self=unknown 16034 enable_dlopen_self_static=unknown 16035else 16036 lt_cv_dlopen=no 16037 lt_cv_dlopen_libs= 16038 16039 case $host_os in 16040 beos*) 16041 lt_cv_dlopen=load_add_on 16042 lt_cv_dlopen_libs= 16043 lt_cv_dlopen_self=yes 16044 ;; 16045 16046 mingw* | pw32* | cegcc*) 16047 lt_cv_dlopen=LoadLibrary 16048 lt_cv_dlopen_libs= 16049 ;; 16050 16051 cygwin*) 16052 lt_cv_dlopen=dlopen 16053 lt_cv_dlopen_libs= 16054 ;; 16055 16056 darwin*) 16057 # if libdl is installed we need to link against it 16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16059$as_echo_n "checking for dlopen in -ldl... " >&6; } 16060if ${ac_cv_lib_dl_dlopen+:} false; then : 16061 $as_echo_n "(cached) " >&6 16062else 16063 ac_check_lib_save_LIBS=$LIBS 16064LIBS="-ldl $LIBS" 16065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16066/* end confdefs.h. */ 16067 16068/* Override any GCC internal prototype to avoid an error. 16069 Use char because int might match the return type of a GCC 16070 builtin and then its argument prototype would still apply. */ 16071#ifdef __cplusplus 16072extern "C" 16073#endif 16074char dlopen (); 16075int 16076main () 16077{ 16078return dlopen (); 16079 ; 16080 return 0; 16081} 16082_ACEOF 16083if ac_fn_c_try_link "$LINENO"; then : 16084 ac_cv_lib_dl_dlopen=yes 16085else 16086 ac_cv_lib_dl_dlopen=no 16087fi 16088rm -f core conftest.err conftest.$ac_objext \ 16089 conftest$ac_exeext conftest.$ac_ext 16090LIBS=$ac_check_lib_save_LIBS 16091fi 16092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16093$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16094if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 16095 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 16096else 16097 16098 lt_cv_dlopen=dyld 16099 lt_cv_dlopen_libs= 16100 lt_cv_dlopen_self=yes 16101 16102fi 16103 16104 ;; 16105 16106 tpf*) 16107 # Don't try to run any link tests for TPF. We know it's impossible 16108 # because TPF is a cross-compiler, and we know how we open DSOs. 16109 lt_cv_dlopen=dlopen 16110 lt_cv_dlopen_libs= 16111 lt_cv_dlopen_self=no 16112 ;; 16113 16114 *) 16115 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 16116if test "x$ac_cv_func_shl_load" = xyes; then : 16117 lt_cv_dlopen=shl_load 16118else 16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 16120$as_echo_n "checking for shl_load in -ldld... " >&6; } 16121if ${ac_cv_lib_dld_shl_load+:} false; then : 16122 $as_echo_n "(cached) " >&6 16123else 16124 ac_check_lib_save_LIBS=$LIBS 16125LIBS="-ldld $LIBS" 16126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16127/* end confdefs.h. */ 16128 16129/* Override any GCC internal prototype to avoid an error. 16130 Use char because int might match the return type of a GCC 16131 builtin and then its argument prototype would still apply. */ 16132#ifdef __cplusplus 16133extern "C" 16134#endif 16135char shl_load (); 16136int 16137main () 16138{ 16139return shl_load (); 16140 ; 16141 return 0; 16142} 16143_ACEOF 16144if ac_fn_c_try_link "$LINENO"; then : 16145 ac_cv_lib_dld_shl_load=yes 16146else 16147 ac_cv_lib_dld_shl_load=no 16148fi 16149rm -f core conftest.err conftest.$ac_objext \ 16150 conftest$ac_exeext conftest.$ac_ext 16151LIBS=$ac_check_lib_save_LIBS 16152fi 16153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 16154$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 16155if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 16156 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 16157else 16158 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 16159if test "x$ac_cv_func_dlopen" = xyes; then : 16160 lt_cv_dlopen=dlopen 16161else 16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16163$as_echo_n "checking for dlopen in -ldl... " >&6; } 16164if ${ac_cv_lib_dl_dlopen+:} false; then : 16165 $as_echo_n "(cached) " >&6 16166else 16167 ac_check_lib_save_LIBS=$LIBS 16168LIBS="-ldl $LIBS" 16169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16170/* end confdefs.h. */ 16171 16172/* Override any GCC internal prototype to avoid an error. 16173 Use char because int might match the return type of a GCC 16174 builtin and then its argument prototype would still apply. */ 16175#ifdef __cplusplus 16176extern "C" 16177#endif 16178char dlopen (); 16179int 16180main () 16181{ 16182return dlopen (); 16183 ; 16184 return 0; 16185} 16186_ACEOF 16187if ac_fn_c_try_link "$LINENO"; then : 16188 ac_cv_lib_dl_dlopen=yes 16189else 16190 ac_cv_lib_dl_dlopen=no 16191fi 16192rm -f core conftest.err conftest.$ac_objext \ 16193 conftest$ac_exeext conftest.$ac_ext 16194LIBS=$ac_check_lib_save_LIBS 16195fi 16196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16197$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16198if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 16199 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 16200else 16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 16202$as_echo_n "checking for dlopen in -lsvld... " >&6; } 16203if ${ac_cv_lib_svld_dlopen+:} false; then : 16204 $as_echo_n "(cached) " >&6 16205else 16206 ac_check_lib_save_LIBS=$LIBS 16207LIBS="-lsvld $LIBS" 16208cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16209/* end confdefs.h. */ 16210 16211/* Override any GCC internal prototype to avoid an error. 16212 Use char because int might match the return type of a GCC 16213 builtin and then its argument prototype would still apply. */ 16214#ifdef __cplusplus 16215extern "C" 16216#endif 16217char dlopen (); 16218int 16219main () 16220{ 16221return dlopen (); 16222 ; 16223 return 0; 16224} 16225_ACEOF 16226if ac_fn_c_try_link "$LINENO"; then : 16227 ac_cv_lib_svld_dlopen=yes 16228else 16229 ac_cv_lib_svld_dlopen=no 16230fi 16231rm -f core conftest.err conftest.$ac_objext \ 16232 conftest$ac_exeext conftest.$ac_ext 16233LIBS=$ac_check_lib_save_LIBS 16234fi 16235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 16236$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 16237if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 16238 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 16239else 16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 16241$as_echo_n "checking for dld_link in -ldld... " >&6; } 16242if ${ac_cv_lib_dld_dld_link+:} false; then : 16243 $as_echo_n "(cached) " >&6 16244else 16245 ac_check_lib_save_LIBS=$LIBS 16246LIBS="-ldld $LIBS" 16247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16248/* end confdefs.h. */ 16249 16250/* Override any GCC internal prototype to avoid an error. 16251 Use char because int might match the return type of a GCC 16252 builtin and then its argument prototype would still apply. */ 16253#ifdef __cplusplus 16254extern "C" 16255#endif 16256char dld_link (); 16257int 16258main () 16259{ 16260return dld_link (); 16261 ; 16262 return 0; 16263} 16264_ACEOF 16265if ac_fn_c_try_link "$LINENO"; then : 16266 ac_cv_lib_dld_dld_link=yes 16267else 16268 ac_cv_lib_dld_dld_link=no 16269fi 16270rm -f core conftest.err conftest.$ac_objext \ 16271 conftest$ac_exeext conftest.$ac_ext 16272LIBS=$ac_check_lib_save_LIBS 16273fi 16274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 16275$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 16276if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 16277 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 16278fi 16279 16280 16281fi 16282 16283 16284fi 16285 16286 16287fi 16288 16289 16290fi 16291 16292 16293fi 16294 16295 ;; 16296 esac 16297 16298 if test no = "$lt_cv_dlopen"; then 16299 enable_dlopen=no 16300 else 16301 enable_dlopen=yes 16302 fi 16303 16304 case $lt_cv_dlopen in 16305 dlopen) 16306 save_CPPFLAGS=$CPPFLAGS 16307 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 16308 16309 save_LDFLAGS=$LDFLAGS 16310 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 16311 16312 save_LIBS=$LIBS 16313 LIBS="$lt_cv_dlopen_libs $LIBS" 16314 16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 16316$as_echo_n "checking whether a program can dlopen itself... " >&6; } 16317if ${lt_cv_dlopen_self+:} false; then : 16318 $as_echo_n "(cached) " >&6 16319else 16320 if test yes = "$cross_compiling"; then : 16321 lt_cv_dlopen_self=cross 16322else 16323 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16324 lt_status=$lt_dlunknown 16325 cat > conftest.$ac_ext <<_LT_EOF 16326#line $LINENO "configure" 16327#include "confdefs.h" 16328 16329#if HAVE_DLFCN_H 16330#include <dlfcn.h> 16331#endif 16332 16333#include <stdio.h> 16334 16335#ifdef RTLD_GLOBAL 16336# define LT_DLGLOBAL RTLD_GLOBAL 16337#else 16338# ifdef DL_GLOBAL 16339# define LT_DLGLOBAL DL_GLOBAL 16340# else 16341# define LT_DLGLOBAL 0 16342# endif 16343#endif 16344 16345/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16346 find out it does not work in some platform. */ 16347#ifndef LT_DLLAZY_OR_NOW 16348# ifdef RTLD_LAZY 16349# define LT_DLLAZY_OR_NOW RTLD_LAZY 16350# else 16351# ifdef DL_LAZY 16352# define LT_DLLAZY_OR_NOW DL_LAZY 16353# else 16354# ifdef RTLD_NOW 16355# define LT_DLLAZY_OR_NOW RTLD_NOW 16356# else 16357# ifdef DL_NOW 16358# define LT_DLLAZY_OR_NOW DL_NOW 16359# else 16360# define LT_DLLAZY_OR_NOW 0 16361# endif 16362# endif 16363# endif 16364# endif 16365#endif 16366 16367/* When -fvisibility=hidden is used, assume the code has been annotated 16368 correspondingly for the symbols needed. */ 16369#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16370int fnord () __attribute__((visibility("default"))); 16371#endif 16372 16373int fnord () { return 42; } 16374int main () 16375{ 16376 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16377 int status = $lt_dlunknown; 16378 16379 if (self) 16380 { 16381 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16382 else 16383 { 16384 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16385 else puts (dlerror ()); 16386 } 16387 /* dlclose (self); */ 16388 } 16389 else 16390 puts (dlerror ()); 16391 16392 return status; 16393} 16394_LT_EOF 16395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16396 (eval $ac_link) 2>&5 16397 ac_status=$? 16398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16399 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 16400 (./conftest; exit; ) >&5 2>/dev/null 16401 lt_status=$? 16402 case x$lt_status in 16403 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 16404 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 16405 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 16406 esac 16407 else : 16408 # compilation failed 16409 lt_cv_dlopen_self=no 16410 fi 16411fi 16412rm -fr conftest* 16413 16414 16415fi 16416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 16417$as_echo "$lt_cv_dlopen_self" >&6; } 16418 16419 if test yes = "$lt_cv_dlopen_self"; then 16420 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 16422$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 16423if ${lt_cv_dlopen_self_static+:} false; then : 16424 $as_echo_n "(cached) " >&6 16425else 16426 if test yes = "$cross_compiling"; then : 16427 lt_cv_dlopen_self_static=cross 16428else 16429 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16430 lt_status=$lt_dlunknown 16431 cat > conftest.$ac_ext <<_LT_EOF 16432#line $LINENO "configure" 16433#include "confdefs.h" 16434 16435#if HAVE_DLFCN_H 16436#include <dlfcn.h> 16437#endif 16438 16439#include <stdio.h> 16440 16441#ifdef RTLD_GLOBAL 16442# define LT_DLGLOBAL RTLD_GLOBAL 16443#else 16444# ifdef DL_GLOBAL 16445# define LT_DLGLOBAL DL_GLOBAL 16446# else 16447# define LT_DLGLOBAL 0 16448# endif 16449#endif 16450 16451/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16452 find out it does not work in some platform. */ 16453#ifndef LT_DLLAZY_OR_NOW 16454# ifdef RTLD_LAZY 16455# define LT_DLLAZY_OR_NOW RTLD_LAZY 16456# else 16457# ifdef DL_LAZY 16458# define LT_DLLAZY_OR_NOW DL_LAZY 16459# else 16460# ifdef RTLD_NOW 16461# define LT_DLLAZY_OR_NOW RTLD_NOW 16462# else 16463# ifdef DL_NOW 16464# define LT_DLLAZY_OR_NOW DL_NOW 16465# else 16466# define LT_DLLAZY_OR_NOW 0 16467# endif 16468# endif 16469# endif 16470# endif 16471#endif 16472 16473/* When -fvisibility=hidden is used, assume the code has been annotated 16474 correspondingly for the symbols needed. */ 16475#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16476int fnord () __attribute__((visibility("default"))); 16477#endif 16478 16479int fnord () { return 42; } 16480int main () 16481{ 16482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16483 int status = $lt_dlunknown; 16484 16485 if (self) 16486 { 16487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16488 else 16489 { 16490 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16491 else puts (dlerror ()); 16492 } 16493 /* dlclose (self); */ 16494 } 16495 else 16496 puts (dlerror ()); 16497 16498 return status; 16499} 16500_LT_EOF 16501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16502 (eval $ac_link) 2>&5 16503 ac_status=$? 16504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16505 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 16506 (./conftest; exit; ) >&5 2>/dev/null 16507 lt_status=$? 16508 case x$lt_status in 16509 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 16510 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 16511 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 16512 esac 16513 else : 16514 # compilation failed 16515 lt_cv_dlopen_self_static=no 16516 fi 16517fi 16518rm -fr conftest* 16519 16520 16521fi 16522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 16523$as_echo "$lt_cv_dlopen_self_static" >&6; } 16524 fi 16525 16526 CPPFLAGS=$save_CPPFLAGS 16527 LDFLAGS=$save_LDFLAGS 16528 LIBS=$save_LIBS 16529 ;; 16530 esac 16531 16532 case $lt_cv_dlopen_self in 16533 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 16534 *) enable_dlopen_self=unknown ;; 16535 esac 16536 16537 case $lt_cv_dlopen_self_static in 16538 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 16539 *) enable_dlopen_self_static=unknown ;; 16540 esac 16541fi 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559striplib= 16560old_striplib= 16561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 16562$as_echo_n "checking whether stripping libraries is possible... " >&6; } 16563if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 16564 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16565 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16567$as_echo "yes" >&6; } 16568else 16569# FIXME - insert some real tests, host_os isn't really good enough 16570 case $host_os in 16571 darwin*) 16572 if test -n "$STRIP"; then 16573 striplib="$STRIP -x" 16574 old_striplib="$STRIP -S" 16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16576$as_echo "yes" >&6; } 16577 else 16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16579$as_echo "no" >&6; } 16580 fi 16581 ;; 16582 *) 16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16584$as_echo "no" >&6; } 16585 ;; 16586 esac 16587fi 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 # Report what library types will actually be built 16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 16602$as_echo_n "checking if libtool supports shared libraries... " >&6; } 16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 16604$as_echo "$can_build_shared" >&6; } 16605 16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 16607$as_echo_n "checking whether to build shared libraries... " >&6; } 16608 test no = "$can_build_shared" && enable_shared=no 16609 16610 # On AIX, shared libraries and static libraries use the same namespace, and 16611 # are all built from PIC. 16612 case $host_os in 16613 aix3*) 16614 test yes = "$enable_shared" && enable_static=no 16615 if test -n "$RANLIB"; then 16616 archive_cmds="$archive_cmds~\$RANLIB \$lib" 16617 postinstall_cmds='$RANLIB $lib' 16618 fi 16619 ;; 16620 16621 aix[4-9]*) 16622 if test ia64 != "$host_cpu"; then 16623 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 16624 yes,aix,yes) ;; # shared object as lib.so file only 16625 yes,svr4,*) ;; # shared object as lib.so archive member only 16626 yes,*) enable_static=no ;; # shared object in lib.a archive as well 16627 esac 16628 fi 16629 ;; 16630 esac 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 16632$as_echo "$enable_shared" >&6; } 16633 16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 16635$as_echo_n "checking whether to build static libraries... " >&6; } 16636 # Make sure either enable_shared or enable_static is yes. 16637 test yes = "$enable_shared" || enable_static=yes 16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 16639$as_echo "$enable_static" >&6; } 16640 16641 16642 16643 16644fi 16645ac_ext=c 16646ac_cpp='$CPP $CPPFLAGS' 16647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16649ac_compiler_gnu=$ac_cv_c_compiler_gnu 16650 16651CC=$lt_save_CC 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 ac_config_commands="$ac_config_commands libtool" 16668 16669 16670 16671 16672# Only expand once: 16673 16674 16675if test -n "$ac_tool_prefix"; then 16676 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 16677set dummy ${ac_tool_prefix}windres; ac_word=$2 16678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16679$as_echo_n "checking for $ac_word... " >&6; } 16680if ${ac_cv_prog_RC+:} false; then : 16681 $as_echo_n "(cached) " >&6 16682else 16683 if test -n "$RC"; then 16684 ac_cv_prog_RC="$RC" # Let the user override the test. 16685else 16686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16687for as_dir in $PATH 16688do 16689 IFS=$as_save_IFS 16690 test -z "$as_dir" && as_dir=. 16691 for ac_exec_ext in '' $ac_executable_extensions; do 16692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16693 ac_cv_prog_RC="${ac_tool_prefix}windres" 16694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16695 break 2 16696 fi 16697done 16698 done 16699IFS=$as_save_IFS 16700 16701fi 16702fi 16703RC=$ac_cv_prog_RC 16704if test -n "$RC"; then 16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 16706$as_echo "$RC" >&6; } 16707else 16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16709$as_echo "no" >&6; } 16710fi 16711 16712 16713fi 16714if test -z "$ac_cv_prog_RC"; then 16715 ac_ct_RC=$RC 16716 # Extract the first word of "windres", so it can be a program name with args. 16717set dummy windres; ac_word=$2 16718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16719$as_echo_n "checking for $ac_word... " >&6; } 16720if ${ac_cv_prog_ac_ct_RC+:} false; then : 16721 $as_echo_n "(cached) " >&6 16722else 16723 if test -n "$ac_ct_RC"; then 16724 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 16725else 16726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16727for as_dir in $PATH 16728do 16729 IFS=$as_save_IFS 16730 test -z "$as_dir" && as_dir=. 16731 for ac_exec_ext in '' $ac_executable_extensions; do 16732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16733 ac_cv_prog_ac_ct_RC="windres" 16734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16735 break 2 16736 fi 16737done 16738 done 16739IFS=$as_save_IFS 16740 16741fi 16742fi 16743ac_ct_RC=$ac_cv_prog_ac_ct_RC 16744if test -n "$ac_ct_RC"; then 16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 16746$as_echo "$ac_ct_RC" >&6; } 16747else 16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16749$as_echo "no" >&6; } 16750fi 16751 16752 if test "x$ac_ct_RC" = x; then 16753 RC="" 16754 else 16755 case $cross_compiling:$ac_tool_warned in 16756yes:) 16757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16759ac_tool_warned=yes ;; 16760esac 16761 RC=$ac_ct_RC 16762 fi 16763else 16764 RC="$ac_cv_prog_RC" 16765fi 16766 16767 16768 16769 16770# Source file extension for RC test sources. 16771ac_ext=rc 16772 16773# Object file extension for compiled RC test sources. 16774objext=o 16775objext_RC=$objext 16776 16777# Code to be used in simple compile tests 16778lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 16779 16780# Code to be used in simple link tests 16781lt_simple_link_test_code=$lt_simple_compile_test_code 16782 16783# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16784 16785 16786 16787 16788 16789 16790# If no C compiler was specified, use CC. 16791LTCC=${LTCC-"$CC"} 16792 16793# If no C compiler flags were specified, use CFLAGS. 16794LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16795 16796# Allow CC to be a program name with arguments. 16797compiler=$CC 16798 16799 16800# save warnings/boilerplate of simple test code 16801ac_outfile=conftest.$ac_objext 16802echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16803eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16804_lt_compiler_boilerplate=`cat conftest.err` 16805$RM conftest* 16806 16807ac_outfile=conftest.$ac_objext 16808echo "$lt_simple_link_test_code" >conftest.$ac_ext 16809eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16810_lt_linker_boilerplate=`cat conftest.err` 16811$RM -r conftest* 16812 16813 16814# Allow CC to be a program name with arguments. 16815lt_save_CC=$CC 16816lt_save_CFLAGS=$CFLAGS 16817lt_save_GCC=$GCC 16818GCC= 16819CC=${RC-"windres"} 16820CFLAGS= 16821compiler=$CC 16822compiler_RC=$CC 16823func_cc_basename $compiler 16824cc_basename=$func_cc_basename_result 16825 16826lt_cv_prog_compiler_c_o_RC=yes 16827 16828if test -n "$compiler"; then 16829 : 16830 16831 16832 16833fi 16834 16835GCC=$lt_save_GCC 16836ac_ext=c 16837ac_cpp='$CPP $CPPFLAGS' 16838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16840ac_compiler_gnu=$ac_cv_c_compiler_gnu 16841 16842CC=$lt_save_CC 16843CFLAGS=$lt_save_CFLAGS 16844 16845 16846 16847 16848## 16849# Build environment: 16850## 16851 16852# developer build 16853# (enabled by default when building from SVN checkout) 16854# 16855if test "x$developer" != "xno" -a -f $srcdir/remove-files; then 16856 developer="yes" 16857fi 16858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5 16859$as_echo_n "checking for developer gcc flags... " >&6; } 16860if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then 16861 16862 # WWWXXX - strict type checking 16863 # 16864 netsnmp_save_CFLAGS="$CFLAGS" 16865 for opt in -Wall -Wextra -Wstrict-prototypes -Wwrite-strings -Wcast-qual \ 16866 -Wimplicit-fallthrough=2 -Wlogical-op \ 16867 -Wno-format-truncation -Wno-missing-field-initializers \ 16868 -Wno-sign-compare -Wno-unused-parameter -Wno-type-limits 16869 do 16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $opt" >&5 16871$as_echo_n "checking whether the compiler supports $opt... " >&6; } 16872 if test x$opt != x-Wstrict-prototypes; then 16873 CFLAGS="-Werror $opt $CFLAGS" 16874 else 16875 CFLAGS="$opt $CFLAGS" 16876 fi 16877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16878/* end confdefs.h. */ 16879 16880int 16881main () 16882{ 16883 16884 ; 16885 return 0; 16886} 16887_ACEOF 16888if ac_fn_c_try_link "$LINENO"; then : 16889 16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16891$as_echo "yes" >&6; } 16892 DEVFLAGS="$DEVFLAGS $opt" 16893 16894else 16895 16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16897$as_echo "no" >&6; } 16898 16899fi 16900rm -f core conftest.err conftest.$ac_objext \ 16901 conftest$ac_exeext conftest.$ac_ext 16902 CFLAGS="$netsnmp_save_CFLAGS" 16903 done 16904 16905else 16906 DEVFLAGS="" 16907fi 16908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVFLAGS" >&5 16909$as_echo "$DEVFLAGS" >&6; } 16910 16911 16912 16913# building outside source directory 16914# 16915# a) ensure build include paths are before source 16916# b) ensure GNU make uses 'vpath' instead of 'VPATH' 16917# 16918NON_GNU_VPATH="VPATH =" 16919GNU_vpath="#vpath" 16920 16921# define include paths relative to top_srcdir 16922# tweak includes if we're building outside of the source dir 16923# 16924if test "x$srcdir" = "x."; then 16925 TOP_INCLUDES=SRC_TOP_INCLUDES 16926 SNMPLIB_INCLUDES=SRC_SNMPLIB_INCLUDES 16927 AGENT_INCLUDES=SRC_AGENT_INCLUDES 16928 HELPER_INCLUDES=SRC_HELPER_INCLUDES 16929 MIBGROUP_INCLUDES=SRC_MIBGROUP_INCLUDES 16930else 16931 TOP_INCLUDES=BLD_TOP_INCLUDES 16932 SNMPLIB_INCLUDES=BLD_SNMPLIB_INCLUDES 16933 AGENT_INCLUDES=BLD_AGENT_INCLUDES 16934 HELPER_INCLUDES=BLD_HELPER_INCLUDES 16935 MIBGROUP_INCLUDES=BLD_MIBGROUP_INCLUDES 16936 if test $have_gnu_make -eq 0 ; then 16937 NON_GNU_VPATH="#VPATH =" 16938 GNU_vpath="vpath" 16939 fi 16940fi 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951## 16952# System-related compilation checks: 16953## 16954 16955# What system are we building for 16956# 16957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 16958$as_echo_n "checking target system type... " >&6; } 16959if ${ac_cv_target+:} false; then : 16960 $as_echo_n "(cached) " >&6 16961else 16962 if test "x$target_alias" = x; then 16963 ac_cv_target=$ac_cv_host 16964else 16965 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 16966 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 16967fi 16968 16969fi 16970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 16971$as_echo "$ac_cv_target" >&6; } 16972case $ac_cv_target in 16973*-*-*) ;; 16974*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 16975esac 16976target=$ac_cv_target 16977ac_save_IFS=$IFS; IFS='-' 16978set x $ac_cv_target 16979shift 16980target_cpu=$1 16981target_vendor=$2 16982shift; shift 16983# Remember, the first character of IFS is used to create $*, 16984# except with old shells: 16985target_os=$* 16986IFS=$ac_save_IFS 16987case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 16988 16989 16990# The aliases save the names the user supplied, while $host etc. 16991# will get canonicalized. 16992test -n "$target_alias" && 16993 test "$program_prefix$program_suffix$program_transform_name" = \ 16994 NONENONEs,x,x, && 16995 program_prefix=${target_alias}- 16996 16997PARTIALTARGETOS=`echo $target_os | sed 's/[-._].*//'` 16998 16999 17000 cat >> configure-summary << EOF 17001 Building for: $PARTIALTARGETOS 17002EOF 17003 17004 17005 17006# Avoid conflicts on Cygwin between <windows.h> and the openssl header files. 17007case x$target_os in 17008 xcygwin*|xmingw32*) 17009 CPPFLAGS="-DVC_EXTRALEAN -DWIN32_LEAN_AND_MEAN $CPPFLAGS";; 17010esac 17011 17012 17013# 17014# Whether the linker supports the flag -Wl,-no-undefined. 17015# 17016 17017if ! echo "$CFLAGS" | grep -q -- -fsanitize=; then 17018saved_LDFLAGS=$LDFLAGS 17019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -Wl,-no-undefined" >&5 17020$as_echo_n "checking whether the linker supports -Wl,-no-undefined... " >&6; } 17021LDFLAGS="$saved_LDFLAGS -Wl,-no-undefined" 17022cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17023/* end confdefs.h. */ 17024 17025int 17026main () 17027{ 17028 17029 ; 17030 return 0; 17031} 17032_ACEOF 17033if ac_fn_c_try_link "$LINENO"; then : 17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17035$as_echo "yes" >&6; }; LD_NO_UNDEFINED=-Wl,-no-undefined 17036else 17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17038$as_echo "no" >&6; } 17039fi 17040rm -f core conftest.err conftest.$ac_objext \ 17041 conftest$ac_exeext conftest.$ac_ext 17042LDFLAGS="$saved_LDFLAGS" 17043 17044fi 17045 17046 17047# 17048# Socket library: either 'default' (non-MinGW) or 'winsock2' (MinGW). 17049# 17050case x$target_os in 17051 xmingw*) 17052 with_socklib=winsock2 17053 CPPFLAGS="-D_WIN32_WINNT=0xffff -DWIN32 $CPPFLAGS" 17054 ;; 17055 *) 17056 with_socklib=default;; 17057esac 17058 17059 17060# Check system define behaviour 17061# Does "-Ux -Dx=x" work as expected? 17062# 17063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to un-define target system token (before redefining)" >&5 17064$as_echo_n "checking whether to un-define target system token (before redefining)... " >&6; } 17065OLD_CPPFLAGS="$CPPFLAGS" 17066CPPFLAGS="-U$PARTIALTARGETOS -D$PARTIALTARGETOS=$PARTIALTARGETOS" 17067 17068cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17069/* end confdefs.h. */ 17070[ 17071#ifdef $PARTIALTARGETOS 17072yes 17073#endif 17074 ] 17075_ACEOF 17076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17077 $EGREP "yes" >/dev/null 2>&1; then : 17078 PARTIALTARGETFLAGS="-U$PARTIALTARGETOS -D$PARTIALTARGETOS=$PARTIALTARGETOS" 17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17080$as_echo "yes" >&6; } 17081else 17082 PARTIALTARGETFLAGS="-D$PARTIALTARGETOS=$PARTIALTARGETOS" 17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17084$as_echo "no" >&6; } 17085fi 17086rm -f conftest* 17087 17088CFLAGS="$CFLAGS $PARTIALTARGETFLAGS" 17089CPPFLAGS="$OLD_CPPFLAGS" 17090 17091 17092# Determine appropriate <net-snmp/system/{os}.h> include 17093# 17094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for system include file" >&5 17095$as_echo_n "checking for system include file... " >&6; } 17096 17097filebase=$target_os 17098# ignore binary format indication 17099filebase=`echo $filebase | $SED 's/elf//'` 17100filebase=`echo $filebase | $SED 's/aout//'` 17101filebase=`echo $filebase | $SED 's/ecoff//'` 17102filebase=`echo $filebase | $SED 's/coff//'` 17103while test "x$filebase" != "x$last" -a ! -f $srcdir/include/net-snmp/system/$filebase.h 17104do 17105 last=$filebase 17106 filebase=`echo $filebase | $SED 's/[-._][^-._]*$//'` 17107 if test "x$filebase" = "x$last"; then 17108 filebase=`echo $filebase | $SED 's/[0-9]*$//'` 17109 fi 17110done 17111 17112if test "x$filebase" = "x$last"; then 17113 filebase="generic" 17114fi 17115ac_cv_NETSNMP_SYSTEM_INCLUDE_FILE="net-snmp/system/$filebase.h" 17116 17117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_NETSNMP_SYSTEM_INCLUDE_FILE" >&5 17118$as_echo "$ac_cv_NETSNMP_SYSTEM_INCLUDE_FILE" >&6; } 17119cat >>confdefs.h <<_ACEOF 17120#define NETSNMP_SYSTEM_INCLUDE_FILE "$ac_cv_NETSNMP_SYSTEM_INCLUDE_FILE" 17121_ACEOF 17122 17123 17124 17125# Determine appropriate <net-snmp/machine/{cpu}.h> include 17126# 17127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine-type include file" >&5 17128$as_echo_n "checking for machine-type include file... " >&6; } 17129 17130filebase=$target_cpu 17131while test "x$filebase" != "x$last" -a ! -f $srcdir/include/net-snmp/machine/$filebase.h 17132do 17133 last=$filebase 17134 filebase=`echo $filebase | $SED 's/[-._][^-._]*$//'` 17135done 17136 17137if test "x$filebase" = "x$last"; then 17138 filebase="generic" 17139fi 17140ac_cv_NETSNMP_MACHINE_INCLUDE_FILE="net-snmp/machine/$filebase.h" 17141 17142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_NETSNMP_MACHINE_INCLUDE_FILE" >&5 17143$as_echo "$ac_cv_NETSNMP_MACHINE_INCLUDE_FILE" >&6; } 17144cat >>confdefs.h <<_ACEOF 17145#define NETSNMP_MACHINE_INCLUDE_FILE "$ac_cv_NETSNMP_MACHINE_INCLUDE_FILE" 17146_ACEOF 17147 17148 17149 17150## 17151# Platform-specific compilation checks: 17152## 17153 17154# Preprocessor checks: 17155# 17156 17157# More sensible system identifier (MinGW) 17158# 17159if test "x$PARTIALTARGETOS" = "xmingw32msvc"; then 17160 CFLAGS="$CFLAGS -Dmingw32" 17161fi 17162 17163# Handle .in file extension (GCC) 17164# 17165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional cpp flags" >&5 17166$as_echo_n "checking for additional cpp flags... " >&6; } 17167if test "x$GCC" = "xyes" -a "x$CPP" = "x$CC -E"; then 17168 EXTRACPPFLAGS="-x c" 17169else 17170 EXTRACPPFLAGS="" 17171fi 17172 17173# Solaris extra CPP flags (Solaris) 17174# 17175if test "x$GCC" != "xyes"; then 17176 case $target_os in 17177 solaris*) EXTRACPPFLAGS="$EXTRACPPFLAGS -Xs" ;; 17178 esac 17179fi 17180 17181 17182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRACPPFLAGS" >&5 17183$as_echo "$EXTRACPPFLAGS" >&6; } 17184 17185 17186# Compiler checks: 17187# 17188 17189# Extract the first word of "$CC", so it can be a program name with args. 17190set dummy $CC; ac_word=$2 17191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17192$as_echo_n "checking for $ac_word... " >&6; } 17193if ${ac_cv_path_CCPATH+:} false; then : 17194 $as_echo_n "(cached) " >&6 17195else 17196 case $CCPATH in 17197 [\\/]* | ?:[\\/]*) 17198 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path. 17199 ;; 17200 *) 17201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17202for as_dir in $PATH 17203do 17204 IFS=$as_save_IFS 17205 test -z "$as_dir" && as_dir=. 17206 for ac_exec_ext in '' $ac_executable_extensions; do 17207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17208 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext" 17209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17210 break 2 17211 fi 17212done 17213 done 17214IFS=$as_save_IFS 17215 17216 ;; 17217esac 17218fi 17219CCPATH=$ac_cv_path_CCPATH 17220if test -n "$CCPATH"; then 17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5 17222$as_echo "$CCPATH" >&6; } 17223else 17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17225$as_echo "no" >&6; } 17226fi 17227 17228 17229case $target_os in 17230 bsdi*) 17231 # Check for bundled compiler (BSDi) 17232 # 17233 if test "x$CCPATH" = "x/usr/ucb/cc" -o "x$CCPATH" = "x/usr/bin/cc"; then 17234 as_fn_error $? " 17235 17236*** The BSDI /usr/ucb/cc compiler does not work with this package. 17237*** Please run configure with --with-cc=gcc 17238" "$LINENO" 5 17239 fi 17240 ;; 17241 solaris*) 17242 # Check for bundled compiler (Solaris) 17243 # 17244 if test "x$CCPATH" = "x/usr/ucb/cc"; then 17245 as_fn_error $? " 17246 17247*** The solaris /usr/ucb/cc compiler does not work with this package. 17248*** Please put a different compiler in your path first or run 17249*** configure with --with-cc=XX, where XX is the compiler you want to use. 17250" "$LINENO" 5 17251 fi 17252 ;; 17253esac 17254 17255 17256# Compiler flags: 17257# 17258 17259CFLAGS="-DNETSNMP_REMOVE_U64 $CFLAGS" 17260 17261# The Net-SNMP source code is not strict-aliasing safe, so add 17262# -fno-strict-aliasing to $CFLAGS if the compiler supports it. 17263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5 17264$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; } 17265netsnmp_save_CFLAGS="$CFLAGS" 17266CFLAGS="-fno-strict-aliasing $CFLAGS" 17267cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17268/* end confdefs.h. */ 17269 17270int 17271main () 17272{ 17273 17274 ; 17275 return 0; 17276} 17277_ACEOF 17278if ac_fn_c_try_link "$LINENO"; then : 17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17280$as_echo "yes" >&6; } 17281else 17282 17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17284$as_echo "no" >&6; } 17285 CFLAGS="$netsnmp_save_CFLAGS" 17286 17287fi 17288rm -f core conftest.err conftest.$ac_objext \ 17289 conftest$ac_exeext conftest.$ac_ext 17290 17291 17292# Linker checks: 17293# 17294 17295case $target_os in 17296 aix4.2*|aix4.3*|aix5*|aix6*|aix7*) 17297 # Runtime linking flags (AIX) 17298 # 17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker flags to add to enable runtime linking on AIX" >&5 17300$as_echo_n "checking what linker flags to add to enable runtime linking on AIX... " >&6; } 17301 for ld_flag in $LDFLAGS; do 17302 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17303 netsnmp_aix_runtimelinking_flags_ok=yes 17304 break 17305 fi 17306 done 17307 if test "X$netsnmp_aix_runtimelinking_flags_ok" != "Xyes"; then 17308 if test "x$GCC" = "xyes"; then 17309 netsnmp_aix_ldflags="-Wl,-brtl" 17310 else 17311 netsnmp_aix_ldflags="-brtl" 17312 fi 17313 LDFLAGS="$netsnmp_aix_ldflags $LDFLAGS" 17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_aix_ldflags" >&5 17315$as_echo "$netsnmp_aix_ldflags" >&6; } 17316 else 17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 17318$as_echo "none" >&6; } 17319 fi 17320 ;; 17321 17322 darwin*) 17323 # Flat Namespace linking (Mac OS/X) 17324 # 17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether darwin ld might need -flat_namespace" >&5 17326$as_echo_n "checking whether darwin ld might need -flat_namespace... " >&6; } 17327 if test -z "$MACOSX_DEPLOYMENT_TARGET"; then 17328 saved_LDFLAGS="$LDFLAGS" 17329 LDFLAGS="-flat_namespace -framework CoreFoundation -framework CoreServices -framework DiskArbitration -framework IOKit $LDFLAGS" 17330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17331/* end confdefs.h. */ 17332 17333int 17334main () 17335{ 17336 17337 ; 17338 return 0; 17339} 17340_ACEOF 17341if ac_fn_c_try_link "$LINENO"; then : 17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17343$as_echo "yes" >&6; } 17344else 17345 LDFLAGS="$saved_LDFLAGS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17346$as_echo "no" >&6; } 17347fi 17348rm -f core conftest.err conftest.$ac_objext \ 17349 conftest$ac_exeext conftest.$ac_ext 17350 else 17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17352$as_echo "no" >&6; } 17353 fi 17354 ;; 17355 17356 *) 17357 ;; 17358esac 17359 17360 17361# dpkg package (swintst_apt) 17362# used in agent only 17363# 17364# Extract the first word of "dpkg-query", so it can be a program name with args. 17365set dummy dpkg-query; ac_word=$2 17366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17367$as_echo_n "checking for $ac_word... " >&6; } 17368if ${ac_cv_path_DPKG_QUERY_PATH+:} false; then : 17369 $as_echo_n "(cached) " >&6 17370else 17371 case $DPKG_QUERY_PATH in 17372 [\\/]* | ?:[\\/]*) 17373 ac_cv_path_DPKG_QUERY_PATH="$DPKG_QUERY_PATH" # Let the user override the test with a path. 17374 ;; 17375 *) 17376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17377for as_dir in $PATH 17378do 17379 IFS=$as_save_IFS 17380 test -z "$as_dir" && as_dir=. 17381 for ac_exec_ext in '' $ac_executable_extensions; do 17382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17383 ac_cv_path_DPKG_QUERY_PATH="$as_dir/$ac_word$ac_exec_ext" 17384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17385 break 2 17386 fi 17387done 17388 done 17389IFS=$as_save_IFS 17390 17391 ;; 17392esac 17393fi 17394DPKG_QUERY_PATH=$ac_cv_path_DPKG_QUERY_PATH 17395if test -n "$DPKG_QUERY_PATH"; then 17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG_QUERY_PATH" >&5 17397$as_echo "$DPKG_QUERY_PATH" >&6; } 17398else 17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17400$as_echo "no" >&6; } 17401fi 17402 17403 17404if test x$DPKG_QUERY_PATH != x; then 17405 17406$as_echo "#define HAVE_DPKG_QUERY 1" >>confdefs.h 17407 17408fi 17409 17410 17411## 17412# Non-program/compilation checks: 17413## 17414 17415# Substitute version number. 17416# 17417VERSION=$PACKAGE_VERSION 17418 17419 17420 cat >> configure-summary << EOF 17421 Net-SNMP Version: $PACKAGE_VERSION 17422EOF 17423 17424 17425 17426# -*- autoconf -*- 17427######################################### 17428## 17429# Configure paths 17430## 17431######################################### 17432 17433## 17434# Prefix paths: 17435## 17436 17437# Main prefix 17438# 17439if test "x$prefix" = "xNONE"; then 17440 prefix=/usr/local 17441fi 17442 17443# Prefix must be an absolute path 17444# i.e. begin with "/" (Unix) 17445# or "[A-Z]:" (Windows) 17446# 17447firstchar=`echo $prefix | $SED 's/\(.\).*/\1/'` 17448if test "x$firstchar" != "x/" ; then 17449 secondchar=`echo $prefix | $SED 's/.\(.\).*/\1/'` 17450 if test "x$secondchar" != "x:" ; then 17451 prefix=`pwd`/$prefix 17452 echo "adjusting prefix to $prefix" 17453 fi 17454fi 17455 17456 17457# Exec prefix 17458# 17459# Prefix must be an absolute path 17460# i.e. begin with "/" (Unix) 17461# or "[A-Z]:" (Windows) 17462# 17463if test "x$exec_prefix" = "xNONE"; then 17464 exec_prefix='${prefix}' 17465else 17466 firstchar=`echo $exec_prefix | $SED 's/\(.\).*/\1/'` 17467 if test "x$firstchar" != "x/" ; then 17468 secondchar=`echo $exec_prefix | $SED 's/.\(.\).*/\1/'` 17469 if test "x$secondchar" != "x:" ; then 17470 exec_prefix=`pwd`/$exec_prefix 17471 echo "adjusting exec_prefix to $exec_prefix" 17472 fi 17473 fi 17474fi 17475 17476 17477## 17478# Environmental variables: 17479## 17480 17481# SNMPLIBPATH 17482# 17483SNMPLIBPATH="" 17484tmpset="$libdir/snmp" 17485while test "x$tmpset" != "x$SNMPLIBPATH"; do 17486 SNMPLIBPATH="$tmpset" 17487 eval tmpset="$tmpset" 17488done 17489cat >>confdefs.h <<_ACEOF 17490#define SNMPLIBPATH "$SNMPLIBPATH" 17491_ACEOF 17492 17493 17494cat >>confdefs.h <<_ACEOF 17495#define SNMPDLMODPATH "$SNMPLIBPATH/dlmod" 17496_ACEOF 17497 17498 17499# SNMPSHAREPATH 17500# 17501SNMPSHAREPATH="" 17502tmpset="$datadir/snmp" 17503while test "x$tmpset" != "x$SNMPSHAREPATH"; do 17504 SNMPSHAREPATH="$tmpset" 17505 eval tmpset="$tmpset" 17506done 17507cat >>confdefs.h <<_ACEOF 17508#define SNMPSHAREPATH "$SNMPSHAREPATH" 17509_ACEOF 17510 17511 17512 17513# MIBDIRS (default) 17514# 17515if test "x$NETSNMP_DEFAULT_MIBDIRS" = "x"; then 17516 NETSNMP_DEFAULT_MIBDIRS="\$HOME/.snmp/mibs:$SNMPSHAREPATH/mibs" 17517 if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc" -o "x$PARTIALTARGETOS" = "xcygwin"; then 17518 # 17519 # USe Windows-style path separator 17520 NETSNMP_DEFAULT_MIBDIRS=`echo "$NETSNMP_DEFAULT_MIBDIRS" | $SED 's/:/;/g'` 17521 fi 17522 cat >>confdefs.h <<_ACEOF 17523#define NETSNMP_DEFAULT_MIBDIRS "$NETSNMP_DEFAULT_MIBDIRS" 17524_ACEOF 17525 17526fi 17527 17528 17529# SNMPCONFPATH 17530# 17531SNMPCONFPATH="" 17532tmpset="$sysconfdir/snmp" 17533while test "x$tmpset" != "x$SNMPCONFPATH"; do 17534 SNMPCONFPATH="$tmpset" 17535 eval tmpset="$tmpset" 17536done 17537cat >>confdefs.h <<_ACEOF 17538#define SNMPCONFPATH "$SNMPCONFPATH" 17539_ACEOF 17540 17541 17542 17543######################################### 17544## 17545# Checks for header files. 17546## 17547######################################### 17548 17549## 17550# Standard checks: 17551## 17552# Core: 17553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 17554$as_echo_n "checking for ANSI C header files... " >&6; } 17555if ${ac_cv_header_stdc+:} false; then : 17556 $as_echo_n "(cached) " >&6 17557else 17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17559/* end confdefs.h. */ 17560#include <stdlib.h> 17561#include <stdarg.h> 17562#include <string.h> 17563#include <float.h> 17564 17565int 17566main () 17567{ 17568 17569 ; 17570 return 0; 17571} 17572_ACEOF 17573if ac_fn_c_try_compile "$LINENO"; then : 17574 ac_cv_header_stdc=yes 17575else 17576 ac_cv_header_stdc=no 17577fi 17578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17579 17580if test $ac_cv_header_stdc = yes; then 17581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 17582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17583/* end confdefs.h. */ 17584#include <string.h> 17585 17586_ACEOF 17587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17588 $EGREP "memchr" >/dev/null 2>&1; then : 17589 17590else 17591 ac_cv_header_stdc=no 17592fi 17593rm -f conftest* 17594 17595fi 17596 17597if test $ac_cv_header_stdc = yes; then 17598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 17599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17600/* end confdefs.h. */ 17601#include <stdlib.h> 17602 17603_ACEOF 17604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17605 $EGREP "free" >/dev/null 2>&1; then : 17606 17607else 17608 ac_cv_header_stdc=no 17609fi 17610rm -f conftest* 17611 17612fi 17613 17614if test $ac_cv_header_stdc = yes; then 17615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 17616 if test "$cross_compiling" = yes; then : 17617 : 17618else 17619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17620/* end confdefs.h. */ 17621#include <ctype.h> 17622#include <stdlib.h> 17623#if ((' ' & 0x0FF) == 0x020) 17624# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 17625# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 17626#else 17627# define ISLOWER(c) \ 17628 (('a' <= (c) && (c) <= 'i') \ 17629 || ('j' <= (c) && (c) <= 'r') \ 17630 || ('s' <= (c) && (c) <= 'z')) 17631# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 17632#endif 17633 17634#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 17635int 17636main () 17637{ 17638 int i; 17639 for (i = 0; i < 256; i++) 17640 if (XOR (islower (i), ISLOWER (i)) 17641 || toupper (i) != TOUPPER (i)) 17642 return 2; 17643 return 0; 17644} 17645_ACEOF 17646if ac_fn_c_try_run "$LINENO"; then : 17647 17648else 17649 ac_cv_header_stdc=no 17650fi 17651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17652 conftest.$ac_objext conftest.beam conftest.$ac_ext 17653fi 17654 17655fi 17656fi 17657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 17658$as_echo "$ac_cv_header_stdc" >&6; } 17659if test $ac_cv_header_stdc = yes; then 17660 17661$as_echo "#define STDC_HEADERS 1" >>confdefs.h 17662 17663fi 17664 # <stdlib.h>, <stdarg.h>, <string.h> & <float.h> 17665ac_header_dirent=no 17666for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 17667 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 17668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 17669$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 17670if eval \${$as_ac_Header+:} false; then : 17671 $as_echo_n "(cached) " >&6 17672else 17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17674/* end confdefs.h. */ 17675#include <sys/types.h> 17676#include <$ac_hdr> 17677 17678int 17679main () 17680{ 17681if ((DIR *) 0) 17682return 0; 17683 ; 17684 return 0; 17685} 17686_ACEOF 17687if ac_fn_c_try_compile "$LINENO"; then : 17688 eval "$as_ac_Header=yes" 17689else 17690 eval "$as_ac_Header=no" 17691fi 17692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17693fi 17694eval ac_res=\$$as_ac_Header 17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17696$as_echo "$ac_res" >&6; } 17697if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17698 cat >>confdefs.h <<_ACEOF 17699#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 17700_ACEOF 17701 17702ac_header_dirent=$ac_hdr; break 17703fi 17704 17705done 17706# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 17707if test $ac_header_dirent = dirent.h; then 17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 17709$as_echo_n "checking for library containing opendir... " >&6; } 17710if ${ac_cv_search_opendir+:} false; then : 17711 $as_echo_n "(cached) " >&6 17712else 17713 ac_func_search_save_LIBS=$LIBS 17714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17715/* end confdefs.h. */ 17716 17717/* Override any GCC internal prototype to avoid an error. 17718 Use char because int might match the return type of a GCC 17719 builtin and then its argument prototype would still apply. */ 17720#ifdef __cplusplus 17721extern "C" 17722#endif 17723char opendir (); 17724int 17725main () 17726{ 17727return opendir (); 17728 ; 17729 return 0; 17730} 17731_ACEOF 17732for ac_lib in '' dir; do 17733 if test -z "$ac_lib"; then 17734 ac_res="none required" 17735 else 17736 ac_res=-l$ac_lib 17737 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17738 fi 17739 if ac_fn_c_try_link "$LINENO"; then : 17740 ac_cv_search_opendir=$ac_res 17741fi 17742rm -f core conftest.err conftest.$ac_objext \ 17743 conftest$ac_exeext 17744 if ${ac_cv_search_opendir+:} false; then : 17745 break 17746fi 17747done 17748if ${ac_cv_search_opendir+:} false; then : 17749 17750else 17751 ac_cv_search_opendir=no 17752fi 17753rm conftest.$ac_ext 17754LIBS=$ac_func_search_save_LIBS 17755fi 17756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 17757$as_echo "$ac_cv_search_opendir" >&6; } 17758ac_res=$ac_cv_search_opendir 17759if test "$ac_res" != no; then : 17760 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17761 17762fi 17763 17764else 17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 17766$as_echo_n "checking for library containing opendir... " >&6; } 17767if ${ac_cv_search_opendir+:} false; then : 17768 $as_echo_n "(cached) " >&6 17769else 17770 ac_func_search_save_LIBS=$LIBS 17771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17772/* end confdefs.h. */ 17773 17774/* Override any GCC internal prototype to avoid an error. 17775 Use char because int might match the return type of a GCC 17776 builtin and then its argument prototype would still apply. */ 17777#ifdef __cplusplus 17778extern "C" 17779#endif 17780char opendir (); 17781int 17782main () 17783{ 17784return opendir (); 17785 ; 17786 return 0; 17787} 17788_ACEOF 17789for ac_lib in '' x; do 17790 if test -z "$ac_lib"; then 17791 ac_res="none required" 17792 else 17793 ac_res=-l$ac_lib 17794 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17795 fi 17796 if ac_fn_c_try_link "$LINENO"; then : 17797 ac_cv_search_opendir=$ac_res 17798fi 17799rm -f core conftest.err conftest.$ac_objext \ 17800 conftest$ac_exeext 17801 if ${ac_cv_search_opendir+:} false; then : 17802 break 17803fi 17804done 17805if ${ac_cv_search_opendir+:} false; then : 17806 17807else 17808 ac_cv_search_opendir=no 17809fi 17810rm conftest.$ac_ext 17811LIBS=$ac_func_search_save_LIBS 17812fi 17813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 17814$as_echo "$ac_cv_search_opendir" >&6; } 17815ac_res=$ac_cv_search_opendir 17816if test "$ac_res" != no; then : 17817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17818 17819fi 17820 17821fi 17822 # <dirent.h>, <sys/ndir.h>, <sys/dir.h> & <ndir.h> 17823# Apps: 17824# Don't use <sys/wait.h> when using Windows sockets 17825case x$with_socklib in 17826 xwinsock2) 17827 ;; 17828 *) 17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 17830$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 17831if ${ac_cv_header_sys_wait_h+:} false; then : 17832 $as_echo_n "(cached) " >&6 17833else 17834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17835/* end confdefs.h. */ 17836#include <sys/types.h> 17837#include <sys/wait.h> 17838#ifndef WEXITSTATUS 17839# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 17840#endif 17841#ifndef WIFEXITED 17842# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 17843#endif 17844 17845int 17846main () 17847{ 17848 int s; 17849 wait (&s); 17850 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 17851 ; 17852 return 0; 17853} 17854_ACEOF 17855if ac_fn_c_try_compile "$LINENO"; then : 17856 ac_cv_header_sys_wait_h=yes 17857else 17858 ac_cv_header_sys_wait_h=no 17859fi 17860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17861fi 17862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 17863$as_echo "$ac_cv_header_sys_wait_h" >&6; } 17864if test $ac_cv_header_sys_wait_h = yes; then 17865 17866$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 17867 17868fi 17869 # <sys/wait.h> 17870esac 17871 17872# allow for quick module/library/etc processing checks 17873if test "x$NETSNMP_QUICK_CHECK" = "x" ; then 17874 17875## 17876# Stand-alone headers: 17877## 17878# Core: 17879for ac_header in getopt.h pthread.h regex.h string.h syslog.h unistd.h stdint.h inttypes.h process.h sys/param.h sys/select.h sys/syslog.h sys/time.h sys/timeb.h 17880do : 17881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17882ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17884 cat >>confdefs.h <<_ACEOF 17885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17886_ACEOF 17887 17888fi 17889 17890done 17891 17892 17893# Library and Agent: 17894for ac_header in nlist.h 17895do : 17896 ac_fn_c_check_header_compile "$LINENO" "nlist.h" "ac_cv_header_nlist_h" " 17897$ac_includes_default 17898 17899#ifndef LIBBSD_DISABLE_DEPRECATED 17900#define LIBBSD_DISABLE_DEPRECATED 1 17901#endif 17902 17903" 17904if test "x$ac_cv_header_nlist_h" = xyes; then : 17905 cat >>confdefs.h <<_ACEOF 17906#define HAVE_NLIST_H 1 17907_ACEOF 17908 17909fi 17910 17911done 17912 17913 17914# Library: 17915for ac_header in crt_externs.h fcntl.h io.h kstat.h limits.h locale.h mach-o/dyld.h sys/file.h sys/ioctl.h sys/sockio.h sys/stat.h sys/systemcfg.h sys/systeminfo.h sys/times.h sys/uio.h sys/utsname.h netipx/ipx.h 17916do : 17917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17918ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17919if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17920 cat >>confdefs.h <<_ACEOF 17921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17922_ACEOF 17923 17924fi 17925 17926done 17927 17928 17929# Agent: 17930for ac_header in dlfcn.h err.h fcntl.h fstab.h grp.h io.h ioctls.h kstat.h kvm.h limits.h mntent.h mtab.h pkglocs.h pwd.h com_err.h et/com_err.h utmpx.h utsname.h 17931do : 17932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17933ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17934if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17935 cat >>confdefs.h <<_ACEOF 17936#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17937_ACEOF 17938 17939fi 17940 17941done 17942 17943 17944for ac_header in sys/diskio.h sys/dkio.h sys/file.h sys/filio.h sys/fixpoint.h sys/fs.h sys/ioctl.h sys/loadavg.h sys/mntent.h sys/mnttab.h sys/pool.h sys/protosw.h sys/pstat.h sys/sockio.h sys/stat.h sys/statfs.h sys/statvfs.h sys/stream.h sys/sysget.h sys/sysmacros.h sys/sysmp.h sys/tcpipstats.h sys/utsname.h sys/vfs.h sys/vm.h sys/vmmac.h sys/vmmeter.h sys/vmparam.h sys/vmsystm.h 17945do : 17946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17947ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17948if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17949 cat >>confdefs.h <<_ACEOF 17950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17951_ACEOF 17952 17953fi 17954 17955done 17956 17957 17958for ac_header in asm/page.h asm/types.h inet/mib2.h linux/hdreg.h linux/tasks.h machine/param.h ufs/fs.h uvm/uvm_extern.h uvm/uvm_param.h vm/vm.h vm/vm_extern.h vm/vm_param.h 17959do : 17960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17961ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17962if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17963 cat >>confdefs.h <<_ACEOF 17964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17965_ACEOF 17966 17967fi 17968 17969done 17970 17971 17972# Apps: 17973for ac_header in fcntl.h grp.h pwd.h sys/cdefs.h sys/ioctl.h sys/time.h 17974do : 17975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17976ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17977if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17978 cat >>confdefs.h <<_ACEOF 17979#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17980_ACEOF 17981 17982fi 17983 17984done 17985 17986 17987# Not-Used: 17988for ac_header in search.h sgtty.h xti.h sys/dmap.h sys/poll.h sys/timeout.h machine/pte.h pci/pci.h 17989do : 17990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17991ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17992if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17993 cat >>confdefs.h <<_ACEOF 17994#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17995_ACEOF 17996 17997fi 17998 17999done 18000 18001 18002 18003# Valgrind 18004for ac_header in valgrind/valgrind.h valgrind/memcheck.h 18005do : 18006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18007ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18008if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18009 cat >>confdefs.h <<_ACEOF 18010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18011_ACEOF 18012 18013fi 18014 18015done 18016 18017# OpenSSL 18018for ac_header in openssl/aes.h 18019do : 18020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18021ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18022if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18023 cat >>confdefs.h <<_ACEOF 18024#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18025_ACEOF 18026 18027fi 18028 18029done 18030 # (Core) 18031for ac_header in openssl/dh.h 18032do : 18033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18034ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18035if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18036 cat >>confdefs.h <<_ACEOF 18037#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18038_ACEOF 18039 18040fi 18041 18042done 18043 # (Apps) 18044# Not-Used: 18045for ac_header in openssl/des.h openssl/hmac.h openssl/evp.h security/cryptoki.h 18046do : 18047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18048ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18049if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18050 cat >>confdefs.h <<_ACEOF 18051#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18052_ACEOF 18053 18054fi 18055 18056done 18057 18058 18059# RPM subdirectory path (Agent) 18060if test "x$with_rpm" != "xno"; then 18061 for ac_header in rpm/rpmts.h rpm/rpmfileutil.h 18062do : 18063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18064ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <rpm/rpmlib.h> 18065" 18066if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18067 cat >>confdefs.h <<_ACEOF 18068#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18069_ACEOF 18070 18071fi 18072 18073done 18074 18075fi 18076 18077 18078## 18079# Pre-requisite on other headers: 18080## 18081 18082# requiring <sys/param.h> (MAXPATHLEN) (OpenBSD 3.4) 18083# Agent: 18084# 18085for ac_header in sys/swap.h 18086do : 18087 ac_fn_c_check_header_compile "$LINENO" "sys/swap.h" "ac_cv_header_sys_swap_h" "$ac_includes_default 18088 18089#if HAVE_SYS_PARAM_H 18090#include <sys/param.h> 18091#endif 18092 18093" 18094if test "x$ac_cv_header_sys_swap_h" = xyes; then : 18095 cat >>confdefs.h <<_ACEOF 18096#define HAVE_SYS_SWAP_H 1 18097_ACEOF 18098 18099fi 18100 18101done 18102 18103 18104# requiring <sys/param.h> (FreeBSD) 18105# 18106for ac_header in malloc.h osreldate.h machine/types.h sys/dkstat.h sys/conf.h sys/mbuf.h sys/mount.h sys/proc.h sys/queue.h sys/user.h 18107do : 18108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18109ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 18110#if HAVE_SYS_TYPES_H 18111#include <sys/types.h> 18112#endif 18113#if HAVE_SYS_PARAM_H 18114#include <sys/param.h> 18115#endif 18116 18117" 18118if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18119 cat >>confdefs.h <<_ACEOF 18120#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18121_ACEOF 18122 18123fi 18124 18125done 18126 18127 18128case "$target_os" in 18129 linux*) 18130 # <sys/sysctl.h> is considered deprecated on Linux and including that 18131 # header file triggers a compiler warning. See also 18132 # https://savannah.gnu.org/forum/forum.php?forum_id=9515. 18133 ;; 18134 *) 18135 for ac_header in sys/sysctl.h 18136do : 18137 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default" 18138if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 18139 cat >>confdefs.h <<_ACEOF 18140#define HAVE_SYS_SYSCTL_H 1 18141_ACEOF 18142 18143fi 18144 18145done 18146 18147 ;; 18148esac 18149 18150# requiring <sys/sema.h> (IRIX 6.5) 18151# Agent: 18152# 18153for ac_header in sys/sema.h 18154do : 18155 ac_fn_c_check_header_mongrel "$LINENO" "sys/sema.h" "ac_cv_header_sys_sema_h" "$ac_includes_default" 18156if test "x$ac_cv_header_sys_sema_h" = xyes; then : 18157 cat >>confdefs.h <<_ACEOF 18158#define HAVE_SYS_SEMA_H 1 18159_ACEOF 18160 18161fi 18162 18163done 18164 18165for ac_header in sys/hashing.h 18166do : 18167 ac_fn_c_check_header_compile "$LINENO" "sys/hashing.h" "ac_cv_header_sys_hashing_h" "$ac_includes_default 18168 18169#if HAVE_SYS_SEMA_H 18170#include <sys/sema.h> 18171#endif 18172 18173" 18174if test "x$ac_cv_header_sys_hashing_h" = xyes; then : 18175 cat >>confdefs.h <<_ACEOF 18176#define HAVE_SYS_HASHING_H 1 18177_ACEOF 18178 18179fi 18180 18181done 18182 18183 18184# requiring _KMEMUSER and <sys/types.h> (BSDi3/IRIX) 18185# Agent: 18186# 18187for ac_header in sys/vnode.h 18188do : 18189 ac_fn_c_check_header_compile "$LINENO" "sys/vnode.h" "ac_cv_header_sys_vnode_h" " 18190#define _KMEMUSER 1 18191#if HAVE_SYS_TYPES_H 18192#include <sys/types.h> 18193#endif 18194 18195" 18196if test "x$ac_cv_header_sys_vnode_h" = xyes; then : 18197 cat >>confdefs.h <<_ACEOF 18198#define HAVE_SYS_VNODE_H 1 18199_ACEOF 18200 18201fi 18202 18203done 18204 18205 18206# requiring <machine/types.h> (NetBSD) 18207# Agent: 18208# 18209for ac_header in sys/disklabel.h 18210do : 18211 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" " 18212#if HAVE_SYS_TYPES_H 18213#include <sys/types.h> 18214#endif 18215#if HAVE_SYS_PARAM_H 18216#include <sys/param.h> 18217#endif 18218#if HAVE_MACHINE_TYPES_H 18219#include <machine/types.h> 18220#endif 18221 18222" 18223if test "x$ac_cv_header_sys_disklabel_h" = xyes; then : 18224 cat >>confdefs.h <<_ACEOF 18225#define HAVE_SYS_DISKLABEL_H 1 18226_ACEOF 18227 18228fi 18229 18230done 18231 18232 18233# QNX 18234for ac_header in nbutil.h 18235do : 18236 ac_fn_c_check_header_mongrel "$LINENO" "nbutil.h" "ac_cv_header_nbutil_h" "$ac_includes_default" 18237if test "x$ac_cv_header_nbutil_h" = xyes; then : 18238 cat >>confdefs.h <<_ACEOF 18239#define HAVE_NBUTIL_H 1 18240_ACEOF 18241 18242fi 18243 18244done 18245 18246 18247# UFS headers 18248# Agent: 18249# 18250for ac_header in ufs/ufs/dinode.h ufs/ufs/quota.h ufs/ufs/inode.h ufs/ffs/fs.h 18251do : 18252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18253ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 18254#if HAVE_SYS_TYPES_H 18255#include <sys/types.h> 18256#endif 18257#if HAVE_UFS_UFS_DINODE_H 18258#include <ufs/ufs/dinode.h> 18259#endif 18260#if HAVE_UFS_UFS_QUOTA_H 18261#include <ufs/ufs/quota.h> 18262#endif 18263 18264" 18265if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18266 cat >>confdefs.h <<_ACEOF 18267#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18268_ACEOF 18269 18270fi 18271 18272done 18273 18274 18275# requiring <vm/vm.h> (BSDi2) 18276# Agent: 18277# 18278for ac_header in vm/swap_pager.h 18279do : 18280 ac_fn_c_check_header_compile "$LINENO" "vm/swap_pager.h" "ac_cv_header_vm_swap_pager_h" " 18281#if HAVE_VM_VM_H 18282#include <vm/vm.h> 18283#endif 18284 18285" 18286if test "x$ac_cv_header_vm_swap_pager_h" = xyes; then : 18287 cat >>confdefs.h <<_ACEOF 18288#define HAVE_VM_SWAP_PAGER_H 1 18289_ACEOF 18290 18291fi 18292 18293done 18294 18295 18296# netlink/rtnetlink (Linux) 18297# Agent: 18298# 18299for ac_header in linux/netlink.h linux/rtnetlink.h 18300do : 18301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18302ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 18303#if HAVE_ASM_TYPES_H 18304#include <asm/types.h> 18305#endif 18306#if HAVE_SYS_SOCKET_H 18307#include <sys/socket.h> 18308#endif 18309#if HAVE_LINUX_NETLINK_H 18310#include <linux/netlink.h> 18311#endif 18312 18313" 18314if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18315 cat >>confdefs.h <<_ACEOF 18316#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18317_ACEOF 18318 18319fi 18320 18321done 18322 18323 18324# 18325# Avoid that on MinGW any networking headers get included that are 18326# incompatible with <winsock2.h> by only testing for certain headers if not 18327# building for one of these two platforms. 18328# 18329 18330case x$with_socklib in 18331 xwinsock2) 18332 ;; 18333 *) 18334 18335for ac_header in sys/socket.h sys/un.h netinet/tcp_fsm.h sys/sockio.h sys/socketvar.h net/if_dl.h net/if_types.h arpa/inet.h net/if.h netinet/in.h netdb.h net/if_arp.h net/if_mib.h net/if_var.h netinet/if_ether.h netinet/in_systm.h netinet/in_var.h netinet/ip.h netinet/ip_icmp.h netinet/icmp_var.h netinet/ip_var.h netinet/tcp.h netinet/tcp_timer.h netinet/tcp_var.h netinet/tcpip.h netinet/udp.h netinet/udp_var.h net/route.h netinet/icmp6.h netinet/in_pcb.h netinet/ip6.h netinet6/in6_var.h netinet6/in6_pcb.h netinet6/ip6_var.h netinet6/nd6.h netinet6/tcp6.h netinet6/tcp6_fsm.h netinet6/tcp6_timer.h netinet6/tcp6_var.h 18336do : 18337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18338ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 18339#if HAVE_SYS_PARAM_H 18340#include <sys/param.h> 18341#endif 18342#if HAVE_SYS_TYPES_H 18343#include <sys/types.h> 18344#endif 18345#if HAVE_SYS_TIMEOUT_H 18346#include <sys/timeout.h> 18347#endif 18348#if HAVE_SYS_SOCKET_H 18349#include <sys/socket.h> 18350#endif 18351#if HAVE_SYS_SOCKETVAR_H 18352#include <sys/socketvar.h> 18353#endif 18354#if HAVE_ARPA_INET_H 18355#include <arpa/inet.h> 18356#endif 18357#if HAVE_NETINET_IN_SYSTM_H 18358#include <netinet/in_systm.h> 18359#endif 18360#if HAVE_NETINET_IN_H 18361#include <netinet/in.h> 18362#endif 18363#if HAVE_NETINET_IP_H 18364#include <netinet/ip.h> 18365#endif 18366#if HAVE_NETINET_IP_H 18367#include <netinet/ip_icmp.h> 18368#endif 18369#if HAVE_NET_IF_H 18370#include <net/if.h> 18371#endif 18372#if HAVE_NET_IF_VAR_H 18373#include <net/if_var.h> 18374#endif 18375#if HAVE_NETINET_IP_VAR_H 18376#include <netinet/ip_var.h> 18377#endif 18378#if HAVE_NETINET_IP_ICMP_H 18379#include <netinet/ip_icmp.h> 18380#endif 18381#if HAVE_NETINET_TCP_H 18382#include <netinet/tcp.h> 18383#endif 18384#if HAVE_NETINET_UDP_H 18385#include <netinet/udp.h> 18386#endif 18387#if HAVE_NETINET_TCP_TIMER_H 18388#include <netinet/tcp_timer.h> 18389#endif 18390#if HAVE_NETINET_IP6_H 18391#include <netinet/ip6.h> 18392#endif 18393#if HAVE_NETINET_ICMP6_H 18394#include <netinet/icmp6.h> 18395#endif 18396 18397" 18398if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18399 cat >>confdefs.h <<_ACEOF 18400#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18401_ACEOF 18402 18403fi 18404 18405done 18406 18407 18408esac 18409 18410## 18411# Pre-requisite on specific types 18412## 18413 18414# Special hack to get around various problems on older Linux kernels 18415# (major ugh!) 18416# Agent: 18417# 18418cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18419/* end confdefs.h. */ 18420#include <linux/ethtool.h> 18421int 18422main () 18423{ 18424 18425 ; 18426 return 0; 18427} 18428_ACEOF 18429if ac_fn_c_try_compile "$LINENO"; then : 18430 for ac_header in linux/ethtool.h 18431do : 18432 ac_fn_c_check_header_mongrel "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "$ac_includes_default" 18433if test "x$ac_cv_header_linux_ethtool_h" = xyes; then : 18434 cat >>confdefs.h <<_ACEOF 18435#define HAVE_LINUX_ETHTOOL_H 1 18436_ACEOF 18437 18438fi 18439 18440done 18441 18442else 18443 for ac_header in linux/ethtool.h 18444do : 18445 ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" " 18446#include <linux/types.h> 18447typedef __u64 u64; /* hack, so we may include kernel's ethtool.h */ 18448typedef __u32 u32; /* ditto */ 18449typedef __u16 u16; /* ditto */ 18450typedef __u8 u8; /* ditto */ 18451 18452" 18453if test "x$ac_cv_header_linux_ethtool_h" = xyes; then : 18454 cat >>confdefs.h <<_ACEOF 18455#define HAVE_LINUX_ETHTOOL_H 1 18456_ACEOF 18457 18458fi 18459 18460done 18461 18462 18463$as_echo "#define HAVE_LINUX_ETHTOOL_NEEDS_U64 1" >>confdefs.h 18464 18465fi 18466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18467 18468## 18469# Headers requiring particular libraries 18470## 18471 18472# for HostRes (Solaris 2.x) 18473# Agent: 18474# 18475for ac_header in pkginfo.h 18476do : 18477 ac_fn_c_check_header_mongrel "$LINENO" "pkginfo.h" "ac_cv_header_pkginfo_h" "$ac_includes_default" 18478if test "x$ac_cv_header_pkginfo_h" = xyes; then : 18479 cat >>confdefs.h <<_ACEOF 18480#define HAVE_PKGINFO_H 1 18481_ACEOF 18482 18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pkginfo" >&5 18484$as_echo_n "checking for library containing pkginfo... " >&6; } 18485if ${netsnmp_cv_func_pkginfo_LMIBLIBS+:} false; then : 18486 $as_echo_n "(cached) " >&6 18487else 18488 netsnmp_func_search_save_LIBS="$LIBS" 18489 netsnmp_target_val="$LMIBLIBS" 18490 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 18491 netsnmp_result=no 18492 LIBS="${netsnmp_temp_LIBS}" 18493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18494/* end confdefs.h. */ 18495 18496/* Override any GCC internal prototype to avoid an error. 18497 Use char because int might match the return type of a GCC 18498 builtin and then its argument prototype would still apply. */ 18499#ifdef __cplusplus 18500extern "C" 18501#endif 18502char pkginfo (); 18503int 18504main () 18505{ 18506return pkginfo (); 18507 ; 18508 return 0; 18509} 18510_ACEOF 18511if ac_fn_c_try_link "$LINENO"; then : 18512 netsnmp_result="none required" 18513else 18514 for netsnmp_cur_lib in adm ; do 18515 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 18516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18517/* end confdefs.h. */ 18518 18519/* Override any GCC internal prototype to avoid an error. 18520 Use char because int might match the return type of a GCC 18521 builtin and then its argument prototype would still apply. */ 18522#ifdef __cplusplus 18523extern "C" 18524#endif 18525char pkginfo (); 18526int 18527main () 18528{ 18529return pkginfo (); 18530 ; 18531 return 0; 18532} 18533_ACEOF 18534if ac_fn_c_try_link "$LINENO"; then : 18535 netsnmp_result=-l${netsnmp_cur_lib} 18536 break 18537fi 18538rm -f core conftest.err conftest.$ac_objext \ 18539 conftest$ac_exeext conftest.$ac_ext 18540 done 18541fi 18542rm -f core conftest.err conftest.$ac_objext \ 18543 conftest$ac_exeext conftest.$ac_ext 18544 LIBS="${netsnmp_func_search_save_LIBS}" 18545 netsnmp_cv_func_pkginfo_LMIBLIBS="${netsnmp_result}" 18546fi 18547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_pkginfo_LMIBLIBS" >&5 18548$as_echo "$netsnmp_cv_func_pkginfo_LMIBLIBS" >&6; } 18549 if test "x${netsnmp_cv_func_pkginfo_LMIBLIBS}" != "xno" ; then 18550 if test "x${netsnmp_cv_func_pkginfo_LMIBLIBS}" != "xnone required" ; then 18551 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 18552 fi 18553 18554$as_echo "#define HAVE_PKGINFO 1" >>confdefs.h 18555 18556 18557 fi 18558 18559fi 18560 18561done 18562 18563 18564for ac_header in pkg.h 18565do : 18566 ac_fn_c_check_header_mongrel "$LINENO" "pkg.h" "ac_cv_header_pkg_h" "$ac_includes_default" 18567if test "x$ac_cv_header_pkg_h" = xyes; then : 18568 cat >>confdefs.h <<_ACEOF 18569#define HAVE_PKG_H 1 18570_ACEOF 18571 18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pkg_init" >&5 18573$as_echo_n "checking for library containing pkg_init... " >&6; } 18574if ${netsnmp_cv_func_pkg_init_LIBS+:} false; then : 18575 $as_echo_n "(cached) " >&6 18576else 18577 netsnmp_func_search_save_LIBS="$LIBS" 18578 netsnmp_target_val="$LIBS" 18579 netsnmp_temp_LIBS=" ${LIBS}" 18580 netsnmp_result=no 18581 LIBS="${netsnmp_temp_LIBS}" 18582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18583/* end confdefs.h. */ 18584 18585/* Override any GCC internal prototype to avoid an error. 18586 Use char because int might match the return type of a GCC 18587 builtin and then its argument prototype would still apply. */ 18588#ifdef __cplusplus 18589extern "C" 18590#endif 18591char pkg_init (); 18592int 18593main () 18594{ 18595return pkg_init (); 18596 ; 18597 return 0; 18598} 18599_ACEOF 18600if ac_fn_c_try_link "$LINENO"; then : 18601 netsnmp_result="none required" 18602else 18603 for netsnmp_cur_lib in pkg ; do 18604 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18606/* end confdefs.h. */ 18607 18608/* Override any GCC internal prototype to avoid an error. 18609 Use char because int might match the return type of a GCC 18610 builtin and then its argument prototype would still apply. */ 18611#ifdef __cplusplus 18612extern "C" 18613#endif 18614char pkg_init (); 18615int 18616main () 18617{ 18618return pkg_init (); 18619 ; 18620 return 0; 18621} 18622_ACEOF 18623if ac_fn_c_try_link "$LINENO"; then : 18624 netsnmp_result=-l${netsnmp_cur_lib} 18625 break 18626fi 18627rm -f core conftest.err conftest.$ac_objext \ 18628 conftest$ac_exeext conftest.$ac_ext 18629 done 18630fi 18631rm -f core conftest.err conftest.$ac_objext \ 18632 conftest$ac_exeext conftest.$ac_ext 18633 LIBS="${netsnmp_func_search_save_LIBS}" 18634 netsnmp_cv_func_pkg_init_LIBS="${netsnmp_result}" 18635fi 18636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_pkg_init_LIBS" >&5 18637$as_echo "$netsnmp_cv_func_pkg_init_LIBS" >&6; } 18638 if test "x${netsnmp_cv_func_pkg_init_LIBS}" != "xno" ; then 18639 if test "x${netsnmp_cv_func_pkg_init_LIBS}" != "xnone required" ; then 18640 LIBS="${netsnmp_result} ${netsnmp_target_val}" 18641 fi 18642 18643$as_echo "#define HAVE_LIBPKG 1" >>confdefs.h 18644 18645 18646 fi 18647 18648fi 18649 18650done 18651 18652 18653if test $ac_cv_header_pkg_h = no 18654then 18655 18656 netsnmp_save_CPPFLAGS="$CPPFLAGS" 18657 netsnmp_save_LDFLAGS="$LDFLAGS" 18658 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 18659 LDFLAGS="$LDFLAGS -L/usr/local/lib" 18660 for ac_header in pkg.h 18661do : 18662 ac_fn_c_check_header_mongrel "$LINENO" "pkg.h" "ac_cv_header_pkg_h" "$ac_includes_default" 18663if test "x$ac_cv_header_pkg_h" = xyes; then : 18664 cat >>confdefs.h <<_ACEOF 18665#define HAVE_PKG_H 1 18666_ACEOF 18667 18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pkg_init" >&5 18669$as_echo_n "checking for library containing pkg_init... " >&6; } 18670if ${netsnmp_cv_func_pkg_init_LIBS+:} false; then : 18671 $as_echo_n "(cached) " >&6 18672else 18673 netsnmp_func_search_save_LIBS="$LIBS" 18674 netsnmp_target_val="$LIBS" 18675 netsnmp_temp_LIBS=" ${LIBS}" 18676 netsnmp_result=no 18677 LIBS="${netsnmp_temp_LIBS}" 18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18679/* end confdefs.h. */ 18680 18681/* Override any GCC internal prototype to avoid an error. 18682 Use char because int might match the return type of a GCC 18683 builtin and then its argument prototype would still apply. */ 18684#ifdef __cplusplus 18685extern "C" 18686#endif 18687char pkg_init (); 18688int 18689main () 18690{ 18691return pkg_init (); 18692 ; 18693 return 0; 18694} 18695_ACEOF 18696if ac_fn_c_try_link "$LINENO"; then : 18697 netsnmp_result="none required" 18698else 18699 for netsnmp_cur_lib in pkg ; do 18700 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 18701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18702/* end confdefs.h. */ 18703 18704/* Override any GCC internal prototype to avoid an error. 18705 Use char because int might match the return type of a GCC 18706 builtin and then its argument prototype would still apply. */ 18707#ifdef __cplusplus 18708extern "C" 18709#endif 18710char pkg_init (); 18711int 18712main () 18713{ 18714return pkg_init (); 18715 ; 18716 return 0; 18717} 18718_ACEOF 18719if ac_fn_c_try_link "$LINENO"; then : 18720 netsnmp_result=-l${netsnmp_cur_lib} 18721 break 18722fi 18723rm -f core conftest.err conftest.$ac_objext \ 18724 conftest$ac_exeext conftest.$ac_ext 18725 done 18726fi 18727rm -f core conftest.err conftest.$ac_objext \ 18728 conftest$ac_exeext conftest.$ac_ext 18729 LIBS="${netsnmp_func_search_save_LIBS}" 18730 netsnmp_cv_func_pkg_init_LIBS="${netsnmp_result}" 18731fi 18732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_pkg_init_LIBS" >&5 18733$as_echo "$netsnmp_cv_func_pkg_init_LIBS" >&6; } 18734 if test "x${netsnmp_cv_func_pkg_init_LIBS}" != "xno" ; then 18735 if test "x${netsnmp_cv_func_pkg_init_LIBS}" != "xnone required" ; then 18736 LIBS="${netsnmp_result} ${netsnmp_target_val}" 18737 fi 18738 18739$as_echo "#define HAVE_LIBPKG 1" >>confdefs.h 18740 18741 18742 fi 18743 18744fi 18745 18746done 18747 18748 if test $ac_cv_header_pkg_h = no 18749 then 18750 CPPFLAGS="$netsnmp_save_CPPFLAGS" 18751 LDFLAGS="$netsnmp_save_LDFLAGS" 18752 fi 18753fi 18754 18755case $target_os in 18756 aix*) 18757 # for CPU/memory statistics (AIX) 18758 # Agent: 18759 # 18760 for ac_header in libperfstat.h 18761do : 18762 ac_fn_c_check_header_compile "$LINENO" "libperfstat.h" "ac_cv_header_libperfstat_h" " 18763#if HAVE_SYS_PROTOSW_H 18764#include <sys/protosw.h> 18765#endif 18766 18767" 18768if test "x$ac_cv_header_libperfstat_h" = xyes; then : 18769 cat >>confdefs.h <<_ACEOF 18770#define HAVE_LIBPERFSTAT_H 1 18771_ACEOF 18772 18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing perfstat_cpu_total" >&5 18774$as_echo_n "checking for library containing perfstat_cpu_total... " >&6; } 18775if ${netsnmp_cv_func_perfstat_cpu_total_LMIBLIBS+:} false; then : 18776 $as_echo_n "(cached) " >&6 18777else 18778 netsnmp_func_search_save_LIBS="$LIBS" 18779 netsnmp_target_val="$LMIBLIBS" 18780 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 18781 netsnmp_result=no 18782 LIBS="${netsnmp_temp_LIBS}" 18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18784/* end confdefs.h. */ 18785 18786/* Override any GCC internal prototype to avoid an error. 18787 Use char because int might match the return type of a GCC 18788 builtin and then its argument prototype would still apply. */ 18789#ifdef __cplusplus 18790extern "C" 18791#endif 18792char perfstat_cpu_total (); 18793int 18794main () 18795{ 18796return perfstat_cpu_total (); 18797 ; 18798 return 0; 18799} 18800_ACEOF 18801if ac_fn_c_try_link "$LINENO"; then : 18802 netsnmp_result="none required" 18803else 18804 for netsnmp_cur_lib in perfstat ; do 18805 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 18806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18807/* end confdefs.h. */ 18808 18809/* Override any GCC internal prototype to avoid an error. 18810 Use char because int might match the return type of a GCC 18811 builtin and then its argument prototype would still apply. */ 18812#ifdef __cplusplus 18813extern "C" 18814#endif 18815char perfstat_cpu_total (); 18816int 18817main () 18818{ 18819return perfstat_cpu_total (); 18820 ; 18821 return 0; 18822} 18823_ACEOF 18824if ac_fn_c_try_link "$LINENO"; then : 18825 netsnmp_result=-l${netsnmp_cur_lib} 18826 break 18827fi 18828rm -f core conftest.err conftest.$ac_objext \ 18829 conftest$ac_exeext conftest.$ac_ext 18830 done 18831fi 18832rm -f core conftest.err conftest.$ac_objext \ 18833 conftest$ac_exeext conftest.$ac_ext 18834 LIBS="${netsnmp_func_search_save_LIBS}" 18835 netsnmp_cv_func_perfstat_cpu_total_LMIBLIBS="${netsnmp_result}" 18836fi 18837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_perfstat_cpu_total_LMIBLIBS" >&5 18838$as_echo "$netsnmp_cv_func_perfstat_cpu_total_LMIBLIBS" >&6; } 18839 if test "x${netsnmp_cv_func_perfstat_cpu_total_LMIBLIBS}" != "xno" ; then 18840 if test "x${netsnmp_cv_func_perfstat_cpu_total_LMIBLIBS}" != "xnone required" ; then 18841 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 18842 fi 18843 18844$as_echo "#define HAVE_PERFSTAT 1" >>confdefs.h 18845 18846 else 18847 as_fn_error $? " 18848 18849*** To monitor CPU/memory values in AIX you need to install 18850*** libperfstat which can be found in bos.perf 18851" "$LINENO" 5 18852 fi 18853 18854fi 18855 18856done 18857 18858 ;; 18859 hpux*) 18860 # HP-UX agent needs open_mib (XXX - not a header check!) 18861 # 18862 18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing open_mib" >&5 18864$as_echo_n "checking for library containing open_mib... " >&6; } 18865if ${netsnmp_cv_func_open_mib_LMIBLIBS+:} false; then : 18866 $as_echo_n "(cached) " >&6 18867else 18868 netsnmp_func_search_save_LIBS="$LIBS" 18869 netsnmp_target_val="$LMIBLIBS" 18870 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 18871 netsnmp_result=no 18872 LIBS="${netsnmp_temp_LIBS}" 18873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18874/* end confdefs.h. */ 18875 18876/* Override any GCC internal prototype to avoid an error. 18877 Use char because int might match the return type of a GCC 18878 builtin and then its argument prototype would still apply. */ 18879#ifdef __cplusplus 18880extern "C" 18881#endif 18882char open_mib (); 18883int 18884main () 18885{ 18886return open_mib (); 18887 ; 18888 return 0; 18889} 18890_ACEOF 18891if ac_fn_c_try_link "$LINENO"; then : 18892 netsnmp_result="none required" 18893else 18894 for netsnmp_cur_lib in nm ; do 18895 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 18896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18897/* end confdefs.h. */ 18898 18899/* Override any GCC internal prototype to avoid an error. 18900 Use char because int might match the return type of a GCC 18901 builtin and then its argument prototype would still apply. */ 18902#ifdef __cplusplus 18903extern "C" 18904#endif 18905char open_mib (); 18906int 18907main () 18908{ 18909return open_mib (); 18910 ; 18911 return 0; 18912} 18913_ACEOF 18914if ac_fn_c_try_link "$LINENO"; then : 18915 netsnmp_result=-l${netsnmp_cur_lib} 18916 break 18917fi 18918rm -f core conftest.err conftest.$ac_objext \ 18919 conftest$ac_exeext conftest.$ac_ext 18920 done 18921fi 18922rm -f core conftest.err conftest.$ac_objext \ 18923 conftest$ac_exeext conftest.$ac_ext 18924 LIBS="${netsnmp_func_search_save_LIBS}" 18925 netsnmp_cv_func_open_mib_LMIBLIBS="${netsnmp_result}" 18926fi 18927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_open_mib_LMIBLIBS" >&5 18928$as_echo "$netsnmp_cv_func_open_mib_LMIBLIBS" >&6; } 18929 if test "x${netsnmp_cv_func_open_mib_LMIBLIBS}" != "xno" ; then 18930 if test "x${netsnmp_cv_func_open_mib_LMIBLIBS}" != "xnone required" ; then 18931 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 18932 fi 18933 18934$as_echo "#define HAVE_LIBNM 1" >>confdefs.h 18935 18936 18937 fi 18938 18939 ;; 18940 *) 18941 ;; 18942esac 18943 18944# for MIB-2 info (Cygwin and MinGW) 18945# Core: 18946# 18947for ac_header in windows.h iphlpapi.h 18948do : 18949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18950ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 18951#ifdef HAVE_WINDOWS_H 18952#include <windows.h> 18953#endif 18954 18955" 18956if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18957 cat >>confdefs.h <<_ACEOF 18958#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18959_ACEOF 18960 18961fi 18962 18963done 18964 18965 18966for ac_header in lm.h 18967do : 18968 ac_fn_c_check_header_compile "$LINENO" "lm.h" "ac_cv_header_lm_h" " 18969#ifdef HAVE_WINDOWS_H 18970#include <windows.h> 18971#endif 18972 18973" 18974if test "x$ac_cv_header_lm_h" = xyes; then : 18975 cat >>confdefs.h <<_ACEOF 18976#define HAVE_LM_H 1 18977_ACEOF 18978 LAGENTLIBS="$LAGENTLIBS -lnetapi32" 18979fi 18980 18981done 18982 18983 18984# for MIB-2 info (MinGW) 18985# Core: 18986# 18987if test x$with_socklib = xwinsock2; then 18988 for ac_header in winsock.h winsock2.h ws2tcpip.h 18989do : 18990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18991ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <windows.h> 18992" 18993if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18994 cat >>confdefs.h <<_ACEOF 18995#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18996_ACEOF 18997 18998fi 18999 19000done 19001 19002fi 19003 19004# 19005# for ucd-snmp/lmsensorsMib 19006# 19007for ac_header in sensors/sensors.h picl.h 19008do : 19009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19010ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19011if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19012 cat >>confdefs.h <<_ACEOF 19013#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19014_ACEOF 19015 19016fi 19017 19018done 19019 19020 19021## This is here to avoid loads of redefinition warnings during 19022## module configuration 19023 19024## 19025# rtentry structure checks: 19026## 19027 19028# Check struct rtentry for common fields 19029# Agent: 19030# 19031ac_fn_c_check_member "$LINENO" "struct rtentry" "rt_dst" "ac_cv_member_struct_rtentry_rt_dst" " 19032#ifdef HAVE_SYS_PARAM_H 19033#include <sys/param.h> 19034#endif 19035#include <sys/types.h> 19036#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 19037#define _KERNEL_STRUCTURES 1 19038#endif 19039#ifdef HAVE_SYS_SOCKET_H 19040#ifdef NETSNMP_IFNET_NEEDS_KERNEL 19041#define KERNEL 19042#if !defined(__DragonFly__) 19043#define _KERNEL 1 19044#endif 19045#endif 19046#include <sys/socket.h> 19047#undef KERNEL 19048#undef _KERNEL 19049#endif 19050#ifdef HAVE_NET_ROUTE_H 19051#include <net/route.h> 19052#endif 19053 19054" 19055if test "x$ac_cv_member_struct_rtentry_rt_dst" = xyes; then : 19056 19057cat >>confdefs.h <<_ACEOF 19058#define HAVE_STRUCT_RTENTRY_RT_DST 1 19059_ACEOF 19060 19061 19062fi 19063ac_fn_c_check_member "$LINENO" "struct rtentry" "rt_hash" "ac_cv_member_struct_rtentry_rt_hash" " 19064#ifdef HAVE_SYS_PARAM_H 19065#include <sys/param.h> 19066#endif 19067#include <sys/types.h> 19068#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 19069#define _KERNEL_STRUCTURES 1 19070#endif 19071#ifdef HAVE_SYS_SOCKET_H 19072#ifdef NETSNMP_IFNET_NEEDS_KERNEL 19073#define KERNEL 19074#if !defined(__DragonFly__) 19075#define _KERNEL 1 19076#endif 19077#endif 19078#include <sys/socket.h> 19079#undef KERNEL 19080#undef _KERNEL 19081#endif 19082#ifdef HAVE_NET_ROUTE_H 19083#include <net/route.h> 19084#endif 19085 19086" 19087if test "x$ac_cv_member_struct_rtentry_rt_hash" = xyes; then : 19088 19089cat >>confdefs.h <<_ACEOF 19090#define HAVE_STRUCT_RTENTRY_RT_HASH 1 19091_ACEOF 19092 19093 19094fi 19095ac_fn_c_check_member "$LINENO" "struct rtentry" "rt_next" "ac_cv_member_struct_rtentry_rt_next" " 19096#ifdef HAVE_SYS_PARAM_H 19097#include <sys/param.h> 19098#endif 19099#include <sys/types.h> 19100#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 19101#define _KERNEL_STRUCTURES 1 19102#endif 19103#ifdef HAVE_SYS_SOCKET_H 19104#ifdef NETSNMP_IFNET_NEEDS_KERNEL 19105#define KERNEL 19106#if !defined(__DragonFly__) 19107#define _KERNEL 1 19108#endif 19109#endif 19110#include <sys/socket.h> 19111#undef KERNEL 19112#undef _KERNEL 19113#endif 19114#ifdef HAVE_NET_ROUTE_H 19115#include <net/route.h> 19116#endif 19117 19118" 19119if test "x$ac_cv_member_struct_rtentry_rt_next" = xyes; then : 19120 19121cat >>confdefs.h <<_ACEOF 19122#define HAVE_STRUCT_RTENTRY_RT_NEXT 1 19123_ACEOF 19124 19125 19126fi 19127ac_fn_c_check_member "$LINENO" "struct rtentry" "rt_refcnt" "ac_cv_member_struct_rtentry_rt_refcnt" " 19128#ifdef HAVE_SYS_PARAM_H 19129#include <sys/param.h> 19130#endif 19131#include <sys/types.h> 19132#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 19133#define _KERNEL_STRUCTURES 1 19134#endif 19135#ifdef HAVE_SYS_SOCKET_H 19136#ifdef NETSNMP_IFNET_NEEDS_KERNEL 19137#define KERNEL 19138#if !defined(__DragonFly__) 19139#define _KERNEL 1 19140#endif 19141#endif 19142#include <sys/socket.h> 19143#undef KERNEL 19144#undef _KERNEL 19145#endif 19146#ifdef HAVE_NET_ROUTE_H 19147#include <net/route.h> 19148#endif 19149 19150" 19151if test "x$ac_cv_member_struct_rtentry_rt_refcnt" = xyes; then : 19152 19153cat >>confdefs.h <<_ACEOF 19154#define HAVE_STRUCT_RTENTRY_RT_REFCNT 1 19155_ACEOF 19156 19157 19158fi 19159ac_fn_c_check_member "$LINENO" "struct rtentry" "rt_unit" "ac_cv_member_struct_rtentry_rt_unit" " 19160#ifdef HAVE_SYS_PARAM_H 19161#include <sys/param.h> 19162#endif 19163#include <sys/types.h> 19164#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 19165#define _KERNEL_STRUCTURES 1 19166#endif 19167#ifdef HAVE_SYS_SOCKET_H 19168#ifdef NETSNMP_IFNET_NEEDS_KERNEL 19169#define KERNEL 19170#if !defined(__DragonFly__) 19171#define _KERNEL 1 19172#endif 19173#endif 19174#include <sys/socket.h> 19175#undef KERNEL 19176#undef _KERNEL 19177#endif 19178#ifdef HAVE_NET_ROUTE_H 19179#include <net/route.h> 19180#endif 19181 19182" 19183if test "x$ac_cv_member_struct_rtentry_rt_unit" = xyes; then : 19184 19185cat >>confdefs.h <<_ACEOF 19186#define HAVE_STRUCT_RTENTRY_RT_UNIT 1 19187_ACEOF 19188 19189 19190fi 19191ac_fn_c_check_member "$LINENO" "struct rtentry" "rt_use" "ac_cv_member_struct_rtentry_rt_use" " 19192#ifdef HAVE_SYS_PARAM_H 19193#include <sys/param.h> 19194#endif 19195#include <sys/types.h> 19196#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 19197#define _KERNEL_STRUCTURES 1 19198#endif 19199#ifdef HAVE_SYS_SOCKET_H 19200#ifdef NETSNMP_IFNET_NEEDS_KERNEL 19201#define KERNEL 19202#if !defined(__DragonFly__) 19203#define _KERNEL 1 19204#endif 19205#endif 19206#include <sys/socket.h> 19207#undef KERNEL 19208#undef _KERNEL 19209#endif 19210#ifdef HAVE_NET_ROUTE_H 19211#include <net/route.h> 19212#endif 19213 19214" 19215if test "x$ac_cv_member_struct_rtentry_rt_use" = xyes; then : 19216 19217cat >>confdefs.h <<_ACEOF 19218#define HAVE_STRUCT_RTENTRY_RT_USE 1 19219_ACEOF 19220 19221 19222fi 19223 19224 19225fi # NETSNMP_QUICK_CHECK 19226 19227cat >confcache <<\_ACEOF 19228# This file is a shell script that caches the results of configure 19229# tests run on this system so they can be shared between configure 19230# scripts and configure runs, see configure's option --config-cache. 19231# It is not useful on other systems. If it contains results you don't 19232# want to keep, you may remove or edit it. 19233# 19234# config.status only pays attention to the cache file if you give it 19235# the --recheck option to rerun configure. 19236# 19237# `ac_cv_env_foo' variables (set or unset) will be overridden when 19238# loading this file, other *unset* `ac_cv_foo' will be assigned the 19239# following values. 19240 19241_ACEOF 19242 19243# The following way of writing the cache mishandles newlines in values, 19244# but we know of no workaround that is simple, portable, and efficient. 19245# So, we kill variables containing newlines. 19246# Ultrix sh set writes to stderr and can't be redirected directly, 19247# and sets the high bit in the cache file unless we assign to the vars. 19248( 19249 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19250 eval ac_val=\$$ac_var 19251 case $ac_val in #( 19252 *${as_nl}*) 19253 case $ac_var in #( 19254 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19255$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19256 esac 19257 case $ac_var in #( 19258 _ | IFS | as_nl) ;; #( 19259 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19260 *) { eval $ac_var=; unset $ac_var;} ;; 19261 esac ;; 19262 esac 19263 done 19264 19265 (set) 2>&1 | 19266 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19267 *${as_nl}ac_space=\ *) 19268 # `set' does not quote correctly, so add quotes: double-quote 19269 # substitution turns \\\\ into \\, and sed turns \\ into \. 19270 sed -n \ 19271 "s/'/'\\\\''/g; 19272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19273 ;; #( 19274 *) 19275 # `set' quotes correctly as required by POSIX, so do not add quotes. 19276 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19277 ;; 19278 esac | 19279 sort 19280) | 19281 sed ' 19282 /^ac_cv_env_/b end 19283 t clear 19284 :clear 19285 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19286 t end 19287 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19288 :end' >>confcache 19289if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19290 if test -w "$cache_file"; then 19291 if test "x$cache_file" != "x/dev/null"; then 19292 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19293$as_echo "$as_me: updating cache $cache_file" >&6;} 19294 if test ! -f "$cache_file" || test -h "$cache_file"; then 19295 cat confcache >"$cache_file" 19296 else 19297 case $cache_file in #( 19298 */* | ?:*) 19299 mv -f confcache "$cache_file"$$ && 19300 mv -f "$cache_file"$$ "$cache_file" ;; #( 19301 *) 19302 mv -f confcache "$cache_file" ;; 19303 esac 19304 fi 19305 fi 19306 else 19307 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19308$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19309 fi 19310fi 19311rm -f confcache 19312# -*- autoconf -*- 19313######################################### 19314## 19315# Checks for types 19316## 19317######################################### 19318 19319## 19320# Standard checks: 19321## 19322 19323# The cast to long int works around a bug in the HP C Compiler 19324# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19325# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19326# This bug is HP SR number 8606223364. 19327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 19328$as_echo_n "checking size of short... " >&6; } 19329if ${ac_cv_sizeof_short+:} false; then : 19330 $as_echo_n "(cached) " >&6 19331else 19332 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 19333 19334else 19335 if test "$ac_cv_type_short" = yes; then 19336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19338as_fn_error 77 "cannot compute sizeof (short) 19339See \`config.log' for more details" "$LINENO" 5; } 19340 else 19341 ac_cv_sizeof_short=0 19342 fi 19343fi 19344 19345fi 19346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 19347$as_echo "$ac_cv_sizeof_short" >&6; } 19348 19349 19350 19351cat >>confdefs.h <<_ACEOF 19352#define SIZEOF_SHORT $ac_cv_sizeof_short 19353_ACEOF 19354 19355 19356# The cast to long int works around a bug in the HP C Compiler 19357# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19358# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19359# This bug is HP SR number 8606223364. 19360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 19361$as_echo_n "checking size of int... " >&6; } 19362if ${ac_cv_sizeof_int+:} false; then : 19363 $as_echo_n "(cached) " >&6 19364else 19365 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 19366 19367else 19368 if test "$ac_cv_type_int" = yes; then 19369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19371as_fn_error 77 "cannot compute sizeof (int) 19372See \`config.log' for more details" "$LINENO" 5; } 19373 else 19374 ac_cv_sizeof_int=0 19375 fi 19376fi 19377 19378fi 19379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 19380$as_echo "$ac_cv_sizeof_int" >&6; } 19381 19382 19383 19384cat >>confdefs.h <<_ACEOF 19385#define SIZEOF_INT $ac_cv_sizeof_int 19386_ACEOF 19387 19388 19389# The cast to long int works around a bug in the HP C Compiler 19390# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19391# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19392# This bug is HP SR number 8606223364. 19393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 19394$as_echo_n "checking size of long... " >&6; } 19395if ${ac_cv_sizeof_long+:} false; then : 19396 $as_echo_n "(cached) " >&6 19397else 19398 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 19399 19400else 19401 if test "$ac_cv_type_long" = yes; then 19402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19404as_fn_error 77 "cannot compute sizeof (long) 19405See \`config.log' for more details" "$LINENO" 5; } 19406 else 19407 ac_cv_sizeof_long=0 19408 fi 19409fi 19410 19411fi 19412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 19413$as_echo "$ac_cv_sizeof_long" >&6; } 19414 19415 19416 19417cat >>confdefs.h <<_ACEOF 19418#define SIZEOF_LONG $ac_cv_sizeof_long 19419_ACEOF 19420 19421 19422# The cast to long int works around a bug in the HP C Compiler 19423# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19424# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19425# This bug is HP SR number 8606223364. 19426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 19427$as_echo_n "checking size of long long... " >&6; } 19428if ${ac_cv_sizeof_long_long+:} false; then : 19429 $as_echo_n "(cached) " >&6 19430else 19431 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 19432 19433else 19434 if test "$ac_cv_type_long_long" = yes; then 19435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19437as_fn_error 77 "cannot compute sizeof (long long) 19438See \`config.log' for more details" "$LINENO" 5; } 19439 else 19440 ac_cv_sizeof_long_long=0 19441 fi 19442fi 19443 19444fi 19445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 19446$as_echo "$ac_cv_sizeof_long_long" >&6; } 19447 19448 19449 19450cat >>confdefs.h <<_ACEOF 19451#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 19452_ACEOF 19453 19454 19455# The cast to long int works around a bug in the HP C Compiler 19456# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19457# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19458# This bug is HP SR number 8606223364. 19459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 19460$as_echo_n "checking size of intmax_t... " >&6; } 19461if ${ac_cv_sizeof_intmax_t+:} false; then : 19462 $as_echo_n "(cached) " >&6 19463else 19464 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then : 19465 19466else 19467 if test "$ac_cv_type_intmax_t" = yes; then 19468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19470as_fn_error 77 "cannot compute sizeof (intmax_t) 19471See \`config.log' for more details" "$LINENO" 5; } 19472 else 19473 ac_cv_sizeof_intmax_t=0 19474 fi 19475fi 19476 19477fi 19478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5 19479$as_echo "$ac_cv_sizeof_intmax_t" >&6; } 19480 19481 19482 19483cat >>confdefs.h <<_ACEOF 19484#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t 19485_ACEOF 19486 19487 19488 19489ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 19490case $ac_cv_c_int8_t in #( 19491 no|yes) ;; #( 19492 *) 19493 19494cat >>confdefs.h <<_ACEOF 19495#define int8_t $ac_cv_c_int8_t 19496_ACEOF 19497;; 19498esac 19499 19500ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 19501case $ac_cv_c_int16_t in #( 19502 no|yes) ;; #( 19503 *) 19504 19505cat >>confdefs.h <<_ACEOF 19506#define int16_t $ac_cv_c_int16_t 19507_ACEOF 19508;; 19509esac 19510 19511ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 19512case $ac_cv_c_int32_t in #( 19513 no|yes) ;; #( 19514 *) 19515 19516cat >>confdefs.h <<_ACEOF 19517#define int32_t $ac_cv_c_int32_t 19518_ACEOF 19519;; 19520esac 19521 19522ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 19523case $ac_cv_c_int64_t in #( 19524 no|yes) ;; #( 19525 *) 19526 19527cat >>confdefs.h <<_ACEOF 19528#define int64_t $ac_cv_c_int64_t 19529_ACEOF 19530;; 19531esac 19532 19533 19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 19535$as_echo_n "checking for unsigned long long int... " >&6; } 19536if ${ac_cv_type_unsigned_long_long_int+:} false; then : 19537 $as_echo_n "(cached) " >&6 19538else 19539 ac_cv_type_unsigned_long_long_int=yes 19540 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 19541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19542/* end confdefs.h. */ 19543 19544 /* For now, do not test the preprocessor; as of 2007 there are too many 19545 implementations with broken preprocessors. Perhaps this can 19546 be revisited in 2012. In the meantime, code should not expect 19547 #if to work with literals wider than 32 bits. */ 19548 /* Test literals. */ 19549 long long int ll = 9223372036854775807ll; 19550 long long int nll = -9223372036854775807LL; 19551 unsigned long long int ull = 18446744073709551615ULL; 19552 /* Test constant expressions. */ 19553 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 19554 ? 1 : -1)]; 19555 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 19556 ? 1 : -1)]; 19557 int i = 63; 19558int 19559main () 19560{ 19561/* Test availability of runtime routines for shift and division. */ 19562 long long int llmax = 9223372036854775807ll; 19563 unsigned long long int ullmax = 18446744073709551615ull; 19564 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 19565 | (llmax / ll) | (llmax % ll) 19566 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 19567 | (ullmax / ull) | (ullmax % ull)); 19568 ; 19569 return 0; 19570} 19571 19572_ACEOF 19573if ac_fn_c_try_link "$LINENO"; then : 19574 19575else 19576 ac_cv_type_unsigned_long_long_int=no 19577fi 19578rm -f core conftest.err conftest.$ac_objext \ 19579 conftest$ac_exeext conftest.$ac_ext 19580 fi 19581fi 19582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 19583$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 19584 if test $ac_cv_type_unsigned_long_long_int = yes; then 19585 19586$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 19587 19588 fi 19589 19590 19591 19592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 19593$as_echo_n "checking for long long int... " >&6; } 19594if ${ac_cv_type_long_long_int+:} false; then : 19595 $as_echo_n "(cached) " >&6 19596else 19597 ac_cv_type_long_long_int=yes 19598 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 19599 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 19600 if test $ac_cv_type_long_long_int = yes; then 19601 if test "$cross_compiling" = yes; then : 19602 : 19603else 19604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19605/* end confdefs.h. */ 19606#include <limits.h> 19607 #ifndef LLONG_MAX 19608 # define HALF \ 19609 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 19610 # define LLONG_MAX (HALF - 1 + HALF) 19611 #endif 19612int 19613main () 19614{ 19615long long int n = 1; 19616 int i; 19617 for (i = 0; ; i++) 19618 { 19619 long long int m = n << i; 19620 if (m >> i != n) 19621 return 1; 19622 if (LLONG_MAX / 2 < m) 19623 break; 19624 } 19625 return 0; 19626 ; 19627 return 0; 19628} 19629_ACEOF 19630if ac_fn_c_try_run "$LINENO"; then : 19631 19632else 19633 ac_cv_type_long_long_int=no 19634fi 19635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19636 conftest.$ac_objext conftest.beam conftest.$ac_ext 19637fi 19638 19639 fi 19640 fi 19641fi 19642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 19643$as_echo "$ac_cv_type_long_long_int" >&6; } 19644 if test $ac_cv_type_long_long_int = yes; then 19645 19646$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 19647 19648 fi 19649 19650 19651 19652 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 19653if test "x$ac_cv_type_intmax_t" = xyes; then : 19654 19655$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 19656 19657else 19658 test $ac_cv_type_long_long_int = yes \ 19659 && ac_type='long long int' \ 19660 || ac_type='long int' 19661 19662cat >>confdefs.h <<_ACEOF 19663#define intmax_t $ac_type 19664_ACEOF 19665 19666fi 19667 19668 19669ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 19670case $ac_cv_c_uint8_t in #( 19671 no|yes) ;; #( 19672 *) 19673 19674$as_echo "#define _UINT8_T 1" >>confdefs.h 19675 19676 19677cat >>confdefs.h <<_ACEOF 19678#define uint8_t $ac_cv_c_uint8_t 19679_ACEOF 19680;; 19681 esac 19682 19683ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 19684case $ac_cv_c_uint16_t in #( 19685 no|yes) ;; #( 19686 *) 19687 19688 19689cat >>confdefs.h <<_ACEOF 19690#define uint16_t $ac_cv_c_uint16_t 19691_ACEOF 19692;; 19693 esac 19694 19695ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 19696case $ac_cv_c_uint32_t in #( 19697 no|yes) ;; #( 19698 *) 19699 19700$as_echo "#define _UINT32_T 1" >>confdefs.h 19701 19702 19703cat >>confdefs.h <<_ACEOF 19704#define uint32_t $ac_cv_c_uint32_t 19705_ACEOF 19706;; 19707 esac 19708 19709ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 19710case $ac_cv_c_uint64_t in #( 19711 no|yes) ;; #( 19712 *) 19713 19714$as_echo "#define _UINT64_T 1" >>confdefs.h 19715 19716 19717cat >>confdefs.h <<_ACEOF 19718#define uint64_t $ac_cv_c_uint64_t 19719_ACEOF 19720;; 19721 esac 19722 19723 19724 19725 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 19726if test "x$ac_cv_type_uintmax_t" = xyes; then : 19727 19728$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 19729 19730else 19731 test $ac_cv_type_unsigned_long_long_int = yes \ 19732 && ac_type='unsigned long long int' \ 19733 || ac_type='unsigned long int' 19734 19735cat >>confdefs.h <<_ACEOF 19736#define uintmax_t $ac_type 19737_ACEOF 19738 19739fi 19740 19741 19742 19743 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 19744if test "x$ac_cv_type_intptr_t" = xyes; then : 19745 19746$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 19747 19748else 19749 for ac_type in 'int' 'long int' 'long long int'; do 19750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19751/* end confdefs.h. */ 19752$ac_includes_default 19753int 19754main () 19755{ 19756static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 19757test_array [0] = 0; 19758return test_array [0]; 19759 19760 ; 19761 return 0; 19762} 19763_ACEOF 19764if ac_fn_c_try_compile "$LINENO"; then : 19765 19766cat >>confdefs.h <<_ACEOF 19767#define intptr_t $ac_type 19768_ACEOF 19769 19770 ac_type= 19771fi 19772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19773 test -z "$ac_type" && break 19774 done 19775fi 19776 19777 19778 19779 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 19780if test "x$ac_cv_type_uintptr_t" = xyes; then : 19781 19782$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 19783 19784else 19785 for ac_type in 'unsigned int' 'unsigned long int' \ 19786 'unsigned long long int'; do 19787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19788/* end confdefs.h. */ 19789$ac_includes_default 19790int 19791main () 19792{ 19793static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 19794test_array [0] = 0; 19795return test_array [0]; 19796 19797 ; 19798 return 0; 19799} 19800_ACEOF 19801if ac_fn_c_try_compile "$LINENO"; then : 19802 19803cat >>confdefs.h <<_ACEOF 19804#define uintptr_t $ac_type 19805_ACEOF 19806 19807 ac_type= 19808fi 19809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19810 test -z "$ac_type" && break 19811 done 19812fi 19813 19814 19815 19816## 19817# Other type checks: 19818## 19819 19820ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default" 19821if test "x$ac_cv_type_off64_t" = xyes; then : 19822 19823cat >>confdefs.h <<_ACEOF 19824#define HAVE_OFF64_T 1 19825_ACEOF 19826 19827 19828fi 19829 19830ac_fn_c_check_type "$LINENO" "nfds_t" "ac_cv_type_nfds_t" "#include <sys/poll.h> 19831" 19832if test "x$ac_cv_type_nfds_t" = xyes; then : 19833 19834cat >>confdefs.h <<_ACEOF 19835#define HAVE_NFDS_T 1 19836_ACEOF 19837 19838 19839fi 19840 19841 19842# Solaris specific checks 19843# (taken from Perl's configure script) 19844# 19845ac_fn_c_check_type "$LINENO" "Counter64" "ac_cv_type_Counter64" "#include <inet/mib2.h> 19846" 19847if test "x$ac_cv_type_Counter64" = xyes; then : 19848 19849cat >>confdefs.h <<_ACEOF 19850#define HAVE_COUNTER64 1 19851_ACEOF 19852 19853 19854fi 19855 19856ac_fn_c_check_type "$LINENO" "mib2_ipIfStatsEntry_t" "ac_cv_type_mib2_ipIfStatsEntry_t" "#include <inet/mib2.h> 19857" 19858if test "x$ac_cv_type_mib2_ipIfStatsEntry_t" = xyes; then : 19859 19860cat >>confdefs.h <<_ACEOF 19861#define HAVE_MIB2_IPIFSTATSENTRY_T 1 19862_ACEOF 19863 19864 19865fi 19866 19867 19868# N.B: The above checks could safely be moved to 19869# the later 'config_types' sub-script 19870# 19871 19872# Darwin: check whether or not struct in_ifaddr is available. 19873# 19874# 19875ac_fn_c_check_member "$LINENO" "struct in_ifaddr" "ia_subnetmask" "ac_cv_member_struct_in_ifaddr_ia_subnetmask" " 19876#ifdef HAVE_NETINET_IN_VAR_H 19877#include <netinet/in_var.h> 19878#endif 19879 19880" 19881if test "x$ac_cv_member_struct_in_ifaddr_ia_subnetmask" = xyes; then : 19882 19883cat >>confdefs.h <<_ACEOF 19884#define HAVE_STRUCT_IN_IFADDR_IA_SUBNETMASK 1 19885_ACEOF 19886 19887 19888fi 19889 19890 19891 19892## 19893# Determine the IPv6 stack type 19894## 19895 19896# These checks also set the LIBS/CFLAGS variables, 19897# which may be needed for subsequent function tests 19898# 19899 19900if test "x$enable_ipv6" = "xyes"; then 19901 v6lib=none 19902 v6trylibc=no 19903 19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 19905$as_echo_n "checking ipv6 stack type... " >&6; } 19906 for v6type in v6d toshiba kame zeta generic; do 19907 case $v6type in 19908 v6d) 19909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19910/* end confdefs.h. */ 19911 19912#include </usr/local/v6/include/sys/types.h> 19913#ifdef __V6D__ 19914yes 19915#endif 19916_ACEOF 19917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19918 $EGREP "yes" >/dev/null 2>&1; then : 19919 v6lib=v6; 19920 v6libdir=/usr/local/v6/lib; 19921 CFLAGS="-I/usr/local/v6/include $CFLAGS" 19922fi 19923rm -f conftest* 19924 19925 ;; 19926 toshiba) 19927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19928/* end confdefs.h. */ 19929 19930#include <sys/param.h> 19931#ifdef _TOSHIBA_INET6 19932yes 19933#endif 19934_ACEOF 19935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19936 $EGREP "yes" >/dev/null 2>&1; then : 19937 v6lib=inet6; 19938 v6libdir=/usr/local/v6/lib; 19939 CFLAGS="-DNETSNMP_ENABLE_IPV6 $CFLAGS" 19940fi 19941rm -f conftest* 19942 19943 ;; 19944 kame) 19945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19946/* end confdefs.h. */ 19947 19948#include <netinet/in.h> 19949#ifdef __KAME__ 19950yes 19951#endif 19952_ACEOF 19953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19954 $EGREP "yes" >/dev/null 2>&1; then : 19955 v6lib=inet6; 19956 v6libdir=/usr/local/v6/lib; 19957 v6trylibc=yes; 19958 CFLAGS="-DNETSNMP_ENABLE_IPV6 $CFLAGS" 19959fi 19960rm -f conftest* 19961 19962 ;; 19963 zeta) 19964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19965/* end confdefs.h. */ 19966 19967#include <sys/param.h> 19968#ifdef _ZETA_MINAMI_INET6 19969yes 19970#endif 19971_ACEOF 19972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19973 $EGREP "yes" >/dev/null 2>&1; then : 19974 v6lib=inet6; 19975 v6libdir=/usr/local/v6/lib; 19976 CFLAGS="-DNETSNMP_ENABLE_IPV6 $CFLAGS" 19977fi 19978rm -f conftest* 19979 19980 ;; 19981 generic) 19982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: postponed" >&5 19983$as_echo "postponed" >&6; } 19984 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_addr" "ac_cv_member_struct_sockaddr_in6_sin6_addr" " 19985#ifdef HAVE_WINSOCK2_H 19986#include <winsock2.h> 19987#ifdef HAVE_WS2TCPIP_H 19988#include <ws2tcpip.h> 19989#endif 19990#endif 19991$ac_includes_default 19992#ifdef HAVE_SYS_PARAM_H 19993#include <sys/param.h> 19994#endif 19995#ifdef HAVE_SYS_SOCKET_H 19996#include <sys/socket.h> 19997#endif 19998#ifdef HAVE_NETINET_IN_H 19999#include <netinet/in.h> 20000#endif 20001 20002" 20003if test "x$ac_cv_member_struct_sockaddr_in6_sin6_addr" = xyes; then : 20004 20005fi 20006 20007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 20008$as_echo_n "checking ipv6 stack type... " >&6; } 20009 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_addr" = "xyes"; then 20010 v6lib=dummy 20011 v6libdir=none 20012 v6trylibc=yes 20013 CFLAGS="-DNETSNMP_ENABLE_IPV6 $CFLAGS" 20014 fi 20015 ;; 20016 esac 20017 if test "$v6lib" != "none"; then 20018 break 20019 fi 20020 done 20021 20022 if test "$v6lib" != "none"; then 20023 if test -d $v6libdir -a -f $v6libdir/lib$v6lib.a; then 20024 LIBS="-L$v6libdir -l$v6lib $LIBS" 20025 enable_ipv6="yes" 20026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$v6type, $enable_ipv6, using lib$v6lib\"" >&5 20027$as_echo "\"$v6type, $enable_ipv6, using lib$v6lib\"" >&6; } 20028 elif test "$v6trylibc" = "yes"; then 20029 enable_ipv6="yes" 20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$v6type, $enable_ipv6, using libc\"" >&5 20031$as_echo "\"$v6type, $enable_ipv6, using libc\"" >&6; } 20032 else 20033 as_fn_error $? "no IPv6 library lib$v6lib.a found." "$LINENO" 5 20034 exit 1 20035 fi 20036 else 20037 v6type="unknown" 20038 enable_ipv6="no" 20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$v6type, $enable_ipv6\"" >&5 20040$as_echo "\"$v6type, $enable_ipv6\"" >&6; } 20041 fi 20042fi 20043 20044# -*- autoconf -*- 20045# 20046# Maybe add library extensions for thread mutex locking. 20047# 20048 20049if test "x$with_res_locks" = "xyes"; then 20050 20051$as_echo "#define NETSNMP_REENTRANT 1" >>confdefs.h 20052 20053 20054 case $target_os in 20055 20056 aix*) 20057 CC_RUNTIME_ARG="$CC_RUNTIME_ARG -lpthreads" 20058 ;; 20059 20060 *) 20061 ;; 20062 20063 esac 20064fi 20065 20066# 20067# Add platform-specific source files. 20068# 20069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for platform-specific source" >&5 20070$as_echo_n "checking for platform-specific source... " >&6; } 20071other_src_list="" 20072other_ftobjs_list="" 20073other_lobjs_list="" 20074other_objs_list="" 20075other_agentobjs="" 20076other_lagentobjs="" 20077other_ftagentobjs="" 20078other_trapd_objects="" 20079 20080# Win32 service code 20081if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc"; then 20082 other_src_list="$other_src_list winservice.c winservicerc.rc" 20083 other_objs_list="$other_objs_list winservice.o winservicerc.o" 20084 other_lobjs_list="$other_lobjs_list winservice.lo winservicerc.lo" 20085 other_ftobjs_list="$other_ftobjs_list winservice.ft winservicerc.ft" 20086 other_agentobjs="../snmplib/winservicerc.o" 20087 other_lagentobjs="../snmplib/winservicerc.lo" 20088 other_ftagentobjs="../snmplib/winservicerc.lo" 20089 other_trapd_objects="../snmplib/winservicerc.o" 20090fi 20091 20092# Win32 pipes 20093if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc"; then 20094 other_src_list="$other_src_list winpipe.c" 20095 other_objs_list="$other_objs_list winpipe.o" 20096 other_lobjs_list="$other_lobjs_list winpipe.lo" 20097 other_ftobjs_list="$other_ftobjs_list winpipe.ft" 20098fi 20099 20100# Linux systemd 20101if test "x$with_systemd" = "xyes"; then 20102 other_src_list="$other_src_list sd-daemon.c" 20103 other_objs_list="$other_objs_list sd-daemon.o" 20104 other_lobjs_list="$other_lobjs_list sd-daemon.lo" 20105 other_ftobjs_list="$other_ftobjs_list sd-daemon.ft" 20106fi 20107 20108 20109 20110 20111 20112 20113 20114 20115 20116 20117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $other_src_list $other_objs_list $other_lobjs_list" >&5 20118$as_echo "$other_src_list $other_objs_list $other_lobjs_list" >&6; } 20119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $other_agentobjs $other_lagentobjs $other_trapd_objects" >&5 20120$as_echo "$other_agentobjs $other_lagentobjs $other_trapd_objects" >&6; } 20121 20122# 20123# Create directory structure for build 20124# 20125if test ! -d include; then 20126 mkdir include 20127fi 20128if test ! -d include/net-snmp; then 20129 mkdir include/net-snmp 20130fi 20131if test ! -d include/net-snmp/agent; then 20132 mkdir include/net-snmp/agent 20133fi 20134if test ! -d include/net-snmp/library; then 20135 mkdir include/net-snmp/library 20136fi 20137if test ! -d include/ucd-snmp; then 20138 mkdir include/ucd-snmp 20139fi 20140 20141if test ! -d snmplib; then 20142 mkdir snmplib 20143fi 20144if test ! -d snmplib/transports ; then 20145 mkdir snmplib/transports 20146fi 20147 20148# 20149# Do transport module processing. 20150# 20151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for and configuring transport modules to use" >&5 20152$as_echo_n "checking for and configuring transport modules to use... " >&6; } 20153 20154# include the actual code checking 20155# -*- sh -*- 20156transport_src_list="" 20157transport_hdr_list="" 20158transport_def_list="" 20159transport_result_list="" 20160transport_add_list="" 20161new_with_transport_list=`echo $with_transports | $SED 's/,/ /g;'` 20162new_with_out_transport_list=`echo $with_out_transports | $SED 's/,/ /g;'` 20163 20164# set up the CPP command 20165MODULECPP="$CPP $CPPFLAGS $PARTIALTARGETFLAGS -I${srcdir} -I${srcdir}/include" 20166 20167# 20168# Add the default transports to the list 20169# 20170if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc"; then 20171 transport_default_list="UDP TCP Alias Callback" 20172else 20173 transport_default_list="UDP TCP Alias Unix Callback" 20174fi 20175if test "x$enable_ipv6" = "xyes"; then 20176 transport_default_list="UDPIPv6 TCPIPv6 $transport_default_list" 20177fi 20178for i in $transport_default_list; do 20179 if echo " $new_with_transport_list " | $GREP " $i " >/dev/null; then 20180 : 20181 else 20182 transport_add_list="$i $transport_add_list" 20183 fi 20184done 20185new_transport_list="$transport_add_list $new_with_transport_list" 20186 20187if test "x$ctor_header" = "x" ; then 20188 ctor_header="snmplib/transports/snmp_transport_inits.h" 20189fi 20190 20191echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $ctor_header 20192while test "x$new_transport_list" != "x"; do 20193 future_new_transport_list="" 20194 for i in $new_transport_list; do 20195 if echo " $new_with_out_transport_list " | $GREP " $i " >/dev/null; then 20196 true 20197 else 20198 if test "x$enable_ipv6" != "xyes"; then 20199 if test "x$i" = "xUDPIPv6" -o "x$i" = "xTCPIPv6"; then 20200 as_fn_error $? "IPv6 transports not available if IPv6 support is not enabled" "$LINENO" 5 20201 fi 20202 fi 20203 transport_src="transports/snmp"$i"Domain.c" 20204 transport_hdr="snmp"$i"Domain.h" 20205 rel_transport_src="snmplib/"$transport_src 20206 rel_transport_hdr="include/net-snmp/library/"$transport_hdr 20207 lc_i=`echo $i | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20208 ctor_fn="netsnmp_"$lc_i"_ctor" 20209 if test -f "$srcdir/$rel_transport_src"; then 20210 transport_result_list="$transport_result_list $i" 20211 transport_src_list="$transport_src $transport_src_list" 20212 if test -f "$srcdir/$rel_transport_hdr"; then 20213 transport_hdr_list="$transport_hdr $transport_hdr_list" 20214 fi 20215 transport_def=`echo $i | $SED 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 20216 transport_def_list="NETSNMP_TRANSPORT_"$transport_def"_DOMAIN $transport_def_list" 20217 else 20218 echo 20219 as_fn_error $? "Cannot find file $srcdir/$rel_transport_src to support SNMP transport domain $i." "$LINENO" 5 20220 fi 20221 20222 #--------------------- 20223 # build a pseudo include header that includes current config and 20224 # system symbols: 20225 rm -f conftest.$ac_ext module_tmp_header.h 20226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20227/* end confdefs.h. */ 20228 20229#include NETSNMP_SYSTEM_INCLUDE_FILE 20230#undef NETSNMP_MINIMAL_CODE 20231#define NET_SNMP_CONFIG_H 20232#undef config_require 20233#define config_require(foo) config_checkit_require(foo) 20234#undef config_error 20235#define config_error(foo) config_checkit_error(foo) 20236#include "$rel_transport_hdr" 20237_ACEOF 20238 mv conftest.$ac_ext module_tmp_header.h 20239 20240 # 20241 # check for dependencies using config_require() macro 20242 # 20243 sub_list=`$MODULECPP module_tmp_header.h | $GREP config_checkit_require | $SED 's/.*config_checkit_require *( *\(.*\) *).*/\1/'` 20244 if test "x$sub_list" != "x" ; then 20245 for j in $sub_list ; do 20246 if echo " $future_new_transport_list $new_transport_list " | $GREP " $j " > /dev/null ; then 20247 : 20248 else 20249 future_new_transport_list="$future_new_transport_list $j" 20250 fi 20251 done 20252 fi 20253 20254 # 20255 # check for errors using config_error() macro 20256 # 20257 error_list=`$MODULECPP module_tmp_header.h | $GREP config_checkit_error | $SED 's/.*config_checkit_error(\(.*\)).*/\1/g'` 20258 if test "x$error_list" != "x" ; then 20259 echo "" 20260 as_fn_error $? "$error_list" "$LINENO" 5 20261 fi 20262 20263 # 20264 # Check for needed constructor initialization routines to call 20265 # 20266 found=`grep $ctor_fn $srcdir/$rel_transport_src` 20267 if grep $ctor_fn $srcdir/$rel_transport_src > /dev/null ; then 20268 # we add them down below instead of here to make sure 20269 # config_require dependency constructors get called first. 20270 tr_init_list="$ctor_fn $tr_init_list" 20271 fi 20272 fi 20273 done # for each new transport 20274 new_transport_list="$future_new_transport_list" 20275done # while new transports exist 20276transport_obj_list=`echo " $transport_src_list " | $SED 's/\.c/\.o/g'` 20277transport_lobj_list=`echo " $transport_src_list " | $SED 's/\.c/\.lo/g'` 20278transport_ftobj_list=`echo " $transport_src_list " | $SED 's/\.c/\.ft/g'` 20279for i in $tr_init_list ; do 20280 echo "$i();" >> $ctor_header 20281done 20282 20283## win32 platforms require inet_ntop etc. 20284if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc" -o "x$PARTIALTARGETOS" = "xcygwin"; then 20285 if echo "$transport_def_list" | $GREP "IPV6" >/dev/null; then 20286 transport_obj_list="$transport_obj_list inet_ntop.o inet_pton.o" 20287 transport_lobj_list="$transport_lobj_list inet_ntop.lo inet_pton.lo" 20288 transport_ftobj_list="$transport_ftobj_list inet_ntop.ft inet_pton.ft" 20289 fi 20290fi 20291 20292if test "x$transport_result_list" = x ; then 20293 as_fn_error $? "No transports configured, at least one must be provided" "$LINENO" 5 20294fi 20295 20296 20297 20298 20299 20300 20301 20302for i in $transport_def_list; do 20303 cat >>confdefs.h <<_ACEOF 20304#define $i 1 20305_ACEOF 20306 20307done 20308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $transport_result_list." >&5 20309$as_echo "$transport_result_list." >&6; } 20310 20311 cat >> configure-summary << EOF 20312 Network transport support: $transport_result_list 20313EOF 20314 20315 20316# cleanup 20317rm -f module_tmp_header.h 20318 20319# 20320# Security modules to use 20321# 20322 20323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for security modules to use" >&5 20324$as_echo_n "checking for security modules to use... " >&6; } 20325# -*- sh -*- 20326security_def_list="usm" 20327security_src_list="" 20328security_obj_list="" 20329security_lobj_list="" 20330security_ftobj_list="" 20331security_mod_list=" " 20332 20333new_with_security= 20334new_with_out_security=`echo $with_out_security_modules | tr , ' '` 20335 20336# Assign additional security modules 20337for i in `echo $with_security_modules | tr , ' '`; do 20338 if echo " $new_with_out_security " | $GREP " $i " > /dev/null; then 20339 echo 20340 as_fn_error $? "security module conflict - $i both included and excluded" "$LINENO" 5 20341 elif echo " $new_with_security " | $GREP " $i " > /dev/null ; then 20342 : # Double define, ignore 20343 else 20344 new_with_security="$new_with_security $i" 20345 fi 20346done 20347 20348# Add default security modules 20349for i in $security_def_list; do 20350 if echo " $new_with_out_security " | $GREP " $i " > /dev/null; then 20351 : # Excluded, ignore 20352 elif echo " $new_with_security " | $GREP " $i " > /dev/null ; then 20353 : # Double define, ignore 20354 else 20355 new_with_security="$new_with_security $i" 20356 fi 20357done 20358 20359# Generate output files 20360: ${security_init_file:='snmplib/snmpsm_init.h'} 20361: ${security_shutdown_file:='snmplib/snmpsm_shutdown.h'} 20362: ${security_incl_file:='include/net-snmp/library/snmpv3-security-includes.h'} 20363 20364echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $security_init_file 20365echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $security_shutdown_file 20366echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $security_incl_file 20367 20368for i in $new_with_security; do 20369 cfile="snmp"$i".c" 20370 hfile="snmp"$i".h" 20371 20372 # make sure support exists for it 20373 if test -f $srcdir"/snmplib/"$cfile -a -f $srcdir"/include/net-snmp/library/"$hfile; then 20374 : 20375 else 20376 echo 20377 as_fn_error $? "No such security module: $i / $cfile / $hfile" "$LINENO" 5 20378 fi 20379 20380 # define a bunch of stuff to enable it 20381 security_mod_list="${security_mod_list} $i" 20382 security_src_list="$security_src_list $cfile" 20383 security_src_list="$security_src_list $cfile" 20384 security_hdr_list="$security_hdr_list $hfile" 20385 security_obj_list="$security_obj_list snmp"$i".o" 20386 security_lobj_list="$security_lobj_list snmp"$i".lo" 20387 security_ftobj_list="$security_ftobj_list snmp"$i".ft" 20388 echo "init_"$i"();" >> $security_init_file 20389 echo "shutdown_"$i"();" >> $security_shutdown_file 20390 echo "#include <net-snmp/library/$hfile>" >> $security_incl_file 20391 def_name="`$as_echo "NETSNMP_SECMOD_$i" | $as_tr_cpp`" 20392 cat >>confdefs.h <<_ACEOF 20393#define $def_name 1 20394_ACEOF 20395 20396done 20397 20398 20399 20400 20401 20402 20403 20404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $new_with_security" >&5 20405$as_echo "$new_with_security" >&6; } 20406 20407 cat >> configure-summary << EOF 20408 SNMPv3 Security Modules: $new_with_security 20409EOF 20410 20411 20412# 20413# Handle the special case of KSM to see which crypto API we support 20414# 20415 20416rebuilt_new_with_security= 20417already_checked_krb5=no 20418 20419netsnmp_save_LIBS=$LIBS 20420CRYPTO_LIBS="" 20421 20422for sec in $new_with_security 20423do 20424 if test "x$sec" = "xksm"; then 20425 if test "xyes" = "x$already_checked_krb5"; then 20426 continue 20427 else 20428 already_checked_krb5=yes 20429 fi 20430 fi 20431 20432 if test x$sec != xksm; then 20433 rebuilt_new_with_security="$rebuilt_new_with_security $sec" 20434 else 20435 if test no = $trykrb5; then 20436 { $as_echo "$as_me:${as_lineno-$LINENO}: configured not to use krb5. disabling ksm" >&5 20437$as_echo "$as_me: configured not to use krb5. disabling ksm" >&6;} 20438 continue 20439 fi 20440 20441 # Extract the first word of "krb5-config", so it can be a program name with args. 20442set dummy krb5-config; ac_word=$2 20443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20444$as_echo_n "checking for $ac_word... " >&6; } 20445if ${ac_cv_path_krb5_config+:} false; then : 20446 $as_echo_n "(cached) " >&6 20447else 20448 case $krb5_config in 20449 [\\/]* | ?:[\\/]*) 20450 ac_cv_path_krb5_config="$krb5_config" # Let the user override the test with a path. 20451 ;; 20452 *) 20453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20454as_dummy="$krb5path/bin:$PATH" 20455for as_dir in $as_dummy 20456do 20457 IFS=$as_save_IFS 20458 test -z "$as_dir" && as_dir=. 20459 for ac_exec_ext in '' $ac_executable_extensions; do 20460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20461 ac_cv_path_krb5_config="$as_dir/$ac_word$ac_exec_ext" 20462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20463 break 2 20464 fi 20465done 20466 done 20467IFS=$as_save_IFS 20468 20469 test -z "$ac_cv_path_krb5_config" && ac_cv_path_krb5_config="no" 20470 ;; 20471esac 20472fi 20473krb5_config=$ac_cv_path_krb5_config 20474if test -n "$krb5_config"; then 20475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_config" >&5 20476$as_echo "$krb5_config" >&6; } 20477else 20478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20479$as_echo "no" >&6; } 20480fi 20481 20482 20483 20484 if test no != $krb5_config; then 20485 20486 CPPFLAGS="$CPPFLAGS `$krb5_config --cflags`" 20487 CRYPTO_LIBS="$CRYPTO_LIBS `$krb5_config --libs | 20488 $SED 's/-flto=[^[:blank:]]*//g'`" 20489 20490 elif test $krb5path != no; then 20491 20492 if test "x$krb5path" != x -a -d $krb5path; then 20493 if test -d $krb5path/lib; then 20494 LDFLAGS="-L$krb5path/lib $LDFLAGS" 20495 fi 20496 if test -d $krb5path/include; then 20497 CPPFLAGS="-I$krb5path/include $CPPFLAGS" 20498 fi 20499 fi 20500 20501 else 20502 20503 if test "x/usr/kerberos" != x -a -d /usr/kerberos; then 20504 if test -d /usr/kerberos/lib; then 20505 LDFLAGS="-L/usr/kerberos/lib $LDFLAGS" 20506 fi 20507 if test -d /usr/kerberos/include; then 20508 CPPFLAGS="-I/usr/kerberos/include $CPPFLAGS" 20509 fi 20510 fi 20511 20512 fi 20513 20514 20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5 20516$as_echo_n "checking for library containing krb5_init_context... " >&6; } 20517if ${netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS+:} false; then : 20518 $as_echo_n "(cached) " >&6 20519else 20520 netsnmp_func_search_save_LIBS="$LIBS" 20521 netsnmp_target_val="$CRYPTO_LIBS" 20522 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 20523 netsnmp_result=no 20524 LIBS="${netsnmp_temp_LIBS}" 20525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20526/* end confdefs.h. */ 20527 20528/* Override any GCC internal prototype to avoid an error. 20529 Use char because int might match the return type of a GCC 20530 builtin and then its argument prototype would still apply. */ 20531#ifdef __cplusplus 20532extern "C" 20533#endif 20534char krb5_init_context (); 20535int 20536main () 20537{ 20538return krb5_init_context (); 20539 ; 20540 return 0; 20541} 20542_ACEOF 20543if ac_fn_c_try_link "$LINENO"; then : 20544 netsnmp_result="none required" 20545else 20546 for netsnmp_cur_lib in krb5 ; do 20547 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 20548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20549/* end confdefs.h. */ 20550 20551/* Override any GCC internal prototype to avoid an error. 20552 Use char because int might match the return type of a GCC 20553 builtin and then its argument prototype would still apply. */ 20554#ifdef __cplusplus 20555extern "C" 20556#endif 20557char krb5_init_context (); 20558int 20559main () 20560{ 20561return krb5_init_context (); 20562 ; 20563 return 0; 20564} 20565_ACEOF 20566if ac_fn_c_try_link "$LINENO"; then : 20567 netsnmp_result=-l${netsnmp_cur_lib} 20568 break 20569fi 20570rm -f core conftest.err conftest.$ac_objext \ 20571 conftest$ac_exeext conftest.$ac_ext 20572 done 20573fi 20574rm -f core conftest.err conftest.$ac_objext \ 20575 conftest$ac_exeext conftest.$ac_ext 20576 LIBS="${netsnmp_func_search_save_LIBS}" 20577 netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS="${netsnmp_result}" 20578fi 20579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS" >&5 20580$as_echo "$netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS" >&6; } 20581 if test "x${netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS}" != "xno" ; then 20582 if test "x${netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS}" != "xnone required" ; then 20583 CRYPTO_LIBS="${netsnmp_result} ${netsnmp_target_val}" 20584 fi 20585 ac_cv_have_krb5=yes 20586 else 20587 ac_cv_have_krb5=no 20588 fi 20589 20590 20591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing error_message" >&5 20592$as_echo_n "checking for library containing error_message... " >&6; } 20593if ${netsnmp_cv_func_error_message_CRYPTO_LIBS+:} false; then : 20594 $as_echo_n "(cached) " >&6 20595else 20596 netsnmp_func_search_save_LIBS="$LIBS" 20597 netsnmp_target_val="$CRYPTO_LIBS" 20598 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 20599 netsnmp_result=no 20600 LIBS="${netsnmp_temp_LIBS}" 20601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20602/* end confdefs.h. */ 20603 20604/* Override any GCC internal prototype to avoid an error. 20605 Use char because int might match the return type of a GCC 20606 builtin and then its argument prototype would still apply. */ 20607#ifdef __cplusplus 20608extern "C" 20609#endif 20610char error_message (); 20611int 20612main () 20613{ 20614return error_message (); 20615 ; 20616 return 0; 20617} 20618_ACEOF 20619if ac_fn_c_try_link "$LINENO"; then : 20620 netsnmp_result="none required" 20621else 20622 for netsnmp_cur_lib in com_err ; do 20623 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 20624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20625/* end confdefs.h. */ 20626 20627/* Override any GCC internal prototype to avoid an error. 20628 Use char because int might match the return type of a GCC 20629 builtin and then its argument prototype would still apply. */ 20630#ifdef __cplusplus 20631extern "C" 20632#endif 20633char error_message (); 20634int 20635main () 20636{ 20637return error_message (); 20638 ; 20639 return 0; 20640} 20641_ACEOF 20642if ac_fn_c_try_link "$LINENO"; then : 20643 netsnmp_result=-l${netsnmp_cur_lib} 20644 break 20645fi 20646rm -f core conftest.err conftest.$ac_objext \ 20647 conftest$ac_exeext conftest.$ac_ext 20648 done 20649fi 20650rm -f core conftest.err conftest.$ac_objext \ 20651 conftest$ac_exeext conftest.$ac_ext 20652 LIBS="${netsnmp_func_search_save_LIBS}" 20653 netsnmp_cv_func_error_message_CRYPTO_LIBS="${netsnmp_result}" 20654fi 20655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_error_message_CRYPTO_LIBS" >&5 20656$as_echo "$netsnmp_cv_func_error_message_CRYPTO_LIBS" >&6; } 20657 if test "x${netsnmp_cv_func_error_message_CRYPTO_LIBS}" != "xno" ; then 20658 if test "x${netsnmp_cv_func_error_message_CRYPTO_LIBS}" != "xnone required" ; then 20659 CRYPTO_LIBS="${netsnmp_result} ${netsnmp_target_val}" 20660 fi 20661 20662 20663 fi 20664 20665 20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5" >&5 20667$as_echo_n "checking for krb5... " >&6; } 20668 if test $ac_cv_have_krb5 = no; then 20669 if test "x$askedkrb5" = "xyes"; then 20670 as_fn_error $? "Asked to use krb5 but I couldn't find it." "$LINENO" 5 20671 fi 20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. disabling ksm" >&5 20673$as_echo "no. disabling ksm" >&6; } 20674 continue 20675 fi 20676 20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20678$as_echo "yes" >&6; } 20679 rebuilt_new_with_security="$rebuilt_new_with_security ksm" 20680 20681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heimdal" >&5 20682$as_echo_n "checking for heimdal... " >&6; } 20683 if ${ac_cv_heimdal+:} false; then : 20684 $as_echo_n "(cached) " >&6 20685else 20686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20687/* end confdefs.h. */ 20688#include <krb5.h> 20689int 20690main () 20691{ 20692const char *v = heimdal_version; 20693 ; 20694 return 0; 20695} 20696_ACEOF 20697if ac_fn_c_try_compile "$LINENO"; then : 20698 ac_cv_heimdal=yes 20699else 20700 ac_cv_heimdal=no 20701 20702fi 20703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20704fi 20705 20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_heimdal" >&5 20707$as_echo "$ac_cv_heimdal" >&6; } 20708 if test $ac_cv_heimdal = yes; then 20709 20710$as_echo "#define NETSNMP_USE_KERBEROS_HEIMDAL 1" >>confdefs.h 20711 20712 if test no = $krb5_config; then 20713 CRYPTO_LIBS="$CRYPTO_LIBS -lkrb5 -lasn1 -lcom_err -lroken" 20714 fi 20715 elif test no = $krb5_config; then 20716 CRYPTO_LIBS="$CRYPTO_LIBS -lkrb5 -lcom_err" 20717 fi 20718 20719 if ${ac_cv_NETSNMP_USE_KERBEROS_MIT+:} false; then : 20720 $as_echo_n "(cached) " >&6 20721else 20722 20723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5 20724$as_echo_n "checking for library containing krb5_init_context... " >&6; } 20725if ${netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS+:} false; then : 20726 $as_echo_n "(cached) " >&6 20727else 20728 netsnmp_func_search_save_LIBS="$LIBS" 20729 netsnmp_target_val="$CRYPTO_LIBS" 20730 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 20731 netsnmp_result=no 20732 LIBS="${netsnmp_temp_LIBS}" 20733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20734/* end confdefs.h. */ 20735 20736/* Override any GCC internal prototype to avoid an error. 20737 Use char because int might match the return type of a GCC 20738 builtin and then its argument prototype would still apply. */ 20739#ifdef __cplusplus 20740extern "C" 20741#endif 20742char krb5_init_context (); 20743int 20744main () 20745{ 20746return krb5_init_context (); 20747 ; 20748 return 0; 20749} 20750_ACEOF 20751if ac_fn_c_try_link "$LINENO"; then : 20752 netsnmp_result="none required" 20753else 20754 for netsnmp_cur_lib in k5crypto ; do 20755 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 20756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20757/* end confdefs.h. */ 20758 20759/* Override any GCC internal prototype to avoid an error. 20760 Use char because int might match the return type of a GCC 20761 builtin and then its argument prototype would still apply. */ 20762#ifdef __cplusplus 20763extern "C" 20764#endif 20765char krb5_init_context (); 20766int 20767main () 20768{ 20769return krb5_init_context (); 20770 ; 20771 return 0; 20772} 20773_ACEOF 20774if ac_fn_c_try_link "$LINENO"; then : 20775 netsnmp_result=-l${netsnmp_cur_lib} 20776 break 20777fi 20778rm -f core conftest.err conftest.$ac_objext \ 20779 conftest$ac_exeext conftest.$ac_ext 20780 done 20781fi 20782rm -f core conftest.err conftest.$ac_objext \ 20783 conftest$ac_exeext conftest.$ac_ext 20784 LIBS="${netsnmp_func_search_save_LIBS}" 20785 netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS="${netsnmp_result}" 20786fi 20787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS" >&5 20788$as_echo "$netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS" >&6; } 20789 if test "x${netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS}" != "xno" ; then 20790 if test "x${netsnmp_cv_func_krb5_init_context_CRYPTO_LIBS}" != "xnone required" ; then 20791 CRYPTO_LIBS="${netsnmp_result} ${netsnmp_target_val}" 20792 fi 20793 ac_cv_NETSNMP_USE_KERBEROS_MIT=yes 20794 else 20795 ac_cv_NETSNMP_USE_KERBEROS_MIT=no 20796 fi 20797 20798 20799fi 20800 20801 20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_c_keyed_checksum_types" >&5 20803$as_echo_n "checking for library containing krb5_c_keyed_checksum_types... " >&6; } 20804if ${netsnmp_cv_func_krb5_c_keyed_checksum_types_CRYPTO_LIBS+:} false; then : 20805 $as_echo_n "(cached) " >&6 20806else 20807 netsnmp_func_search_save_LIBS="$LIBS" 20808 netsnmp_target_val="$CRYPTO_LIBS" 20809 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 20810 netsnmp_result=no 20811 LIBS="${netsnmp_temp_LIBS}" 20812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20813/* end confdefs.h. */ 20814 20815/* Override any GCC internal prototype to avoid an error. 20816 Use char because int might match the return type of a GCC 20817 builtin and then its argument prototype would still apply. */ 20818#ifdef __cplusplus 20819extern "C" 20820#endif 20821char krb5_c_keyed_checksum_types (); 20822int 20823main () 20824{ 20825return krb5_c_keyed_checksum_types (); 20826 ; 20827 return 0; 20828} 20829_ACEOF 20830if ac_fn_c_try_link "$LINENO"; then : 20831 netsnmp_result="none required" 20832else 20833 for netsnmp_cur_lib in k5crypto ; do 20834 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 20835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20836/* end confdefs.h. */ 20837 20838/* Override any GCC internal prototype to avoid an error. 20839 Use char because int might match the return type of a GCC 20840 builtin and then its argument prototype would still apply. */ 20841#ifdef __cplusplus 20842extern "C" 20843#endif 20844char krb5_c_keyed_checksum_types (); 20845int 20846main () 20847{ 20848return krb5_c_keyed_checksum_types (); 20849 ; 20850 return 0; 20851} 20852_ACEOF 20853if ac_fn_c_try_link "$LINENO"; then : 20854 netsnmp_result=-l${netsnmp_cur_lib} 20855 break 20856fi 20857rm -f core conftest.err conftest.$ac_objext \ 20858 conftest$ac_exeext conftest.$ac_ext 20859 done 20860fi 20861rm -f core conftest.err conftest.$ac_objext \ 20862 conftest$ac_exeext conftest.$ac_ext 20863 LIBS="${netsnmp_func_search_save_LIBS}" 20864 netsnmp_cv_func_krb5_c_keyed_checksum_types_CRYPTO_LIBS="${netsnmp_result}" 20865fi 20866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_krb5_c_keyed_checksum_types_CRYPTO_LIBS" >&5 20867$as_echo "$netsnmp_cv_func_krb5_c_keyed_checksum_types_CRYPTO_LIBS" >&6; } 20868 if test "x${netsnmp_cv_func_krb5_c_keyed_checksum_types_CRYPTO_LIBS}" != "xno" ; then 20869 if test "x${netsnmp_cv_func_krb5_c_keyed_checksum_types_CRYPTO_LIBS}" != "xnone required" ; then 20870 CRYPTO_LIBS="${netsnmp_result} ${netsnmp_target_val}" 20871 fi 20872 20873 20874 fi 20875 20876 20877 ac_fn_c_check_member "$LINENO" "krb5_keyblock" "enctype" "ac_cv_member_krb5_keyblock_enctype" "#include <krb5.h> 20878" 20879if test "x$ac_cv_member_krb5_keyblock_enctype" = xyes; then : 20880 20881cat >>confdefs.h <<_ACEOF 20882#define HAVE_KRB5_KEYBLOCK_ENCTYPE 1 20883_ACEOF 20884 20885 20886else 20887 ac_cv_NETSNMP_USE_KERBEROS_MIT=no 20888fi 20889 20890 20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see which crypto API we need to use" >&5 20892$as_echo_n "checking to see which crypto API we need to use... " >&6; } 20893 if test yes = $ac_cv_NETSNMP_USE_KERBEROS_MIT; then 20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: new MIT crypto API" >&5 20895$as_echo "new MIT crypto API" >&6; } 20896 20897$as_echo "#define NETSNMP_USE_KERBEROS_MIT 1" >>confdefs.h 20898 20899 else 20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: old MIT crypto API" >&5 20901$as_echo "old MIT crypto API" >&6; } 20902 fi 20903 LIBS="$CRYPTO_LIBS $netsnmp_save_LIBS" 20904 for ac_func in krb5_auth_con_getsendsubkey krb5_auth_con_getrecvsubkey 20905do : 20906 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20907ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20908if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20909 cat >>confdefs.h <<_ACEOF 20910#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20911_ACEOF 20912 20913fi 20914done 20915 20916 fi 20917done 20918 20919LNETSNMPLIBS="$LNETSNMPLIBS $CRYPTO_LIBS" 20920LIBS=$netsnmp_save_LIBS 20921 20922new_with_security=$rebuilt_new_with_security 20923 20924# 20925# Detect lm_sensors version 20926# 20927if test "x$ac_cv_header_sensors_sensors_h" = "xyes"; then 20928 ac_fn_c_check_decl "$LINENO" "sensors_get_all_subfeatures" "ac_cv_have_decl_sensors_get_all_subfeatures" "#include <sensors/sensors.h> 20929" 20930if test "x$ac_cv_have_decl_sensors_get_all_subfeatures" = xyes; then : 20931 ac_have_decl=1 20932else 20933 ac_have_decl=0 20934fi 20935 20936cat >>confdefs.h <<_ACEOF 20937#define HAVE_DECL_SENSORS_GET_ALL_SUBFEATURES $ac_have_decl 20938_ACEOF 20939if test $ac_have_decl = 1; then : 20940 20941$as_echo "#define NETSNMP_USE_SENSORS_V3 1" >>confdefs.h 20942 20943fi 20944 20945fi 20946 20947cat >confcache <<\_ACEOF 20948# This file is a shell script that caches the results of configure 20949# tests run on this system so they can be shared between configure 20950# scripts and configure runs, see configure's option --config-cache. 20951# It is not useful on other systems. If it contains results you don't 20952# want to keep, you may remove or edit it. 20953# 20954# config.status only pays attention to the cache file if you give it 20955# the --recheck option to rerun configure. 20956# 20957# `ac_cv_env_foo' variables (set or unset) will be overridden when 20958# loading this file, other *unset* `ac_cv_foo' will be assigned the 20959# following values. 20960 20961_ACEOF 20962 20963# The following way of writing the cache mishandles newlines in values, 20964# but we know of no workaround that is simple, portable, and efficient. 20965# So, we kill variables containing newlines. 20966# Ultrix sh set writes to stderr and can't be redirected directly, 20967# and sets the high bit in the cache file unless we assign to the vars. 20968( 20969 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20970 eval ac_val=\$$ac_var 20971 case $ac_val in #( 20972 *${as_nl}*) 20973 case $ac_var in #( 20974 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20975$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20976 esac 20977 case $ac_var in #( 20978 _ | IFS | as_nl) ;; #( 20979 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20980 *) { eval $ac_var=; unset $ac_var;} ;; 20981 esac ;; 20982 esac 20983 done 20984 20985 (set) 2>&1 | 20986 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20987 *${as_nl}ac_space=\ *) 20988 # `set' does not quote correctly, so add quotes: double-quote 20989 # substitution turns \\\\ into \\, and sed turns \\ into \. 20990 sed -n \ 20991 "s/'/'\\\\''/g; 20992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20993 ;; #( 20994 *) 20995 # `set' quotes correctly as required by POSIX, so do not add quotes. 20996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20997 ;; 20998 esac | 20999 sort 21000) | 21001 sed ' 21002 /^ac_cv_env_/b end 21003 t clear 21004 :clear 21005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21006 t end 21007 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21008 :end' >>confcache 21009if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21010 if test -w "$cache_file"; then 21011 if test "x$cache_file" != "x/dev/null"; then 21012 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21013$as_echo "$as_me: updating cache $cache_file" >&6;} 21014 if test ! -f "$cache_file" || test -h "$cache_file"; then 21015 cat confcache >"$cache_file" 21016 else 21017 case $cache_file in #( 21018 */* | ?:*) 21019 mv -f confcache "$cache_file"$$ && 21020 mv -f "$cache_file"$$ "$cache_file" ;; #( 21021 *) 21022 mv -f confcache "$cache_file" ;; 21023 esac 21024 fi 21025 fi 21026 else 21027 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21028$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21029 fi 21030fi 21031rm -f confcache 21032# -*- autoconf -*- 21033######################################### 21034## 21035# Checks for libraries that are run 21036# before the agent module tests. 21037## 21038######################################### 21039 21040 21041## 21042# RPM checks 21043# 21044## 21045for ac_header in rpm/rpmlib.h rpm/header.h 21046do : 21047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21048ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21049if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21050 cat >>confdefs.h <<_ACEOF 21051#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21052_ACEOF 21053 21054fi 21055 21056done 21057 21058 21059ac_fn_c_check_header_mongrel "$LINENO" "rpm/rpmlib.h" "ac_cv_header_rpm_rpmlib_h" "$ac_includes_default" 21060if test "x$ac_cv_header_rpm_rpmlib_h" = xyes; then : 21061 rpmlib_h=yes 21062else 21063 rpmlib_h=no 21064fi 21065 21066 21067ac_fn_c_check_header_mongrel "$LINENO" "rpm/header.h" "ac_cv_header_rpm_header_h" "$ac_includes_default" 21068if test "x$ac_cv_header_rpm_header_h" = xyes; then : 21069 rpmheader_h=yes 21070else 21071 rpmheader_h=no 21072fi 21073 21074 21075 21076if test "x$rpmheader_h" = "xno" -o "x$rpmlib_h" = "xno" ; then 21077 if test "x$with_rpm" = "xyes" ; then 21078 as_fn_error $? "Could not find either the RPM header files needed and was specifically asked to use RPM support" "$LINENO" 5 21079 else 21080 with_rpm=no 21081 fi 21082fi 21083 21084# 21085# rpm libraries only needed for the host resources mib software 21086# installed tables (on linux in particular) 21087# 21088if test "x$with_rpm" != "xno"; then 21089 # ARG. RPM is a real pain. 21090 # FWIW librpm.la, librpmio.la, and libpopt.la have correct dependencies. 21091 _rpmlibs="" 21092 21093 # rpm-4.0.x needs rpmio. 21094 21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rpmGetPath" >&5 21096$as_echo_n "checking for library containing rpmGetPath... " >&6; } 21097if ${netsnmp_cv_func_rpmGetPath__rpmlibs+:} false; then : 21098 $as_echo_n "(cached) " >&6 21099else 21100 netsnmp_func_search_save_LIBS="$LIBS" 21101 netsnmp_target_val="$_rpmlibs" 21102 netsnmp_temp_LIBS="${netsnmp_target_val} $LMIBLIBS ${LIBS}" 21103 netsnmp_result=no 21104 LIBS="${netsnmp_temp_LIBS}" 21105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21106/* end confdefs.h. */ 21107 21108/* Override any GCC internal prototype to avoid an error. 21109 Use char because int might match the return type of a GCC 21110 builtin and then its argument prototype would still apply. */ 21111#ifdef __cplusplus 21112extern "C" 21113#endif 21114char rpmGetPath (); 21115int 21116main () 21117{ 21118return rpmGetPath (); 21119 ; 21120 return 0; 21121} 21122_ACEOF 21123if ac_fn_c_try_link "$LINENO"; then : 21124 netsnmp_result="none required" 21125else 21126 for netsnmp_cur_lib in rpmio ; do 21127 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 21128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21129/* end confdefs.h. */ 21130 21131/* Override any GCC internal prototype to avoid an error. 21132 Use char because int might match the return type of a GCC 21133 builtin and then its argument prototype would still apply. */ 21134#ifdef __cplusplus 21135extern "C" 21136#endif 21137char rpmGetPath (); 21138int 21139main () 21140{ 21141return rpmGetPath (); 21142 ; 21143 return 0; 21144} 21145_ACEOF 21146if ac_fn_c_try_link "$LINENO"; then : 21147 netsnmp_result=-l${netsnmp_cur_lib} 21148 break 21149fi 21150rm -f core conftest.err conftest.$ac_objext \ 21151 conftest$ac_exeext conftest.$ac_ext 21152 done 21153fi 21154rm -f core conftest.err conftest.$ac_objext \ 21155 conftest$ac_exeext conftest.$ac_ext 21156 LIBS="${netsnmp_func_search_save_LIBS}" 21157 netsnmp_cv_func_rpmGetPath__rpmlibs="${netsnmp_result}" 21158fi 21159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_rpmGetPath__rpmlibs" >&5 21160$as_echo "$netsnmp_cv_func_rpmGetPath__rpmlibs" >&6; } 21161 if test "x${netsnmp_cv_func_rpmGetPath__rpmlibs}" != "xno" ; then 21162 if test "x${netsnmp_cv_func_rpmGetPath__rpmlibs}" != "xnone required" ; then 21163 _rpmlibs="${netsnmp_result} ${netsnmp_target_val}" 21164 fi 21165 21166 21167 fi 21168 21169 21170 # rpm-4.0.3 librpmdb actually contains what we need. 21171 21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rpmdbOpen" >&5 21173$as_echo_n "checking for library containing rpmdbOpen... " >&6; } 21174if ${netsnmp_cv_func_rpmdbOpen__rpmlibs+:} false; then : 21175 $as_echo_n "(cached) " >&6 21176else 21177 netsnmp_func_search_save_LIBS="$LIBS" 21178 netsnmp_target_val="$_rpmlibs" 21179 netsnmp_temp_LIBS="${netsnmp_target_val} $LMIBLIBS ${LIBS}" 21180 netsnmp_result=no 21181 LIBS="${netsnmp_temp_LIBS}" 21182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21183/* end confdefs.h. */ 21184 21185/* Override any GCC internal prototype to avoid an error. 21186 Use char because int might match the return type of a GCC 21187 builtin and then its argument prototype would still apply. */ 21188#ifdef __cplusplus 21189extern "C" 21190#endif 21191char rpmdbOpen (); 21192int 21193main () 21194{ 21195return rpmdbOpen (); 21196 ; 21197 return 0; 21198} 21199_ACEOF 21200if ac_fn_c_try_link "$LINENO"; then : 21201 netsnmp_result="none required" 21202else 21203 for netsnmp_cur_lib in rpmdb ; do 21204 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 21205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21206/* end confdefs.h. */ 21207 21208/* Override any GCC internal prototype to avoid an error. 21209 Use char because int might match the return type of a GCC 21210 builtin and then its argument prototype would still apply. */ 21211#ifdef __cplusplus 21212extern "C" 21213#endif 21214char rpmdbOpen (); 21215int 21216main () 21217{ 21218return rpmdbOpen (); 21219 ; 21220 return 0; 21221} 21222_ACEOF 21223if ac_fn_c_try_link "$LINENO"; then : 21224 netsnmp_result=-l${netsnmp_cur_lib} 21225 break 21226fi 21227rm -f core conftest.err conftest.$ac_objext \ 21228 conftest$ac_exeext conftest.$ac_ext 21229 done 21230fi 21231rm -f core conftest.err conftest.$ac_objext \ 21232 conftest$ac_exeext conftest.$ac_ext 21233 LIBS="${netsnmp_func_search_save_LIBS}" 21234 netsnmp_cv_func_rpmdbOpen__rpmlibs="${netsnmp_result}" 21235fi 21236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_rpmdbOpen__rpmlibs" >&5 21237$as_echo "$netsnmp_cv_func_rpmdbOpen__rpmlibs" >&6; } 21238 if test "x${netsnmp_cv_func_rpmdbOpen__rpmlibs}" != "xno" ; then 21239 if test "x${netsnmp_cv_func_rpmdbOpen__rpmlibs}" != "xnone required" ; then 21240 _rpmlibs="${netsnmp_result} ${netsnmp_target_val}" 21241 fi 21242 21243 21244 fi 21245 21246 # now check for rpm using the appropriate libraries. 21247 21248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rpmReadConfigFiles" >&5 21249$as_echo_n "checking for library containing rpmReadConfigFiles... " >&6; } 21250if ${netsnmp_cv_func_rpmReadConfigFiles__rpmlibs+:} false; then : 21251 $as_echo_n "(cached) " >&6 21252else 21253 netsnmp_func_search_save_LIBS="$LIBS" 21254 netsnmp_target_val="$_rpmlibs" 21255 netsnmp_temp_LIBS="${netsnmp_target_val} $LMIBLIBS ${LIBS}" 21256 netsnmp_result=no 21257 LIBS="${netsnmp_temp_LIBS}" 21258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21259/* end confdefs.h. */ 21260 21261/* Override any GCC internal prototype to avoid an error. 21262 Use char because int might match the return type of a GCC 21263 builtin and then its argument prototype would still apply. */ 21264#ifdef __cplusplus 21265extern "C" 21266#endif 21267char rpmReadConfigFiles (); 21268int 21269main () 21270{ 21271return rpmReadConfigFiles (); 21272 ; 21273 return 0; 21274} 21275_ACEOF 21276if ac_fn_c_try_link "$LINENO"; then : 21277 netsnmp_result="none required" 21278else 21279 for netsnmp_cur_lib in rpm ; do 21280 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 21281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21282/* end confdefs.h. */ 21283 21284/* Override any GCC internal prototype to avoid an error. 21285 Use char because int might match the return type of a GCC 21286 builtin and then its argument prototype would still apply. */ 21287#ifdef __cplusplus 21288extern "C" 21289#endif 21290char rpmReadConfigFiles (); 21291int 21292main () 21293{ 21294return rpmReadConfigFiles (); 21295 ; 21296 return 0; 21297} 21298_ACEOF 21299if ac_fn_c_try_link "$LINENO"; then : 21300 netsnmp_result=-l${netsnmp_cur_lib} 21301 break 21302fi 21303rm -f core conftest.err conftest.$ac_objext \ 21304 conftest$ac_exeext conftest.$ac_ext 21305 done 21306fi 21307rm -f core conftest.err conftest.$ac_objext \ 21308 conftest$ac_exeext conftest.$ac_ext 21309 LIBS="${netsnmp_func_search_save_LIBS}" 21310 netsnmp_cv_func_rpmReadConfigFiles__rpmlibs="${netsnmp_result}" 21311fi 21312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_rpmReadConfigFiles__rpmlibs" >&5 21313$as_echo "$netsnmp_cv_func_rpmReadConfigFiles__rpmlibs" >&6; } 21314 if test "x${netsnmp_cv_func_rpmReadConfigFiles__rpmlibs}" != "xno" ; then 21315 if test "x${netsnmp_cv_func_rpmReadConfigFiles__rpmlibs}" != "xnone required" ; then 21316 _rpmlibs="${netsnmp_result} ${netsnmp_target_val}" 21317 fi 21318 21319 21320$as_echo "#define HAVE_LIBRPM 1" >>confdefs.h 21321 21322 LMIBLIBS="$_rpmlibs $LMIBLIBS" 21323 21324 21325 fi 21326 21327 21328 # rpm 4.6 has incompatible API, turn on the legacy one 21329 21330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing headerGet" >&5 21331$as_echo_n "checking for library containing headerGet... " >&6; } 21332if ${netsnmp_cv_func_headerGet_LIBS+:} false; then : 21333 $as_echo_n "(cached) " >&6 21334else 21335 netsnmp_func_search_save_LIBS="$LIBS" 21336 netsnmp_target_val="$LIBS" 21337 netsnmp_temp_LIBS="$LMIBLIBS ${LIBS}" 21338 netsnmp_result=no 21339 LIBS="${netsnmp_temp_LIBS}" 21340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21341/* end confdefs.h. */ 21342 21343/* Override any GCC internal prototype to avoid an error. 21344 Use char because int might match the return type of a GCC 21345 builtin and then its argument prototype would still apply. */ 21346#ifdef __cplusplus 21347extern "C" 21348#endif 21349char headerGet (); 21350int 21351main () 21352{ 21353return headerGet (); 21354 ; 21355 return 0; 21356} 21357_ACEOF 21358if ac_fn_c_try_link "$LINENO"; then : 21359 netsnmp_result="none required" 21360fi 21361rm -f core conftest.err conftest.$ac_objext \ 21362 conftest$ac_exeext conftest.$ac_ext 21363 LIBS="${netsnmp_func_search_save_LIBS}" 21364 netsnmp_cv_func_headerGet_LIBS="${netsnmp_result}" 21365fi 21366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_headerGet_LIBS" >&5 21367$as_echo "$netsnmp_cv_func_headerGet_LIBS" >&6; } 21368 if test "x${netsnmp_cv_func_headerGet_LIBS}" != "xno" ; then 21369 if test "x${netsnmp_cv_func_headerGet_LIBS}" != "xnone required" ; then 21370 LIBS="${netsnmp_result} ${netsnmp_target_val}" 21371 fi 21372 21373 21374$as_echo "#define HAVE_HEADERGET 1" >>confdefs.h 21375 21376 21377 fi 21378 21379fi 21380 21381# 21382# getfsstat/getvfsstat 21383# 21384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getfsstat" >&5 21385$as_echo_n "checking for library containing getfsstat... " >&6; } 21386if ${ac_cv_search_getfsstat+:} false; then : 21387 $as_echo_n "(cached) " >&6 21388else 21389 ac_func_search_save_LIBS=$LIBS 21390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21391/* end confdefs.h. */ 21392 21393/* Override any GCC internal prototype to avoid an error. 21394 Use char because int might match the return type of a GCC 21395 builtin and then its argument prototype would still apply. */ 21396#ifdef __cplusplus 21397extern "C" 21398#endif 21399char getfsstat (); 21400int 21401main () 21402{ 21403return getfsstat (); 21404 ; 21405 return 0; 21406} 21407_ACEOF 21408for ac_lib in '' nbutil; do 21409 if test -z "$ac_lib"; then 21410 ac_res="none required" 21411 else 21412 ac_res=-l$ac_lib 21413 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21414 fi 21415 if ac_fn_c_try_link "$LINENO"; then : 21416 ac_cv_search_getfsstat=$ac_res 21417fi 21418rm -f core conftest.err conftest.$ac_objext \ 21419 conftest$ac_exeext 21420 if ${ac_cv_search_getfsstat+:} false; then : 21421 break 21422fi 21423done 21424if ${ac_cv_search_getfsstat+:} false; then : 21425 21426else 21427 ac_cv_search_getfsstat=no 21428fi 21429rm conftest.$ac_ext 21430LIBS=$ac_func_search_save_LIBS 21431fi 21432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getfsstat" >&5 21433$as_echo "$ac_cv_search_getfsstat" >&6; } 21434ac_res=$ac_cv_search_getfsstat 21435if test "$ac_res" != no; then : 21436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21437 21438fi 21439 21440for ac_func in getfsstat 21441do : 21442 ac_fn_c_check_func "$LINENO" "getfsstat" "ac_cv_func_getfsstat" 21443if test "x$ac_cv_func_getfsstat" = xyes; then : 21444 cat >>confdefs.h <<_ACEOF 21445#define HAVE_GETFSSTAT 1 21446_ACEOF 21447 21448fi 21449done 21450 21451for ac_func in getvfsstat 21452do : 21453 ac_fn_c_check_func "$LINENO" "getvfsstat" "ac_cv_func_getvfsstat" 21454if test "x$ac_cv_func_getvfsstat" = xyes; then : 21455 cat >>confdefs.h <<_ACEOF 21456#define HAVE_GETVFSSTAT 1 21457_ACEOF 21458 21459fi 21460done 21461 21462# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, 21463# -lseq on Dynix/PTX, -lgen on Unixware. 21464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 21465$as_echo_n "checking for library containing getmntent... " >&6; } 21466if ${ac_cv_search_getmntent+:} false; then : 21467 $as_echo_n "(cached) " >&6 21468else 21469 ac_func_search_save_LIBS=$LIBS 21470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21471/* end confdefs.h. */ 21472 21473/* Override any GCC internal prototype to avoid an error. 21474 Use char because int might match the return type of a GCC 21475 builtin and then its argument prototype would still apply. */ 21476#ifdef __cplusplus 21477extern "C" 21478#endif 21479char getmntent (); 21480int 21481main () 21482{ 21483return getmntent (); 21484 ; 21485 return 0; 21486} 21487_ACEOF 21488for ac_lib in '' sun seq gen; do 21489 if test -z "$ac_lib"; then 21490 ac_res="none required" 21491 else 21492 ac_res=-l$ac_lib 21493 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21494 fi 21495 if ac_fn_c_try_link "$LINENO"; then : 21496 ac_cv_search_getmntent=$ac_res 21497fi 21498rm -f core conftest.err conftest.$ac_objext \ 21499 conftest$ac_exeext 21500 if ${ac_cv_search_getmntent+:} false; then : 21501 break 21502fi 21503done 21504if ${ac_cv_search_getmntent+:} false; then : 21505 21506else 21507 ac_cv_search_getmntent=no 21508fi 21509rm conftest.$ac_ext 21510LIBS=$ac_func_search_save_LIBS 21511fi 21512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 21513$as_echo "$ac_cv_search_getmntent" >&6; } 21514ac_res=$ac_cv_search_getmntent 21515if test "$ac_res" != no; then : 21516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21517 ac_cv_func_getmntent=yes 21518 21519$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h 21520 21521else 21522 ac_cv_func_getmntent=no 21523fi 21524 21525 21526 21527# 21528# kinfo_get_cpus 21529# 21530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_get_cpus" >&5 21531$as_echo_n "checking for library containing kinfo_get_cpus... " >&6; } 21532if ${ac_cv_search_kinfo_get_cpus+:} false; then : 21533 $as_echo_n "(cached) " >&6 21534else 21535 ac_func_search_save_LIBS=$LIBS 21536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21537/* end confdefs.h. */ 21538 21539/* Override any GCC internal prototype to avoid an error. 21540 Use char because int might match the return type of a GCC 21541 builtin and then its argument prototype would still apply. */ 21542#ifdef __cplusplus 21543extern "C" 21544#endif 21545char kinfo_get_cpus (); 21546int 21547main () 21548{ 21549return kinfo_get_cpus (); 21550 ; 21551 return 0; 21552} 21553_ACEOF 21554for ac_lib in '' kinfo; do 21555 if test -z "$ac_lib"; then 21556 ac_res="none required" 21557 else 21558 ac_res=-l$ac_lib 21559 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21560 fi 21561 if ac_fn_c_try_link "$LINENO"; then : 21562 ac_cv_search_kinfo_get_cpus=$ac_res 21563fi 21564rm -f core conftest.err conftest.$ac_objext \ 21565 conftest$ac_exeext 21566 if ${ac_cv_search_kinfo_get_cpus+:} false; then : 21567 break 21568fi 21569done 21570if ${ac_cv_search_kinfo_get_cpus+:} false; then : 21571 21572else 21573 ac_cv_search_kinfo_get_cpus=no 21574fi 21575rm conftest.$ac_ext 21576LIBS=$ac_func_search_save_LIBS 21577fi 21578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_get_cpus" >&5 21579$as_echo "$ac_cv_search_kinfo_get_cpus" >&6; } 21580ac_res=$ac_cv_search_kinfo_get_cpus 21581if test "$ac_res" != no; then : 21582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21583 21584fi 21585 21586for ac_func in kinfo_get_cpus 21587do : 21588 ac_fn_c_check_func "$LINENO" "kinfo_get_cpus" "ac_cv_func_kinfo_get_cpus" 21589if test "x$ac_cv_func_kinfo_get_cpus" = xyes; then : 21590 cat >>confdefs.h <<_ACEOF 21591#define HAVE_KINFO_GET_CPUS 1 21592_ACEOF 21593 21594fi 21595done 21596 21597 21598# 21599# diskIOLAx requires exp which may require -lm 21600# 21601 21602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exp" >&5 21603$as_echo_n "checking for library containing exp... " >&6; } 21604if ${netsnmp_cv_func_exp_LMIBLIBS+:} false; then : 21605 $as_echo_n "(cached) " >&6 21606else 21607 netsnmp_func_search_save_LIBS="$LIBS" 21608 netsnmp_target_val="$LMIBLIBS" 21609 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 21610 netsnmp_result=no 21611 LIBS="${netsnmp_temp_LIBS}" 21612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21613/* end confdefs.h. */ 21614 21615/* Override any GCC internal prototype to avoid an error. 21616 Use char because int might match the return type of a GCC 21617 builtin and then its argument prototype would still apply. */ 21618#ifdef __cplusplus 21619extern "C" 21620#endif 21621char exp (); 21622int 21623main () 21624{ 21625return exp (); 21626 ; 21627 return 0; 21628} 21629_ACEOF 21630if ac_fn_c_try_link "$LINENO"; then : 21631 netsnmp_result="none required" 21632else 21633 for netsnmp_cur_lib in m ; do 21634 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 21635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21636/* end confdefs.h. */ 21637 21638/* Override any GCC internal prototype to avoid an error. 21639 Use char because int might match the return type of a GCC 21640 builtin and then its argument prototype would still apply. */ 21641#ifdef __cplusplus 21642extern "C" 21643#endif 21644char exp (); 21645int 21646main () 21647{ 21648return exp (); 21649 ; 21650 return 0; 21651} 21652_ACEOF 21653if ac_fn_c_try_link "$LINENO"; then : 21654 netsnmp_result=-l${netsnmp_cur_lib} 21655 break 21656fi 21657rm -f core conftest.err conftest.$ac_objext \ 21658 conftest$ac_exeext conftest.$ac_ext 21659 done 21660fi 21661rm -f core conftest.err conftest.$ac_objext \ 21662 conftest$ac_exeext conftest.$ac_ext 21663 LIBS="${netsnmp_func_search_save_LIBS}" 21664 netsnmp_cv_func_exp_LMIBLIBS="${netsnmp_result}" 21665fi 21666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_exp_LMIBLIBS" >&5 21667$as_echo "$netsnmp_cv_func_exp_LMIBLIBS" >&6; } 21668 if test "x${netsnmp_cv_func_exp_LMIBLIBS}" != "xno" ; then 21669 if test "x${netsnmp_cv_func_exp_LMIBLIBS}" != "xnone required" ; then 21670 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 21671 fi 21672 21673 21674 fi 21675 21676 21677# 21678# libkvm 21679# 21680 21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_read" >&5 21682$as_echo_n "checking for library containing kvm_read... " >&6; } 21683if ${netsnmp_cv_func_kvm_read_LAGENTLIBS+:} false; then : 21684 $as_echo_n "(cached) " >&6 21685else 21686 netsnmp_func_search_save_LIBS="$LIBS" 21687 netsnmp_target_val="$LAGENTLIBS" 21688 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 21689 netsnmp_result=no 21690 LIBS="${netsnmp_temp_LIBS}" 21691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21692/* end confdefs.h. */ 21693 21694/* Override any GCC internal prototype to avoid an error. 21695 Use char because int might match the return type of a GCC 21696 builtin and then its argument prototype would still apply. */ 21697#ifdef __cplusplus 21698extern "C" 21699#endif 21700char kvm_read (); 21701int 21702main () 21703{ 21704return kvm_read (); 21705 ; 21706 return 0; 21707} 21708_ACEOF 21709if ac_fn_c_try_link "$LINENO"; then : 21710 netsnmp_result="none required" 21711else 21712 for netsnmp_cur_lib in kvm ; do 21713 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 21714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21715/* end confdefs.h. */ 21716 21717/* Override any GCC internal prototype to avoid an error. 21718 Use char because int might match the return type of a GCC 21719 builtin and then its argument prototype would still apply. */ 21720#ifdef __cplusplus 21721extern "C" 21722#endif 21723char kvm_read (); 21724int 21725main () 21726{ 21727return kvm_read (); 21728 ; 21729 return 0; 21730} 21731_ACEOF 21732if ac_fn_c_try_link "$LINENO"; then : 21733 netsnmp_result=-l${netsnmp_cur_lib} 21734 break 21735fi 21736rm -f core conftest.err conftest.$ac_objext \ 21737 conftest$ac_exeext conftest.$ac_ext 21738 done 21739fi 21740rm -f core conftest.err conftest.$ac_objext \ 21741 conftest$ac_exeext conftest.$ac_ext 21742 LIBS="${netsnmp_func_search_save_LIBS}" 21743 netsnmp_cv_func_kvm_read_LAGENTLIBS="${netsnmp_result}" 21744fi 21745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_read_LAGENTLIBS" >&5 21746$as_echo "$netsnmp_cv_func_kvm_read_LAGENTLIBS" >&6; } 21747 if test "x${netsnmp_cv_func_kvm_read_LAGENTLIBS}" != "xno" ; then 21748 if test "x${netsnmp_cv_func_kvm_read_LAGENTLIBS}" != "xnone required" ; then 21749 LAGENTLIBS="${netsnmp_result} ${netsnmp_target_val}" 21750 fi 21751 21752 21753 fi 21754 21755 21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_openfiles" >&5 21757$as_echo_n "checking for library containing kvm_openfiles... " >&6; } 21758if ${netsnmp_cv_func_kvm_openfiles_LAGENTLIBS+:} false; then : 21759 $as_echo_n "(cached) " >&6 21760else 21761 netsnmp_func_search_save_LIBS="$LIBS" 21762 netsnmp_target_val="$LAGENTLIBS" 21763 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 21764 netsnmp_result=no 21765 LIBS="${netsnmp_temp_LIBS}" 21766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21767/* end confdefs.h. */ 21768 21769/* Override any GCC internal prototype to avoid an error. 21770 Use char because int might match the return type of a GCC 21771 builtin and then its argument prototype would still apply. */ 21772#ifdef __cplusplus 21773extern "C" 21774#endif 21775char kvm_openfiles (); 21776int 21777main () 21778{ 21779return kvm_openfiles (); 21780 ; 21781 return 0; 21782} 21783_ACEOF 21784if ac_fn_c_try_link "$LINENO"; then : 21785 netsnmp_result="none required" 21786else 21787 for netsnmp_cur_lib in kvm ; do 21788 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 21789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21790/* end confdefs.h. */ 21791 21792/* Override any GCC internal prototype to avoid an error. 21793 Use char because int might match the return type of a GCC 21794 builtin and then its argument prototype would still apply. */ 21795#ifdef __cplusplus 21796extern "C" 21797#endif 21798char kvm_openfiles (); 21799int 21800main () 21801{ 21802return kvm_openfiles (); 21803 ; 21804 return 0; 21805} 21806_ACEOF 21807if ac_fn_c_try_link "$LINENO"; then : 21808 netsnmp_result=-l${netsnmp_cur_lib} 21809 break 21810fi 21811rm -f core conftest.err conftest.$ac_objext \ 21812 conftest$ac_exeext conftest.$ac_ext 21813 done 21814fi 21815rm -f core conftest.err conftest.$ac_objext \ 21816 conftest$ac_exeext conftest.$ac_ext 21817 LIBS="${netsnmp_func_search_save_LIBS}" 21818 netsnmp_cv_func_kvm_openfiles_LAGENTLIBS="${netsnmp_result}" 21819fi 21820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_openfiles_LAGENTLIBS" >&5 21821$as_echo "$netsnmp_cv_func_kvm_openfiles_LAGENTLIBS" >&6; } 21822 if test "x${netsnmp_cv_func_kvm_openfiles_LAGENTLIBS}" != "xno" ; then 21823 if test "x${netsnmp_cv_func_kvm_openfiles_LAGENTLIBS}" != "xnone required" ; then 21824 LAGENTLIBS="${netsnmp_result} ${netsnmp_target_val}" 21825 fi 21826 21827 21828 fi 21829 21830 21831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_getprocs" >&5 21832$as_echo_n "checking for library containing kvm_getprocs... " >&6; } 21833if ${netsnmp_cv_func_kvm_getprocs_LMIBLIBS+:} false; then : 21834 $as_echo_n "(cached) " >&6 21835else 21836 netsnmp_func_search_save_LIBS="$LIBS" 21837 netsnmp_target_val="$LMIBLIBS" 21838 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 21839 netsnmp_result=no 21840 LIBS="${netsnmp_temp_LIBS}" 21841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21842/* end confdefs.h. */ 21843 21844/* Override any GCC internal prototype to avoid an error. 21845 Use char because int might match the return type of a GCC 21846 builtin and then its argument prototype would still apply. */ 21847#ifdef __cplusplus 21848extern "C" 21849#endif 21850char kvm_getprocs (); 21851int 21852main () 21853{ 21854return kvm_getprocs (); 21855 ; 21856 return 0; 21857} 21858_ACEOF 21859if ac_fn_c_try_link "$LINENO"; then : 21860 netsnmp_result="none required" 21861else 21862 for netsnmp_cur_lib in kvm ; do 21863 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 21864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21865/* end confdefs.h. */ 21866 21867/* Override any GCC internal prototype to avoid an error. 21868 Use char because int might match the return type of a GCC 21869 builtin and then its argument prototype would still apply. */ 21870#ifdef __cplusplus 21871extern "C" 21872#endif 21873char kvm_getprocs (); 21874int 21875main () 21876{ 21877return kvm_getprocs (); 21878 ; 21879 return 0; 21880} 21881_ACEOF 21882if ac_fn_c_try_link "$LINENO"; then : 21883 netsnmp_result=-l${netsnmp_cur_lib} 21884 break 21885fi 21886rm -f core conftest.err conftest.$ac_objext \ 21887 conftest$ac_exeext conftest.$ac_ext 21888 done 21889fi 21890rm -f core conftest.err conftest.$ac_objext \ 21891 conftest$ac_exeext conftest.$ac_ext 21892 LIBS="${netsnmp_func_search_save_LIBS}" 21893 netsnmp_cv_func_kvm_getprocs_LMIBLIBS="${netsnmp_result}" 21894fi 21895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_getprocs_LMIBLIBS" >&5 21896$as_echo "$netsnmp_cv_func_kvm_getprocs_LMIBLIBS" >&6; } 21897 if test "x${netsnmp_cv_func_kvm_getprocs_LMIBLIBS}" != "xno" ; then 21898 if test "x${netsnmp_cv_func_kvm_getprocs_LMIBLIBS}" != "xnone required" ; then 21899 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 21900 fi 21901 21902 21903 fi 21904 21905 21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_getproc2" >&5 21907$as_echo_n "checking for library containing kvm_getproc2... " >&6; } 21908if ${netsnmp_cv_func_kvm_getproc2_LMIBLIBS+:} false; then : 21909 $as_echo_n "(cached) " >&6 21910else 21911 netsnmp_func_search_save_LIBS="$LIBS" 21912 netsnmp_target_val="$LMIBLIBS" 21913 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 21914 netsnmp_result=no 21915 LIBS="${netsnmp_temp_LIBS}" 21916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21917/* end confdefs.h. */ 21918 21919/* Override any GCC internal prototype to avoid an error. 21920 Use char because int might match the return type of a GCC 21921 builtin and then its argument prototype would still apply. */ 21922#ifdef __cplusplus 21923extern "C" 21924#endif 21925char kvm_getproc2 (); 21926int 21927main () 21928{ 21929return kvm_getproc2 (); 21930 ; 21931 return 0; 21932} 21933_ACEOF 21934if ac_fn_c_try_link "$LINENO"; then : 21935 netsnmp_result="none required" 21936else 21937 for netsnmp_cur_lib in kvm ; do 21938 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 21939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21940/* end confdefs.h. */ 21941 21942/* Override any GCC internal prototype to avoid an error. 21943 Use char because int might match the return type of a GCC 21944 builtin and then its argument prototype would still apply. */ 21945#ifdef __cplusplus 21946extern "C" 21947#endif 21948char kvm_getproc2 (); 21949int 21950main () 21951{ 21952return kvm_getproc2 (); 21953 ; 21954 return 0; 21955} 21956_ACEOF 21957if ac_fn_c_try_link "$LINENO"; then : 21958 netsnmp_result=-l${netsnmp_cur_lib} 21959 break 21960fi 21961rm -f core conftest.err conftest.$ac_objext \ 21962 conftest$ac_exeext conftest.$ac_ext 21963 done 21964fi 21965rm -f core conftest.err conftest.$ac_objext \ 21966 conftest$ac_exeext conftest.$ac_ext 21967 LIBS="${netsnmp_func_search_save_LIBS}" 21968 netsnmp_cv_func_kvm_getproc2_LMIBLIBS="${netsnmp_result}" 21969fi 21970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_getproc2_LMIBLIBS" >&5 21971$as_echo "$netsnmp_cv_func_kvm_getproc2_LMIBLIBS" >&6; } 21972 if test "x${netsnmp_cv_func_kvm_getproc2_LMIBLIBS}" != "xno" ; then 21973 if test "x${netsnmp_cv_func_kvm_getproc2_LMIBLIBS}" != "xnone required" ; then 21974 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 21975 fi 21976 21977 21978 fi 21979 21980 21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_getfiles" >&5 21982$as_echo_n "checking for library containing kvm_getfiles... " >&6; } 21983if ${netsnmp_cv_func_kvm_getfiles_LMIBLIBS+:} false; then : 21984 $as_echo_n "(cached) " >&6 21985else 21986 netsnmp_func_search_save_LIBS="$LIBS" 21987 netsnmp_target_val="$LMIBLIBS" 21988 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 21989 netsnmp_result=no 21990 LIBS="${netsnmp_temp_LIBS}" 21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21992/* end confdefs.h. */ 21993 21994/* Override any GCC internal prototype to avoid an error. 21995 Use char because int might match the return type of a GCC 21996 builtin and then its argument prototype would still apply. */ 21997#ifdef __cplusplus 21998extern "C" 21999#endif 22000char kvm_getfiles (); 22001int 22002main () 22003{ 22004return kvm_getfiles (); 22005 ; 22006 return 0; 22007} 22008_ACEOF 22009if ac_fn_c_try_link "$LINENO"; then : 22010 netsnmp_result="none required" 22011else 22012 for netsnmp_cur_lib in kvm ; do 22013 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 22014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22015/* end confdefs.h. */ 22016 22017/* Override any GCC internal prototype to avoid an error. 22018 Use char because int might match the return type of a GCC 22019 builtin and then its argument prototype would still apply. */ 22020#ifdef __cplusplus 22021extern "C" 22022#endif 22023char kvm_getfiles (); 22024int 22025main () 22026{ 22027return kvm_getfiles (); 22028 ; 22029 return 0; 22030} 22031_ACEOF 22032if ac_fn_c_try_link "$LINENO"; then : 22033 netsnmp_result=-l${netsnmp_cur_lib} 22034 break 22035fi 22036rm -f core conftest.err conftest.$ac_objext \ 22037 conftest$ac_exeext conftest.$ac_ext 22038 done 22039fi 22040rm -f core conftest.err conftest.$ac_objext \ 22041 conftest$ac_exeext conftest.$ac_ext 22042 LIBS="${netsnmp_func_search_save_LIBS}" 22043 netsnmp_cv_func_kvm_getfiles_LMIBLIBS="${netsnmp_result}" 22044fi 22045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_getfiles_LMIBLIBS" >&5 22046$as_echo "$netsnmp_cv_func_kvm_getfiles_LMIBLIBS" >&6; } 22047 if test "x${netsnmp_cv_func_kvm_getfiles_LMIBLIBS}" != "xno" ; then 22048 if test "x${netsnmp_cv_func_kvm_getfiles_LMIBLIBS}" != "xnone required" ; then 22049 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 22050 fi 22051 22052 22053 fi 22054 22055 22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_getfile2" >&5 22057$as_echo_n "checking for library containing kvm_getfile2... " >&6; } 22058if ${netsnmp_cv_func_kvm_getfile2_LMIBLIBS+:} false; then : 22059 $as_echo_n "(cached) " >&6 22060else 22061 netsnmp_func_search_save_LIBS="$LIBS" 22062 netsnmp_target_val="$LMIBLIBS" 22063 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 22064 netsnmp_result=no 22065 LIBS="${netsnmp_temp_LIBS}" 22066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22067/* end confdefs.h. */ 22068 22069/* Override any GCC internal prototype to avoid an error. 22070 Use char because int might match the return type of a GCC 22071 builtin and then its argument prototype would still apply. */ 22072#ifdef __cplusplus 22073extern "C" 22074#endif 22075char kvm_getfile2 (); 22076int 22077main () 22078{ 22079return kvm_getfile2 (); 22080 ; 22081 return 0; 22082} 22083_ACEOF 22084if ac_fn_c_try_link "$LINENO"; then : 22085 netsnmp_result="none required" 22086else 22087 for netsnmp_cur_lib in kvm ; do 22088 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 22089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22090/* end confdefs.h. */ 22091 22092/* Override any GCC internal prototype to avoid an error. 22093 Use char because int might match the return type of a GCC 22094 builtin and then its argument prototype would still apply. */ 22095#ifdef __cplusplus 22096extern "C" 22097#endif 22098char kvm_getfile2 (); 22099int 22100main () 22101{ 22102return kvm_getfile2 (); 22103 ; 22104 return 0; 22105} 22106_ACEOF 22107if ac_fn_c_try_link "$LINENO"; then : 22108 netsnmp_result=-l${netsnmp_cur_lib} 22109 break 22110fi 22111rm -f core conftest.err conftest.$ac_objext \ 22112 conftest$ac_exeext conftest.$ac_ext 22113 done 22114fi 22115rm -f core conftest.err conftest.$ac_objext \ 22116 conftest$ac_exeext conftest.$ac_ext 22117 LIBS="${netsnmp_func_search_save_LIBS}" 22118 netsnmp_cv_func_kvm_getfile2_LMIBLIBS="${netsnmp_result}" 22119fi 22120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_getfile2_LMIBLIBS" >&5 22121$as_echo "$netsnmp_cv_func_kvm_getfile2_LMIBLIBS" >&6; } 22122 if test "x${netsnmp_cv_func_kvm_getfile2_LMIBLIBS}" != "xno" ; then 22123 if test "x${netsnmp_cv_func_kvm_getfile2_LMIBLIBS}" != "xnone required" ; then 22124 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 22125 fi 22126 22127 22128 fi 22129 22130 22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_getswapinfo" >&5 22132$as_echo_n "checking for library containing kvm_getswapinfo... " >&6; } 22133if ${netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS+:} false; then : 22134 $as_echo_n "(cached) " >&6 22135else 22136 netsnmp_func_search_save_LIBS="$LIBS" 22137 netsnmp_target_val="$LMIBLIBS" 22138 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 22139 netsnmp_result=no 22140 LIBS="${netsnmp_temp_LIBS}" 22141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22142/* end confdefs.h. */ 22143 22144/* Override any GCC internal prototype to avoid an error. 22145 Use char because int might match the return type of a GCC 22146 builtin and then its argument prototype would still apply. */ 22147#ifdef __cplusplus 22148extern "C" 22149#endif 22150char kvm_getswapinfo (); 22151int 22152main () 22153{ 22154return kvm_getswapinfo (); 22155 ; 22156 return 0; 22157} 22158_ACEOF 22159if ac_fn_c_try_link "$LINENO"; then : 22160 netsnmp_result="none required" 22161else 22162 for netsnmp_cur_lib in kvm ; do 22163 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 22164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22165/* end confdefs.h. */ 22166 22167/* Override any GCC internal prototype to avoid an error. 22168 Use char because int might match the return type of a GCC 22169 builtin and then its argument prototype would still apply. */ 22170#ifdef __cplusplus 22171extern "C" 22172#endif 22173char kvm_getswapinfo (); 22174int 22175main () 22176{ 22177return kvm_getswapinfo (); 22178 ; 22179 return 0; 22180} 22181_ACEOF 22182if ac_fn_c_try_link "$LINENO"; then : 22183 netsnmp_result=-l${netsnmp_cur_lib} 22184 break 22185fi 22186rm -f core conftest.err conftest.$ac_objext \ 22187 conftest$ac_exeext conftest.$ac_ext 22188 done 22189fi 22190rm -f core conftest.err conftest.$ac_objext \ 22191 conftest$ac_exeext conftest.$ac_ext 22192 LIBS="${netsnmp_func_search_save_LIBS}" 22193 netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS="${netsnmp_result}" 22194fi 22195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS" >&5 22196$as_echo "$netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS" >&6; } 22197 if test "x${netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS}" != "xno" ; then 22198 if test "x${netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS}" != "xnone required" ; then 22199 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 22200 fi 22201 22202 22203 fi 22204 22205netsnmp_save_LIBS="$LIBS" 22206LIBS="$LAGENTLIBS $LMIBLIBS $LIBS" 22207for ac_func in kvm_openfiles kvm_getprocs kvm_getproc2 kvm_getswapinfo kvm_getfiles kvm_getfile2 22208do : 22209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22210ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22211if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22212 cat >>confdefs.h <<_ACEOF 22213#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22214_ACEOF 22215 22216fi 22217done 22218 22219LIBS="$netsnmp_save_LIBS" 22220 22221# 22222# dynamic module support 22223# 22224 22225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 22226$as_echo_n "checking for library containing dlopen... " >&6; } 22227if ${netsnmp_cv_func_dlopen_LMIBLIBS+:} false; then : 22228 $as_echo_n "(cached) " >&6 22229else 22230 netsnmp_func_search_save_LIBS="$LIBS" 22231 netsnmp_target_val="$LMIBLIBS" 22232 netsnmp_temp_LIBS="${netsnmp_target_val} $LAGENTLIBS $LSNMPLIBS ${LIBS}" 22233 netsnmp_result=no 22234 LIBS="${netsnmp_temp_LIBS}" 22235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22236/* end confdefs.h. */ 22237 22238/* Override any GCC internal prototype to avoid an error. 22239 Use char because int might match the return type of a GCC 22240 builtin and then its argument prototype would still apply. */ 22241#ifdef __cplusplus 22242extern "C" 22243#endif 22244char dlopen (); 22245int 22246main () 22247{ 22248return dlopen (); 22249 ; 22250 return 0; 22251} 22252_ACEOF 22253if ac_fn_c_try_link "$LINENO"; then : 22254 netsnmp_result="none required" 22255else 22256 for netsnmp_cur_lib in dl ; do 22257 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 22258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22259/* end confdefs.h. */ 22260 22261/* Override any GCC internal prototype to avoid an error. 22262 Use char because int might match the return type of a GCC 22263 builtin and then its argument prototype would still apply. */ 22264#ifdef __cplusplus 22265extern "C" 22266#endif 22267char dlopen (); 22268int 22269main () 22270{ 22271return dlopen (); 22272 ; 22273 return 0; 22274} 22275_ACEOF 22276if ac_fn_c_try_link "$LINENO"; then : 22277 netsnmp_result=-l${netsnmp_cur_lib} 22278 break 22279fi 22280rm -f core conftest.err conftest.$ac_objext \ 22281 conftest$ac_exeext conftest.$ac_ext 22282 done 22283fi 22284rm -f core conftest.err conftest.$ac_objext \ 22285 conftest$ac_exeext conftest.$ac_ext 22286 LIBS="${netsnmp_func_search_save_LIBS}" 22287 netsnmp_cv_func_dlopen_LMIBLIBS="${netsnmp_result}" 22288fi 22289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_dlopen_LMIBLIBS" >&5 22290$as_echo "$netsnmp_cv_func_dlopen_LMIBLIBS" >&6; } 22291 if test "x${netsnmp_cv_func_dlopen_LMIBLIBS}" != "xno" ; then 22292 if test "x${netsnmp_cv_func_dlopen_LMIBLIBS}" != "xnone required" ; then 22293 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 22294 fi 22295 22296 22297 fi 22298 22299netsnmp_save_LIBS="$LIBS" 22300LIBS="$LMIBLIBS $LAGENTLIBS $LSNMPLIBS $LIBS" 22301for ac_func in dlopen 22302do : 22303 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 22304if test "x$ac_cv_func_dlopen" = xyes; then : 22305 cat >>confdefs.h <<_ACEOF 22306#define HAVE_DLOPEN 1 22307_ACEOF 22308 22309fi 22310done 22311 22312LIBS="$netsnmp_save_LIBS" 22313 22314# 22315# regex in process table 22316# 22317if test "x$with_pcre" != "xno"; then 22318 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" 22319if test "x$ac_cv_header_pcre_h" = xyes; then : 22320 22321 22322$as_echo "#define HAVE_PCRE_H 1" >>confdefs.h 22323 22324 pcre_h=yes 22325 22326else 22327 pcre_h=no 22328 22329fi 22330 22331 22332fi 22333if test "x$pcreheader_h" = "xno" -o "x$pcre_h" = "xno" ; then 22334 if test "x$with_pcre" = "xyes" ; then 22335 as_fn_error $? "Could not find the pcre header file needed and was specifically asked to use pcre support" "$LINENO" 5 22336 else 22337 with_pcre=no 22338 fi 22339fi 22340 22341# 22342# pcre libraries only needed for the ucd process agent mib software 22343# 22344 22345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_exec" >&5 22346$as_echo_n "checking for library containing pcre_exec... " >&6; } 22347if ${netsnmp_cv_func_pcre_exec_LAGENTLIBS+:} false; then : 22348 $as_echo_n "(cached) " >&6 22349else 22350 netsnmp_func_search_save_LIBS="$LIBS" 22351 netsnmp_target_val="$LAGENTLIBS" 22352 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 22353 netsnmp_result=no 22354 LIBS="${netsnmp_temp_LIBS}" 22355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22356/* end confdefs.h. */ 22357 22358/* Override any GCC internal prototype to avoid an error. 22359 Use char because int might match the return type of a GCC 22360 builtin and then its argument prototype would still apply. */ 22361#ifdef __cplusplus 22362extern "C" 22363#endif 22364char pcre_exec (); 22365int 22366main () 22367{ 22368return pcre_exec (); 22369 ; 22370 return 0; 22371} 22372_ACEOF 22373if ac_fn_c_try_link "$LINENO"; then : 22374 netsnmp_result="none required" 22375else 22376 for netsnmp_cur_lib in pcre ; do 22377 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 22378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22379/* end confdefs.h. */ 22380 22381/* Override any GCC internal prototype to avoid an error. 22382 Use char because int might match the return type of a GCC 22383 builtin and then its argument prototype would still apply. */ 22384#ifdef __cplusplus 22385extern "C" 22386#endif 22387char pcre_exec (); 22388int 22389main () 22390{ 22391return pcre_exec (); 22392 ; 22393 return 0; 22394} 22395_ACEOF 22396if ac_fn_c_try_link "$LINENO"; then : 22397 netsnmp_result=-l${netsnmp_cur_lib} 22398 break 22399fi 22400rm -f core conftest.err conftest.$ac_objext \ 22401 conftest$ac_exeext conftest.$ac_ext 22402 done 22403fi 22404rm -f core conftest.err conftest.$ac_objext \ 22405 conftest$ac_exeext conftest.$ac_ext 22406 LIBS="${netsnmp_func_search_save_LIBS}" 22407 netsnmp_cv_func_pcre_exec_LAGENTLIBS="${netsnmp_result}" 22408fi 22409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_pcre_exec_LAGENTLIBS" >&5 22410$as_echo "$netsnmp_cv_func_pcre_exec_LAGENTLIBS" >&6; } 22411 if test "x${netsnmp_cv_func_pcre_exec_LAGENTLIBS}" != "xno" ; then 22412 if test "x${netsnmp_cv_func_pcre_exec_LAGENTLIBS}" != "xnone required" ; then 22413 LAGENTLIBS="${netsnmp_result} ${netsnmp_target_val}" 22414 fi 22415 22416 LMIBLIBS="$LMIBLIBS -lpcre" 22417 22418 22419 fi 22420 22421 22422 22423 22424# -*- autoconf -*- 22425# 22426# generate empty files 22427# 22428# Create include file list for snmp_vars.h to use. 22429mibdir="agent/mibgroup" 22430if test ! -d agent; then 22431 mkdir agent 22432fi 22433if test ! -d agent/mibgroup; then 22434 mkdir agent/mibgroup 22435fi 22436j="$mibdir/mib_module_includes.h $mibdir/agent_module_includes.h \ 22437 $mibdir/mib_module_inits.h $mibdir/agent_module_inits.h \ 22438 $mibdir/mib_module_shutdown.h $mibdir/agent_module_shutdown.h \ 22439 include/net-snmp/agent/mib_module_config.h \ 22440 include/net-snmp/agent/agent_module_config.h \ 22441 $mibdir/mib_module_dot_conf.h $mibdir/agent_module_dot_conf.h" 22442 22443for i in $j; do 22444 rm -f $i 22445 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $i 22446done 22447 22448# 22449# Do hairy agent module processing. 22450# 22451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for and configuring mib modules to use" >&5 22452$as_echo_n "checking for and configuring mib modules to use... " >&6; } 22453 22454# set up the CPP command 22455MODULECPP="$CPP $PARTIALTARGETFLAGS $CPPFLAGS -DNETSNMP_FEATURE_CHECKING -I${srcdir}/include -I${srcdir}/agent/mibgroup" 22456if test "x$enable_mfd_rewrites" = "xyes"; then 22457 MODULECPP="$MODULECPP -DNETSNMP_ENABLE_MFD_REWRITES" 22458fi 22459 22460module_list="" 22461mib_module_list="" 22462agent_module_list="" 22463new_with_mib_modules=`echo $with_mib_modules | $SED 's/,/ /g;'` 22464new_with_out_mib_modules=`echo $with_out_mib_modules | $SED 's/,/ /g;'` 22465 22466# set up initial module list 22467new_module_list="$new_with_mib_modules" 22468 22469if test "x$enable_agent" != "xno" ; then 22470 # If the agent should be built then use default_modules 22471 new_module_list="$new_module_list default_modules" 22472 22473 if test "x$mini_agent" = "xyes"; then 22474 # define the mini agent flag to reduce our load list from default_mibs.h 22475 MODULECPP="$MODULECPP -DNETSNMP_MINI_AGENT" 22476 fi 22477elif test "x$enable_applications" != "xno" ; then 22478 # otherwise, if snmptrapd should be built then add SNMPv3 and 22479 # snmptrapd-specific parts 22480 new_module_list="$new_module_list mibII/vacm_conf utilities/execute" 22481 default_mibs=SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB 22482 default_mibs_install=" " 22483fi 22484 22485test_modules="$new_module_list" 22486new_module_list="" 22487 22488# remove modules that were explicitly excluded 22489for i in $test_modules 22490 do 22491 if echo " $new_with_out_mib_modules " | $GREP " $i " > /dev/null; then 22492 mib_cfg_msg="mib module '$i' is both included and excluded." 22493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mib module conflict" >&5 22494$as_echo "$as_me: WARNING: mib module conflict" >&2;} 22495 if test "x$with_mib_cfg_checks" = "xyes"; then 22496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: user with : $with_mib_modules" >&5 22497$as_echo "$as_me: WARNING: user with : $with_mib_modules" >&2;} 22498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: final with : $new_module_list" >&5 22499$as_echo "$as_me: WARNING: final with : $new_module_list" >&2;} 22500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: user without : $with_out_mib_modules" >&5 22501$as_echo "$as_me: WARNING: user without : $with_out_mib_modules" >&2;} 22502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: final without: $new_with_out_mib_modules" >&5 22503$as_echo "$as_me: WARNING: final without: $new_with_out_mib_modules" >&2;} 22504 as_fn_error $? "$mib_cfg_msg" "$LINENO" 5 22505 else 22506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $mib_cfg_msg It will be excluded" >&5 22507$as_echo "$as_me: WARNING: $mib_cfg_msg It will be excluded" >&2;} 22508 22509 cat >> configure-summary << EOF 22510 *** MIB Module warning *** $mib_cfg_msg It has been excluded. 22511EOF 22512 22513 fi 22514 else 22515 new_module_list="$new_module_list $i" 22516 fi 22517done 22518 22519new_module_list=`(echo $new_module_list | tr ' ' '\n' | sort | tr '\n' ' '; echo '') | $SED 's/ $//'` 22520 22521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $new_module_list." >&5 22522$as_echo "$new_module_list." >&6; } 22523 22524#--------------------- 22525# loop over module list 22526# 22527all_warnings="" 22528if test "x$with_mib_cfg_debug" = "xyes"; then 22529 module_debug=1 22530else 22531 module_debug=0 22532fi 22533first_pass=1 22534output_to=normal 22535 22536if test ! -d mk ; then 22537 mkdir mk 22538fi 22539 22540 22541module_rules=mk/module_rules.mk 22542echo "# contents below built automatically by configure; do not edit by hand" > $module_rules 22543 22544# 22545# make file sub-pieces 22546# 22547for i in module_list_deps mib_module_list_deps agent_module_list_deps ; do 22548 eval "$i=mk/${i}.mk" 22549 echo "# contents below built automatically by configure; do not edit by hand" > mk/${i}.mk 22550done 22551 22552# 22553# variable settings sub-pieces 22554# 22555for i in module_list_code mib_module_list_code agent_module_list_code module_list mib_module_list agent_module_list ; do 22556 eval "$i=mk/${i}.mk" 22557 echo "# contents below built automatically by configure; do not edit by hand" > mk/${i}.mk 22558 echo "$i= \\" >> mk/${i}.mk 22559done 22560 22561echo $ECHO_N "echo " $ECHO_C > mk/MODULE_LIST.mk 22562MODULE_LIST=mk/MODULE_LIST.mk 22563 22564 22565#--------------------- 22566# until we have an empty module list... 22567# (modules may add new modules, and until all dependencies are done...) 22568# 22569while test "x$new_module_list" != "x"; do 22570 22571 if test $module_debug = 1; then 22572 echo -e "\n****************************************************************" 22573 fi 22574 22575 22576 22577 if test $module_debug = 1; then 22578 echo "nml: $new_module_list" 22579 fi 22580 22581 22582 22583 #--------------------- 22584 # loop over all the modules in the current list 22585 # 22586 for j in $new_module_list 22587 do 22588 22589 #--------------------- 22590 # figure out which sub-blocks to build in parts 22591 if echo "$j" | $GREP "=" ; then 22592 # build a shared object file 22593 # format: sofilename=module1:module2 22594 # XXX: currently doesn't do this 22595 dl_name=`echo $j | $SED 's/=.*//'` 22596 dl_names="$dl_names $dl_name" 22597 dl_objects=`echo $j | $SED 's/.*=//'` 22598 module_sublist=`echo $dl_objects | $SED 's/:/ /g'` 22599 saved_sublist="" 22600 saved_sublist_code="" 22601 output_to=separate 22602 22603 # create output files 22604 # these actually get nuked later 22605 output_inits="agent/mibgroup/${dl_name}-dll.c" 22606 output_hdrs="agent/mibgroup/${dl_name}-hdrs.h" 22607 else 22608 # not a special token invocation 22609 module_sublist=$j 22610 output_to=normal 22611 output_t= 22612 fi 22613 22614 while test "x$module_sublist" != "x" ; do 22615 22616 #--------------------- 22617 # loop over all the modules in the sub list 22618 for i in $module_sublist 22619 do 22620 22621 22622 if test $module_debug = 1; then 22623 echo -e "\n================================================================" 22624 fi 22625 22626 22627 22628 if test $module_debug = 1; then 22629 echo "testing $i" 22630 fi 22631 22632 22633 need_header=0 22634 22635 #--------------------- 22636 # build a pseudo include header that includes current config and 22637 # system symbols: 22638 rm -f conftest.$ac_ext module_tmp_header.h 22639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22640/* end confdefs.h. */ 22641 22642#include NETSNMP_SYSTEM_INCLUDE_FILE 22643#include "$srcdir/$mibdir/$i.h" 22644_ACEOF 22645 mv conftest.$ac_ext module_tmp_header.h 22646 22647 #--------------------- 22648 # macro: config_belongs_in(ARG) 22649 # ARG: either 22650 # - mib_module => libnetsnmpmibs (default) 22651 # - agent_module => libnetsnmpagent 22652 # 22653 22654 module_type=mib_module 22655 if test -f $srcdir/$mibdir/$i.h; then 22656 22657 module_type=`$MODULECPP module_tmp_header.h | \ 22658 $SED -n 's@.*config_belongs_in(\([^)]*\)).*@\1@p'` 22659 22660 fi 22661 if test "x$module_type" = "x" ; then 22662 module_type=mib_module 22663 fi 22664 if test "x$output_to" = "xnormal" ; then 22665 output_inits="$mibdir/${module_type}_inits.h" 22666 output_hdrs="$mibdir/${module_type}_includes.h" 22667 fi 22668 22669 #-------------------- 22670 # check for duplicates within the dll system. 22671 # - if found in a dll, then remove from the dll and add to main 22672 dblfix="" 22673 for dltest in $dl_names ; do 22674 eval mod_files="\"\$dl_${dltest}_files\"" 22675 if echo " $mod_files " | $GREP " $i " > /dev/null; then 22676 # some dll module has already seen this, unload it from that list 22677 # and include it in the core (again) 22678 22679 if test $module_debug = 1; then 22680 echo "removing $i from $dltest" 22681 fi 22682 22683 22684 mod_files=`echo " $mod_files " | $SED "s@ $i @@"` 22685 dblfix="__XXX__" 22686 eval "dl_${dltest}_files=\"$mod_files\"" 22687 22688 module_list="$module_list $i" 22689 echo "read_config.lo: mibgroup/$i.h" >> $module_list_deps 22690 if test $module_type = "agent_module" ; then 22691 echo "snmp_vars.lo: mibgroup/$i.h" >> $agent_module_list_deps 22692 else 22693 echo "mib_modules.lo: mibgroup/$i.h" >> $mib_module_list_deps 22694 fi 22695 eval ${module_type}_list="\"\$${module_type}_list $i\"" 22696 echo " $i \\" >> $module_list_code 22697 echo $ECHO_N " $i" $ECHO_C >> $MODULE_LIST 22698 eval tmpfilevar=\$`echo ${module_type}_list_code` 22699 echo " $i \\" >> $tmpfilevar 22700 22701 # XXX: add this to the main init list; this is possible not 22702 # quite in the right spot any longer but we're stuck with it. 22703 # Adding it back to the original ordered spot would be a 22704 # nightmare. Ok, we're already in nightmare code so that 22705 # wolud have to be a night-terror. 22706 mnm=`echo $i | $SED 's/.*\///;s/\.c$//;'` 22707 output_inits_tmp="$mibdir/${module_type}_inits.h" 22708 echo " if (should_init(\"$mnm\")) init_$mnm();" >> $output_inits_tmp 22709 # XXX: even worse, we loose whether the header is needed or not. 22710 output_hdrs_tmp="$mibdir/${module_type}_includes.h" 22711 echo '#include "'"mibgroup/$i.h"'"' >> $output_hdrs_tmp 22712 fi 22713 done 22714 22715 #--------------------- 22716 # make sure module wasn't explicitly excluded, or already added 22717 # 22718 if test "x$dblfix" != "x" ; then 22719 22720 if test $module_debug = 1; then 22721 echo "$i was duplicated -- putting into main" 22722 fi 22723 22724 22725 elif echo " $new_with_out_mib_modules " | $GREP " $i " > /dev/null; then 22726 22727 if test $module_debug = 1; then 22728 echo "$i was excluded" 22729 fi 22730 22731 22732 elif echo " $module_list " | $GREP " $i " > /dev/null; then 22733 22734 if test $module_debug = 1; then 22735 echo "$i already tested" 22736 fi 22737 22738 22739 else 22740 22741 #--------------------- 22742 # process modules header, checking for config_ pseudo-macros 22743 # 22744 22745 #--------------------- 22746 # does the header file for the module exist? 22747 # macros are only processed if it does 22748 if test -f $srcdir/$mibdir/$i.h; then 22749 new_list="" 22750 22751 #--------------------- 22752 # macro: config_exclude(modules) 22753 # - lists conflicts with other modules 22754 # - EG: new MIB implementations exclude old and vice-versa 22755 # 22756 # check if $i has any conflicts 22757 # 22758 22759 new_list_excl=`$MODULECPP module_tmp_header.h | \ 22760 $SED -n 's/.*config_exclude(\(.*\)).*/\1/p'` 22761 if test "x$new_list_excl" != "x"; then 22762 22763 if test $module_debug = 1; then 22764 echo "$i excludes $new_list_excl" 22765 fi 22766 22767 22768 for j in $new_list_excl 22769 do 22770 if echo " $module_list $new_mib_module_list $new_list_two " | $GREP " $j " > /dev/null; then 22771 mib_cfg_msg="mib module '$i' excludes module '$j' but another module requires it" 22772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mib module error" >&5 22773$as_echo "$as_me: WARNING: mib module error" >&2;} 22774 if test "x$with_mib_cfg_checks" = "xyes"; then 22775 as_fn_error $? "$mib_cfg_msg" "$LINENO" 5 22776 else 22777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $mib_cfg_msg" >&5 22778$as_echo "$as_me: WARNING: $mib_cfg_msg" >&2;} 22779 22780 cat >> configure-summary << EOF 22781 *** MIB Module warning *** $mib_cfg_msg 22782EOF 22783 22784 fi 22785 else 22786 new_with_out_mib_modules="$j $new_with_out_mib_modules" 22787 22788 if test $module_debug = 1; then 22789 echo "$j added to excluded list" 22790 fi 22791 22792 22793 fi 22794 done 22795 fi 22796 22797 #--------------------- 22798 # macro: config_arch_require(ARCH,modules) 22799 # - lists modules required for a given ARCH 22800 # 22801 # check if $i has any architecture specific requirements 22802 # 22803 22804 22805 new_list_arch=`$MODULECPP module_tmp_header.h | \ 22806 $SED -n 's/.*config_arch_require( *\([^ ]*\) *, *\([^ ]*\) *).*/\1-xarchx-\2/p'` 22807 22808 if test "x$new_list_arch" != "x"; then 22809 for j in $new_list_arch 22810 do 22811 archtest=`echo $j | $SED 's/-xarchx-.*//'` 22812 # target_os may have been changed to a #define of 1... 22813 if test "x$archtest" = "x1" -o "x$target_os" = "x$archtest" -o "x$PARTIALTARGETOS" = "x$archtest"; then 22814 new_list="$new_list `echo $j | $SED 's/.*-xarchx-//'`" 22815 22816 if test $module_debug = 1; then 22817 echo " $i required adding arch files: `echo $j | $SED 's/.*-xarchx-//'`" 22818 fi 22819 22820 22821 fi 22822 done 22823 fi 22824 22825 if test $module_debug = 1; then 22826 echo " $i required arch files: $new_list" 22827 fi 22828 22829 22830 22831 #--------------------- 22832 # macro: config_version_require((base, version, version-modules, ...)) 22833 # - lists alternative modules used from different versions. 22834 # 22835 22836 new_list_alt3=`$MODULECPP module_tmp_header.h | \ 22837 $AWK ' 22838 BEGIN { 22839 if("'"$enable_new_features"'" == "yes") 22840 method="max"; 22841 else if("'"$enable_old_features"'" == "yes") 22842 method="max-less"; 22843 else 22844 method="max-less-equal"; 22845 FS = "."; 22846 split("'"$with_features_of"'", a); 22847 version=sprintf("%03d%03d%03d%03d", a[1], a[2], a[3], a[4]); 22848 } 22849 /config_version_require/ { 22850 gsub("^.*config_version_require *\\\\(\\\\(", ""); 22851 gsub("\\\\)\\\\).*$", ""); 22852 gsub(", *", ","); 22853 FS = ","; 22854 n = split($0, a); 22855 FS = "."; 22856 actver = "000000000000"; 22857 actstr = a[1]; 22858 for(i = 2; i < n; i += 2) { 22859 split(a[i], b); 22860 curver=sprintf("%03d%03d%03d%03d", b[1], b[2], b[3], b[4]); 22861 if (curver > actver && (method != "max-less" || curver < version) && (method != "max-less-equal" || curver <= version)) { 22862 actver = curver; 22863 actstr = a[i + 1]; 22864 } 22865 } 22866 printf(" %s", actstr); 22867 }'` 22868 22869 if test $module_debug = 1; then 22870 echo " $i required versioned features: $new_list_alt3" 22871 fi 22872 22873 22874 new_list="${new_list}${new_list_alt3}" 22875 22876 #--------------------- 22877 # macro: config_require(modules) 22878 # - lists modules required for this module 22879 # 22880 # check if $i has any other required modules 22881 # 22882 22883 new_list="$new_list `$MODULECPP module_tmp_header.h | \ 22884 $SED -n 's/.*config_require(\(.*\)).*/\1/p'`" 22885 22886 if test $module_debug = 1; then 22887 echo " $i will test: $new_list" 22888 fi 22889 22890 22891 if test "x$new_list" != "x"; then 22892 for j in $new_list 22893 do 22894 22895 if test $module_debug = 1; then 22896 echo -n " $i wants to add $j: " 22897 fi 22898 22899 22900 if test ! -f $srcdir/$mibdir/$j.h -a ! -f $srcdir/$mibdir/$j.c; then 22901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mib module error" >&5 22902$as_echo "$as_me: WARNING: mib module error" >&2;} 22903 as_fn_error $? "mib module \"$i\" requires module \"$j\" but $j.h or $j.c could not be found in $srcdir/$mibdir" "$LINENO" 5 22904 elif echo " $new_with_out_mib_modules " | $GREP " $j " > /dev/null; then 22905 if test "x$i" != "xdefault_modules" ; then 22906 mib_cfg_msg="mib module '$i' requires module '$j' but someone told me to compile without it" 22907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mib module error" >&5 22908$as_echo "$as_me: WARNING: mib module error" >&2;} 22909 if test "x$with_mib_cfg_checks" = "xyes"; then 22910 as_fn_error $? "$mib_cfg_msg" "$LINENO" 5 22911 else 22912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $mib_cfg_msg" >&5 22913$as_echo "$as_me: WARNING: $mib_cfg_msg" >&2;} 22914 22915 cat >> configure-summary << EOF 22916 *** MIB Module warning *** $mib_cfg_msg 22917EOF 22918 22919 fi 22920# elif echo " $module_list $new_list_two $new_module_list " | $GREP " $j " > /dev/null; then 22921# AC_MSG_MODULE_DBG(" $j included previously") 22922 fi 22923 else 22924 new_list_two="$new_list_two $j" 22925 22926 if test $module_debug = 1; then 22927 echo " $j included" 22928 fi 22929 22930 22931 fi 22932 done 22933 fi 22934 22935 #--------------------- 22936 # macro: config_add_mib(SOME-MIB) 22937 # - lists MIBs to be added to the default to-load list. 22938 # 22939 # check if $i has any mibs to add 22940 # 22941 22942 new_mibs=`$MODULECPP module_tmp_header.h | \ 22943 $SED -n 's/.*config_add_mib(\(.*\)).*/\1/p'` 22944 if test "x$new_mibs" != "x"; then 22945 for j in $new_mibs 22946 do 22947 if test "x`echo :$default_mibs: | $GREP :$j:`" = "x"; then 22948 default_mibs="$default_mibs:$j" 22949 fi 22950 if test -f $srcdir/mibs/$j.txt; then 22951 if echo $default_mibs_install | $GREP " $j " > /dev/null; then 22952 : 22953 else 22954 default_mibs_install="$default_mibs_install $j.txt" 22955 fi 22956 fi 22957 done 22958 fi # new mibs 22959 22960 #------------------- 22961 # add the current module to the list of stuff to compile, etc. 22962 # 22963 # add $i to module list 22964 # 22965 22966 if test $module_debug = 1; then 22967 echo " $i added (based on $i.h)" 22968 fi 22969 22970 22971 module_list="$module_list $i" 22972 eval ${module_type}_list="\"\$${module_type}_list $i\"" 22973 22974 echo "read_config.lo: mibgroup/$i.h" >> $module_list_deps 22975 if test $module_type = "agent_module" ; then 22976 echo "snmp_vars.lo: mibgroup/$i.h" >> $agent_module_list_deps 22977 else 22978 echo "mib_modules.lo: mibgroup/$i.h" >> $mib_module_list_deps 22979 fi 22980 22981 #------------------- 22982 # check for unsupported config_load_mib 22983 # 22984 if $MODULECPP module_tmp_header.h | $GREP -q config_load_mib; then 22985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mib module error" >&5 22986$as_echo "$as_me: WARNING: mib module error" >&2;} 22987 { $as_echo "$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 22988$as_echo "$as_me: WARNING: mib module \"$i\" uses the \"config_load_mib\" directive, which is no longer supported. It probably won't work." >&2;} 22989 fi # grep config_load_mib 22990 22991 #------------------- 22992 # check for config_parse_dot_conf 22993 # (generally not used any longer; old auto-load a .conf token) 22994 # 22995 22996 22997 $MODULECPP module_tmp_header.h | \ 22998 $SED -n 's@.*config_parse_dot_conf(\([^)]*\), *\([^),]*\), *\([^),]*\), *\([^),]*\)).*@register_config_handler("snmpd",\1, \2, \3, \4);@p' >> $mibdir/mib_module_dot_conf.h 22999 23000 23001 #--------------------- 23002 # macro: config_error(error text) 23003 # - used to signal a configuration error from a module 23004 # 23005 # check if $i has any errors, or warnings 23006 # 23007 23008 error=`$MODULECPP module_tmp_header.h | \ 23009 $SED -n 's/.*config_error(\(.*\)).*/\1/p'` 23010 if test "x$error" != "x"; then 23011 echo 23012 echo 23013 as_fn_error $? "$i: *** $error ***" "$LINENO" 5 23014 fi 23015 23016 #--------------------- 23017 # macro: config_warning(warning text) 23018 # - used to signal a configuration "warning" to be printed to the user 23019 # 23020 23021 warning=`$MODULECPP module_tmp_header.h | \ 23022 $SED -n 's/.*config_warning(\(.*\)).*/\1/p'` 23023 if test "x$warning" != "x"; then 23024 all_warnings="$all_warnings $warning 23025" 23026 fi 23027 23028 #--------------------- 23029 # Check for a .c file if the .h didn't exist 23030 # 23031 elif test -f $srcdir/$mibdir/$i.c; then 23032 if echo " $module_list $new_list_two $new_module_list " | $GREP " $i " > /dev/null; then 23033 23034 if test $module_debug = 1; then 23035 echo " $i already included" 23036 fi 23037 23038 23039 else 23040 23041 if test $module_debug = 1; then 23042 echo " $i added (based on $i.c)" 23043 fi 23044 23045 23046 module_list="$module_list $i" 23047 mib_module_list="$mib_module_list $i" 23048 fi 23049 23050 #--------------------- 23051 # No .h or .c = error! (typo?) 23052 # 23053 else # no $i.h or $i.c 23054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mib module error" >&5 23055$as_echo "$as_me: WARNING: mib module error" >&2;} 23056 as_fn_error $? "module files $i.h or $i.c could not be found in $srcdir/$mibdir" "$LINENO" 5 23057 fi # no $i.h 23058 23059 #------------------- 23060 # check for init/shutdown routines too 23061 # 23062 has_c_code=no 23063 if test -f $srcdir/$mibdir/$i.c; then 23064 if test "x$output_to" = "xnormal" ; then 23065 echo " $i \\" >> $module_list_code 23066 echo $ECHO_N " $i" $ECHO_C >> $MODULE_LIST 23067 eval tmpfilevar=\$`echo ${module_type}_list_code` 23068 echo " $i \\" >> $tmpfilevar 23069 else 23070 eval "dl_${dl_name}_files=\"\$dl_${dl_name}_files $i\"" 23071 saved_sublist_code="$saved_sublist_code $i" 23072 fi 23073 mnm=`echo $i | $SED 's/.*\///;s/\.c$//;'` 23074 23075 if test $module_debug = 1; then 23076 echo -e "\nchecking '$srcdir/$mibdir/$i.c' ($mnm/`basename $i`) C file for init/shutdown" 23077 fi 23078 23079 23080 if test "x$mnm" != "x`basename $i`"; then 23081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mib module error" >&5 23082$as_echo "$as_me: WARNING: mib module error" >&2;} 23083 as_fn_error $? "conflicting names: $mnm != \`basename $i\`" "$LINENO" 5 23084 fi 23085 temp_init=`$GREP init_$mnm $srcdir/$mibdir/$i.c | $GREP -v _init_$mnm` 23086 if test "x$temp_init" != "x"; then 23087 23088 if test $module_debug = 1; then 23089 echo -e "adding init_$mnm() to list" 23090 fi 23091 23092 23093 need_header=1 23094 echo " if (should_init(\"$mnm\")) init_$mnm();" >> $output_inits 23095 fi 23096 $GREP shutdown_$mnm $srcdir/$mibdir/$i.c > /dev/null 23097 if test $? -eq 0 ; then 23098 if test $module_debug -eq 1; then 23099 echo -e "\nadding shutdown_$mnm() to list" 23100 fi 23101 need_header=1 23102 echo " if (should_init(\"$mnm\")) shutdown_$mnm();" >> $mibdir/${module_type}_shutdown.h 23103 fi 23104 fi # test -f $srcdir/$mibdir/$i.c 23105 23106 #------------------- 23107 # if there is a shutdown/init list, 23108 # 23109 if test $need_header -eq 1 ; then 23110 echo '#include "'"mibgroup/$i.h"'"' >> $output_hdrs 23111 else 23112 echo '/*#include "'"mibgroup/$i.h"'"*/' >> $output_hdrs 23113 fi 23114 23115 #------------------- 23116 # check for output directory (for building outside of source tree 23117 # 23118 23119 if test "x`echo $i | $SED 's/\///g;'`" != "x$i"; then 23120 mnd=`echo $i | $SED 's/\/[^/]*$//;'` 23121 if test ! -d ./$mibdir/$mnd; then 23122 module_directories="$module_directories ./$mibdir/$mnd" 23123 fi 23124 fi # module directory test 23125 23126 23127 #------------------- 23128 # define USING_*_MODULE 23129 # 23130 23131 sym="`echo ${i} | $SED 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`" 23132 23133 echo "/* Define if compiling with the ${i} module files. */" >> include/net-snmp/agent/${module_type}_config.h 23134 echo "#define USING_${sym}_MODULE 1" >> include/net-snmp/agent/${module_type}_config.h 23135 echo " " >> include/net-snmp/agent/${module_type}_config.h 23136 23137 #------------------- 23138 echo $ECHO_N " $i$ECHO_C" 23139 fi # 23140 done # for i in $module_sublist 23141 23142 if test "$output_to" = "separate" ; then 23143 if test "x$new_list_two" = "x" ; then 23144 # no new sub-modules to add to the current target 23145 output_to="normal" 23146 23147 dllcleans="$saved_sublist_o $dllcleans" 23148 output_inits="" 23149 module_sublist="" 23150 else 23151 # a module had sub-modules required; keep goin' 23152 saved_sublist="$saved_sublist $module_sublist" 23153 module_sublist="$new_list_two" 23154 new_list_two="" 23155 fi 23156 else 23157 module_sublist="" 23158 fi 23159 23160 done # while module_sublist 23161 done # for j in $new_module_list 23162 23163 # remember the top level modules for later reporting 23164 if test $first_pass = 1 ; then 23165 # remember this list for later reporting 23166 top_level_modules="$new_module_list => $new_list_two" 23167 first_pass=0 23168 fi 23169 #------------------- 23170 # if $i added new modules vis config_*, 23171 # check those modules for requirements too 23172 # 23173 # transfer the new module to check list to the normal variable 23174 # 23175 if test "x$new_list_two" ; then 23176 output_to=normal 23177 fi 23178 new_module_list="$new_list_two" 23179 new_list_two="" 23180done # while test "x$new_module_list" != "x"; do 23181echo "" 23182 23183#-------------------- 23184# construct the dll code files and make rules. This can't be done 23185# until now because duplicate use of a module means it gets removed 23186# from the dll and put into the main agent. 23187# 23188for i in $dl_names ; do 23189 eval mod_files="\"\$dl_${i}_files\"" 23190 echo "components in the $i dll: $mod_files" 23191 23192 output_inits="agent/mibgroup/${i}-dll.c" 23193 output_hdrs="agent/mibgroup/${i}-hdrs.h" 23194 23195 23196 if test $module_debug = 1; then 23197 echo "creating dll file: $output_inits" 23198 fi 23199 23200 23201 for ofile in $output_inits $output_hdrs ; do 23202 if test -f $ofile ; then 23203 if $GREP "this file created automatically by configure" $ofile > /dev/null 2>&1 ; then 23204 : 23205 else 23206 as_fn_error $? "$ofile already existed ; can't build dll object $i" "$LINENO" 5 23207 fi 23208 fi 23209 cat > $ofile << EOFIF 23210/* xDo not edit; this file created automatically by configure */ 23211EOFIF 23212 done 23213 23214 cat >> $output_inits << EOFOC 23215#include <net-snmp/net-snmp-config.h> 23216#include <net-snmp/net-snmp-includes.h> 23217#include <net-snmp/agent/net-snmp-agent-includes.h> 23218#include "${i}-hdrs.h" 23219void 23220init_$i(void) { 23221EOFOC 23222 23223 # create the .so rule 23224 saved_sublist_o=`echo "$mod_files " | $SED 's/^ *//g;s/ */.o /g;'` 23225 23226 # create the rules for each object 23227 for j in $mod_files ; do 23228 cat >> $module_rules << EOFR 23229$j.o: $j.c 23230 \$(CC) -c \$(CPPFLAGS) \$(CFLAGS) \$(DLFLAGS) -o \$@ \$< 23231 23232EOFR 23233 mnm=`echo $j | $SED 's/.*\///;s/\.c$//;'` 23234 echo " if (should_init(\"$mnm\")) init_$mnm();" >> $output_inits 23235 done 23236 23237 # create the rule for the .so and wrapper code 23238 cat >> $module_rules << EOFM 23239${i}-dll.o: ${i}-dll.c 23240 \$(CC) -c \$(CPPFLAGS) \$(CFLAGS) \$(DLFLAGS) -o \$@ \$< 23241 23242${i}.so: $saved_sublist_o ${i}-dll.o 23243 \$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(DLFLAGS) -o \$@ $saved_sublist_o ${i}-dll.o 23244 23245EOFM 23246 cat >> $output_inits << EOFOCFIN 23247} 23248EOFOCFIN 23249 23250done 23251 23252# cleanup 23253rm -f conftest.$ac_ext module_tmp_header.h 23254 23255#------------------- 23256# build module lists for Makefiles 23257# 23258 23259 23260for 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 23261 eval "$i=mk/${i}.mk" 23262done 23263 23264$SED 's/^module_list_code/module_list_o/;s/\([^=]\) *\\/\1.o \\/g' < $module_list_code > $module_list_o 23265$SED 's/^module_list_code/module_list_c/;s/\([^=]\) *\\/\1.c \\/g' < $module_list_code > $module_list_c 23266$SED 's/^module_list_code/module_list_lo/;s/\([^=]\) *\\/\1.lo \\/g' < $module_list_code > $module_list_lo 23267$SED 's/^module_list_code/module_list_ft/;s/\([^=]\) *\\/\1.ft \\/g' < $module_list_code > $module_list_ft 23268 23269$SED 's/^mib_module_list_code/mib_module_list_o/;s/\([^=]\) *\\/\1.o \\/g' < $mib_module_list_code > $mib_module_list_o 23270$SED 's/^mib_module_list_code/mib_module_list_c/;s/\([^=]\) *\\/\1.c \\/g' < $mib_module_list_code > $mib_module_list_c 23271$SED 's/^mib_module_list_code/mib_module_list_lo/;s/\([^=]\) *\\/\1.lo \\/g' < $mib_module_list_code > $mib_module_list_lo 23272$SED 's/^mib_module_list_code/mib_module_list_ft/;s/\([^=]\) *\\/\1.ft \\/g' < $mib_module_list_code > $mib_module_list_ft 23273 23274$SED 's/^mib_module_list_o/mibgroup_list_o/;s@\([^ ]*\)\.o@mibgroup/\1.o@g' < $mib_module_list_o > $mibgroup_list_o 23275$SED 's/^mib_module_list_lo/mibgroup_list_lo/;s@\([^ ]*\)\.lo@mibgroup/\1.lo@g' < $mib_module_list_lo > $mibgroup_list_lo 23276$SED 's/^mib_module_list_ft/mibgroup_list_ft/;s@\([^ ]*\)\.ft@mibgroup/\1.ft@g' < $mib_module_list_ft > $mibgroup_list_ft 23277 23278$SED 's/^agent_module_list_code/agent_module_list_o/;s/\([^=]\) *\\/\1.o \\/g' < $agent_module_list_code > $agent_module_list_o 23279$SED 's/^agent_module_list_code/agent_module_list_c/;s/\([^=]\) *\\/\1.c \\/g' < $agent_module_list_code > $agent_module_list_c 23280$SED 's/^agent_module_list_code/agent_module_list_lo/;s/\([^=]\) *\\/\1.lo \\/g' < $agent_module_list_code > $agent_module_list_lo 23281$SED 's/^agent_module_list_code/agent_module_list_ft/;s/\([^=]\) *\\/\1.ft \\/g' < $agent_module_list_code > $agent_module_list_ft 23282 23283$SED 's/^agent_module_list_o/agentgroup_list_o/;s@\([^ ]*\)\.o@mibgroup/\1.o@g' < $agent_module_list_o > $agentgroup_list_o 23284$SED 's/^agent_module_list_lo/agentgroup_list_lo/;s@\([^ ]*\)\.lo@mibgroup/\1.lo@g' < $agent_module_list_lo > $agentgroup_list_lo 23285$SED 's/^agent_module_list_ft/agentgroup_list_ft/;s@\([^ ]*\)\.ft@mibgroup/\1.ft@g' < $agent_module_list_ft > $agentgroup_list_ft 23286 23287for 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 23288 # hpux make (at least) doesn't like a trailing \ on the last 23289 # line even when the next line contains nothing but 23290 # whitespace. 23291 lasttoken=`awk '{lasttoken=$1}END{print lasttoken}' mk/$i.mk` 23292 $SED "s#$lasttoken \\\\#$lasttoken#" < mk/$i.mk > mk/$i.mk.tmp 23293 mv mk/$i.mk.tmp mk/$i.mk 23294 23295 # add a closing comment 23296 echo "" >> mk/$i.mk 23297 echo "# end configure generated code" >> mk/$i.mk 23298done 23299 23300 23301 23302if test $module_debug -eq 1; then 23303 echo -e "\nFinal module list: $module_list_code" 23304 exit 23305fi 23306if test "x$with_mib_cfg_checks" = "xyes"; then 23307 23308 cat >> configure-summary << EOF 23309 Agent Module list: $module_list_code 23310EOF 23311 23312fi 23313 23314 23315 23316 23317 23318 23319 23320 23321 23322 23323 23324 23325 23326 23327 23328 23329 23330 23331 23332 23333 23334 23335 23336 23337 23338 23339 23340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ." >&5 23341$as_echo "." >&6; } 23342 23343if test $module_debug -eq 1; then 23344 23345 cat >> configure-summary << EOF 23346 Agent MIB code: $module_list 23347EOF 23348 23349fi 23350 23351 cat >> configure-summary << EOF 23352 Agent MIB code: $top_level_modules 23353EOF 23354 23355 23356# end hairy agent module processing 23357 23358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if directories need to be created" >&5 23359$as_echo_n "checking if directories need to be created... " >&6; } 23360for i in $module_directories; do 23361 $srcdir/mkinstalldirs $i 23362done 23363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ." >&5 23364$as_echo "." >&6; } 23365 23366#------------------- 23367# Define default mibs 23368# 23369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default mib files to read" >&5 23370$as_echo_n "checking default mib files to read... " >&6; } 23371if test "x$NETSNMP_DEFAULT_MIBS" = "x"; then 23372 NETSNMP_DEFAULT_MIBS="$default_mibs" 23373fi 23374if test "x$ENV_SEPARATOR" != "x"; then 23375 : 23376elif test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc" -o "x$PARTIALTARGETOS" = "xcygwin"; then 23377 # mingw32 and cygwin use ';' as the default environment variable separator 23378 ENV_SEPARATOR=";" 23379 NETSNMP_DEFAULT_MIBS=`echo "$NETSNMP_DEFAULT_MIBS" | $SED 's/:/;/g'` 23380 default_mibs=`echo "$default_mibs" | $SED 's/:/;/g'` 23381else 23382 ENV_SEPARATOR=":" 23383fi 23384 23385 23386cat >>confdefs.h <<_ACEOF 23387#define ENV_SEPARATOR "$ENV_SEPARATOR" 23388_ACEOF 23389 23390 23391cat >>confdefs.h <<_ACEOF 23392#define ENV_SEPARATOR_CHAR '$ENV_SEPARATOR' 23393_ACEOF 23394 23395cat >>confdefs.h <<_ACEOF 23396#define NETSNMP_DEFAULT_MIBS "$NETSNMP_DEFAULT_MIBS" 23397_ACEOF 23398 23399 23400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_DEFAULT_MIBS" >&5 23401$as_echo "$NETSNMP_DEFAULT_MIBS" >&6; } 23402 23403#------------------- 23404# Define symbols for conditional compilation in makefiles 23405# 23406 23407if echo " $agent_module_list " | \ 23408 fgrep ' agentx/agentx_config ' | \ 23409 fgrep ' agentx/protocol ' > /dev/null ; then 23410 NETSNMP_HAVE_AGENTX_LIBS_TRUE='' 23411 NETSNMP_HAVE_AGENTX_LIBS_FALSE='#' 23412else 23413 NETSNMP_HAVE_AGENTX_LIBS_TRUE='#' 23414 NETSNMP_HAVE_AGENTX_LIBS_FALSE='' 23415fi 23416 23417 23418 23419# -*- autoconf -*- 23420######################################### 23421## 23422# Miscellaneous checks 23423## 23424######################################### 23425 23426## 23427# Compilation-related 23428## 23429 23430# Dynamic modules require Position-Independent Code 23431# LIB_CFLAGS/DLLIBS: used in agent Makefile only 23432# 23433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to build PIC code" >&5 23434$as_echo_n "checking whether we have to build PIC code... " >&6; } 23435echo " $module_list " | $GREP " ucd-snmp/dlmod " >/dev/null 23436if test $? -eq 0 ; then 23437 LIB_CFLAGS="$LIB_CFLAGS $SHLIB_CFLAGS" 23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23439$as_echo "yes" >&6; } 23440else 23441 DLLIBS="" 23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23443$as_echo "no" >&6; } 23444fi 23445 23446 23447# -*- autoconf -*- 23448######################################### 23449## 23450# Checks for libraries that are run 23451# after the agent module tests. 23452## 23453######################################### 23454 23455# HAVE_LIB Definitions used in the Net-SNMP code base: 23456# 23457# HAVE_LIBCRYPTO: apps 23458# HAVE_LIBRPM: agent 23459# 23460 23461## 23462# Simple checks: 23463## 23464 23465# ELF libraries 23466# Typically used for 'nlist' (needed for uptime) 23467# 23468if test "x$with_elf" != "xno"; then 23469case $target_os in 23470 linux*) # add hosts which don't use nlist here 23471 ;; 23472 irix*) # Check for nlist in mld (irix) 23473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5 23474$as_echo_n "checking for nlist in -lelf... " >&6; } 23475if ${ac_cv_lib_elf_nlist+:} false; then : 23476 $as_echo_n "(cached) " >&6 23477else 23478 ac_check_lib_save_LIBS=$LIBS 23479LIBS="-lelf $LIBS" 23480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23481/* end confdefs.h. */ 23482 23483/* Override any GCC internal prototype to avoid an error. 23484 Use char because int might match the return type of a GCC 23485 builtin and then its argument prototype would still apply. */ 23486#ifdef __cplusplus 23487extern "C" 23488#endif 23489char nlist (); 23490int 23491main () 23492{ 23493return nlist (); 23494 ; 23495 return 0; 23496} 23497_ACEOF 23498if ac_fn_c_try_link "$LINENO"; then : 23499 ac_cv_lib_elf_nlist=yes 23500else 23501 ac_cv_lib_elf_nlist=no 23502fi 23503rm -f core conftest.err conftest.$ac_objext \ 23504 conftest$ac_exeext conftest.$ac_ext 23505LIBS=$ac_check_lib_save_LIBS 23506fi 23507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5 23508$as_echo "$ac_cv_lib_elf_nlist" >&6; } 23509if test "x$ac_cv_lib_elf_nlist" = xyes; then : 23510 cat >>confdefs.h <<_ACEOF 23511#define HAVE_LIBELF 1 23512_ACEOF 23513 23514 LIBS="-lelf $LIBS" 23515 23516fi 23517 23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist64 in -lelf" >&5 23519$as_echo_n "checking for nlist64 in -lelf... " >&6; } 23520if ${ac_cv_lib_elf_nlist64+:} false; then : 23521 $as_echo_n "(cached) " >&6 23522else 23523 ac_check_lib_save_LIBS=$LIBS 23524LIBS="-lelf $LIBS" 23525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23526/* end confdefs.h. */ 23527 23528/* Override any GCC internal prototype to avoid an error. 23529 Use char because int might match the return type of a GCC 23530 builtin and then its argument prototype would still apply. */ 23531#ifdef __cplusplus 23532extern "C" 23533#endif 23534char nlist64 (); 23535int 23536main () 23537{ 23538return nlist64 (); 23539 ; 23540 return 0; 23541} 23542_ACEOF 23543if ac_fn_c_try_link "$LINENO"; then : 23544 ac_cv_lib_elf_nlist64=yes 23545else 23546 ac_cv_lib_elf_nlist64=no 23547fi 23548rm -f core conftest.err conftest.$ac_objext \ 23549 conftest$ac_exeext conftest.$ac_ext 23550LIBS=$ac_check_lib_save_LIBS 23551fi 23552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist64" >&5 23553$as_echo "$ac_cv_lib_elf_nlist64" >&6; } 23554if test "x$ac_cv_lib_elf_nlist64" = xyes; then : 23555 cat >>confdefs.h <<_ACEOF 23556#define HAVE_LIBELF 1 23557_ACEOF 23558 23559 LIBS="-lelf $LIBS" 23560 23561fi 23562 23563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lmld" >&5 23564$as_echo_n "checking for nlist in -lmld... " >&6; } 23565if ${ac_cv_lib_mld_nlist+:} false; then : 23566 $as_echo_n "(cached) " >&6 23567else 23568 ac_check_lib_save_LIBS=$LIBS 23569LIBS="-lmld $LIBS" 23570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23571/* end confdefs.h. */ 23572 23573/* Override any GCC internal prototype to avoid an error. 23574 Use char because int might match the return type of a GCC 23575 builtin and then its argument prototype would still apply. */ 23576#ifdef __cplusplus 23577extern "C" 23578#endif 23579char nlist (); 23580int 23581main () 23582{ 23583return nlist (); 23584 ; 23585 return 0; 23586} 23587_ACEOF 23588if ac_fn_c_try_link "$LINENO"; then : 23589 ac_cv_lib_mld_nlist=yes 23590else 23591 ac_cv_lib_mld_nlist=no 23592fi 23593rm -f core conftest.err conftest.$ac_objext \ 23594 conftest$ac_exeext conftest.$ac_ext 23595LIBS=$ac_check_lib_save_LIBS 23596fi 23597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mld_nlist" >&5 23598$as_echo "$ac_cv_lib_mld_nlist" >&6; } 23599if test "x$ac_cv_lib_mld_nlist" = xyes; then : 23600 cat >>confdefs.h <<_ACEOF 23601#define HAVE_LIBMLD 1 23602_ACEOF 23603 23604 LIBS="-lmld $LIBS" 23605 23606fi 23607 23608 ;; 23609 *) # default 23610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5 23611$as_echo_n "checking for nlist in -lelf... " >&6; } 23612if ${ac_cv_lib_elf_nlist+:} false; then : 23613 $as_echo_n "(cached) " >&6 23614else 23615 ac_check_lib_save_LIBS=$LIBS 23616LIBS="-lelf $LIBS" 23617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23618/* end confdefs.h. */ 23619 23620/* Override any GCC internal prototype to avoid an error. 23621 Use char because int might match the return type of a GCC 23622 builtin and then its argument prototype would still apply. */ 23623#ifdef __cplusplus 23624extern "C" 23625#endif 23626char nlist (); 23627int 23628main () 23629{ 23630return nlist (); 23631 ; 23632 return 0; 23633} 23634_ACEOF 23635if ac_fn_c_try_link "$LINENO"; then : 23636 ac_cv_lib_elf_nlist=yes 23637else 23638 ac_cv_lib_elf_nlist=no 23639fi 23640rm -f core conftest.err conftest.$ac_objext \ 23641 conftest$ac_exeext conftest.$ac_ext 23642LIBS=$ac_check_lib_save_LIBS 23643fi 23644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5 23645$as_echo "$ac_cv_lib_elf_nlist" >&6; } 23646if test "x$ac_cv_lib_elf_nlist" = xyes; then : 23647 cat >>confdefs.h <<_ACEOF 23648#define HAVE_LIBELF 1 23649_ACEOF 23650 23651 LIBS="-lelf $LIBS" 23652 23653fi 23654 23655 ;; 23656esac 23657fi 23658 23659 23660# libsocket 23661# Needed for 'socket(2)' (Solaris) 23662# Possibly also for 'gethostname(3)' (non-Solaris) 23663# (alternatively in libnsl (Solaris) 23664# or in libws2_32) (MinGW) 23665# 23666case x$with_socklib in 23667xwinsock2) 23668 # libws2_w32 (MinGW) 23669 # 23670 netsnmp_save_LIBS="$LIBS" 23671 LIBS="$LIBS -lws2_32" 23672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23673/* end confdefs.h. */ 23674 23675 #include <winsock2.h> 23676 23677int 23678main () 23679{ 23680 23681 socket(0, 0, 0); 23682 gethostbyname(0); 23683 23684 ; 23685 return 0; 23686} 23687_ACEOF 23688if ac_fn_c_try_link "$LINENO"; then : 23689 23690 # Keep LIBS. 23691 true 23692 23693else 23694 23695 # Restore LIBS and complain. 23696 LIBS="$netsnmp_save_LIBS" 23697 as_fn_error $? "libws2_32 not found." "$LINENO" 5 23698 23699fi 23700rm -f core conftest.err conftest.$ac_objext \ 23701 conftest$ac_exeext conftest.$ac_ext 23702 ;; 23703*) 23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 23705$as_echo_n "checking for library containing socket... " >&6; } 23706if ${ac_cv_search_socket+:} false; then : 23707 $as_echo_n "(cached) " >&6 23708else 23709 ac_func_search_save_LIBS=$LIBS 23710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23711/* end confdefs.h. */ 23712 23713/* Override any GCC internal prototype to avoid an error. 23714 Use char because int might match the return type of a GCC 23715 builtin and then its argument prototype would still apply. */ 23716#ifdef __cplusplus 23717extern "C" 23718#endif 23719char socket (); 23720int 23721main () 23722{ 23723return socket (); 23724 ; 23725 return 0; 23726} 23727_ACEOF 23728for ac_lib in '' socket; do 23729 if test -z "$ac_lib"; then 23730 ac_res="none required" 23731 else 23732 ac_res=-l$ac_lib 23733 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23734 fi 23735 if ac_fn_c_try_link "$LINENO"; then : 23736 ac_cv_search_socket=$ac_res 23737fi 23738rm -f core conftest.err conftest.$ac_objext \ 23739 conftest$ac_exeext 23740 if ${ac_cv_search_socket+:} false; then : 23741 break 23742fi 23743done 23744if ${ac_cv_search_socket+:} false; then : 23745 23746else 23747 ac_cv_search_socket=no 23748fi 23749rm conftest.$ac_ext 23750LIBS=$ac_func_search_save_LIBS 23751fi 23752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 23753$as_echo "$ac_cv_search_socket" >&6; } 23754ac_res=$ac_cv_search_socket 23755if test "$ac_res" != no; then : 23756 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23757 23758else 23759 as_fn_error $? "socket(2) not found." "$LINENO" 5 23760fi 23761 23762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 23763$as_echo_n "checking for library containing gethostbyname... " >&6; } 23764if ${ac_cv_search_gethostbyname+:} false; then : 23765 $as_echo_n "(cached) " >&6 23766else 23767 ac_func_search_save_LIBS=$LIBS 23768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23769/* end confdefs.h. */ 23770 23771/* Override any GCC internal prototype to avoid an error. 23772 Use char because int might match the return type of a GCC 23773 builtin and then its argument prototype would still apply. */ 23774#ifdef __cplusplus 23775extern "C" 23776#endif 23777char gethostbyname (); 23778int 23779main () 23780{ 23781return gethostbyname (); 23782 ; 23783 return 0; 23784} 23785_ACEOF 23786for ac_lib in '' nsl socket; do 23787 if test -z "$ac_lib"; then 23788 ac_res="none required" 23789 else 23790 ac_res=-l$ac_lib 23791 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23792 fi 23793 if ac_fn_c_try_link "$LINENO"; then : 23794 ac_cv_search_gethostbyname=$ac_res 23795fi 23796rm -f core conftest.err conftest.$ac_objext \ 23797 conftest$ac_exeext 23798 if ${ac_cv_search_gethostbyname+:} false; then : 23799 break 23800fi 23801done 23802if ${ac_cv_search_gethostbyname+:} false; then : 23803 23804else 23805 ac_cv_search_gethostbyname=no 23806fi 23807rm conftest.$ac_ext 23808LIBS=$ac_func_search_save_LIBS 23809fi 23810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 23811$as_echo "$ac_cv_search_gethostbyname" >&6; } 23812ac_res=$ac_cv_search_gethostbyname 23813if test "$ac_res" != no; then : 23814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23815 23816fi 23817 23818 for ac_func in gethostbyname 23819do : 23820 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 23821if test "x$ac_cv_func_gethostbyname" = xyes; then : 23822 cat >>confdefs.h <<_ACEOF 23823#define HAVE_GETHOSTBYNAME 1 23824_ACEOF 23825 23826fi 23827done 23828 23829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5 23830$as_echo_n "checking for library containing gethostbyaddr... " >&6; } 23831if ${ac_cv_search_gethostbyaddr+:} false; then : 23832 $as_echo_n "(cached) " >&6 23833else 23834 ac_func_search_save_LIBS=$LIBS 23835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23836/* end confdefs.h. */ 23837 23838/* Override any GCC internal prototype to avoid an error. 23839 Use char because int might match the return type of a GCC 23840 builtin and then its argument prototype would still apply. */ 23841#ifdef __cplusplus 23842extern "C" 23843#endif 23844char gethostbyaddr (); 23845int 23846main () 23847{ 23848return gethostbyaddr (); 23849 ; 23850 return 0; 23851} 23852_ACEOF 23853for ac_lib in '' nsl socket; do 23854 if test -z "$ac_lib"; then 23855 ac_res="none required" 23856 else 23857 ac_res=-l$ac_lib 23858 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23859 fi 23860 if ac_fn_c_try_link "$LINENO"; then : 23861 ac_cv_search_gethostbyaddr=$ac_res 23862fi 23863rm -f core conftest.err conftest.$ac_objext \ 23864 conftest$ac_exeext 23865 if ${ac_cv_search_gethostbyaddr+:} false; then : 23866 break 23867fi 23868done 23869if ${ac_cv_search_gethostbyaddr+:} false; then : 23870 23871else 23872 ac_cv_search_gethostbyaddr=no 23873fi 23874rm conftest.$ac_ext 23875LIBS=$ac_func_search_save_LIBS 23876fi 23877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5 23878$as_echo "$ac_cv_search_gethostbyaddr" >&6; } 23879ac_res=$ac_cv_search_gethostbyaddr 23880if test "$ac_res" != no; then : 23881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23882 23883fi 23884 23885 for ac_func in gethostbyaddr 23886do : 23887 ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr" 23888if test "x$ac_cv_func_gethostbyaddr" = xyes; then : 23889 cat >>confdefs.h <<_ACEOF 23890#define HAVE_GETHOSTBYADDR 1 23891_ACEOF 23892 23893fi 23894done 23895 23896 ;; 23897esac 23898 23899 23900# libiphlpapi (Cygwin and MinGW) 23901# 23902netsnmp_save_LIBS="$LIBS" 23903LIBS="$LIBS -liphlpapi" 23904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23905/* end confdefs.h. */ 23906 23907 #include <winsock2.h> 23908 #include <iphlpapi.h> 23909 23910int 23911main () 23912{ 23913 23914 IpRenewAddress(0); 23915 23916 ; 23917 return 0; 23918} 23919_ACEOF 23920if ac_fn_c_try_link "$LINENO"; then : 23921 23922 # Keep LIBS. 23923 true 23924 23925else 23926 23927 # Restore LIBS and complain. 23928 LIBS="$netsnmp_save_LIBS" 23929 case x$with_socklib in 23930 xwinsock2) 23931 as_fn_error $? "libiphlpapi not found." "$LINENO" 5 23932 ;; 23933 esac 23934 23935fi 23936rm -f core conftest.err conftest.$ac_objext \ 23937 conftest$ac_exeext conftest.$ac_ext 23938 23939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MIB_IF_TABLE2" >&5 23940$as_echo_n "checking for MIB_IF_TABLE2... " >&6; } 23941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23942/* end confdefs.h. */ 23943 23944 #define _WIN32_WINNT 0xffff 23945 #include <winsock2.h> 23946 #include <ws2tcpip.h> 23947 #include <iphlpapi.h> 23948 23949int 23950main () 23951{ 23952 23953 return sizeof(MIB_IF_TABLE2) 23954 23955 ; 23956 return 0; 23957} 23958_ACEOF 23959if ac_fn_c_try_link "$LINENO"; then : 23960 23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23962$as_echo "yes" >&6; } 23963 23964$as_echo "#define HAVE_MIB_IF_TABLE2 1" >>confdefs.h 23965 23966else 23967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23968$as_echo "no" >&6; } 23969fi 23970rm -f core conftest.err conftest.$ac_objext \ 23971 conftest$ac_exeext conftest.$ac_ext 23972 23973 23974# libregex (MinGW) 23975# 23976netsnmp_save_LIBS="$LIBS" 23977LIBS="$LIBS -lregex" 23978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23979/* end confdefs.h. */ 23980 23981 #include <sys/types.h> 23982 #include <regex.h> 23983 23984int 23985main () 23986{ 23987 23988 regcomp(0, 0, 0); 23989 23990 ; 23991 return 0; 23992} 23993_ACEOF 23994if ac_fn_c_try_link "$LINENO"; then : 23995 23996 # Keep LIBS. 23997 true 23998 23999else 24000 24001 # Restore LIBS. 24002 LIBS="$netsnmp_save_LIBS" 24003 24004fi 24005rm -f core conftest.err conftest.$ac_objext \ 24006 conftest$ac_exeext conftest.$ac_ext 24007 24008 24009# libsnmpapi (MinGW) 24010# 24011netsnmp_save_LIBS="$LIBS" 24012LIBS="$LIBS -lsnmpapi" 24013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24014/* end confdefs.h. */ 24015 24016 #include <snmp.h> 24017 24018int 24019main () 24020{ 24021 24022 SnmpUtilMemAlloc(0); 24023 24024 ; 24025 return 0; 24026} 24027_ACEOF 24028if ac_fn_c_try_link "$LINENO"; then : 24029 24030 # Keep LIBS. 24031 true 24032 24033else 24034 24035 # Restore LIBS. 24036 LIBS="$netsnmp_save_LIBS" 24037 24038fi 24039rm -f core conftest.err conftest.$ac_objext \ 24040 conftest$ac_exeext conftest.$ac_ext 24041 24042 24043# kstat library (Solaris) 24044# 24045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_lookup in -lkstat" >&5 24046$as_echo_n "checking for kstat_lookup in -lkstat... " >&6; } 24047if ${ac_cv_lib_kstat_kstat_lookup+:} false; then : 24048 $as_echo_n "(cached) " >&6 24049else 24050 ac_check_lib_save_LIBS=$LIBS 24051LIBS="-lkstat $LIBS" 24052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24053/* end confdefs.h. */ 24054 24055/* Override any GCC internal prototype to avoid an error. 24056 Use char because int might match the return type of a GCC 24057 builtin and then its argument prototype would still apply. */ 24058#ifdef __cplusplus 24059extern "C" 24060#endif 24061char kstat_lookup (); 24062int 24063main () 24064{ 24065return kstat_lookup (); 24066 ; 24067 return 0; 24068} 24069_ACEOF 24070if ac_fn_c_try_link "$LINENO"; then : 24071 ac_cv_lib_kstat_kstat_lookup=yes 24072else 24073 ac_cv_lib_kstat_kstat_lookup=no 24074fi 24075rm -f core conftest.err conftest.$ac_objext \ 24076 conftest$ac_exeext conftest.$ac_ext 24077LIBS=$ac_check_lib_save_LIBS 24078fi 24079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_lookup" >&5 24080$as_echo "$ac_cv_lib_kstat_kstat_lookup" >&6; } 24081if test "x$ac_cv_lib_kstat_kstat_lookup" = xyes; then : 24082 LNETSNMPLIBS="$LNETSNMPLIBS -lkstat" 24083fi 24084 24085 24086 24087# socket library (Solaris) 24088# 24089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any in -lsocket" >&5 24090$as_echo_n "checking for in6addr_any in -lsocket... " >&6; } 24091if ${ac_cv_lib_socket_in6addr_any+:} false; then : 24092 $as_echo_n "(cached) " >&6 24093else 24094 ac_check_lib_save_LIBS=$LIBS 24095LIBS="-lsocket $LIBS" 24096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24097/* end confdefs.h. */ 24098 24099/* Override any GCC internal prototype to avoid an error. 24100 Use char because int might match the return type of a GCC 24101 builtin and then its argument prototype would still apply. */ 24102#ifdef __cplusplus 24103extern "C" 24104#endif 24105char in6addr_any (); 24106int 24107main () 24108{ 24109return in6addr_any (); 24110 ; 24111 return 0; 24112} 24113_ACEOF 24114if ac_fn_c_try_link "$LINENO"; then : 24115 ac_cv_lib_socket_in6addr_any=yes 24116else 24117 ac_cv_lib_socket_in6addr_any=no 24118fi 24119rm -f core conftest.err conftest.$ac_objext \ 24120 conftest$ac_exeext conftest.$ac_ext 24121LIBS=$ac_check_lib_save_LIBS 24122fi 24123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_in6addr_any" >&5 24124$as_echo "$ac_cv_lib_socket_in6addr_any" >&6; } 24125if test "x$ac_cv_lib_socket_in6addr_any" = xyes; then : 24126 LNETSNMPLIBS="$LNETSNMPLIBS -lsocket" 24127fi 24128 24129 24130 24131# 24132# librt 24133# 24134 24135 24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 24137$as_echo_n "checking for library containing clock_gettime... " >&6; } 24138if ${netsnmp_cv_func_clock_gettime_LNETSNMPLIBS+:} false; then : 24139 $as_echo_n "(cached) " >&6 24140else 24141 netsnmp_func_search_save_LIBS="$LIBS" 24142 netsnmp_target_val="$LNETSNMPLIBS" 24143 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 24144 netsnmp_result=no 24145 LIBS="${netsnmp_temp_LIBS}" 24146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24147/* end confdefs.h. */ 24148 24149/* Override any GCC internal prototype to avoid an error. 24150 Use char because int might match the return type of a GCC 24151 builtin and then its argument prototype would still apply. */ 24152#ifdef __cplusplus 24153extern "C" 24154#endif 24155char clock_gettime (); 24156int 24157main () 24158{ 24159return clock_gettime (); 24160 ; 24161 return 0; 24162} 24163_ACEOF 24164if ac_fn_c_try_link "$LINENO"; then : 24165 netsnmp_result="none required" 24166else 24167 for netsnmp_cur_lib in rt ; do 24168 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 24169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24170/* end confdefs.h. */ 24171 24172/* Override any GCC internal prototype to avoid an error. 24173 Use char because int might match the return type of a GCC 24174 builtin and then its argument prototype would still apply. */ 24175#ifdef __cplusplus 24176extern "C" 24177#endif 24178char clock_gettime (); 24179int 24180main () 24181{ 24182return clock_gettime (); 24183 ; 24184 return 0; 24185} 24186_ACEOF 24187if ac_fn_c_try_link "$LINENO"; then : 24188 netsnmp_result=-l${netsnmp_cur_lib} 24189 break 24190fi 24191rm -f core conftest.err conftest.$ac_objext \ 24192 conftest$ac_exeext conftest.$ac_ext 24193 done 24194fi 24195rm -f core conftest.err conftest.$ac_objext \ 24196 conftest$ac_exeext conftest.$ac_ext 24197 LIBS="${netsnmp_func_search_save_LIBS}" 24198 netsnmp_cv_func_clock_gettime_LNETSNMPLIBS="${netsnmp_result}" 24199fi 24200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_clock_gettime_LNETSNMPLIBS" >&5 24201$as_echo "$netsnmp_cv_func_clock_gettime_LNETSNMPLIBS" >&6; } 24202 if test "x${netsnmp_cv_func_clock_gettime_LNETSNMPLIBS}" != "xno" ; then 24203 if test "x${netsnmp_cv_func_clock_gettime_LNETSNMPLIBS}" != "xnone required" ; then 24204 LNETSNMPLIBS="${netsnmp_result} ${netsnmp_target_val}" 24205 fi 24206 24207$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 24208 24209 24210 fi 24211 24212 24213 24214## 24215# MIB-module-specific checks 24216## 24217 24218# libdevstat 24219# (for diskIO MIB) 24220# 24221# Not-Used: HAVE_GETDEVS/HAVE_DEVSTAT_GETDEVS 24222# 24223echo " $module_list " | $GREP " ucd-snmp/diskio " >/dev/null 24224if test $? -eq 0 ; then 24225 24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getdevs" >&5 24227$as_echo_n "checking for library containing getdevs... " >&6; } 24228if ${netsnmp_cv_func_getdevs_LMIBLIBS+:} false; then : 24229 $as_echo_n "(cached) " >&6 24230else 24231 netsnmp_func_search_save_LIBS="$LIBS" 24232 netsnmp_target_val="$LMIBLIBS" 24233 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 24234 netsnmp_result=no 24235 LIBS="${netsnmp_temp_LIBS}" 24236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24237/* end confdefs.h. */ 24238 24239/* Override any GCC internal prototype to avoid an error. 24240 Use char because int might match the return type of a GCC 24241 builtin and then its argument prototype would still apply. */ 24242#ifdef __cplusplus 24243extern "C" 24244#endif 24245char getdevs (); 24246int 24247main () 24248{ 24249return getdevs (); 24250 ; 24251 return 0; 24252} 24253_ACEOF 24254if ac_fn_c_try_link "$LINENO"; then : 24255 netsnmp_result="none required" 24256else 24257 for netsnmp_cur_lib in devstat ; do 24258 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 24259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24260/* end confdefs.h. */ 24261 24262/* Override any GCC internal prototype to avoid an error. 24263 Use char because int might match the return type of a GCC 24264 builtin and then its argument prototype would still apply. */ 24265#ifdef __cplusplus 24266extern "C" 24267#endif 24268char getdevs (); 24269int 24270main () 24271{ 24272return getdevs (); 24273 ; 24274 return 0; 24275} 24276_ACEOF 24277if ac_fn_c_try_link "$LINENO"; then : 24278 netsnmp_result=-l${netsnmp_cur_lib} 24279 break 24280fi 24281rm -f core conftest.err conftest.$ac_objext \ 24282 conftest$ac_exeext conftest.$ac_ext 24283 done 24284fi 24285rm -f core conftest.err conftest.$ac_objext \ 24286 conftest$ac_exeext conftest.$ac_ext 24287 LIBS="${netsnmp_func_search_save_LIBS}" 24288 netsnmp_cv_func_getdevs_LMIBLIBS="${netsnmp_result}" 24289fi 24290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_getdevs_LMIBLIBS" >&5 24291$as_echo "$netsnmp_cv_func_getdevs_LMIBLIBS" >&6; } 24292 if test "x${netsnmp_cv_func_getdevs_LMIBLIBS}" != "xno" ; then 24293 if test "x${netsnmp_cv_func_getdevs_LMIBLIBS}" != "xnone required" ; then 24294 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 24295 fi 24296 24297$as_echo "#define HAVE_GETDEVS 1" >>confdefs.h 24298 24299 24300 fi 24301 24302 24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing devstat_getdevs" >&5 24304$as_echo_n "checking for library containing devstat_getdevs... " >&6; } 24305if ${netsnmp_cv_func_devstat_getdevs_LMIBLIBS+:} false; then : 24306 $as_echo_n "(cached) " >&6 24307else 24308 netsnmp_func_search_save_LIBS="$LIBS" 24309 netsnmp_target_val="$LMIBLIBS" 24310 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 24311 netsnmp_result=no 24312 LIBS="${netsnmp_temp_LIBS}" 24313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24314/* end confdefs.h. */ 24315 24316/* Override any GCC internal prototype to avoid an error. 24317 Use char because int might match the return type of a GCC 24318 builtin and then its argument prototype would still apply. */ 24319#ifdef __cplusplus 24320extern "C" 24321#endif 24322char devstat_getdevs (); 24323int 24324main () 24325{ 24326return devstat_getdevs (); 24327 ; 24328 return 0; 24329} 24330_ACEOF 24331if ac_fn_c_try_link "$LINENO"; then : 24332 netsnmp_result="none required" 24333else 24334 for netsnmp_cur_lib in devstat ; do 24335 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 24336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24337/* end confdefs.h. */ 24338 24339/* Override any GCC internal prototype to avoid an error. 24340 Use char because int might match the return type of a GCC 24341 builtin and then its argument prototype would still apply. */ 24342#ifdef __cplusplus 24343extern "C" 24344#endif 24345char devstat_getdevs (); 24346int 24347main () 24348{ 24349return devstat_getdevs (); 24350 ; 24351 return 0; 24352} 24353_ACEOF 24354if ac_fn_c_try_link "$LINENO"; then : 24355 netsnmp_result=-l${netsnmp_cur_lib} 24356 break 24357fi 24358rm -f core conftest.err conftest.$ac_objext \ 24359 conftest$ac_exeext conftest.$ac_ext 24360 done 24361fi 24362rm -f core conftest.err conftest.$ac_objext \ 24363 conftest$ac_exeext conftest.$ac_ext 24364 LIBS="${netsnmp_func_search_save_LIBS}" 24365 netsnmp_cv_func_devstat_getdevs_LMIBLIBS="${netsnmp_result}" 24366fi 24367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_devstat_getdevs_LMIBLIBS" >&5 24368$as_echo "$netsnmp_cv_func_devstat_getdevs_LMIBLIBS" >&6; } 24369 if test "x${netsnmp_cv_func_devstat_getdevs_LMIBLIBS}" != "xno" ; then 24370 if test "x${netsnmp_cv_func_devstat_getdevs_LMIBLIBS}" != "xnone required" ; then 24371 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 24372 fi 24373 24374$as_echo "#define HAVE_DEVSTAT_GETDEVS 1" >>confdefs.h 24375 24376 24377 fi 24378 24379fi 24380 24381# libpci 24382# (for if-mib description) 24383# 24384 24385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pci_lookup_name" >&5 24386$as_echo_n "checking for library containing pci_lookup_name... " >&6; } 24387if ${netsnmp_cv_func_pci_lookup_name_LMIBLIBS+:} false; then : 24388 $as_echo_n "(cached) " >&6 24389else 24390 netsnmp_func_search_save_LIBS="$LIBS" 24391 netsnmp_target_val="$LMIBLIBS" 24392 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 24393 netsnmp_result=no 24394 LIBS="${netsnmp_temp_LIBS}" 24395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24396/* end confdefs.h. */ 24397 24398/* Override any GCC internal prototype to avoid an error. 24399 Use char because int might match the return type of a GCC 24400 builtin and then its argument prototype would still apply. */ 24401#ifdef __cplusplus 24402extern "C" 24403#endif 24404char pci_lookup_name (); 24405int 24406main () 24407{ 24408disabled broken (); 24409 ; 24410 return 0; 24411} 24412_ACEOF 24413if ac_fn_c_try_link "$LINENO"; then : 24414 netsnmp_result="none required" 24415else 24416 for netsnmp_cur_lib in pci ; do 24417 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 24418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24419/* end confdefs.h. */ 24420 24421/* Override any GCC internal prototype to avoid an error. 24422 Use char because int might match the return type of a GCC 24423 builtin and then its argument prototype would still apply. */ 24424#ifdef __cplusplus 24425extern "C" 24426#endif 24427char pci_lookup_name (); 24428int 24429main () 24430{ 24431disabled broken (); 24432 ; 24433 return 0; 24434} 24435_ACEOF 24436if ac_fn_c_try_link "$LINENO"; then : 24437 netsnmp_result=-l${netsnmp_cur_lib} 24438 break 24439fi 24440rm -f core conftest.err conftest.$ac_objext \ 24441 conftest$ac_exeext conftest.$ac_ext 24442 done 24443fi 24444rm -f core conftest.err conftest.$ac_objext \ 24445 conftest$ac_exeext conftest.$ac_ext 24446 LIBS="${netsnmp_func_search_save_LIBS}" 24447 netsnmp_cv_func_pci_lookup_name_LMIBLIBS="${netsnmp_result}" 24448fi 24449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_pci_lookup_name_LMIBLIBS" >&5 24450$as_echo "$netsnmp_cv_func_pci_lookup_name_LMIBLIBS" >&6; } 24451 if test "x${netsnmp_cv_func_pci_lookup_name_LMIBLIBS}" != "xno" ; then 24452 if test "x${netsnmp_cv_func_pci_lookup_name_LMIBLIBS}" != "xnone required" ; then 24453 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 24454 fi 24455 24456$as_echo "#define HAVE_PCI_LOOKUP_NAME 1" >>confdefs.h 24457 24458 24459 fi 24460 24461 24462# LM-SENSORS-MIB support 24463# 24464echo " $module_list " | $GREP -i "ucd-snmp/lmsensor" > /dev/null 24465if test $? -eq 0 ; then 24466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors support" >&5 24467$as_echo_n "checking for sensors support... " >&6; } 24468 case $target_os in 24469 solaris*) 24470 # Agent: HAVE_PICL_H 24471 # 24472 ac_fn_c_check_header_mongrel "$LINENO" "picl.h" "ac_cv_header_picl_h" "$ac_includes_default" 24473if test "x$ac_cv_header_picl_h" = xyes; then : 24474 LMIBLIBS="${LMIBLIBS} -lpicl" 24475fi 24476 24477 24478 for ac_header in picl.h 24479do : 24480 ac_fn_c_check_header_mongrel "$LINENO" "picl.h" "ac_cv_header_picl_h" "$ac_includes_default" 24481if test "x$ac_cv_header_picl_h" = xyes; then : 24482 cat >>confdefs.h <<_ACEOF 24483#define HAVE_PICL_H 1 24484_ACEOF 24485 24486fi 24487 24488done 24489 24490 ;; 24491 *) 24492 # Not-Used: HAVE_SENSORS_SENSORS_H 24493 # 24494 ac_fn_c_check_header_mongrel "$LINENO" "sensors/sensors.h" "ac_cv_header_sensors_sensors_h" "$ac_includes_default" 24495if test "x$ac_cv_header_sensors_sensors_h" = xyes; then : 24496 24497else 24498 as_fn_error $? "asked to use lm_sensors but I couldn't find sensors/sensors.h" "$LINENO" 5 24499fi 24500 24501 24502 24503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sensors_get_detected_chips" >&5 24504$as_echo_n "checking for library containing sensors_get_detected_chips... " >&6; } 24505if ${netsnmp_cv_func_sensors_get_detected_chips_LMIBLIBS+:} false; then : 24506 $as_echo_n "(cached) " >&6 24507else 24508 netsnmp_func_search_save_LIBS="$LIBS" 24509 netsnmp_target_val="$LMIBLIBS" 24510 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 24511 netsnmp_result=no 24512 LIBS="${netsnmp_temp_LIBS}" 24513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24514/* end confdefs.h. */ 24515 24516/* Override any GCC internal prototype to avoid an error. 24517 Use char because int might match the return type of a GCC 24518 builtin and then its argument prototype would still apply. */ 24519#ifdef __cplusplus 24520extern "C" 24521#endif 24522char sensors_get_detected_chips (); 24523int 24524main () 24525{ 24526return sensors_get_detected_chips (); 24527 ; 24528 return 0; 24529} 24530_ACEOF 24531if ac_fn_c_try_link "$LINENO"; then : 24532 netsnmp_result="none required" 24533else 24534 for netsnmp_cur_lib in sensors ; do 24535 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 24536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24537/* end confdefs.h. */ 24538 24539/* Override any GCC internal prototype to avoid an error. 24540 Use char because int might match the return type of a GCC 24541 builtin and then its argument prototype would still apply. */ 24542#ifdef __cplusplus 24543extern "C" 24544#endif 24545char sensors_get_detected_chips (); 24546int 24547main () 24548{ 24549return sensors_get_detected_chips (); 24550 ; 24551 return 0; 24552} 24553_ACEOF 24554if ac_fn_c_try_link "$LINENO"; then : 24555 netsnmp_result=-l${netsnmp_cur_lib} 24556 break 24557fi 24558rm -f core conftest.err conftest.$ac_objext \ 24559 conftest$ac_exeext conftest.$ac_ext 24560 done 24561fi 24562rm -f core conftest.err conftest.$ac_objext \ 24563 conftest$ac_exeext conftest.$ac_ext 24564 LIBS="${netsnmp_func_search_save_LIBS}" 24565 netsnmp_cv_func_sensors_get_detected_chips_LMIBLIBS="${netsnmp_result}" 24566fi 24567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_sensors_get_detected_chips_LMIBLIBS" >&5 24568$as_echo "$netsnmp_cv_func_sensors_get_detected_chips_LMIBLIBS" >&6; } 24569 if test "x${netsnmp_cv_func_sensors_get_detected_chips_LMIBLIBS}" != "xno" ; then 24570 if test "x${netsnmp_cv_func_sensors_get_detected_chips_LMIBLIBS}" != "xnone required" ; then 24571 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 24572 fi 24573 24574 else 24575 as_fn_error $? "asked to use lm_sensors but I couldn't find -lsensors" "$LINENO" 5 24576 fi 24577 24578 ;; 24579 esac 24580fi 24581 24582# 24583# libnl (netlink) 24584# 24585 24586if test "x$with_nl" != "xno"; then 24587 case $target_os in 24588 linux*) # Check for libnl (linux) 24589 # The test below verifies whether the libnl-3 package been installed. 24590 # This test works as follows: 24591 # - If pkg-config was not installed at the time autogen.sh was run, 24592 # the definition of the PKG_CHECK_EXISTS() macro will not be found by 24593 # autogen.sh. Augogen.sh will generate a configure script that prints 24594 # a warning about pkg-config and proceeds as if libnl-3 has not been 24595 # installed. 24596 # - If pkg-config was installed at the time autogen.sh was run, 24597 # the generated configure script will try to detect the presence of 24598 # the libnl-3 library by looking up compile and linker flags in the 24599 # file called libnl-3.pc. 24600 # - pkg-config settings can be overridden via the configure variables 24601 # LIBNL3_CFLAGS and LIBNL3_LIBS (added by the pkg-config m4 macro's to 24602 # the configure script -- see also ./configure --help). 24603 # - The LIBNL3_CFLAGS and LIBNL3_LIBS configure variables can be used 24604 # even if the pkg-config executable is not present on the system on 24605 # which the configure script is run. 24606 24607 24608 24609 24610 24611 24612 24613if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24614 if test -n "$ac_tool_prefix"; then 24615 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24616set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24618$as_echo_n "checking for $ac_word... " >&6; } 24619if ${ac_cv_path_PKG_CONFIG+:} false; then : 24620 $as_echo_n "(cached) " >&6 24621else 24622 case $PKG_CONFIG in 24623 [\\/]* | ?:[\\/]*) 24624 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24625 ;; 24626 *) 24627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24628for as_dir in $PATH 24629do 24630 IFS=$as_save_IFS 24631 test -z "$as_dir" && as_dir=. 24632 for ac_exec_ext in '' $ac_executable_extensions; do 24633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24634 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24636 break 2 24637 fi 24638done 24639 done 24640IFS=$as_save_IFS 24641 24642 ;; 24643esac 24644fi 24645PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24646if test -n "$PKG_CONFIG"; then 24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24648$as_echo "$PKG_CONFIG" >&6; } 24649else 24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24651$as_echo "no" >&6; } 24652fi 24653 24654 24655fi 24656if test -z "$ac_cv_path_PKG_CONFIG"; then 24657 ac_pt_PKG_CONFIG=$PKG_CONFIG 24658 # Extract the first word of "pkg-config", so it can be a program name with args. 24659set dummy pkg-config; ac_word=$2 24660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24661$as_echo_n "checking for $ac_word... " >&6; } 24662if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24663 $as_echo_n "(cached) " >&6 24664else 24665 case $ac_pt_PKG_CONFIG in 24666 [\\/]* | ?:[\\/]*) 24667 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24668 ;; 24669 *) 24670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24671for as_dir in $PATH 24672do 24673 IFS=$as_save_IFS 24674 test -z "$as_dir" && as_dir=. 24675 for ac_exec_ext in '' $ac_executable_extensions; do 24676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24677 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24679 break 2 24680 fi 24681done 24682 done 24683IFS=$as_save_IFS 24684 24685 ;; 24686esac 24687fi 24688ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24689if test -n "$ac_pt_PKG_CONFIG"; then 24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24691$as_echo "$ac_pt_PKG_CONFIG" >&6; } 24692else 24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24694$as_echo "no" >&6; } 24695fi 24696 24697 if test "x$ac_pt_PKG_CONFIG" = x; then 24698 PKG_CONFIG="" 24699 else 24700 case $cross_compiling:$ac_tool_warned in 24701yes:) 24702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24704ac_tool_warned=yes ;; 24705esac 24706 PKG_CONFIG=$ac_pt_PKG_CONFIG 24707 fi 24708else 24709 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24710fi 24711 24712fi 24713if test -n "$PKG_CONFIG"; then 24714 _pkg_min_version=0.9.0 24715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24716$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24717 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24719$as_echo "yes" >&6; } 24720 else 24721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24722$as_echo "no" >&6; } 24723 PKG_CONFIG="" 24724 fi 24725fi 24726if test -n "$PKG_CONFIG" && \ 24727 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0\""; } >&5 24728 ($PKG_CONFIG --exists --print-errors "libnl-3.0") 2>&5 24729 ac_status=$? 24730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24731 test $ac_status = 0; }; then 24732 24733pkg_failed=no 24734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL3" >&5 24735$as_echo_n "checking for LIBNL3... " >&6; } 24736 24737if test -n "$LIBNL3_CFLAGS"; then 24738 pkg_cv_LIBNL3_CFLAGS="$LIBNL3_CFLAGS" 24739 elif test -n "$PKG_CONFIG"; then 24740 if test -n "$PKG_CONFIG" && \ 24741 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0\""; } >&5 24742 ($PKG_CONFIG --exists --print-errors "libnl-3.0") 2>&5 24743 ac_status=$? 24744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24745 test $ac_status = 0; }; then 24746 pkg_cv_LIBNL3_CFLAGS=`$PKG_CONFIG --cflags "libnl-3.0" 2>/dev/null` 24747 test "x$?" != "x0" && pkg_failed=yes 24748else 24749 pkg_failed=yes 24750fi 24751 else 24752 pkg_failed=untried 24753fi 24754if test -n "$LIBNL3_LIBS"; then 24755 pkg_cv_LIBNL3_LIBS="$LIBNL3_LIBS" 24756 elif test -n "$PKG_CONFIG"; then 24757 if test -n "$PKG_CONFIG" && \ 24758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0\""; } >&5 24759 ($PKG_CONFIG --exists --print-errors "libnl-3.0") 2>&5 24760 ac_status=$? 24761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24762 test $ac_status = 0; }; then 24763 pkg_cv_LIBNL3_LIBS=`$PKG_CONFIG --libs "libnl-3.0" 2>/dev/null` 24764 test "x$?" != "x0" && pkg_failed=yes 24765else 24766 pkg_failed=yes 24767fi 24768 else 24769 pkg_failed=untried 24770fi 24771 24772 24773 24774if test $pkg_failed = yes; then 24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24776$as_echo "no" >&6; } 24777 24778if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24779 _pkg_short_errors_supported=yes 24780else 24781 _pkg_short_errors_supported=no 24782fi 24783 if test $_pkg_short_errors_supported = yes; then 24784 LIBNL3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-3.0" 2>&1` 24785 else 24786 LIBNL3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-3.0" 2>&1` 24787 fi 24788 # Put the nasty error message in config.log where it belongs 24789 echo "$LIBNL3_PKG_ERRORS" >&5 24790 24791 as_fn_error $? "Package requirements (libnl-3.0) were not met: 24792 24793$LIBNL3_PKG_ERRORS 24794 24795Consider adjusting the PKG_CONFIG_PATH environment variable if you 24796installed software in a non-standard prefix. 24797 24798Alternatively, you may set the environment variables LIBNL3_CFLAGS 24799and LIBNL3_LIBS to avoid the need to call pkg-config. 24800See the pkg-config man page for more details." "$LINENO" 5 24801elif test $pkg_failed = untried; then 24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24803$as_echo "no" >&6; } 24804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24806as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24807is in your PATH or set the PKG_CONFIG environment variable to the full 24808path to pkg-config. 24809 24810Alternatively, you may set the environment variables LIBNL3_CFLAGS 24811and LIBNL3_LIBS to avoid the need to call pkg-config. 24812See the pkg-config man page for more details. 24813 24814To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24815See \`config.log' for more details" "$LINENO" 5; } 24816else 24817 LIBNL3_CFLAGS=$pkg_cv_LIBNL3_CFLAGS 24818 LIBNL3_LIBS=$pkg_cv_LIBNL3_LIBS 24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24820$as_echo "yes" >&6; } 24821 24822fi 24823fi 24824 24825 24826 netsnmp_save_CPPFLAGS="$CPPFLAGS" 24827 CPPFLAGS="${LIBNL3_CFLAGS} $CPPFLAGS" 24828 24829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_connect" >&5 24830$as_echo_n "checking for library containing nl_connect... " >&6; } 24831if ${netsnmp_cv_func_nl_connect_LMIBLIBS+:} false; then : 24832 $as_echo_n "(cached) " >&6 24833else 24834 netsnmp_func_search_save_LIBS="$LIBS" 24835 netsnmp_target_val="$LMIBLIBS" 24836 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 24837 netsnmp_result=no 24838 LIBS="${netsnmp_temp_LIBS}" 24839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24840/* end confdefs.h. */ 24841 24842/* Override any GCC internal prototype to avoid an error. 24843 Use char because int might match the return type of a GCC 24844 builtin and then its argument prototype would still apply. */ 24845#ifdef __cplusplus 24846extern "C" 24847#endif 24848char nl_connect (); 24849int 24850main () 24851{ 24852return nl_connect (); 24853 ; 24854 return 0; 24855} 24856_ACEOF 24857if ac_fn_c_try_link "$LINENO"; then : 24858 netsnmp_result="none required" 24859else 24860 for netsnmp_cur_lib in nl-3 ; do 24861 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 24862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24863/* end confdefs.h. */ 24864 24865/* Override any GCC internal prototype to avoid an error. 24866 Use char because int might match the return type of a GCC 24867 builtin and then its argument prototype would still apply. */ 24868#ifdef __cplusplus 24869extern "C" 24870#endif 24871char nl_connect (); 24872int 24873main () 24874{ 24875return nl_connect (); 24876 ; 24877 return 0; 24878} 24879_ACEOF 24880if ac_fn_c_try_link "$LINENO"; then : 24881 netsnmp_result=-l${netsnmp_cur_lib} 24882 break 24883fi 24884rm -f core conftest.err conftest.$ac_objext \ 24885 conftest$ac_exeext conftest.$ac_ext 24886 done 24887fi 24888rm -f core conftest.err conftest.$ac_objext \ 24889 conftest$ac_exeext conftest.$ac_ext 24890 LIBS="${netsnmp_func_search_save_LIBS}" 24891 netsnmp_cv_func_nl_connect_LMIBLIBS="${netsnmp_result}" 24892fi 24893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_nl_connect_LMIBLIBS" >&5 24894$as_echo "$netsnmp_cv_func_nl_connect_LMIBLIBS" >&6; } 24895 if test "x${netsnmp_cv_func_nl_connect_LMIBLIBS}" != "xno" ; then 24896 if test "x${netsnmp_cv_func_nl_connect_LMIBLIBS}" != "xnone required" ; then 24897 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 24898 fi 24899 for ac_header in netlink/netlink.h 24900do : 24901 ac_fn_c_check_header_mongrel "$LINENO" "netlink/netlink.h" "ac_cv_header_netlink_netlink_h" "$ac_includes_default" 24902if test "x$ac_cv_header_netlink_netlink_h" = xyes; then : 24903 cat >>confdefs.h <<_ACEOF 24904#define HAVE_NETLINK_NETLINK_H 1 24905_ACEOF 24906 24907fi 24908 24909done 24910 24911 EXTERNAL_MIBGROUP_INCLUDES="$EXTERNAL_MIBGROUP_INCLUDES ${LIBNL3_CFLAGS}" 24912 else 24913 CPPFLAGS="$netsnmp_save_CPPFLAGS" 24914 fi 24915 24916 if test "x$ac_cv_header_netlink_netlink_h" != xyes; then 24917 24918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_connect" >&5 24919$as_echo_n "checking for library containing nl_connect... " >&6; } 24920if ${netsnmp_cv_func_nl_connect_LMIBLIBS+:} false; then : 24921 $as_echo_n "(cached) " >&6 24922else 24923 netsnmp_func_search_save_LIBS="$LIBS" 24924 netsnmp_target_val="$LMIBLIBS" 24925 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 24926 netsnmp_result=no 24927 LIBS="${netsnmp_temp_LIBS}" 24928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24929/* end confdefs.h. */ 24930 24931/* Override any GCC internal prototype to avoid an error. 24932 Use char because int might match the return type of a GCC 24933 builtin and then its argument prototype would still apply. */ 24934#ifdef __cplusplus 24935extern "C" 24936#endif 24937char nl_connect (); 24938int 24939main () 24940{ 24941return nl_connect (); 24942 ; 24943 return 0; 24944} 24945_ACEOF 24946if ac_fn_c_try_link "$LINENO"; then : 24947 netsnmp_result="none required" 24948else 24949 for netsnmp_cur_lib in nl ; do 24950 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 24951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24952/* end confdefs.h. */ 24953 24954/* Override any GCC internal prototype to avoid an error. 24955 Use char because int might match the return type of a GCC 24956 builtin and then its argument prototype would still apply. */ 24957#ifdef __cplusplus 24958extern "C" 24959#endif 24960char nl_connect (); 24961int 24962main () 24963{ 24964return nl_connect (); 24965 ; 24966 return 0; 24967} 24968_ACEOF 24969if ac_fn_c_try_link "$LINENO"; then : 24970 netsnmp_result=-l${netsnmp_cur_lib} 24971 break 24972fi 24973rm -f core conftest.err conftest.$ac_objext \ 24974 conftest$ac_exeext conftest.$ac_ext 24975 done 24976fi 24977rm -f core conftest.err conftest.$ac_objext \ 24978 conftest$ac_exeext conftest.$ac_ext 24979 LIBS="${netsnmp_func_search_save_LIBS}" 24980 netsnmp_cv_func_nl_connect_LMIBLIBS="${netsnmp_result}" 24981fi 24982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_nl_connect_LMIBLIBS" >&5 24983$as_echo "$netsnmp_cv_func_nl_connect_LMIBLIBS" >&6; } 24984 if test "x${netsnmp_cv_func_nl_connect_LMIBLIBS}" != "xno" ; then 24985 if test "x${netsnmp_cv_func_nl_connect_LMIBLIBS}" != "xnone required" ; then 24986 LMIBLIBS="${netsnmp_result} ${netsnmp_target_val}" 24987 fi 24988 24989 for ac_header in netlink/netlink.h 24990do : 24991 ac_fn_c_check_header_mongrel "$LINENO" "netlink/netlink.h" "ac_cv_header_netlink_netlink_h" "$ac_includes_default" 24992if test "x$ac_cv_header_netlink_netlink_h" = xyes; then : 24993 cat >>confdefs.h <<_ACEOF 24994#define HAVE_NETLINK_NETLINK_H 1 24995_ACEOF 24996 24997fi 24998 24999done 25000 25001 25002 fi 25003 25004 fi 25005 if test "x$ac_cv_header_netlink_netlink_h" = xyes; then 25006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25007/* end confdefs.h. */ 25008#include <netlink/socket.h> 25009 25010_ACEOF 25011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25012 $EGREP "nl_socket_free" >/dev/null 2>&1; then : 25013 25014$as_echo "#define HAVE_LIBNL3 1" >>confdefs.h 25015 25016fi 25017rm -f conftest* 25018 25019 fi 25020 ;; 25021 esac 25022fi 25023 25024 25025 25026## 25027# More complex checks: 25028## 25029 25030# Security related functions 25031# 25032NONAGENTLIBS=$LIBS # save old libraries 25033SSHPROG=no 25034TLSPROG=no 25035if test "x$tryopenssl" != "xno" -a "x$tryopenssl" != "xinternal"; then 25036 # check for libpkcs11 if asked 25037 if test "x$askedopenssl" != "xyes" -a "x$askedpkcs" = "xyes"; then 25038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C_Initialize in -lpkcs11" >&5 25039$as_echo_n "checking for C_Initialize in -lpkcs11... " >&6; } 25040if ${ac_cv_lib_pkcs11_C_Initialize+:} false; then : 25041 $as_echo_n "(cached) " >&6 25042else 25043 ac_check_lib_save_LIBS=$LIBS 25044LIBS="-lpkcs11 $LIBS" 25045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25046/* end confdefs.h. */ 25047 25048/* Override any GCC internal prototype to avoid an error. 25049 Use char because int might match the return type of a GCC 25050 builtin and then its argument prototype would still apply. */ 25051#ifdef __cplusplus 25052extern "C" 25053#endif 25054char C_Initialize (); 25055int 25056main () 25057{ 25058return C_Initialize (); 25059 ; 25060 return 0; 25061} 25062_ACEOF 25063if ac_fn_c_try_link "$LINENO"; then : 25064 ac_cv_lib_pkcs11_C_Initialize=yes 25065else 25066 ac_cv_lib_pkcs11_C_Initialize=no 25067fi 25068rm -f core conftest.err conftest.$ac_objext \ 25069 conftest$ac_exeext conftest.$ac_ext 25070LIBS=$ac_check_lib_save_LIBS 25071fi 25072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pkcs11_C_Initialize" >&5 25073$as_echo "$ac_cv_lib_pkcs11_C_Initialize" >&6; } 25074if test "x$ac_cv_lib_pkcs11_C_Initialize" = xyes; then : 25075 25076$as_echo "#define HAVE_LIBPKCS11 1" >>confdefs.h 25077 25078 LIBPKCS11="-lpkcs11" 25079fi 25080 25081 else 25082 if test "x$tryrsaref" != "xno"; then 25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPrivateDecrypt in -lrsaref" >&5 25084$as_echo_n "checking for RSAPrivateDecrypt in -lrsaref... " >&6; } 25085if ${ac_cv_lib_rsaref_RSAPrivateDecrypt+:} false; then : 25086 $as_echo_n "(cached) " >&6 25087else 25088 ac_check_lib_save_LIBS=$LIBS 25089LIBS="-lrsaref $LIBS" 25090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25091/* end confdefs.h. */ 25092 25093/* Override any GCC internal prototype to avoid an error. 25094 Use char because int might match the return type of a GCC 25095 builtin and then its argument prototype would still apply. */ 25096#ifdef __cplusplus 25097extern "C" 25098#endif 25099char RSAPrivateDecrypt (); 25100int 25101main () 25102{ 25103return RSAPrivateDecrypt (); 25104 ; 25105 return 0; 25106} 25107_ACEOF 25108if ac_fn_c_try_link "$LINENO"; then : 25109 ac_cv_lib_rsaref_RSAPrivateDecrypt=yes 25110else 25111 ac_cv_lib_rsaref_RSAPrivateDecrypt=no 25112fi 25113rm -f core conftest.err conftest.$ac_objext \ 25114 conftest$ac_exeext conftest.$ac_ext 25115LIBS=$ac_check_lib_save_LIBS 25116fi 25117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPrivateDecrypt" >&5 25118$as_echo "$ac_cv_lib_rsaref_RSAPrivateDecrypt" >&6; } 25119if test "x$ac_cv_lib_rsaref_RSAPrivateDecrypt" = xyes; then : 25120 cat >>confdefs.h <<_ACEOF 25121#define HAVE_LIBRSAREF 1 25122_ACEOF 25123 25124 LIBS="-lrsaref $LIBS" 25125 25126fi 25127 25128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_PKCS1_RSAref in -lRSAglue" >&5 25129$as_echo_n "checking for RSA_PKCS1_RSAref in -lRSAglue... " >&6; } 25130if ${ac_cv_lib_RSAglue_RSA_PKCS1_RSAref+:} false; then : 25131 $as_echo_n "(cached) " >&6 25132else 25133 ac_check_lib_save_LIBS=$LIBS 25134LIBS="-lRSAglue $LIBS" 25135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25136/* end confdefs.h. */ 25137 25138/* Override any GCC internal prototype to avoid an error. 25139 Use char because int might match the return type of a GCC 25140 builtin and then its argument prototype would still apply. */ 25141#ifdef __cplusplus 25142extern "C" 25143#endif 25144char RSA_PKCS1_RSAref (); 25145int 25146main () 25147{ 25148return RSA_PKCS1_RSAref (); 25149 ; 25150 return 0; 25151} 25152_ACEOF 25153if ac_fn_c_try_link "$LINENO"; then : 25154 ac_cv_lib_RSAglue_RSA_PKCS1_RSAref=yes 25155else 25156 ac_cv_lib_RSAglue_RSA_PKCS1_RSAref=no 25157fi 25158rm -f core conftest.err conftest.$ac_objext \ 25159 conftest$ac_exeext conftest.$ac_ext 25160LIBS=$ac_check_lib_save_LIBS 25161fi 25162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_RSAglue_RSA_PKCS1_RSAref" >&5 25163$as_echo "$ac_cv_lib_RSAglue_RSA_PKCS1_RSAref" >&6; } 25164if test "x$ac_cv_lib_RSAglue_RSA_PKCS1_RSAref" = xyes; then : 25165 cat >>confdefs.h <<_ACEOF 25166#define HAVE_LIBRSAGLUE 1 25167_ACEOF 25168 25169 LIBS="-lRSAglue $LIBS" 25170 25171fi 25172 25173 fi 25174 25175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -leay32" >&5 25176$as_echo_n "checking for -leay32... " >&6; } 25177 netsnmp_save_LIBS="$LIBS" 25178 LIBS="-leay32" 25179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25180/* end confdefs.h. */ 25181 25182 #include <openssl/evp.h> 25183int 25184main () 25185{ 25186return EVP_md5(); 25187 ; 25188 return 0; 25189} 25190_ACEOF 25191if ac_fn_c_try_link "$LINENO"; then : 25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25193$as_echo "yes" >&6; }; ac_cv_lib_eay32_EVP_md5=yes; CRYPTO="eay32" 25194else 25195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25196$as_echo "no" >&6; } 25197 25198fi 25199rm -f core conftest.err conftest.$ac_objext \ 25200 conftest$ac_exeext conftest.$ac_ext 25201 LIBS="$netsnmp_save_LIBS" 25202 25203 if test x$CRYPTO = x; then 25204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_md5 in -lcrypto" >&5 25205$as_echo_n "checking for EVP_md5 in -lcrypto... " >&6; } 25206if ${ac_cv_lib_crypto_EVP_md5+:} false; then : 25207 $as_echo_n "(cached) " >&6 25208else 25209 ac_check_lib_save_LIBS=$LIBS 25210LIBS="-lcrypto $LIBS" 25211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25212/* end confdefs.h. */ 25213 25214/* Override any GCC internal prototype to avoid an error. 25215 Use char because int might match the return type of a GCC 25216 builtin and then its argument prototype would still apply. */ 25217#ifdef __cplusplus 25218extern "C" 25219#endif 25220char EVP_md5 (); 25221int 25222main () 25223{ 25224return EVP_md5 (); 25225 ; 25226 return 0; 25227} 25228_ACEOF 25229if ac_fn_c_try_link "$LINENO"; then : 25230 ac_cv_lib_crypto_EVP_md5=yes 25231else 25232 ac_cv_lib_crypto_EVP_md5=no 25233fi 25234rm -f core conftest.err conftest.$ac_objext \ 25235 conftest$ac_exeext conftest.$ac_ext 25236LIBS=$ac_check_lib_save_LIBS 25237fi 25238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_md5" >&5 25239$as_echo "$ac_cv_lib_crypto_EVP_md5" >&6; } 25240if test "x$ac_cv_lib_crypto_EVP_md5" = xyes; then : 25241 CRYPTO="crypto" 25242fi 25243 25244 fi 25245 25246 if test x$CRYPTO != x; then 25247 25248$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h 25249 25250 LIBCRYPTO="-l${CRYPTO}" 25251 netsnmp_save_LIBS="$LIBS" 25252 LIBS="$LIBCRYPTO" 25253 for ac_func in AES_cfb128_encrypt EVP_sha224 EVP_sha384 EVP_MD_CTX_create EVP_MD_CTX_destroy EVP_MD_CTX_new EVP_MD_CTX_free DH_set0_pqg DH_get0_pqg DH_get0_key ASN1_STRING_get0_data X509_NAME_ENTRY_get_object X509_NAME_ENTRY_get_data X509_get_signature_nid 25254do : 25255 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 25256ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 25257if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 25258 cat >>confdefs.h <<_ACEOF 25259#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 25260_ACEOF 25261 25262fi 25263done 25264 25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 2nd app_verify_cookie_cb() arg is const" >&5 25266$as_echo_n "checking whether 2nd app_verify_cookie_cb() arg is const... " >&6; } 25267 netsnmp_save_CFLAGS="$CFLAGS" 25268 CFLAGS="$CFLAGS -Werror" 25269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25270/* end confdefs.h. */ 25271 25272 #include <openssl/ssl.h> 25273 25274int 25275main () 25276{ 25277 25278 int (*app_verify_cookie_cb)(SSL *ssl, 25279 const unsigned char *cookie, 25280 unsigned int cookie_len) = NULL; 25281 SSL_CTX_set_cookie_verify_cb(NULL, app_verify_cookie_cb); 25282 25283 ; 25284 return 0; 25285} 25286_ACEOF 25287if ac_fn_c_try_compile "$LINENO"; then : 25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25289$as_echo "yes" >&6; }; ac_cv_saccaq=const 25290else 25291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25292$as_echo "no" >&6; } 25293fi 25294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25295 25296cat >>confdefs.h <<_ACEOF 25297#define SECOND_APPVERIFY_COOKIE_CB_ARG_QUALIFIER $ac_cv_saccaq 25298_ACEOF 25299 25300 CFLAGS="$netsnmp_save_CFLAGS" 25301 LIBS="$netsnmp_save_LIBS" 25302 fi 25303 netsnmp_save_LIBS="$LIBS" 25304 LIBS="-lssl" 25305 for ac_func in TLS_method TLSv1_method DTLS_method DTLSv1_method OPENSSL_init_ssl SSL_load_error_strings ERR_get_error_all 25306do : 25307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 25308ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 25309if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 25310 cat >>confdefs.h <<_ACEOF 25311#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 25312_ACEOF 25313 25314fi 25315done 25316 25317 LIBS="$netsnmp_save_LIBS" 25318 if echo " $transport_result_list " | $GREP "DTLS" > /dev/null; then 25319 if test x$ac_cv_func_DTLSv1_method = xyes -o \ 25320 x$ac_cv_func_DTLS_method = xyes; then 25321 25322$as_echo "#define HAVE_LIBSSL_DTLS 1" >>confdefs.h 25323 25324 LIBCRYPTO=" -lssl $LIBCRYPTO" 25325 else 25326 as_fn_error $? "The DTLS based transports require the libssl library from OpenSSL to be available and support DTLS" "$LINENO" 5 25327 fi 25328 TLSPROG=yes 25329 fi 25330 if echo " $transport_result_list " | $GREP "TLS" > /dev/null; then 25331 if test x$ac_cv_func_TLSv1_method = xyes -o \ 25332 x$ac_cv_func_TLS_method = xyes; then 25333 25334$as_echo "#define HAVE_LIBSSL 1" >>confdefs.h 25335 25336 LIBCRYPTO=" -lssl $LIBCRYPTO" 25337 else 25338 as_fn_error $? "The TLS based transports require the libssl library from OpenSSL to be available" "$LINENO" 5 25339 fi 25340 TLSPROG=yes 25341 fi 25342 if echo " $transport_result_list " | $GREP " SSH " > /dev/null; then 25343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_startup in -lssh2" >&5 25344$as_echo_n "checking for libssh2_session_startup in -lssh2... " >&6; } 25345if ${ac_cv_lib_ssh2_libssh2_session_startup+:} false; then : 25346 $as_echo_n "(cached) " >&6 25347else 25348 ac_check_lib_save_LIBS=$LIBS 25349LIBS="-lssh2 $LIBS" 25350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25351/* end confdefs.h. */ 25352 25353/* Override any GCC internal prototype to avoid an error. 25354 Use char because int might match the return type of a GCC 25355 builtin and then its argument prototype would still apply. */ 25356#ifdef __cplusplus 25357extern "C" 25358#endif 25359char libssh2_session_startup (); 25360int 25361main () 25362{ 25363return libssh2_session_startup (); 25364 ; 25365 return 0; 25366} 25367_ACEOF 25368if ac_fn_c_try_link "$LINENO"; then : 25369 ac_cv_lib_ssh2_libssh2_session_startup=yes 25370else 25371 ac_cv_lib_ssh2_libssh2_session_startup=no 25372fi 25373rm -f core conftest.err conftest.$ac_objext \ 25374 conftest$ac_exeext conftest.$ac_ext 25375LIBS=$ac_check_lib_save_LIBS 25376fi 25377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_startup" >&5 25378$as_echo "$ac_cv_lib_ssh2_libssh2_session_startup" >&6; } 25379if test "x$ac_cv_lib_ssh2_libssh2_session_startup" = xyes; then : 25380 25381$as_echo "#define HAVE_LIBSSH2 1" >>confdefs.h 25382 25383 LIBCRYPTO=" -lssh2 $LIBCRYPTO" 25384else 25385 as_fn_error $? "The SSH transport requires the libssh2 library to be available" "$LINENO" 5 25386fi 25387 25388 SSHPROG=yes 25389 fi 25390 fi 25391elif test "x$askedpkcs" = "xyes"; then 25392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C_Initialize in -lpkcs11" >&5 25393$as_echo_n "checking for C_Initialize in -lpkcs11... " >&6; } 25394if ${ac_cv_lib_pkcs11_C_Initialize+:} false; then : 25395 $as_echo_n "(cached) " >&6 25396else 25397 ac_check_lib_save_LIBS=$LIBS 25398LIBS="-lpkcs11 $LIBS" 25399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25400/* end confdefs.h. */ 25401 25402/* Override any GCC internal prototype to avoid an error. 25403 Use char because int might match the return type of a GCC 25404 builtin and then its argument prototype would still apply. */ 25405#ifdef __cplusplus 25406extern "C" 25407#endif 25408char C_Initialize (); 25409int 25410main () 25411{ 25412return C_Initialize (); 25413 ; 25414 return 0; 25415} 25416_ACEOF 25417if ac_fn_c_try_link "$LINENO"; then : 25418 ac_cv_lib_pkcs11_C_Initialize=yes 25419else 25420 ac_cv_lib_pkcs11_C_Initialize=no 25421fi 25422rm -f core conftest.err conftest.$ac_objext \ 25423 conftest$ac_exeext conftest.$ac_ext 25424LIBS=$ac_check_lib_save_LIBS 25425fi 25426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pkcs11_C_Initialize" >&5 25427$as_echo "$ac_cv_lib_pkcs11_C_Initialize" >&6; } 25428if test "x$ac_cv_lib_pkcs11_C_Initialize" = xyes; then : 25429 $as_echo "#define HAVE_LIBPKCS11 1" >>confdefs.h 25430 25431 LIBPKCS11="-lpkcs11" 25432fi 25433 25434fi 25435 25436LIBS=$NONAGENTLIBS # restore old libraries 25437if test "x$SSHPROG" = "xyes"; then 25438 NETSNMP_BUILD_SSH_PROG_TRUE='' 25439 NETSNMP_BUILD_SSH_PROG_FALSE='#' 25440else 25441 NETSNMP_BUILD_SSH_PROG_TRUE='#' 25442 NETSNMP_BUILD_SSH_PROG_FALSE='' 25443fi 25444if test "x$TLSPROG" = "xyes" -a "x$enable_read_only" != "xyes" ; then 25445 NETSNMP_BUILD_TLS_PROG_TRUE='' 25446 NETSNMP_BUILD_TLS_PROG_FALSE='#' 25447else 25448 NETSNMP_BUILD_TLS_PROG_TRUE='#' 25449 NETSNMP_BUILD_TLS_PROG_FALSE='' 25450fi 25451if echo " ${security_mod_list} " | grep ' usm ' ; then 25452 if test "x$enable_read_only" != "xyes" ; then 25453 NETSNMP_BUILD_USM_PROG_TRUE='' 25454 NETSNMP_BUILD_USM_PROG_FALSE='#' 25455 else 25456 NETSNMP_BUILD_USM_PROG_TRUE='#' 25457 NETSNMP_BUILD_USM_PROG_FALSE='' 25458 fi 25459else 25460 NETSNMP_BUILD_USM_PROG_TRUE='#' 25461 NETSNMP_BUILD_USM_PROG_FALSE='' 25462fi 25463if test "x$enable_read_only" != "xyes" ; then 25464 NETSNMP_BUILD_SET_PROG_TRUE="" 25465 NETSNMP_BUILD_SET_PROG_FALSE="#" 25466else 25467 NETSNMP_BUILD_SET_PROG_TRUE="#" 25468 NETSNMP_BUILD_SET_PROG_FALSE="" 25469fi 25470 25471 25472 25473 25474 25475 25476 25477 25478 25479# 25480# If we're using internal crypto support we need to compile in extra files 25481# 25482crypto_files_c="" 25483crypto_files_o="" 25484crypto_files_lo="" 25485if test "x$tryopenssl" != "xno" -a "x$CRYPTO" = "x"; then 25486 # If we: 25487 # 1) couldn't find needed openssl support 25488 # 2) OR were asked to use internal support 25489 # 3) AND we have the needed files 25490 # then use it 25491 CRYPTO="internal" 25492 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" 25493 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" 25494 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" 25495 $as_echo "#define HAVE_AES_CFB128_ENCRYPT 1" >>confdefs.h 25496 25497fi 25498 25499 25500 25501 25502# 25503# if we can do any sort of crypto then note it 25504# 25505if test "x$CRYPTO" != "x" ; then 25506 25507$as_echo "#define NETSNMP_CAN_DO_CRYPTO 1" >>confdefs.h 25508 25509fi 25510 25511# TCP wrapper support 25512# 25513_cppflags="${CPPFLAGS}" 25514_ldflags="${LDFLAGS}" 25515if test "$with_libwrap" != "no"; then 25516 if test "$with_libwrap" != "yes"; then 25517 CPPFLAGS="${CPPFLAGS} -I$with_libwrap/include" 25518 LDFLAGS="${LDFLAGS} -L$with_libwrap/lib" 25519 fi 25520 25521 _libs=${LIBS} 25522 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default" 25523if test "x$ac_cv_header_tcpd_h" = xyes; then : 25524 25525else 25526 as_fn_error $? "Asked to use libwrap but I couldn't find tcpd.h." "$LINENO" 5 25527fi 25528 25529 25530 25531 LIBS="$LIBS -lwrap" 25532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library -lwrap" >&5 25533$as_echo_n "checking for TCP wrappers library -lwrap... " >&6; } 25534 # XXX: should check for hosts_ctl 25535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25536/* end confdefs.h. */ 25537#include <sys/types.h> 25538 #include <tcpd.h> 25539 int allow_severity = 0; 25540 int deny_severity = 0; 25541int 25542main () 25543{ 25544hosts_access((void *)0) 25545 ; 25546 return 0; 25547} 25548_ACEOF 25549if ac_fn_c_try_link "$LINENO"; then : 25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25551$as_echo "yes" >&6; } 25552 $as_echo "#define NETSNMP_USE_LIBWRAP 1" >>confdefs.h 25553 25554 test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib" 25555 _wraplibs="$_wraplibs -lwrap" 25556else 25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25558$as_echo "no" >&6; } 25559 # Linux RedHat 6.1 won't link libwrap without libnsl 25560 ac_fn_c_check_func "$LINENO" "yp_get_default_domain" "ac_cv_func_yp_get_default_domain" 25561if test "x$ac_cv_func_yp_get_default_domain" = xyes; then : 25562 25563else 25564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnsl" >&5 25565$as_echo_n "checking for yp_get_default_domain in -lnsl... " >&6; } 25566if ${ac_cv_lib_nsl_yp_get_default_domain+:} false; then : 25567 $as_echo_n "(cached) " >&6 25568else 25569 ac_check_lib_save_LIBS=$LIBS 25570LIBS="-lnsl $LIBS" 25571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25572/* end confdefs.h. */ 25573 25574/* Override any GCC internal prototype to avoid an error. 25575 Use char because int might match the return type of a GCC 25576 builtin and then its argument prototype would still apply. */ 25577#ifdef __cplusplus 25578extern "C" 25579#endif 25580char yp_get_default_domain (); 25581int 25582main () 25583{ 25584return yp_get_default_domain (); 25585 ; 25586 return 0; 25587} 25588_ACEOF 25589if ac_fn_c_try_link "$LINENO"; then : 25590 ac_cv_lib_nsl_yp_get_default_domain=yes 25591else 25592 ac_cv_lib_nsl_yp_get_default_domain=no 25593fi 25594rm -f core conftest.err conftest.$ac_objext \ 25595 conftest$ac_exeext conftest.$ac_ext 25596LIBS=$ac_check_lib_save_LIBS 25597fi 25598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5 25599$as_echo "$ac_cv_lib_nsl_yp_get_default_domain" >&6; } 25600if test "x$ac_cv_lib_nsl_yp_get_default_domain" = xyes; then : 25601 cat >>confdefs.h <<_ACEOF 25602#define HAVE_LIBNSL 1 25603_ACEOF 25604 25605 LIBS="-lnsl $LIBS" 25606 25607fi 25608 25609fi 25610 25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library -lwrap linked with -lnsl" >&5 25612$as_echo_n "checking for TCP wrappers library -lwrap linked with -lnsl... " >&6; } 25613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25614/* end confdefs.h. */ 25615#include <sys/types.h> 25616 #include <tcpd.h> 25617 int allow_severity = 0; 25618 int deny_severity = 0; 25619int 25620main () 25621{ 25622hosts_access((void *)0) 25623 ; 25624 return 0; 25625} 25626_ACEOF 25627if ac_fn_c_try_link "$LINENO"; then : 25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25629$as_echo "yes" >&6; } 25630 $as_echo "#define NETSNMP_USE_LIBWRAP 1" >>confdefs.h 25631 25632 test "$with_libwrap" != no -a "$with_libwrap" != yes && _wraplibs="-L$with_libwrap/lib" 25633 _wraplibs="$_wraplibs -lwrap -lnsl" 25634else 25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25636$as_echo "no" >&6; } 25637 as_fn_error $? "Asked to use libwrap but I couldn't find it." "$LINENO" 5 25638fi 25639rm -f core conftest.err conftest.$ac_objext \ 25640 conftest$ac_exeext conftest.$ac_ext 25641fi 25642rm -f core conftest.err conftest.$ac_objext \ 25643 conftest$ac_exeext conftest.$ac_ext 25644 LAGENTLIBS="$LAGENTLIBS $_wraplibs" 25645 CPPFLAGS=${_cppflags} 25646 LDFLAGS=${_ldflags} 25647 LIBS=${_libs} 25648fi 25649 25650 25651## 25652# mysql 25653## 25654if test "x$with_mysql" = "xyes" ; then 25655 for ac_prog in mysql_config 25656do 25657 # Extract the first word of "$ac_prog", so it can be a program name with args. 25658set dummy $ac_prog; ac_word=$2 25659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25660$as_echo_n "checking for $ac_word... " >&6; } 25661if ${ac_cv_path_MYSQLCONFIG+:} false; then : 25662 $as_echo_n "(cached) " >&6 25663else 25664 case $MYSQLCONFIG in 25665 [\\/]* | ?:[\\/]*) 25666 ac_cv_path_MYSQLCONFIG="$MYSQLCONFIG" # Let the user override the test with a path. 25667 ;; 25668 *) 25669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25670for as_dir in $PATH 25671do 25672 IFS=$as_save_IFS 25673 test -z "$as_dir" && as_dir=. 25674 for ac_exec_ext in '' $ac_executable_extensions; do 25675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25676 ac_cv_path_MYSQLCONFIG="$as_dir/$ac_word$ac_exec_ext" 25677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25678 break 2 25679 fi 25680done 25681 done 25682IFS=$as_save_IFS 25683 25684 ;; 25685esac 25686fi 25687MYSQLCONFIG=$ac_cv_path_MYSQLCONFIG 25688if test -n "$MYSQLCONFIG"; then 25689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQLCONFIG" >&5 25690$as_echo "$MYSQLCONFIG" >&6; } 25691else 25692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25693$as_echo "no" >&6; } 25694fi 25695 25696 25697 test -n "$MYSQLCONFIG" && break 25698done 25699 25700 test -x "$MYSQLCONFIG" \ 25701 || as_fn_error $? "Could not find mysql_config and was specifically asked to use MySQL support" "$LINENO" 5 25702 MYSQL_LIBS=`$MYSQLCONFIG --libs` 25703 MYSQL_INCLUDES=`$MYSQLCONFIG --include` 25704 _libs="${LIBS}" 25705 _cppflags="${CPPFLAGS}" 25706 LIBS="${LIBS} ${MYSQL_LIBS}" 25707 CPPFLAGS="${CPPFLAGS} ${MYSQL_INCLUDES}" 25708 ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default" 25709if test "x$ac_cv_header_mysql_h" = xyes; then : 25710 25711else 25712 as_fn_error $? "Could not find mysql.h and was specifically asked to use MySQL support" "$LINENO" 5 25713fi 25714 25715 25716 for ac_header in my_global.h my_sys.h 25717do : 25718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25719ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25720if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25721 cat >>confdefs.h <<_ACEOF 25722#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25723_ACEOF 25724 25725fi 25726 25727done 25728 25729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MY_INIT() works" >&5 25730$as_echo_n "checking whether MY_INIT() works... " >&6; } 25731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25732/* end confdefs.h. */ 25733 25734 #ifdef HAVE_MY_GLOBAL_H 25735 #include <my_global.h> 25736 #endif 25737 #ifdef HAVE_MY_SYS_H 25738 #include <my_sys.h> 25739 #endif 25740 #include <mysql.h> 25741int 25742main () 25743{ 25744MY_INIT("my_init_test") 25745 ; 25746 return 0; 25747} 25748_ACEOF 25749if ac_fn_c_try_link "$LINENO"; then : 25750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25751$as_echo "yes" >&6; } 25752 25753$as_echo "#define HAVE_MY_INIT 1" >>confdefs.h 25754 25755else 25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25757$as_echo "no" >&6; } 25758fi 25759rm -f core conftest.err conftest.$ac_objext \ 25760 conftest$ac_exeext conftest.$ac_ext 25761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether my_load_defaults() exists" >&5 25762$as_echo_n "checking whether my_load_defaults() exists... " >&6; } 25763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25764/* end confdefs.h. */ 25765 25766 #ifdef HAVE_MY_GLOBAL_H 25767 #include <my_global.h> 25768 #endif 25769 #ifdef HAVE_MY_SYS_H 25770 #include <my_sys.h> 25771 #endif 25772 #include <mysql.h> 25773int 25774main () 25775{ 25776my_load_defaults("my_init_test") 25777 ; 25778 return 0; 25779} 25780_ACEOF 25781if ac_fn_c_try_link "$LINENO"; then : 25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25783$as_echo "yes" >&6; } 25784 25785$as_echo "#define HAVE_MY_LOAD_DEFAULTS 1" >>confdefs.h 25786 25787else 25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25789$as_echo "no" >&6; } 25790fi 25791rm -f core conftest.err conftest.$ac_objext \ 25792 conftest$ac_exeext conftest.$ac_ext 25793 for ac_func in load_defaults mysql_init mysql_options 25794do : 25795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 25796ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 25797if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 25798 cat >>confdefs.h <<_ACEOF 25799#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 25800_ACEOF 25801 25802fi 25803done 25804 25805 CPPFLAGS="${_cppflags}" 25806 LIBS="${_libs}" 25807 25808 cat >> configure-summary << EOF 25809 MYSQL Trap Logging: enabled 25810EOF 25811 25812else 25813 25814 cat >> configure-summary << EOF 25815 MYSQL Trap Logging: unavailable 25816EOF 25817 25818fi 25819 25820 25821 25822## 25823# libpcap 25824## 25825NETSNMP_BUILD_PCAP_PROG_TRUE='#' 25826NETSNMP_BUILD_PCAP_PROG_FALSE='' 25827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5 25828$as_echo_n "checking for pcap_create in -lpcap... " >&6; } 25829if ${ac_cv_lib_pcap_pcap_create+:} false; then : 25830 $as_echo_n "(cached) " >&6 25831else 25832 ac_check_lib_save_LIBS=$LIBS 25833LIBS="-lpcap $LIBS" 25834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25835/* end confdefs.h. */ 25836 25837/* Override any GCC internal prototype to avoid an error. 25838 Use char because int might match the return type of a GCC 25839 builtin and then its argument prototype would still apply. */ 25840#ifdef __cplusplus 25841extern "C" 25842#endif 25843char pcap_create (); 25844int 25845main () 25846{ 25847return pcap_create (); 25848 ; 25849 return 0; 25850} 25851_ACEOF 25852if ac_fn_c_try_link "$LINENO"; then : 25853 ac_cv_lib_pcap_pcap_create=yes 25854else 25855 ac_cv_lib_pcap_pcap_create=no 25856fi 25857rm -f core conftest.err conftest.$ac_objext \ 25858 conftest$ac_exeext conftest.$ac_ext 25859LIBS=$ac_check_lib_save_LIBS 25860fi 25861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5 25862$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; } 25863if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then : 25864 25865 for ac_header in pcap/pcap.h 25866do : 25867 ac_fn_c_check_header_mongrel "$LINENO" "pcap/pcap.h" "ac_cv_header_pcap_pcap_h" "$ac_includes_default" 25868if test "x$ac_cv_header_pcap_pcap_h" = xyes; then : 25869 cat >>confdefs.h <<_ACEOF 25870#define HAVE_PCAP_PCAP_H 1 25871_ACEOF 25872 25873 NETSNMP_BUILD_PCAP_PROG_TRUE='' 25874 NETSNMP_BUILD_PCAP_PROG_FALSE='#' 25875 25876fi 25877 25878done 25879 25880 25881fi 25882 25883 25884 25885 25886## 25887# Non-library checks 25888## 25889 25890# nlist 25891for ac_func in nlist nlist64 knlist 25892do : 25893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 25894ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 25895if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 25896 cat >>confdefs.h <<_ACEOF 25897#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 25898_ACEOF 25899 25900fi 25901done 25902 25903 25904 25905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing endwin" >&5 25906$as_echo_n "checking for library containing endwin... " >&6; } 25907if ${netsnmp_cv_func_endwin_LIBCURSES+:} false; then : 25908 $as_echo_n "(cached) " >&6 25909else 25910 netsnmp_func_search_save_LIBS="$LIBS" 25911 netsnmp_target_val="$LIBCURSES" 25912 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 25913 netsnmp_result=no 25914 LIBS="${netsnmp_temp_LIBS}" 25915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25916/* end confdefs.h. */ 25917 25918/* Override any GCC internal prototype to avoid an error. 25919 Use char because int might match the return type of a GCC 25920 builtin and then its argument prototype would still apply. */ 25921#ifdef __cplusplus 25922extern "C" 25923#endif 25924char endwin (); 25925int 25926main () 25927{ 25928return endwin (); 25929 ; 25930 return 0; 25931} 25932_ACEOF 25933if ac_fn_c_try_link "$LINENO"; then : 25934 netsnmp_result="none required" 25935else 25936 for netsnmp_cur_lib in curses ncurses ; do 25937 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 25938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25939/* end confdefs.h. */ 25940 25941/* Override any GCC internal prototype to avoid an error. 25942 Use char because int might match the return type of a GCC 25943 builtin and then its argument prototype would still apply. */ 25944#ifdef __cplusplus 25945extern "C" 25946#endif 25947char endwin (); 25948int 25949main () 25950{ 25951return endwin (); 25952 ; 25953 return 0; 25954} 25955_ACEOF 25956if ac_fn_c_try_link "$LINENO"; then : 25957 netsnmp_result=-l${netsnmp_cur_lib} 25958 break 25959fi 25960rm -f core conftest.err conftest.$ac_objext \ 25961 conftest$ac_exeext conftest.$ac_ext 25962 done 25963fi 25964rm -f core conftest.err conftest.$ac_objext \ 25965 conftest$ac_exeext conftest.$ac_ext 25966 LIBS="${netsnmp_func_search_save_LIBS}" 25967 netsnmp_cv_func_endwin_LIBCURSES="${netsnmp_result}" 25968fi 25969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_endwin_LIBCURSES" >&5 25970$as_echo "$netsnmp_cv_func_endwin_LIBCURSES" >&6; } 25971 if test "x${netsnmp_cv_func_endwin_LIBCURSES}" != "xno" ; then 25972 if test "x${netsnmp_cv_func_endwin_LIBCURSES}" != "xnone required" ; then 25973 LIBCURSES="${netsnmp_result} ${netsnmp_target_val}" 25974 fi 25975 25976 for ac_header in curses.h 25977do : 25978 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 25979if test "x$ac_cv_header_curses_h" = xyes; then : 25980 cat >>confdefs.h <<_ACEOF 25981#define HAVE_CURSES_H 1 25982_ACEOF 25983 25984fi 25985 25986done 25987 25988 for ac_header in ncurses/curses.h 25989do : 25990 ac_fn_c_check_header_mongrel "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default" 25991if test "x$ac_cv_header_ncurses_curses_h" = xyes; then : 25992 cat >>confdefs.h <<_ACEOF 25993#define HAVE_NCURSES_CURSES_H 1 25994_ACEOF 25995 25996fi 25997 25998done 25999 26000 HAVE_LIBCURSES=TRUE 26001 else 26002 HAVE_LIBCURSES=FALSE 26003 fi 26004 26005 26006 26007 26008# libm for ceil 26009# 26010 26011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5 26012$as_echo_n "checking for library containing ceil... " >&6; } 26013if ${netsnmp_cv_func_ceil_LNETSNMPLIBS+:} false; then : 26014 $as_echo_n "(cached) " >&6 26015else 26016 netsnmp_func_search_save_LIBS="$LIBS" 26017 netsnmp_target_val="$LNETSNMPLIBS" 26018 netsnmp_temp_LIBS="${netsnmp_target_val} ${LIBS}" 26019 netsnmp_result=no 26020 LIBS="${netsnmp_temp_LIBS}" 26021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26022/* end confdefs.h. */ 26023 26024/* Override any GCC internal prototype to avoid an error. 26025 Use char because int might match the return type of a GCC 26026 builtin and then its argument prototype would still apply. */ 26027#ifdef __cplusplus 26028extern "C" 26029#endif 26030char ceil (); 26031int 26032main () 26033{ 26034return ceil (); 26035 ; 26036 return 0; 26037} 26038_ACEOF 26039if ac_fn_c_try_link "$LINENO"; then : 26040 netsnmp_result="none required" 26041else 26042 for netsnmp_cur_lib in m ; do 26043 LIBS="-l${netsnmp_cur_lib} ${netsnmp_temp_LIBS}" 26044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26045/* end confdefs.h. */ 26046 26047/* Override any GCC internal prototype to avoid an error. 26048 Use char because int might match the return type of a GCC 26049 builtin and then its argument prototype would still apply. */ 26050#ifdef __cplusplus 26051extern "C" 26052#endif 26053char ceil (); 26054int 26055main () 26056{ 26057return ceil (); 26058 ; 26059 return 0; 26060} 26061_ACEOF 26062if ac_fn_c_try_link "$LINENO"; then : 26063 netsnmp_result=-l${netsnmp_cur_lib} 26064 break 26065fi 26066rm -f core conftest.err conftest.$ac_objext \ 26067 conftest$ac_exeext conftest.$ac_ext 26068 done 26069fi 26070rm -f core conftest.err conftest.$ac_objext \ 26071 conftest$ac_exeext conftest.$ac_ext 26072 LIBS="${netsnmp_func_search_save_LIBS}" 26073 netsnmp_cv_func_ceil_LNETSNMPLIBS="${netsnmp_result}" 26074fi 26075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_func_ceil_LNETSNMPLIBS" >&5 26076$as_echo "$netsnmp_cv_func_ceil_LNETSNMPLIBS" >&6; } 26077 if test "x${netsnmp_cv_func_ceil_LNETSNMPLIBS}" != "xno" ; then 26078 if test "x${netsnmp_cv_func_ceil_LNETSNMPLIBS}" != "xnone required" ; then 26079 LNETSNMPLIBS="${netsnmp_result} ${netsnmp_target_val}" 26080 fi 26081 26082 26083 fi 26084 26085 26086cat >confcache <<\_ACEOF 26087# This file is a shell script that caches the results of configure 26088# tests run on this system so they can be shared between configure 26089# scripts and configure runs, see configure's option --config-cache. 26090# It is not useful on other systems. If it contains results you don't 26091# want to keep, you may remove or edit it. 26092# 26093# config.status only pays attention to the cache file if you give it 26094# the --recheck option to rerun configure. 26095# 26096# `ac_cv_env_foo' variables (set or unset) will be overridden when 26097# loading this file, other *unset* `ac_cv_foo' will be assigned the 26098# following values. 26099 26100_ACEOF 26101 26102# The following way of writing the cache mishandles newlines in values, 26103# but we know of no workaround that is simple, portable, and efficient. 26104# So, we kill variables containing newlines. 26105# Ultrix sh set writes to stderr and can't be redirected directly, 26106# and sets the high bit in the cache file unless we assign to the vars. 26107( 26108 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 26109 eval ac_val=\$$ac_var 26110 case $ac_val in #( 26111 *${as_nl}*) 26112 case $ac_var in #( 26113 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 26114$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 26115 esac 26116 case $ac_var in #( 26117 _ | IFS | as_nl) ;; #( 26118 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 26119 *) { eval $ac_var=; unset $ac_var;} ;; 26120 esac ;; 26121 esac 26122 done 26123 26124 (set) 2>&1 | 26125 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26126 *${as_nl}ac_space=\ *) 26127 # `set' does not quote correctly, so add quotes: double-quote 26128 # substitution turns \\\\ into \\, and sed turns \\ into \. 26129 sed -n \ 26130 "s/'/'\\\\''/g; 26131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26132 ;; #( 26133 *) 26134 # `set' quotes correctly as required by POSIX, so do not add quotes. 26135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 26136 ;; 26137 esac | 26138 sort 26139) | 26140 sed ' 26141 /^ac_cv_env_/b end 26142 t clear 26143 :clear 26144 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 26145 t end 26146 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 26147 :end' >>confcache 26148if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26149 if test -w "$cache_file"; then 26150 if test "x$cache_file" != "x/dev/null"; then 26151 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 26152$as_echo "$as_me: updating cache $cache_file" >&6;} 26153 if test ! -f "$cache_file" || test -h "$cache_file"; then 26154 cat confcache >"$cache_file" 26155 else 26156 case $cache_file in #( 26157 */* | ?:*) 26158 mv -f confcache "$cache_file"$$ && 26159 mv -f "$cache_file"$$ "$cache_file" ;; #( 26160 *) 26161 mv -f confcache "$cache_file" ;; 26162 esac 26163 fi 26164 fi 26165 else 26166 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 26167$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26168 fi 26169fi 26170rm -f confcache 26171# -*- autoconf -*- 26172######################################### 26173## 26174# Perl & Python support 26175## 26176######################################### 26177 26178## 26179# Check whether Net-SNMP configuration will support Perl 26180## 26181 26182# Inputs: 26183# install_perl: whether or not to install the Perl modules 26184# yes/no/try (i.e. 'maybe' - the default) 26185# embed_perl: whether or not to embed Perl support within the agent 26186# yes/no/try (i.e. 'maybe' - the default) 26187# 26188# ac_cv_path_PERLPROG: Path to perl binary 26189 26190 26191# Embedded Perl requires Perl modules, and the perl binary 26192# 26193if test "x$embed_perl" = "xtry" ; then 26194 if test "x$install_perl" = "xno" ; then 26195 install_perl="try" 26196 fi 26197 if test "x$ac_cv_path_PERLPROG" = "x" -o "x$ac_cv_path_PERLPROG" = "xno" ; then 26198 install_perl="no" 26199 embed_perl="no" 26200 fi 26201fi 26202 26203# Perl modules require the perl binary 26204# 26205if test "x$install_perl" != "xno" ; then 26206 myperl=$ac_cv_path_PERLPROG 26207 if test $myperl = "no" ; then 26208 if test "x$install_perl" = "xtry" ; then 26209 install_perl="no" 26210 else 26211 as_fn_error $? "--enable-embedded-perl requested but no perl executable found" "$LINENO" 5 26212 fi 26213 fi 26214fi 26215 26216# Perl modules require shared libraries 26217# 26218if test "x$install_perl" != "xno" ; then 26219 if test "x$enable_shared" != "xyes"; then 26220 if test "x$install_perl" = "xtry" ; then 26221 install_perl="no" 26222 else 26223 as_fn_error $? "Perl support requires --enable-shared" "$LINENO" 5 26224 fi 26225 fi 26226fi 26227 26228# Perl modules can only be installed from within the source tree 26229# 26230if test "x$install_perl" != "xno" ; then 26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are in the source tree so we can install Perl modules" >&5 26232$as_echo_n "checking if we are in the source tree so we can install Perl modules... " >&6; } 26233 if test "x$srcdir" = "x." -o -d perl/agent/default_store ; then 26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Yes" >&5 26235$as_echo "Yes" >&6; } 26236 else 26237 if test "x$install_perl" = "xtry" ; then 26238 install_perl="no" 26239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: No" >&5 26240$as_echo "No" >&6; } 26241 else 26242 as_fn_error $? "Perl modules can not be built outside the source directory" "$LINENO" 5 26243 fi 26244 fi 26245fi 26246 26247 26248# The rest of the Perl-related checks aren't relevant 26249# if we're not using the Perl modules 26250# 26251if test "x$install_perl" != "xno" ; then 26252 26253 26254## 26255# Check compiler compatability 26256## 26257 26258 # What compiler was used to build the perl binary? 26259 # 26260 if test "x$enable_perl_cc_checks" != "xno" ; then 26261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl cc" >&5 26262$as_echo_n "checking for Perl cc... " >&6; } 26263 26264 PERLCC=`$myperl -V:cc | $myperl -n -e 'print if (s/^\s*cc=.([-=\w\s\/]+).;\s*/$1/);'` 26265 26266 if test "x$PERLCC" != "x" ; then 26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLCC" >&5 26268$as_echo "$PERLCC" >&6; } 26269 else 26270 if test "x$install_perl" = "xtry" ; then 26271 install_perl="no" 26272 else 26273 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 26274 fi 26275 fi 26276 fi 26277 26278 # Was GCC used to build the perl binary? 26279 # 26280 if test "x$install_perl" != "xno" ; then 26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PERLCC is a GNU C compiler" >&5 26282$as_echo_n "checking whether $PERLCC is a GNU C compiler... " >&6; } 26283 OLDCC=$CC 26284 CC="$PERLCC" 26285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26286/* end confdefs.h. */ 26287 26288 26289int 26290main () 26291{ 26292 26293#ifndef __GNUC__ 26294 choke me 26295#endif 26296 26297 ; 26298 return 0; 26299} 26300_ACEOF 26301if ac_fn_c_try_compile "$LINENO"; then : 26302 perlcc_is_gnu=yes 26303else 26304 perlcc_is_gnu=no 26305fi 26306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perlcc_is_gnu" >&5 26308$as_echo "$perlcc_is_gnu" >&6; } 26309 CC=$OLDCC 26310 26311 # Check compatability: Gnu Net-SNMP vs Non-Gnu perl 26312 # 26313 if test "x$GCC" = "xyes" -a "x$perlcc_is_gnu" = "xno" ; then 26314 if test "x$install_perl" = "xtry" ; then 26315 install_perl="no" 26316 else 26317 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 26318 fi 26319 fi 26320 fi 26321 26322 # Check compatability: Non-Gnu Net-SNMP vs Gnu perl 26323 # 26324 if test "x$install_perl" != "xno" ; then 26325 if test "x$GCC" != "xyes" -a "x$perlcc_is_gnu" = "xyes" ; then 26326 if test "x$install_perl" = "xtry" ; then 26327 install_perl="no" 26328 else 26329 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 26330 fi 26331 fi 26332 fi 26333 26334 # Are we clear to proceed? 26335 # 26336 if test "x$install_perl" = "xtry" ; then 26337 install_perl="yes" 26338 else 26339 if test "x$install_perl" = "xno" ; then 26340 install_perl="no" 26341 embed_perl="no" 26342 fi 26343 fi 26344 26345 26346## 26347# Determine compilation environment needed for embedded Perl 26348## 26349 26350# System-specific requirements 26351# 26352case $target_os in 26353 solaris*) 26354 if test "x$embed_perl" != "xno" ; then 26355 # Check for LARGEFILE support (Solaris) 26356 # 26357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for problematic Perl cc flags on Suns" >&5 26358$as_echo_n "checking for problematic Perl cc flags on Suns... " >&6; } 26359 if $myperl -V:ccflags | $GREP LARGEFILE > /dev/null ; then 26360 if test "x$embed_perl" = "xtry" ; then 26361 embed_perl="no" 26362 else 26363 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 26364 fi 26365 else 26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none known" >&5 26367$as_echo "none known" >&6; } 26368 fi 26369 fi 26370 ;; 26371 26372 # Embedded perl typically fails on HP-UX and Mac OS X 26373 # We really need to investigate why, and check for this explicitly 26374 # But for the time being, turn this off by default 26375 hpux*|darwin8*|darwin9*|darwin10*) 26376 if test "x$embed_perl" = "xtry" ; then 26377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Embedded perl defaulting to off" >&5 26378$as_echo "$as_me: WARNING: Embedded perl defaulting to off" >&2;} 26379 embed_perl="no" 26380 fi 26381 ;; 26382 26383 *) 26384 ;; 26385esac 26386 26387# Compiler flags 26388# 26389if test "x$embed_perl" != "xno" ; then 26390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl CFLAGS" >&5 26391$as_echo_n "checking for Perl CFLAGS... " >&6; } 26392 perlcflags=`$myperl -MExtUtils::Embed -e ccopts` 26393 if test "x$perlcflags" != "x" ; then 26394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perlcflags" >&5 26395$as_echo "$perlcflags" >&6; } 26396 CFLAGS="$CFLAGS $perlcflags" 26397 else 26398 if test "x$embed_perl" = "xtry" ; then 26399 embed_perl="no" 26400 else 26401 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 26402 fi 26403 fi 26404fi 26405 26406# Linker flags 26407# 26408if test "x$embed_perl" != "xno" ; then 26409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl LDFLAGS" >&5 26410$as_echo_n "checking for Perl LDFLAGS... " >&6; } 26411 netsnmp_perlldopts=`$myperl -MExtUtils::Embed -e ldopts` 26412 if test "x$netsnmp_perlldopts" != "x" ; then 26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_perlldopts" >&5 26414$as_echo "$netsnmp_perlldopts" >&6; } 26415 else 26416 if test "x$embed_perl" = "xtry" ; then 26417 embed_perl="no" 26418 else 26419 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 26420 fi 26421 fi 26422 if test "x$enable_as_needed" != "xno" ; then 26423 # Just-in-time linking will embed the Perl library within 26424 # the Net-SNMP library (rather than the agent application) 26425 # 26426 PERLLDOPTS_FOR_LIBS="$netsnmp_perlldopts" 26427 # Perl ccdlflags (RPATH to libperl, hopefully) 26428 # 26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl CCDLFLAGS" >&5 26430$as_echo_n "checking for Perl CCDLFLAGS... " >&6; } 26431 26432 netsnmp_perlccdlflags=`$myperl -V:ccdlflags | $myperl -n -e 'print $1 '"if (/^\s*ccdlflags='([^']+)';/);"` 26433 26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_perlccdlflags" >&5 26435$as_echo "$netsnmp_perlccdlflags" >&6; } 26436 PERLLDOPTS_FOR_APPS="$netsnmp_perlccdlflags" 26437 else 26438 # Otherwise embed the Perl library within the application 26439 # 26440 PERLLDOPTS_FOR_LIBS="$netsnmp_perlldopts" 26441 # link *applications* against libperl 26442 PERLLDOPTS_FOR_APPS="$netsnmp_perlldopts" 26443 fi 26444fi 26445 26446# 'Perl_eval_pv' function (and equivalents) 26447# 26448if test "x$embed_perl" != "xno" ; then 26449 # Three possible versions of this routine: 26450 # eval_pv (to 5.003_97d) 26451 # perl_eval_pv (5.004/5.005) 26452 # Perl_eval_pv (from 5.6ff) 26453 # 26454 OLDLIBS="$LIBS" 26455 LIBS="$LIBS $netsnmp_perlldopts" 26456 for ac_func in eval_pv 26457do : 26458 ac_fn_c_check_func "$LINENO" "eval_pv" "ac_cv_func_eval_pv" 26459if test "x$ac_cv_func_eval_pv" = xyes; then : 26460 cat >>confdefs.h <<_ACEOF 26461#define HAVE_EVAL_PV 1 26462_ACEOF 26463 26464fi 26465done 26466 26467 ac_fn_c_check_func "$LINENO" "perl_eval_pv" "ac_cv_func_perl_eval_pv" 26468if test "x$ac_cv_func_perl_eval_pv" = xyes; then : 26469 26470$as_echo "#define HAVE_PERL_EVAL_PV_LC 1" >>confdefs.h 26471 26472fi 26473 26474 ac_fn_c_check_func "$LINENO" "Perl_eval_pv" "ac_cv_func_Perl_eval_pv" 26475if test "x$ac_cv_func_Perl_eval_pv" = xyes; then : 26476 26477$as_echo "#define HAVE_PERL_EVAL_PV_UC 1" >>confdefs.h 26478 26479fi 26480 26481 LIBS="$OLDLIBS" 26482 # 26483 # Note that autoconf flattens case when defining tokens, 26484 # so we need to explicitly distinguish between the latter two. 26485 26486 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 26487 if test "x$embed_perl" = "xtry" ; then 26488 embed_perl="no" 26489 else 26490 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 26491 fi 26492 else 26493 # Activate Embedded Perl 26494 # 26495 26496$as_echo "#define NETSNMP_EMBEDDED_PERL 1" >>confdefs.h 26497 26498 OTHERAGENTLIBOBJS="snmp_perl.o" 26499 OTHERAGENTLIBLOBJS="snmp_perl.lo" 26500 OTHERAGENTLIBLFTS="snmp_perl.ft" 26501 26502 EMBEDPERLINSTALL="embedperlinstall" 26503 EMBEDPERLUNINSTALL="embedperluninstall" 26504 embed_perl="yes" 26505 fi 26506else 26507 EMBEDPERLINSTALL="" 26508 EMBEDPERLUNINSTALL="" 26509 embed_perl="no" 26510 fi 26511fi 26512 26513 26514## 26515# Report and configure results 26516## 26517 26518 26519 26520 26521 26522 26523# Results of Embedded Perl checks 26524# 26525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for potential embedded Perl support" >&5 26526$as_echo_n "checking for potential embedded Perl support... " >&6; } 26527if test "x$embed_perl" != "xyes" ; then 26528 26529 cat >> configure-summary << EOF 26530 Embedded Perl support: disabled 26531EOF 26532 26533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 26534$as_echo "disabled" >&6; } 26535else 26536 26537 cat >> configure-summary << EOF 26538 Embedded Perl support: enabled 26539EOF 26540 26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 26542$as_echo "enabled" >&6; } 26543fi 26544 26545# Results of Perl Module checks 26546# 26547PERLTARGS="" 26548PERLINSTALLTARGS="" 26549PERLUNINSTALLTARGS="" 26550PERLFEATURES="" 26551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can install the Perl modules" >&5 26552$as_echo_n "checking if we can install the Perl modules... " >&6; } 26553if test "x$install_perl" = "xyes" ; then 26554 PERLTARGS="perlmodules" 26555 PERLINSTALLTARGS="perlinstall" 26556 PERLUNINSTALLTARGS="perluninstall" 26557 PERLFEATURES="perlfeatures" 26558 if test "x$embed_perl" = "xyes" ; then 26559 26560 cat >> configure-summary << EOF 26561 SNMP Perl modules: building -- embeddable 26562EOF 26563 26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes -- and embeddable" >&5 26565$as_echo "yes -- and embeddable" >&6; } 26566 else 26567 26568 cat >> configure-summary << EOF 26569 SNMP Perl modules: building -- not embeddable 26570EOF 26571 26572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes -- not embeddable" >&5 26573$as_echo "yes -- not embeddable" >&6; } 26574 fi 26575else 26576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26577$as_echo "no" >&6; } 26578 26579 cat >> configure-summary << EOF 26580 SNMP Perl modules: disabled 26581EOF 26582 26583fi 26584 26585 26586 26587 26588 26589 26590 26591# Reset LIBS to pre-libwrap value (???) 26592# 26593AGENTLIBS=$LIBS 26594LIBS=$NONAGENTLIBS 26595 26596 26597 26598## 26599# Python checks 26600## 26601 26602PYTHONTARGS="" 26603PYTHONINSTALLTARGS="" 26604PYTHONUNINSTALLTARGS="" 26605PYTHONCLEANTARGS="" 26606PYTHONFEATURES="" 26607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should install the python bindings" >&5 26608$as_echo_n "checking if we should install the python bindings... " >&6; } 26609if test "x$install_python" = "xyes" ; then 26610 PYTHONTARGS="pythonmodules" 26611 PYTHONINSTALLTARGS="pythoninstall" 26612 PYTHONUNINSTALLTARGS="pythonuninstall" 26613 PYTHONCLEANTARGS="pythonclean" 26614 PYTHONFEATURES="pythonfeatures" 26615 26616 cat >> configure-summary << EOF 26617 SNMP Python modules: building for $PYTHONPROG 26618EOF 26619 26620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26621$as_echo "yes" >&6; } 26622else 26623 26624 cat >> configure-summary << EOF 26625 SNMP Python modules: disabled 26626EOF 26627 26628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26629$as_echo "no" >&6; } 26630fi 26631 26632 26633 26634 26635 26636 26637 26638 26639 26640# -*- autoconf -*- 26641######################################### 26642## 26643# Miscellaneous checks 26644## 26645######################################### 26646 26647## 26648# Package characteristics 26649# Authentication/Encryption support 26650## 26651 26652# Check for PKCS11 26653# 26654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for authentication support" >&5 26655$as_echo_n "checking for authentication support... " >&6; } 26656useopenssl=no 26657usepkcs=no 26658if test "x$ac_cv_lib_pkcs11_C_Initialize" != "xyes" -o "x$ac_cv_header_security_cryptoki_h" != "xyes"; then 26659 if test "x$askedpkcs" = "xyes"; then 26660 as_fn_error $? "Asked to use PKCS11 but I couldn't find it." "$LINENO" 5 26661 fi 26662else 26663 if test "x$askedpkcs" = "xyes"; then 26664 usepkcs=yes 26665 fi 26666fi 26667 26668# Check for OpenSSL 26669# 26670if test "x$ac_cv_lib_crypto_EVP_md5" != "xyes" -a "x$ac_cv_lib_eay32_EVP_md5" != "xyes" -o "x$ac_cv_header_openssl_hmac_h" != "xyes"; then 26671 if test "x$askedopenssl" = "xyes"; then 26672 as_fn_error $? "Asked to use OpenSSL but I couldn't find it." "$LINENO" 5 26673 fi 26674else 26675 if test "x$askedopenssl" = "xyes"; then 26676 useopenssl=yes 26677 elif test "x$tryopenssl" = "xyes"; then 26678 if test "x$usepkcs" != "xyes"; then 26679 useopenssl=yes 26680 fi 26681 fi 26682fi 26683 26684# Available authentication/encryption modes 26685# 26686if test "x$CRYPTO" = "xinternal" ; then 26687 authmodes="MD5 SHA1" 26688 if test "x$enable_privacy" != "xno" ; then 26689 encrmodes="DES AES" 26690 else 26691 encrmodes="disabled" 26692 fi 26693 26694$as_echo "#define NETSNMP_USE_INTERNAL_CRYPTO 1" >>confdefs.h 26695 26696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Internal Crypto Support" >&5 26697$as_echo "Internal Crypto Support" >&6; } 26698elif test "x$useopenssl" != "xno" ; then 26699 authmodes="MD5 SHA1" 26700 if test "x$ac_cv_func_EVP_sha224" = xyes; then 26701 authmodes="$authmodes SHA224 SHA256" 26702 fi 26703 if test "x$ac_cv_func_EVP_sha384" = xyes; then 26704 authmodes="$authmodes SHA384 SHA512" 26705 fi 26706 if test "x$enable_privacy" != "xno" ; then 26707 if test "x$ac_cv_header_openssl_aes_h" = "xyes" ; then 26708 encrmodes="DES AES" 26709 else 26710 encrmodes="DES" 26711 fi 26712 else 26713 encrmodes="disabled" 26714 fi 26715 $as_echo "#define NETSNMP_USE_OPENSSL 1" >>confdefs.h 26716 26717 LNETSNMPLIBS="$LNETSNMPLIBS $LIBCRYPTO" 26718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL Support" >&5 26719$as_echo "OpenSSL Support" >&6; } 26720elif test "x$usepkcs" != "xno" ; then 26721 authmodes="MD5 SHA1" 26722 if test "x$enable_privacy" != "xno" ; then 26723 encrmodes="DES" 26724 else 26725 encrmodes="disabled" 26726 fi 26727 26728$as_echo "#define NETSNMP_USE_PKCS11 1" >>confdefs.h 26729 26730 LNETSNMPLIBS="$LNETSNMPLIBS $LIBPKCS11" 26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PKCS11 Support" >&5 26732$as_echo "PKCS11 Support" >&6; } 26733elif test "x$enable_md5" != "xno"; then 26734 authmodes="MD5" 26735 encrmodes="" 26736 $as_echo "#define NETSNMP_USE_INTERNAL_MD5 1" >>confdefs.h 26737 26738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Internal MD5 Support" >&5 26739$as_echo "Internal MD5 Support" >&6; } 26740fi 26741if test "x$enable_md5" = "xno"; then 26742 authmodes=`echo $authmodes | $SED 's/MD5 *//;'` 26743fi 26744if test "x$ac_cv_func_AES_cfb128_encrypt" = xyes || 26745 test "x$CRYPTO" = xinternal; then 26746 encrmodes="$encrmodes AES128" 26747 if test "x$aes_capable" = "xyes"; then 26748 encrmodes="$encrmodes AES192 AES192C AES256 AES256C" 26749 fi 26750fi 26751 26752 26753 26754 26755 cat >> configure-summary << EOF 26756 Crypto support from: $CRYPTO 26757EOF 26758 26759 26760 cat >> configure-summary << EOF 26761 Authentication support: $authmodes 26762EOF 26763 26764 26765 cat >> configure-summary << EOF 26766 Encryption support: $encrmodes 26767EOF 26768 26769 26770if test "x$all_warnings" != "x"; then 26771 26772 cat >> configure-summary << EOF 26773 WARNING: $all_warnings 26774EOF 26775 26776fi 26777 26778# 26779# Check whether user wants DNSSEC local validation support 26780# 26781_libs=${LIBS} 26782if ! test "x-$want_dnssec" = "x-no" ; then 26783 for ac_header in validator/validator-config.h 26784do : 26785 ac_fn_c_check_header_mongrel "$LINENO" "validator/validator-config.h" "ac_cv_header_validator_validator_config_h" "$ac_includes_default" 26786if test "x$ac_cv_header_validator_validator_config_h" = xyes; then : 26787 cat >>confdefs.h <<_ACEOF 26788#define HAVE_VALIDATOR_VALIDATOR_CONFIG_H 1 26789_ACEOF 26790 26791fi 26792 26793done 26794 26795 if test "$ac_cv_header_validator_validator_config_h" != yes; then 26796 as_fn_error $? "Can't find validator.h" "$LINENO" 5 26797 fi 26798 if test "x$ac_cv_lib_crypto_EVP_md5" != "xyes" -a \ 26799 "x$ac_cv_lib_eay32_EVP_md5" != "xyes" -o \ 26800 "x$ac_cv_header_openssl_hmac_h" != "xyes"; then 26801 as_fn_error $? "Couldn't find OpenSSL for local DNSSEC validation support." "$LINENO" 5 26802 fi 26803 LIBS="$LIBS $LIBCRYPTO" 26804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for query_send in -lsres" >&5 26805$as_echo_n "checking for query_send in -lsres... " >&6; } 26806if ${ac_cv_lib_sres_query_send+:} false; then : 26807 $as_echo_n "(cached) " >&6 26808else 26809 ac_check_lib_save_LIBS=$LIBS 26810LIBS="-lsres $LIBS" 26811cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26812/* end confdefs.h. */ 26813 26814/* Override any GCC internal prototype to avoid an error. 26815 Use char because int might match the return type of a GCC 26816 builtin and then its argument prototype would still apply. */ 26817#ifdef __cplusplus 26818extern "C" 26819#endif 26820char query_send (); 26821int 26822main () 26823{ 26824return query_send (); 26825 ; 26826 return 0; 26827} 26828_ACEOF 26829if ac_fn_c_try_link "$LINENO"; then : 26830 ac_cv_lib_sres_query_send=yes 26831else 26832 ac_cv_lib_sres_query_send=no 26833fi 26834rm -f core conftest.err conftest.$ac_objext \ 26835 conftest$ac_exeext conftest.$ac_ext 26836LIBS=$ac_check_lib_save_LIBS 26837fi 26838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sres_query_send" >&5 26839$as_echo "$ac_cv_lib_sres_query_send" >&6; } 26840if test "x$ac_cv_lib_sres_query_send" = xyes; then : 26841 cat >>confdefs.h <<_ACEOF 26842#define HAVE_LIBSRES 1 26843_ACEOF 26844 26845 LIBS="-lsres $LIBS" 26846 26847else 26848 as_fn_error $? "Can't find libsres" "$LINENO" 5 26849fi 26850 26851 VAL_LIBS="-lsres $LIBCRYPTO" 26852 LIBS="$LIBS -lsres" 26853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for p_val_status in -lval" >&5 26854$as_echo_n "checking for p_val_status in -lval... " >&6; } 26855if ${ac_cv_lib_val_p_val_status+:} false; then : 26856 $as_echo_n "(cached) " >&6 26857else 26858 ac_check_lib_save_LIBS=$LIBS 26859LIBS="-lval $LIBS" 26860cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26861/* end confdefs.h. */ 26862 26863/* Override any GCC internal prototype to avoid an error. 26864 Use char because int might match the return type of a GCC 26865 builtin and then its argument prototype would still apply. */ 26866#ifdef __cplusplus 26867extern "C" 26868#endif 26869char p_val_status (); 26870int 26871main () 26872{ 26873return p_val_status (); 26874 ; 26875 return 0; 26876} 26877_ACEOF 26878if ac_fn_c_try_link "$LINENO"; then : 26879 ac_cv_lib_val_p_val_status=yes 26880else 26881 ac_cv_lib_val_p_val_status=no 26882fi 26883rm -f core conftest.err conftest.$ac_objext \ 26884 conftest$ac_exeext conftest.$ac_ext 26885LIBS=$ac_check_lib_save_LIBS 26886fi 26887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_val_p_val_status" >&5 26888$as_echo "$ac_cv_lib_val_p_val_status" >&6; } 26889if test "x$ac_cv_lib_val_p_val_status" = xyes; then : 26890 LIBS="$LIBS -lval" 26891 VAL_LIBS="$VAL_LIBS -lval" 26892 have_val_res_query=yes 26893else 26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_init in -lpthread" >&5 26895$as_echo_n "checking for pthread_rwlock_init in -lpthread... " >&6; } 26896if ${ac_cv_lib_pthread_pthread_rwlock_init+:} false; then : 26897 $as_echo_n "(cached) " >&6 26898else 26899 ac_check_lib_save_LIBS=$LIBS 26900LIBS="-lpthread $LIBS" 26901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26902/* end confdefs.h. */ 26903 26904/* Override any GCC internal prototype to avoid an error. 26905 Use char because int might match the return type of a GCC 26906 builtin and then its argument prototype would still apply. */ 26907#ifdef __cplusplus 26908extern "C" 26909#endif 26910char pthread_rwlock_init (); 26911int 26912main () 26913{ 26914return pthread_rwlock_init (); 26915 ; 26916 return 0; 26917} 26918_ACEOF 26919if ac_fn_c_try_link "$LINENO"; then : 26920 ac_cv_lib_pthread_pthread_rwlock_init=yes 26921else 26922 ac_cv_lib_pthread_pthread_rwlock_init=no 26923fi 26924rm -f core conftest.err conftest.$ac_objext \ 26925 conftest$ac_exeext conftest.$ac_ext 26926LIBS=$ac_check_lib_save_LIBS 26927fi 26928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlock_init" >&5 26929$as_echo "$ac_cv_lib_pthread_pthread_rwlock_init" >&6; } 26930if test "x$ac_cv_lib_pthread_pthread_rwlock_init" = xyes; then : 26931 cat >>confdefs.h <<_ACEOF 26932#define HAVE_LIBPTHREAD 1 26933_ACEOF 26934 26935 LIBS="-lpthread $LIBS" 26936 26937fi 26938 26939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for p_val_status in -lval-threads" >&5 26940$as_echo_n "checking for p_val_status in -lval-threads... " >&6; } 26941if ${ac_cv_lib_val_threads_p_val_status+:} false; then : 26942 $as_echo_n "(cached) " >&6 26943else 26944 ac_check_lib_save_LIBS=$LIBS 26945LIBS="-lval-threads $LIBS" 26946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26947/* end confdefs.h. */ 26948 26949/* Override any GCC internal prototype to avoid an error. 26950 Use char because int might match the return type of a GCC 26951 builtin and then its argument prototype would still apply. */ 26952#ifdef __cplusplus 26953extern "C" 26954#endif 26955char p_val_status (); 26956int 26957main () 26958{ 26959return p_val_status (); 26960 ; 26961 return 0; 26962} 26963_ACEOF 26964if ac_fn_c_try_link "$LINENO"; then : 26965 ac_cv_lib_val_threads_p_val_status=yes 26966else 26967 ac_cv_lib_val_threads_p_val_status=no 26968fi 26969rm -f core conftest.err conftest.$ac_objext \ 26970 conftest$ac_exeext conftest.$ac_ext 26971LIBS=$ac_check_lib_save_LIBS 26972fi 26973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_val_threads_p_val_status" >&5 26974$as_echo "$ac_cv_lib_val_threads_p_val_status" >&6; } 26975if test "x$ac_cv_lib_val_threads_p_val_status" = xyes; then : 26976 have_val_res_query=yes 26977 LIBS="-lval-threads $LIBS" 26978 VAL_LIBS="-lval-threads -lpthread $VAL_LIBS" 26979 LIBVAL_SUFFIX="-threads" 26980else 26981 as_fn_error $? "Can't find libval or libval-threads" "$LINENO" 5 26982fi 26983 26984 26985fi 26986 26987 26988$as_echo "#define DNSSEC_LOCAL_VALIDATION 1" >>confdefs.h 26989 26990 DNSSEC="enabled" 26991else 26992 DNSSEC="disabled" 26993fi 26994 26995LIBS=${_libs} 26996 26997 26998 26999 cat >> configure-summary << EOF 27000 Local DNSSEC validation: $DNSSEC 27001EOF 27002 27003 27004 27005 27006# -*- autoconf -*- 27007######################################### 27008## 27009# Checks for types 27010## 27011######################################### 27012 27013## 27014# Standard checks: 27015## 27016 27017# Checks for typedefs, structures, and compiler characteristics. 27018ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 27019if test "x$ac_cv_type_off_t" = xyes; then : 27020 27021else 27022 27023cat >>confdefs.h <<_ACEOF 27024#define off_t long int 27025_ACEOF 27026 27027fi 27028 27029ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 27030if test "x$ac_cv_type_pid_t" = xyes; then : 27031 27032else 27033 27034cat >>confdefs.h <<_ACEOF 27035#define pid_t int 27036_ACEOF 27037 27038fi 27039 27040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 27041$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 27042if ${ac_cv_header_time+:} false; then : 27043 $as_echo_n "(cached) " >&6 27044else 27045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27046/* end confdefs.h. */ 27047#include <sys/types.h> 27048#include <sys/time.h> 27049#include <time.h> 27050 27051int 27052main () 27053{ 27054if ((struct tm *) 0) 27055return 0; 27056 ; 27057 return 0; 27058} 27059_ACEOF 27060if ac_fn_c_try_compile "$LINENO"; then : 27061 ac_cv_header_time=yes 27062else 27063 ac_cv_header_time=no 27064fi 27065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27066fi 27067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 27068$as_echo "$ac_cv_header_time" >&6; } 27069if test $ac_cv_header_time = yes; then 27070 27071$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 27072 27073fi 27074 27075cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27076/* end confdefs.h. */ 27077 27078int 27079main () 27080{ 27081int x __attribute__((deprecated)) 27082 ; 27083 return 0; 27084} 27085_ACEOF 27086if ac_fn_c_try_compile "$LINENO"; then : 27087 attr="__attribute__((deprecated))" 27088else 27089 attr="/**/" 27090fi 27091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27092 27093cat >>confdefs.h <<_ACEOF 27094#define NETSNMP_ATTRIBUTE_DEPRECATED ${attr} 27095_ACEOF 27096 27097 27098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27099/* end confdefs.h. */ 27100 27101int 27102main () 27103{ 27104int x __attribute__((unused)) 27105 ; 27106 return 0; 27107} 27108_ACEOF 27109if ac_fn_c_try_compile "$LINENO"; then : 27110 attr="__attribute__((unused))" 27111else 27112 attr="/**/" 27113fi 27114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27115 27116cat >>confdefs.h <<_ACEOF 27117#define NETSNMP_ATTRIBUTE_UNUSED ${attr} 27118_ACEOF 27119 27120 27121 27122## 27123# More complex checks: 27124## 27125 27126# Check for 'socklen_t', 'in_addr_t' and 'ssize_t'. 27127# 27128ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 27129#if defined(HAVE_WINSOCK2_H) && defined(HAVE_WS2TCPIP_H) 27130#include <winsock2.h> 27131#include <ws2tcpip.h> 27132#endif 27133#include <stdlib.h> 27134#include <stddef.h> 27135#ifdef HAVE_SYS_TYPES_H 27136#include <sys/types.h> 27137#endif 27138#ifdef HAVE_SYS_SOCKET_H 27139#include <sys/socket.h> 27140#endif 27141#ifdef HAVE_NETINET_IN_H 27142#include <netinet/in.h> 27143#endif 27144" 27145if test "x$ac_cv_type_socklen_t" = xyes; then : 27146 27147cat >>confdefs.h <<_ACEOF 27148#define HAVE_SOCKLEN_T 1 27149_ACEOF 27150 27151 27152fi 27153ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 27154#if defined(HAVE_WINSOCK2_H) && defined(HAVE_WS2TCPIP_H) 27155#include <winsock2.h> 27156#include <ws2tcpip.h> 27157#endif 27158#include <stdlib.h> 27159#include <stddef.h> 27160#ifdef HAVE_SYS_TYPES_H 27161#include <sys/types.h> 27162#endif 27163#ifdef HAVE_SYS_SOCKET_H 27164#include <sys/socket.h> 27165#endif 27166#ifdef HAVE_NETINET_IN_H 27167#include <netinet/in.h> 27168#endif 27169" 27170if test "x$ac_cv_type_in_addr_t" = xyes; then : 27171 27172cat >>confdefs.h <<_ACEOF 27173#define HAVE_IN_ADDR_T 1 27174_ACEOF 27175 27176 27177fi 27178ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" " 27179#if defined(HAVE_WINSOCK2_H) && defined(HAVE_WS2TCPIP_H) 27180#include <winsock2.h> 27181#include <ws2tcpip.h> 27182#endif 27183#include <stdlib.h> 27184#include <stddef.h> 27185#ifdef HAVE_SYS_TYPES_H 27186#include <sys/types.h> 27187#endif 27188#ifdef HAVE_SYS_SOCKET_H 27189#include <sys/socket.h> 27190#endif 27191#ifdef HAVE_NETINET_IN_H 27192#include <netinet/in.h> 27193#endif 27194" 27195if test "x$ac_cv_type_ssize_t" = xyes; then : 27196 27197cat >>confdefs.h <<_ACEOF 27198#define HAVE_SSIZE_T 1 27199_ACEOF 27200 27201 27202fi 27203 27204 27205if test "x$ac_cv_type_in_addr_t" != xyes; then 27206 27207$as_echo "#define in_addr_t unsigned long" >>confdefs.h 27208 27209fi 27210 27211# 27212# Check for the type of the fifth argument of select() 27213# 27214 27215netsnmp_save_CFLAGS=$CFLAGS 27216CFLAGS="$CFLAGS -Werror" 27217 27218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the type of the fifth argument of select()" >&5 27219$as_echo_n "checking for the type of the fifth argument of select()... " >&6; } 27220arg_type=void 27221for t in "struct timeval" "struct __ms_timeval"; do 27222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27223/* end confdefs.h. */ 27224 27225#if defined(HAVE_WINSOCK2_H) && defined(HAVE_WS2TCPIP_H) 27226#include <winsock2.h> 27227#include <ws2tcpip.h> 27228#else 27229#ifdef HAVE_SYS_SELECT_H 27230#include <sys/select.h> 27231#endif 27232#endif 27233#include <stddef.h> 27234 27235int 27236main () 27237{ 27238return select(0, NULL, NULL, NULL, ($t *)NULL) 27239 ; 27240 return 0; 27241} 27242_ACEOF 27243if ac_fn_c_try_compile "$LINENO"; then : 27244 arg_type=$t; break 27245fi 27246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27247done 27248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${arg_type}" >&5 27249$as_echo "${arg_type}" >&6; } 27250 27251cat >>confdefs.h <<_ACEOF 27252#define NETSNMP_SELECT_TIMEVAL ${arg_type} 27253_ACEOF 27254 27255 27256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the type of the third argument of ioctlsocket()" >&5 27257$as_echo_n "checking for the type of the third argument of ioctlsocket()... " >&6; } 27258arg_type=void 27259for t in "unsigned int" "unsigned long"; do 27260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27261/* end confdefs.h. */ 27262 27263#if defined(HAVE_WINSOCK2_H) && defined(HAVE_WS2TCPIP_H) 27264#include <winsock2.h> 27265#include <ws2tcpip.h> 27266#else 27267#ifdef HAVE_SYS_SELECT_H 27268#include <sys/select.h> 27269#endif 27270#endif 27271#include <stddef.h> 27272 27273int 27274main () 27275{ 27276return ioctlsocket(0, 0, ($t *)NULL) 27277 ; 27278 return 0; 27279} 27280_ACEOF 27281if ac_fn_c_try_compile "$LINENO"; then : 27282 arg_type=$t; break 27283fi 27284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27285done 27286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${arg_type}" >&5 27287$as_echo "${arg_type}" >&6; } 27288 27289cat >>confdefs.h <<_ACEOF 27290#define NETSNMP_IOCTLSOCKET_ARG ${arg_type} 27291_ACEOF 27292 27293 27294CFLAGS=$netsnmp_save_CFLAGS 27295 27296# -*- autoconf -*- 27297######################################### 27298## 27299# Miscellaneous checks 27300## 27301######################################### 27302 27303## 27304# Compilation characteristics 27305## 27306 27307 27308cat >confcache <<\_ACEOF 27309# This file is a shell script that caches the results of configure 27310# tests run on this system so they can be shared between configure 27311# scripts and configure runs, see configure's option --config-cache. 27312# It is not useful on other systems. If it contains results you don't 27313# want to keep, you may remove or edit it. 27314# 27315# config.status only pays attention to the cache file if you give it 27316# the --recheck option to rerun configure. 27317# 27318# `ac_cv_env_foo' variables (set or unset) will be overridden when 27319# loading this file, other *unset* `ac_cv_foo' will be assigned the 27320# following values. 27321 27322_ACEOF 27323 27324# The following way of writing the cache mishandles newlines in values, 27325# but we know of no workaround that is simple, portable, and efficient. 27326# So, we kill variables containing newlines. 27327# Ultrix sh set writes to stderr and can't be redirected directly, 27328# and sets the high bit in the cache file unless we assign to the vars. 27329( 27330 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 27331 eval ac_val=\$$ac_var 27332 case $ac_val in #( 27333 *${as_nl}*) 27334 case $ac_var in #( 27335 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 27336$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 27337 esac 27338 case $ac_var in #( 27339 _ | IFS | as_nl) ;; #( 27340 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 27341 *) { eval $ac_var=; unset $ac_var;} ;; 27342 esac ;; 27343 esac 27344 done 27345 27346 (set) 2>&1 | 27347 case $as_nl`(ac_space=' '; set) 2>&1` in #( 27348 *${as_nl}ac_space=\ *) 27349 # `set' does not quote correctly, so add quotes: double-quote 27350 # substitution turns \\\\ into \\, and sed turns \\ into \. 27351 sed -n \ 27352 "s/'/'\\\\''/g; 27353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27354 ;; #( 27355 *) 27356 # `set' quotes correctly as required by POSIX, so do not add quotes. 27357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 27358 ;; 27359 esac | 27360 sort 27361) | 27362 sed ' 27363 /^ac_cv_env_/b end 27364 t clear 27365 :clear 27366 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27367 t end 27368 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27369 :end' >>confcache 27370if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 27371 if test -w "$cache_file"; then 27372 if test "x$cache_file" != "x/dev/null"; then 27373 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 27374$as_echo "$as_me: updating cache $cache_file" >&6;} 27375 if test ! -f "$cache_file" || test -h "$cache_file"; then 27376 cat confcache >"$cache_file" 27377 else 27378 case $cache_file in #( 27379 */* | ?:*) 27380 mv -f confcache "$cache_file"$$ && 27381 mv -f "$cache_file"$$ "$cache_file" ;; #( 27382 *) 27383 mv -f confcache "$cache_file" ;; 27384 esac 27385 fi 27386 fi 27387 else 27388 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 27389$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 27390 fi 27391fi 27392rm -f confcache 27393# -*- autoconf -*- 27394######################################### 27395## 27396# Checks for library functions. 27397## 27398######################################### 27399# 27400# Portions of this file are copyrighted by: 27401# Copyright (c) 2016 VMware, Inc. All rights reserved. 27402# Use is subject to license terms specified in the COPYING file 27403# distributed with the Net-SNMP package. 27404 27405## 27406# Standard checks: 27407## 27408ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 27409if test "x$ac_cv_type_size_t" = xyes; then : 27410 27411else 27412 27413cat >>confdefs.h <<_ACEOF 27414#define size_t unsigned int 27415_ACEOF 27416 27417fi 27418 27419# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 27420# for constant arguments. Useless! 27421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 27422$as_echo_n "checking for working alloca.h... " >&6; } 27423if ${ac_cv_working_alloca_h+:} false; then : 27424 $as_echo_n "(cached) " >&6 27425else 27426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27427/* end confdefs.h. */ 27428#include <alloca.h> 27429int 27430main () 27431{ 27432char *p = (char *) alloca (2 * sizeof (int)); 27433 if (p) return 0; 27434 ; 27435 return 0; 27436} 27437_ACEOF 27438if ac_fn_c_try_link "$LINENO"; then : 27439 ac_cv_working_alloca_h=yes 27440else 27441 ac_cv_working_alloca_h=no 27442fi 27443rm -f core conftest.err conftest.$ac_objext \ 27444 conftest$ac_exeext conftest.$ac_ext 27445fi 27446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 27447$as_echo "$ac_cv_working_alloca_h" >&6; } 27448if test $ac_cv_working_alloca_h = yes; then 27449 27450$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 27451 27452fi 27453 27454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 27455$as_echo_n "checking for alloca... " >&6; } 27456if ${ac_cv_func_alloca_works+:} false; then : 27457 $as_echo_n "(cached) " >&6 27458else 27459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27460/* end confdefs.h. */ 27461#ifdef __GNUC__ 27462# define alloca __builtin_alloca 27463#else 27464# ifdef _MSC_VER 27465# include <malloc.h> 27466# define alloca _alloca 27467# else 27468# ifdef HAVE_ALLOCA_H 27469# include <alloca.h> 27470# else 27471# ifdef _AIX 27472 #pragma alloca 27473# else 27474# ifndef alloca /* predefined by HP cc +Olibcalls */ 27475void *alloca (size_t); 27476# endif 27477# endif 27478# endif 27479# endif 27480#endif 27481 27482int 27483main () 27484{ 27485char *p = (char *) alloca (1); 27486 if (p) return 0; 27487 ; 27488 return 0; 27489} 27490_ACEOF 27491if ac_fn_c_try_link "$LINENO"; then : 27492 ac_cv_func_alloca_works=yes 27493else 27494 ac_cv_func_alloca_works=no 27495fi 27496rm -f core conftest.err conftest.$ac_objext \ 27497 conftest$ac_exeext conftest.$ac_ext 27498fi 27499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 27500$as_echo "$ac_cv_func_alloca_works" >&6; } 27501 27502if test $ac_cv_func_alloca_works = yes; then 27503 27504$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 27505 27506else 27507 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 27508# that cause trouble. Some versions do not even contain alloca or 27509# contain a buggy version. If you still want to use their alloca, 27510# use ar to extract alloca.o from them instead of compiling alloca.c. 27511 27512ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 27513 27514$as_echo "#define C_ALLOCA 1" >>confdefs.h 27515 27516 27517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 27518$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 27519if ${ac_cv_os_cray+:} false; then : 27520 $as_echo_n "(cached) " >&6 27521else 27522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27523/* end confdefs.h. */ 27524#if defined CRAY && ! defined CRAY2 27525webecray 27526#else 27527wenotbecray 27528#endif 27529 27530_ACEOF 27531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27532 $EGREP "webecray" >/dev/null 2>&1; then : 27533 ac_cv_os_cray=yes 27534else 27535 ac_cv_os_cray=no 27536fi 27537rm -f conftest* 27538 27539fi 27540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 27541$as_echo "$ac_cv_os_cray" >&6; } 27542if test $ac_cv_os_cray = yes; then 27543 for ac_func in _getb67 GETB67 getb67; do 27544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27545ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27546if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27547 27548cat >>confdefs.h <<_ACEOF 27549#define CRAY_STACKSEG_END $ac_func 27550_ACEOF 27551 27552 break 27553fi 27554 27555 done 27556fi 27557 27558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 27559$as_echo_n "checking stack direction for C alloca... " >&6; } 27560if ${ac_cv_c_stack_direction+:} false; then : 27561 $as_echo_n "(cached) " >&6 27562else 27563 if test "$cross_compiling" = yes; then : 27564 ac_cv_c_stack_direction=0 27565else 27566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27567/* end confdefs.h. */ 27568$ac_includes_default 27569int 27570find_stack_direction (int *addr, int depth) 27571{ 27572 int dir, dummy = 0; 27573 if (! addr) 27574 addr = &dummy; 27575 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 27576 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 27577 return dir + dummy; 27578} 27579 27580int 27581main (int argc, char **argv) 27582{ 27583 return find_stack_direction (0, argc + !argv + 20) < 0; 27584} 27585_ACEOF 27586if ac_fn_c_try_run "$LINENO"; then : 27587 ac_cv_c_stack_direction=1 27588else 27589 ac_cv_c_stack_direction=-1 27590fi 27591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27592 conftest.$ac_objext conftest.beam conftest.$ac_ext 27593fi 27594 27595fi 27596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 27597$as_echo "$ac_cv_c_stack_direction" >&6; } 27598cat >>confdefs.h <<_ACEOF 27599#define STACK_DIRECTION $ac_cv_c_stack_direction 27600_ACEOF 27601 27602 27603fi 27604 # alloca() 27605if test $ac_cv_c_compiler_gnu = yes; then 27606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 27607$as_echo_n "checking whether $CC needs -traditional... " >&6; } 27608if ${ac_cv_prog_gcc_traditional+:} false; then : 27609 $as_echo_n "(cached) " >&6 27610else 27611 ac_pattern="Autoconf.*'x'" 27612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27613/* end confdefs.h. */ 27614#include <sgtty.h> 27615Autoconf TIOCGETP 27616_ACEOF 27617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27618 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 27619 ac_cv_prog_gcc_traditional=yes 27620else 27621 ac_cv_prog_gcc_traditional=no 27622fi 27623rm -f conftest* 27624 27625 27626 if test $ac_cv_prog_gcc_traditional = no; then 27627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27628/* end confdefs.h. */ 27629#include <termio.h> 27630Autoconf TCGETA 27631_ACEOF 27632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27633 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 27634 ac_cv_prog_gcc_traditional=yes 27635fi 27636rm -f conftest* 27637 27638 fi 27639fi 27640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 27641$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 27642 if test $ac_cv_prog_gcc_traditional = yes; then 27643 CC="$CC -traditional" 27644 fi 27645fi 27646 27647 27648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 27649$as_echo_n "checking return type of signal handlers... " >&6; } 27650if ${ac_cv_type_signal+:} false; then : 27651 $as_echo_n "(cached) " >&6 27652else 27653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27654/* end confdefs.h. */ 27655#include <sys/types.h> 27656#include <signal.h> 27657 27658int 27659main () 27660{ 27661return *(signal (0, 0)) (0) == 1; 27662 ; 27663 return 0; 27664} 27665_ACEOF 27666if ac_fn_c_try_compile "$LINENO"; then : 27667 ac_cv_type_signal=int 27668else 27669 ac_cv_type_signal=void 27670fi 27671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27672fi 27673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 27674$as_echo "$ac_cv_type_signal" >&6; } 27675 27676cat >>confdefs.h <<_ACEOF 27677#define RETSIGTYPE $ac_cv_type_signal 27678_ACEOF 27679 27680 27681 27682## 27683# Stand-alone function checks: 27684## 27685# Core: 27686for ac_func in rand random srand srandom lrand48 srand48 27687do : 27688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27689ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27690if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27691 cat >>confdefs.h <<_ACEOF 27692#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27693_ACEOF 27694 27695fi 27696done 27697 27698 27699# Library: 27700for ac_func in asprintf closedir fgetc_unlocked flockfile funlockfile getipnodebyname gettimeofday getlogin if_nametoindex mkstemp opendir readdir regcomp setenv setitimer setlocale setsid snprintf strcasestr strdup strerror strncasecmp sysconf times vsnprintf 27701do : 27702 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27703ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27704if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27705 cat >>confdefs.h <<_ACEOF 27706#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27707_ACEOF 27708 27709fi 27710done 27711 27712 27713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _NSGetArgv()" >&5 27714$as_echo_n "checking for _NSGetArgv()... " >&6; } 27715cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27716/* end confdefs.h. */ 27717#include <crt_externs.h> 27718int 27719main () 27720{ 27721return _NSGetArgv 27722 ; 27723 return 0; 27724} 27725_ACEOF 27726if ac_fn_c_try_link "$LINENO"; then : 27727 27728$as_echo "#define HAVE__NSGETARGV 1" >>confdefs.h 27729 27730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27731$as_echo "yes" >&6; } 27732 27733else 27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27735$as_echo "no" >&6; } 27736 27737fi 27738rm -f core conftest.err conftest.$ac_objext \ 27739 conftest$ac_exeext conftest.$ac_ext 27740 27741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _NSGetExecutablePath()" >&5 27742$as_echo_n "checking for _NSGetExecutablePath()... " >&6; } 27743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27744/* end confdefs.h. */ 27745#include <mach-o/dyld.h> 27746int 27747main () 27748{ 27749return _NSGetExecutablePath 27750 ; 27751 return 0; 27752} 27753_ACEOF 27754if ac_fn_c_try_link "$LINENO"; then : 27755 27756$as_echo "#define HAVE__NSGETEXECUTABLEPATH 1" >>confdefs.h 27757 27758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27759$as_echo "yes" >&6; } 27760 27761else 27762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27763$as_echo "no" >&6; } 27764 27765fi 27766rm -f core conftest.err conftest.$ac_objext \ 27767 conftest$ac_exeext conftest.$ac_ext 27768 27769# IPv4/IPv6 function checks. AC_CHECK_FUNC() can't find these on MinGW 27770# since these functions have the __cdecl calling convention on MinGW. 27771case x$with_socklib in 27772 xwinsock2) 27773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27774/* end confdefs.h. */ 27775#include <winsock2.h> 27776int 27777main () 27778{ 27779 closesocket(0); 27780 ; 27781 return 0; 27782} 27783_ACEOF 27784if ac_fn_c_try_link "$LINENO"; then : 27785 ac_cv_func_closesocket=yes 27786 $as_echo "#define HAVE_CLOSESOCKET 1" >>confdefs.h 27787 27788fi 27789rm -f core conftest.err conftest.$ac_objext \ 27790 conftest$ac_exeext conftest.$ac_ext 27791 27792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27793/* end confdefs.h. */ 27794#include <ws2tcpip.h> 27795int 27796main () 27797{ 27798 gai_strerror(0); 27799 ; 27800 return 0; 27801} 27802_ACEOF 27803if ac_fn_c_try_link "$LINENO"; then : 27804 ac_cv_func_gai_strerror=yes 27805 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h 27806 27807fi 27808rm -f core conftest.err conftest.$ac_objext \ 27809 conftest$ac_exeext conftest.$ac_ext 27810 27811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27812/* end confdefs.h. */ 27813#include <ws2tcpip.h> 27814int 27815main () 27816{ 27817 getaddrinfo(NULL, NULL, NULL, NULL); 27818 ; 27819 return 0; 27820} 27821_ACEOF 27822if ac_fn_c_try_link "$LINENO"; then : 27823 ac_cv_func_getaddrinfo=yes 27824 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 27825 27826fi 27827rm -f core conftest.err conftest.$ac_objext \ 27828 conftest$ac_exeext conftest.$ac_ext 27829 27830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27831/* end confdefs.h. */ 27832#include <winsock2.h> 27833int 27834main () 27835{ 27836 gethostbyname(NULL); 27837 ; 27838 return 0; 27839} 27840_ACEOF 27841if ac_fn_c_try_link "$LINENO"; then : 27842 ac_cv_func_gethostbyname=yes 27843 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 27844 27845fi 27846rm -f core conftest.err conftest.$ac_objext \ 27847 conftest$ac_exeext conftest.$ac_ext 27848 27849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27850/* end confdefs.h. */ 27851#include <winsock2.h> 27852int 27853main () 27854{ 27855 gethostbyaddr(NULL); 27856 ; 27857 return 0; 27858} 27859_ACEOF 27860if ac_fn_c_try_link "$LINENO"; then : 27861 ac_cv_func_gethostbyaddr=yes 27862 $as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h 27863 27864fi 27865rm -f core conftest.err conftest.$ac_objext \ 27866 conftest$ac_exeext conftest.$ac_ext 27867 27868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27869/* end confdefs.h. */ 27870#include <winsock2.h> 27871int 27872main () 27873{ 27874 gethostname(NULL, 0); 27875 ; 27876 return 0; 27877} 27878_ACEOF 27879if ac_fn_c_try_link "$LINENO"; then : 27880 ac_cv_func_gethostname=yes 27881 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h 27882 27883fi 27884rm -f core conftest.err conftest.$ac_objext \ 27885 conftest$ac_exeext conftest.$ac_ext 27886 ;; 27887 27888 *) 27889 # Do not use fork() nor any related function when using Windows sockets 27890 # because Windows sockets are not compatible with fork(). 27891 for ac_func in execv fork signal sigset uname closesocket gai_strerror getaddrinfo gethostbyname gethostbyname2 gethostname gethostbyaddr inet_ntop inet_pton 27892do : 27893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27894ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27895if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27896 cat >>confdefs.h <<_ACEOF 27897#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27898_ACEOF 27899 27900fi 27901done 27902 27903 ;; 27904esac 27905 27906# Check for MSVC functions. 27907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _beginthreadex()" >&5 27908$as_echo_n "checking for _beginthreadex()... " >&6; } 27909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27910/* end confdefs.h. */ 27911 27912#include <stddef.h> 27913#include <process.h> 27914 27915int 27916main () 27917{ 27918 _beginthreadex(NULL, 0, NULL, NULL, 0, NULL); 27919 ; 27920 return 0; 27921} 27922_ACEOF 27923if ac_fn_c_try_link "$LINENO"; then : 27924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27925$as_echo "yes" >&6; } 27926 27927$as_echo "#define HAVE__BEGINTHREADEX 1" >>confdefs.h 27928 27929else 27930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27931$as_echo "no" >&6; } 27932fi 27933rm -f core conftest.err conftest.$ac_objext \ 27934 conftest$ac_exeext conftest.$ac_ext 27935 27936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _cputs()" >&5 27937$as_echo_n "checking for _cputs()... " >&6; } 27938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27939/* end confdefs.h. */ 27940#include <conio.h> 27941int 27942main () 27943{ 27944 _cputs(0); 27945 ; 27946 return 0; 27947} 27948_ACEOF 27949if ac_fn_c_try_link "$LINENO"; then : 27950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27951$as_echo "yes" >&6; } 27952 27953$as_echo "#define HAVE__CPUTS 1" >>confdefs.h 27954 27955else 27956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27957$as_echo "no" >&6; } 27958fi 27959rm -f core conftest.err conftest.$ac_objext \ 27960 conftest$ac_exeext conftest.$ac_ext 27961 27962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _get_osfhandle()" >&5 27963$as_echo_n "checking for _get_osfhandle()... " >&6; } 27964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27965/* end confdefs.h. */ 27966#include <io.h> 27967int 27968main () 27969{ 27970 _get_osfhandle(0); 27971 ; 27972 return 0; 27973} 27974_ACEOF 27975if ac_fn_c_try_link "$LINENO"; then : 27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27977$as_echo "yes" >&6; } 27978 27979$as_echo "#define HAVE__GET_OSFHANDLE 1" >>confdefs.h 27980 27981else 27982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27983$as_echo "no" >&6; } 27984fi 27985rm -f core conftest.err conftest.$ac_objext \ 27986 conftest$ac_exeext conftest.$ac_ext 27987 27988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _getch()" >&5 27989$as_echo_n "checking for _getch()... " >&6; } 27990cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27991/* end confdefs.h. */ 27992#include <conio.h> 27993int 27994main () 27995{ 27996 return _getch(); 27997 ; 27998 return 0; 27999} 28000_ACEOF 28001if ac_fn_c_try_link "$LINENO"; then : 28002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28003$as_echo "yes" >&6; } 28004 28005$as_echo "#define HAVE__GETCH 1" >>confdefs.h 28006 28007else 28008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28009$as_echo "no" >&6; } 28010fi 28011rm -f core conftest.err conftest.$ac_objext \ 28012 conftest$ac_exeext conftest.$ac_ext 28013 28014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _open_osfhandle()" >&5 28015$as_echo_n "checking for _open_osfhandle()... " >&6; } 28016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28017/* end confdefs.h. */ 28018 28019#include <stddef.h> 28020#include <io.h> 28021 28022int 28023main () 28024{ 28025 _open_osfhandle(NULL, 0); 28026 ; 28027 return 0; 28028} 28029_ACEOF 28030if ac_fn_c_try_link "$LINENO"; then : 28031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28032$as_echo "yes" >&6; } 28033 28034$as_echo "#define HAVE__OPEN_OSFHANDLE 1" >>confdefs.h 28035 28036else 28037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28038$as_echo "no" >&6; } 28039fi 28040rm -f core conftest.err conftest.$ac_objext \ 28041 conftest$ac_exeext conftest.$ac_ext 28042 28043 28044 28045 28046ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 28047if test "x$ac_cv_func_getopt" = xyes; then : 28048 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h 28049 28050else 28051 case " $LIBOBJS " in 28052 *" getopt.$ac_objext "* ) ;; 28053 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 28054 ;; 28055esac 28056 28057fi 28058 28059ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 28060if test "x$ac_cv_func_strlcat" = xyes; then : 28061 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 28062 28063else 28064 case " $LIBOBJS " in 28065 *" strlcat.$ac_objext "* ) ;; 28066 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 28067 ;; 28068esac 28069 28070fi 28071 28072ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 28073if test "x$ac_cv_func_strlcpy" = xyes; then : 28074 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 28075 28076else 28077 case " $LIBOBJS " in 28078 *" strlcpy.$ac_objext "* ) ;; 28079 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 28080 ;; 28081esac 28082 28083fi 28084 28085ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" 28086if test "x$ac_cv_func_strtok_r" = xyes; then : 28087 $as_echo "#define HAVE_STRTOK_R 1" >>confdefs.h 28088 28089else 28090 case " $LIBOBJS " in 28091 *" strtok_r.$ac_objext "* ) ;; 28092 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext" 28093 ;; 28094esac 28095 28096fi 28097 28098ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 28099if test "x$ac_cv_func_strtol" = xyes; then : 28100 $as_echo "#define HAVE_STRTOL 1" >>confdefs.h 28101 28102else 28103 case " $LIBOBJS " in 28104 *" strtol.$ac_objext "* ) ;; 28105 *) LIBOBJS="$LIBOBJS strtol.$ac_objext" 28106 ;; 28107esac 28108 28109fi 28110 28111ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 28112if test "x$ac_cv_func_strtoul" = xyes; then : 28113 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h 28114 28115else 28116 case " $LIBOBJS " in 28117 *" strtoul.$ac_objext "* ) ;; 28118 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext" 28119 ;; 28120esac 28121 28122fi 28123 28124ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 28125if test "x$ac_cv_func_strtoull" = xyes; then : 28126 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h 28127 28128else 28129 case " $LIBOBJS " in 28130 *" strtoull.$ac_objext "* ) ;; 28131 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" 28132 ;; 28133esac 28134 28135fi 28136 28137 28138 28139# Agent: 28140for ac_func in cgetnext chown forkall fsync gai_strerror getgrnam gethostname getloadavg getpid getpwnam hasmntopt initgroups if_nameindex if_indextoname if_nametoindex localtime_r mkstemp mktime poll regcomp setgid setgroups setmntent setuid sigaction sigblock sighold sigprocmask statfs statvfs stime strncasecmp system usleep 28141do : 28142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 28143ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 28144if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 28145 cat >>confdefs.h <<_ACEOF 28146#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 28147_ACEOF 28148 28149fi 28150done 28151 28152 28153# Apps: 28154for ac_func in getdtablesize getgrnam getpid getpwnam setgid setgroups setuid tcgetattr 28155do : 28156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 28157ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 28158if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 28159 cat >>confdefs.h <<_ACEOF 28160#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 28161_ACEOF 28162 28163fi 28164done 28165 28166 28167# Not-Used: 28168for ac_func in if_freenameindex getpagesize lseek64 pread64 select sigalrm socket 28169do : 28170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 28171ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 28172if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 28173 cat >>confdefs.h <<_ACEOF 28174#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 28175_ACEOF 28176 28177fi 28178done 28179 28180 28181 28182## 28183# More complex function checks: 28184# (Agent) 28185## 28186 28187# rpmGetPath check needs clean LIBS environment (Linux) 28188# 28189if test "x$with_rpm" != "xno"; then 28190 OLDLIBS=$LIBS 28191 LIBS=$LMIBLIBS 28192 for ac_func in rpmGetPath 28193do : 28194 ac_fn_c_check_func "$LINENO" "rpmGetPath" "ac_cv_func_rpmGetPath" 28195if test "x$ac_cv_func_rpmGetPath" = xyes; then : 28196 cat >>confdefs.h <<_ACEOF 28197#define HAVE_RPMGETPATH 1 28198_ACEOF 28199 28200fi 28201done 28202 28203 LIBS=$OLDLIBS 28204fi 28205 28206# statfs( char *, struct fs_data* ) (Ultrix) 28207# 28208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5 28209$as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; } 28210if ${fu_cv_sys_stat_fs_data+:} false; then : 28211 $as_echo_n "(cached) " >&6 28212else 28213 if test "$cross_compiling" = yes; then : 28214 fu_cv_sys_stat_fs_data=no 28215else 28216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28217/* end confdefs.h. */ 28218 28219#ifdef HAVE_SYS_PARAM_H 28220#include <sys/param.h> 28221#endif 28222#include <sys/types.h> 28223#ifdef HAVE_SYS_MOUNT_H 28224#include <sys/mount.h> 28225#endif 28226#ifdef HAVE_SYS_FS_TYPES_H 28227#include <sys/fs_types.h> 28228#endif 28229main () 28230{ 28231struct fs_data fsd; 28232/* Ultrix's statfs returns 1 for success, 28233 0 for not mounted, -1 for failure. */ 28234exit (statfs (".", &fsd) != 1); 28235} 28236_ACEOF 28237if ac_fn_c_try_run "$LINENO"; then : 28238 fu_cv_sys_stat_fs_data=yes 28239else 28240 fu_cv_sys_stat_fs_data=no 28241fi 28242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28243 conftest.$ac_objext conftest.beam conftest.$ac_ext 28244fi 28245 28246fi 28247 28248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5 28249$as_echo "$fu_cv_sys_stat_fs_data" >&6; } 28250if test $fu_cv_sys_stat_fs_data = yes; then 28251 28252$as_echo "#define STAT_STATFS_FS_DATA 1" >>confdefs.h 28253 28254fi 28255 28256 28257## 28258# Other function-related checks: 28259# (general build) 28260## 28261 28262# How to get the name of the current function 28263# 28264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the name of the current function" >&5 28265$as_echo_n "checking how to get the name of the current function... " >&6; } 28266if ${netsnmp_cv__func__name+:} false; then : 28267 $as_echo_n "(cached) " >&6 28268else 28269 28270 netsnmp_cv__func__name=no 28271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28272/* end confdefs.h. */ 28273 28274int 28275main () 28276{ 28277const char* cp = __func__; 28278 ; 28279 return 0; 28280} 28281_ACEOF 28282if ac_fn_c_try_compile "$LINENO"; then : 28283 netsnmp_cv__func__name=__func__ 28284fi 28285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28286 if test "$netsnmp_cv__func__name" = no ; then 28287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28288/* end confdefs.h. */ 28289 28290int 28291main () 28292{ 28293const char* cp = __FUNCTION__; 28294 ; 28295 return 0; 28296} 28297_ACEOF 28298if ac_fn_c_try_compile "$LINENO"; then : 28299 netsnmp_cv__func__name=__FUNCTION__ 28300fi 28301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28302 fi 28303fi 28304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv__func__name" >&5 28305$as_echo "$netsnmp_cv__func__name" >&6; } 28306if test "$netsnmp_cv__func__name" != no; then 28307 28308cat >>confdefs.h <<_ACEOF 28309#define NETSNMP_FUNCTION $netsnmp_cv__func__name 28310_ACEOF 28311 28312fi 28313 28314 28315# Whether static inline functions are broken (SCO Unixware) 28316# 28317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static inline functions are broken (Unixware)" >&5 28318$as_echo_n "checking whether static inline functions are broken (Unixware)... " >&6; } 28319if ${netsnmp_cv_broken_inline+:} false; then : 28320 $as_echo_n "(cached) " >&6 28321else 28322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28323/* end confdefs.h. */ 28324 28325static inline int nested_inline_function(void) { 28326 return 0; 28327} 28328inline int main_inline_function( void ) { 28329 return nested_inline_function(); 28330} 28331 28332_ACEOF 28333if ac_fn_c_try_compile "$LINENO"; then : 28334 28335# Yes - static inline functions are broken (Solaris 2.x) 28336# 28337case "$target_os" in 28338 solaris*) 28339 netsnmp_cv_broken_inline=yes 28340 ;; 28341 *) 28342 netsnmp_cv_broken_inline=no 28343 ;; 28344esac 28345else 28346 28347 netsnmp_cv_broken_inline=yes 28348 28349fi 28350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28351fi 28352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_broken_inline" >&5 28353$as_echo "$netsnmp_cv_broken_inline" >&6; } 28354 28355if test "$netsnmp_cv_broken_inline" = yes ; then 28356 28357$as_echo "#define NETSNMP_BROKEN_INLINE 1" >>confdefs.h 28358 28359fi 28360 28361 28362## 28363# Mis-placed (non-function) checks: 28364## 28365 28366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIOCGIFADDR in sys/ioctl.h" >&5 28367$as_echo_n "checking for SIOCGIFADDR in sys/ioctl.h... " >&6; } 28368if ${netsnmp_cv_sys_ioctl_h_has_SIOCGIFADDR+:} false; then : 28369 $as_echo_n "(cached) " >&6 28370else 28371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28372/* end confdefs.h. */ 28373 28374#ifdef HAVE_SYS_IOCTL_H 28375#include <sys/ioctl.h> 28376#endif 28377#ifndef SIOCGIFADDR 28378No SIOCGIFADDR found here. 28379#endif 28380 28381int 28382main () 28383{ 28384 28385 ; 28386 return 0; 28387} 28388_ACEOF 28389if ac_fn_c_try_compile "$LINENO"; then : 28390 netsnmp_cv_sys_ioctl_h_has_SIOCGIFADDR=yes 28391else 28392 netsnmp_cv_sys_ioctl_h_has_SIOCGIFADDR=no 28393fi 28394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28395fi 28396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_sys_ioctl_h_has_SIOCGIFADDR" >&5 28397$as_echo "$netsnmp_cv_sys_ioctl_h_has_SIOCGIFADDR" >&6; } 28398if test $netsnmp_cv_sys_ioctl_h_has_SIOCGIFADDR = yes; then 28399 28400$as_echo "#define SYS_IOCTL_H_HAS_SIOCGIFADDR 1" >>confdefs.h 28401 28402fi 28403 28404## 28405# Check how to print a size_t variable 28406## 28407 28408case x${host_cpu}-${host_vendor}-${host_os} in 28409 x*mingw*) 28410 # MinGW or MinGW-w64. 28411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the underlying type of size_t" >&5 28412$as_echo_n "checking the underlying type of size_t... " >&6; } 28413if ${netsnmp_cv_size_t_type+:} false; then : 28414 $as_echo_n "(cached) " >&6 28415else 28416 for TYPE in int long "long long" short char; do 28417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28418/* end confdefs.h. */ 28419 28420 $ac_includes_default 28421 extern unsigned $TYPE variable; 28422 extern size_t variable; 28423 28424int 28425main () 28426{ 28427 28428 ; 28429 return 0; 28430} 28431_ACEOF 28432if ac_fn_c_try_compile "$LINENO"; then : 28433 netsnmp_cv_size_t_type="$TYPE" 28434fi 28435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28436 if test "x$netsnmp_cv_size_t_type" != x; then break; fi 28437 done 28438fi 28439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_cv_size_t_type" >&5 28440$as_echo "$netsnmp_cv_size_t_type" >&6; } 28441 28442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to printf a size_t" >&5 28443$as_echo_n "checking how to printf a size_t... " >&6; } 28444 case "$netsnmp_cv_size_t_type" in 28445 char|short|int) 28446 netsnmp_PRIz="";; 28447 long) 28448 netsnmp_PRIz="l";; 28449 "long long") 28450 netsnmp_PRIz="I64";; 28451 *) 28452 as_fn_error $? "underlying type of size_t not known" "$LINENO" 5;; 28453 esac 28454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_PRIz" >&5 28455$as_echo "$netsnmp_PRIz" >&6; };; 28456 *) 28457 # Unix or Cygwin. 28458 netsnmp_PRIz="z";; 28459esac 28460 28461cat >>confdefs.h <<_ACEOF 28462#define NETSNMP_PRIz "$netsnmp_PRIz" 28463_ACEOF 28464 28465 28466# check to see if the openssl is good enough for DTLS 28467# (BIO_dgram_get_peer is a macro, not a true function) 28468if echo " $transport_result_list " | $GREP "DTLS" > /dev/null; then 28469 if ${netsnmp_cv_bio_dgram_get_peer+:} false; then : 28470 $as_echo_n "(cached) " >&6 28471else 28472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_dgram_get_peer" >&5 28473$as_echo_n "checking for BIO_dgram_get_peer... " >&6; } 28474 28475 oldLIBS="$LIBS" 28476 LIBS="$LIBS -lcrypto" 28477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28478/* end confdefs.h. */ 28479#include <openssl/bio.h> 28480int 28481main () 28482{ 28483BIO_dgram_get_peer(NULL, NULL); 28484 ; 28485 return 0; 28486} 28487_ACEOF 28488if ac_fn_c_try_link "$LINENO"; then : 28489 28490else 28491 as_fn_error $? "DTLS support requires a newer version of OpenSSL" "$LINENO" 5 28492fi 28493rm -f core conftest.err conftest.$ac_objext \ 28494 conftest$ac_exeext conftest.$ac_ext 28495 28496 LIBS="$oldLIBS" 28497 28498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28499$as_echo "yes" >&6; } 28500 28501fi 28502 28503fi 28504 28505 28506# -*- autoconf -*- 28507######################################### 28508## 28509# Checks for data structures & members 28510## 28511######################################### 28512 28513## 28514# Simple checks: 28515## 28516 28517# struct arphd 28518# Agent: 28519# 28520ac_fn_c_check_member "$LINENO" "struct arphd" "at_next" "ac_cv_member_struct_arphd_at_next" " 28521 $ac_includes_default 28522 28523#ifdef HAVE_SYS_PARAM_H 28524#include <sys/param.h> 28525#endif 28526#ifdef HAVE_SYS_SOCKET_H 28527#include <sys/socket.h> 28528#endif 28529#ifdef HAVE_SYS_TIME_H 28530#include <sys/time.h> 28531#endif 28532#include <net/if.h> 28533#if HAVE_NETINET_IN_H 28534#include <netinet/in.h> 28535#endif 28536#if HAVE_NETINET_IF_ETHER_H 28537#include <netinet/if_ether.h> 28538#endif 28539 28540" 28541if test "x$ac_cv_member_struct_arphd_at_next" = xyes; then : 28542 28543cat >>confdefs.h <<_ACEOF 28544#define HAVE_STRUCT_ARPHD_AT_NEXT 1 28545_ACEOF 28546 28547 28548fi 28549 28550 28551# struct des_ks_struct 28552# ('weak_key' indicates older version of OpenSSL) 28553# Library: 28554# 28555if test "x$ac_cv_header_openssl_des_h" = "xyes" ; then 28556 ac_fn_c_check_member "$LINENO" "struct des_ks_struct" "weak_key" "ac_cv_member_struct_des_ks_struct_weak_key" " 28557#ifdef HAVE_OPENSSL_DES_H 28558#include <openssl/des.h> 28559#endif 28560 28561" 28562if test "x$ac_cv_member_struct_des_ks_struct_weak_key" = xyes; then : 28563 28564cat >>confdefs.h <<_ACEOF 28565#define HAVE_STRUCT_DES_KS_STRUCT_WEAK_KEY 1 28566_ACEOF 28567 28568 28569fi 28570 28571fi 28572 28573# struct dirent 28574# (see also AC_STRUCT_DIRENT_D_TYPE) 28575# Library: 28576# 28577ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" " 28578 $ac_includes_default 28579 28580#if HAVE_DIRENT_H 28581#include <dirent.h> 28582#endif 28583 28584" 28585if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then : 28586 28587cat >>confdefs.h <<_ACEOF 28588#define HAVE_STRUCT_DIRENT_D_TYPE 1 28589_ACEOF 28590 28591 28592fi 28593 28594 28595# struct ethtool_cmd 28596# 28597if test "x$ac_cv_header_linux_ethtool_h" = "xyes" ; then 28598ac_fn_c_check_member "$LINENO" "struct ethtool_cmd" "speed_hi" "ac_cv_member_struct_ethtool_cmd_speed_hi" " 28599 $ac_includes_default 28600 28601#ifdef HAVE_LINUX_ETHTOOL_H 28602#include <linux/ethtool.h> 28603#endif 28604 28605" 28606if test "x$ac_cv_member_struct_ethtool_cmd_speed_hi" = xyes; then : 28607 28608cat >>confdefs.h <<_ACEOF 28609#define HAVE_STRUCT_ETHTOOL_CMD_SPEED_HI 1 28610_ACEOF 28611 28612 28613fi 28614 28615fi 28616 28617# struct ipstat 28618# Agent: 28619# 28620ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_cantfrag" "ac_cv_member_struct_ipstat_ips_cantfrag" " 28621 $ac_includes_default 28622 28623#if HAVE_NETINET_IN_H 28624#include <netinet/in.h> 28625#endif 28626#if HAVE_NETINET_IP_VAR_H 28627#include <netinet/ip_var.h> 28628#endif 28629 28630" 28631if test "x$ac_cv_member_struct_ipstat_ips_cantfrag" = xyes; then : 28632 28633cat >>confdefs.h <<_ACEOF 28634#define HAVE_STRUCT_IPSTAT_IPS_CANTFRAG 1 28635_ACEOF 28636 28637 28638fi 28639ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_delivered" "ac_cv_member_struct_ipstat_ips_delivered" " 28640 $ac_includes_default 28641 28642#if HAVE_NETINET_IN_H 28643#include <netinet/in.h> 28644#endif 28645#if HAVE_NETINET_IP_VAR_H 28646#include <netinet/ip_var.h> 28647#endif 28648 28649" 28650if test "x$ac_cv_member_struct_ipstat_ips_delivered" = xyes; then : 28651 28652cat >>confdefs.h <<_ACEOF 28653#define HAVE_STRUCT_IPSTAT_IPS_DELIVERED 1 28654_ACEOF 28655 28656 28657fi 28658ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_fragdropped" "ac_cv_member_struct_ipstat_ips_fragdropped" " 28659 $ac_includes_default 28660 28661#if HAVE_NETINET_IN_H 28662#include <netinet/in.h> 28663#endif 28664#if HAVE_NETINET_IP_VAR_H 28665#include <netinet/ip_var.h> 28666#endif 28667 28668" 28669if test "x$ac_cv_member_struct_ipstat_ips_fragdropped" = xyes; then : 28670 28671cat >>confdefs.h <<_ACEOF 28672#define HAVE_STRUCT_IPSTAT_IPS_FRAGDROPPED 1 28673_ACEOF 28674 28675 28676fi 28677ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_fragmented" "ac_cv_member_struct_ipstat_ips_fragmented" " 28678 $ac_includes_default 28679 28680#if HAVE_NETINET_IN_H 28681#include <netinet/in.h> 28682#endif 28683#if HAVE_NETINET_IP_VAR_H 28684#include <netinet/ip_var.h> 28685#endif 28686 28687" 28688if test "x$ac_cv_member_struct_ipstat_ips_fragmented" = xyes; then : 28689 28690cat >>confdefs.h <<_ACEOF 28691#define HAVE_STRUCT_IPSTAT_IPS_FRAGMENTED 1 28692_ACEOF 28693 28694 28695fi 28696ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_localout" "ac_cv_member_struct_ipstat_ips_localout" " 28697 $ac_includes_default 28698 28699#if HAVE_NETINET_IN_H 28700#include <netinet/in.h> 28701#endif 28702#if HAVE_NETINET_IP_VAR_H 28703#include <netinet/ip_var.h> 28704#endif 28705 28706" 28707if test "x$ac_cv_member_struct_ipstat_ips_localout" = xyes; then : 28708 28709cat >>confdefs.h <<_ACEOF 28710#define HAVE_STRUCT_IPSTAT_IPS_LOCALOUT 1 28711_ACEOF 28712 28713 28714fi 28715ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_noproto" "ac_cv_member_struct_ipstat_ips_noproto" " 28716 $ac_includes_default 28717 28718#if HAVE_NETINET_IN_H 28719#include <netinet/in.h> 28720#endif 28721#if HAVE_NETINET_IP_VAR_H 28722#include <netinet/ip_var.h> 28723#endif 28724 28725" 28726if test "x$ac_cv_member_struct_ipstat_ips_noproto" = xyes; then : 28727 28728cat >>confdefs.h <<_ACEOF 28729#define HAVE_STRUCT_IPSTAT_IPS_NOPROTO 1 28730_ACEOF 28731 28732 28733fi 28734ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_noroute" "ac_cv_member_struct_ipstat_ips_noroute" " 28735 $ac_includes_default 28736 28737#if HAVE_NETINET_IN_H 28738#include <netinet/in.h> 28739#endif 28740#if HAVE_NETINET_IP_VAR_H 28741#include <netinet/ip_var.h> 28742#endif 28743 28744" 28745if test "x$ac_cv_member_struct_ipstat_ips_noroute" = xyes; then : 28746 28747cat >>confdefs.h <<_ACEOF 28748#define HAVE_STRUCT_IPSTAT_IPS_NOROUTE 1 28749_ACEOF 28750 28751 28752fi 28753ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_odropped" "ac_cv_member_struct_ipstat_ips_odropped" " 28754 $ac_includes_default 28755 28756#if HAVE_NETINET_IN_H 28757#include <netinet/in.h> 28758#endif 28759#if HAVE_NETINET_IP_VAR_H 28760#include <netinet/ip_var.h> 28761#endif 28762 28763" 28764if test "x$ac_cv_member_struct_ipstat_ips_odropped" = xyes; then : 28765 28766cat >>confdefs.h <<_ACEOF 28767#define HAVE_STRUCT_IPSTAT_IPS_ODROPPED 1 28768_ACEOF 28769 28770 28771fi 28772ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_ofragments" "ac_cv_member_struct_ipstat_ips_ofragments" " 28773 $ac_includes_default 28774 28775#if HAVE_NETINET_IN_H 28776#include <netinet/in.h> 28777#endif 28778#if HAVE_NETINET_IP_VAR_H 28779#include <netinet/ip_var.h> 28780#endif 28781 28782" 28783if test "x$ac_cv_member_struct_ipstat_ips_ofragments" = xyes; then : 28784 28785cat >>confdefs.h <<_ACEOF 28786#define HAVE_STRUCT_IPSTAT_IPS_OFRAGMENTS 1 28787_ACEOF 28788 28789 28790fi 28791ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_reassembled" "ac_cv_member_struct_ipstat_ips_reassembled" " 28792 $ac_includes_default 28793 28794#if HAVE_NETINET_IN_H 28795#include <netinet/in.h> 28796#endif 28797#if HAVE_NETINET_IP_VAR_H 28798#include <netinet/ip_var.h> 28799#endif 28800 28801" 28802if test "x$ac_cv_member_struct_ipstat_ips_reassembled" = xyes; then : 28803 28804cat >>confdefs.h <<_ACEOF 28805#define HAVE_STRUCT_IPSTAT_IPS_REASSEMBLED 1 28806_ACEOF 28807 28808 28809fi 28810 28811# struct ip6stat 28812# Agent: 28813# 28814ac_fn_c_check_member "$LINENO" "struct ip6stat" "ip6s_exthdrtoolong " "ac_cv_member_struct_ip6stat_ip6s_exthdrtoolong_" " 28815 $ac_includes_default 28816 28817#if HAVE_NETINET_IN_H 28818#include <netinet/in.h> 28819#endif 28820#if HAVE_NETINET6_IP6_VAR_H 28821#include <netinet6/ip6_var.h> 28822#endif 28823 28824" 28825if test "x$ac_cv_member_struct_ip6stat_ip6s_exthdrtoolong_" = xyes; then : 28826 28827cat >>confdefs.h <<_ACEOF 28828#define HAVE_STRUCT_IP6STAT_IP6S_EXTHDRTOOLONG_ 1 28829_ACEOF 28830 28831 28832fi 28833 28834 28835# 28836# Not-Used: 28837ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_cantforward" "ac_cv_member_struct_ipstat_ips_cantforward" " 28838 $ac_includes_default 28839 28840#if HAVE_NETINET_IN_H 28841#include <netinet/in.h> 28842#endif 28843#if HAVE_NETINET_IP_VAR_H 28844#include <netinet/ip_var.h> 28845#endif 28846 28847" 28848if test "x$ac_cv_member_struct_ipstat_ips_cantforward" = xyes; then : 28849 28850cat >>confdefs.h <<_ACEOF 28851#define HAVE_STRUCT_IPSTAT_IPS_CANTFORWARD 1 28852_ACEOF 28853 28854 28855fi 28856ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_fragtimeout" "ac_cv_member_struct_ipstat_ips_fragtimeout" " 28857 $ac_includes_default 28858 28859#if HAVE_NETINET_IN_H 28860#include <netinet/in.h> 28861#endif 28862#if HAVE_NETINET_IP_VAR_H 28863#include <netinet/ip_var.h> 28864#endif 28865 28866" 28867if test "x$ac_cv_member_struct_ipstat_ips_fragtimeout" = xyes; then : 28868 28869cat >>confdefs.h <<_ACEOF 28870#define HAVE_STRUCT_IPSTAT_IPS_FRAGTIMEOUT 1 28871_ACEOF 28872 28873 28874fi 28875 28876 28877# struct mbstat 28878# Not-Used: 28879# 28880ac_fn_c_check_member "$LINENO" "struct mbstat" "m_clusters" "ac_cv_member_struct_mbstat_m_clusters" " 28881 $ac_includes_default 28882 28883#if HAVE_SYS_PARAM_H 28884#include <sys/param.h> 28885#endif 28886#if HAVE_SYS_MBUF_H 28887#include <sys/mbuf.h> 28888#endif 28889 28890" 28891if test "x$ac_cv_member_struct_mbstat_m_clusters" = xyes; then : 28892 28893cat >>confdefs.h <<_ACEOF 28894#define HAVE_STRUCT_MBSTAT_M_CLUSTERS 1 28895_ACEOF 28896 28897 28898fi 28899ac_fn_c_check_member "$LINENO" "struct mbstat" "m_clfree" "ac_cv_member_struct_mbstat_m_clfree" " 28900 $ac_includes_default 28901 28902#if HAVE_SYS_PARAM_H 28903#include <sys/param.h> 28904#endif 28905#if HAVE_SYS_MBUF_H 28906#include <sys/mbuf.h> 28907#endif 28908 28909" 28910if test "x$ac_cv_member_struct_mbstat_m_clfree" = xyes; then : 28911 28912cat >>confdefs.h <<_ACEOF 28913#define HAVE_STRUCT_MBSTAT_M_CLFREE 1 28914_ACEOF 28915 28916 28917fi 28918ac_fn_c_check_member "$LINENO" "struct mbstat" "m_mbufs" "ac_cv_member_struct_mbstat_m_mbufs" " 28919 $ac_includes_default 28920 28921#if HAVE_SYS_PARAM_H 28922#include <sys/param.h> 28923#endif 28924#if HAVE_SYS_MBUF_H 28925#include <sys/mbuf.h> 28926#endif 28927 28928" 28929if test "x$ac_cv_member_struct_mbstat_m_mbufs" = xyes; then : 28930 28931cat >>confdefs.h <<_ACEOF 28932#define HAVE_STRUCT_MBSTAT_M_MBUFS 1 28933_ACEOF 28934 28935 28936fi 28937 28938 28939# struct uvmexp 28940# 28941ac_fn_c_check_member "$LINENO" "struct uvmexp" "pgswapin" "ac_cv_member_struct_uvmexp_pgswapin" " 28942 $ac_includes_default 28943 28944#include <sys/sysctl.h> 28945#include <uvm/uvm_extern.h> 28946 28947" 28948if test "x$ac_cv_member_struct_uvmexp_pgswapin" = xyes; then : 28949 28950cat >>confdefs.h <<_ACEOF 28951#define HAVE_STRUCT_UVMEXP_PGSWAPIN 1 28952_ACEOF 28953 28954 28955fi 28956 28957 28958# struct nlist 28959# 28960ac_fn_c_check_member "$LINENO" "struct nlist" "n_value" "ac_cv_member_struct_nlist_n_value" " 28961 $ac_includes_default 28962 28963#if HAVE_NLIST_H 28964#include <nlist.h> 28965#endif 28966 28967" 28968if test "x$ac_cv_member_struct_nlist_n_value" = xyes; then : 28969 28970cat >>confdefs.h <<_ACEOF 28971#define HAVE_STRUCT_NLIST_N_VALUE 1 28972_ACEOF 28973 28974 28975fi 28976ac_fn_c_check_member "$LINENO" "struct nlist64" "n_value" "ac_cv_member_struct_nlist64_n_value" " 28977 $ac_includes_default 28978 28979#if HAVE_NLIST_H 28980#include <nlist.h> 28981#endif 28982 28983" 28984if test "x$ac_cv_member_struct_nlist64_n_value" = xyes; then : 28985 28986cat >>confdefs.h <<_ACEOF 28987#define HAVE_STRUCT_NLIST64_N_VALUE 1 28988_ACEOF 28989 28990 28991fi 28992 28993 28994# struct sigaction 28995# Agent: 28996# 28997ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" " 28998 $ac_includes_default 28999 29000#ifdef HAVE_SYS_PARAM_H 29001#include <sys/param.h> 29002#endif 29003#ifdef HAVE_SYS_SIGNAL_H 29004#include <sys/signal.h> 29005#endif 29006 29007" 29008if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then : 29009 29010cat >>confdefs.h <<_ACEOF 29011#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1 29012_ACEOF 29013 29014 29015fi 29016 29017 29018# struct sockaddr 29019# Library: 29020# 29021ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " 29022 $ac_includes_default 29023 29024#ifdef HAVE_SYS_PARAM_H 29025#include <sys/param.h> 29026#endif 29027#ifdef HAVE_SYS_SOCKET_H 29028#include <sys/socket.h> 29029#elif defined(HAVE_WINSOCK2_H) 29030#include <winsock2.h> 29031#endif 29032#ifdef HAVE_WS2TCPIP_H 29033#include <ws2tcpip.h> 29034#endif 29035 29036" 29037if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 29038 29039cat >>confdefs.h <<_ACEOF 29040#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 29041_ACEOF 29042 29043 29044fi 29045ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_union.sa_generic.sa_family2" "ac_cv_member_struct_sockaddr_sa_union_sa_generic_sa_family2" " 29046 $ac_includes_default 29047 29048#ifdef HAVE_SYS_PARAM_H 29049#include <sys/param.h> 29050#endif 29051#ifdef HAVE_SYS_SOCKET_H 29052#include <sys/socket.h> 29053#elif defined(HAVE_WINSOCK2_H) 29054#include <winsock2.h> 29055#endif 29056#ifdef HAVE_WS2TCPIP_H 29057#include <ws2tcpip.h> 29058#endif 29059 29060" 29061if test "x$ac_cv_member_struct_sockaddr_sa_union_sa_generic_sa_family2" = xyes; then : 29062 29063cat >>confdefs.h <<_ACEOF 29064#define HAVE_STRUCT_SOCKADDR_SA_UNION_SA_GENERIC_SA_FAMILY2 1 29065_ACEOF 29066 29067 29068fi 29069ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" " 29070 $ac_includes_default 29071 29072#ifdef HAVE_SYS_PARAM_H 29073#include <sys/param.h> 29074#endif 29075#ifdef HAVE_SYS_SOCKET_H 29076#include <sys/socket.h> 29077#elif defined(HAVE_WINSOCK2_H) 29078#include <winsock2.h> 29079#endif 29080#ifdef HAVE_WS2TCPIP_H 29081#include <ws2tcpip.h> 29082#endif 29083 29084" 29085if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 29086 29087cat >>confdefs.h <<_ACEOF 29088#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 29089_ACEOF 29090 29091 29092fi 29093ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" " 29094 $ac_includes_default 29095 29096#ifdef HAVE_SYS_PARAM_H 29097#include <sys/param.h> 29098#endif 29099#ifdef HAVE_SYS_SOCKET_H 29100#include <sys/socket.h> 29101#elif defined(HAVE_WINSOCK2_H) 29102#include <winsock2.h> 29103#endif 29104#ifdef HAVE_WS2TCPIP_H 29105#include <ws2tcpip.h> 29106#endif 29107 29108" 29109if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then : 29110 29111cat >>confdefs.h <<_ACEOF 29112#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1 29113_ACEOF 29114 29115 29116fi 29117 29118 29119# struct sockaddr_in6 (see RFC 2553) 29120# Library: 29121# 29122ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " 29123 $ac_includes_default 29124 29125#ifdef HAVE_SYS_PARAM_H 29126#include <sys/param.h> 29127#endif 29128#ifdef HAVE_SYS_SOCKET_H 29129#include <sys/socket.h> 29130#endif 29131#ifdef HAVE_NETINET_IN_H 29132#include <netinet/in.h> 29133#endif 29134#ifdef HAVE_WINSOCK2_H 29135#include <winsock2.h> 29136#endif 29137#ifdef HAVE_WS2TCPIP_H 29138#include <ws2tcpip.h> 29139#endif 29140 29141" 29142if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : 29143 29144cat >>confdefs.h <<_ACEOF 29145#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 29146_ACEOF 29147 29148 29149fi 29150 29151 29152# struct sockaddr_un 29153# Library: 29154# 29155# The cast to long int works around a bug in the HP C Compiler 29156# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 29157# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 29158# This bug is HP SR number 8606223364. 29159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of sockaddr_un.sun_path" >&5 29160$as_echo_n "checking size of sockaddr_un.sun_path... " >&6; } 29161if ${ac_cv_sizeof_sockaddr_un_sun_path+:} false; then : 29162 $as_echo_n "(cached) " >&6 29163else 29164 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (sockaddr_un.sun_path))" "ac_cv_sizeof_sockaddr_un_sun_path" " 29165 $ac_includes_default 29166 29167#if HAVE_SYS_UN_H 29168#include <sys/un.h> 29169#endif 29170struct sockaddr_un sockaddr_un; 29171 29172"; then : 29173 29174else 29175 if test "$ac_cv_type_sockaddr_un_sun_path" = yes; then 29176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29178as_fn_error 77 "cannot compute sizeof (sockaddr_un.sun_path) 29179See \`config.log' for more details" "$LINENO" 5; } 29180 else 29181 ac_cv_sizeof_sockaddr_un_sun_path=0 29182 fi 29183fi 29184 29185fi 29186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_sockaddr_un_sun_path" >&5 29187$as_echo "$ac_cv_sizeof_sockaddr_un_sun_path" >&6; } 29188 29189 29190 29191cat >>confdefs.h <<_ACEOF 29192#define SIZEOF_SOCKADDR_UN_SUN_PATH $ac_cv_sizeof_sockaddr_un_sun_path 29193_ACEOF 29194 29195 29196 29197# struct statfs 29198# Agent: 29199# 29200ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" " 29201 $ac_includes_default 29202 29203#if HAVE_SYS_STATFS_H 29204#include <sys/statfs.h> 29205#endif 29206#ifdef HAVE_SYS_PARAM_H 29207#include <sys/param.h> 29208#endif 29209#ifdef HAVE_SYS_MOUNT_H 29210#include <sys/mount.h> 29211#endif 29212#ifdef HAVE_NBUTIL_H 29213#include <nbutil.h> 29214#endif 29215 29216" 29217if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then : 29218 29219cat >>confdefs.h <<_ACEOF 29220#define HAVE_STRUCT_STATFS_F_FAVAIL 1 29221_ACEOF 29222 29223 29224fi 29225ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" " 29226 $ac_includes_default 29227 29228#if HAVE_SYS_STATFS_H 29229#include <sys/statfs.h> 29230#endif 29231#ifdef HAVE_SYS_PARAM_H 29232#include <sys/param.h> 29233#endif 29234#ifdef HAVE_SYS_MOUNT_H 29235#include <sys/mount.h> 29236#endif 29237#ifdef HAVE_NBUTIL_H 29238#include <nbutil.h> 29239#endif 29240 29241" 29242if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then : 29243 29244cat >>confdefs.h <<_ACEOF 29245#define HAVE_STRUCT_STATFS_F_FFREE 1 29246_ACEOF 29247 29248 29249fi 29250ac_fn_c_check_member "$LINENO" "struct statfs" "f_files" "ac_cv_member_struct_statfs_f_files" " 29251 $ac_includes_default 29252 29253#if HAVE_SYS_STATFS_H 29254#include <sys/statfs.h> 29255#endif 29256#ifdef HAVE_SYS_PARAM_H 29257#include <sys/param.h> 29258#endif 29259#ifdef HAVE_SYS_MOUNT_H 29260#include <sys/mount.h> 29261#endif 29262#ifdef HAVE_NBUTIL_H 29263#include <nbutil.h> 29264#endif 29265 29266" 29267if test "x$ac_cv_member_struct_statfs_f_files" = xyes; then : 29268 29269cat >>confdefs.h <<_ACEOF 29270#define HAVE_STRUCT_STATFS_F_FILES 1 29271_ACEOF 29272 29273 29274fi 29275ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" " 29276 $ac_includes_default 29277 29278#if HAVE_SYS_STATFS_H 29279#include <sys/statfs.h> 29280#endif 29281#ifdef HAVE_SYS_PARAM_H 29282#include <sys/param.h> 29283#endif 29284#ifdef HAVE_SYS_MOUNT_H 29285#include <sys/mount.h> 29286#endif 29287#ifdef HAVE_NBUTIL_H 29288#include <nbutil.h> 29289#endif 29290 29291" 29292if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then : 29293 29294cat >>confdefs.h <<_ACEOF 29295#define HAVE_STRUCT_STATFS_F_FLAGS 1 29296_ACEOF 29297 29298 29299fi 29300ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" " 29301 $ac_includes_default 29302 29303#if HAVE_SYS_STATFS_H 29304#include <sys/statfs.h> 29305#endif 29306#ifdef HAVE_SYS_PARAM_H 29307#include <sys/param.h> 29308#endif 29309#ifdef HAVE_SYS_MOUNT_H 29310#include <sys/mount.h> 29311#endif 29312#ifdef HAVE_NBUTIL_H 29313#include <nbutil.h> 29314#endif 29315 29316" 29317if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then : 29318 29319cat >>confdefs.h <<_ACEOF 29320#define HAVE_STRUCT_STATFS_F_FRSIZE 1 29321_ACEOF 29322 29323 29324fi 29325 29326 29327# struct statvfs 29328# Agent: 29329# 29330ac_fn_c_check_member "$LINENO" "struct statvfs" "f_files" "ac_cv_member_struct_statvfs_f_files" " 29331 $ac_includes_default 29332 29333#if HAVE_SYS_STATFS_H 29334#include <sys/statfs.h> 29335#endif 29336#if HAVE_SYS_STATVFS_H 29337#include <sys/statvfs.h> 29338#endif 29339 29340" 29341if test "x$ac_cv_member_struct_statvfs_f_files" = xyes; then : 29342 29343cat >>confdefs.h <<_ACEOF 29344#define HAVE_STRUCT_STATVFS_F_FILES 1 29345_ACEOF 29346 29347 29348fi 29349ac_fn_c_check_member "$LINENO" "struct statvfs" "f_frsize" "ac_cv_member_struct_statvfs_f_frsize" " 29350 $ac_includes_default 29351 29352#if HAVE_SYS_STATFS_H 29353#include <sys/statfs.h> 29354#endif 29355#if HAVE_SYS_STATVFS_H 29356#include <sys/statvfs.h> 29357#endif 29358 29359" 29360if test "x$ac_cv_member_struct_statvfs_f_frsize" = xyes; then : 29361 29362cat >>confdefs.h <<_ACEOF 29363#define HAVE_STRUCT_STATVFS_F_FRSIZE 1 29364_ACEOF 29365 29366 29367fi 29368ac_fn_c_check_member "$LINENO" "struct statvfs" "mnt_dir" "ac_cv_member_struct_statvfs_mnt_dir" " 29369 $ac_includes_default 29370 29371#if HAVE_SYS_STATFS_H 29372#include <sys/statfs.h> 29373#endif 29374#if HAVE_SYS_STATVFS_H 29375#include <sys/statvfs.h> 29376#endif 29377 29378" 29379if test "x$ac_cv_member_struct_statvfs_mnt_dir" = xyes; then : 29380 29381cat >>confdefs.h <<_ACEOF 29382#define HAVE_STRUCT_STATVFS_MNT_DIR 1 29383_ACEOF 29384 29385 29386fi 29387 29388 29389# struct swdevt 29390# Not-Used: 29391# 29392ac_fn_c_check_member "$LINENO" "struct swdevt" "sw_nblksenabled" "ac_cv_member_struct_swdevt_sw_nblksenabled" " 29393 $ac_includes_default 29394 29395#ifdef HAVE_SYS_PARAM_H 29396#include <sys/param.h> 29397#endif 29398#if HAVE_SYS_CONF_H 29399#include <sys/conf.h> 29400#endif 29401 29402" 29403if test "x$ac_cv_member_struct_swdevt_sw_nblksenabled" = xyes; then : 29404 29405cat >>confdefs.h <<_ACEOF 29406#define HAVE_STRUCT_SWDEVT_SW_NBLKSENABLED 1 29407_ACEOF 29408 29409 29410fi 29411 29412 29413# struct tcpstat 29414# Agent: 29415# 29416ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcp_rcvmemdrop" "ac_cv_member_struct_tcpstat_tcp_rcvmemdrop" " 29417 $ac_includes_default 29418 29419#ifdef HAVE_SYS_PARAM_H 29420#include <sys/param.h> 29421#endif 29422#ifdef HAVE_SYS_TIMEOUT_H 29423#include <sys/timeout.h> 29424#endif 29425#ifdef HAVE_NETINET_TCP_H 29426#include <netinet/tcp.h> 29427#endif 29428#ifdef HAVE_NETINET_TCP_TIMER_H 29429#include <netinet/tcp_timer.h> 29430#endif 29431#ifdef HAVE_NETINET_TCP_VAR_H 29432#include <netinet/tcp_var.h> 29433#endif 29434 29435" 29436if test "x$ac_cv_member_struct_tcpstat_tcp_rcvmemdrop" = xyes; then : 29437 29438cat >>confdefs.h <<_ACEOF 29439#define HAVE_STRUCT_TCPSTAT_TCP_RCVMEMDROP 1 29440_ACEOF 29441 29442 29443fi 29444 29445 29446# struct tm 29447# Library: 29448# 29449ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" " 29450 $ac_includes_default 29451 29452#if TIME_WITH_SYS_TIME 29453# include <sys/time.h> 29454# include <time.h> 29455#else 29456# if HAVE_SYS_TIME_H 29457# include <sys/time.h> 29458# else 29459# include <time.h> 29460# endif 29461#endif 29462 29463" 29464if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : 29465 29466cat >>confdefs.h <<_ACEOF 29467#define HAVE_STRUCT_TM_TM_GMTOFF 1 29468_ACEOF 29469 29470 29471fi 29472ac_fn_c_check_member "$LINENO" "struct tm" "tm_isdst" "ac_cv_member_struct_tm_tm_isdst" " 29473 $ac_includes_default 29474 29475#if TIME_WITH_SYS_TIME 29476# include <sys/time.h> 29477# include <time.h> 29478#else 29479# if HAVE_SYS_TIME_H 29480# include <sys/time.h> 29481# else 29482# include <time.h> 29483# endif 29484#endif 29485 29486" 29487if test "x$ac_cv_member_struct_tm_tm_isdst" = xyes; then : 29488 29489cat >>confdefs.h <<_ACEOF 29490#define HAVE_STRUCT_TM_TM_ISDST 1 29491_ACEOF 29492 29493 29494fi 29495 29496 29497ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" " 29498#if TIME_WITH_SYS_TIME 29499# include <sys/time.h> 29500# include <time.h> 29501#else 29502# if HAVE_SYS_TIME_H 29503# include <sys/time.h> 29504# else 29505# include <time.h> 29506# endif 29507#endif 29508 29509" 29510if test "x$ac_cv_have_decl_daylight" = xyes; then : 29511 ac_have_decl=1 29512else 29513 ac_have_decl=0 29514fi 29515 29516cat >>confdefs.h <<_ACEOF 29517#define HAVE_DECL_DAYLIGHT $ac_have_decl 29518_ACEOF 29519ac_fn_c_check_decl "$LINENO" "timezone" "ac_cv_have_decl_timezone" " 29520#if TIME_WITH_SYS_TIME 29521# include <sys/time.h> 29522# include <time.h> 29523#else 29524# if HAVE_SYS_TIME_H 29525# include <sys/time.h> 29526# else 29527# include <time.h> 29528# endif 29529#endif 29530 29531" 29532if test "x$ac_cv_have_decl_timezone" = xyes; then : 29533 ac_have_decl=1 29534else 29535 ac_have_decl=0 29536fi 29537 29538cat >>confdefs.h <<_ACEOF 29539#define HAVE_DECL_TIMEZONE $ac_have_decl 29540_ACEOF 29541 29542 29543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether timezone is a scalar" >&5 29544$as_echo_n "checking whether timezone is a scalar... " >&6; } 29545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29546/* end confdefs.h. */ 29547 29548#if TIME_WITH_SYS_TIME 29549# include <sys/time.h> 29550# include <time.h> 29551#else 29552# if HAVE_SYS_TIME_H 29553# include <sys/time.h> 29554# else 29555# include <time.h> 29556# endif 29557#endif 29558 29559int 29560main () 29561{ 29562 29563int a[2]; 29564return &a[timezone] != NULL; 29565 29566 ; 29567 return 0; 29568} 29569_ACEOF 29570if ac_fn_c_try_compile "$LINENO"; then : 29571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29572$as_echo "yes" >&6; } 29573 29574$as_echo "#define HAVE_SCALAR_TIMEZONE 1" >>confdefs.h 29575 29576else 29577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29578$as_echo "no" >&6; } 29579fi 29580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29581 29582# struct timezone 29583# Library: 29584# 29585ac_fn_c_check_member "$LINENO" "struct timezone" "tz_dsttime" "ac_cv_member_struct_timezone_tz_dsttime" " 29586 $ac_includes_default 29587 29588#ifdef HAVE_SYS_TIMEB_H 29589# include <sys/timeb.h> 29590#endif 29591#if TIME_WITH_SYS_TIME 29592# include <sys/time.h> 29593# include <time.h> 29594#else 29595# ifdef HAVE_SYS_TIME_H 29596# include <sys/time.h> 29597# else 29598# include <time.h> 29599# endif 29600#endif 29601 29602" 29603if test "x$ac_cv_member_struct_timezone_tz_dsttime" = xyes; then : 29604 29605cat >>confdefs.h <<_ACEOF 29606#define HAVE_STRUCT_TIMEZONE_TZ_DSTTIME 1 29607_ACEOF 29608 29609 29610fi 29611 29612 29613# struct udpstat 29614# Agent: 29615# 29616ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_discard" "ac_cv_member_struct_udpstat_udps_discard" " 29617 $ac_includes_default 29618 29619#if HAVE_NETINET_IN_H 29620#include <netinet/in.h> 29621#endif 29622#if HAVE_NETINET_IP_VAR_H 29623#include <netinet/ip_var.h> 29624#endif 29625#if HAVE_NETINET_UDP_H 29626#include <netinet/udp.h> 29627#endif 29628#if HAVE_NETINET_UDP_VAR_H 29629#include <netinet/udp_var.h> 29630#endif 29631 29632" 29633if test "x$ac_cv_member_struct_udpstat_udps_discard" = xyes; then : 29634 29635cat >>confdefs.h <<_ACEOF 29636#define HAVE_STRUCT_UDPSTAT_UDPS_DISCARD 1 29637_ACEOF 29638 29639 29640fi 29641ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_fullsock" "ac_cv_member_struct_udpstat_udps_fullsock" " 29642 $ac_includes_default 29643 29644#if HAVE_NETINET_IN_H 29645#include <netinet/in.h> 29646#endif 29647#if HAVE_NETINET_IP_VAR_H 29648#include <netinet/ip_var.h> 29649#endif 29650#if HAVE_NETINET_UDP_H 29651#include <netinet/udp.h> 29652#endif 29653#if HAVE_NETINET_UDP_VAR_H 29654#include <netinet/udp_var.h> 29655#endif 29656 29657" 29658if test "x$ac_cv_member_struct_udpstat_udps_fullsock" = xyes; then : 29659 29660cat >>confdefs.h <<_ACEOF 29661#define HAVE_STRUCT_UDPSTAT_UDPS_FULLSOCK 1 29662_ACEOF 29663 29664 29665fi 29666ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_noport" "ac_cv_member_struct_udpstat_udps_noport" " 29667 $ac_includes_default 29668 29669#if HAVE_NETINET_IN_H 29670#include <netinet/in.h> 29671#endif 29672#if HAVE_NETINET_IP_VAR_H 29673#include <netinet/ip_var.h> 29674#endif 29675#if HAVE_NETINET_UDP_H 29676#include <netinet/udp.h> 29677#endif 29678#if HAVE_NETINET_UDP_VAR_H 29679#include <netinet/udp_var.h> 29680#endif 29681 29682" 29683if test "x$ac_cv_member_struct_udpstat_udps_noport" = xyes; then : 29684 29685cat >>confdefs.h <<_ACEOF 29686#define HAVE_STRUCT_UDPSTAT_UDPS_NOPORT 1 29687_ACEOF 29688 29689 29690fi 29691ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_noportbcast" "ac_cv_member_struct_udpstat_udps_noportbcast" " 29692 $ac_includes_default 29693 29694#if HAVE_NETINET_IN_H 29695#include <netinet/in.h> 29696#endif 29697#if HAVE_NETINET_IP_VAR_H 29698#include <netinet/ip_var.h> 29699#endif 29700#if HAVE_NETINET_UDP_H 29701#include <netinet/udp.h> 29702#endif 29703#if HAVE_NETINET_UDP_VAR_H 29704#include <netinet/udp_var.h> 29705#endif 29706 29707" 29708if test "x$ac_cv_member_struct_udpstat_udps_noportbcast" = xyes; then : 29709 29710cat >>confdefs.h <<_ACEOF 29711#define HAVE_STRUCT_UDPSTAT_UDPS_NOPORTBCAST 1 29712_ACEOF 29713 29714 29715fi 29716ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" " 29717 $ac_includes_default 29718 29719#if HAVE_NETINET_IN_H 29720#include <netinet/in.h> 29721#endif 29722#if HAVE_NETINET_IP_VAR_H 29723#include <netinet/ip_var.h> 29724#endif 29725#if HAVE_NETINET_UDP_H 29726#include <netinet/udp.h> 29727#endif 29728#if HAVE_NETINET_UDP_VAR_H 29729#include <netinet/udp_var.h> 29730#endif 29731 29732" 29733if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then : 29734 29735cat >>confdefs.h <<_ACEOF 29736#define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1 29737_ACEOF 29738 29739 29740fi 29741ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_opackets" "ac_cv_member_struct_udpstat_udps_opackets" " 29742 $ac_includes_default 29743 29744#if HAVE_NETINET_IN_H 29745#include <netinet/in.h> 29746#endif 29747#if HAVE_NETINET_IP_VAR_H 29748#include <netinet/ip_var.h> 29749#endif 29750#if HAVE_NETINET_UDP_H 29751#include <netinet/udp.h> 29752#endif 29753#if HAVE_NETINET_UDP_VAR_H 29754#include <netinet/udp_var.h> 29755#endif 29756 29757" 29758if test "x$ac_cv_member_struct_udpstat_udps_opackets" = xyes; then : 29759 29760cat >>confdefs.h <<_ACEOF 29761#define HAVE_STRUCT_UDPSTAT_UDPS_OPACKETS 1 29762_ACEOF 29763 29764 29765fi 29766 29767 29768 29769 29770## 29771# ifnet-related checks: 29772## 29773 29774# Does "struct ifnet" need _KERNEL defined? (Irix) 29775# 29776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _KERNEL needs to be defined for if_mtu" >&5 29777$as_echo_n "checking if _KERNEL needs to be defined for if_mtu... " >&6; } 29778if ${ac_cv_IFNET_NEEDS_KERNEL+:} false; then : 29779 $as_echo_n "(cached) " >&6 29780else 29781 ac_cv_IFNET_NEEDS_KERNEL=unknown 29782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29783/* end confdefs.h. */ 29784 29785#include <sys/types.h> 29786#ifdef HAVE_SYS_PARAM_H 29787#include <sys/param.h> 29788#endif 29789#ifdef HAVE_SYS_SOCKET_H 29790#include <sys/socket.h> 29791#endif 29792#ifdef HAVE_NET_IF_H 29793#include <net/if.h> 29794#endif 29795#ifdef HAVE_NET_IF_VAR_H 29796#include <net/if_var.h> 29797#endif 29798 29799int 29800main () 29801{ 29802struct ifnet test; test.if_mtu = 0; 29803 ; 29804 return 0; 29805} 29806_ACEOF 29807if ac_fn_c_try_compile "$LINENO"; then : 29808 ac_cv_IFNET_NEEDS_KERNEL=no 29809fi 29810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29811 if test "$ac_cv_IFNET_NEEDS_KERNEL" = unknown ; then 29812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29813/* end confdefs.h. */ 29814 29815#define _KERNEL 1 29816#include <sys/types.h> 29817#ifdef HAVE_SYS_PARAM_H 29818#include <sys/param.h> 29819#endif 29820#ifdef HAVE_SYS_SOCKET_H 29821#include <sys/socket.h> 29822#endif 29823#ifdef HAVE_NET_IF_H 29824#include <net/if.h> 29825#endif 29826#ifdef HAVE_NET_IF_VAR_H 29827#include <net/if_var.h> 29828#endif 29829 29830int 29831main () 29832{ 29833struct ifnet test; test.if_mtu = 0; 29834 ; 29835 return 0; 29836} 29837_ACEOF 29838if ac_fn_c_try_compile "$LINENO"; then : 29839 ac_cv_IFNET_NEEDS_KERNEL=yes 29840fi 29841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29842 fi 29843fi 29844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_IFNET_NEEDS_KERNEL" >&5 29845$as_echo "$ac_cv_IFNET_NEEDS_KERNEL" >&6; } 29846 29847if test "x$ac_cv_IFNET_NEEDS_KERNEL" = "xyes"; then 29848 29849$as_echo "#define NETSNMP_IFNET_NEEDS_KERNEL 1" >>confdefs.h 29850 29851fi 29852 29853# Does "struct ifnet" need _KERNEL_STRUCTURES defined? (DragonFly 3) 29854# 29855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _KERNEL_STRUCTURES needs to be defined for if_mtu" >&5 29856$as_echo_n "checking if _KERNEL_STRUCTURES needs to be defined for if_mtu... " >&6; } 29857if ${ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES+:} false; then : 29858 $as_echo_n "(cached) " >&6 29859else 29860 ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES=unknown 29861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29862/* end confdefs.h. */ 29863 29864#include <sys/types.h> 29865#ifdef HAVE_SYS_PARAM_H 29866#include <sys/param.h> 29867#endif 29868#ifdef HAVE_SYS_SOCKET_H 29869#include <sys/socket.h> 29870#endif 29871#ifdef HAVE_NET_IF_H 29872#include <net/if.h> 29873#endif 29874#ifdef HAVE_NET_IF_VAR_H 29875#include <net/if_var.h> 29876#endif 29877 29878int 29879main () 29880{ 29881struct ifnet test; test.if_mtu = 0; 29882 ; 29883 return 0; 29884} 29885_ACEOF 29886if ac_fn_c_try_compile "$LINENO"; then : 29887 ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES=no 29888fi 29889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29890 if test "$ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES" = unknown ; then 29891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29892/* end confdefs.h. */ 29893 29894#define _KERNEL_STRUCTURES 1 29895#include <sys/types.h> 29896#ifdef HAVE_SYS_PARAM_H 29897#include <sys/param.h> 29898#endif 29899#ifdef HAVE_SYS_SOCKET_H 29900#include <sys/socket.h> 29901#endif 29902#ifdef HAVE_NET_IF_H 29903#include <net/if.h> 29904#endif 29905#ifdef HAVE_NET_IF_VAR_H 29906#include <net/if_var.h> 29907#endif 29908 29909int 29910main () 29911{ 29912struct ifnet test; test.if_mtu = 0; 29913 ; 29914 return 0; 29915} 29916_ACEOF 29917if ac_fn_c_try_compile "$LINENO"; then : 29918 ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES=yes 29919fi 29920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29921 fi 29922fi 29923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES" >&5 29924$as_echo "$ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES" >&6; } 29925 29926if test "x$ac_cv_IFNET_NEEDS_KERNEL_STRUCTURES" = "xyes"; then 29927 29928$as_echo "#define NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 1" >>confdefs.h 29929 29930fi 29931 29932 29933# struct ifaddr 29934# Not-Used: 29935# 29936ac_fn_c_check_member "$LINENO" "struct ifaddr" "ifa_next" "ac_cv_member_struct_ifaddr_ifa_next" " 29937 29938#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 29939#define _KERNEL_STRUCTURES 1 29940#endif 29941#ifdef NETSNMP_IFNET_NEEDS_KERNEL 29942#define KERNEL 29943#if !defined(__DragonFly__) 29944#define _KERNEL 1 29945#endif 29946#endif 29947 29948 $ac_includes_default 29949 29950#ifdef HAVE_SYS_PARAM_H 29951#include <sys/param.h> 29952#endif 29953#ifdef HAVE_SYS_SOCKET_H 29954#include <sys/socket.h> 29955#endif 29956#ifdef HAVE_SYS_TIME_H 29957#include <sys/time.h> 29958#endif 29959#ifdef HAVE_NET_IF_H 29960#include <net/if.h> 29961#endif 29962#ifdef HAVE_NET_IF_VAR_H 29963#include <net/if_var.h> 29964#endif 29965 29966" 29967if test "x$ac_cv_member_struct_ifaddr_ifa_next" = xyes; then : 29968 29969cat >>confdefs.h <<_ACEOF 29970#define HAVE_STRUCT_IFADDR_IFA_NEXT 1 29971_ACEOF 29972 29973 29974fi 29975 29976 29977# struct ifnet 29978# (Broken on FreeBSD - #define'd in <net/if.h>) 29979# Agent: (?or Not-Used?) 29980# 29981ac_fn_c_check_member "$LINENO" "struct ifnet" "if_addrlist" "ac_cv_member_struct_ifnet_if_addrlist" " 29982#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 29983#define _KERNEL_STRUCTURES 1 29984#endif 29985#ifdef NETSNMP_IFNET_NEEDS_KERNEL 29986#define KERNEL 29987#if !defined(__DragonFly__) 29988#define _KERNEL 1 29989#endif 29990#endif 29991#ifdef HAVE_SYS_TYPES_H 29992#include <sys/types.h> 29993#endif 29994#ifdef HAVE_SYS_SOCKET_H 29995#include <sys/socket.h> 29996#endif 29997#ifdef HAVE_SYS_TIME_H 29998#include <sys/time.h> 29999#endif 30000#ifdef HAVE_NET_IF_H 30001#include <net/if.h> 30002#endif 30003#ifdef HAVE_NET_IF_VAR_H 30004#include <net/if_var.h> 30005#endif 30006#ifdef HAVE_SYS_QUEUE_H 30007#include <sys/queue.h> 30008#endif 30009#ifdef linux 30010struct ifnet { 30011 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30012 short if_unit; /* sub-unit for lower level driver */ 30013 short if_mtu; /* maximum transmission unit */ 30014 short if_flags; /* up/down, broadcast, etc. */ 30015 int if_metric; /* routing metric (external only) */ 30016 char if_hwaddr [6]; /* ethernet address */ 30017 int if_type; /* interface type: 1=generic, 30018 28=slip, ether=6, loopback=24 */ 30019 int if_speed; /* interface speed: in bits/sec */ 30020 30021 struct sockaddr if_addr; /* interface's address */ 30022 struct sockaddr ifu_broadaddr; /* broadcast address */ 30023 struct sockaddr ia_subnetmask; /* interface's mask */ 30024 30025 struct ifqueue { 30026 int ifq_len; 30027 int ifq_drops; 30028 } if_snd; /* output queue */ 30029 int if_ibytes; /* octets received on interface */ 30030 int if_ipackets; /* packets received on interface */ 30031 int if_ierrors; /* input errors on interface */ 30032 int if_iqdrops; /* input queue overruns */ 30033 int if_obytes; /* octets sent on interface */ 30034 int if_opackets; /* packets sent on interface */ 30035 int if_oerrors; /* output errors on interface */ 30036 int if_collisions; /* collisions on csma interfaces */ 30037/* end statistics */ 30038 struct ifnet *if_next; 30039}; 30040#endif 30041 30042" 30043if test "x$ac_cv_member_struct_ifnet_if_addrlist" = xyes; then : 30044 30045cat >>confdefs.h <<_ACEOF 30046#define HAVE_STRUCT_IFNET_IF_ADDRLIST 1 30047_ACEOF 30048 30049 30050fi 30051ac_fn_c_check_member "$LINENO" "struct ifnet" "if_addrhead.tqh_first" "ac_cv_member_struct_ifnet_if_addrhead_tqh_first" " 30052#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30053#define _KERNEL_STRUCTURES 1 30054#endif 30055#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30056#define KERNEL 30057#if !defined(__DragonFly__) 30058#define _KERNEL 1 30059#endif 30060#endif 30061#ifdef HAVE_SYS_TYPES_H 30062#include <sys/types.h> 30063#endif 30064#ifdef HAVE_SYS_SOCKET_H 30065#include <sys/socket.h> 30066#endif 30067#ifdef HAVE_SYS_TIME_H 30068#include <sys/time.h> 30069#endif 30070#ifdef HAVE_NET_IF_H 30071#include <net/if.h> 30072#endif 30073#ifdef HAVE_NET_IF_VAR_H 30074#include <net/if_var.h> 30075#endif 30076#ifdef HAVE_SYS_QUEUE_H 30077#include <sys/queue.h> 30078#endif 30079#ifdef linux 30080struct ifnet { 30081 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30082 short if_unit; /* sub-unit for lower level driver */ 30083 short if_mtu; /* maximum transmission unit */ 30084 short if_flags; /* up/down, broadcast, etc. */ 30085 int if_metric; /* routing metric (external only) */ 30086 char if_hwaddr [6]; /* ethernet address */ 30087 int if_type; /* interface type: 1=generic, 30088 28=slip, ether=6, loopback=24 */ 30089 int if_speed; /* interface speed: in bits/sec */ 30090 30091 struct sockaddr if_addr; /* interface's address */ 30092 struct sockaddr ifu_broadaddr; /* broadcast address */ 30093 struct sockaddr ia_subnetmask; /* interface's mask */ 30094 30095 struct ifqueue { 30096 int ifq_len; 30097 int ifq_drops; 30098 } if_snd; /* output queue */ 30099 int if_ibytes; /* octets received on interface */ 30100 int if_ipackets; /* packets received on interface */ 30101 int if_ierrors; /* input errors on interface */ 30102 int if_iqdrops; /* input queue overruns */ 30103 int if_obytes; /* octets sent on interface */ 30104 int if_opackets; /* packets sent on interface */ 30105 int if_oerrors; /* output errors on interface */ 30106 int if_collisions; /* collisions on csma interfaces */ 30107/* end statistics */ 30108 struct ifnet *if_next; 30109}; 30110#endif 30111 30112" 30113if test "x$ac_cv_member_struct_ifnet_if_addrhead_tqh_first" = xyes; then : 30114 30115cat >>confdefs.h <<_ACEOF 30116#define HAVE_STRUCT_IFNET_IF_ADDRHEAD_TQH_FIRST 1 30117_ACEOF 30118 30119 30120fi 30121ac_fn_c_check_member "$LINENO" "struct ifnet" "if_baudrate" "ac_cv_member_struct_ifnet_if_baudrate" " 30122#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30123#define _KERNEL_STRUCTURES 1 30124#endif 30125#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30126#define KERNEL 30127#if !defined(__DragonFly__) 30128#define _KERNEL 1 30129#endif 30130#endif 30131#ifdef HAVE_SYS_TYPES_H 30132#include <sys/types.h> 30133#endif 30134#ifdef HAVE_SYS_SOCKET_H 30135#include <sys/socket.h> 30136#endif 30137#ifdef HAVE_SYS_TIME_H 30138#include <sys/time.h> 30139#endif 30140#ifdef HAVE_NET_IF_H 30141#include <net/if.h> 30142#endif 30143#ifdef HAVE_NET_IF_VAR_H 30144#include <net/if_var.h> 30145#endif 30146#ifdef HAVE_SYS_QUEUE_H 30147#include <sys/queue.h> 30148#endif 30149#ifdef linux 30150struct ifnet { 30151 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30152 short if_unit; /* sub-unit for lower level driver */ 30153 short if_mtu; /* maximum transmission unit */ 30154 short if_flags; /* up/down, broadcast, etc. */ 30155 int if_metric; /* routing metric (external only) */ 30156 char if_hwaddr [6]; /* ethernet address */ 30157 int if_type; /* interface type: 1=generic, 30158 28=slip, ether=6, loopback=24 */ 30159 int if_speed; /* interface speed: in bits/sec */ 30160 30161 struct sockaddr if_addr; /* interface's address */ 30162 struct sockaddr ifu_broadaddr; /* broadcast address */ 30163 struct sockaddr ia_subnetmask; /* interface's mask */ 30164 30165 struct ifqueue { 30166 int ifq_len; 30167 int ifq_drops; 30168 } if_snd; /* output queue */ 30169 int if_ibytes; /* octets received on interface */ 30170 int if_ipackets; /* packets received on interface */ 30171 int if_ierrors; /* input errors on interface */ 30172 int if_iqdrops; /* input queue overruns */ 30173 int if_obytes; /* octets sent on interface */ 30174 int if_opackets; /* packets sent on interface */ 30175 int if_oerrors; /* output errors on interface */ 30176 int if_collisions; /* collisions on csma interfaces */ 30177/* end statistics */ 30178 struct ifnet *if_next; 30179}; 30180#endif 30181 30182" 30183if test "x$ac_cv_member_struct_ifnet_if_baudrate" = xyes; then : 30184 30185cat >>confdefs.h <<_ACEOF 30186#define HAVE_STRUCT_IFNET_IF_BAUDRATE 1 30187_ACEOF 30188 30189 30190fi 30191ac_fn_c_check_member "$LINENO" "struct ifnet" "if_baudrate.ifs_value" "ac_cv_member_struct_ifnet_if_baudrate_ifs_value" " 30192#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30193#define _KERNEL_STRUCTURES 1 30194#endif 30195#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30196#define KERNEL 30197#if !defined(__DragonFly__) 30198#define _KERNEL 1 30199#endif 30200#endif 30201#ifdef HAVE_SYS_TYPES_H 30202#include <sys/types.h> 30203#endif 30204#ifdef HAVE_SYS_SOCKET_H 30205#include <sys/socket.h> 30206#endif 30207#ifdef HAVE_SYS_TIME_H 30208#include <sys/time.h> 30209#endif 30210#ifdef HAVE_NET_IF_H 30211#include <net/if.h> 30212#endif 30213#ifdef HAVE_NET_IF_VAR_H 30214#include <net/if_var.h> 30215#endif 30216#ifdef HAVE_SYS_QUEUE_H 30217#include <sys/queue.h> 30218#endif 30219#ifdef linux 30220struct ifnet { 30221 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30222 short if_unit; /* sub-unit for lower level driver */ 30223 short if_mtu; /* maximum transmission unit */ 30224 short if_flags; /* up/down, broadcast, etc. */ 30225 int if_metric; /* routing metric (external only) */ 30226 char if_hwaddr [6]; /* ethernet address */ 30227 int if_type; /* interface type: 1=generic, 30228 28=slip, ether=6, loopback=24 */ 30229 int if_speed; /* interface speed: in bits/sec */ 30230 30231 struct sockaddr if_addr; /* interface's address */ 30232 struct sockaddr ifu_broadaddr; /* broadcast address */ 30233 struct sockaddr ia_subnetmask; /* interface's mask */ 30234 30235 struct ifqueue { 30236 int ifq_len; 30237 int ifq_drops; 30238 } if_snd; /* output queue */ 30239 int if_ibytes; /* octets received on interface */ 30240 int if_ipackets; /* packets received on interface */ 30241 int if_ierrors; /* input errors on interface */ 30242 int if_iqdrops; /* input queue overruns */ 30243 int if_obytes; /* octets sent on interface */ 30244 int if_opackets; /* packets sent on interface */ 30245 int if_oerrors; /* output errors on interface */ 30246 int if_collisions; /* collisions on csma interfaces */ 30247/* end statistics */ 30248 struct ifnet *if_next; 30249}; 30250#endif 30251 30252" 30253if test "x$ac_cv_member_struct_ifnet_if_baudrate_ifs_value" = xyes; then : 30254 30255cat >>confdefs.h <<_ACEOF 30256#define HAVE_STRUCT_IFNET_IF_BAUDRATE_IFS_VALUE 1 30257_ACEOF 30258 30259 30260fi 30261ac_fn_c_check_member "$LINENO" "struct ifnet" "if_ibytes" "ac_cv_member_struct_ifnet_if_ibytes" " 30262#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30263#define _KERNEL_STRUCTURES 1 30264#endif 30265#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30266#define KERNEL 30267#if !defined(__DragonFly__) 30268#define _KERNEL 1 30269#endif 30270#endif 30271#ifdef HAVE_SYS_TYPES_H 30272#include <sys/types.h> 30273#endif 30274#ifdef HAVE_SYS_SOCKET_H 30275#include <sys/socket.h> 30276#endif 30277#ifdef HAVE_SYS_TIME_H 30278#include <sys/time.h> 30279#endif 30280#ifdef HAVE_NET_IF_H 30281#include <net/if.h> 30282#endif 30283#ifdef HAVE_NET_IF_VAR_H 30284#include <net/if_var.h> 30285#endif 30286#ifdef HAVE_SYS_QUEUE_H 30287#include <sys/queue.h> 30288#endif 30289#ifdef linux 30290struct ifnet { 30291 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30292 short if_unit; /* sub-unit for lower level driver */ 30293 short if_mtu; /* maximum transmission unit */ 30294 short if_flags; /* up/down, broadcast, etc. */ 30295 int if_metric; /* routing metric (external only) */ 30296 char if_hwaddr [6]; /* ethernet address */ 30297 int if_type; /* interface type: 1=generic, 30298 28=slip, ether=6, loopback=24 */ 30299 int if_speed; /* interface speed: in bits/sec */ 30300 30301 struct sockaddr if_addr; /* interface's address */ 30302 struct sockaddr ifu_broadaddr; /* broadcast address */ 30303 struct sockaddr ia_subnetmask; /* interface's mask */ 30304 30305 struct ifqueue { 30306 int ifq_len; 30307 int ifq_drops; 30308 } if_snd; /* output queue */ 30309 int if_ibytes; /* octets received on interface */ 30310 int if_ipackets; /* packets received on interface */ 30311 int if_ierrors; /* input errors on interface */ 30312 int if_iqdrops; /* input queue overruns */ 30313 int if_obytes; /* octets sent on interface */ 30314 int if_opackets; /* packets sent on interface */ 30315 int if_oerrors; /* output errors on interface */ 30316 int if_collisions; /* collisions on csma interfaces */ 30317/* end statistics */ 30318 struct ifnet *if_next; 30319}; 30320#endif 30321 30322" 30323if test "x$ac_cv_member_struct_ifnet_if_ibytes" = xyes; then : 30324 30325cat >>confdefs.h <<_ACEOF 30326#define HAVE_STRUCT_IFNET_IF_IBYTES 1 30327_ACEOF 30328 30329 30330fi 30331ac_fn_c_check_member "$LINENO" "struct ifnet" "if_imcasts" "ac_cv_member_struct_ifnet_if_imcasts" " 30332#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30333#define _KERNEL_STRUCTURES 1 30334#endif 30335#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30336#define KERNEL 30337#if !defined(__DragonFly__) 30338#define _KERNEL 1 30339#endif 30340#endif 30341#ifdef HAVE_SYS_TYPES_H 30342#include <sys/types.h> 30343#endif 30344#ifdef HAVE_SYS_SOCKET_H 30345#include <sys/socket.h> 30346#endif 30347#ifdef HAVE_SYS_TIME_H 30348#include <sys/time.h> 30349#endif 30350#ifdef HAVE_NET_IF_H 30351#include <net/if.h> 30352#endif 30353#ifdef HAVE_NET_IF_VAR_H 30354#include <net/if_var.h> 30355#endif 30356#ifdef HAVE_SYS_QUEUE_H 30357#include <sys/queue.h> 30358#endif 30359#ifdef linux 30360struct ifnet { 30361 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30362 short if_unit; /* sub-unit for lower level driver */ 30363 short if_mtu; /* maximum transmission unit */ 30364 short if_flags; /* up/down, broadcast, etc. */ 30365 int if_metric; /* routing metric (external only) */ 30366 char if_hwaddr [6]; /* ethernet address */ 30367 int if_type; /* interface type: 1=generic, 30368 28=slip, ether=6, loopback=24 */ 30369 int if_speed; /* interface speed: in bits/sec */ 30370 30371 struct sockaddr if_addr; /* interface's address */ 30372 struct sockaddr ifu_broadaddr; /* broadcast address */ 30373 struct sockaddr ia_subnetmask; /* interface's mask */ 30374 30375 struct ifqueue { 30376 int ifq_len; 30377 int ifq_drops; 30378 } if_snd; /* output queue */ 30379 int if_ibytes; /* octets received on interface */ 30380 int if_ipackets; /* packets received on interface */ 30381 int if_ierrors; /* input errors on interface */ 30382 int if_iqdrops; /* input queue overruns */ 30383 int if_obytes; /* octets sent on interface */ 30384 int if_opackets; /* packets sent on interface */ 30385 int if_oerrors; /* output errors on interface */ 30386 int if_collisions; /* collisions on csma interfaces */ 30387/* end statistics */ 30388 struct ifnet *if_next; 30389}; 30390#endif 30391 30392" 30393if test "x$ac_cv_member_struct_ifnet_if_imcasts" = xyes; then : 30394 30395cat >>confdefs.h <<_ACEOF 30396#define HAVE_STRUCT_IFNET_IF_IMCASTS 1 30397_ACEOF 30398 30399 30400fi 30401ac_fn_c_check_member "$LINENO" "struct ifnet" "if_iqdrops" "ac_cv_member_struct_ifnet_if_iqdrops" " 30402#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30403#define _KERNEL_STRUCTURES 1 30404#endif 30405#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30406#define KERNEL 30407#if !defined(__DragonFly__) 30408#define _KERNEL 1 30409#endif 30410#endif 30411#ifdef HAVE_SYS_TYPES_H 30412#include <sys/types.h> 30413#endif 30414#ifdef HAVE_SYS_SOCKET_H 30415#include <sys/socket.h> 30416#endif 30417#ifdef HAVE_SYS_TIME_H 30418#include <sys/time.h> 30419#endif 30420#ifdef HAVE_NET_IF_H 30421#include <net/if.h> 30422#endif 30423#ifdef HAVE_NET_IF_VAR_H 30424#include <net/if_var.h> 30425#endif 30426#ifdef HAVE_SYS_QUEUE_H 30427#include <sys/queue.h> 30428#endif 30429#ifdef linux 30430struct ifnet { 30431 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30432 short if_unit; /* sub-unit for lower level driver */ 30433 short if_mtu; /* maximum transmission unit */ 30434 short if_flags; /* up/down, broadcast, etc. */ 30435 int if_metric; /* routing metric (external only) */ 30436 char if_hwaddr [6]; /* ethernet address */ 30437 int if_type; /* interface type: 1=generic, 30438 28=slip, ether=6, loopback=24 */ 30439 int if_speed; /* interface speed: in bits/sec */ 30440 30441 struct sockaddr if_addr; /* interface's address */ 30442 struct sockaddr ifu_broadaddr; /* broadcast address */ 30443 struct sockaddr ia_subnetmask; /* interface's mask */ 30444 30445 struct ifqueue { 30446 int ifq_len; 30447 int ifq_drops; 30448 } if_snd; /* output queue */ 30449 int if_ibytes; /* octets received on interface */ 30450 int if_ipackets; /* packets received on interface */ 30451 int if_ierrors; /* input errors on interface */ 30452 int if_iqdrops; /* input queue overruns */ 30453 int if_obytes; /* octets sent on interface */ 30454 int if_opackets; /* packets sent on interface */ 30455 int if_oerrors; /* output errors on interface */ 30456 int if_collisions; /* collisions on csma interfaces */ 30457/* end statistics */ 30458 struct ifnet *if_next; 30459}; 30460#endif 30461 30462" 30463if test "x$ac_cv_member_struct_ifnet_if_iqdrops" = xyes; then : 30464 30465cat >>confdefs.h <<_ACEOF 30466#define HAVE_STRUCT_IFNET_IF_IQDROPS 1 30467_ACEOF 30468 30469 30470fi 30471ac_fn_c_check_member "$LINENO" "struct ifnet" "if_lastchange.tv_sec" "ac_cv_member_struct_ifnet_if_lastchange_tv_sec" " 30472#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30473#define _KERNEL_STRUCTURES 1 30474#endif 30475#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30476#define KERNEL 30477#if !defined(__DragonFly__) 30478#define _KERNEL 1 30479#endif 30480#endif 30481#ifdef HAVE_SYS_TYPES_H 30482#include <sys/types.h> 30483#endif 30484#ifdef HAVE_SYS_SOCKET_H 30485#include <sys/socket.h> 30486#endif 30487#ifdef HAVE_SYS_TIME_H 30488#include <sys/time.h> 30489#endif 30490#ifdef HAVE_NET_IF_H 30491#include <net/if.h> 30492#endif 30493#ifdef HAVE_NET_IF_VAR_H 30494#include <net/if_var.h> 30495#endif 30496#ifdef HAVE_SYS_QUEUE_H 30497#include <sys/queue.h> 30498#endif 30499#ifdef linux 30500struct ifnet { 30501 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30502 short if_unit; /* sub-unit for lower level driver */ 30503 short if_mtu; /* maximum transmission unit */ 30504 short if_flags; /* up/down, broadcast, etc. */ 30505 int if_metric; /* routing metric (external only) */ 30506 char if_hwaddr [6]; /* ethernet address */ 30507 int if_type; /* interface type: 1=generic, 30508 28=slip, ether=6, loopback=24 */ 30509 int if_speed; /* interface speed: in bits/sec */ 30510 30511 struct sockaddr if_addr; /* interface's address */ 30512 struct sockaddr ifu_broadaddr; /* broadcast address */ 30513 struct sockaddr ia_subnetmask; /* interface's mask */ 30514 30515 struct ifqueue { 30516 int ifq_len; 30517 int ifq_drops; 30518 } if_snd; /* output queue */ 30519 int if_ibytes; /* octets received on interface */ 30520 int if_ipackets; /* packets received on interface */ 30521 int if_ierrors; /* input errors on interface */ 30522 int if_iqdrops; /* input queue overruns */ 30523 int if_obytes; /* octets sent on interface */ 30524 int if_opackets; /* packets sent on interface */ 30525 int if_oerrors; /* output errors on interface */ 30526 int if_collisions; /* collisions on csma interfaces */ 30527/* end statistics */ 30528 struct ifnet *if_next; 30529}; 30530#endif 30531 30532" 30533if test "x$ac_cv_member_struct_ifnet_if_lastchange_tv_sec" = xyes; then : 30534 30535cat >>confdefs.h <<_ACEOF 30536#define HAVE_STRUCT_IFNET_IF_LASTCHANGE_TV_SEC 1 30537_ACEOF 30538 30539 30540fi 30541ac_fn_c_check_member "$LINENO" "struct ifnet" "if_lastchange.tv_nsec" "ac_cv_member_struct_ifnet_if_lastchange_tv_nsec" " 30542#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30543#define _KERNEL_STRUCTURES 1 30544#endif 30545#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30546#define KERNEL 30547#if !defined(__DragonFly__) 30548#define _KERNEL 1 30549#endif 30550#endif 30551#ifdef HAVE_SYS_TYPES_H 30552#include <sys/types.h> 30553#endif 30554#ifdef HAVE_SYS_SOCKET_H 30555#include <sys/socket.h> 30556#endif 30557#ifdef HAVE_SYS_TIME_H 30558#include <sys/time.h> 30559#endif 30560#ifdef HAVE_NET_IF_H 30561#include <net/if.h> 30562#endif 30563#ifdef HAVE_NET_IF_VAR_H 30564#include <net/if_var.h> 30565#endif 30566#ifdef HAVE_SYS_QUEUE_H 30567#include <sys/queue.h> 30568#endif 30569#ifdef linux 30570struct ifnet { 30571 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30572 short if_unit; /* sub-unit for lower level driver */ 30573 short if_mtu; /* maximum transmission unit */ 30574 short if_flags; /* up/down, broadcast, etc. */ 30575 int if_metric; /* routing metric (external only) */ 30576 char if_hwaddr [6]; /* ethernet address */ 30577 int if_type; /* interface type: 1=generic, 30578 28=slip, ether=6, loopback=24 */ 30579 int if_speed; /* interface speed: in bits/sec */ 30580 30581 struct sockaddr if_addr; /* interface's address */ 30582 struct sockaddr ifu_broadaddr; /* broadcast address */ 30583 struct sockaddr ia_subnetmask; /* interface's mask */ 30584 30585 struct ifqueue { 30586 int ifq_len; 30587 int ifq_drops; 30588 } if_snd; /* output queue */ 30589 int if_ibytes; /* octets received on interface */ 30590 int if_ipackets; /* packets received on interface */ 30591 int if_ierrors; /* input errors on interface */ 30592 int if_iqdrops; /* input queue overruns */ 30593 int if_obytes; /* octets sent on interface */ 30594 int if_opackets; /* packets sent on interface */ 30595 int if_oerrors; /* output errors on interface */ 30596 int if_collisions; /* collisions on csma interfaces */ 30597/* end statistics */ 30598 struct ifnet *if_next; 30599}; 30600#endif 30601 30602" 30603if test "x$ac_cv_member_struct_ifnet_if_lastchange_tv_nsec" = xyes; then : 30604 30605cat >>confdefs.h <<_ACEOF 30606#define HAVE_STRUCT_IFNET_IF_LASTCHANGE_TV_NSEC 1 30607_ACEOF 30608 30609 30610fi 30611ac_fn_c_check_member "$LINENO" "struct ifnet" "if_mtu" "ac_cv_member_struct_ifnet_if_mtu" " 30612#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30613#define _KERNEL_STRUCTURES 1 30614#endif 30615#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30616#define KERNEL 30617#if !defined(__DragonFly__) 30618#define _KERNEL 1 30619#endif 30620#endif 30621#ifdef HAVE_SYS_TYPES_H 30622#include <sys/types.h> 30623#endif 30624#ifdef HAVE_SYS_SOCKET_H 30625#include <sys/socket.h> 30626#endif 30627#ifdef HAVE_SYS_TIME_H 30628#include <sys/time.h> 30629#endif 30630#ifdef HAVE_NET_IF_H 30631#include <net/if.h> 30632#endif 30633#ifdef HAVE_NET_IF_VAR_H 30634#include <net/if_var.h> 30635#endif 30636#ifdef HAVE_SYS_QUEUE_H 30637#include <sys/queue.h> 30638#endif 30639#ifdef linux 30640struct ifnet { 30641 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30642 short if_unit; /* sub-unit for lower level driver */ 30643 short if_mtu; /* maximum transmission unit */ 30644 short if_flags; /* up/down, broadcast, etc. */ 30645 int if_metric; /* routing metric (external only) */ 30646 char if_hwaddr [6]; /* ethernet address */ 30647 int if_type; /* interface type: 1=generic, 30648 28=slip, ether=6, loopback=24 */ 30649 int if_speed; /* interface speed: in bits/sec */ 30650 30651 struct sockaddr if_addr; /* interface's address */ 30652 struct sockaddr ifu_broadaddr; /* broadcast address */ 30653 struct sockaddr ia_subnetmask; /* interface's mask */ 30654 30655 struct ifqueue { 30656 int ifq_len; 30657 int ifq_drops; 30658 } if_snd; /* output queue */ 30659 int if_ibytes; /* octets received on interface */ 30660 int if_ipackets; /* packets received on interface */ 30661 int if_ierrors; /* input errors on interface */ 30662 int if_iqdrops; /* input queue overruns */ 30663 int if_obytes; /* octets sent on interface */ 30664 int if_opackets; /* packets sent on interface */ 30665 int if_oerrors; /* output errors on interface */ 30666 int if_collisions; /* collisions on csma interfaces */ 30667/* end statistics */ 30668 struct ifnet *if_next; 30669}; 30670#endif 30671 30672" 30673if test "x$ac_cv_member_struct_ifnet_if_mtu" = xyes; then : 30674 30675cat >>confdefs.h <<_ACEOF 30676#define HAVE_STRUCT_IFNET_IF_MTU 1 30677_ACEOF 30678 30679 30680fi 30681ac_fn_c_check_member "$LINENO" "struct ifnet" "if_noproto" "ac_cv_member_struct_ifnet_if_noproto" " 30682#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30683#define _KERNEL_STRUCTURES 1 30684#endif 30685#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30686#define KERNEL 30687#if !defined(__DragonFly__) 30688#define _KERNEL 1 30689#endif 30690#endif 30691#ifdef HAVE_SYS_TYPES_H 30692#include <sys/types.h> 30693#endif 30694#ifdef HAVE_SYS_SOCKET_H 30695#include <sys/socket.h> 30696#endif 30697#ifdef HAVE_SYS_TIME_H 30698#include <sys/time.h> 30699#endif 30700#ifdef HAVE_NET_IF_H 30701#include <net/if.h> 30702#endif 30703#ifdef HAVE_NET_IF_VAR_H 30704#include <net/if_var.h> 30705#endif 30706#ifdef HAVE_SYS_QUEUE_H 30707#include <sys/queue.h> 30708#endif 30709#ifdef linux 30710struct ifnet { 30711 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30712 short if_unit; /* sub-unit for lower level driver */ 30713 short if_mtu; /* maximum transmission unit */ 30714 short if_flags; /* up/down, broadcast, etc. */ 30715 int if_metric; /* routing metric (external only) */ 30716 char if_hwaddr [6]; /* ethernet address */ 30717 int if_type; /* interface type: 1=generic, 30718 28=slip, ether=6, loopback=24 */ 30719 int if_speed; /* interface speed: in bits/sec */ 30720 30721 struct sockaddr if_addr; /* interface's address */ 30722 struct sockaddr ifu_broadaddr; /* broadcast address */ 30723 struct sockaddr ia_subnetmask; /* interface's mask */ 30724 30725 struct ifqueue { 30726 int ifq_len; 30727 int ifq_drops; 30728 } if_snd; /* output queue */ 30729 int if_ibytes; /* octets received on interface */ 30730 int if_ipackets; /* packets received on interface */ 30731 int if_ierrors; /* input errors on interface */ 30732 int if_iqdrops; /* input queue overruns */ 30733 int if_obytes; /* octets sent on interface */ 30734 int if_opackets; /* packets sent on interface */ 30735 int if_oerrors; /* output errors on interface */ 30736 int if_collisions; /* collisions on csma interfaces */ 30737/* end statistics */ 30738 struct ifnet *if_next; 30739}; 30740#endif 30741 30742" 30743if test "x$ac_cv_member_struct_ifnet_if_noproto" = xyes; then : 30744 30745cat >>confdefs.h <<_ACEOF 30746#define HAVE_STRUCT_IFNET_IF_NOPROTO 1 30747_ACEOF 30748 30749 30750fi 30751ac_fn_c_check_member "$LINENO" "struct ifnet" "if_obytes" "ac_cv_member_struct_ifnet_if_obytes" " 30752#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30753#define _KERNEL_STRUCTURES 1 30754#endif 30755#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30756#define KERNEL 30757#if !defined(__DragonFly__) 30758#define _KERNEL 1 30759#endif 30760#endif 30761#ifdef HAVE_SYS_TYPES_H 30762#include <sys/types.h> 30763#endif 30764#ifdef HAVE_SYS_SOCKET_H 30765#include <sys/socket.h> 30766#endif 30767#ifdef HAVE_SYS_TIME_H 30768#include <sys/time.h> 30769#endif 30770#ifdef HAVE_NET_IF_H 30771#include <net/if.h> 30772#endif 30773#ifdef HAVE_NET_IF_VAR_H 30774#include <net/if_var.h> 30775#endif 30776#ifdef HAVE_SYS_QUEUE_H 30777#include <sys/queue.h> 30778#endif 30779#ifdef linux 30780struct ifnet { 30781 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30782 short if_unit; /* sub-unit for lower level driver */ 30783 short if_mtu; /* maximum transmission unit */ 30784 short if_flags; /* up/down, broadcast, etc. */ 30785 int if_metric; /* routing metric (external only) */ 30786 char if_hwaddr [6]; /* ethernet address */ 30787 int if_type; /* interface type: 1=generic, 30788 28=slip, ether=6, loopback=24 */ 30789 int if_speed; /* interface speed: in bits/sec */ 30790 30791 struct sockaddr if_addr; /* interface's address */ 30792 struct sockaddr ifu_broadaddr; /* broadcast address */ 30793 struct sockaddr ia_subnetmask; /* interface's mask */ 30794 30795 struct ifqueue { 30796 int ifq_len; 30797 int ifq_drops; 30798 } if_snd; /* output queue */ 30799 int if_ibytes; /* octets received on interface */ 30800 int if_ipackets; /* packets received on interface */ 30801 int if_ierrors; /* input errors on interface */ 30802 int if_iqdrops; /* input queue overruns */ 30803 int if_obytes; /* octets sent on interface */ 30804 int if_opackets; /* packets sent on interface */ 30805 int if_oerrors; /* output errors on interface */ 30806 int if_collisions; /* collisions on csma interfaces */ 30807/* end statistics */ 30808 struct ifnet *if_next; 30809}; 30810#endif 30811 30812" 30813if test "x$ac_cv_member_struct_ifnet_if_obytes" = xyes; then : 30814 30815cat >>confdefs.h <<_ACEOF 30816#define HAVE_STRUCT_IFNET_IF_OBYTES 1 30817_ACEOF 30818 30819 30820fi 30821ac_fn_c_check_member "$LINENO" "struct ifnet" "if_omcasts" "ac_cv_member_struct_ifnet_if_omcasts" " 30822#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30823#define _KERNEL_STRUCTURES 1 30824#endif 30825#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30826#define KERNEL 30827#if !defined(__DragonFly__) 30828#define _KERNEL 1 30829#endif 30830#endif 30831#ifdef HAVE_SYS_TYPES_H 30832#include <sys/types.h> 30833#endif 30834#ifdef HAVE_SYS_SOCKET_H 30835#include <sys/socket.h> 30836#endif 30837#ifdef HAVE_SYS_TIME_H 30838#include <sys/time.h> 30839#endif 30840#ifdef HAVE_NET_IF_H 30841#include <net/if.h> 30842#endif 30843#ifdef HAVE_NET_IF_VAR_H 30844#include <net/if_var.h> 30845#endif 30846#ifdef HAVE_SYS_QUEUE_H 30847#include <sys/queue.h> 30848#endif 30849#ifdef linux 30850struct ifnet { 30851 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30852 short if_unit; /* sub-unit for lower level driver */ 30853 short if_mtu; /* maximum transmission unit */ 30854 short if_flags; /* up/down, broadcast, etc. */ 30855 int if_metric; /* routing metric (external only) */ 30856 char if_hwaddr [6]; /* ethernet address */ 30857 int if_type; /* interface type: 1=generic, 30858 28=slip, ether=6, loopback=24 */ 30859 int if_speed; /* interface speed: in bits/sec */ 30860 30861 struct sockaddr if_addr; /* interface's address */ 30862 struct sockaddr ifu_broadaddr; /* broadcast address */ 30863 struct sockaddr ia_subnetmask; /* interface's mask */ 30864 30865 struct ifqueue { 30866 int ifq_len; 30867 int ifq_drops; 30868 } if_snd; /* output queue */ 30869 int if_ibytes; /* octets received on interface */ 30870 int if_ipackets; /* packets received on interface */ 30871 int if_ierrors; /* input errors on interface */ 30872 int if_iqdrops; /* input queue overruns */ 30873 int if_obytes; /* octets sent on interface */ 30874 int if_opackets; /* packets sent on interface */ 30875 int if_oerrors; /* output errors on interface */ 30876 int if_collisions; /* collisions on csma interfaces */ 30877/* end statistics */ 30878 struct ifnet *if_next; 30879}; 30880#endif 30881 30882" 30883if test "x$ac_cv_member_struct_ifnet_if_omcasts" = xyes; then : 30884 30885cat >>confdefs.h <<_ACEOF 30886#define HAVE_STRUCT_IFNET_IF_OMCASTS 1 30887_ACEOF 30888 30889 30890fi 30891ac_fn_c_check_member "$LINENO" "struct ifnet" "if_speed" "ac_cv_member_struct_ifnet_if_speed" " 30892#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30893#define _KERNEL_STRUCTURES 1 30894#endif 30895#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30896#define KERNEL 30897#if !defined(__DragonFly__) 30898#define _KERNEL 1 30899#endif 30900#endif 30901#ifdef HAVE_SYS_TYPES_H 30902#include <sys/types.h> 30903#endif 30904#ifdef HAVE_SYS_SOCKET_H 30905#include <sys/socket.h> 30906#endif 30907#ifdef HAVE_SYS_TIME_H 30908#include <sys/time.h> 30909#endif 30910#ifdef HAVE_NET_IF_H 30911#include <net/if.h> 30912#endif 30913#ifdef HAVE_NET_IF_VAR_H 30914#include <net/if_var.h> 30915#endif 30916#ifdef HAVE_SYS_QUEUE_H 30917#include <sys/queue.h> 30918#endif 30919#ifdef linux 30920struct ifnet { 30921 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30922 short if_unit; /* sub-unit for lower level driver */ 30923 short if_mtu; /* maximum transmission unit */ 30924 short if_flags; /* up/down, broadcast, etc. */ 30925 int if_metric; /* routing metric (external only) */ 30926 char if_hwaddr [6]; /* ethernet address */ 30927 int if_type; /* interface type: 1=generic, 30928 28=slip, ether=6, loopback=24 */ 30929 int if_speed; /* interface speed: in bits/sec */ 30930 30931 struct sockaddr if_addr; /* interface's address */ 30932 struct sockaddr ifu_broadaddr; /* broadcast address */ 30933 struct sockaddr ia_subnetmask; /* interface's mask */ 30934 30935 struct ifqueue { 30936 int ifq_len; 30937 int ifq_drops; 30938 } if_snd; /* output queue */ 30939 int if_ibytes; /* octets received on interface */ 30940 int if_ipackets; /* packets received on interface */ 30941 int if_ierrors; /* input errors on interface */ 30942 int if_iqdrops; /* input queue overruns */ 30943 int if_obytes; /* octets sent on interface */ 30944 int if_opackets; /* packets sent on interface */ 30945 int if_oerrors; /* output errors on interface */ 30946 int if_collisions; /* collisions on csma interfaces */ 30947/* end statistics */ 30948 struct ifnet *if_next; 30949}; 30950#endif 30951 30952" 30953if test "x$ac_cv_member_struct_ifnet_if_speed" = xyes; then : 30954 30955cat >>confdefs.h <<_ACEOF 30956#define HAVE_STRUCT_IFNET_IF_SPEED 1 30957_ACEOF 30958 30959 30960fi 30961ac_fn_c_check_member "$LINENO" "struct ifnet" "if_type" "ac_cv_member_struct_ifnet_if_type" " 30962#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 30963#define _KERNEL_STRUCTURES 1 30964#endif 30965#ifdef NETSNMP_IFNET_NEEDS_KERNEL 30966#define KERNEL 30967#if !defined(__DragonFly__) 30968#define _KERNEL 1 30969#endif 30970#endif 30971#ifdef HAVE_SYS_TYPES_H 30972#include <sys/types.h> 30973#endif 30974#ifdef HAVE_SYS_SOCKET_H 30975#include <sys/socket.h> 30976#endif 30977#ifdef HAVE_SYS_TIME_H 30978#include <sys/time.h> 30979#endif 30980#ifdef HAVE_NET_IF_H 30981#include <net/if.h> 30982#endif 30983#ifdef HAVE_NET_IF_VAR_H 30984#include <net/if_var.h> 30985#endif 30986#ifdef HAVE_SYS_QUEUE_H 30987#include <sys/queue.h> 30988#endif 30989#ifdef linux 30990struct ifnet { 30991 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 30992 short if_unit; /* sub-unit for lower level driver */ 30993 short if_mtu; /* maximum transmission unit */ 30994 short if_flags; /* up/down, broadcast, etc. */ 30995 int if_metric; /* routing metric (external only) */ 30996 char if_hwaddr [6]; /* ethernet address */ 30997 int if_type; /* interface type: 1=generic, 30998 28=slip, ether=6, loopback=24 */ 30999 int if_speed; /* interface speed: in bits/sec */ 31000 31001 struct sockaddr if_addr; /* interface's address */ 31002 struct sockaddr ifu_broadaddr; /* broadcast address */ 31003 struct sockaddr ia_subnetmask; /* interface's mask */ 31004 31005 struct ifqueue { 31006 int ifq_len; 31007 int ifq_drops; 31008 } if_snd; /* output queue */ 31009 int if_ibytes; /* octets received on interface */ 31010 int if_ipackets; /* packets received on interface */ 31011 int if_ierrors; /* input errors on interface */ 31012 int if_iqdrops; /* input queue overruns */ 31013 int if_obytes; /* octets sent on interface */ 31014 int if_opackets; /* packets sent on interface */ 31015 int if_oerrors; /* output errors on interface */ 31016 int if_collisions; /* collisions on csma interfaces */ 31017/* end statistics */ 31018 struct ifnet *if_next; 31019}; 31020#endif 31021 31022" 31023if test "x$ac_cv_member_struct_ifnet_if_type" = xyes; then : 31024 31025cat >>confdefs.h <<_ACEOF 31026#define HAVE_STRUCT_IFNET_IF_TYPE 1 31027_ACEOF 31028 31029 31030fi 31031ac_fn_c_check_member "$LINENO" "struct ifnet" "if_xname" "ac_cv_member_struct_ifnet_if_xname" " 31032#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 31033#define _KERNEL_STRUCTURES 1 31034#endif 31035#ifdef NETSNMP_IFNET_NEEDS_KERNEL 31036#define KERNEL 31037#if !defined(__DragonFly__) 31038#define _KERNEL 1 31039#endif 31040#endif 31041#ifdef HAVE_SYS_TYPES_H 31042#include <sys/types.h> 31043#endif 31044#ifdef HAVE_SYS_SOCKET_H 31045#include <sys/socket.h> 31046#endif 31047#ifdef HAVE_SYS_TIME_H 31048#include <sys/time.h> 31049#endif 31050#ifdef HAVE_NET_IF_H 31051#include <net/if.h> 31052#endif 31053#ifdef HAVE_NET_IF_VAR_H 31054#include <net/if_var.h> 31055#endif 31056#ifdef HAVE_SYS_QUEUE_H 31057#include <sys/queue.h> 31058#endif 31059#ifdef linux 31060struct ifnet { 31061 char *if_name; /* name, e.g. \"en\" or \"lo\" */ 31062 short if_unit; /* sub-unit for lower level driver */ 31063 short if_mtu; /* maximum transmission unit */ 31064 short if_flags; /* up/down, broadcast, etc. */ 31065 int if_metric; /* routing metric (external only) */ 31066 char if_hwaddr [6]; /* ethernet address */ 31067 int if_type; /* interface type: 1=generic, 31068 28=slip, ether=6, loopback=24 */ 31069 int if_speed; /* interface speed: in bits/sec */ 31070 31071 struct sockaddr if_addr; /* interface's address */ 31072 struct sockaddr ifu_broadaddr; /* broadcast address */ 31073 struct sockaddr ia_subnetmask; /* interface's mask */ 31074 31075 struct ifqueue { 31076 int ifq_len; 31077 int ifq_drops; 31078 } if_snd; /* output queue */ 31079 int if_ibytes; /* octets received on interface */ 31080 int if_ipackets; /* packets received on interface */ 31081 int if_ierrors; /* input errors on interface */ 31082 int if_iqdrops; /* input queue overruns */ 31083 int if_obytes; /* octets sent on interface */ 31084 int if_opackets; /* packets sent on interface */ 31085 int if_oerrors; /* output errors on interface */ 31086 int if_collisions; /* collisions on csma interfaces */ 31087/* end statistics */ 31088 struct ifnet *if_next; 31089}; 31090#endif 31091 31092" 31093if test "x$ac_cv_member_struct_ifnet_if_xname" = xyes; then : 31094 31095cat >>confdefs.h <<_ACEOF 31096#define HAVE_STRUCT_IFNET_IF_XNAME 1 31097_ACEOF 31098 31099 31100fi 31101 31102 31103 31104# Check for BSD 4.3 vs 4.4 struct rtentry 31105# 31106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of rtentry structure" >&5 31107$as_echo_n "checking type of rtentry structure... " >&6; } 31108if ${ac_cv_RTENTRY_TYPE+:} false; then : 31109 $as_echo_n "(cached) " >&6 31110else 31111 31112 # BSD 4.4 compatible structure 31113 # ('rt_nodes' array) 31114 # 31115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31116/* end confdefs.h. */ 31117 31118#ifdef HAVE_SYS_PARAM_H 31119#include <sys/param.h> 31120#endif 31121#include <sys/types.h> 31122#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 31123#define _KERNEL_STRUCTURES 1 31124#endif 31125#ifdef NETSNMP_IFNET_NEEDS_KERNEL 31126#define KERNEL 31127#if !defined(__DragonFly__) 31128#define _KERNEL 1 31129#endif 31130#endif 31131#include <sys/socket.h> 31132#undef KERNEL 31133#undef _KERNEL 31134#include <net/route.h> 31135 31136int 31137main () 31138{ 31139 31140 31141#ifndef HAVE_STRUCT_RTENTRY_RT_DST 31142#define rt_dst rt_nodes->rn_key 31143#endif 31144 31145 struct rtentry rt; 31146 rt.rt_nodes[0].rn_flags = 1; 31147 rt.rt_dst; 31148 31149 ; 31150 return 0; 31151} 31152_ACEOF 31153if ac_fn_c_try_compile "$LINENO"; then : 31154 ac_cv_RTENTRY_TYPE="BSD-4.4" 31155fi 31156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31157 31158 if test "x$ac_cv_RTENTRY_TYPE" = "x"; then 31159 # BSD 4.3 compatible structure 31160 # ('rt_hash') 31161 # 31162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31163/* end confdefs.h. */ 31164 31165#ifdef HAVE_SYS_PARAM_H 31166#include <sys/param.h> 31167#endif 31168#include <sys/types.h> 31169#ifdef NETSNMP_IFNET_NEEDS_KERNEL_STRUCTURES 31170#define _KERNEL_STRUCTURES 1 31171#endif 31172#ifdef NETSNMP_IFNET_NEEDS_KERNEL 31173#define KERNEL 31174#if !defined(__DragonFly__) 31175#define _KERNEL 1 31176#endif 31177#endif 31178#include <sys/socket.h> 31179#undef KERNEL 31180#undef _KERNEL 31181#include <net/route.h> 31182 31183int 31184main () 31185{ 31186 31187 31188struct rtentry rt; 31189rt.rt_hash; 31190 31191 ; 31192 return 0; 31193} 31194_ACEOF 31195if ac_fn_c_try_compile "$LINENO"; then : 31196 ac_cv_RTENTRY_TYPE="BSD-4.3" 31197fi 31198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31199 fi 31200 31201 if test "x$ac_cv_RTENTRY_TYPE" = "x"; then 31202 # Neither BSD 4.3 nor 4.4 compatible structure 31203 # 31204 ac_cv_RTENTRY_TYPE="unknown" 31205 fi 31206 31207fi 31208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_RTENTRY_TYPE" >&5 31209$as_echo "$ac_cv_RTENTRY_TYPE" >&6; } 31210 31211if test "x$ac_cv_RTENTRY_TYPE" = "xBSD-4.4"; then 31212 31213$as_echo "#define RTENTRY_4_4 1" >>confdefs.h 31214 31215fi 31216 31217# Check for ortentry (Alpha) 31218# 31219if test "x$ac_cv_RTENTRY_TYPE" = "xunknown"; then 31220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtentry" >&5 31221$as_echo_n "checking for struct rtentry... " >&6; } 31222if ${ac_cv_struct_rtentry+:} false; then : 31223 $as_echo_n "(cached) " >&6 31224else 31225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31226/* end confdefs.h. */ 31227 31228#define KERNEL 31229#include <net/route.h> 31230 31231_ACEOF 31232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31233 $EGREP "ortentry" >/dev/null 2>&1; then : 31234 ac_cv_struct_rtentry=ortentry 31235else 31236 ac_cv_struct_rtentry=rtentry 31237fi 31238rm -f conftest* 31239 31240 if test "x$ac_cv_struct_rtentry" = "xrtentry" ; then 31241 ac_cv_struct_rtentry="rtentry" 31242 else 31243 ac_cv_struct_rtentry="ortentry" 31244 fi 31245 31246fi 31247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rtentry" >&5 31248$as_echo "$ac_cv_struct_rtentry" >&6; } 31249else 31250 RTENTRY_TYPE="rtentry" 31251 ac_cv_struct_rtentry="rtentry" 31252fi 31253 31254if test "x$ac_cv_struct_rtentry" = "x"; then 31255 ac_cv_struct_rtentry=rtentry 31256fi 31257 31258cat >>confdefs.h <<_ACEOF 31259#define RTENTRY struct ${ac_cv_struct_rtentry} 31260_ACEOF 31261 31262 31263# prioritynames 31264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking syslog prioritynames" >&5 31265$as_echo_n "checking syslog prioritynames... " >&6; } 31266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31267/* end confdefs.h. */ 31268 31269#include <stdio.h> 31270#if HAVE_SYSLOG_H 31271#define SYSLOG_NAMES 31272#include <syslog.h> 31273#endif 31274 31275int 31276main () 31277{ 31278 31279 char *test = prioritynames[0].c_name; 31280 printf("%s\n", test); /* so it's not unused */ 31281 31282 ; 31283 return 0; 31284} 31285_ACEOF 31286if ac_fn_c_try_link "$LINENO"; then : 31287 31288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31289$as_echo "yes" >&6; } 31290 31291$as_echo "#define HAVE_PRIORITYNAMES 1" >>confdefs.h 31292 31293 31294else 31295 31296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31297$as_echo "no" >&6; } 31298 31299fi 31300rm -f core conftest.err conftest.$ac_objext \ 31301 conftest$ac_exeext conftest.$ac_ext 31302 31303# -*- autoconf -*- 31304######################################### 31305## 31306# Miscellaneous Operating-System characteristics 31307## 31308######################################### 31309 31310 31311# Determine how to test for character devices 31312# [We assume that /dev/null does actually exist!] 31313# 31314if test -c /dev/null; then 31315 CDEV_TEST_FLAG="-c" 31316elif test -f /dev/null; then 31317 CDEV_TEST_FLAG="-f" 31318else 31319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't reliably detect character devices" >&5 31320$as_echo "$as_me: WARNING: Can't reliably detect character devices" >&2;} 31321 # Is it actually sensible to fall back on "test -f" ? 31322 CDEV_TEST_FLAG="-f" 31323fi 31324 31325# Kernel Location 31326# used in library/agent 31327# 31328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of system kernel" >&5 31329$as_echo_n "checking for location of system kernel... " >&6; } 31330if ${ac_cv_KERNEL_LOC+:} false; then : 31331 $as_echo_n "(cached) " >&6 31332else 31333 ac_cv_KERNEL_LOC="unknown" 31334 for i in /vmunix /hp-ux /stand/vmunix /dev/ksyms /kernel/unix /kernel/genunix /netbsd /unix /kernel /bsd /mach_kernel /boot/kernel/kernel 31335 do 31336 if test $CDEV_TEST_FLAG $i; then 31337 ac_cv_KERNEL_LOC="$i" 31338 break; 31339 fi 31340 done 31341 # 31342 # In principle, this test is meant to provide a default path to the kernel 31343 # In practice, the test is broken and the kernel path is set to "unknown" 31344 # 31345 # Note that on certain systems (e.g. some Linux distributions), 31346 # it is impossible to predict the name of the kernel, 31347 # particularly if it includes the kernel version, architecture, etc 31348 # 31349 # Since this default will never actually be used, then don't try to set it 31350 # 31351 if test $i = "unknown"; then 31352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find system kernel... hopefully this won't be needed!" >&5 31353$as_echo "$as_me: WARNING: Can't find system kernel... hopefully this won't be needed!" >&2;} 31354 fi 31355 31356fi 31357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_KERNEL_LOC" >&5 31358$as_echo "$ac_cv_KERNEL_LOC" >&6; } 31359 31360cat >>confdefs.h <<_ACEOF 31361#define KERNEL_LOC "$ac_cv_KERNEL_LOC" 31362_ACEOF 31363 31364 31365 31366# Swap device Location 31367# (/dev/dmem or /dev/drum) 31368# used in agent only 31369# 31370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of swap device" >&5 31371$as_echo_n "checking for location of swap device... " >&6; } 31372if ${ac_cv_DMEM_LOC+:} false; then : 31373 $as_echo_n "(cached) " >&6 31374else 31375 if test $CDEV_TEST_FLAG /dev/dmem; then 31376 ac_cv_DMEM_LOC="/dev/dmem" 31377 elif test $CDEV_TEST_FLAG /dev/drum; then 31378 ac_cv_DMEM_LOC="/dev/drum" 31379 else 31380 ac_cv_DMEM_LOC="none" 31381 fi 31382 31383fi 31384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_DMEM_LOC" >&5 31385$as_echo "$ac_cv_DMEM_LOC" >&6; } 31386# 31387# Note that it's OK if this device is not found 31388# 31389if test "x$ac_cv_DMEM_LOC" != "xnone"; then 31390 31391cat >>confdefs.h <<_ACEOF 31392#define DMEM_LOC "$ac_cv_DMEM_LOC" 31393_ACEOF 31394 31395fi 31396 31397 31398# Mount table Location 31399# used in agent only 31400# 31401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mount table location" >&5 31402$as_echo_n "checking for mount table location... " >&6; } 31403if ${ac_cv_ETC_MNTTAB+:} false; then : 31404 $as_echo_n "(cached) " >&6 31405else 31406 ac_cv_ETC_MNTTAB="${with_mnttab:-unknown}" 31407 if test "$ac_cv_ETC_MNTTAB" = "unknown"; then 31408 for i in /etc/mnttab /etc/mtab /etc/filesystems /dev/mnttab 31409 do 31410 if test -f $i -o -c $i; then 31411 ac_cv_ETC_MNTTAB="$i" 31412 break; 31413 fi 31414 done 31415 fi 31416 31417fi 31418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ETC_MNTTAB" >&5 31419$as_echo "$ac_cv_ETC_MNTTAB" >&6; } 31420 31421cat >>confdefs.h <<_ACEOF 31422#define ETC_MNTTAB "$ac_cv_ETC_MNTTAB" 31423_ACEOF 31424 31425 31426 31427# Printing 31428# used in agent only 31429# 31430# Extract the first word of "lpstat", so it can be a program name with args. 31431set dummy lpstat; ac_word=$2 31432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31433$as_echo_n "checking for $ac_word... " >&6; } 31434if ${ac_cv_path_LPSTAT_PATH+:} false; then : 31435 $as_echo_n "(cached) " >&6 31436else 31437 case $LPSTAT_PATH in 31438 [\\/]* | ?:[\\/]*) 31439 ac_cv_path_LPSTAT_PATH="$LPSTAT_PATH" # Let the user override the test with a path. 31440 ;; 31441 *) 31442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31443for as_dir in $PATH 31444do 31445 IFS=$as_save_IFS 31446 test -z "$as_dir" && as_dir=. 31447 for ac_exec_ext in '' $ac_executable_extensions; do 31448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31449 ac_cv_path_LPSTAT_PATH="$as_dir/$ac_word$ac_exec_ext" 31450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31451 break 2 31452 fi 31453done 31454 done 31455IFS=$as_save_IFS 31456 31457 ;; 31458esac 31459fi 31460LPSTAT_PATH=$ac_cv_path_LPSTAT_PATH 31461if test -n "$LPSTAT_PATH"; then 31462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPSTAT_PATH" >&5 31463$as_echo "$LPSTAT_PATH" >&6; } 31464else 31465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31466$as_echo "no" >&6; } 31467fi 31468 31469 31470if test x$LPSTAT_PATH != x; then 31471 31472cat >>confdefs.h <<_ACEOF 31473#define LPSTAT_PATH "$LPSTAT_PATH" 31474_ACEOF 31475 31476 31477$as_echo "#define HAVE_LPSTAT 1" >>confdefs.h 31478 31479fi 31480if test -r /etc/printcap; then 31481 31482$as_echo "#define HAVE_PRINTCAP 1" >>confdefs.h 31483 31484fi 31485 31486 31487# Check ps args 31488# used in agent only 31489# 31490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct flags to ps" >&5 31491$as_echo_n "checking for correct flags to ps... " >&6; } 31492if ${ac_cv_ps_flags+:} false; then : 31493 $as_echo_n "(cached) " >&6 31494else 31495 31496if test "`($PSPROG -e 2>&1) | $EGREP ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then 31497 ac_cv_ps_flags="-e" 31498elif test "`($PSPROG -el 2>&1) | $EGREP ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then 31499 ac_cv_ps_flags="-el" 31500elif test "`($PSPROG acx 2>&1) | $EGREP ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then 31501 ac_cv_ps_flags="acx" 31502elif test "`($PSPROG -acx 2>&1) | $EGREP ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then 31503 ac_cv_ps_flags="-acx" 31504elif test "`($PSPROG -o pid,tt,state,time,ucomm 2>&1) | $EGREP ' ps *$' | awk '{print $NF}'`" = "ps" ; then 31505 ac_cv_ps_flags="-o pid,tt,state,time,ucomm" 31506elif test "`($PSPROG ax 2>&1) | $EGREP ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then 31507 ac_cv_ps_flags="ax" 31508elif test "x$PARTIALTARGETOS" = "xcygwin"; then 31509 ac_cv_ps_flags="-e" 31510elif test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc"; then 31511 ac_cv_ps_flags="-e" 31512else 31513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine valid ps flags... defaulting..." >&5 31514$as_echo "$as_me: WARNING: Unable to determine valid ps flags... defaulting..." >&2;} 31515 ac_cv_ps_flags="-acx" 31516fi 31517 31518fi 31519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_flags" >&5 31520$as_echo "$ac_cv_ps_flags" >&6; } 31521 31522PSCMD="$PSPROG $ac_cv_ps_flags" 31523 31524 31525cat >>confdefs.h <<_ACEOF 31526#define PSCMD "$PSPROG $ac_cv_ps_flags" 31527_ACEOF 31528 31529 31530 31531## 31532# System/Compilation-related 31533## 31534 31535# Test for SIGHUP 31536# 31537 31538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGHUP" >&5 31539$as_echo_n "checking for SIGHUP... " >&6; } 31540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31541/* end confdefs.h. */ 31542#include <signal.h> 31543int 31544main () 31545{ 31546return SIGHUP 31547 ; 31548 return 0; 31549} 31550_ACEOF 31551if ac_fn_c_try_compile "$LINENO"; then : 31552 netsnmp_have_sighup=yes 31553else 31554 netsnmp_have_sighup=no 31555 31556fi 31557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netsnmp_have_sighup" >&5 31559$as_echo "$netsnmp_have_sighup" >&6; } 31560if test "x$netsnmp_have_sighup" = xyes; then 31561 31562$as_echo "#define HAVE_SIGHUP 1" >>confdefs.h 31563 31564fi 31565 31566 31567# Check whether sysctl() is usable 31568# used in library/agent 31569# 31570if test $cross_compiling = yes; then 31571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't check sysctl, manually define NETSNMP_CAN_USE_SYSCTL if platform support available" >&5 31572$as_echo "$as_me: WARNING: Can't check sysctl, manually define NETSNMP_CAN_USE_SYSCTL if platform support available" >&2;} 31573else 31574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sysctl can read kernel information" >&5 31575$as_echo_n "checking if sysctl can read kernel information... " >&6; } 31576if ${ac_cv_NETSNMP_CAN_USE_SYSCTL+:} false; then : 31577 $as_echo_n "(cached) " >&6 31578else 31579 if test "$cross_compiling" = yes; then : 31580 ac_cv_NETSNMP_CAN_USE_SYSCTL=no 31581else 31582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31583/* end confdefs.h. */ 31584 31585#if TIME_WITH_SYS_TIME 31586# include <sys/time.h> 31587# include <time.h> 31588#else 31589# if HAVE_SYS_TIME_H 31590# include <sys/time.h> 31591# else 31592# include <time.h> 31593# endif 31594#endif 31595#if HAVE_SYS_PARAM_H 31596# include <sys/param.h> 31597#endif 31598#include <sys/types.h> 31599#if HAVE_SYS_SYSCTL_H 31600# include <sys/sysctl.h> 31601#endif 31602 31603int main(int argc, char **argv) 31604{ 31605 int mib[2]; 31606 size_t len; 31607 struct timeval boottime; 31608 31609 mib[0] = CTL_KERN; 31610 mib[1] = KERN_BOOTTIME; 31611 31612 len = sizeof(boottime); 31613 return 1 - (sysctl(mib, 2, &boottime, &len, NULL, 0) == 0 && boottime.tv_sec); 31614} 31615 31616_ACEOF 31617if ac_fn_c_try_run "$LINENO"; then : 31618 ac_cv_NETSNMP_CAN_USE_SYSCTL=yes 31619else 31620 ac_cv_NETSNMP_CAN_USE_SYSCTL=no 31621fi 31622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31623 conftest.$ac_objext conftest.beam conftest.$ac_ext 31624fi 31625 31626fi 31627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_NETSNMP_CAN_USE_SYSCTL" >&5 31628$as_echo "$ac_cv_NETSNMP_CAN_USE_SYSCTL" >&6; } 31629fi 31630 31631if test "x$ac_cv_NETSNMP_CAN_USE_SYSCTL" = "xyes"; then 31632 31633$as_echo "#define NETSNMP_CAN_USE_SYSCTL 1" >>confdefs.h 31634 31635fi 31636 31637 31638# Check whether TCP timer constants are indeed constant 31639# or depend on the kernel clock tick 'hz'. (FreeBSD 4.x) 31640# 31641# If the latter, then we will need to have a local 31642# variable 'hz' defined and with a suitable value, 31643# whenever we want to use one one of these 'constants'. 31644# 31645# used in agent only 31646# 31647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP timers depend on 'hz'" >&5 31648$as_echo_n "checking whether TCP timers depend on 'hz'... " >&6; } 31649if ${ac_cv_TCPTV_NEEDS_HZ+:} false; then : 31650 $as_echo_n "(cached) " >&6 31651else 31652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31653/* end confdefs.h. */ 31654 31655#include <netinet/tcp_timer.h> 31656TCPTV_SRTTDFLT 31657 31658_ACEOF 31659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31660 $EGREP "hz" >/dev/null 2>&1; then : 31661 ac_cv_TCPTV_NEEDS_HZ=yes 31662else 31663 ac_cv_TCPTV_NEEDS_HZ=no 31664fi 31665rm -f conftest* 31666 31667fi 31668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_TCPTV_NEEDS_HZ" >&5 31669$as_echo "$ac_cv_TCPTV_NEEDS_HZ" >&6; } 31670 31671if test "x$ac_cv_TCPTV_NEEDS_HZ" = "xyes"; then 31672 31673$as_echo "#define TCPTV_NEEDS_HZ 1" >>confdefs.h 31674 31675fi 31676 31677 31678# Check whether IP Route table is cached (Solaris) 31679# used in agent only 31680# 31681case $target_os in 31682 solaris*) 31683 # Header checks (Solaris 2.6/7) 31684 # 31685 for ac_header in inet/common.h 31686do : 31687 ac_fn_c_check_header_mongrel "$LINENO" "inet/common.h" "ac_cv_header_inet_common_h" "$ac_includes_default" 31688if test "x$ac_cv_header_inet_common_h" = xyes; then : 31689 cat >>confdefs.h <<_ACEOF 31690#define HAVE_INET_COMMON_H 1 31691_ACEOF 31692 31693fi 31694 31695done 31696 31697 for ac_header in inet/ip.h 31698do : 31699 ac_fn_c_check_header_compile "$LINENO" "inet/ip.h" "ac_cv_header_inet_ip_h" "$ac_includes_default 31700 31701#if HAVE_SYS_STREAM_H 31702#include <sys/stream.h> 31703#endif 31704#if HAVE_INET_COMMON_H 31705#include <inet/common.h> 31706#endif 31707 31708" 31709if test "x$ac_cv_header_inet_ip_h" = xyes; then : 31710 cat >>confdefs.h <<_ACEOF 31711#define HAVE_INET_IP_H 1 31712_ACEOF 31713 ac_inet_ip_h=yes 31714else 31715 ac_inet_ip_h=no 31716fi 31717 31718done 31719 31720 if test $ac_inet_ip_h = yes ; then 31721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mib2_ipRouteEntry_t in inet/mib2.h" >&5 31722$as_echo_n "checking for mib2_ipRouteEntry_t in inet/mib2.h... " >&6; } 31723if ${ac_cv_mib2_ipRouteEntry_t+:} false; then : 31724 $as_echo_n "(cached) " >&6 31725else 31726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31727/* end confdefs.h. */ 31728 31729#if HAVE_INET_MIB2_H 31730#include <inet/mib2.h> 31731#endif 31732 31733int 31734main () 31735{ 31736 31737 mib2_ipRouteEntry_t testit; 31738 if(sizeof(testit)) 31739 return(0); 31740 31741 ; 31742 return 0; 31743} 31744_ACEOF 31745if ac_fn_c_try_compile "$LINENO"; then : 31746 ac_cv_mib2_ipRouteEntry_t=yes 31747else 31748 ac_cv_mib2_ipRouteEntry_t=no 31749fi 31750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31751fi 31752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mib2_ipRouteEntry_t" >&5 31753$as_echo "$ac_cv_mib2_ipRouteEntry_t" >&6; } 31754 31755 if test "x$ac_cv_mib2_ipRouteEntry_t" = "xyes" ; then 31756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IRE_CACHE is defined in inet/ip.h" >&5 31757$as_echo_n "checking whether IRE_CACHE is defined in inet/ip.h... " >&6; } 31758if ${ac_cv_ire_cache+:} false; then : 31759 $as_echo_n "(cached) " >&6 31760else 31761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31762/* end confdefs.h. */ 31763 31764#if HAVE_INET_IP_H 31765#include <inet/ip.h> 31766#endif 31767 31768int 31769main () 31770{ 31771 31772 int testit=IRE_CACHE; 31773 if(testit) 31774 return(0); 31775 31776 ; 31777 return 0; 31778} 31779_ACEOF 31780if ac_fn_c_try_compile "$LINENO"; then : 31781 ac_cv_ire_cache=yes 31782else 31783 ac_cv_ire_cache=no 31784fi 31785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31786fi 31787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ire_cache" >&5 31788$as_echo "$ac_cv_ire_cache" >&6; } 31789 else 31790 ac_cv_ire_cache=no 31791 fi 31792 31793 if test "x$ac_cv_ire_cache" = "xyes" ; then 31794 31795$as_echo "#define HAVE_DEFINED_IRE_CACHE /**/" >>confdefs.h 31796 31797 else 31798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that you have inet/ip.h, but IRE_CACHE is not defined. \ 31799That means that your query to ipRoute MIB could generate over 20k results! \ 31800And this can be very slow." >&5 31801$as_echo "$as_me: WARNING: It seems that you have inet/ip.h, but IRE_CACHE is not defined. \ 31802That means that your query to ipRoute MIB could generate over 20k results! \ 31803And this can be very slow." >&2;} 31804 fi 31805 fi # "test $ac_inet_ip_h = yes" 31806 ;; 31807esac 31808 31809# Check whether SO_BINDTODEVICE is available. 31810# 31811 31812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_BINDTODEVICE" >&5 31813$as_echo_n "checking for SO_BINDTODEVICE... " >&6; } 31814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31815/* end confdefs.h. */ 31816 31817#include <sys/types.h> 31818#include <sys/socket.h> 31819 31820int 31821main () 31822{ 31823 31824return SO_BINDTODEVICE 31825 31826 ; 31827 return 0; 31828} 31829_ACEOF 31830if ac_fn_c_try_link "$LINENO"; then : 31831 31832$as_echo "#define HAVE_SO_BINDTODEVICE 1" >>confdefs.h 31833 31834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31835$as_echo "yes" >&6; } 31836else 31837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31838$as_echo "no" >&6; } 31839fi 31840rm -f core conftest.err conftest.$ac_objext \ 31841 conftest$ac_exeext conftest.$ac_ext 31842 31843# Check whether struct in_pktinfo.ipi_spec_dst is available. 31844# 31845 31846ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" " 31847#include <sys/types.h> 31848#include <sys/socket.h> 31849#include <netinet/in.h> 31850 31851" 31852if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then : 31853 31854cat >>confdefs.h <<_ACEOF 31855#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1 31856_ACEOF 31857 31858 31859fi 31860 31861 31862# Check whether IP_PKTINFO is usable. 31863# 31864 31865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_PKTINFO " >&5 31866$as_echo_n "checking for IP_PKTINFO ... " >&6; } 31867if ${ac_cv_have_ip_pktinfo+:} false; then : 31868 $as_echo_n "(cached) " >&6 31869else 31870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31871/* end confdefs.h. */ 31872 31873#include <stdio.h> /* printf() */ 31874#include <stdlib.h> /* malloc() */ 31875#include <string.h> /* memset() */ 31876#include <sys/types.h> 31877#include <sys/socket.h> 31878#include <netinet/in.h> 31879 31880int 31881main () 31882{ 31883 31884 void *buf; 31885 int len; 31886 void *from; 31887 socklen_t *fromlen; 31888 31889 struct iovec iov; 31890 char *cmsg = malloc(CMSG_SPACE(sizeof(struct in_pktinfo))); 31891 struct cmsghdr *cm; 31892 struct msghdr msg; 31893 31894 iov.iov_base = buf; 31895 iov.iov_len = len; 31896 31897 memset(&msg, 0, sizeof msg); 31898 msg.msg_name = from; 31899 msg.msg_namelen = *fromlen; 31900 msg.msg_iov = &iov; 31901 msg.msg_iovlen = 1; 31902 msg.msg_control = &cmsg; 31903 msg.msg_controllen = sizeof(cmsg); 31904 31905 for (cm = CMSG_FIRSTHDR(&msg); cm; cm = CMSG_NXTHDR(&msg, cm)) { 31906 if (cm->cmsg_level == SOL_IP && cm->cmsg_type == IP_PKTINFO) { 31907 struct in_pktinfo* src = (struct in_pktinfo *)CMSG_DATA(cm); 31908 printf("Address: %s; index: %d\n", inet_ntoa(src->ipi_addr), 31909 src->ipi_ifindex); 31910 } 31911 } 31912 31913 ; 31914 return 0; 31915} 31916_ACEOF 31917if ac_fn_c_try_link "$LINENO"; then : 31918 ac_cv_have_ip_pktinfo=yes 31919else 31920 ac_cv_have_ip_pktinfo=no 31921 31922fi 31923rm -f core conftest.err conftest.$ac_objext \ 31924 conftest$ac_exeext conftest.$ac_ext 31925fi 31926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ip_pktinfo" >&5 31927$as_echo "$ac_cv_have_ip_pktinfo" >&6; } 31928if test x$ac_cv_have_ip_pktinfo = xyes; then 31929 31930$as_echo "#define HAVE_IP_PKTINFO 1" >>confdefs.h 31931 31932fi 31933 31934# Check whether IP_RECVDSTADDR is usable. 31935# 31936 31937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_RECVDSTADDR " >&5 31938$as_echo_n "checking for IP_RECVDSTADDR ... " >&6; } 31939if ${ac_cv_have_ip_recvdstaddr+:} false; then : 31940 $as_echo_n "(cached) " >&6 31941else 31942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31943/* end confdefs.h. */ 31944 31945#include <stdio.h> /* printf() */ 31946#include <stdlib.h> /* malloc() */ 31947#include <string.h> /* memset() */ 31948#include <sys/types.h> 31949#include <sys/socket.h> 31950#include <netinet/in.h> 31951 31952int 31953main () 31954{ 31955 31956 void *buf; 31957 int len; 31958 void *from; 31959 socklen_t *fromlen; 31960 31961 struct iovec iov; 31962 char *cmsg = malloc(CMSG_SPACE(sizeof(struct in_addr))); 31963 struct cmsghdr *cm; 31964 struct msghdr msg; 31965 31966 iov.iov_base = buf; 31967 iov.iov_len = len; 31968 31969 memset(&msg, 0, sizeof msg); 31970 msg.msg_name = from; 31971 msg.msg_namelen = *fromlen; 31972 msg.msg_iov = &iov; 31973 msg.msg_iovlen = 1; 31974 msg.msg_control = &cmsg; 31975 msg.msg_controllen = sizeof(cmsg); 31976 31977 for (cm = CMSG_FIRSTHDR(&msg); cm; cm = CMSG_NXTHDR(&msg, cm)) { 31978 if (cm->cmsg_level == IPPROTO_IP && cm->cmsg_type == IP_RECVDSTADDR) { 31979 struct in_addr* src = (struct in_addr *)CMSG_DATA(cm); 31980 printf("Address: %s\n", inet_ntoa(src)); 31981 } 31982 } 31983 31984 ; 31985 return 0; 31986} 31987_ACEOF 31988if ac_fn_c_try_link "$LINENO"; then : 31989 ac_cv_have_ip_recvdstaddr=yes 31990else 31991 ac_cv_have_ip_recvdstaddr=no 31992 31993fi 31994rm -f core conftest.err conftest.$ac_objext \ 31995 conftest$ac_exeext conftest.$ac_ext 31996fi 31997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ip_recvdstaddr" >&5 31998$as_echo "$ac_cv_have_ip_recvdstaddr" >&6; } 31999if test x$ac_cv_have_ip_recvdstaddr = xyes; then 32000 32001$as_echo "#define HAVE_IP_RECVDSTADDR 1" >>confdefs.h 32002 32003fi 32004 32005cat >confcache <<\_ACEOF 32006# This file is a shell script that caches the results of configure 32007# tests run on this system so they can be shared between configure 32008# scripts and configure runs, see configure's option --config-cache. 32009# It is not useful on other systems. If it contains results you don't 32010# want to keep, you may remove or edit it. 32011# 32012# config.status only pays attention to the cache file if you give it 32013# the --recheck option to rerun configure. 32014# 32015# `ac_cv_env_foo' variables (set or unset) will be overridden when 32016# loading this file, other *unset* `ac_cv_foo' will be assigned the 32017# following values. 32018 32019_ACEOF 32020 32021# The following way of writing the cache mishandles newlines in values, 32022# but we know of no workaround that is simple, portable, and efficient. 32023# So, we kill variables containing newlines. 32024# Ultrix sh set writes to stderr and can't be redirected directly, 32025# and sets the high bit in the cache file unless we assign to the vars. 32026( 32027 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 32028 eval ac_val=\$$ac_var 32029 case $ac_val in #( 32030 *${as_nl}*) 32031 case $ac_var in #( 32032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 32033$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 32034 esac 32035 case $ac_var in #( 32036 _ | IFS | as_nl) ;; #( 32037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 32038 *) { eval $ac_var=; unset $ac_var;} ;; 32039 esac ;; 32040 esac 32041 done 32042 32043 (set) 2>&1 | 32044 case $as_nl`(ac_space=' '; set) 2>&1` in #( 32045 *${as_nl}ac_space=\ *) 32046 # `set' does not quote correctly, so add quotes: double-quote 32047 # substitution turns \\\\ into \\, and sed turns \\ into \. 32048 sed -n \ 32049 "s/'/'\\\\''/g; 32050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 32051 ;; #( 32052 *) 32053 # `set' quotes correctly as required by POSIX, so do not add quotes. 32054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 32055 ;; 32056 esac | 32057 sort 32058) | 32059 sed ' 32060 /^ac_cv_env_/b end 32061 t clear 32062 :clear 32063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 32064 t end 32065 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 32066 :end' >>confcache 32067if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 32068 if test -w "$cache_file"; then 32069 if test "x$cache_file" != "x/dev/null"; then 32070 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 32071$as_echo "$as_me: updating cache $cache_file" >&6;} 32072 if test ! -f "$cache_file" || test -h "$cache_file"; then 32073 cat confcache >"$cache_file" 32074 else 32075 case $cache_file in #( 32076 */* | ?:*) 32077 mv -f confcache "$cache_file"$$ && 32078 mv -f "$cache_file"$$ "$cache_file" ;; #( 32079 *) 32080 mv -f confcache "$cache_file" ;; 32081 esac 32082 fi 32083 fi 32084 else 32085 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 32086$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 32087 fi 32088fi 32089rm -f confcache 32090## 32091# Add back in the original CFLAGS setting 32092## 32093CFLAGS="$noerr_CFLAGS ${CFLAGS#$CFLAGS_without_Werror}" 32094export CFLAGS 32095 32096# 32097# define the agent libraries variables 32098# 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110ac_config_files="$ac_config_files Makefile:Makefile.top:Makefile.in:Makefile.rules" 32111 32112ac_config_files="$ac_config_files snmplib/Makefile:Makefile.top:snmplib/Makefile.in:Makefile.rules:snmplib/Makefile.depend" 32113 32114ac_config_files="$ac_config_files apps/Makefile:Makefile.top:apps/Makefile.in:Makefile.rules:apps/Makefile.depend" 32115 32116ac_config_files="$ac_config_files apps/snmpnetstat/Makefile:Makefile.top:apps/snmpnetstat/Makefile.in:Makefile.rules:apps/snmpnetstat/Makefile.depend" 32117 32118ac_config_files="$ac_config_files agent/Makefile:Makefile.top:agent/Makefile.in:Makefile.rules:agent/Makefile.depend" 32119 32120ac_config_files="$ac_config_files agent/helpers/Makefile:Makefile.top:agent/helpers/Makefile.in:Makefile.rules:agent/helpers/Makefile.depend" 32121 32122ac_config_files="$ac_config_files agent/mibgroup/Makefile:Makefile.top:agent/mibgroup/Makefile.in:Makefile.rules:agent/mibgroup/Makefile.depend" 32123 32124ac_config_files="$ac_config_files local/Makefile:Makefile.top:local/Makefile.in:Makefile.rules" 32125 32126ac_config_files="$ac_config_files testing/Makefile:Makefile.top:testing/Makefile.in" 32127 32128ac_config_files="$ac_config_files man/Makefile:Makefile.top:man/Makefile.in:Makefile.rules" 32129 32130ac_config_files="$ac_config_files mibs/Makefile:Makefile.top:mibs/Makefile.in:Makefile.rules" 32131 32132ac_config_files="$ac_config_files net-snmp-config:net-snmp-config.in" 32133 32134ac_config_files="$ac_config_files net-snmp-create-v3-user:net-snmp-create-v3-user.in" 32135 32136ac_config_files="$ac_config_files netsnmp.pc:netsnmp.pc.in netsnmp-agent.pc:netsnmp-agent.pc.in" 32137 32138ac_config_files="$ac_config_files dist/generation-scripts/gen-variables:dist/generation-scripts/gen-variables.in" 32139 32140ac_config_files="$ac_config_files local/snmpconf" 32141 32142 32143ac_config_commands="$ac_config_commands default" 32144 32145 32146# 32147# protect PACKAGE_* variables 32148# 32149 32150 32151 32152 32153 32154 32155cat >confcache <<\_ACEOF 32156# This file is a shell script that caches the results of configure 32157# tests run on this system so they can be shared between configure 32158# scripts and configure runs, see configure's option --config-cache. 32159# It is not useful on other systems. If it contains results you don't 32160# want to keep, you may remove or edit it. 32161# 32162# config.status only pays attention to the cache file if you give it 32163# the --recheck option to rerun configure. 32164# 32165# `ac_cv_env_foo' variables (set or unset) will be overridden when 32166# loading this file, other *unset* `ac_cv_foo' will be assigned the 32167# following values. 32168 32169_ACEOF 32170 32171# The following way of writing the cache mishandles newlines in values, 32172# but we know of no workaround that is simple, portable, and efficient. 32173# So, we kill variables containing newlines. 32174# Ultrix sh set writes to stderr and can't be redirected directly, 32175# and sets the high bit in the cache file unless we assign to the vars. 32176( 32177 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 32178 eval ac_val=\$$ac_var 32179 case $ac_val in #( 32180 *${as_nl}*) 32181 case $ac_var in #( 32182 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 32183$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 32184 esac 32185 case $ac_var in #( 32186 _ | IFS | as_nl) ;; #( 32187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 32188 *) { eval $ac_var=; unset $ac_var;} ;; 32189 esac ;; 32190 esac 32191 done 32192 32193 (set) 2>&1 | 32194 case $as_nl`(ac_space=' '; set) 2>&1` in #( 32195 *${as_nl}ac_space=\ *) 32196 # `set' does not quote correctly, so add quotes: double-quote 32197 # substitution turns \\\\ into \\, and sed turns \\ into \. 32198 sed -n \ 32199 "s/'/'\\\\''/g; 32200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 32201 ;; #( 32202 *) 32203 # `set' quotes correctly as required by POSIX, so do not add quotes. 32204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 32205 ;; 32206 esac | 32207 sort 32208) | 32209 sed ' 32210 /^ac_cv_env_/b end 32211 t clear 32212 :clear 32213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 32214 t end 32215 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 32216 :end' >>confcache 32217if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 32218 if test -w "$cache_file"; then 32219 if test "x$cache_file" != "x/dev/null"; then 32220 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 32221$as_echo "$as_me: updating cache $cache_file" >&6;} 32222 if test ! -f "$cache_file" || test -h "$cache_file"; then 32223 cat confcache >"$cache_file" 32224 else 32225 case $cache_file in #( 32226 */* | ?:*) 32227 mv -f confcache "$cache_file"$$ && 32228 mv -f "$cache_file"$$ "$cache_file" ;; #( 32229 *) 32230 mv -f confcache "$cache_file" ;; 32231 esac 32232 fi 32233 fi 32234 else 32235 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 32236$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 32237 fi 32238fi 32239rm -f confcache 32240 32241test "x$prefix" = xNONE && prefix=$ac_default_prefix 32242# Let make expand exec_prefix. 32243test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 32244 32245DEFS=-DHAVE_CONFIG_H 32246 32247ac_libobjs= 32248ac_ltlibobjs= 32249U= 32250for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 32251 # 1. Remove the extension, and $U if already installed. 32252 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 32253 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 32254 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 32255 # will be set to the directory where LIBOBJS objects are built. 32256 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 32257 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 32258done 32259LIBOBJS=$ac_libobjs 32260 32261LTLIBOBJS=$ac_ltlibobjs 32262 32263 32264 32265: "${CONFIG_STATUS=./config.status}" 32266ac_write_fail=0 32267ac_clean_files_save=$ac_clean_files 32268ac_clean_files="$ac_clean_files $CONFIG_STATUS" 32269{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 32270$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 32271as_write_fail=0 32272cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 32273#! $SHELL 32274# Generated by $as_me. 32275# Run this file to recreate the current configuration. 32276# Compiler output produced by configure, useful for debugging 32277# configure, is in config.log if it exists. 32278 32279debug=false 32280ac_cs_recheck=false 32281ac_cs_silent=false 32282 32283SHELL=\${CONFIG_SHELL-$SHELL} 32284export SHELL 32285_ASEOF 32286cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 32287## -------------------- ## 32288## M4sh Initialization. ## 32289## -------------------- ## 32290 32291# Be more Bourne compatible 32292DUALCASE=1; export DUALCASE # for MKS sh 32293if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 32294 emulate sh 32295 NULLCMD=: 32296 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 32297 # is contrary to our usage. Disable this feature. 32298 alias -g '${1+"$@"}'='"$@"' 32299 setopt NO_GLOB_SUBST 32300else 32301 case `(set -o) 2>/dev/null` in #( 32302 *posix*) : 32303 set -o posix ;; #( 32304 *) : 32305 ;; 32306esac 32307fi 32308 32309 32310as_nl=' 32311' 32312export as_nl 32313# Printing a long string crashes Solaris 7 /usr/bin/printf. 32314as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 32315as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 32316as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 32317# Prefer a ksh shell builtin over an external printf program on Solaris, 32318# but without wasting forks for bash or zsh. 32319if test -z "$BASH_VERSION$ZSH_VERSION" \ 32320 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 32321 as_echo='print -r --' 32322 as_echo_n='print -rn --' 32323elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 32324 as_echo='printf %s\n' 32325 as_echo_n='printf %s' 32326else 32327 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 32328 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 32329 as_echo_n='/usr/ucb/echo -n' 32330 else 32331 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 32332 as_echo_n_body='eval 32333 arg=$1; 32334 case $arg in #( 32335 *"$as_nl"*) 32336 expr "X$arg" : "X\\(.*\\)$as_nl"; 32337 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 32338 esac; 32339 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 32340 ' 32341 export as_echo_n_body 32342 as_echo_n='sh -c $as_echo_n_body as_echo' 32343 fi 32344 export as_echo_body 32345 as_echo='sh -c $as_echo_body as_echo' 32346fi 32347 32348# The user is always right. 32349if test "${PATH_SEPARATOR+set}" != set; then 32350 PATH_SEPARATOR=: 32351 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 32352 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 32353 PATH_SEPARATOR=';' 32354 } 32355fi 32356 32357 32358# IFS 32359# We need space, tab and new line, in precisely that order. Quoting is 32360# there to prevent editors from complaining about space-tab. 32361# (If _AS_PATH_WALK were called with IFS unset, it would disable word 32362# splitting by setting IFS to empty value.) 32363IFS=" "" $as_nl" 32364 32365# Find who we are. Look in the path if we contain no directory separator. 32366as_myself= 32367case $0 in #(( 32368 *[\\/]* ) as_myself=$0 ;; 32369 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32370for as_dir in $PATH 32371do 32372 IFS=$as_save_IFS 32373 test -z "$as_dir" && as_dir=. 32374 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 32375 done 32376IFS=$as_save_IFS 32377 32378 ;; 32379esac 32380# We did not find ourselves, most probably we were run as `sh COMMAND' 32381# in which case we are not to be found in the path. 32382if test "x$as_myself" = x; then 32383 as_myself=$0 32384fi 32385if test ! -f "$as_myself"; then 32386 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 32387 exit 1 32388fi 32389 32390# Unset variables that we do not need and which cause bugs (e.g. in 32391# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 32392# suppresses any "Segmentation fault" message there. '((' could 32393# trigger a bug in pdksh 5.2.14. 32394for as_var in BASH_ENV ENV MAIL MAILPATH 32395do eval test x\${$as_var+set} = xset \ 32396 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 32397done 32398PS1='$ ' 32399PS2='> ' 32400PS4='+ ' 32401 32402# NLS nuisances. 32403LC_ALL=C 32404export LC_ALL 32405LANGUAGE=C 32406export LANGUAGE 32407 32408# CDPATH. 32409(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 32410 32411 32412# as_fn_error STATUS ERROR [LINENO LOG_FD] 32413# ---------------------------------------- 32414# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 32415# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 32416# script with STATUS, using 1 if that was 0. 32417as_fn_error () 32418{ 32419 as_status=$1; test $as_status -eq 0 && as_status=1 32420 if test "$4"; then 32421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 32422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 32423 fi 32424 $as_echo "$as_me: error: $2" >&2 32425 as_fn_exit $as_status 32426} # as_fn_error 32427 32428 32429# as_fn_set_status STATUS 32430# ----------------------- 32431# Set $? to STATUS, without forking. 32432as_fn_set_status () 32433{ 32434 return $1 32435} # as_fn_set_status 32436 32437# as_fn_exit STATUS 32438# ----------------- 32439# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 32440as_fn_exit () 32441{ 32442 set +e 32443 as_fn_set_status $1 32444 exit $1 32445} # as_fn_exit 32446 32447# as_fn_unset VAR 32448# --------------- 32449# Portably unset VAR. 32450as_fn_unset () 32451{ 32452 { eval $1=; unset $1;} 32453} 32454as_unset=as_fn_unset 32455# as_fn_append VAR VALUE 32456# ---------------------- 32457# Append the text in VALUE to the end of the definition contained in VAR. Take 32458# advantage of any shell optimizations that allow amortized linear growth over 32459# repeated appends, instead of the typical quadratic growth present in naive 32460# implementations. 32461if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 32462 eval 'as_fn_append () 32463 { 32464 eval $1+=\$2 32465 }' 32466else 32467 as_fn_append () 32468 { 32469 eval $1=\$$1\$2 32470 } 32471fi # as_fn_append 32472 32473# as_fn_arith ARG... 32474# ------------------ 32475# Perform arithmetic evaluation on the ARGs, and store the result in the 32476# global $as_val. Take advantage of shells that can avoid forks. The arguments 32477# must be portable across $(()) and expr. 32478if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 32479 eval 'as_fn_arith () 32480 { 32481 as_val=$(( $* )) 32482 }' 32483else 32484 as_fn_arith () 32485 { 32486 as_val=`expr "$@" || test $? -eq 1` 32487 } 32488fi # as_fn_arith 32489 32490 32491if expr a : '\(a\)' >/dev/null 2>&1 && 32492 test "X`expr 00001 : '.*\(...\)'`" = X001; then 32493 as_expr=expr 32494else 32495 as_expr=false 32496fi 32497 32498if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 32499 as_basename=basename 32500else 32501 as_basename=false 32502fi 32503 32504if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 32505 as_dirname=dirname 32506else 32507 as_dirname=false 32508fi 32509 32510as_me=`$as_basename -- "$0" || 32511$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 32512 X"$0" : 'X\(//\)$' \| \ 32513 X"$0" : 'X\(/\)' \| . 2>/dev/null || 32514$as_echo X/"$0" | 32515 sed '/^.*\/\([^/][^/]*\)\/*$/{ 32516 s//\1/ 32517 q 32518 } 32519 /^X\/\(\/\/\)$/{ 32520 s//\1/ 32521 q 32522 } 32523 /^X\/\(\/\).*/{ 32524 s//\1/ 32525 q 32526 } 32527 s/.*/./; q'` 32528 32529# Avoid depending upon Character Ranges. 32530as_cr_letters='abcdefghijklmnopqrstuvwxyz' 32531as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 32532as_cr_Letters=$as_cr_letters$as_cr_LETTERS 32533as_cr_digits='0123456789' 32534as_cr_alnum=$as_cr_Letters$as_cr_digits 32535 32536ECHO_C= ECHO_N= ECHO_T= 32537case `echo -n x` in #((((( 32538-n*) 32539 case `echo 'xy\c'` in 32540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 32541 xy) ECHO_C='\c';; 32542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 32543 ECHO_T=' ';; 32544 esac;; 32545*) 32546 ECHO_N='-n';; 32547esac 32548 32549rm -f conf$$ conf$$.exe conf$$.file 32550if test -d conf$$.dir; then 32551 rm -f conf$$.dir/conf$$.file 32552else 32553 rm -f conf$$.dir 32554 mkdir conf$$.dir 2>/dev/null 32555fi 32556if (echo >conf$$.file) 2>/dev/null; then 32557 if ln -s conf$$.file conf$$ 2>/dev/null; then 32558 as_ln_s='ln -s' 32559 # ... but there are two gotchas: 32560 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 32561 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 32562 # In both cases, we have to default to `cp -pR'. 32563 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 32564 as_ln_s='cp -pR' 32565 elif ln conf$$.file conf$$ 2>/dev/null; then 32566 as_ln_s=ln 32567 else 32568 as_ln_s='cp -pR' 32569 fi 32570else 32571 as_ln_s='cp -pR' 32572fi 32573rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 32574rmdir conf$$.dir 2>/dev/null 32575 32576 32577# as_fn_mkdir_p 32578# ------------- 32579# Create "$as_dir" as a directory, including parents if necessary. 32580as_fn_mkdir_p () 32581{ 32582 32583 case $as_dir in #( 32584 -*) as_dir=./$as_dir;; 32585 esac 32586 test -d "$as_dir" || eval $as_mkdir_p || { 32587 as_dirs= 32588 while :; do 32589 case $as_dir in #( 32590 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 32591 *) as_qdir=$as_dir;; 32592 esac 32593 as_dirs="'$as_qdir' $as_dirs" 32594 as_dir=`$as_dirname -- "$as_dir" || 32595$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32596 X"$as_dir" : 'X\(//\)[^/]' \| \ 32597 X"$as_dir" : 'X\(//\)$' \| \ 32598 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 32599$as_echo X"$as_dir" | 32600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32601 s//\1/ 32602 q 32603 } 32604 /^X\(\/\/\)[^/].*/{ 32605 s//\1/ 32606 q 32607 } 32608 /^X\(\/\/\)$/{ 32609 s//\1/ 32610 q 32611 } 32612 /^X\(\/\).*/{ 32613 s//\1/ 32614 q 32615 } 32616 s/.*/./; q'` 32617 test -d "$as_dir" && break 32618 done 32619 test -z "$as_dirs" || eval "mkdir $as_dirs" 32620 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 32621 32622 32623} # as_fn_mkdir_p 32624if mkdir -p . 2>/dev/null; then 32625 as_mkdir_p='mkdir -p "$as_dir"' 32626else 32627 test -d ./-p && rmdir ./-p 32628 as_mkdir_p=false 32629fi 32630 32631 32632# as_fn_executable_p FILE 32633# ----------------------- 32634# Test if FILE is an executable regular file. 32635as_fn_executable_p () 32636{ 32637 test -f "$1" && test -x "$1" 32638} # as_fn_executable_p 32639as_test_x='test -x' 32640as_executable_p=as_fn_executable_p 32641 32642# Sed expression to map a string onto a valid CPP name. 32643as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 32644 32645# Sed expression to map a string onto a valid variable name. 32646as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 32647 32648 32649exec 6>&1 32650## ----------------------------------- ## 32651## Main body of $CONFIG_STATUS script. ## 32652## ----------------------------------- ## 32653_ASEOF 32654test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 32655 32656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32657# Save the log message, to keep $0 and so on meaningful, and to 32658# report actual input values of CONFIG_FILES etc. instead of their 32659# values after options handling. 32660ac_log=" 32661This file was extended by Net-SNMP $as_me 5.9, which was 32662generated by GNU Autoconf 2.69. Invocation command line was 32663 32664 CONFIG_FILES = $CONFIG_FILES 32665 CONFIG_HEADERS = $CONFIG_HEADERS 32666 CONFIG_LINKS = $CONFIG_LINKS 32667 CONFIG_COMMANDS = $CONFIG_COMMANDS 32668 $ $0 $@ 32669 32670on `(hostname || uname -n) 2>/dev/null | sed 1q` 32671" 32672 32673_ACEOF 32674 32675case $ac_config_files in *" 32676"*) set x $ac_config_files; shift; ac_config_files=$*;; 32677esac 32678 32679case $ac_config_headers in *" 32680"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 32681esac 32682 32683 32684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32685# Files that config.status was made for. 32686config_files="$ac_config_files" 32687config_headers="$ac_config_headers" 32688config_commands="$ac_config_commands" 32689 32690_ACEOF 32691 32692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32693ac_cs_usage="\ 32694\`$as_me' instantiates files and other configuration actions 32695from templates according to the current configuration. Unless the files 32696and actions are specified as TAGs, all are instantiated by default. 32697 32698Usage: $0 [OPTION]... [TAG]... 32699 32700 -h, --help print this help, then exit 32701 -V, --version print version number and configuration settings, then exit 32702 --config print configuration, then exit 32703 -q, --quiet, --silent 32704 do not print progress messages 32705 -d, --debug don't remove temporary files 32706 --recheck update $as_me by reconfiguring in the same conditions 32707 --file=FILE[:TEMPLATE] 32708 instantiate the configuration file FILE 32709 --header=FILE[:TEMPLATE] 32710 instantiate the configuration header FILE 32711 32712Configuration files: 32713$config_files 32714 32715Configuration headers: 32716$config_headers 32717 32718Configuration commands: 32719$config_commands 32720 32721Report bugs to <net-snmp-coders@lists.sourceforge.net>." 32722 32723_ACEOF 32724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32725ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 32726ac_cs_version="\\ 32727Net-SNMP config.status 5.9 32728configured by $0, generated by GNU Autoconf 2.69, 32729 with options \\"\$ac_cs_config\\" 32730 32731Copyright (C) 2012 Free Software Foundation, Inc. 32732This config.status script is free software; the Free Software Foundation 32733gives unlimited permission to copy, distribute and modify it." 32734 32735ac_pwd='$ac_pwd' 32736srcdir='$srcdir' 32737INSTALL='$INSTALL' 32738AWK='$AWK' 32739test -n "\$AWK" || AWK=awk 32740_ACEOF 32741 32742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32743# The default lists apply if the user does not specify any file. 32744ac_need_defaults=: 32745while test $# != 0 32746do 32747 case $1 in 32748 --*=?*) 32749 ac_option=`expr "X$1" : 'X\([^=]*\)='` 32750 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 32751 ac_shift=: 32752 ;; 32753 --*=) 32754 ac_option=`expr "X$1" : 'X\([^=]*\)='` 32755 ac_optarg= 32756 ac_shift=: 32757 ;; 32758 *) 32759 ac_option=$1 32760 ac_optarg=$2 32761 ac_shift=shift 32762 ;; 32763 esac 32764 32765 case $ac_option in 32766 # Handling of the options. 32767 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 32768 ac_cs_recheck=: ;; 32769 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 32770 $as_echo "$ac_cs_version"; exit ;; 32771 --config | --confi | --conf | --con | --co | --c ) 32772 $as_echo "$ac_cs_config"; exit ;; 32773 --debug | --debu | --deb | --de | --d | -d ) 32774 debug=: ;; 32775 --file | --fil | --fi | --f ) 32776 $ac_shift 32777 case $ac_optarg in 32778 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 32779 '') as_fn_error $? "missing file argument" ;; 32780 esac 32781 as_fn_append CONFIG_FILES " '$ac_optarg'" 32782 ac_need_defaults=false;; 32783 --header | --heade | --head | --hea ) 32784 $ac_shift 32785 case $ac_optarg in 32786 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 32787 esac 32788 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 32789 ac_need_defaults=false;; 32790 --he | --h) 32791 # Conflict between --help and --header 32792 as_fn_error $? "ambiguous option: \`$1' 32793Try \`$0 --help' for more information.";; 32794 --help | --hel | -h ) 32795 $as_echo "$ac_cs_usage"; exit ;; 32796 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 32797 | -silent | --silent | --silen | --sile | --sil | --si | --s) 32798 ac_cs_silent=: ;; 32799 32800 # This is an error. 32801 -*) as_fn_error $? "unrecognized option: \`$1' 32802Try \`$0 --help' for more information." ;; 32803 32804 *) as_fn_append ac_config_targets " $1" 32805 ac_need_defaults=false ;; 32806 32807 esac 32808 shift 32809done 32810 32811ac_configure_extra_args= 32812 32813if $ac_cs_silent; then 32814 exec 6>/dev/null 32815 ac_configure_extra_args="$ac_configure_extra_args --silent" 32816fi 32817 32818_ACEOF 32819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32820if \$ac_cs_recheck; then 32821 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 32822 shift 32823 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 32824 CONFIG_SHELL='$SHELL' 32825 export CONFIG_SHELL 32826 exec "\$@" 32827fi 32828 32829_ACEOF 32830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32831exec 5>>config.log 32832{ 32833 echo 32834 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 32835## Running $as_me. ## 32836_ASBOX 32837 $as_echo "$ac_log" 32838} >&5 32839 32840_ACEOF 32841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32842# 32843# INIT-COMMANDS 32844# 32845 32846 32847# The HP-UX ksh and POSIX shell print the target directory to stdout 32848# if CDPATH is set. 32849(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 32850 32851sed_quote_subst='$sed_quote_subst' 32852double_quote_subst='$double_quote_subst' 32853delay_variable_subst='$delay_variable_subst' 32854macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 32855macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 32856AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 32857DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 32858OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 32859enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 32860enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 32861pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 32862enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 32863shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 32864SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 32865ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 32866PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 32867host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 32868host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 32869host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 32870build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 32871build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 32872build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 32873SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 32874Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 32875GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 32876EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 32877FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 32878LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 32879NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 32880LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 32881max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 32882ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 32883exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 32884lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 32885lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 32886lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 32887lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 32888lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 32889reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 32890reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 32891deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 32892file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 32893file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 32894want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 32895sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 32896AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 32897AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 32898archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 32899STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 32900RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 32901old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 32902old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 32903old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 32904lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 32905CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 32906CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 32907compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 32908GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 32909lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 32910lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 32911lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 32912lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 32913lt_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"`' 32914lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 32915nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 32916lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 32917lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 32918objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 32919MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 32920lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 32921lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 32922lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 32923lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 32924lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 32925need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 32926MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 32927DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 32928NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 32929LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 32930OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 32931OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 32932libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 32933shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 32934extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 32935archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 32936enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 32937export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 32938whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 32939compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 32940old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 32941old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 32942archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 32943archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 32944module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 32945module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 32946with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 32947allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 32948no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 32949hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 32950hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 32951hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 32952hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 32953hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 32954hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 32955hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 32956inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 32957link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 32958always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 32959export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 32960exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 32961include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 32962prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 32963postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 32964file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 32965variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 32966need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 32967need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 32968version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 32969runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 32970shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 32971shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 32972libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 32973library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 32974soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 32975install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 32976postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 32977postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 32978finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 32979finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 32980hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 32981sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 32982configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 32983configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 32984hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 32985enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 32986enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 32987enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 32988old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 32989striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 32990LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' 32991reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' 32992reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' 32993old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 32994compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' 32995GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' 32996lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' 32997lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' 32998lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' 32999lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' 33000lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' 33001archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' 33002enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' 33003export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 33004whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 33005compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' 33006old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' 33007old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' 33008archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 33009archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 33010module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' 33011module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 33012with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' 33013allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 33014no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 33015hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 33016hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' 33017hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' 33018hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' 33019hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' 33020hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' 33021hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' 33022inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' 33023link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' 33024always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' 33025export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' 33026exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' 33027include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' 33028prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' 33029postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' 33030file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' 33031hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' 33032 33033LTCC='$LTCC' 33034LTCFLAGS='$LTCFLAGS' 33035compiler='$compiler_DEFAULT' 33036 33037# A function that is used when there is no print builtin or printf. 33038func_fallback_echo () 33039{ 33040 eval 'cat <<_LTECHO_EOF 33041\$1 33042_LTECHO_EOF' 33043} 33044 33045# Quote evaled strings. 33046for var in AS \ 33047DLLTOOL \ 33048OBJDUMP \ 33049SHELL \ 33050ECHO \ 33051PATH_SEPARATOR \ 33052SED \ 33053GREP \ 33054EGREP \ 33055FGREP \ 33056LD \ 33057NM \ 33058LN_S \ 33059lt_SP2NL \ 33060lt_NL2SP \ 33061reload_flag \ 33062deplibs_check_method \ 33063file_magic_cmd \ 33064file_magic_glob \ 33065want_nocaseglob \ 33066sharedlib_from_linklib_cmd \ 33067AR \ 33068AR_FLAGS \ 33069archiver_list_spec \ 33070STRIP \ 33071RANLIB \ 33072CC \ 33073CFLAGS \ 33074compiler \ 33075lt_cv_sys_global_symbol_pipe \ 33076lt_cv_sys_global_symbol_to_cdecl \ 33077lt_cv_sys_global_symbol_to_import \ 33078lt_cv_sys_global_symbol_to_c_name_address \ 33079lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 33080lt_cv_nm_interface \ 33081nm_file_list_spec \ 33082lt_cv_truncate_bin \ 33083lt_prog_compiler_no_builtin_flag \ 33084lt_prog_compiler_pic \ 33085lt_prog_compiler_wl \ 33086lt_prog_compiler_static \ 33087lt_cv_prog_compiler_c_o \ 33088need_locks \ 33089MANIFEST_TOOL \ 33090DSYMUTIL \ 33091NMEDIT \ 33092LIPO \ 33093OTOOL \ 33094OTOOL64 \ 33095shrext_cmds \ 33096export_dynamic_flag_spec \ 33097whole_archive_flag_spec \ 33098compiler_needs_object \ 33099with_gnu_ld \ 33100allow_undefined_flag \ 33101no_undefined_flag \ 33102hardcode_libdir_flag_spec \ 33103hardcode_libdir_separator \ 33104exclude_expsyms \ 33105include_expsyms \ 33106file_list_spec \ 33107variables_saved_for_relink \ 33108libname_spec \ 33109library_names_spec \ 33110soname_spec \ 33111install_override_mode \ 33112finish_eval \ 33113old_striplib \ 33114striplib \ 33115LD_RC \ 33116reload_flag_RC \ 33117compiler_RC \ 33118lt_prog_compiler_no_builtin_flag_RC \ 33119lt_prog_compiler_pic_RC \ 33120lt_prog_compiler_wl_RC \ 33121lt_prog_compiler_static_RC \ 33122lt_cv_prog_compiler_c_o_RC \ 33123export_dynamic_flag_spec_RC \ 33124whole_archive_flag_spec_RC \ 33125compiler_needs_object_RC \ 33126with_gnu_ld_RC \ 33127allow_undefined_flag_RC \ 33128no_undefined_flag_RC \ 33129hardcode_libdir_flag_spec_RC \ 33130hardcode_libdir_separator_RC \ 33131exclude_expsyms_RC \ 33132include_expsyms_RC \ 33133file_list_spec_RC; do 33134 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 33135 *[\\\\\\\`\\"\\\$]*) 33136 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 33137 ;; 33138 *) 33139 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 33140 ;; 33141 esac 33142done 33143 33144# Double-quote double-evaled strings. 33145for var in reload_cmds \ 33146old_postinstall_cmds \ 33147old_postuninstall_cmds \ 33148old_archive_cmds \ 33149extract_expsyms_cmds \ 33150old_archive_from_new_cmds \ 33151old_archive_from_expsyms_cmds \ 33152archive_cmds \ 33153archive_expsym_cmds \ 33154module_cmds \ 33155module_expsym_cmds \ 33156export_symbols_cmds \ 33157prelink_cmds \ 33158postlink_cmds \ 33159postinstall_cmds \ 33160postuninstall_cmds \ 33161finish_cmds \ 33162sys_lib_search_path_spec \ 33163configure_time_dlsearch_path \ 33164configure_time_lt_sys_library_path \ 33165reload_cmds_RC \ 33166old_archive_cmds_RC \ 33167old_archive_from_new_cmds_RC \ 33168old_archive_from_expsyms_cmds_RC \ 33169archive_cmds_RC \ 33170archive_expsym_cmds_RC \ 33171module_cmds_RC \ 33172module_expsym_cmds_RC \ 33173export_symbols_cmds_RC \ 33174prelink_cmds_RC \ 33175postlink_cmds_RC; do 33176 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 33177 *[\\\\\\\`\\"\\\$]*) 33178 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 33179 ;; 33180 *) 33181 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 33182 ;; 33183 esac 33184done 33185 33186ac_aux_dir='$ac_aux_dir' 33187 33188# See if we are running on zsh, and set the options that allow our 33189# commands through without removal of \ escapes INIT. 33190if test -n "\${ZSH_VERSION+set}"; then 33191 setopt NO_GLOB_SUBST 33192fi 33193 33194 33195 PACKAGE='$PACKAGE' 33196 VERSION='$VERSION' 33197 RM='$RM' 33198 ofile='$ofile' 33199 33200 33201 33202 33203 33204 33205_ACEOF 33206 33207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33208 33209# Handling of arguments. 33210for ac_config_target in $ac_config_targets 33211do 33212 case $ac_config_target in 33213 "include/net-snmp/net-snmp-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/net-snmp/net-snmp-config.h" ;; 33214 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 33215 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.top:Makefile.in:Makefile.rules" ;; 33216 "snmplib/Makefile") CONFIG_FILES="$CONFIG_FILES snmplib/Makefile:Makefile.top:snmplib/Makefile.in:Makefile.rules:snmplib/Makefile.depend" ;; 33217 "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile:Makefile.top:apps/Makefile.in:Makefile.rules:apps/Makefile.depend" ;; 33218 "apps/snmpnetstat/Makefile") CONFIG_FILES="$CONFIG_FILES apps/snmpnetstat/Makefile:Makefile.top:apps/snmpnetstat/Makefile.in:Makefile.rules:apps/snmpnetstat/Makefile.depend" ;; 33219 "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile:Makefile.top:agent/Makefile.in:Makefile.rules:agent/Makefile.depend" ;; 33220 "agent/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES agent/helpers/Makefile:Makefile.top:agent/helpers/Makefile.in:Makefile.rules:agent/helpers/Makefile.depend" ;; 33221 "agent/mibgroup/Makefile") CONFIG_FILES="$CONFIG_FILES agent/mibgroup/Makefile:Makefile.top:agent/mibgroup/Makefile.in:Makefile.rules:agent/mibgroup/Makefile.depend" ;; 33222 "local/Makefile") CONFIG_FILES="$CONFIG_FILES local/Makefile:Makefile.top:local/Makefile.in:Makefile.rules" ;; 33223 "testing/Makefile") CONFIG_FILES="$CONFIG_FILES testing/Makefile:Makefile.top:testing/Makefile.in" ;; 33224 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile:Makefile.top:man/Makefile.in:Makefile.rules" ;; 33225 "mibs/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/Makefile:Makefile.top:mibs/Makefile.in:Makefile.rules" ;; 33226 "net-snmp-config") CONFIG_FILES="$CONFIG_FILES net-snmp-config:net-snmp-config.in" ;; 33227 "net-snmp-create-v3-user") CONFIG_FILES="$CONFIG_FILES net-snmp-create-v3-user:net-snmp-create-v3-user.in" ;; 33228 "netsnmp.pc") CONFIG_FILES="$CONFIG_FILES netsnmp.pc:netsnmp.pc.in" ;; 33229 "netsnmp-agent.pc") CONFIG_FILES="$CONFIG_FILES netsnmp-agent.pc:netsnmp-agent.pc.in" ;; 33230 "dist/generation-scripts/gen-variables") CONFIG_FILES="$CONFIG_FILES dist/generation-scripts/gen-variables:dist/generation-scripts/gen-variables.in" ;; 33231 "local/snmpconf") CONFIG_FILES="$CONFIG_FILES local/snmpconf" ;; 33232 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 33233 33234 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 33235 esac 33236done 33237 33238 33239# If the user did not use the arguments to specify the items to instantiate, 33240# then the envvar interface is used. Set only those that are not. 33241# We use the long form for the default assignment because of an extremely 33242# bizarre bug on SunOS 4.1.3. 33243if $ac_need_defaults; then 33244 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 33245 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 33246 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 33247fi 33248 33249# Have a temporary directory for convenience. Make it in the build tree 33250# simply because there is no reason against having it here, and in addition, 33251# creating and moving files from /tmp can sometimes cause problems. 33252# Hook for its removal unless debugging. 33253# Note that there is a small window in which the directory will not be cleaned: 33254# after its creation but before its name has been assigned to `$tmp'. 33255$debug || 33256{ 33257 tmp= ac_tmp= 33258 trap 'exit_status=$? 33259 : "${ac_tmp:=$tmp}" 33260 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 33261' 0 33262 trap 'as_fn_exit 1' 1 2 13 15 33263} 33264# Create a (secure) tmp directory for tmp files. 33265 33266{ 33267 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 33268 test -d "$tmp" 33269} || 33270{ 33271 tmp=./conf$$-$RANDOM 33272 (umask 077 && mkdir "$tmp") 33273} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 33274ac_tmp=$tmp 33275 33276# Set up the scripts for CONFIG_FILES section. 33277# No need to generate them if there are no CONFIG_FILES. 33278# This happens for instance with `./config.status config.h'. 33279if test -n "$CONFIG_FILES"; then 33280 33281if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 33282 ac_cs_awk_getline=: 33283 ac_cs_awk_pipe_init= 33284 ac_cs_awk_read_file=' 33285 while ((getline aline < (F[key])) > 0) 33286 print(aline) 33287 close(F[key])' 33288 ac_cs_awk_pipe_fini= 33289else 33290 ac_cs_awk_getline=false 33291 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 33292 ac_cs_awk_read_file=' 33293 print "|#_!!_#|" 33294 print "cat " F[key] " &&" 33295 '$ac_cs_awk_pipe_init 33296 # The final `:' finishes the AND list. 33297 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 33298fi 33299ac_cr=`echo X | tr X '\015'` 33300# On cygwin, bash can eat \r inside `` if the user requested igncr. 33301# But we know of no other shell where ac_cr would be empty at this 33302# point, so we can use a bashism as a fallback. 33303if test "x$ac_cr" = x; then 33304 eval ac_cr=\$\'\\r\' 33305fi 33306ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 33307if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 33308 ac_cs_awk_cr='\\r' 33309else 33310 ac_cs_awk_cr=$ac_cr 33311fi 33312 33313echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 33314_ACEOF 33315 33316# Create commands to substitute file output variables. 33317{ 33318 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 33319 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 33320 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 33321 echo "_ACAWK" && 33322 echo "_ACEOF" 33323} >conf$$files.sh && 33324. ./conf$$files.sh || 33325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33326rm -f conf$$files.sh 33327 33328{ 33329 echo "cat >conf$$subs.awk <<_ACEOF" && 33330 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 33331 echo "_ACEOF" 33332} >conf$$subs.sh || 33333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33334ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 33335ac_delim='%!_!# ' 33336for ac_last_try in false false false false false :; do 33337 . ./conf$$subs.sh || 33338 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33339 33340 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 33341 if test $ac_delim_n = $ac_delim_num; then 33342 break 33343 elif $ac_last_try; then 33344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33345 else 33346 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 33347 fi 33348done 33349rm -f conf$$subs.sh 33350 33351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33352cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 33353_ACEOF 33354sed -n ' 33355h 33356s/^/S["/; s/!.*/"]=/ 33357p 33358g 33359s/^[^!]*!// 33360:repl 33361t repl 33362s/'"$ac_delim"'$// 33363t delim 33364:nl 33365h 33366s/\(.\{148\}\)..*/\1/ 33367t more1 33368s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 33369p 33370n 33371b repl 33372:more1 33373s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 33374p 33375g 33376s/.\{148\}// 33377t nl 33378:delim 33379h 33380s/\(.\{148\}\)..*/\1/ 33381t more2 33382s/["\\]/\\&/g; s/^/"/; s/$/"/ 33383p 33384b 33385:more2 33386s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 33387p 33388g 33389s/.\{148\}// 33390t delim 33391' <conf$$subs.awk | sed ' 33392/^[^""]/{ 33393 N 33394 s/\n// 33395} 33396' >>$CONFIG_STATUS || ac_write_fail=1 33397rm -f conf$$subs.awk 33398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33399_ACAWK 33400cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 33401 for (key in S) S_is_set[key] = 1 33402 FS = "" 33403 \$ac_cs_awk_pipe_init 33404} 33405{ 33406 line = $ 0 33407 nfields = split(line, field, "@") 33408 substed = 0 33409 len = length(field[1]) 33410 for (i = 2; i < nfields; i++) { 33411 key = field[i] 33412 keylen = length(key) 33413 if (S_is_set[key]) { 33414 value = S[key] 33415 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 33416 len += length(value) + length(field[++i]) 33417 substed = 1 33418 } else 33419 len += 1 + keylen 33420 } 33421 if (nfields == 3 && !substed) { 33422 key = field[2] 33423 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 33424 \$ac_cs_awk_read_file 33425 next 33426 } 33427 } 33428 print line 33429} 33430\$ac_cs_awk_pipe_fini 33431_ACAWK 33432_ACEOF 33433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33434if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 33435 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 33436else 33437 cat 33438fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 33439 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 33440_ACEOF 33441 33442# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 33443# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 33444# trailing colons and then remove the whole line if VPATH becomes empty 33445# (actually we leave an empty line to preserve line numbers). 33446if test "x$srcdir" = x.; then 33447 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 33448h 33449s/// 33450s/^/:/ 33451s/[ ]*$/:/ 33452s/:\$(srcdir):/:/g 33453s/:\${srcdir}:/:/g 33454s/:@srcdir@:/:/g 33455s/^:*// 33456s/:*$// 33457x 33458s/\(=[ ]*\).*/\1/ 33459G 33460s/\n// 33461s/^[^=]*=[ ]*$// 33462}' 33463fi 33464 33465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33466fi # test -n "$CONFIG_FILES" 33467 33468# Set up the scripts for CONFIG_HEADERS section. 33469# No need to generate them if there are no CONFIG_HEADERS. 33470# This happens for instance with `./config.status Makefile'. 33471if test -n "$CONFIG_HEADERS"; then 33472cat >"$ac_tmp/defines.awk" <<\_ACAWK || 33473BEGIN { 33474_ACEOF 33475 33476# Transform confdefs.h into an awk script `defines.awk', embedded as 33477# here-document in config.status, that substitutes the proper values into 33478# config.h.in to produce config.h. 33479 33480# Create a delimiter string that does not exist in confdefs.h, to ease 33481# handling of long lines. 33482ac_delim='%!_!# ' 33483for ac_last_try in false false :; do 33484 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 33485 if test -z "$ac_tt"; then 33486 break 33487 elif $ac_last_try; then 33488 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 33489 else 33490 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 33491 fi 33492done 33493 33494# For the awk script, D is an array of macro values keyed by name, 33495# likewise P contains macro parameters if any. Preserve backslash 33496# newline sequences. 33497 33498ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 33499sed -n ' 33500s/.\{148\}/&'"$ac_delim"'/g 33501t rset 33502:rset 33503s/^[ ]*#[ ]*define[ ][ ]*/ / 33504t def 33505d 33506:def 33507s/\\$// 33508t bsnl 33509s/["\\]/\\&/g 33510s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 33511D["\1"]=" \3"/p 33512s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 33513d 33514:bsnl 33515s/["\\]/\\&/g 33516s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 33517D["\1"]=" \3\\\\\\n"\\/p 33518t cont 33519s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 33520t cont 33521d 33522:cont 33523n 33524s/.\{148\}/&'"$ac_delim"'/g 33525t clear 33526:clear 33527s/\\$// 33528t bsnlc 33529s/["\\]/\\&/g; s/^/"/; s/$/"/p 33530d 33531:bsnlc 33532s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 33533b cont 33534' <confdefs.h | sed ' 33535s/'"$ac_delim"'/"\\\ 33536"/g' >>$CONFIG_STATUS || ac_write_fail=1 33537 33538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33539 for (key in D) D_is_set[key] = 1 33540 FS = "" 33541} 33542/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 33543 line = \$ 0 33544 split(line, arg, " ") 33545 if (arg[1] == "#") { 33546 defundef = arg[2] 33547 mac1 = arg[3] 33548 } else { 33549 defundef = substr(arg[1], 2) 33550 mac1 = arg[2] 33551 } 33552 split(mac1, mac2, "(") #) 33553 macro = mac2[1] 33554 prefix = substr(line, 1, index(line, defundef) - 1) 33555 if (D_is_set[macro]) { 33556 # Preserve the white space surrounding the "#". 33557 print prefix "define", macro P[macro] D[macro] 33558 next 33559 } else { 33560 # Replace #undef with comments. This is necessary, for example, 33561 # in the case of _POSIX_SOURCE, which is predefined and required 33562 # on some systems where configure will not decide to define it. 33563 if (defundef == "undef") { 33564 print "/*", prefix defundef, macro, "*/" 33565 next 33566 } 33567 } 33568} 33569{ print } 33570_ACAWK 33571_ACEOF 33572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33573 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 33574fi # test -n "$CONFIG_HEADERS" 33575 33576 33577eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 33578shift 33579for ac_tag 33580do 33581 case $ac_tag in 33582 :[FHLC]) ac_mode=$ac_tag; continue;; 33583 esac 33584 case $ac_mode$ac_tag in 33585 :[FHL]*:*);; 33586 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 33587 :[FH]-) ac_tag=-:-;; 33588 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 33589 esac 33590 ac_save_IFS=$IFS 33591 IFS=: 33592 set x $ac_tag 33593 IFS=$ac_save_IFS 33594 shift 33595 ac_file=$1 33596 shift 33597 33598 case $ac_mode in 33599 :L) ac_source=$1;; 33600 :[FH]) 33601 ac_file_inputs= 33602 for ac_f 33603 do 33604 case $ac_f in 33605 -) ac_f="$ac_tmp/stdin";; 33606 *) # Look for the file first in the build tree, then in the source tree 33607 # (if the path is not absolute). The absolute path cannot be DOS-style, 33608 # because $ac_f cannot contain `:'. 33609 test -f "$ac_f" || 33610 case $ac_f in 33611 [\\/$]*) false;; 33612 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 33613 esac || 33614 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 33615 esac 33616 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 33617 as_fn_append ac_file_inputs " '$ac_f'" 33618 done 33619 33620 # Let's still pretend it is `configure' which instantiates (i.e., don't 33621 # use $as_me), people would be surprised to read: 33622 # /* config.h. Generated by config.status. */ 33623 configure_input='Generated from '` 33624 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 33625 `' by configure.' 33626 if test x"$ac_file" != x-; then 33627 configure_input="$ac_file. $configure_input" 33628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 33629$as_echo "$as_me: creating $ac_file" >&6;} 33630 fi 33631 # Neutralize special characters interpreted by sed in replacement strings. 33632 case $configure_input in #( 33633 *\&* | *\|* | *\\* ) 33634 ac_sed_conf_input=`$as_echo "$configure_input" | 33635 sed 's/[\\\\&|]/\\\\&/g'`;; #( 33636 *) ac_sed_conf_input=$configure_input;; 33637 esac 33638 33639 case $ac_tag in 33640 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 33641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 33642 esac 33643 ;; 33644 esac 33645 33646 ac_dir=`$as_dirname -- "$ac_file" || 33647$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33648 X"$ac_file" : 'X\(//\)[^/]' \| \ 33649 X"$ac_file" : 'X\(//\)$' \| \ 33650 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 33651$as_echo X"$ac_file" | 33652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33653 s//\1/ 33654 q 33655 } 33656 /^X\(\/\/\)[^/].*/{ 33657 s//\1/ 33658 q 33659 } 33660 /^X\(\/\/\)$/{ 33661 s//\1/ 33662 q 33663 } 33664 /^X\(\/\).*/{ 33665 s//\1/ 33666 q 33667 } 33668 s/.*/./; q'` 33669 as_dir="$ac_dir"; as_fn_mkdir_p 33670 ac_builddir=. 33671 33672case "$ac_dir" in 33673.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 33674*) 33675 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 33676 # A ".." for each directory in $ac_dir_suffix. 33677 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 33678 case $ac_top_builddir_sub in 33679 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 33680 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 33681 esac ;; 33682esac 33683ac_abs_top_builddir=$ac_pwd 33684ac_abs_builddir=$ac_pwd$ac_dir_suffix 33685# for backward compatibility: 33686ac_top_builddir=$ac_top_build_prefix 33687 33688case $srcdir in 33689 .) # We are building in place. 33690 ac_srcdir=. 33691 ac_top_srcdir=$ac_top_builddir_sub 33692 ac_abs_top_srcdir=$ac_pwd ;; 33693 [\\/]* | ?:[\\/]* ) # Absolute name. 33694 ac_srcdir=$srcdir$ac_dir_suffix; 33695 ac_top_srcdir=$srcdir 33696 ac_abs_top_srcdir=$srcdir ;; 33697 *) # Relative name. 33698 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 33699 ac_top_srcdir=$ac_top_build_prefix$srcdir 33700 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 33701esac 33702ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 33703 33704 33705 case $ac_mode in 33706 :F) 33707 # 33708 # CONFIG_FILE 33709 # 33710 33711 case $INSTALL in 33712 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 33713 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 33714 esac 33715_ACEOF 33716 33717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33718# If the template does not know about datarootdir, expand it. 33719# FIXME: This hack should be removed a few years after 2.60. 33720ac_datarootdir_hack=; ac_datarootdir_seen= 33721ac_sed_dataroot=' 33722/datarootdir/ { 33723 p 33724 q 33725} 33726/@datadir@/p 33727/@docdir@/p 33728/@infodir@/p 33729/@localedir@/p 33730/@mandir@/p' 33731case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 33732*datarootdir*) ac_datarootdir_seen=yes;; 33733*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 33734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 33735$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 33736_ACEOF 33737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33738 ac_datarootdir_hack=' 33739 s&@datadir@&$datadir&g 33740 s&@docdir@&$docdir&g 33741 s&@infodir@&$infodir&g 33742 s&@localedir@&$localedir&g 33743 s&@mandir@&$mandir&g 33744 s&\\\${datarootdir}&$datarootdir&g' ;; 33745esac 33746_ACEOF 33747 33748# Neutralize VPATH when `$srcdir' = `.'. 33749# Shell code in configure.ac might set extrasub. 33750# FIXME: do we really want to maintain this feature? 33751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33752ac_sed_extra="$ac_vpsub 33753$extrasub 33754_ACEOF 33755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33756:t 33757/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 33758s|@configure_input@|$ac_sed_conf_input|;t t 33759s&@top_builddir@&$ac_top_builddir_sub&;t t 33760s&@top_build_prefix@&$ac_top_build_prefix&;t t 33761s&@srcdir@&$ac_srcdir&;t t 33762s&@abs_srcdir@&$ac_abs_srcdir&;t t 33763s&@top_srcdir@&$ac_top_srcdir&;t t 33764s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 33765s&@builddir@&$ac_builddir&;t t 33766s&@abs_builddir@&$ac_abs_builddir&;t t 33767s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 33768s&@INSTALL@&$ac_INSTALL&;t t 33769$ac_datarootdir_hack 33770" 33771eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 33772if $ac_cs_awk_getline; then 33773 $AWK -f "$ac_tmp/subs.awk" 33774else 33775 $AWK -f "$ac_tmp/subs.awk" | $SHELL 33776fi \ 33777 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 33778 33779test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 33780 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 33781 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 33782 "$ac_tmp/out"`; test -z "$ac_out"; } && 33783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 33784which seems to be undefined. Please make sure it is defined" >&5 33785$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 33786which seems to be undefined. Please make sure it is defined" >&2;} 33787 33788 rm -f "$ac_tmp/stdin" 33789 case $ac_file in 33790 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 33791 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 33792 esac \ 33793 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 33794 ;; 33795 :H) 33796 # 33797 # CONFIG_HEADER 33798 # 33799 if test x"$ac_file" != x-; then 33800 { 33801 $as_echo "/* $configure_input */" \ 33802 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 33803 } >"$ac_tmp/config.h" \ 33804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 33805 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 33806 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 33807$as_echo "$as_me: $ac_file is unchanged" >&6;} 33808 else 33809 rm -f "$ac_file" 33810 mv "$ac_tmp/config.h" "$ac_file" \ 33811 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 33812 fi 33813 else 33814 $as_echo "/* $configure_input */" \ 33815 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 33816 || as_fn_error $? "could not create -" "$LINENO" 5 33817 fi 33818 ;; 33819 33820 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 33821$as_echo "$as_me: executing $ac_file commands" >&6;} 33822 ;; 33823 esac 33824 33825 33826 case $ac_file$ac_mode in 33827 "libtool":C) 33828 33829 # See if we are running on zsh, and set the options that allow our 33830 # commands through without removal of \ escapes. 33831 if test -n "${ZSH_VERSION+set}"; then 33832 setopt NO_GLOB_SUBST 33833 fi 33834 33835 cfgfile=${ofile}T 33836 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 33837 $RM "$cfgfile" 33838 33839 cat <<_LT_EOF >> "$cfgfile" 33840#! $SHELL 33841# Generated automatically by $as_me ($PACKAGE) $VERSION 33842# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 33843# NOTE: Changes made to this file will be lost: look at ltmain.sh. 33844 33845# Provide generalized library-building support services. 33846# Written by Gordon Matzigkeit, 1996 33847 33848# Copyright (C) 2014 Free Software Foundation, Inc. 33849# This is free software; see the source for copying conditions. There is NO 33850# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 33851 33852# GNU Libtool is free software; you can redistribute it and/or modify 33853# it under the terms of the GNU General Public License as published by 33854# the Free Software Foundation; either version 2 of of the License, or 33855# (at your option) any later version. 33856# 33857# As a special exception to the GNU General Public License, if you 33858# distribute this file as part of a program or library that is built 33859# using GNU Libtool, you may include this file under the same 33860# distribution terms that you use for the rest of that program. 33861# 33862# GNU Libtool is distributed in the hope that it will be useful, but 33863# WITHOUT ANY WARRANTY; without even the implied warranty of 33864# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 33865# GNU General Public License for more details. 33866# 33867# You should have received a copy of the GNU General Public License 33868# along with this program. If not, see <http://www.gnu.org/licenses/>. 33869 33870 33871# The names of the tagged configurations supported by this script. 33872available_tags='RC ' 33873 33874# Configured defaults for sys_lib_dlsearch_path munging. 33875: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 33876 33877# ### BEGIN LIBTOOL CONFIG 33878 33879# Which release of libtool.m4 was used? 33880macro_version=$macro_version 33881macro_revision=$macro_revision 33882 33883# Assembler program. 33884AS=$lt_AS 33885 33886# DLL creation program. 33887DLLTOOL=$lt_DLLTOOL 33888 33889# Object dumper program. 33890OBJDUMP=$lt_OBJDUMP 33891 33892# Whether or not to build shared libraries. 33893build_libtool_libs=$enable_shared 33894 33895# Whether or not to build static libraries. 33896build_old_libs=$enable_static 33897 33898# What type of objects to build. 33899pic_mode=$pic_mode 33900 33901# Whether or not to optimize for fast installation. 33902fast_install=$enable_fast_install 33903 33904# Shared archive member basename,for filename based shared library versioning on AIX. 33905shared_archive_member_spec=$shared_archive_member_spec 33906 33907# Shell to use when invoking shell scripts. 33908SHELL=$lt_SHELL 33909 33910# An echo program that protects backslashes. 33911ECHO=$lt_ECHO 33912 33913# The PATH separator for the build system. 33914PATH_SEPARATOR=$lt_PATH_SEPARATOR 33915 33916# The host system. 33917host_alias=$host_alias 33918host=$host 33919host_os=$host_os 33920 33921# The build system. 33922build_alias=$build_alias 33923build=$build 33924build_os=$build_os 33925 33926# A sed program that does not truncate output. 33927SED=$lt_SED 33928 33929# Sed that helps us avoid accidentally triggering echo(1) options like -n. 33930Xsed="\$SED -e 1s/^X//" 33931 33932# A grep program that handles long lines. 33933GREP=$lt_GREP 33934 33935# An ERE matcher. 33936EGREP=$lt_EGREP 33937 33938# A literal string matcher. 33939FGREP=$lt_FGREP 33940 33941# A BSD- or MS-compatible name lister. 33942NM=$lt_NM 33943 33944# Whether we need soft or hard links. 33945LN_S=$lt_LN_S 33946 33947# What is the maximum length of a command? 33948max_cmd_len=$max_cmd_len 33949 33950# Object file suffix (normally "o"). 33951objext=$ac_objext 33952 33953# Executable file suffix (normally ""). 33954exeext=$exeext 33955 33956# whether the shell understands "unset". 33957lt_unset=$lt_unset 33958 33959# turn spaces into newlines. 33960SP2NL=$lt_lt_SP2NL 33961 33962# turn newlines into spaces. 33963NL2SP=$lt_lt_NL2SP 33964 33965# convert \$build file names to \$host format. 33966to_host_file_cmd=$lt_cv_to_host_file_cmd 33967 33968# convert \$build files to toolchain format. 33969to_tool_file_cmd=$lt_cv_to_tool_file_cmd 33970 33971# Method to check whether dependent libraries are shared objects. 33972deplibs_check_method=$lt_deplibs_check_method 33973 33974# Command to use when deplibs_check_method = "file_magic". 33975file_magic_cmd=$lt_file_magic_cmd 33976 33977# How to find potential files when deplibs_check_method = "file_magic". 33978file_magic_glob=$lt_file_magic_glob 33979 33980# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 33981want_nocaseglob=$lt_want_nocaseglob 33982 33983# Command to associate shared and link libraries. 33984sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 33985 33986# The archiver. 33987AR=$lt_AR 33988 33989# Flags to create an archive. 33990AR_FLAGS=$lt_AR_FLAGS 33991 33992# How to feed a file listing to the archiver. 33993archiver_list_spec=$lt_archiver_list_spec 33994 33995# A symbol stripping program. 33996STRIP=$lt_STRIP 33997 33998# Commands used to install an old-style archive. 33999RANLIB=$lt_RANLIB 34000old_postinstall_cmds=$lt_old_postinstall_cmds 34001old_postuninstall_cmds=$lt_old_postuninstall_cmds 34002 34003# Whether to use a lock for old archive extraction. 34004lock_old_archive_extraction=$lock_old_archive_extraction 34005 34006# A C compiler. 34007LTCC=$lt_CC 34008 34009# LTCC compiler flags. 34010LTCFLAGS=$lt_CFLAGS 34011 34012# Take the output of nm and produce a listing of raw symbols and C names. 34013global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 34014 34015# Transform the output of nm in a proper C declaration. 34016global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 34017 34018# Transform the output of nm into a list of symbols to manually relocate. 34019global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 34020 34021# Transform the output of nm in a C name address pair. 34022global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 34023 34024# Transform the output of nm in a C name address pair when lib prefix is needed. 34025global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 34026 34027# The name lister interface. 34028nm_interface=$lt_lt_cv_nm_interface 34029 34030# Specify filename containing input files for \$NM. 34031nm_file_list_spec=$lt_nm_file_list_spec 34032 34033# The root where to search for dependent libraries,and where our libraries should be installed. 34034lt_sysroot=$lt_sysroot 34035 34036# Command to truncate a binary pipe. 34037lt_truncate_bin=$lt_lt_cv_truncate_bin 34038 34039# The name of the directory that contains temporary libtool files. 34040objdir=$objdir 34041 34042# Used to examine libraries when file_magic_cmd begins with "file". 34043MAGIC_CMD=$MAGIC_CMD 34044 34045# Must we lock files when doing compilation? 34046need_locks=$lt_need_locks 34047 34048# Manifest tool. 34049MANIFEST_TOOL=$lt_MANIFEST_TOOL 34050 34051# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 34052DSYMUTIL=$lt_DSYMUTIL 34053 34054# Tool to change global to local symbols on Mac OS X. 34055NMEDIT=$lt_NMEDIT 34056 34057# Tool to manipulate fat objects and archives on Mac OS X. 34058LIPO=$lt_LIPO 34059 34060# ldd/readelf like tool for Mach-O binaries on Mac OS X. 34061OTOOL=$lt_OTOOL 34062 34063# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 34064OTOOL64=$lt_OTOOL64 34065 34066# Old archive suffix (normally "a"). 34067libext=$libext 34068 34069# Shared library suffix (normally ".so"). 34070shrext_cmds=$lt_shrext_cmds 34071 34072# The commands to extract the exported symbol list from a shared archive. 34073extract_expsyms_cmds=$lt_extract_expsyms_cmds 34074 34075# Variables whose values should be saved in libtool wrapper scripts and 34076# restored at link time. 34077variables_saved_for_relink=$lt_variables_saved_for_relink 34078 34079# Do we need the "lib" prefix for modules? 34080need_lib_prefix=$need_lib_prefix 34081 34082# Do we need a version for libraries? 34083need_version=$need_version 34084 34085# Library versioning type. 34086version_type=$version_type 34087 34088# Shared library runtime path variable. 34089runpath_var=$runpath_var 34090 34091# Shared library path variable. 34092shlibpath_var=$shlibpath_var 34093 34094# Is shlibpath searched before the hard-coded library search path? 34095shlibpath_overrides_runpath=$shlibpath_overrides_runpath 34096 34097# Format of library name prefix. 34098libname_spec=$lt_libname_spec 34099 34100# List of archive names. First name is the real one, the rest are links. 34101# The last name is the one that the linker finds with -lNAME 34102library_names_spec=$lt_library_names_spec 34103 34104# The coded name of the library, if different from the real name. 34105soname_spec=$lt_soname_spec 34106 34107# Permission mode override for installation of shared libraries. 34108install_override_mode=$lt_install_override_mode 34109 34110# Command to use after installation of a shared archive. 34111postinstall_cmds=$lt_postinstall_cmds 34112 34113# Command to use after uninstallation of a shared archive. 34114postuninstall_cmds=$lt_postuninstall_cmds 34115 34116# Commands used to finish a libtool library installation in a directory. 34117finish_cmds=$lt_finish_cmds 34118 34119# As "finish_cmds", except a single script fragment to be evaled but 34120# not shown. 34121finish_eval=$lt_finish_eval 34122 34123# Whether we should hardcode library paths into libraries. 34124hardcode_into_libs=$hardcode_into_libs 34125 34126# Compile-time system search path for libraries. 34127sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 34128 34129# Detected run-time system search path for libraries. 34130sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 34131 34132# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 34133configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 34134 34135# Whether dlopen is supported. 34136dlopen_support=$enable_dlopen 34137 34138# Whether dlopen of programs is supported. 34139dlopen_self=$enable_dlopen_self 34140 34141# Whether dlopen of statically linked programs is supported. 34142dlopen_self_static=$enable_dlopen_self_static 34143 34144# Commands to strip libraries. 34145old_striplib=$lt_old_striplib 34146striplib=$lt_striplib 34147 34148 34149# The linker used to build libraries. 34150LD=$lt_LD 34151 34152# How to create reloadable object files. 34153reload_flag=$lt_reload_flag 34154reload_cmds=$lt_reload_cmds 34155 34156# Commands used to build an old-style archive. 34157old_archive_cmds=$lt_old_archive_cmds 34158 34159# A language specific compiler. 34160CC=$lt_compiler 34161 34162# Is the compiler the GNU compiler? 34163with_gcc=$GCC 34164 34165# Compiler flag to turn off builtin functions. 34166no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 34167 34168# Additional compiler flags for building library objects. 34169pic_flag=$lt_lt_prog_compiler_pic 34170 34171# How to pass a linker flag through the compiler. 34172wl=$lt_lt_prog_compiler_wl 34173 34174# Compiler flag to prevent dynamic linking. 34175link_static_flag=$lt_lt_prog_compiler_static 34176 34177# Does compiler simultaneously support -c and -o options? 34178compiler_c_o=$lt_lt_cv_prog_compiler_c_o 34179 34180# Whether or not to add -lc for building shared libraries. 34181build_libtool_need_lc=$archive_cmds_need_lc 34182 34183# Whether or not to disallow shared libs when runtime libs are static. 34184allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 34185 34186# Compiler flag to allow reflexive dlopens. 34187export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 34188 34189# Compiler flag to generate shared objects directly from archives. 34190whole_archive_flag_spec=$lt_whole_archive_flag_spec 34191 34192# Whether the compiler copes with passing no objects directly. 34193compiler_needs_object=$lt_compiler_needs_object 34194 34195# Create an old-style archive from a shared archive. 34196old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 34197 34198# Create a temporary old-style archive to link instead of a shared archive. 34199old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 34200 34201# Commands used to build a shared archive. 34202archive_cmds=$lt_archive_cmds 34203archive_expsym_cmds=$lt_archive_expsym_cmds 34204 34205# Commands used to build a loadable module if different from building 34206# a shared archive. 34207module_cmds=$lt_module_cmds 34208module_expsym_cmds=$lt_module_expsym_cmds 34209 34210# Whether we are building with GNU ld or not. 34211with_gnu_ld=$lt_with_gnu_ld 34212 34213# Flag that allows shared libraries with undefined symbols to be built. 34214allow_undefined_flag=$lt_allow_undefined_flag 34215 34216# Flag that enforces no undefined symbols. 34217no_undefined_flag=$lt_no_undefined_flag 34218 34219# Flag to hardcode \$libdir into a binary during linking. 34220# This must work even if \$libdir does not exist 34221hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 34222 34223# Whether we need a single "-rpath" flag with a separated argument. 34224hardcode_libdir_separator=$lt_hardcode_libdir_separator 34225 34226# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 34227# DIR into the resulting binary. 34228hardcode_direct=$hardcode_direct 34229 34230# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 34231# DIR into the resulting binary and the resulting library dependency is 34232# "absolute",i.e impossible to change by setting \$shlibpath_var if the 34233# library is relocated. 34234hardcode_direct_absolute=$hardcode_direct_absolute 34235 34236# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 34237# into the resulting binary. 34238hardcode_minus_L=$hardcode_minus_L 34239 34240# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 34241# into the resulting binary. 34242hardcode_shlibpath_var=$hardcode_shlibpath_var 34243 34244# Set to "yes" if building a shared library automatically hardcodes DIR 34245# into the library and all subsequent libraries and executables linked 34246# against it. 34247hardcode_automatic=$hardcode_automatic 34248 34249# Set to yes if linker adds runtime paths of dependent libraries 34250# to runtime path list. 34251inherit_rpath=$inherit_rpath 34252 34253# Whether libtool must link a program against all its dependency libraries. 34254link_all_deplibs=$link_all_deplibs 34255 34256# Set to "yes" if exported symbols are required. 34257always_export_symbols=$always_export_symbols 34258 34259# The commands to list exported symbols. 34260export_symbols_cmds=$lt_export_symbols_cmds 34261 34262# Symbols that should not be listed in the preloaded symbols. 34263exclude_expsyms=$lt_exclude_expsyms 34264 34265# Symbols that must always be exported. 34266include_expsyms=$lt_include_expsyms 34267 34268# Commands necessary for linking programs (against libraries) with templates. 34269prelink_cmds=$lt_prelink_cmds 34270 34271# Commands necessary for finishing linking programs. 34272postlink_cmds=$lt_postlink_cmds 34273 34274# Specify filename containing input files. 34275file_list_spec=$lt_file_list_spec 34276 34277# How to hardcode a shared library path into an executable. 34278hardcode_action=$hardcode_action 34279 34280# ### END LIBTOOL CONFIG 34281 34282_LT_EOF 34283 34284 cat <<'_LT_EOF' >> "$cfgfile" 34285 34286# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 34287 34288# func_munge_path_list VARIABLE PATH 34289# ----------------------------------- 34290# VARIABLE is name of variable containing _space_ separated list of 34291# directories to be munged by the contents of PATH, which is string 34292# having a format: 34293# "DIR[:DIR]:" 34294# string "DIR[ DIR]" will be prepended to VARIABLE 34295# ":DIR[:DIR]" 34296# string "DIR[ DIR]" will be appended to VARIABLE 34297# "DIRP[:DIRP]::[DIRA:]DIRA" 34298# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 34299# "DIRA[ DIRA]" will be appended to VARIABLE 34300# "DIR[:DIR]" 34301# VARIABLE will be replaced by "DIR[ DIR]" 34302func_munge_path_list () 34303{ 34304 case x$2 in 34305 x) 34306 ;; 34307 *:) 34308 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 34309 ;; 34310 x:*) 34311 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 34312 ;; 34313 *::*) 34314 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 34315 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 34316 ;; 34317 *) 34318 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 34319 ;; 34320 esac 34321} 34322 34323 34324# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 34325func_cc_basename () 34326{ 34327 for cc_temp in $*""; do 34328 case $cc_temp in 34329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 34330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 34331 \-*) ;; 34332 *) break;; 34333 esac 34334 done 34335 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 34336} 34337 34338 34339# ### END FUNCTIONS SHARED WITH CONFIGURE 34340 34341_LT_EOF 34342 34343 case $host_os in 34344 aix3*) 34345 cat <<\_LT_EOF >> "$cfgfile" 34346# AIX sometimes has problems with the GCC collect2 program. For some 34347# reason, if we set the COLLECT_NAMES environment variable, the problems 34348# vanish in a puff of smoke. 34349if test set != "${COLLECT_NAMES+set}"; then 34350 COLLECT_NAMES= 34351 export COLLECT_NAMES 34352fi 34353_LT_EOF 34354 ;; 34355 esac 34356 34357 34358ltmain=$ac_aux_dir/ltmain.sh 34359 34360 34361 # We use sed instead of cat because bash on DJGPP gets confused if 34362 # if finds mixed CR/LF and LF-only lines. Since sed operates in 34363 # text mode, it properly converts lines to CR/LF. This bash problem 34364 # is reportedly fixed, but why not run on old versions too? 34365 sed '$q' "$ltmain" >> "$cfgfile" \ 34366 || (rm -f "$cfgfile"; exit 1) 34367 34368 mv -f "$cfgfile" "$ofile" || 34369 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 34370 chmod +x "$ofile" 34371 34372 34373 cat <<_LT_EOF >> "$ofile" 34374 34375# ### BEGIN LIBTOOL TAG CONFIG: RC 34376 34377# The linker used to build libraries. 34378LD=$lt_LD_RC 34379 34380# How to create reloadable object files. 34381reload_flag=$lt_reload_flag_RC 34382reload_cmds=$lt_reload_cmds_RC 34383 34384# Commands used to build an old-style archive. 34385old_archive_cmds=$lt_old_archive_cmds_RC 34386 34387# A language specific compiler. 34388CC=$lt_compiler_RC 34389 34390# Is the compiler the GNU compiler? 34391with_gcc=$GCC_RC 34392 34393# Compiler flag to turn off builtin functions. 34394no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 34395 34396# Additional compiler flags for building library objects. 34397pic_flag=$lt_lt_prog_compiler_pic_RC 34398 34399# How to pass a linker flag through the compiler. 34400wl=$lt_lt_prog_compiler_wl_RC 34401 34402# Compiler flag to prevent dynamic linking. 34403link_static_flag=$lt_lt_prog_compiler_static_RC 34404 34405# Does compiler simultaneously support -c and -o options? 34406compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 34407 34408# Whether or not to add -lc for building shared libraries. 34409build_libtool_need_lc=$archive_cmds_need_lc_RC 34410 34411# Whether or not to disallow shared libs when runtime libs are static. 34412allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 34413 34414# Compiler flag to allow reflexive dlopens. 34415export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 34416 34417# Compiler flag to generate shared objects directly from archives. 34418whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 34419 34420# Whether the compiler copes with passing no objects directly. 34421compiler_needs_object=$lt_compiler_needs_object_RC 34422 34423# Create an old-style archive from a shared archive. 34424old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 34425 34426# Create a temporary old-style archive to link instead of a shared archive. 34427old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 34428 34429# Commands used to build a shared archive. 34430archive_cmds=$lt_archive_cmds_RC 34431archive_expsym_cmds=$lt_archive_expsym_cmds_RC 34432 34433# Commands used to build a loadable module if different from building 34434# a shared archive. 34435module_cmds=$lt_module_cmds_RC 34436module_expsym_cmds=$lt_module_expsym_cmds_RC 34437 34438# Whether we are building with GNU ld or not. 34439with_gnu_ld=$lt_with_gnu_ld_RC 34440 34441# Flag that allows shared libraries with undefined symbols to be built. 34442allow_undefined_flag=$lt_allow_undefined_flag_RC 34443 34444# Flag that enforces no undefined symbols. 34445no_undefined_flag=$lt_no_undefined_flag_RC 34446 34447# Flag to hardcode \$libdir into a binary during linking. 34448# This must work even if \$libdir does not exist 34449hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 34450 34451# Whether we need a single "-rpath" flag with a separated argument. 34452hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 34453 34454# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 34455# DIR into the resulting binary. 34456hardcode_direct=$hardcode_direct_RC 34457 34458# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 34459# DIR into the resulting binary and the resulting library dependency is 34460# "absolute",i.e impossible to change by setting \$shlibpath_var if the 34461# library is relocated. 34462hardcode_direct_absolute=$hardcode_direct_absolute_RC 34463 34464# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 34465# into the resulting binary. 34466hardcode_minus_L=$hardcode_minus_L_RC 34467 34468# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 34469# into the resulting binary. 34470hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 34471 34472# Set to "yes" if building a shared library automatically hardcodes DIR 34473# into the library and all subsequent libraries and executables linked 34474# against it. 34475hardcode_automatic=$hardcode_automatic_RC 34476 34477# Set to yes if linker adds runtime paths of dependent libraries 34478# to runtime path list. 34479inherit_rpath=$inherit_rpath_RC 34480 34481# Whether libtool must link a program against all its dependency libraries. 34482link_all_deplibs=$link_all_deplibs_RC 34483 34484# Set to "yes" if exported symbols are required. 34485always_export_symbols=$always_export_symbols_RC 34486 34487# The commands to list exported symbols. 34488export_symbols_cmds=$lt_export_symbols_cmds_RC 34489 34490# Symbols that should not be listed in the preloaded symbols. 34491exclude_expsyms=$lt_exclude_expsyms_RC 34492 34493# Symbols that must always be exported. 34494include_expsyms=$lt_include_expsyms_RC 34495 34496# Commands necessary for linking programs (against libraries) with templates. 34497prelink_cmds=$lt_prelink_cmds_RC 34498 34499# Commands necessary for finishing linking programs. 34500postlink_cmds=$lt_postlink_cmds_RC 34501 34502# Specify filename containing input files. 34503file_list_spec=$lt_file_list_spec_RC 34504 34505# How to hardcode a shared library path into an executable. 34506hardcode_action=$hardcode_action_RC 34507 34508# ### END LIBTOOL TAG CONFIG: RC 34509_LT_EOF 34510 34511 ;; 34512 "net-snmp-config":F) chmod +x net-snmp-config ;; 34513 "net-snmp-create-v3-user":F) chmod +x net-snmp-create-v3-user ;; 34514 "default":C) echo timestamp > stamp-h ;; 34515 34516 esac 34517done # for ac_tag 34518 34519 34520as_fn_exit 0 34521_ACEOF 34522ac_clean_files=$ac_clean_files_save 34523 34524test $ac_write_fail = 0 || 34525 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 34526 34527 34528# configure is writing to config.log, and then calls config.status. 34529# config.status does its own redirection, appending to config.log. 34530# Unfortunately, on DOS this fails, as config.log is still kept open 34531# by configure, so config.status won't be able to write to it; its 34532# output is simply discarded. So we exec the FD to /dev/null, 34533# effectively closing config.log, so it can be properly (re)opened and 34534# appended to by config.status. When coming back to configure, we 34535# need to make the FD available again. 34536if test "$no_create" != yes; then 34537 ac_cs_success=: 34538 ac_config_status_args= 34539 test "$silent" = yes && 34540 ac_config_status_args="$ac_config_status_args --quiet" 34541 exec 5>/dev/null 34542 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 34543 exec 5>>config.log 34544 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 34545 # would make configure fail if this is the last instruction. 34546 $ac_cs_success || as_fn_exit 1 34547fi 34548if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 34549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 34550$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 34551fi 34552 34553 34554 34555 echo "" 34556 echo "---------------------------------------------------------" 34557 echo " Net-SNMP configuration summary:" 34558 echo "---------------------------------------------------------" 34559 echo "" 34560 cat configure-summary 34561 echo "" 34562 echo "---------------------------------------------------------" 34563 echo "" 34564 34565# Local Variables: 34566# mode: Autoconf 34567# comment-start: "#" 34568# End: 34569