Annotation of embedaddon/quagga/configure, revision 1.1.1.4

1.1       misho       1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.4 ! misho       3: # Generated by GNU Autoconf 2.69 for Quagga 0.99.22.
1.1       misho       4: #
                      5: # Report bugs to <https://bugzilla.quagga.net>.
                      6: #
                      7: #
1.1.1.3   misho       8: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.1       misho       9: #
                     10: #
                     11: # This configure script is free software; the Free Software Foundation
                     12: # gives unlimited permission to copy, distribute and modify it.
                     13: ## -------------------- ##
                     14: ## M4sh Initialization. ##
                     15: ## -------------------- ##
                     16: 
                     17: # Be more Bourne compatible
                     18: DUALCASE=1; export DUALCASE # for MKS sh
                     19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
                     20:   emulate sh
                     21:   NULLCMD=:
                     22:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
                     23:   # is contrary to our usage.  Disable this feature.
                     24:   alias -g '${1+"$@"}'='"$@"'
                     25:   setopt NO_GLOB_SUBST
                     26: else
                     27:   case `(set -o) 2>/dev/null` in #(
                     28:   *posix*) :
                     29:     set -o posix ;; #(
                     30:   *) :
                     31:      ;;
                     32: esac
                     33: fi
                     34: 
                     35: 
                     36: as_nl='
                     37: '
                     38: export as_nl
                     39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                     40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                     41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                     42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                     43: # Prefer a ksh shell builtin over an external printf program on Solaris,
                     44: # but without wasting forks for bash or zsh.
                     45: if test -z "$BASH_VERSION$ZSH_VERSION" \
                     46:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                     47:   as_echo='print -r --'
                     48:   as_echo_n='print -rn --'
                     49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                     50:   as_echo='printf %s\n'
                     51:   as_echo_n='printf %s'
                     52: else
                     53:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                     54:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                     55:     as_echo_n='/usr/ucb/echo -n'
                     56:   else
                     57:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                     58:     as_echo_n_body='eval
                     59:       arg=$1;
                     60:       case $arg in #(
                     61:       *"$as_nl"*)
                     62:        expr "X$arg" : "X\\(.*\\)$as_nl";
                     63:        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                     64:       esac;
                     65:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                     66:     '
                     67:     export as_echo_n_body
                     68:     as_echo_n='sh -c $as_echo_n_body as_echo'
                     69:   fi
                     70:   export as_echo_body
                     71:   as_echo='sh -c $as_echo_body as_echo'
                     72: fi
                     73: 
                     74: # The user is always right.
                     75: if test "${PATH_SEPARATOR+set}" != set; then
                     76:   PATH_SEPARATOR=:
                     77:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                     78:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                     79:       PATH_SEPARATOR=';'
                     80:   }
                     81: fi
                     82: 
                     83: 
                     84: # IFS
                     85: # We need space, tab and new line, in precisely that order.  Quoting is
                     86: # there to prevent editors from complaining about space-tab.
                     87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     88: # splitting by setting IFS to empty value.)
                     89: IFS=" ""       $as_nl"
                     90: 
                     91: # Find who we are.  Look in the path if we contain no directory separator.
                     92: as_myself=
                     93: case $0 in #((
                     94:   *[\\/]* ) as_myself=$0 ;;
                     95:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     96: for as_dir in $PATH
                     97: do
                     98:   IFS=$as_save_IFS
                     99:   test -z "$as_dir" && as_dir=.
                    100:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    101:   done
                    102: IFS=$as_save_IFS
                    103: 
                    104:      ;;
                    105: esac
                    106: # We did not find ourselves, most probably we were run as `sh COMMAND'
                    107: # in which case we are not to be found in the path.
                    108: if test "x$as_myself" = x; then
                    109:   as_myself=$0
                    110: fi
                    111: if test ! -f "$as_myself"; then
                    112:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    113:   exit 1
                    114: fi
                    115: 
                    116: # Unset variables that we do not need and which cause bugs (e.g. in
                    117: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                    118: # suppresses any "Segmentation fault" message there.  '((' could
                    119: # trigger a bug in pdksh 5.2.14.
                    120: for as_var in BASH_ENV ENV MAIL MAILPATH
                    121: do eval test x\${$as_var+set} = xset \
                    122:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
                    123: done
                    124: PS1='$ '
                    125: PS2='> '
                    126: PS4='+ '
                    127: 
                    128: # NLS nuisances.
                    129: LC_ALL=C
                    130: export LC_ALL
                    131: LANGUAGE=C
                    132: export LANGUAGE
                    133: 
                    134: # CDPATH.
                    135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                    136: 
1.1.1.3   misho     137: # Use a proper internal environment variable to ensure we don't fall
                    138:   # into an infinite loop, continuously re-executing ourselves.
                    139:   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
                    140:     _as_can_reexec=no; export _as_can_reexec;
                    141:     # We cannot yet assume a decent shell, so we have to provide a
                    142: # neutralization value for shells without unset; and this also
                    143: # works around shells that cannot unset nonexistent variables.
                    144: # Preserve -v and -x to the replacement shell.
                    145: BASH_ENV=/dev/null
                    146: ENV=/dev/null
                    147: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
                    148: case $- in # ((((
                    149:   *v*x* | *x*v* ) as_opts=-vx ;;
                    150:   *v* ) as_opts=-v ;;
                    151:   *x* ) as_opts=-x ;;
                    152:   * ) as_opts= ;;
                    153: esac
                    154: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
                    155: # Admittedly, this is quite paranoid, since all the known shells bail
                    156: # out after a failed `exec'.
                    157: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
                    158: as_fn_exit 255
                    159:   fi
                    160:   # We don't want this to propagate to other subprocesses.
                    161:           { _as_can_reexec=; unset _as_can_reexec;}
1.1       misho     162: if test "x$CONFIG_SHELL" = x; then
                    163:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
                    164:   emulate sh
                    165:   NULLCMD=:
                    166:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
                    167:   # is contrary to our usage.  Disable this feature.
                    168:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
                    169:   setopt NO_GLOB_SUBST
                    170: else
                    171:   case \`(set -o) 2>/dev/null\` in #(
                    172:   *posix*) :
                    173:     set -o posix ;; #(
                    174:   *) :
                    175:      ;;
                    176: esac
                    177: fi
                    178: "
                    179:   as_required="as_fn_return () { (exit \$1); }
                    180: as_fn_success () { as_fn_return 0; }
                    181: as_fn_failure () { as_fn_return 1; }
                    182: as_fn_ret_success () { return 0; }
                    183: as_fn_ret_failure () { return 1; }
                    184: 
                    185: exitcode=0
                    186: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    187: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    188: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    189: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    190: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    191: 
                    192: else
                    193:   exitcode=1; echo positional parameters were not saved.
                    194: fi
1.1.1.3   misho     195: test x\$exitcode = x0 || exit 1
                    196: test -x / || exit 1"
1.1       misho     197:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
                    198:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
                    199:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
                    200:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
                    201: test \$(( 1 + 1 )) = 2 || exit 1
                    202: 
                    203:   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
                    204:     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                    205:     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
                    206:     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
                    207:     PATH=/empty FPATH=/empty; export PATH FPATH
                    208:     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
                    209:       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
                    210:   if (eval "$as_required") 2>/dev/null; then :
                    211:   as_have_required=yes
                    212: else
                    213:   as_have_required=no
                    214: fi
                    215:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
                    216: 
                    217: else
                    218:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    219: as_found=false
                    220: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    221: do
                    222:   IFS=$as_save_IFS
                    223:   test -z "$as_dir" && as_dir=.
                    224:   as_found=:
                    225:   case $as_dir in #(
                    226:         /*)
                    227:           for as_base in sh bash ksh sh5; do
                    228:             # Try only shells that exist, to save several forks.
                    229:             as_shell=$as_dir/$as_base
                    230:             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    231:                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    232:   CONFIG_SHELL=$as_shell as_have_required=yes
                    233:                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    234:   break 2
                    235: fi
                    236: fi
                    237:           done;;
                    238:        esac
                    239:   as_found=false
                    240: done
                    241: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
                    242:              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
                    243:   CONFIG_SHELL=$SHELL as_have_required=yes
                    244: fi; }
                    245: IFS=$as_save_IFS
                    246: 
                    247: 
                    248:       if test "x$CONFIG_SHELL" != x; then :
1.1.1.3   misho     249:   export CONFIG_SHELL
                    250:              # We cannot yet assume a decent shell, so we have to provide a
                    251: # neutralization value for shells without unset; and this also
                    252: # works around shells that cannot unset nonexistent variables.
                    253: # Preserve -v and -x to the replacement shell.
                    254: BASH_ENV=/dev/null
                    255: ENV=/dev/null
                    256: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
                    257: case $- in # ((((
                    258:   *v*x* | *x*v* ) as_opts=-vx ;;
                    259:   *v* ) as_opts=-v ;;
                    260:   *x* ) as_opts=-x ;;
                    261:   * ) as_opts= ;;
                    262: esac
                    263: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
                    264: # Admittedly, this is quite paranoid, since all the known shells bail
                    265: # out after a failed `exec'.
                    266: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
                    267: exit 255
1.1       misho     268: fi
                    269: 
                    270:     if test x$as_have_required = xno; then :
                    271:   $as_echo "$0: This script requires a shell more modern than all"
                    272:   $as_echo "$0: the shells that I found on your system."
                    273:   if test x${ZSH_VERSION+set} = xset ; then
                    274:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
                    275:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
                    276:   else
                    277:     $as_echo "$0: Please tell bug-autoconf@gnu.org and
                    278: $0: https://bugzilla.quagga.net about your system,
                    279: $0: including any error possibly output before this
                    280: $0: message. Then install a modern shell, or manually run
                    281: $0: the script under such a shell if you do have one."
                    282:   fi
                    283:   exit 1
                    284: fi
                    285: fi
                    286: fi
                    287: SHELL=${CONFIG_SHELL-/bin/sh}
                    288: export SHELL
                    289: # Unset more variables known to interfere with behavior of common tools.
                    290: CLICOLOR_FORCE= GREP_OPTIONS=
                    291: unset CLICOLOR_FORCE GREP_OPTIONS
                    292: 
                    293: ## --------------------- ##
                    294: ## M4sh Shell Functions. ##
                    295: ## --------------------- ##
                    296: # as_fn_unset VAR
                    297: # ---------------
                    298: # Portably unset VAR.
                    299: as_fn_unset ()
                    300: {
                    301:   { eval $1=; unset $1;}
                    302: }
                    303: as_unset=as_fn_unset
                    304: 
                    305: # as_fn_set_status STATUS
                    306: # -----------------------
                    307: # Set $? to STATUS, without forking.
                    308: as_fn_set_status ()
                    309: {
                    310:   return $1
                    311: } # as_fn_set_status
                    312: 
                    313: # as_fn_exit STATUS
                    314: # -----------------
                    315: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                    316: as_fn_exit ()
                    317: {
                    318:   set +e
                    319:   as_fn_set_status $1
                    320:   exit $1
                    321: } # as_fn_exit
                    322: 
                    323: # as_fn_mkdir_p
                    324: # -------------
                    325: # Create "$as_dir" as a directory, including parents if necessary.
                    326: as_fn_mkdir_p ()
                    327: {
                    328: 
                    329:   case $as_dir in #(
                    330:   -*) as_dir=./$as_dir;;
                    331:   esac
                    332:   test -d "$as_dir" || eval $as_mkdir_p || {
                    333:     as_dirs=
                    334:     while :; do
                    335:       case $as_dir in #(
                    336:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                    337:       *) as_qdir=$as_dir;;
                    338:       esac
                    339:       as_dirs="'$as_qdir' $as_dirs"
                    340:       as_dir=`$as_dirname -- "$as_dir" ||
                    341: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    342:         X"$as_dir" : 'X\(//\)[^/]' \| \
                    343:         X"$as_dir" : 'X\(//\)$' \| \
                    344:         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                    345: $as_echo X"$as_dir" |
                    346:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                    347:            s//\1/
                    348:            q
                    349:          }
                    350:          /^X\(\/\/\)[^/].*/{
                    351:            s//\1/
                    352:            q
                    353:          }
                    354:          /^X\(\/\/\)$/{
                    355:            s//\1/
                    356:            q
                    357:          }
                    358:          /^X\(\/\).*/{
                    359:            s//\1/
                    360:            q
                    361:          }
                    362:          s/.*/./; q'`
                    363:       test -d "$as_dir" && break
                    364:     done
                    365:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                    366:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
                    367: 
                    368: 
                    369: } # as_fn_mkdir_p
1.1.1.3   misho     370: 
                    371: # as_fn_executable_p FILE
                    372: # -----------------------
                    373: # Test if FILE is an executable regular file.
                    374: as_fn_executable_p ()
                    375: {
                    376:   test -f "$1" && test -x "$1"
                    377: } # as_fn_executable_p
1.1       misho     378: # as_fn_append VAR VALUE
                    379: # ----------------------
                    380: # Append the text in VALUE to the end of the definition contained in VAR. Take
                    381: # advantage of any shell optimizations that allow amortized linear growth over
                    382: # repeated appends, instead of the typical quadratic growth present in naive
                    383: # implementations.
                    384: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                    385:   eval 'as_fn_append ()
                    386:   {
                    387:     eval $1+=\$2
                    388:   }'
                    389: else
                    390:   as_fn_append ()
                    391:   {
                    392:     eval $1=\$$1\$2
                    393:   }
                    394: fi # as_fn_append
                    395: 
                    396: # as_fn_arith ARG...
                    397: # ------------------
                    398: # Perform arithmetic evaluation on the ARGs, and store the result in the
                    399: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                    400: # must be portable across $(()) and expr.
                    401: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    402:   eval 'as_fn_arith ()
                    403:   {
                    404:     as_val=$(( $* ))
                    405:   }'
                    406: else
                    407:   as_fn_arith ()
                    408:   {
                    409:     as_val=`expr "$@" || test $? -eq 1`
                    410:   }
                    411: fi # as_fn_arith
                    412: 
                    413: 
                    414: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                    415: # ----------------------------------------
                    416: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                    417: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
                    418: # script with STATUS, using 1 if that was 0.
                    419: as_fn_error ()
                    420: {
                    421:   as_status=$1; test $as_status -eq 0 && as_status=1
                    422:   if test "$4"; then
                    423:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                    424:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
                    425:   fi
                    426:   $as_echo "$as_me: error: $2" >&2
                    427:   as_fn_exit $as_status
                    428: } # as_fn_error
                    429: 
                    430: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    431:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    432:   as_expr=expr
                    433: else
                    434:   as_expr=false
                    435: fi
                    436: 
                    437: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    438:   as_basename=basename
                    439: else
                    440:   as_basename=false
                    441: fi
                    442: 
                    443: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    444:   as_dirname=dirname
                    445: else
                    446:   as_dirname=false
                    447: fi
                    448: 
                    449: as_me=`$as_basename -- "$0" ||
                    450: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    451:         X"$0" : 'X\(//\)$' \| \
                    452:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                    453: $as_echo X/"$0" |
                    454:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    455:            s//\1/
                    456:            q
                    457:          }
                    458:          /^X\/\(\/\/\)$/{
                    459:            s//\1/
                    460:            q
                    461:          }
                    462:          /^X\/\(\/\).*/{
                    463:            s//\1/
                    464:            q
                    465:          }
                    466:          s/.*/./; q'`
                    467: 
                    468: # Avoid depending upon Character Ranges.
                    469: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    470: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    471: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    472: as_cr_digits='0123456789'
                    473: as_cr_alnum=$as_cr_Letters$as_cr_digits
                    474: 
                    475: 
                    476:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
                    477:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
                    478:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
                    479:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
                    480:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
                    481:   sed -n '
                    482:     p
                    483:     /[$]LINENO/=
                    484:   ' <$as_myself |
                    485:     sed '
                    486:       s/[$]LINENO.*/&-/
                    487:       t lineno
                    488:       b
                    489:       :lineno
                    490:       N
                    491:       :loop
                    492:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                    493:       t loop
                    494:       s/-\n.*//
                    495:     ' >$as_me.lineno &&
                    496:   chmod +x "$as_me.lineno" ||
                    497:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
                    498: 
1.1.1.3   misho     499:   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
                    500:   # already done that, so ensure we don't try to do so again and fall
                    501:   # in an infinite loop.  This has already happened in practice.
                    502:   _as_can_reexec=no; export _as_can_reexec
1.1       misho     503:   # Don't try to exec as it changes $[0], causing all sort of problems
                    504:   # (the dirname of $[0] is not the place where we might find the
                    505:   # original and so on.  Autoconf is especially sensitive to this).
                    506:   . "./$as_me.lineno"
                    507:   # Exit status is that of the last command.
                    508:   exit
                    509: }
                    510: 
                    511: ECHO_C= ECHO_N= ECHO_T=
                    512: case `echo -n x` in #(((((
                    513: -n*)
                    514:   case `echo 'xy\c'` in
                    515:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                    516:   xy)  ECHO_C='\c';;
                    517:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                    518:        ECHO_T='        ';;
                    519:   esac;;
                    520: *)
                    521:   ECHO_N='-n';;
                    522: esac
                    523: 
                    524: rm -f conf$$ conf$$.exe conf$$.file
                    525: if test -d conf$$.dir; then
                    526:   rm -f conf$$.dir/conf$$.file
                    527: else
                    528:   rm -f conf$$.dir
                    529:   mkdir conf$$.dir 2>/dev/null
                    530: fi
                    531: if (echo >conf$$.file) 2>/dev/null; then
                    532:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                    533:     as_ln_s='ln -s'
                    534:     # ... but there are two gotchas:
                    535:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    536:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.3   misho     537:     # In both cases, we have to default to `cp -pR'.
1.1       misho     538:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.3   misho     539:       as_ln_s='cp -pR'
1.1       misho     540:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    541:     as_ln_s=ln
                    542:   else
1.1.1.3   misho     543:     as_ln_s='cp -pR'
1.1       misho     544:   fi
                    545: else
1.1.1.3   misho     546:   as_ln_s='cp -pR'
1.1       misho     547: fi
                    548: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    549: rmdir conf$$.dir 2>/dev/null
                    550: 
                    551: if mkdir -p . 2>/dev/null; then
                    552:   as_mkdir_p='mkdir -p "$as_dir"'
                    553: else
                    554:   test -d ./-p && rmdir ./-p
                    555:   as_mkdir_p=false
                    556: fi
                    557: 
1.1.1.3   misho     558: as_test_x='test -x'
                    559: as_executable_p=as_fn_executable_p
1.1       misho     560: 
                    561: # Sed expression to map a string onto a valid CPP name.
                    562: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                    563: 
                    564: # Sed expression to map a string onto a valid variable name.
                    565: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    566: 
                    567: SHELL=${CONFIG_SHELL-/bin/sh}
                    568: 
                    569: 
                    570: test -n "$DJDIR" || exec 7<&0 </dev/null
                    571: exec 6>&1
                    572: 
                    573: # Name of the host.
                    574: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
                    575: # so uname gets run too.
                    576: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    577: 
                    578: #
                    579: # Initializations.
                    580: #
                    581: ac_default_prefix=/usr/local
                    582: ac_clean_files=
                    583: ac_config_libobj_dir=.
                    584: LIBOBJS=
                    585: cross_compiling=no
                    586: subdirs=
                    587: MFLAGS=
                    588: MAKEFLAGS=
                    589: 
                    590: # Identity of this package.
                    591: PACKAGE_NAME='Quagga'
                    592: PACKAGE_TARNAME='quagga'
1.1.1.4 ! misho     593: PACKAGE_VERSION='0.99.22'
        !           594: PACKAGE_STRING='Quagga 0.99.22'
1.1       misho     595: PACKAGE_BUGREPORT='https://bugzilla.quagga.net'
                    596: PACKAGE_URL=''
                    597: 
                    598: ac_unique_file="lib/zebra.h"
                    599: # Factoring default headers for most tests.
                    600: ac_includes_default="\
                    601: #include <stdio.h>
                    602: #ifdef HAVE_SYS_TYPES_H
                    603: # include <sys/types.h>
                    604: #endif
                    605: #ifdef HAVE_SYS_STAT_H
                    606: # include <sys/stat.h>
                    607: #endif
                    608: #ifdef STDC_HEADERS
                    609: # include <stdlib.h>
                    610: # include <stddef.h>
                    611: #else
                    612: # ifdef HAVE_STDLIB_H
                    613: #  include <stdlib.h>
                    614: # endif
                    615: #endif
                    616: #ifdef HAVE_STRING_H
                    617: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
                    618: #  include <memory.h>
                    619: # endif
                    620: # include <string.h>
                    621: #endif
                    622: #ifdef HAVE_STRINGS_H
                    623: # include <strings.h>
                    624: #endif
                    625: #ifdef HAVE_INTTYPES_H
                    626: # include <inttypes.h>
                    627: #endif
                    628: #ifdef HAVE_STDINT_H
                    629: # include <stdint.h>
                    630: #endif
                    631: #ifdef HAVE_UNISTD_H
                    632: # include <unistd.h>
                    633: #endif"
                    634: 
                    635: ac_header_list=
                    636: ac_func_list=
                    637: ac_subst_vars='am__EXEEXT_FALSE
                    638: am__EXEEXT_TRUE
                    639: LTLIBOBJS
                    640: quagga_statedir
                    641: PILDFLAGS
                    642: PICFLAGS
                    643: CONFDATE
1.1.1.4 ! misho     644: WEAK_ALIAS_CROSSFILE
        !           645: WEAK_ALIAS
1.1       misho     646: LIBCAP
1.1.1.4 ! misho     647: NETSNMP_CONFIG
1.1       misho     648: LIB_REGEX
                    649: HAVE_LIBPCREPOSIX
                    650: OSPFAPI
                    651: OSPFCLIENT
                    652: CURSES
                    653: INCLUDES
                    654: VTYSH
                    655: SOLARIS
                    656: ISISD
                    657: WATCHQUAGGA
1.1.1.3   misho     658: BABELD
1.1       misho     659: OSPF6D
                    660: OSPFD
                    661: RIPNGD
                    662: RIPD
                    663: BGPD
                    664: ZEBRA
1.1.1.4 ! misho     665: BUILD_TESTS
1.1       misho     666: DOC
1.1.1.3   misho     667: ISISD_FALSE
                    668: ISISD_TRUE
                    669: OSPF6D_FALSE
                    670: OSPF6D_TRUE
                    671: RIPNGD_FALSE
                    672: RIPNGD_TRUE
                    673: OSPFCLIENT_FALSE
                    674: OSPFCLIENT_TRUE
                    675: WATCHQUAGGA_FALSE
                    676: WATCHQUAGGA_TRUE
                    677: BABELD_FALSE
                    678: BABELD_TRUE
                    679: OSPFD_FALSE
                    680: OSPFD_TRUE
                    681: RIPD_FALSE
                    682: RIPD_TRUE
                    683: BGPD_FALSE
                    684: BGPD_TRUE
                    685: ZEBRA_FALSE
                    686: ZEBRA_TRUE
1.1       misho     687: LIB_IPV6
                    688: IPFORWARD
                    689: IF_PROC
                    690: IOCTL_METHOD
                    691: IF_METHOD
                    692: RTREAD_METHOD
1.1.1.4 ! misho     693: HAVE_NETLINK_FALSE
        !           694: HAVE_NETLINK_TRUE
1.1       misho     695: OTHER_METHOD
                    696: KERNEL_METHOD
                    697: RT_METHOD
                    698: LIBM
                    699: LIBOBJS
                    700: LIBPAM
1.1.1.3   misho     701: VTYSH_FALSE
                    702: VTYSH_TRUE
1.1       misho     703: LIBREADLINE
1.1.1.4 ! misho     704: GIT_VERSION_FALSE
        !           705: GIT_VERSION_TRUE
1.1       misho     706: MULTIPATH_NUM
                    707: enable_vty_group
                    708: enable_group
                    709: enable_user
                    710: ISIS_TOPOLOGY_LIB
                    711: ISIS_TOPOLOGY_DIR
                    712: ISIS_TOPOLOGY_INCLUDES
                    713: OTOOL64
                    714: OTOOL
                    715: LIPO
                    716: NMEDIT
                    717: DSYMUTIL
                    718: MANIFEST_TOOL
                    719: RANLIB
                    720: ac_ct_AR
                    721: DLLTOOL
                    722: OBJDUMP
                    723: NM
                    724: ac_ct_DUMPBIN
                    725: DUMPBIN
                    726: LD
                    727: FGREP
                    728: LIBTOOL
                    729: AR
                    730: LN_S
1.1.1.3   misho     731: HAVE_LATEX_FALSE
                    732: HAVE_LATEX_TRUE
                    733: LATEXMK
                    734: PDFLATEX
1.1       misho     735: SED
                    736: EGREP
                    737: GREP
                    738: CPP
                    739: am__fastdepCC_FALSE
                    740: am__fastdepCC_TRUE
                    741: CCDEPMODE
1.1.1.2   misho     742: am__nodep
1.1       misho     743: AMDEPBACKSLASH
                    744: AMDEP_FALSE
                    745: AMDEP_TRUE
                    746: am__quote
                    747: am__include
                    748: DEPDIR
                    749: OBJEXT
                    750: EXEEXT
                    751: ac_ct_CC
                    752: CPPFLAGS
                    753: LDFLAGS
                    754: CFLAGS
                    755: CC
                    756: pkgsrcrcdir
                    757: pkgsrcdir
                    758: exampledir
                    759: GAWK
1.1.1.4 ! misho     760: PERL
1.1       misho     761: am__untar
                    762: am__tar
                    763: AMTAR
                    764: am__leading_dot
                    765: SET_MAKE
                    766: AWK
                    767: mkdir_p
                    768: MKDIR_P
                    769: INSTALL_STRIP_PROGRAM
                    770: STRIP
                    771: install_sh
                    772: MAKEINFO
                    773: AUTOHEADER
                    774: AUTOMAKE
                    775: AUTOCONF
                    776: ACLOCAL
                    777: VERSION
                    778: PACKAGE
                    779: CYGPATH_W
                    780: am__isrc
                    781: INSTALL_DATA
                    782: INSTALL_SCRIPT
                    783: INSTALL_PROGRAM
                    784: target_os
                    785: target_vendor
                    786: target_cpu
                    787: target
                    788: host_os
                    789: host_vendor
                    790: host_cpu
                    791: host
                    792: build_os
                    793: build_vendor
                    794: build_cpu
                    795: build
                    796: target_alias
                    797: host_alias
                    798: build_alias
                    799: LIBS
                    800: ECHO_T
                    801: ECHO_N
                    802: ECHO_C
                    803: DEFS
                    804: mandir
                    805: localedir
                    806: libdir
                    807: psdir
                    808: pdfdir
                    809: dvidir
                    810: htmldir
                    811: infodir
                    812: docdir
                    813: oldincludedir
                    814: includedir
                    815: localstatedir
                    816: sharedstatedir
                    817: sysconfdir
                    818: datadir
                    819: datarootdir
                    820: libexecdir
                    821: sbindir
                    822: bindir
                    823: program_transform_name
                    824: prefix
                    825: exec_prefix
                    826: PACKAGE_URL
                    827: PACKAGE_BUGREPORT
                    828: PACKAGE_STRING
                    829: PACKAGE_VERSION
                    830: PACKAGE_TARNAME
                    831: PACKAGE_NAME
                    832: PATH_SEPARATOR
                    833: SHELL'
                    834: ac_subst_files=''
                    835: ac_user_opts='
                    836: enable_option_checking
                    837: enable_exampledir
                    838: enable_pkgsrcrcdir
                    839: with_cflags
                    840: enable_dependency_tracking
                    841: enable_shared
                    842: enable_static
                    843: with_pic
                    844: enable_fast_install
                    845: with_gnu_ld
                    846: with_sysroot
                    847: enable_libtool_lock
1.1.1.4 ! misho     848: with_pkg_extra_version
        !           849: with_pkg_git_version
1.1       misho     850: enable_vtysh
                    851: enable_ipv6
                    852: enable_doc
1.1.1.4 ! misho     853: enable_tests
1.1       misho     854: enable_zebra
                    855: enable_bgpd
                    856: enable_ripd
                    857: enable_ripngd
                    858: enable_ospfd
                    859: enable_ospf6d
1.1.1.3   misho     860: enable_babeld
1.1       misho     861: enable_watchquagga
                    862: enable_isisd
                    863: enable_solaris
                    864: enable_bgp_announce
                    865: enable_netlink
                    866: enable_broken_aliases
                    867: enable_snmp
                    868: with_libpam
                    869: enable_tcp_zebra
                    870: enable_opaque_lsa
                    871: enable_ospfapi
                    872: enable_ospfclient
                    873: enable_ospf_te
                    874: enable_multipath
                    875: enable_user
                    876: enable_group
                    877: enable_vty_group
                    878: enable_configfile_mask
                    879: enable_logfile_mask
                    880: enable_rtadv
                    881: enable_irdp
                    882: enable_isis_topology
                    883: enable_capabilities
1.1.1.4 ! misho     884: enable_rusage
1.1       misho     885: enable_gcc_ultra_verbose
                    886: enable_linux24_tcp_md5
                    887: enable_gcc_rdynamic
                    888: enable_time_check
                    889: enable_pcreposix
1.1.1.4 ! misho     890: enable_fpm
1.1       misho     891: enable_largefile
                    892: enable_pie
                    893: '
                    894:       ac_precious_vars='build_alias
                    895: host_alias
                    896: target_alias
                    897: GAWK
                    898: CC
                    899: CFLAGS
                    900: LDFLAGS
                    901: LIBS
                    902: CPPFLAGS
                    903: CPP'
                    904: 
                    905: 
                    906: # Initialize some variables set by options.
                    907: ac_init_help=
                    908: ac_init_version=false
                    909: ac_unrecognized_opts=
                    910: ac_unrecognized_sep=
                    911: # The variables have the same names as the options, with
                    912: # dashes changed to underlines.
                    913: cache_file=/dev/null
                    914: exec_prefix=NONE
                    915: no_create=
                    916: no_recursion=
                    917: prefix=NONE
                    918: program_prefix=NONE
                    919: program_suffix=NONE
                    920: program_transform_name=s,x,x,
                    921: silent=
                    922: site=
                    923: srcdir=
                    924: verbose=
                    925: x_includes=NONE
                    926: x_libraries=NONE
                    927: 
                    928: # Installation directory options.
                    929: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    930: # and all the variables that are supposed to be based on exec_prefix
                    931: # by default will actually change.
                    932: # Use braces instead of parens because sh, perl, etc. also accept them.
                    933: # (The list follows the same order as the GNU Coding Standards.)
                    934: bindir='${exec_prefix}/bin'
                    935: sbindir='${exec_prefix}/sbin'
                    936: libexecdir='${exec_prefix}/libexec'
                    937: datarootdir='${prefix}/share'
                    938: datadir='${datarootdir}'
                    939: sysconfdir='${prefix}/etc'
                    940: sharedstatedir='${prefix}/com'
                    941: localstatedir='${prefix}/var'
                    942: includedir='${prefix}/include'
                    943: oldincludedir='/usr/include'
                    944: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    945: infodir='${datarootdir}/info'
                    946: htmldir='${docdir}'
                    947: dvidir='${docdir}'
                    948: pdfdir='${docdir}'
                    949: psdir='${docdir}'
                    950: libdir='${exec_prefix}/lib'
                    951: localedir='${datarootdir}/locale'
                    952: mandir='${datarootdir}/man'
                    953: 
                    954: ac_prev=
                    955: ac_dashdash=
                    956: for ac_option
                    957: do
                    958:   # If the previous option needs an argument, assign it.
                    959:   if test -n "$ac_prev"; then
                    960:     eval $ac_prev=\$ac_option
                    961:     ac_prev=
                    962:     continue
                    963:   fi
                    964: 
                    965:   case $ac_option in
                    966:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    967:   *=)   ac_optarg= ;;
                    968:   *)    ac_optarg=yes ;;
                    969:   esac
                    970: 
                    971:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    972: 
                    973:   case $ac_dashdash$ac_option in
                    974:   --)
                    975:     ac_dashdash=yes ;;
                    976: 
                    977:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    978:     ac_prev=bindir ;;
                    979:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    980:     bindir=$ac_optarg ;;
                    981: 
                    982:   -build | --build | --buil | --bui | --bu)
                    983:     ac_prev=build_alias ;;
                    984:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    985:     build_alias=$ac_optarg ;;
                    986: 
                    987:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    988:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    989:     ac_prev=cache_file ;;
                    990:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    991:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    992:     cache_file=$ac_optarg ;;
                    993: 
                    994:   --config-cache | -C)
                    995:     cache_file=config.cache ;;
                    996: 
                    997:   -datadir | --datadir | --datadi | --datad)
                    998:     ac_prev=datadir ;;
                    999:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                   1000:     datadir=$ac_optarg ;;
                   1001: 
                   1002:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                   1003:   | --dataroo | --dataro | --datar)
                   1004:     ac_prev=datarootdir ;;
                   1005:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                   1006:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                   1007:     datarootdir=$ac_optarg ;;
                   1008: 
                   1009:   -disable-* | --disable-*)
                   1010:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
                   1011:     # Reject names that are not valid shell variable names.
                   1012:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1013:       as_fn_error $? "invalid feature name: $ac_useropt"
                   1014:     ac_useropt_orig=$ac_useropt
                   1015:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1016:     case $ac_user_opts in
                   1017:       *"
                   1018: "enable_$ac_useropt"
                   1019: "*) ;;
                   1020:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                   1021:         ac_unrecognized_sep=', ';;
                   1022:     esac
                   1023:     eval enable_$ac_useropt=no ;;
                   1024: 
                   1025:   -docdir | --docdir | --docdi | --doc | --do)
                   1026:     ac_prev=docdir ;;
                   1027:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                   1028:     docdir=$ac_optarg ;;
                   1029: 
                   1030:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                   1031:     ac_prev=dvidir ;;
                   1032:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                   1033:     dvidir=$ac_optarg ;;
                   1034: 
                   1035:   -enable-* | --enable-*)
                   1036:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
                   1037:     # Reject names that are not valid shell variable names.
                   1038:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1039:       as_fn_error $? "invalid feature name: $ac_useropt"
                   1040:     ac_useropt_orig=$ac_useropt
                   1041:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1042:     case $ac_user_opts in
                   1043:       *"
                   1044: "enable_$ac_useropt"
                   1045: "*) ;;
                   1046:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                   1047:         ac_unrecognized_sep=', ';;
                   1048:     esac
                   1049:     eval enable_$ac_useropt=\$ac_optarg ;;
                   1050: 
                   1051:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                   1052:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                   1053:   | --exec | --exe | --ex)
                   1054:     ac_prev=exec_prefix ;;
                   1055:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                   1056:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                   1057:   | --exec=* | --exe=* | --ex=*)
                   1058:     exec_prefix=$ac_optarg ;;
                   1059: 
                   1060:   -gas | --gas | --ga | --g)
                   1061:     # Obsolete; use --with-gas.
                   1062:     with_gas=yes ;;
                   1063: 
                   1064:   -help | --help | --hel | --he | -h)
                   1065:     ac_init_help=long ;;
                   1066:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                   1067:     ac_init_help=recursive ;;
                   1068:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                   1069:     ac_init_help=short ;;
                   1070: 
                   1071:   -host | --host | --hos | --ho)
                   1072:     ac_prev=host_alias ;;
                   1073:   -host=* | --host=* | --hos=* | --ho=*)
                   1074:     host_alias=$ac_optarg ;;
                   1075: 
                   1076:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1077:     ac_prev=htmldir ;;
                   1078:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1079:   | --ht=*)
                   1080:     htmldir=$ac_optarg ;;
                   1081: 
                   1082:   -includedir | --includedir | --includedi | --included | --include \
                   1083:   | --includ | --inclu | --incl | --inc)
                   1084:     ac_prev=includedir ;;
                   1085:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1086:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                   1087:     includedir=$ac_optarg ;;
                   1088: 
                   1089:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1090:     ac_prev=infodir ;;
                   1091:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                   1092:     infodir=$ac_optarg ;;
                   1093: 
                   1094:   -libdir | --libdir | --libdi | --libd)
                   1095:     ac_prev=libdir ;;
                   1096:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1097:     libdir=$ac_optarg ;;
                   1098: 
                   1099:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1100:   | --libexe | --libex | --libe)
                   1101:     ac_prev=libexecdir ;;
                   1102:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1103:   | --libexe=* | --libex=* | --libe=*)
                   1104:     libexecdir=$ac_optarg ;;
                   1105: 
                   1106:   -localedir | --localedir | --localedi | --localed | --locale)
                   1107:     ac_prev=localedir ;;
                   1108:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1109:     localedir=$ac_optarg ;;
                   1110: 
                   1111:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1112:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1113:     ac_prev=localstatedir ;;
                   1114:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1115:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1116:     localstatedir=$ac_optarg ;;
                   1117: 
                   1118:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1119:     ac_prev=mandir ;;
                   1120:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1121:     mandir=$ac_optarg ;;
                   1122: 
                   1123:   -nfp | --nfp | --nf)
                   1124:     # Obsolete; use --without-fp.
                   1125:     with_fp=no ;;
                   1126: 
                   1127:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1128:   | --no-cr | --no-c | -n)
                   1129:     no_create=yes ;;
                   1130: 
                   1131:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1132:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1133:     no_recursion=yes ;;
                   1134: 
                   1135:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1136:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1137:   | --oldin | --oldi | --old | --ol | --o)
                   1138:     ac_prev=oldincludedir ;;
                   1139:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1140:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1141:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1142:     oldincludedir=$ac_optarg ;;
                   1143: 
                   1144:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1145:     ac_prev=prefix ;;
                   1146:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1147:     prefix=$ac_optarg ;;
                   1148: 
                   1149:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1150:   | --program-pre | --program-pr | --program-p)
                   1151:     ac_prev=program_prefix ;;
                   1152:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1153:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1154:     program_prefix=$ac_optarg ;;
                   1155: 
                   1156:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1157:   | --program-suf | --program-su | --program-s)
                   1158:     ac_prev=program_suffix ;;
                   1159:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1160:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1161:     program_suffix=$ac_optarg ;;
                   1162: 
                   1163:   -program-transform-name | --program-transform-name \
                   1164:   | --program-transform-nam | --program-transform-na \
                   1165:   | --program-transform-n | --program-transform- \
                   1166:   | --program-transform | --program-transfor \
                   1167:   | --program-transfo | --program-transf \
                   1168:   | --program-trans | --program-tran \
                   1169:   | --progr-tra | --program-tr | --program-t)
                   1170:     ac_prev=program_transform_name ;;
                   1171:   -program-transform-name=* | --program-transform-name=* \
                   1172:   | --program-transform-nam=* | --program-transform-na=* \
                   1173:   | --program-transform-n=* | --program-transform-=* \
                   1174:   | --program-transform=* | --program-transfor=* \
                   1175:   | --program-transfo=* | --program-transf=* \
                   1176:   | --program-trans=* | --program-tran=* \
                   1177:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1178:     program_transform_name=$ac_optarg ;;
                   1179: 
                   1180:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1181:     ac_prev=pdfdir ;;
                   1182:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1183:     pdfdir=$ac_optarg ;;
                   1184: 
                   1185:   -psdir | --psdir | --psdi | --psd | --ps)
                   1186:     ac_prev=psdir ;;
                   1187:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1188:     psdir=$ac_optarg ;;
                   1189: 
                   1190:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1191:   | -silent | --silent | --silen | --sile | --sil)
                   1192:     silent=yes ;;
                   1193: 
                   1194:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1195:     ac_prev=sbindir ;;
                   1196:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1197:   | --sbi=* | --sb=*)
                   1198:     sbindir=$ac_optarg ;;
                   1199: 
                   1200:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1201:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1202:   | --sharedst | --shareds | --shared | --share | --shar \
                   1203:   | --sha | --sh)
                   1204:     ac_prev=sharedstatedir ;;
                   1205:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1206:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1207:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1208:   | --sha=* | --sh=*)
                   1209:     sharedstatedir=$ac_optarg ;;
                   1210: 
                   1211:   -site | --site | --sit)
                   1212:     ac_prev=site ;;
                   1213:   -site=* | --site=* | --sit=*)
                   1214:     site=$ac_optarg ;;
                   1215: 
                   1216:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1217:     ac_prev=srcdir ;;
                   1218:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1219:     srcdir=$ac_optarg ;;
                   1220: 
                   1221:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1222:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1223:     ac_prev=sysconfdir ;;
                   1224:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1225:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1226:     sysconfdir=$ac_optarg ;;
                   1227: 
                   1228:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1229:     ac_prev=target_alias ;;
                   1230:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1231:     target_alias=$ac_optarg ;;
                   1232: 
                   1233:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1234:     verbose=yes ;;
                   1235: 
                   1236:   -version | --version | --versio | --versi | --vers | -V)
                   1237:     ac_init_version=: ;;
                   1238: 
                   1239:   -with-* | --with-*)
                   1240:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
                   1241:     # Reject names that are not valid shell variable names.
                   1242:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1243:       as_fn_error $? "invalid package name: $ac_useropt"
                   1244:     ac_useropt_orig=$ac_useropt
                   1245:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1246:     case $ac_user_opts in
                   1247:       *"
                   1248: "with_$ac_useropt"
                   1249: "*) ;;
                   1250:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1251:         ac_unrecognized_sep=', ';;
                   1252:     esac
                   1253:     eval with_$ac_useropt=\$ac_optarg ;;
                   1254: 
                   1255:   -without-* | --without-*)
                   1256:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
                   1257:     # Reject names that are not valid shell variable names.
                   1258:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1259:       as_fn_error $? "invalid package name: $ac_useropt"
                   1260:     ac_useropt_orig=$ac_useropt
                   1261:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1262:     case $ac_user_opts in
                   1263:       *"
                   1264: "with_$ac_useropt"
                   1265: "*) ;;
                   1266:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1267:         ac_unrecognized_sep=', ';;
                   1268:     esac
                   1269:     eval with_$ac_useropt=no ;;
                   1270: 
                   1271:   --x)
                   1272:     # Obsolete; use --with-x.
                   1273:     with_x=yes ;;
                   1274: 
                   1275:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1276:   | --x-incl | --x-inc | --x-in | --x-i)
                   1277:     ac_prev=x_includes ;;
                   1278:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1279:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1280:     x_includes=$ac_optarg ;;
                   1281: 
                   1282:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1283:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1284:     ac_prev=x_libraries ;;
                   1285:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1286:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1287:     x_libraries=$ac_optarg ;;
                   1288: 
                   1289:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1290: Try \`$0 --help' for more information"
                   1291:     ;;
                   1292: 
                   1293:   *=*)
                   1294:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1295:     # Reject names that are not valid shell variable names.
                   1296:     case $ac_envvar in #(
                   1297:       '' | [0-9]* | *[!_$as_cr_alnum]* )
                   1298:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
                   1299:     esac
                   1300:     eval $ac_envvar=\$ac_optarg
                   1301:     export $ac_envvar ;;
                   1302: 
                   1303:   *)
                   1304:     # FIXME: should be removed in autoconf 3.0.
                   1305:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
                   1306:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
                   1307:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
                   1308:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
                   1309:     ;;
                   1310: 
                   1311:   esac
                   1312: done
                   1313: 
                   1314: if test -n "$ac_prev"; then
                   1315:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
                   1316:   as_fn_error $? "missing argument to $ac_option"
                   1317: fi
                   1318: 
                   1319: if test -n "$ac_unrecognized_opts"; then
                   1320:   case $enable_option_checking in
                   1321:     no) ;;
                   1322:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
                   1323:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1324:   esac
                   1325: fi
                   1326: 
                   1327: # Check all directory arguments for consistency.
                   1328: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1329:                datadir sysconfdir sharedstatedir localstatedir includedir \
                   1330:                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1331:                libdir localedir mandir
                   1332: do
                   1333:   eval ac_val=\$$ac_var
                   1334:   # Remove trailing slashes.
                   1335:   case $ac_val in
                   1336:     */ )
                   1337:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1338:       eval $ac_var=\$ac_val;;
                   1339:   esac
                   1340:   # Be sure to have absolute directory names.
                   1341:   case $ac_val in
                   1342:     [\\/$]* | ?:[\\/]* )  continue;;
                   1343:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1344:   esac
                   1345:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
                   1346: done
                   1347: 
                   1348: # There might be people who depend on the old broken behavior: `$host'
                   1349: # used to hold the argument of --host etc.
                   1350: # FIXME: To remove some day.
                   1351: build=$build_alias
                   1352: host=$host_alias
                   1353: target=$target_alias
                   1354: 
                   1355: # FIXME: To remove some day.
                   1356: if test "x$host_alias" != x; then
                   1357:   if test "x$build_alias" = x; then
                   1358:     cross_compiling=maybe
                   1359:   elif test "x$build_alias" != "x$host_alias"; then
                   1360:     cross_compiling=yes
                   1361:   fi
                   1362: fi
                   1363: 
                   1364: ac_tool_prefix=
                   1365: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1366: 
                   1367: test "$silent" = yes && exec 6>/dev/null
                   1368: 
                   1369: 
                   1370: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1371: ac_ls_di=`ls -di .` &&
                   1372: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
                   1373:   as_fn_error $? "working directory cannot be determined"
                   1374: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
                   1375:   as_fn_error $? "pwd does not report name of working directory"
                   1376: 
                   1377: 
                   1378: # Find the source files, if location was not specified.
                   1379: if test -z "$srcdir"; then
                   1380:   ac_srcdir_defaulted=yes
                   1381:   # Try the directory containing this script, then the parent directory.
                   1382:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1383: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1384:         X"$as_myself" : 'X\(//\)[^/]' \| \
                   1385:         X"$as_myself" : 'X\(//\)$' \| \
                   1386:         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1387: $as_echo X"$as_myself" |
                   1388:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1389:            s//\1/
                   1390:            q
                   1391:          }
                   1392:          /^X\(\/\/\)[^/].*/{
                   1393:            s//\1/
                   1394:            q
                   1395:          }
                   1396:          /^X\(\/\/\)$/{
                   1397:            s//\1/
                   1398:            q
                   1399:          }
                   1400:          /^X\(\/\).*/{
                   1401:            s//\1/
                   1402:            q
                   1403:          }
                   1404:          s/.*/./; q'`
                   1405:   srcdir=$ac_confdir
                   1406:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1407:     srcdir=..
                   1408:   fi
                   1409: else
                   1410:   ac_srcdir_defaulted=no
                   1411: fi
                   1412: if test ! -r "$srcdir/$ac_unique_file"; then
                   1413:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
                   1414:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
                   1415: fi
                   1416: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1417: ac_abs_confdir=`(
                   1418:        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
                   1419:        pwd)`
                   1420: # When building in place, set srcdir=.
                   1421: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1422:   srcdir=.
                   1423: fi
                   1424: # Remove unnecessary trailing slashes from srcdir.
                   1425: # Double slashes in file names in object file debugging info
                   1426: # mess up M-x gdb in Emacs.
                   1427: case $srcdir in
                   1428: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1429: esac
                   1430: for ac_var in $ac_precious_vars; do
                   1431:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1432:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1433:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1434:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1435: done
                   1436: 
                   1437: #
                   1438: # Report the --help message.
                   1439: #
                   1440: if test "$ac_init_help" = "long"; then
                   1441:   # Omit some internal or obsolete options to make the list less imposing.
                   1442:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1443:   cat <<_ACEOF
1.1.1.4 ! misho    1444: \`configure' configures Quagga 0.99.22 to adapt to many kinds of systems.
1.1       misho    1445: 
                   1446: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1447: 
                   1448: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1449: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1450: 
                   1451: Defaults for the options are specified in brackets.
                   1452: 
                   1453: Configuration:
                   1454:   -h, --help              display this help and exit
                   1455:       --help=short        display options specific to this package
                   1456:       --help=recursive    display the short help of all the included packages
                   1457:   -V, --version           display version information and exit
                   1458:   -q, --quiet, --silent   do not print \`checking ...' messages
                   1459:       --cache-file=FILE   cache test results in FILE [disabled]
                   1460:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1461:   -n, --no-create         do not create output files
                   1462:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1463: 
                   1464: Installation directories:
                   1465:   --prefix=PREFIX         install architecture-independent files in PREFIX
                   1466:                           [$ac_default_prefix]
                   1467:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                   1468:                           [PREFIX]
                   1469: 
                   1470: By default, \`make install' will install all the files in
                   1471: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1472: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1473: for instance \`--prefix=\$HOME'.
                   1474: 
                   1475: For better control, use the options below.
                   1476: 
                   1477: Fine tuning of the installation directories:
                   1478:   --bindir=DIR            user executables [EPREFIX/bin]
                   1479:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1480:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1481:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1482:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1483:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1484:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1485:   --includedir=DIR        C header files [PREFIX/include]
                   1486:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1487:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1488:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1489:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1490:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1491:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1492:   --docdir=DIR            documentation root [DATAROOTDIR/doc/quagga]
                   1493:   --htmldir=DIR           html documentation [DOCDIR]
                   1494:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1495:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1496:   --psdir=DIR             ps documentation [DOCDIR]
                   1497: _ACEOF
                   1498: 
                   1499:   cat <<\_ACEOF
                   1500: 
                   1501: Program names:
                   1502:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1503:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1504:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1505: 
                   1506: System types:
                   1507:   --build=BUILD     configure for building on BUILD [guessed]
                   1508:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1509:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1510: _ACEOF
                   1511: fi
                   1512: 
                   1513: if test -n "$ac_init_help"; then
                   1514:   case $ac_init_help in
1.1.1.4 ! misho    1515:      short | recursive ) echo "Configuration of Quagga 0.99.22:";;
1.1       misho    1516:    esac
                   1517:   cat <<\_ACEOF
                   1518: 
                   1519: Optional Features:
                   1520:   --disable-option-checking  ignore unrecognized --enable/--with options
                   1521:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1522:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1523:   --enable-exampledir     specify alternate directory for examples
                   1524:   --enable-pkgsrcrcdir    specify directory for rc.d scripts
1.1.1.4 ! misho    1525:   --enable-dependency-tracking
        !          1526:                           do not reject slow dependency extractors
        !          1527:   --disable-dependency-tracking
        !          1528:                           speeds up one-time build
1.1       misho    1529:   --enable-shared[=PKGS]  build shared libraries [default=yes]
                   1530:   --enable-static[=PKGS]  build static libraries [default=yes]
                   1531:   --enable-fast-install[=PKGS]
                   1532:                           optimize for fast installation [default=yes]
                   1533:   --disable-libtool-lock  avoid locking (might break parallel builds)
                   1534:   --enable-vtysh          include integrated vty shell for Quagga
                   1535:   --disable-ipv6          turn off IPv6 related features and daemons
                   1536:   --disable-doc           do not build docs
1.1.1.4 ! misho    1537:   --disable-tests         do not build tests
1.1       misho    1538:   --disable-zebra         do not build zebra daemon
                   1539:   --disable-bgpd          do not build bgpd
                   1540:   --disable-ripd          do not build ripd
                   1541:   --disable-ripngd        do not build ripngd
                   1542:   --disable-ospfd         do not build ospfd
                   1543:   --disable-ospf6d        do not build ospf6d
1.1.1.3   misho    1544:   --disable-babeld        do not build babeld
1.1       misho    1545:   --disable-watchquagga   do not build watchquagga
                   1546:   --enable-isisd          build isisd
                   1547:   --enable-solaris          build solaris
                   1548:   --disable-bgp-announce, turn off BGP route announcement
                   1549:   --enable-netlink        force to use Linux netlink interface
                   1550:   --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X
1.1.1.4 ! misho    1551:   --enable-snmp=ARG       enable SNMP support (smux or agentx)
1.1       misho    1552:   --enable-tcp-zebra      enable TCP/IP socket connection between zebra and protocol daemon
                   1553:   --disable-opaque-lsa    do not build OSPF Opaque-LSA with OSPFAPI support
                   1554:                           (RFC2370)
                   1555:   --disable-ospfapi       do not build OSPFAPI to access the OSPF LSA Database
                   1556:   --disable-ospfclient    do not build OSPFAPI client for OSPFAPI,
                   1557:                           (this is the default if --disable-ospfapi is set)
                   1558:   --disable-ospf-te       disable Traffic Engineering Extension to OSPF
                   1559:   --enable-multipath=ARG  enable multipath function, ARG must be digit
                   1560:   --enable-user=user      user to run Quagga suite as (default quagga)
                   1561:   --enable-group=group    group to run Quagga suite as (default quagga)
                   1562:   --enable-vty-group=ARG  set vty sockets to have specified group as owner
                   1563:   --enable-configfile-mask=ARG  set mask for config files
                   1564:   --enable-logfile-mask=ARG     set mask for log files
                   1565:   --disable-rtadv               disable IPV6 router advertisement feature
                   1566:   --enable-irdp                 enable IRDP server support in zebra
                   1567:   --enable-isis-topology        enable IS-IS topology generator
                   1568:   --disable-capabilities        disable using POSIX capabilities
1.1.1.4 ! misho    1569:   --disable-rusage              disable using getrusage
1.1       misho    1570:   --enable-gcc-ultra-verbose    enable ultra verbose GCC warnings
                   1571:   --enable-linux24-tcp-md5  enable support for old, Linux-2.4 RFC2385 patch
                   1572:   --enable-gcc-rdynamic   enable gcc linking with -rdynamic for better backtraces
                   1573:   --disable-time-check          disable slow thread warning messages
                   1574:   --enable-pcreposix          enable using PCRE Posix libs for regex functions
1.1.1.4 ! misho    1575:   --enable-fpm            enable Forwarding Plane Manager support
1.1       misho    1576:   --disable-largefile     omit support for large files
                   1577:   --disable-pie           Do not build tools as a Position Independent
                   1578:                           Executables
                   1579: 
                   1580: Optional Packages:
                   1581:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1582:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1583:   --with-cflags           Set CFLAGS for use in compilation.
1.1.1.2   misho    1584:   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1.1       misho    1585:                           both]
                   1586:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
                   1587:   --with-sysroot=DIR Search for dependent libraries within DIR
                   1588:                         (or the compiler's sysroot if not specified).
1.1.1.4 ! misho    1589:   --with-pkg-extra-version=VER
        !          1590:                           add extra version field, for packagers/distributions
        !          1591:   --with-pkg-git-version  add git information to MOTD and build version string
1.1       misho    1592:   --with-libpam           use libpam for PAM support in vtysh
                   1593: 
                   1594: Some influential environment variables:
                   1595:   GAWK        GNU AWK
                   1596:   CC          C compiler command
                   1597:   CFLAGS      C compiler flags
                   1598:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1599:               nonstandard directory <lib dir>
                   1600:   LIBS        libraries to pass to the linker, e.g. -l<library>
                   1601:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
                   1602:               you have headers in a nonstandard directory <include dir>
                   1603:   CPP         C preprocessor
                   1604: 
                   1605: Use these variables to override the choices made by `configure' or to help
                   1606: it to find libraries and programs with nonstandard names/locations.
                   1607: 
                   1608: Report bugs to <https://bugzilla.quagga.net>.
                   1609: _ACEOF
                   1610: ac_status=$?
                   1611: fi
                   1612: 
                   1613: if test "$ac_init_help" = "recursive"; then
                   1614:   # If there are subdirs, report their specific --help.
                   1615:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
                   1616:     test -d "$ac_dir" ||
                   1617:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1618:       continue
                   1619:     ac_builddir=.
                   1620: 
                   1621: case "$ac_dir" in
                   1622: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1623: *)
                   1624:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
                   1625:   # A ".." for each directory in $ac_dir_suffix.
                   1626:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
                   1627:   case $ac_top_builddir_sub in
                   1628:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1629:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1630:   esac ;;
                   1631: esac
                   1632: ac_abs_top_builddir=$ac_pwd
                   1633: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1634: # for backward compatibility:
                   1635: ac_top_builddir=$ac_top_build_prefix
                   1636: 
                   1637: case $srcdir in
                   1638:   .)  # We are building in place.
                   1639:     ac_srcdir=.
                   1640:     ac_top_srcdir=$ac_top_builddir_sub
                   1641:     ac_abs_top_srcdir=$ac_pwd ;;
                   1642:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1643:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1644:     ac_top_srcdir=$srcdir
                   1645:     ac_abs_top_srcdir=$srcdir ;;
                   1646:   *) # Relative name.
                   1647:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1648:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1649:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1650: esac
                   1651: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1652: 
                   1653:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1654:     # Check for guested configure.
                   1655:     if test -f "$ac_srcdir/configure.gnu"; then
                   1656:       echo &&
                   1657:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1658:     elif test -f "$ac_srcdir/configure"; then
                   1659:       echo &&
                   1660:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1661:     else
                   1662:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
                   1663:     fi || ac_status=$?
                   1664:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1665:   done
                   1666: fi
                   1667: 
                   1668: test -n "$ac_init_help" && exit $ac_status
                   1669: if $ac_init_version; then
                   1670:   cat <<\_ACEOF
1.1.1.4 ! misho    1671: Quagga configure 0.99.22
1.1.1.3   misho    1672: generated by GNU Autoconf 2.69
1.1       misho    1673: 
1.1.1.3   misho    1674: Copyright (C) 2012 Free Software Foundation, Inc.
1.1       misho    1675: This configure script is free software; the Free Software Foundation
                   1676: gives unlimited permission to copy, distribute and modify it.
                   1677: _ACEOF
                   1678:   exit
                   1679: fi
                   1680: 
                   1681: ## ------------------------ ##
                   1682: ## Autoconf initialization. ##
                   1683: ## ------------------------ ##
                   1684: 
                   1685: # ac_fn_c_try_compile LINENO
                   1686: # --------------------------
                   1687: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1688: ac_fn_c_try_compile ()
                   1689: {
                   1690:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1691:   rm -f conftest.$ac_objext
                   1692:   if { { ac_try="$ac_compile"
                   1693: case "(($ac_try" in
                   1694:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1695:   *) ac_try_echo=$ac_try;;
                   1696: esac
                   1697: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1698: $as_echo "$ac_try_echo"; } >&5
                   1699:   (eval "$ac_compile") 2>conftest.err
                   1700:   ac_status=$?
                   1701:   if test -s conftest.err; then
                   1702:     grep -v '^ *+' conftest.err >conftest.er1
                   1703:     cat conftest.er1 >&5
                   1704:     mv -f conftest.er1 conftest.err
                   1705:   fi
                   1706:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1707:   test $ac_status = 0; } && {
                   1708:         test -z "$ac_c_werror_flag" ||
                   1709:         test ! -s conftest.err
                   1710:        } && test -s conftest.$ac_objext; then :
                   1711:   ac_retval=0
                   1712: else
                   1713:   $as_echo "$as_me: failed program was:" >&5
                   1714: sed 's/^/| /' conftest.$ac_ext >&5
                   1715: 
                   1716:        ac_retval=1
                   1717: fi
                   1718:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1719:   as_fn_set_status $ac_retval
                   1720: 
                   1721: } # ac_fn_c_try_compile
                   1722: 
                   1723: # ac_fn_c_try_cpp LINENO
                   1724: # ----------------------
                   1725: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1726: ac_fn_c_try_cpp ()
                   1727: {
                   1728:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1729:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1730: case "(($ac_try" in
                   1731:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1732:   *) ac_try_echo=$ac_try;;
                   1733: esac
                   1734: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1735: $as_echo "$ac_try_echo"; } >&5
                   1736:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1737:   ac_status=$?
                   1738:   if test -s conftest.err; then
                   1739:     grep -v '^ *+' conftest.err >conftest.er1
                   1740:     cat conftest.er1 >&5
                   1741:     mv -f conftest.er1 conftest.err
                   1742:   fi
                   1743:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1744:   test $ac_status = 0; } > conftest.i && {
                   1745:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1746:         test ! -s conftest.err
                   1747:        }; then :
                   1748:   ac_retval=0
                   1749: else
                   1750:   $as_echo "$as_me: failed program was:" >&5
                   1751: sed 's/^/| /' conftest.$ac_ext >&5
                   1752: 
                   1753:     ac_retval=1
                   1754: fi
                   1755:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1756:   as_fn_set_status $ac_retval
                   1757: 
                   1758: } # ac_fn_c_try_cpp
                   1759: 
                   1760: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   1761: # -------------------------------------------------------
                   1762: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   1763: # the include files in INCLUDES and setting the cache variable VAR
                   1764: # accordingly.
                   1765: ac_fn_c_check_header_mongrel ()
                   1766: {
                   1767:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1768:   if eval \${$3+:} false; then :
                   1769:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1770: $as_echo_n "checking for $2... " >&6; }
                   1771: if eval \${$3+:} false; then :
                   1772:   $as_echo_n "(cached) " >&6
                   1773: fi
                   1774: eval ac_res=\$$3
                   1775:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1776: $as_echo "$ac_res" >&6; }
                   1777: else
                   1778:   # Is the header compilable?
                   1779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   1780: $as_echo_n "checking $2 usability... " >&6; }
                   1781: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1782: /* end confdefs.h.  */
                   1783: $4
                   1784: #include <$2>
                   1785: _ACEOF
                   1786: if ac_fn_c_try_compile "$LINENO"; then :
                   1787:   ac_header_compiler=yes
                   1788: else
                   1789:   ac_header_compiler=no
                   1790: fi
                   1791: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   1793: $as_echo "$ac_header_compiler" >&6; }
                   1794: 
                   1795: # Is the header present?
                   1796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   1797: $as_echo_n "checking $2 presence... " >&6; }
                   1798: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1799: /* end confdefs.h.  */
                   1800: #include <$2>
                   1801: _ACEOF
                   1802: if ac_fn_c_try_cpp "$LINENO"; then :
                   1803:   ac_header_preproc=yes
                   1804: else
                   1805:   ac_header_preproc=no
                   1806: fi
                   1807: rm -f conftest.err conftest.i conftest.$ac_ext
                   1808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   1809: $as_echo "$ac_header_preproc" >&6; }
                   1810: 
                   1811: # So?  What about this header?
                   1812: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   1813:   yes:no: )
                   1814:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   1815: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   1816:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   1817: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   1818:     ;;
                   1819:   no:yes:* )
                   1820:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   1821: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   1822:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   1823: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   1824:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   1825: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   1826:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   1827: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   1828:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   1829: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   1830: ( $as_echo "## ------------------------------------------ ##
                   1831: ## Report this to https://bugzilla.quagga.net ##
                   1832: ## ------------------------------------------ ##"
                   1833:      ) | sed "s/^/$as_me: WARNING:     /" >&2
                   1834:     ;;
                   1835: esac
                   1836:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1837: $as_echo_n "checking for $2... " >&6; }
                   1838: if eval \${$3+:} false; then :
                   1839:   $as_echo_n "(cached) " >&6
                   1840: else
                   1841:   eval "$3=\$ac_header_compiler"
                   1842: fi
                   1843: eval ac_res=\$$3
                   1844:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1845: $as_echo "$ac_res" >&6; }
                   1846: fi
                   1847:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1848: 
                   1849: } # ac_fn_c_check_header_mongrel
                   1850: 
                   1851: # ac_fn_c_try_run LINENO
                   1852: # ----------------------
                   1853: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1854: # that executables *can* be run.
                   1855: ac_fn_c_try_run ()
                   1856: {
                   1857:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1858:   if { { ac_try="$ac_link"
                   1859: case "(($ac_try" in
                   1860:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1861:   *) ac_try_echo=$ac_try;;
                   1862: esac
                   1863: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1864: $as_echo "$ac_try_echo"; } >&5
                   1865:   (eval "$ac_link") 2>&5
                   1866:   ac_status=$?
                   1867:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1868:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1869:   { { case "(($ac_try" in
                   1870:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1871:   *) ac_try_echo=$ac_try;;
                   1872: esac
                   1873: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1874: $as_echo "$ac_try_echo"; } >&5
                   1875:   (eval "$ac_try") 2>&5
                   1876:   ac_status=$?
                   1877:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1878:   test $ac_status = 0; }; }; then :
                   1879:   ac_retval=0
                   1880: else
                   1881:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1882:        $as_echo "$as_me: failed program was:" >&5
                   1883: sed 's/^/| /' conftest.$ac_ext >&5
                   1884: 
                   1885:        ac_retval=$ac_status
                   1886: fi
                   1887:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1888:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1889:   as_fn_set_status $ac_retval
                   1890: 
                   1891: } # ac_fn_c_try_run
                   1892: 
                   1893: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   1894: # -------------------------------------------------------
                   1895: # Tests whether HEADER exists and can be compiled using the include files in
                   1896: # INCLUDES, setting the cache variable VAR accordingly.
                   1897: ac_fn_c_check_header_compile ()
                   1898: {
                   1899:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1900:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1901: $as_echo_n "checking for $2... " >&6; }
                   1902: if eval \${$3+:} false; then :
                   1903:   $as_echo_n "(cached) " >&6
                   1904: else
                   1905:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1906: /* end confdefs.h.  */
                   1907: $4
                   1908: #include <$2>
                   1909: _ACEOF
                   1910: if ac_fn_c_try_compile "$LINENO"; then :
                   1911:   eval "$3=yes"
                   1912: else
                   1913:   eval "$3=no"
                   1914: fi
                   1915: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1916: fi
                   1917: eval ac_res=\$$3
                   1918:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1919: $as_echo "$ac_res" >&6; }
                   1920:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1921: 
                   1922: } # ac_fn_c_check_header_compile
                   1923: 
                   1924: # ac_fn_c_try_link LINENO
                   1925: # -----------------------
                   1926: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1927: ac_fn_c_try_link ()
                   1928: {
                   1929:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1930:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1931:   if { { ac_try="$ac_link"
                   1932: case "(($ac_try" in
                   1933:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1934:   *) ac_try_echo=$ac_try;;
                   1935: esac
                   1936: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1937: $as_echo "$ac_try_echo"; } >&5
                   1938:   (eval "$ac_link") 2>conftest.err
                   1939:   ac_status=$?
                   1940:   if test -s conftest.err; then
                   1941:     grep -v '^ *+' conftest.err >conftest.er1
                   1942:     cat conftest.er1 >&5
                   1943:     mv -f conftest.er1 conftest.err
                   1944:   fi
                   1945:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1946:   test $ac_status = 0; } && {
                   1947:         test -z "$ac_c_werror_flag" ||
                   1948:         test ! -s conftest.err
                   1949:        } && test -s conftest$ac_exeext && {
                   1950:         test "$cross_compiling" = yes ||
1.1.1.3   misho    1951:         test -x conftest$ac_exeext
1.1       misho    1952:        }; then :
                   1953:   ac_retval=0
                   1954: else
                   1955:   $as_echo "$as_me: failed program was:" >&5
                   1956: sed 's/^/| /' conftest.$ac_ext >&5
                   1957: 
                   1958:        ac_retval=1
                   1959: fi
                   1960:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1961:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1962:   # interfere with the next link command; also delete a directory that is
                   1963:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1964:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1965:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1966:   as_fn_set_status $ac_retval
                   1967: 
                   1968: } # ac_fn_c_try_link
                   1969: 
                   1970: # ac_fn_c_check_func LINENO FUNC VAR
                   1971: # ----------------------------------
                   1972: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1973: ac_fn_c_check_func ()
                   1974: {
                   1975:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1976:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1977: $as_echo_n "checking for $2... " >&6; }
                   1978: if eval \${$3+:} false; then :
                   1979:   $as_echo_n "(cached) " >&6
                   1980: else
                   1981:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1982: /* end confdefs.h.  */
                   1983: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1984:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1985: #define $2 innocuous_$2
                   1986: 
                   1987: /* System header to define __stub macros and hopefully few prototypes,
                   1988:     which can conflict with char $2 (); below.
                   1989:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1990:     <limits.h> exists even on freestanding compilers.  */
                   1991: 
                   1992: #ifdef __STDC__
                   1993: # include <limits.h>
                   1994: #else
                   1995: # include <assert.h>
                   1996: #endif
                   1997: 
                   1998: #undef $2
                   1999: 
                   2000: /* Override any GCC internal prototype to avoid an error.
                   2001:    Use char because int might match the return type of a GCC
                   2002:    builtin and then its argument prototype would still apply.  */
                   2003: #ifdef __cplusplus
                   2004: extern "C"
                   2005: #endif
                   2006: char $2 ();
                   2007: /* The GNU C library defines this for functions which it implements
                   2008:     to always fail with ENOSYS.  Some functions are actually named
                   2009:     something starting with __ and the normal name is an alias.  */
                   2010: #if defined __stub_$2 || defined __stub___$2
                   2011: choke me
                   2012: #endif
                   2013: 
                   2014: int
                   2015: main ()
                   2016: {
                   2017: return $2 ();
                   2018:   ;
                   2019:   return 0;
                   2020: }
                   2021: _ACEOF
                   2022: if ac_fn_c_try_link "$LINENO"; then :
                   2023:   eval "$3=yes"
                   2024: else
                   2025:   eval "$3=no"
                   2026: fi
                   2027: rm -f core conftest.err conftest.$ac_objext \
                   2028:     conftest$ac_exeext conftest.$ac_ext
                   2029: fi
                   2030: eval ac_res=\$$3
                   2031:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2032: $as_echo "$ac_res" >&6; }
                   2033:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2034: 
                   2035: } # ac_fn_c_check_func
                   2036: 
                   2037: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   2038: # -------------------------------------------
                   2039: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   2040: # variable VAR accordingly.
                   2041: ac_fn_c_check_type ()
                   2042: {
                   2043:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2044:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2045: $as_echo_n "checking for $2... " >&6; }
                   2046: if eval \${$3+:} false; then :
                   2047:   $as_echo_n "(cached) " >&6
                   2048: else
                   2049:   eval "$3=no"
                   2050:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2051: /* end confdefs.h.  */
                   2052: $4
                   2053: int
                   2054: main ()
                   2055: {
                   2056: if (sizeof ($2))
                   2057:         return 0;
                   2058:   ;
                   2059:   return 0;
                   2060: }
                   2061: _ACEOF
                   2062: if ac_fn_c_try_compile "$LINENO"; then :
                   2063:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2064: /* end confdefs.h.  */
                   2065: $4
                   2066: int
                   2067: main ()
                   2068: {
                   2069: if (sizeof (($2)))
                   2070:            return 0;
                   2071:   ;
                   2072:   return 0;
                   2073: }
                   2074: _ACEOF
                   2075: if ac_fn_c_try_compile "$LINENO"; then :
                   2076: 
                   2077: else
                   2078:   eval "$3=yes"
                   2079: fi
                   2080: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2081: fi
                   2082: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2083: fi
                   2084: eval ac_res=\$$3
                   2085:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2086: $as_echo "$ac_res" >&6; }
                   2087:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2088: 
                   2089: } # ac_fn_c_check_type
                   2090: 
                   2091: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
                   2092: # ----------------------------------------------------
                   2093: # Tries to find if the field MEMBER exists in type AGGR, after including
                   2094: # INCLUDES, setting cache variable VAR accordingly.
                   2095: ac_fn_c_check_member ()
                   2096: {
                   2097:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2098:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
                   2099: $as_echo_n "checking for $2.$3... " >&6; }
                   2100: if eval \${$4+:} false; then :
                   2101:   $as_echo_n "(cached) " >&6
                   2102: else
                   2103:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2104: /* end confdefs.h.  */
                   2105: $5
                   2106: int
                   2107: main ()
                   2108: {
                   2109: static $2 ac_aggr;
                   2110: if (ac_aggr.$3)
                   2111: return 0;
                   2112:   ;
                   2113:   return 0;
                   2114: }
                   2115: _ACEOF
                   2116: if ac_fn_c_try_compile "$LINENO"; then :
                   2117:   eval "$4=yes"
                   2118: else
                   2119:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2120: /* end confdefs.h.  */
                   2121: $5
                   2122: int
                   2123: main ()
                   2124: {
                   2125: static $2 ac_aggr;
                   2126: if (sizeof ac_aggr.$3)
                   2127: return 0;
                   2128:   ;
                   2129:   return 0;
                   2130: }
                   2131: _ACEOF
                   2132: if ac_fn_c_try_compile "$LINENO"; then :
                   2133:   eval "$4=yes"
                   2134: else
                   2135:   eval "$4=no"
                   2136: fi
                   2137: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2138: fi
                   2139: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2140: fi
                   2141: eval ac_res=\$$4
                   2142:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2143: $as_echo "$ac_res" >&6; }
                   2144:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2145: 
                   2146: } # ac_fn_c_check_member
                   2147: 
                   2148: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
                   2149: # ---------------------------------------------
                   2150: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
                   2151: # accordingly.
                   2152: ac_fn_c_check_decl ()
                   2153: {
                   2154:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2155:   as_decl_name=`echo $2|sed 's/ *(.*//'`
                   2156:   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
                   2157:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
                   2158: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
                   2159: if eval \${$3+:} false; then :
                   2160:   $as_echo_n "(cached) " >&6
                   2161: else
                   2162:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2163: /* end confdefs.h.  */
                   2164: $4
                   2165: int
                   2166: main ()
                   2167: {
                   2168: #ifndef $as_decl_name
                   2169: #ifdef __cplusplus
                   2170:   (void) $as_decl_use;
                   2171: #else
                   2172:   (void) $as_decl_name;
                   2173: #endif
                   2174: #endif
                   2175: 
                   2176:   ;
                   2177:   return 0;
                   2178: }
                   2179: _ACEOF
                   2180: if ac_fn_c_try_compile "$LINENO"; then :
                   2181:   eval "$3=yes"
                   2182: else
                   2183:   eval "$3=no"
                   2184: fi
                   2185: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2186: fi
                   2187: eval ac_res=\$$3
                   2188:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2189: $as_echo "$ac_res" >&6; }
                   2190:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2191: 
                   2192: } # ac_fn_c_check_decl
                   2193: cat >config.log <<_ACEOF
                   2194: This file contains any messages produced by compilers while
                   2195: running configure, to aid debugging if configure makes a mistake.
                   2196: 
1.1.1.4 ! misho    2197: It was created by Quagga $as_me 0.99.22, which was
1.1.1.3   misho    2198: generated by GNU Autoconf 2.69.  Invocation command line was
1.1       misho    2199: 
                   2200:   $ $0 $@
                   2201: 
                   2202: _ACEOF
                   2203: exec 5>>config.log
                   2204: {
                   2205: cat <<_ASUNAME
                   2206: ## --------- ##
                   2207: ## Platform. ##
                   2208: ## --------- ##
                   2209: 
                   2210: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2211: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2212: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2213: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2214: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                   2215: 
                   2216: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2217: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                   2218: 
                   2219: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2220: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2221: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2222: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2223: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2224: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2225: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                   2226: 
                   2227: _ASUNAME
                   2228: 
                   2229: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2230: for as_dir in $PATH
                   2231: do
                   2232:   IFS=$as_save_IFS
                   2233:   test -z "$as_dir" && as_dir=.
                   2234:     $as_echo "PATH: $as_dir"
                   2235:   done
                   2236: IFS=$as_save_IFS
                   2237: 
                   2238: } >&5
                   2239: 
                   2240: cat >&5 <<_ACEOF
                   2241: 
                   2242: 
                   2243: ## ----------- ##
                   2244: ## Core tests. ##
                   2245: ## ----------- ##
                   2246: 
                   2247: _ACEOF
                   2248: 
                   2249: 
                   2250: # Keep a trace of the command line.
                   2251: # Strip out --no-create and --no-recursion so they do not pile up.
                   2252: # Strip out --silent because we don't want to record it for future runs.
                   2253: # Also quote any args containing shell meta-characters.
                   2254: # Make two passes to allow for proper duplicate-argument suppression.
                   2255: ac_configure_args=
                   2256: ac_configure_args0=
                   2257: ac_configure_args1=
                   2258: ac_must_keep_next=false
                   2259: for ac_pass in 1 2
                   2260: do
                   2261:   for ac_arg
                   2262:   do
                   2263:     case $ac_arg in
                   2264:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2265:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2266:     | -silent | --silent | --silen | --sile | --sil)
                   2267:       continue ;;
                   2268:     *\'*)
                   2269:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2270:     esac
                   2271:     case $ac_pass in
                   2272:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2273:     2)
                   2274:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2275:       if test $ac_must_keep_next = true; then
                   2276:        ac_must_keep_next=false # Got value, back to normal.
                   2277:       else
                   2278:        case $ac_arg in
                   2279:          *=* | --config-cache | -C | -disable-* | --disable-* \
                   2280:          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2281:          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2282:          | -with-* | --with-* | -without-* | --without-* | --x)
                   2283:            case "$ac_configure_args0 " in
                   2284:              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2285:            esac
                   2286:            ;;
                   2287:          -* ) ac_must_keep_next=true ;;
                   2288:        esac
                   2289:       fi
                   2290:       as_fn_append ac_configure_args " '$ac_arg'"
                   2291:       ;;
                   2292:     esac
                   2293:   done
                   2294: done
                   2295: { ac_configure_args0=; unset ac_configure_args0;}
                   2296: { ac_configure_args1=; unset ac_configure_args1;}
                   2297: 
                   2298: # When interrupted or exit'd, cleanup temporary files, and complete
                   2299: # config.log.  We remove comments because anyway the quotes in there
                   2300: # would cause problems or look ugly.
                   2301: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2302: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2303: trap 'exit_status=$?
                   2304:   # Save into config.log some information that might help in debugging.
                   2305:   {
                   2306:     echo
                   2307: 
                   2308:     $as_echo "## ---------------- ##
                   2309: ## Cache variables. ##
                   2310: ## ---------------- ##"
                   2311:     echo
                   2312:     # The following way of writing the cache mishandles newlines in values,
                   2313: (
                   2314:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2315:     eval ac_val=\$$ac_var
                   2316:     case $ac_val in #(
                   2317:     *${as_nl}*)
                   2318:       case $ac_var in #(
                   2319:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2320: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2321:       esac
                   2322:       case $ac_var in #(
                   2323:       _ | IFS | as_nl) ;; #(
                   2324:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2325:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2326:       esac ;;
                   2327:     esac
                   2328:   done
                   2329:   (set) 2>&1 |
                   2330:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2331:     *${as_nl}ac_space=\ *)
                   2332:       sed -n \
                   2333:        "s/'\''/'\''\\\\'\'''\''/g;
                   2334:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2335:       ;; #(
                   2336:     *)
                   2337:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2338:       ;;
                   2339:     esac |
                   2340:     sort
                   2341: )
                   2342:     echo
                   2343: 
                   2344:     $as_echo "## ----------------- ##
                   2345: ## Output variables. ##
                   2346: ## ----------------- ##"
                   2347:     echo
                   2348:     for ac_var in $ac_subst_vars
                   2349:     do
                   2350:       eval ac_val=\$$ac_var
                   2351:       case $ac_val in
                   2352:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2353:       esac
                   2354:       $as_echo "$ac_var='\''$ac_val'\''"
                   2355:     done | sort
                   2356:     echo
                   2357: 
                   2358:     if test -n "$ac_subst_files"; then
                   2359:       $as_echo "## ------------------- ##
                   2360: ## File substitutions. ##
                   2361: ## ------------------- ##"
                   2362:       echo
                   2363:       for ac_var in $ac_subst_files
                   2364:       do
                   2365:        eval ac_val=\$$ac_var
                   2366:        case $ac_val in
                   2367:        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2368:        esac
                   2369:        $as_echo "$ac_var='\''$ac_val'\''"
                   2370:       done | sort
                   2371:       echo
                   2372:     fi
                   2373: 
                   2374:     if test -s confdefs.h; then
                   2375:       $as_echo "## ----------- ##
                   2376: ## confdefs.h. ##
                   2377: ## ----------- ##"
                   2378:       echo
                   2379:       cat confdefs.h
                   2380:       echo
                   2381:     fi
                   2382:     test "$ac_signal" != 0 &&
                   2383:       $as_echo "$as_me: caught signal $ac_signal"
                   2384:     $as_echo "$as_me: exit $exit_status"
                   2385:   } >&5
                   2386:   rm -f core *.core core.conftest.* &&
                   2387:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2388:     exit $exit_status
                   2389: ' 0
                   2390: for ac_signal in 1 2 13 15; do
                   2391:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2392: done
                   2393: ac_signal=0
                   2394: 
                   2395: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2396: rm -f -r conftest* confdefs.h
                   2397: 
                   2398: $as_echo "/* confdefs.h */" > confdefs.h
                   2399: 
                   2400: # Predefined preprocessor variables.
                   2401: 
                   2402: cat >>confdefs.h <<_ACEOF
                   2403: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2404: _ACEOF
                   2405: 
                   2406: cat >>confdefs.h <<_ACEOF
                   2407: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
                   2408: _ACEOF
                   2409: 
                   2410: cat >>confdefs.h <<_ACEOF
                   2411: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2412: _ACEOF
                   2413: 
                   2414: cat >>confdefs.h <<_ACEOF
                   2415: #define PACKAGE_STRING "$PACKAGE_STRING"
                   2416: _ACEOF
                   2417: 
                   2418: cat >>confdefs.h <<_ACEOF
                   2419: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2420: _ACEOF
                   2421: 
                   2422: cat >>confdefs.h <<_ACEOF
                   2423: #define PACKAGE_URL "$PACKAGE_URL"
                   2424: _ACEOF
                   2425: 
                   2426: 
                   2427: # Let the site file select an alternate cache file if it wants to.
                   2428: # Prefer an explicitly selected file to automatically selected ones.
                   2429: ac_site_file1=NONE
                   2430: ac_site_file2=NONE
                   2431: if test -n "$CONFIG_SITE"; then
                   2432:   # We do not want a PATH search for config.site.
                   2433:   case $CONFIG_SITE in #((
                   2434:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2435:     */*) ac_site_file1=$CONFIG_SITE;;
                   2436:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2437:   esac
                   2438: elif test "x$prefix" != xNONE; then
                   2439:   ac_site_file1=$prefix/share/config.site
                   2440:   ac_site_file2=$prefix/etc/config.site
                   2441: else
                   2442:   ac_site_file1=$ac_default_prefix/share/config.site
                   2443:   ac_site_file2=$ac_default_prefix/etc/config.site
                   2444: fi
                   2445: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2446: do
                   2447:   test "x$ac_site_file" = xNONE && continue
                   2448:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2449:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2450: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2451:     sed 's/^/| /' "$ac_site_file" >&5
                   2452:     . "$ac_site_file" \
                   2453:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2454: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2455: as_fn_error $? "failed to load site script $ac_site_file
                   2456: See \`config.log' for more details" "$LINENO" 5; }
                   2457:   fi
                   2458: done
                   2459: 
                   2460: if test -r "$cache_file"; then
                   2461:   # Some versions of bash will fail to source /dev/null (special files
                   2462:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2463:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2464:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2465: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2466:     case $cache_file in
                   2467:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2468:       *)                      . "./$cache_file";;
                   2469:     esac
                   2470:   fi
                   2471: else
                   2472:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2473: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2474:   >$cache_file
                   2475: fi
                   2476: 
                   2477: as_fn_append ac_header_list " sys/time.h"
                   2478: as_fn_append ac_header_list " unistd.h"
                   2479: as_fn_append ac_func_list " alarm"
                   2480: # Check that the precious variables saved in the cache have kept the same
                   2481: # value.
                   2482: ac_cache_corrupted=false
                   2483: for ac_var in $ac_precious_vars; do
                   2484:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2485:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2486:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2487:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2488:   case $ac_old_set,$ac_new_set in
                   2489:     set,)
                   2490:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2491: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2492:       ac_cache_corrupted=: ;;
                   2493:     ,set)
                   2494:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2495: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2496:       ac_cache_corrupted=: ;;
                   2497:     ,);;
                   2498:     *)
                   2499:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2500:        # differences in whitespace do not lead to failure.
                   2501:        ac_old_val_w=`echo x $ac_old_val`
                   2502:        ac_new_val_w=`echo x $ac_new_val`
                   2503:        if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2504:          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2505: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2506:          ac_cache_corrupted=:
                   2507:        else
                   2508:          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2509: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2510:          eval $ac_var=\$ac_old_val
                   2511:        fi
                   2512:        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2513: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2514:        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2515: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2516:       fi;;
                   2517:   esac
                   2518:   # Pass precious variables to config.status.
                   2519:   if test "$ac_new_set" = set; then
                   2520:     case $ac_new_val in
                   2521:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2522:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2523:     esac
                   2524:     case " $ac_configure_args " in
                   2525:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2526:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2527:     esac
                   2528:   fi
                   2529: done
                   2530: if $ac_cache_corrupted; then
                   2531:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2532: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2533:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2534: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
                   2535:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
                   2536: fi
                   2537: ## -------------------- ##
                   2538: ## Main body of script. ##
                   2539: ## -------------------- ##
                   2540: 
                   2541: ac_ext=c
                   2542: ac_cpp='$CPP $CPPFLAGS'
                   2543: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2544: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2545: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   2546: 
                   2547: 
                   2548: 
                   2549: 
                   2550: 
                   2551: ac_aux_dir=
                   2552: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
                   2553:   if test -f "$ac_dir/install-sh"; then
                   2554:     ac_aux_dir=$ac_dir
                   2555:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2556:     break
                   2557:   elif test -f "$ac_dir/install.sh"; then
                   2558:     ac_aux_dir=$ac_dir
                   2559:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2560:     break
                   2561:   elif test -f "$ac_dir/shtool"; then
                   2562:     ac_aux_dir=$ac_dir
                   2563:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   2564:     break
                   2565:   fi
                   2566: done
                   2567: if test -z "$ac_aux_dir"; then
                   2568:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
                   2569: fi
                   2570: 
                   2571: # These three variables are undocumented and unsupported,
                   2572: # and are intended to be withdrawn in a future Autoconf release.
                   2573: # They can cause serious problems if a builder's source tree is in a directory
                   2574: # whose full name contains unusual characters.
                   2575: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2576: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2577: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
                   2578: 
                   2579: 
                   2580: # Make sure we can run config.sub.
                   2581: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
                   2582:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
                   2583: 
                   2584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2585: $as_echo_n "checking build system type... " >&6; }
                   2586: if ${ac_cv_build+:} false; then :
                   2587:   $as_echo_n "(cached) " >&6
                   2588: else
                   2589:   ac_build_alias=$build_alias
                   2590: test "x$ac_build_alias" = x &&
                   2591:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2592: test "x$ac_build_alias" = x &&
                   2593:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
                   2594: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
                   2595:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
                   2596: 
                   2597: fi
                   2598: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2599: $as_echo "$ac_cv_build" >&6; }
                   2600: case $ac_cv_build in
                   2601: *-*-*) ;;
                   2602: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
                   2603: esac
                   2604: build=$ac_cv_build
                   2605: ac_save_IFS=$IFS; IFS='-'
                   2606: set x $ac_cv_build
                   2607: shift
                   2608: build_cpu=$1
                   2609: build_vendor=$2
                   2610: shift; shift
                   2611: # Remember, the first character of IFS is used to create $*,
                   2612: # except with old shells:
                   2613: build_os=$*
                   2614: IFS=$ac_save_IFS
                   2615: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
                   2616: 
                   2617: 
                   2618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2619: $as_echo_n "checking host system type... " >&6; }
                   2620: if ${ac_cv_host+:} false; then :
                   2621:   $as_echo_n "(cached) " >&6
                   2622: else
                   2623:   if test "x$host_alias" = x; then
                   2624:   ac_cv_host=$ac_cv_build
                   2625: else
                   2626:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
                   2627:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
                   2628: fi
                   2629: 
                   2630: fi
                   2631: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2632: $as_echo "$ac_cv_host" >&6; }
                   2633: case $ac_cv_host in
                   2634: *-*-*) ;;
                   2635: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
                   2636: esac
                   2637: host=$ac_cv_host
                   2638: ac_save_IFS=$IFS; IFS='-'
                   2639: set x $ac_cv_host
                   2640: shift
                   2641: host_cpu=$1
                   2642: host_vendor=$2
                   2643: shift; shift
                   2644: # Remember, the first character of IFS is used to create $*,
                   2645: # except with old shells:
                   2646: host_os=$*
                   2647: IFS=$ac_save_IFS
                   2648: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
                   2649: 
                   2650: 
                   2651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2652: $as_echo_n "checking target system type... " >&6; }
                   2653: if ${ac_cv_target+:} false; then :
                   2654:   $as_echo_n "(cached) " >&6
                   2655: else
                   2656:   if test "x$target_alias" = x; then
                   2657:   ac_cv_target=$ac_cv_host
                   2658: else
                   2659:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
                   2660:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
                   2661: fi
                   2662: 
                   2663: fi
                   2664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2665: $as_echo "$ac_cv_target" >&6; }
                   2666: case $ac_cv_target in
                   2667: *-*-*) ;;
                   2668: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
                   2669: esac
                   2670: target=$ac_cv_target
                   2671: ac_save_IFS=$IFS; IFS='-'
                   2672: set x $ac_cv_target
                   2673: shift
                   2674: target_cpu=$1
                   2675: target_vendor=$2
                   2676: shift; shift
                   2677: # Remember, the first character of IFS is used to create $*,
                   2678: # except with old shells:
                   2679: target_os=$*
                   2680: IFS=$ac_save_IFS
                   2681: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2682: 
                   2683: 
                   2684: # The aliases save the names the user supplied, while $host etc.
                   2685: # will get canonicalized.
                   2686: test -n "$target_alias" &&
                   2687:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2688:     NONENONEs,x,x, &&
                   2689:   program_prefix=${target_alias}-
                   2690: 
1.1.1.4 ! misho    2691: am__api_version='1.12'
1.1       misho    2692: 
                   2693: # Find a good install program.  We prefer a C program (faster),
                   2694: # so one script is as good as another.  But avoid the broken or
                   2695: # incompatible versions:
                   2696: # SysV /etc/install, /usr/sbin/install
                   2697: # SunOS /usr/etc/install
                   2698: # IRIX /sbin/install
                   2699: # AIX /bin/install
                   2700: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2701: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2702: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2703: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2704: # OS/2's system install, which has a completely different semantic
                   2705: # ./install, which can be erroneously created by make from ./install.sh.
                   2706: # Reject install programs that cannot install multiple files.
                   2707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2708: $as_echo_n "checking for a BSD-compatible install... " >&6; }
                   2709: if test -z "$INSTALL"; then
                   2710: if ${ac_cv_path_install+:} false; then :
                   2711:   $as_echo_n "(cached) " >&6
                   2712: else
                   2713:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2714: for as_dir in $PATH
                   2715: do
                   2716:   IFS=$as_save_IFS
                   2717:   test -z "$as_dir" && as_dir=.
                   2718:     # Account for people who put trailing slashes in PATH elements.
                   2719: case $as_dir/ in #((
                   2720:   ./ | .// | /[cC]/* | \
                   2721:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
                   2722:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
                   2723:   /usr/ucb/* ) ;;
                   2724:   *)
                   2725:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2726:     # Don't use installbsd from OSF since it installs stuff as root
                   2727:     # by default.
                   2728:     for ac_prog in ginstall scoinst install; do
                   2729:       for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    2730:        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1       misho    2731:          if test $ac_prog = install &&
                   2732:            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2733:            # AIX install.  It has an incompatible calling convention.
                   2734:            :
                   2735:          elif test $ac_prog = install &&
                   2736:            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2737:            # program-specific install script used by HP pwplus--don't use.
                   2738:            :
                   2739:          else
                   2740:            rm -rf conftest.one conftest.two conftest.dir
                   2741:            echo one > conftest.one
                   2742:            echo two > conftest.two
                   2743:            mkdir conftest.dir
                   2744:            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2745:              test -s conftest.one && test -s conftest.two &&
                   2746:              test -s conftest.dir/conftest.one &&
                   2747:              test -s conftest.dir/conftest.two
                   2748:            then
                   2749:              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2750:              break 3
                   2751:            fi
                   2752:          fi
                   2753:        fi
                   2754:       done
                   2755:     done
                   2756:     ;;
                   2757: esac
                   2758: 
                   2759:   done
                   2760: IFS=$as_save_IFS
                   2761: 
                   2762: rm -rf conftest.one conftest.two conftest.dir
                   2763: 
                   2764: fi
                   2765:   if test "${ac_cv_path_install+set}" = set; then
                   2766:     INSTALL=$ac_cv_path_install
                   2767:   else
                   2768:     # As a last resort, use the slow shell script.  Don't cache a
                   2769:     # value for INSTALL within a source directory, because that will
                   2770:     # break other packages using the cache if that directory is
                   2771:     # removed, or if the value is a relative name.
                   2772:     INSTALL=$ac_install_sh
                   2773:   fi
                   2774: fi
                   2775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2776: $as_echo "$INSTALL" >&6; }
                   2777: 
                   2778: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2779: # It thinks the first close brace ends the variable substitution.
                   2780: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                   2781: 
                   2782: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
                   2783: 
                   2784: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                   2785: 
                   2786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2787: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2788: # Reject unsafe characters in $srcdir or the absolute working directory
                   2789: # name.  Accept space and tab only in the latter.
                   2790: am_lf='
                   2791: '
                   2792: case `pwd` in
                   2793:   *[\\\"\#\$\&\'\`$am_lf]*)
                   2794:     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
                   2795: esac
                   2796: case $srcdir in
                   2797:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
1.1.1.4 ! misho    2798:     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.1       misho    2799: esac
                   2800: 
1.1.1.4 ! misho    2801: # Do 'set' in a subshell so we don't clobber the current shell's
1.1       misho    2802: # arguments.  Must try -L first in case configure is actually a
                   2803: # symlink; some systems play weird games with the mod time of symlinks
                   2804: # (eg FreeBSD returns the mod time of the symlink's containing
                   2805: # directory).
                   2806: if (
1.1.1.4 ! misho    2807:    am_has_slept=no
        !          2808:    for am_try in 1 2; do
        !          2809:      echo "timestamp, slept: $am_has_slept" > conftest.file
        !          2810:      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
        !          2811:      if test "$*" = "X"; then
        !          2812:        # -L didn't work.
        !          2813:        set X `ls -t "$srcdir/configure" conftest.file`
        !          2814:      fi
        !          2815:      if test "$*" != "X $srcdir/configure conftest.file" \
        !          2816:        && test "$*" != "X conftest.file $srcdir/configure"; then
1.1       misho    2817: 
1.1.1.4 ! misho    2818:        # If neither matched, then we have a broken ls.  This can happen
        !          2819:        # if, for instance, CONFIG_SHELL is bash and it inherits a
        !          2820:        # broken ls alias from the environment.  This has actually
        !          2821:        # happened.  Such a system could not be considered "sane".
        !          2822:        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
        !          2823:   alias in your environment" "$LINENO" 5
        !          2824:      fi
        !          2825:      if test "$2" = conftest.file || test $am_try -eq 2; then
        !          2826:        break
        !          2827:      fi
        !          2828:      # Just in case.
        !          2829:      sleep 1
        !          2830:      am_has_slept=yes
        !          2831:    done
1.1       misho    2832:    test "$2" = conftest.file
                   2833:    )
                   2834: then
                   2835:    # Ok.
                   2836:    :
                   2837: else
                   2838:    as_fn_error $? "newly created file is older than distributed files!
                   2839: Check your system clock" "$LINENO" 5
                   2840: fi
                   2841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2842: $as_echo "yes" >&6; }
1.1.1.4 ! misho    2843: # If we didn't sleep, we still need to ensure time stamps of config.status and
        !          2844: # generated files are strictly newer.
        !          2845: am_sleep_pid=
        !          2846: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
        !          2847:   ( sleep 1 ) &
        !          2848:   am_sleep_pid=$!
        !          2849: fi
        !          2850: 
        !          2851: rm -f conftest.file
        !          2852: 
1.1       misho    2853: test "$program_prefix" != NONE &&
                   2854:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2855: # Use a double $ so make ignores it.
                   2856: test "$program_suffix" != NONE &&
                   2857:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2858: # Double any \ or $.
                   2859: # By default was `s,x,x', remove it if useless.
                   2860: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2861: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2862: 
                   2863: # expand $ac_aux_dir to an absolute path
                   2864: am_aux_dir=`cd $ac_aux_dir && pwd`
                   2865: 
                   2866: if test x"${MISSING+set}" != xset; then
                   2867:   case $am_aux_dir in
                   2868:   *\ * | *\    *)
                   2869:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
                   2870:   *)
                   2871:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2872:   esac
                   2873: fi
                   2874: # Use eval to expand $SHELL
                   2875: if eval "$MISSING --run true"; then
                   2876:   am_missing_run="$MISSING --run "
                   2877: else
                   2878:   am_missing_run=
1.1.1.4 ! misho    2879:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
        !          2880: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.1       misho    2881: fi
                   2882: 
                   2883: if test x"${install_sh}" != xset; then
                   2884:   case $am_aux_dir in
                   2885:   *\ * | *\    *)
                   2886:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2887:   *)
                   2888:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2889:   esac
                   2890: fi
                   2891: 
1.1.1.4 ! misho    2892: # Installed binaries are usually stripped using 'strip' when the user
        !          2893: # run "make install-strip".  However 'strip' might not be the right
1.1       misho    2894: # tool to use in cross-compilation environments, therefore Automake
1.1.1.4 ! misho    2895: # will honor the 'STRIP' environment variable to overrule this program.
1.1       misho    2896: if test "$cross_compiling" != no; then
                   2897:   if test -n "$ac_tool_prefix"; then
                   2898:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2899: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2901: $as_echo_n "checking for $ac_word... " >&6; }
                   2902: if ${ac_cv_prog_STRIP+:} false; then :
                   2903:   $as_echo_n "(cached) " >&6
                   2904: else
                   2905:   if test -n "$STRIP"; then
                   2906:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
                   2907: else
                   2908: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2909: for as_dir in $PATH
                   2910: do
                   2911:   IFS=$as_save_IFS
                   2912:   test -z "$as_dir" && as_dir=.
                   2913:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    2914:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    2915:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2916:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2917:     break 2
                   2918:   fi
                   2919: done
                   2920:   done
                   2921: IFS=$as_save_IFS
                   2922: 
                   2923: fi
                   2924: fi
                   2925: STRIP=$ac_cv_prog_STRIP
                   2926: if test -n "$STRIP"; then
                   2927:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   2928: $as_echo "$STRIP" >&6; }
                   2929: else
                   2930:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2931: $as_echo "no" >&6; }
                   2932: fi
                   2933: 
                   2934: 
                   2935: fi
                   2936: if test -z "$ac_cv_prog_STRIP"; then
                   2937:   ac_ct_STRIP=$STRIP
                   2938:   # Extract the first word of "strip", so it can be a program name with args.
                   2939: set dummy strip; ac_word=$2
                   2940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2941: $as_echo_n "checking for $ac_word... " >&6; }
                   2942: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
                   2943:   $as_echo_n "(cached) " >&6
                   2944: else
                   2945:   if test -n "$ac_ct_STRIP"; then
                   2946:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
                   2947: else
                   2948: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2949: for as_dir in $PATH
                   2950: do
                   2951:   IFS=$as_save_IFS
                   2952:   test -z "$as_dir" && as_dir=.
                   2953:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    2954:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    2955:     ac_cv_prog_ac_ct_STRIP="strip"
                   2956:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2957:     break 2
                   2958:   fi
                   2959: done
                   2960:   done
                   2961: IFS=$as_save_IFS
                   2962: 
                   2963: fi
                   2964: fi
                   2965: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   2966: if test -n "$ac_ct_STRIP"; then
                   2967:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   2968: $as_echo "$ac_ct_STRIP" >&6; }
                   2969: else
                   2970:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2971: $as_echo "no" >&6; }
                   2972: fi
                   2973: 
                   2974:   if test "x$ac_ct_STRIP" = x; then
                   2975:     STRIP=":"
                   2976:   else
                   2977:     case $cross_compiling:$ac_tool_warned in
                   2978: yes:)
                   2979: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   2980: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   2981: ac_tool_warned=yes ;;
                   2982: esac
                   2983:     STRIP=$ac_ct_STRIP
                   2984:   fi
                   2985: else
                   2986:   STRIP="$ac_cv_prog_STRIP"
                   2987: fi
                   2988: 
                   2989: fi
                   2990: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
                   2991: 
                   2992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   2993: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   2994: if test -z "$MKDIR_P"; then
                   2995:   if ${ac_cv_path_mkdir+:} false; then :
                   2996:   $as_echo_n "(cached) " >&6
                   2997: else
                   2998:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2999: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
                   3000: do
                   3001:   IFS=$as_save_IFS
                   3002:   test -z "$as_dir" && as_dir=.
                   3003:     for ac_prog in mkdir gmkdir; do
                   3004:         for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    3005:           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.1       misho    3006:           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3007:             'mkdir (GNU coreutils) '* | \
                   3008:             'mkdir (coreutils) '* | \
                   3009:             'mkdir (fileutils) '4.1*)
                   3010:               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3011:               break 3;;
                   3012:           esac
                   3013:         done
                   3014:        done
                   3015:   done
                   3016: IFS=$as_save_IFS
                   3017: 
                   3018: fi
                   3019: 
                   3020:   test -d ./--version && rmdir ./--version
                   3021:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3022:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3023:   else
                   3024:     # As a last resort, use the slow shell script.  Don't cache a
                   3025:     # value for MKDIR_P within a source directory, because that will
                   3026:     # break other packages using the cache if that directory is
                   3027:     # removed, or if the value is a relative name.
                   3028:     MKDIR_P="$ac_install_sh -d"
                   3029:   fi
                   3030: fi
                   3031: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3032: $as_echo "$MKDIR_P" >&6; }
                   3033: 
                   3034: for ac_prog in gawk mawk nawk awk
                   3035: do
                   3036:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3037: set dummy $ac_prog; ac_word=$2
                   3038: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3039: $as_echo_n "checking for $ac_word... " >&6; }
                   3040: if ${ac_cv_prog_AWK+:} false; then :
                   3041:   $as_echo_n "(cached) " >&6
                   3042: else
                   3043:   if test -n "$AWK"; then
                   3044:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   3045: else
                   3046: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3047: for as_dir in $PATH
                   3048: do
                   3049:   IFS=$as_save_IFS
                   3050:   test -z "$as_dir" && as_dir=.
                   3051:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    3052:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3053:     ac_cv_prog_AWK="$ac_prog"
                   3054:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3055:     break 2
                   3056:   fi
                   3057: done
                   3058:   done
                   3059: IFS=$as_save_IFS
                   3060: 
                   3061: fi
                   3062: fi
                   3063: AWK=$ac_cv_prog_AWK
                   3064: if test -n "$AWK"; then
                   3065:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3066: $as_echo "$AWK" >&6; }
                   3067: else
                   3068:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3069: $as_echo "no" >&6; }
                   3070: fi
                   3071: 
                   3072: 
                   3073:   test -n "$AWK" && break
                   3074: done
                   3075: 
                   3076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3077: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3078: set x ${MAKE-make}
                   3079: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
                   3080: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
                   3081:   $as_echo_n "(cached) " >&6
                   3082: else
                   3083:   cat >conftest.make <<\_ACEOF
                   3084: SHELL = /bin/sh
                   3085: all:
                   3086:        @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3087: _ACEOF
                   3088: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
                   3089: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3090:   *@@@%%%=?*=@@@%%%*)
                   3091:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3092:   *)
                   3093:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3094: esac
                   3095: rm -f conftest.make
                   3096: fi
                   3097: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3098:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3099: $as_echo "yes" >&6; }
                   3100:   SET_MAKE=
                   3101: else
                   3102:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3103: $as_echo "no" >&6; }
                   3104:   SET_MAKE="MAKE=${MAKE-make}"
                   3105: fi
                   3106: 
                   3107: rm -rf .tst 2>/dev/null
                   3108: mkdir .tst 2>/dev/null
                   3109: if test -d .tst; then
                   3110:   am__leading_dot=.
                   3111: else
                   3112:   am__leading_dot=_
                   3113: fi
                   3114: rmdir .tst 2>/dev/null
                   3115: 
                   3116: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3117:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3118:   # is not polluted with repeated "-I."
                   3119:   am__isrc=' -I$(srcdir)'
                   3120:   # test to see if srcdir already configured
                   3121:   if test -f $srcdir/config.status; then
                   3122:     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
                   3123:   fi
                   3124: fi
                   3125: 
                   3126: # test whether we have cygpath
                   3127: if test -z "$CYGPATH_W"; then
                   3128:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3129:     CYGPATH_W='cygpath -w'
                   3130:   else
                   3131:     CYGPATH_W=echo
                   3132:   fi
                   3133: fi
                   3134: 
                   3135: 
                   3136: # Define the identity of the package.
                   3137:  PACKAGE='quagga'
1.1.1.4 ! misho    3138:  VERSION='0.99.22'
1.1       misho    3139: 
                   3140: 
                   3141: cat >>confdefs.h <<_ACEOF
                   3142: #define PACKAGE "$PACKAGE"
                   3143: _ACEOF
                   3144: 
                   3145: 
                   3146: cat >>confdefs.h <<_ACEOF
                   3147: #define VERSION "$VERSION"
                   3148: _ACEOF
                   3149: 
                   3150: # Some tools Automake needs.
                   3151: 
                   3152: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3153: 
                   3154: 
                   3155: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3156: 
                   3157: 
                   3158: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3159: 
                   3160: 
                   3161: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3162: 
                   3163: 
                   3164: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3165: 
1.1.1.4 ! misho    3166: # For better backward compatibility.  To be removed once Automake 1.9.x
        !          3167: # dies out for good.  For more background, see:
        !          3168: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
        !          3169: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
        !          3170: mkdir_p='$(MKDIR_P)'
        !          3171: 
1.1       misho    3172: # We need awk for the "check" target.  The system "awk" is bad on
                   3173: # some platforms.
1.1.1.3   misho    3174: # Always define AMTAR for backward compatibility.  Yes, it's still used
                   3175: # in the wild :-(  We should find a proper way to deprecate it ...
                   3176: AMTAR='$${TAR-tar}'
1.1       misho    3177: 
1.1.1.3   misho    3178: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
1.1       misho    3179: 
                   3180: 
                   3181: 
                   3182: 
                   3183: 
                   3184: ac_config_headers="$ac_config_headers config.h"
                   3185: 
                   3186: 
1.1.1.4 ! misho    3187: # Extract the first word of "perl", so it can be a program name with args.
        !          3188: set dummy perl; ac_word=$2
        !          3189: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
        !          3190: $as_echo_n "checking for $ac_word... " >&6; }
        !          3191: if ${ac_cv_path_PERL+:} false; then :
        !          3192:   $as_echo_n "(cached) " >&6
        !          3193: else
        !          3194:   case $PERL in
        !          3195:   [\\/]* | ?:[\\/]*)
        !          3196:   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
        !          3197:   ;;
        !          3198:   *)
        !          3199:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          3200: for as_dir in $PATH
        !          3201: do
        !          3202:   IFS=$as_save_IFS
        !          3203:   test -z "$as_dir" && as_dir=.
        !          3204:     for ac_exec_ext in '' $ac_executable_extensions; do
        !          3205:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          3206:     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
        !          3207:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          3208:     break 2
        !          3209:   fi
        !          3210: done
        !          3211:   done
        !          3212: IFS=$as_save_IFS
        !          3213: 
        !          3214:   ;;
        !          3215: esac
        !          3216: fi
        !          3217: PERL=$ac_cv_path_PERL
        !          3218: if test -n "$PERL"; then
        !          3219:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
        !          3220: $as_echo "$PERL" >&6; }
        !          3221: else
        !          3222:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          3223: $as_echo "no" >&6; }
        !          3224: fi
        !          3225: 
        !          3226: 
1.1       misho    3227: # Extract the first word of "gawk", so it can be a program name with args.
                   3228: set dummy gawk; ac_word=$2
                   3229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3230: $as_echo_n "checking for $ac_word... " >&6; }
                   3231: if ${ac_cv_prog_GAWK+:} false; then :
                   3232:   $as_echo_n "(cached) " >&6
                   3233: else
                   3234:   if test -n "$GAWK"; then
                   3235:   ac_cv_prog_GAWK="$GAWK" # Let the user override the test.
                   3236: else
                   3237: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3238: for as_dir in $PATH
                   3239: do
                   3240:   IFS=$as_save_IFS
                   3241:   test -z "$as_dir" && as_dir=.
                   3242:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    3243:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3244:     ac_cv_prog_GAWK="gawk"
                   3245:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3246:     break 2
                   3247:   fi
                   3248: done
                   3249:   done
                   3250: IFS=$as_save_IFS
                   3251: 
                   3252:   test -z "$ac_cv_prog_GAWK" && ac_cv_prog_GAWK="not-in-PATH"
                   3253: fi
                   3254: fi
                   3255: GAWK=$ac_cv_prog_GAWK
                   3256: if test -n "$GAWK"; then
                   3257:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAWK" >&5
                   3258: $as_echo "$GAWK" >&6; }
                   3259: else
                   3260:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3261: $as_echo "no" >&6; }
                   3262: fi
                   3263: 
                   3264: 
                   3265: if test "x$GAWK" = "xnot-in-PATH" ; then
                   3266:        as_fn_error $? "GNU awk is required for lib/memtype.h made by memtypes.awk.
                   3267: BSD awk complains: awk: gensub doesn't support backreferences (subst \"\1\") " "$LINENO" 5
                   3268: fi
                   3269: 
                   3270: 
                   3271: exampledir=${sysconfdir}
                   3272: # Check whether --enable-exampledir was given.
                   3273: if test "${enable_exampledir+set}" = set; then :
                   3274:   enableval=$enable_exampledir; exampledir="$enableval"
                   3275: fi
                   3276: 
                   3277: 
                   3278: 
                   3279: pkgsrcrcdir=""
                   3280: pkgsrcdir=""
                   3281: # Check whether --enable-pkgsrcrcdir was given.
                   3282: if test "${enable_pkgsrcrcdir+set}" = set; then :
                   3283:   enableval=$enable_pkgsrcrcdir; pkgsrcrcdir="$enableval"; pkgsrcdir="pkgsrc"
                   3284: fi
                   3285: 
                   3286: 
                   3287: 
                   3288: 
                   3289: 
                   3290: # Check whether --with-cflags was given.
                   3291: if test "${with_cflags+set}" = set; then :
                   3292:   withval=$with_cflags;
                   3293: fi
                   3294: 
                   3295: if test "x$with_cflags" != "x" ; then
                   3296:   CFLAGS="$with_cflags" ; cflags_specified=yes ;
                   3297: elif test -n "$CFLAGS" ; then
                   3298:   cflags_specified=yes ;
                   3299: fi
                   3300: 
                   3301: ac_ext=c
                   3302: ac_cpp='$CPP $CPPFLAGS'
                   3303: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3304: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3305: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3306: 
                   3307: ac_ext=c
                   3308: ac_cpp='$CPP $CPPFLAGS'
                   3309: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3310: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3311: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3312: if test -n "$ac_tool_prefix"; then
                   3313:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
                   3314: set dummy ${ac_tool_prefix}gcc; ac_word=$2
                   3315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3316: $as_echo_n "checking for $ac_word... " >&6; }
                   3317: if ${ac_cv_prog_CC+:} false; then :
                   3318:   $as_echo_n "(cached) " >&6
                   3319: else
                   3320:   if test -n "$CC"; then
                   3321:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3322: else
                   3323: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3324: for as_dir in $PATH
                   3325: do
                   3326:   IFS=$as_save_IFS
                   3327:   test -z "$as_dir" && as_dir=.
                   3328:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    3329:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3330:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
                   3331:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3332:     break 2
                   3333:   fi
                   3334: done
                   3335:   done
                   3336: IFS=$as_save_IFS
                   3337: 
                   3338: fi
                   3339: fi
                   3340: CC=$ac_cv_prog_CC
                   3341: if test -n "$CC"; then
                   3342:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3343: $as_echo "$CC" >&6; }
                   3344: else
                   3345:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3346: $as_echo "no" >&6; }
                   3347: fi
                   3348: 
                   3349: 
                   3350: fi
                   3351: if test -z "$ac_cv_prog_CC"; then
                   3352:   ac_ct_CC=$CC
                   3353:   # Extract the first word of "gcc", so it can be a program name with args.
                   3354: set dummy gcc; ac_word=$2
                   3355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3356: $as_echo_n "checking for $ac_word... " >&6; }
                   3357: if ${ac_cv_prog_ac_ct_CC+:} false; then :
                   3358:   $as_echo_n "(cached) " >&6
                   3359: else
                   3360:   if test -n "$ac_ct_CC"; then
                   3361:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   3362: else
                   3363: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3364: for as_dir in $PATH
                   3365: do
                   3366:   IFS=$as_save_IFS
                   3367:   test -z "$as_dir" && as_dir=.
                   3368:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    3369:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3370:     ac_cv_prog_ac_ct_CC="gcc"
                   3371:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3372:     break 2
                   3373:   fi
                   3374: done
                   3375:   done
                   3376: IFS=$as_save_IFS
                   3377: 
                   3378: fi
                   3379: fi
                   3380: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3381: if test -n "$ac_ct_CC"; then
                   3382:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3383: $as_echo "$ac_ct_CC" >&6; }
                   3384: else
                   3385:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3386: $as_echo "no" >&6; }
                   3387: fi
                   3388: 
                   3389:   if test "x$ac_ct_CC" = x; then
                   3390:     CC=""
                   3391:   else
                   3392:     case $cross_compiling:$ac_tool_warned in
                   3393: yes:)
                   3394: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3395: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3396: ac_tool_warned=yes ;;
                   3397: esac
                   3398:     CC=$ac_ct_CC
                   3399:   fi
                   3400: else
                   3401:   CC="$ac_cv_prog_CC"
                   3402: fi
                   3403: 
                   3404: if test -z "$CC"; then
                   3405:           if test -n "$ac_tool_prefix"; then
                   3406:     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
                   3407: set dummy ${ac_tool_prefix}cc; ac_word=$2
                   3408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3409: $as_echo_n "checking for $ac_word... " >&6; }
                   3410: if ${ac_cv_prog_CC+:} false; then :
                   3411:   $as_echo_n "(cached) " >&6
                   3412: else
                   3413:   if test -n "$CC"; then
                   3414:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3415: else
                   3416: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3417: for as_dir in $PATH
                   3418: do
                   3419:   IFS=$as_save_IFS
                   3420:   test -z "$as_dir" && as_dir=.
                   3421:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    3422:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3423:     ac_cv_prog_CC="${ac_tool_prefix}cc"
                   3424:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3425:     break 2
                   3426:   fi
                   3427: done
                   3428:   done
                   3429: IFS=$as_save_IFS
                   3430: 
                   3431: fi
                   3432: fi
                   3433: CC=$ac_cv_prog_CC
                   3434: if test -n "$CC"; then
                   3435:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3436: $as_echo "$CC" >&6; }
                   3437: else
                   3438:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3439: $as_echo "no" >&6; }
                   3440: fi
                   3441: 
                   3442: 
                   3443:   fi
                   3444: fi
                   3445: if test -z "$CC"; then
                   3446:   # Extract the first word of "cc", so it can be a program name with args.
                   3447: set dummy cc; ac_word=$2
                   3448: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3449: $as_echo_n "checking for $ac_word... " >&6; }
                   3450: if ${ac_cv_prog_CC+:} false; then :
                   3451:   $as_echo_n "(cached) " >&6
                   3452: else
                   3453:   if test -n "$CC"; then
                   3454:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3455: else
                   3456:   ac_prog_rejected=no
                   3457: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3458: for as_dir in $PATH
                   3459: do
                   3460:   IFS=$as_save_IFS
                   3461:   test -z "$as_dir" && as_dir=.
                   3462:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    3463:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3464:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
                   3465:        ac_prog_rejected=yes
                   3466:        continue
                   3467:      fi
                   3468:     ac_cv_prog_CC="cc"
                   3469:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3470:     break 2
                   3471:   fi
                   3472: done
                   3473:   done
                   3474: IFS=$as_save_IFS
                   3475: 
                   3476: if test $ac_prog_rejected = yes; then
                   3477:   # We found a bogon in the path, so make sure we never use it.
                   3478:   set dummy $ac_cv_prog_CC
                   3479:   shift
                   3480:   if test $# != 0; then
                   3481:     # We chose a different compiler from the bogus one.
                   3482:     # However, it has the same basename, so the bogon will be chosen
                   3483:     # first if we set CC to just the basename; use the full file name.
                   3484:     shift
                   3485:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
                   3486:   fi
                   3487: fi
                   3488: fi
                   3489: fi
                   3490: CC=$ac_cv_prog_CC
                   3491: if test -n "$CC"; then
                   3492:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3493: $as_echo "$CC" >&6; }
                   3494: else
                   3495:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3496: $as_echo "no" >&6; }
                   3497: fi
                   3498: 
                   3499: 
                   3500: fi
                   3501: if test -z "$CC"; then
                   3502:   if test -n "$ac_tool_prefix"; then
                   3503:   for ac_prog in cl.exe
                   3504:   do
                   3505:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3506: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3508: $as_echo_n "checking for $ac_word... " >&6; }
                   3509: if ${ac_cv_prog_CC+:} false; then :
                   3510:   $as_echo_n "(cached) " >&6
                   3511: else
                   3512:   if test -n "$CC"; then
                   3513:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3514: else
                   3515: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3516: for as_dir in $PATH
                   3517: do
                   3518:   IFS=$as_save_IFS
                   3519:   test -z "$as_dir" && as_dir=.
                   3520:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    3521:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3522:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3523:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3524:     break 2
                   3525:   fi
                   3526: done
                   3527:   done
                   3528: IFS=$as_save_IFS
                   3529: 
                   3530: fi
                   3531: fi
                   3532: CC=$ac_cv_prog_CC
                   3533: if test -n "$CC"; then
                   3534:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3535: $as_echo "$CC" >&6; }
                   3536: else
                   3537:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3538: $as_echo "no" >&6; }
                   3539: fi
                   3540: 
                   3541: 
                   3542:     test -n "$CC" && break
                   3543:   done
                   3544: fi
                   3545: if test -z "$CC"; then
                   3546:   ac_ct_CC=$CC
                   3547:   for ac_prog in cl.exe
                   3548: do
                   3549:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3550: set dummy $ac_prog; ac_word=$2
                   3551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3552: $as_echo_n "checking for $ac_word... " >&6; }
                   3553: if ${ac_cv_prog_ac_ct_CC+:} false; then :
                   3554:   $as_echo_n "(cached) " >&6
                   3555: else
                   3556:   if test -n "$ac_ct_CC"; then
                   3557:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   3558: else
                   3559: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3560: for as_dir in $PATH
                   3561: do
                   3562:   IFS=$as_save_IFS
                   3563:   test -z "$as_dir" && as_dir=.
                   3564:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    3565:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3566:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3567:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3568:     break 2
                   3569:   fi
                   3570: done
                   3571:   done
                   3572: IFS=$as_save_IFS
                   3573: 
                   3574: fi
                   3575: fi
                   3576: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3577: if test -n "$ac_ct_CC"; then
                   3578:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3579: $as_echo "$ac_ct_CC" >&6; }
                   3580: else
                   3581:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3582: $as_echo "no" >&6; }
                   3583: fi
                   3584: 
                   3585: 
                   3586:   test -n "$ac_ct_CC" && break
                   3587: done
                   3588: 
                   3589:   if test "x$ac_ct_CC" = x; then
                   3590:     CC=""
                   3591:   else
                   3592:     case $cross_compiling:$ac_tool_warned in
                   3593: yes:)
                   3594: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3595: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3596: ac_tool_warned=yes ;;
                   3597: esac
                   3598:     CC=$ac_ct_CC
                   3599:   fi
                   3600: fi
                   3601: 
                   3602: fi
                   3603: 
                   3604: 
                   3605: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3606: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3607: as_fn_error $? "no acceptable C compiler found in \$PATH
                   3608: See \`config.log' for more details" "$LINENO" 5; }
                   3609: 
                   3610: # Provide some information about the compiler.
                   3611: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3612: set X $ac_compile
                   3613: ac_compiler=$2
                   3614: for ac_option in --version -v -V -qversion; do
                   3615:   { { ac_try="$ac_compiler $ac_option >&5"
                   3616: case "(($ac_try" in
                   3617:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3618:   *) ac_try_echo=$ac_try;;
                   3619: esac
                   3620: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3621: $as_echo "$ac_try_echo"; } >&5
                   3622:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3623:   ac_status=$?
                   3624:   if test -s conftest.err; then
                   3625:     sed '10a\
                   3626: ... rest of stderr output deleted ...
                   3627:          10q' conftest.err >conftest.er1
                   3628:     cat conftest.er1 >&5
                   3629:   fi
                   3630:   rm -f conftest.er1 conftest.err
                   3631:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3632:   test $ac_status = 0; }
                   3633: done
                   3634: 
                   3635: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3636: /* end confdefs.h.  */
                   3637: 
                   3638: int
                   3639: main ()
                   3640: {
                   3641: 
                   3642:   ;
                   3643:   return 0;
                   3644: }
                   3645: _ACEOF
                   3646: ac_clean_files_save=$ac_clean_files
                   3647: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3648: # Try to create an executable without -o first, disregard a.out.
                   3649: # It will help us diagnose broken compilers, and finding out an intuition
                   3650: # of exeext.
                   3651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3652: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3653: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
                   3654: 
                   3655: # The possible output files:
                   3656: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
                   3657: 
                   3658: ac_rmfiles=
                   3659: for ac_file in $ac_files
                   3660: do
                   3661:   case $ac_file in
                   3662:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3663:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3664:   esac
                   3665: done
                   3666: rm -f $ac_rmfiles
                   3667: 
                   3668: if { { ac_try="$ac_link_default"
                   3669: case "(($ac_try" in
                   3670:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3671:   *) ac_try_echo=$ac_try;;
                   3672: esac
                   3673: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3674: $as_echo "$ac_try_echo"; } >&5
                   3675:   (eval "$ac_link_default") 2>&5
                   3676:   ac_status=$?
                   3677:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3678:   test $ac_status = 0; }; then :
                   3679:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3680: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3681: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3682: # so that the user can short-circuit this test for compilers unknown to
                   3683: # Autoconf.
                   3684: for ac_file in $ac_files ''
                   3685: do
                   3686:   test -f "$ac_file" || continue
                   3687:   case $ac_file in
                   3688:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3689:        ;;
                   3690:     [ab].out )
                   3691:        # We found the default executable, but exeext='' is most
                   3692:        # certainly right.
                   3693:        break;;
                   3694:     *.* )
                   3695:        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3696:        then :; else
                   3697:           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3698:        fi
                   3699:        # We set ac_cv_exeext here because the later test for it is not
                   3700:        # safe: cross compilers may not add the suffix if given an `-o'
                   3701:        # argument, so we may need to know it at that point already.
                   3702:        # Even if this section looks crufty: it has the advantage of
                   3703:        # actually working.
                   3704:        break;;
                   3705:     * )
                   3706:        break;;
                   3707:   esac
                   3708: done
                   3709: test "$ac_cv_exeext" = no && ac_cv_exeext=
                   3710: 
                   3711: else
                   3712:   ac_file=''
                   3713: fi
                   3714: if test -z "$ac_file"; then :
                   3715:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3716: $as_echo "no" >&6; }
                   3717: $as_echo "$as_me: failed program was:" >&5
                   3718: sed 's/^/| /' conftest.$ac_ext >&5
                   3719: 
                   3720: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3721: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3722: as_fn_error 77 "C compiler cannot create executables
                   3723: See \`config.log' for more details" "$LINENO" 5; }
                   3724: else
                   3725:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3726: $as_echo "yes" >&6; }
                   3727: fi
                   3728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3729: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3731: $as_echo "$ac_file" >&6; }
                   3732: ac_exeext=$ac_cv_exeext
                   3733: 
                   3734: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3735: ac_clean_files=$ac_clean_files_save
                   3736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3737: $as_echo_n "checking for suffix of executables... " >&6; }
                   3738: if { { ac_try="$ac_link"
                   3739: case "(($ac_try" in
                   3740:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3741:   *) ac_try_echo=$ac_try;;
                   3742: esac
                   3743: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3744: $as_echo "$ac_try_echo"; } >&5
                   3745:   (eval "$ac_link") 2>&5
                   3746:   ac_status=$?
                   3747:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3748:   test $ac_status = 0; }; then :
                   3749:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3750: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3751: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3752: # `rm'.
                   3753: for ac_file in conftest.exe conftest conftest.*; do
                   3754:   test -f "$ac_file" || continue
                   3755:   case $ac_file in
                   3756:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3757:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3758:          break;;
                   3759:     * ) break;;
                   3760:   esac
                   3761: done
                   3762: else
                   3763:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3764: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3765: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
                   3766: See \`config.log' for more details" "$LINENO" 5; }
                   3767: fi
                   3768: rm -f conftest conftest$ac_cv_exeext
                   3769: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3770: $as_echo "$ac_cv_exeext" >&6; }
                   3771: 
                   3772: rm -f conftest.$ac_ext
                   3773: EXEEXT=$ac_cv_exeext
                   3774: ac_exeext=$EXEEXT
                   3775: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3776: /* end confdefs.h.  */
                   3777: #include <stdio.h>
                   3778: int
                   3779: main ()
                   3780: {
                   3781: FILE *f = fopen ("conftest.out", "w");
                   3782:  return ferror (f) || fclose (f) != 0;
                   3783: 
                   3784:   ;
                   3785:   return 0;
                   3786: }
                   3787: _ACEOF
                   3788: ac_clean_files="$ac_clean_files conftest.out"
                   3789: # Check that the compiler produces executables we can run.  If not, either
                   3790: # the compiler is broken, or we cross compile.
                   3791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3792: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3793: if test "$cross_compiling" != yes; then
                   3794:   { { ac_try="$ac_link"
                   3795: case "(($ac_try" in
                   3796:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3797:   *) ac_try_echo=$ac_try;;
                   3798: esac
                   3799: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3800: $as_echo "$ac_try_echo"; } >&5
                   3801:   (eval "$ac_link") 2>&5
                   3802:   ac_status=$?
                   3803:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3804:   test $ac_status = 0; }
                   3805:   if { ac_try='./conftest$ac_cv_exeext'
                   3806:   { { case "(($ac_try" in
                   3807:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3808:   *) ac_try_echo=$ac_try;;
                   3809: esac
                   3810: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3811: $as_echo "$ac_try_echo"; } >&5
                   3812:   (eval "$ac_try") 2>&5
                   3813:   ac_status=$?
                   3814:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3815:   test $ac_status = 0; }; }; then
                   3816:     cross_compiling=no
                   3817:   else
                   3818:     if test "$cross_compiling" = maybe; then
                   3819:        cross_compiling=yes
                   3820:     else
                   3821:        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3822: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3823: as_fn_error $? "cannot run C compiled programs.
                   3824: If you meant to cross compile, use \`--host'.
                   3825: See \`config.log' for more details" "$LINENO" 5; }
                   3826:     fi
                   3827:   fi
                   3828: fi
                   3829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3830: $as_echo "$cross_compiling" >&6; }
                   3831: 
                   3832: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3833: ac_clean_files=$ac_clean_files_save
                   3834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3835: $as_echo_n "checking for suffix of object files... " >&6; }
                   3836: if ${ac_cv_objext+:} false; then :
                   3837:   $as_echo_n "(cached) " >&6
                   3838: else
                   3839:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3840: /* end confdefs.h.  */
                   3841: 
                   3842: int
                   3843: main ()
                   3844: {
                   3845: 
                   3846:   ;
                   3847:   return 0;
                   3848: }
                   3849: _ACEOF
                   3850: rm -f conftest.o conftest.obj
                   3851: if { { ac_try="$ac_compile"
                   3852: case "(($ac_try" in
                   3853:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3854:   *) ac_try_echo=$ac_try;;
                   3855: esac
                   3856: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3857: $as_echo "$ac_try_echo"; } >&5
                   3858:   (eval "$ac_compile") 2>&5
                   3859:   ac_status=$?
                   3860:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3861:   test $ac_status = 0; }; then :
                   3862:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3863:   test -f "$ac_file" || continue;
                   3864:   case $ac_file in
                   3865:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3866:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3867:        break;;
                   3868:   esac
                   3869: done
                   3870: else
                   3871:   $as_echo "$as_me: failed program was:" >&5
                   3872: sed 's/^/| /' conftest.$ac_ext >&5
                   3873: 
                   3874: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3875: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3876: as_fn_error $? "cannot compute suffix of object files: cannot compile
                   3877: See \`config.log' for more details" "$LINENO" 5; }
                   3878: fi
                   3879: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3880: fi
                   3881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3882: $as_echo "$ac_cv_objext" >&6; }
                   3883: OBJEXT=$ac_cv_objext
                   3884: ac_objext=$OBJEXT
                   3885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3886: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
                   3887: if ${ac_cv_c_compiler_gnu+:} false; then :
                   3888:   $as_echo_n "(cached) " >&6
                   3889: else
                   3890:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3891: /* end confdefs.h.  */
                   3892: 
                   3893: int
                   3894: main ()
                   3895: {
                   3896: #ifndef __GNUC__
                   3897:        choke me
                   3898: #endif
                   3899: 
                   3900:   ;
                   3901:   return 0;
                   3902: }
                   3903: _ACEOF
                   3904: if ac_fn_c_try_compile "$LINENO"; then :
                   3905:   ac_compiler_gnu=yes
                   3906: else
                   3907:   ac_compiler_gnu=no
                   3908: fi
                   3909: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3910: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   3911: 
                   3912: fi
                   3913: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3914: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3915: if test $ac_compiler_gnu = yes; then
                   3916:   GCC=yes
                   3917: else
                   3918:   GCC=
                   3919: fi
                   3920: ac_test_CFLAGS=${CFLAGS+set}
                   3921: ac_save_CFLAGS=$CFLAGS
                   3922: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3923: $as_echo_n "checking whether $CC accepts -g... " >&6; }
                   3924: if ${ac_cv_prog_cc_g+:} false; then :
                   3925:   $as_echo_n "(cached) " >&6
                   3926: else
                   3927:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3928:    ac_c_werror_flag=yes
                   3929:    ac_cv_prog_cc_g=no
                   3930:    CFLAGS="-g"
                   3931:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3932: /* end confdefs.h.  */
                   3933: 
                   3934: int
                   3935: main ()
                   3936: {
                   3937: 
                   3938:   ;
                   3939:   return 0;
                   3940: }
                   3941: _ACEOF
                   3942: if ac_fn_c_try_compile "$LINENO"; then :
                   3943:   ac_cv_prog_cc_g=yes
                   3944: else
                   3945:   CFLAGS=""
                   3946:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3947: /* end confdefs.h.  */
                   3948: 
                   3949: int
                   3950: main ()
                   3951: {
                   3952: 
                   3953:   ;
                   3954:   return 0;
                   3955: }
                   3956: _ACEOF
                   3957: if ac_fn_c_try_compile "$LINENO"; then :
                   3958: 
                   3959: else
                   3960:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3961:         CFLAGS="-g"
                   3962:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3963: /* end confdefs.h.  */
                   3964: 
                   3965: int
                   3966: main ()
                   3967: {
                   3968: 
                   3969:   ;
                   3970:   return 0;
                   3971: }
                   3972: _ACEOF
                   3973: if ac_fn_c_try_compile "$LINENO"; then :
                   3974:   ac_cv_prog_cc_g=yes
                   3975: fi
                   3976: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3977: fi
                   3978: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3979: fi
                   3980: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3981:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3982: fi
                   3983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3984: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3985: if test "$ac_test_CFLAGS" = set; then
                   3986:   CFLAGS=$ac_save_CFLAGS
                   3987: elif test $ac_cv_prog_cc_g = yes; then
                   3988:   if test "$GCC" = yes; then
                   3989:     CFLAGS="-g -O2"
                   3990:   else
                   3991:     CFLAGS="-g"
                   3992:   fi
                   3993: else
                   3994:   if test "$GCC" = yes; then
                   3995:     CFLAGS="-O2"
                   3996:   else
                   3997:     CFLAGS=
                   3998:   fi
                   3999: fi
                   4000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   4001: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
                   4002: if ${ac_cv_prog_cc_c89+:} false; then :
                   4003:   $as_echo_n "(cached) " >&6
                   4004: else
                   4005:   ac_cv_prog_cc_c89=no
                   4006: ac_save_CC=$CC
                   4007: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4008: /* end confdefs.h.  */
                   4009: #include <stdarg.h>
                   4010: #include <stdio.h>
1.1.1.3   misho    4011: struct stat;
1.1       misho    4012: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   4013: struct buf { int x; };
                   4014: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   4015: static char *e (p, i)
                   4016:      char **p;
                   4017:      int i;
                   4018: {
                   4019:   return p[i];
                   4020: }
                   4021: static char *f (char * (*g) (char **, int), char **p, ...)
                   4022: {
                   4023:   char *s;
                   4024:   va_list v;
                   4025:   va_start (v,p);
                   4026:   s = g (p, va_arg (v,int));
                   4027:   va_end (v);
                   4028:   return s;
                   4029: }
                   4030: 
                   4031: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   4032:    function prototypes and stuff, but not '\xHH' hex character constants.
                   4033:    These don't provoke an error unfortunately, instead are silently treated
                   4034:    as 'x'.  The following induces an error, until -std is added to get
                   4035:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   4036:    array size at least.  It's necessary to write '\x00'==0 to get something
                   4037:    that's true only with -std.  */
                   4038: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
                   4039: 
                   4040: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   4041:    inside strings and character constants.  */
                   4042: #define FOO(x) 'x'
                   4043: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
                   4044: 
                   4045: int test (int i, double x);
                   4046: struct s1 {int (*f) (int a);};
                   4047: struct s2 {int (*f) (double a);};
                   4048: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   4049: int argc;
                   4050: char **argv;
                   4051: int
                   4052: main ()
                   4053: {
                   4054: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                   4055:   ;
                   4056:   return 0;
                   4057: }
                   4058: _ACEOF
                   4059: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   4060:        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   4061: do
                   4062:   CC="$ac_save_CC $ac_arg"
                   4063:   if ac_fn_c_try_compile "$LINENO"; then :
                   4064:   ac_cv_prog_cc_c89=$ac_arg
                   4065: fi
                   4066: rm -f core conftest.err conftest.$ac_objext
                   4067:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   4068: done
                   4069: rm -f conftest.$ac_ext
                   4070: CC=$ac_save_CC
                   4071: 
                   4072: fi
                   4073: # AC_CACHE_VAL
                   4074: case "x$ac_cv_prog_cc_c89" in
                   4075:   x)
                   4076:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   4077: $as_echo "none needed" >&6; } ;;
                   4078:   xno)
                   4079:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   4080: $as_echo "unsupported" >&6; } ;;
                   4081:   *)
                   4082:     CC="$CC $ac_cv_prog_cc_c89"
                   4083:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   4084: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
                   4085: esac
                   4086: if test "x$ac_cv_prog_cc_c89" != xno; then :
                   4087: 
                   4088: fi
                   4089: 
                   4090: ac_ext=c
                   4091: ac_cpp='$CPP $CPPFLAGS'
                   4092: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4093: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4094: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4095: DEPDIR="${am__leading_dot}deps"
                   4096: 
                   4097: ac_config_commands="$ac_config_commands depfiles"
                   4098: 
                   4099: 
                   4100: am_make=${MAKE-make}
                   4101: cat > confinc << 'END'
                   4102: am__doit:
                   4103:        @echo this is the am__doit target
                   4104: .PHONY: am__doit
                   4105: END
                   4106: # If we don't find an include directive, just comment out the code.
                   4107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   4108: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   4109: am__include="#"
                   4110: am__quote=
                   4111: _am_result=none
                   4112: # First try GNU make style include.
                   4113: echo "include confinc" > confmf
1.1.1.4 ! misho    4114: # Ignore all kinds of additional output from 'make'.
1.1       misho    4115: case `$am_make -s -f confmf 2> /dev/null` in #(
                   4116: *the\ am__doit\ target*)
                   4117:   am__include=include
                   4118:   am__quote=
                   4119:   _am_result=GNU
                   4120:   ;;
                   4121: esac
                   4122: # Now try BSD make style include.
                   4123: if test "$am__include" = "#"; then
                   4124:    echo '.include "confinc"' > confmf
                   4125:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   4126:    *the\ am__doit\ target*)
                   4127:      am__include=.include
                   4128:      am__quote="\""
                   4129:      _am_result=BSD
                   4130:      ;;
                   4131:    esac
                   4132: fi
                   4133: 
                   4134: 
                   4135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   4136: $as_echo "$_am_result" >&6; }
                   4137: rm -f confinc confmf
                   4138: 
                   4139: # Check whether --enable-dependency-tracking was given.
                   4140: if test "${enable_dependency_tracking+set}" = set; then :
                   4141:   enableval=$enable_dependency_tracking;
                   4142: fi
                   4143: 
                   4144: if test "x$enable_dependency_tracking" != xno; then
                   4145:   am_depcomp="$ac_aux_dir/depcomp"
                   4146:   AMDEPBACKSLASH='\'
1.1.1.2   misho    4147:   am__nodep='_no'
1.1       misho    4148: fi
                   4149:  if test "x$enable_dependency_tracking" != xno; then
                   4150:   AMDEP_TRUE=
                   4151:   AMDEP_FALSE='#'
                   4152: else
                   4153:   AMDEP_TRUE='#'
                   4154:   AMDEP_FALSE=
                   4155: fi
                   4156: 
                   4157: 
                   4158: 
                   4159: depcc="$CC"   am_compiler_list=
                   4160: 
                   4161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4162: $as_echo_n "checking dependency style of $depcc... " >&6; }
                   4163: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
                   4164:   $as_echo_n "(cached) " >&6
                   4165: else
                   4166:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4167:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4168:   # making bogus files that we don't know about and never remove.  For
                   4169:   # instance it was reported that on HP-UX the gcc test will end up
1.1.1.4 ! misho    4170:   # making a dummy file named 'D' -- because '-MD' means "put the output
        !          4171:   # in D".
1.1.1.2   misho    4172:   rm -rf conftest.dir
1.1       misho    4173:   mkdir conftest.dir
                   4174:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4175:   # using a relative directory.
                   4176:   cp "$am_depcomp" conftest.dir
                   4177:   cd conftest.dir
                   4178:   # We will build objects and dependencies in a subdirectory because
                   4179:   # it helps to detect inapplicable dependency modes.  For instance
                   4180:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4181:   # side effect of compilation, but ICC will put the dependencies in
                   4182:   # the current directory while Tru64 will put them in the object
                   4183:   # directory.
                   4184:   mkdir sub
                   4185: 
                   4186:   am_cv_CC_dependencies_compiler_type=none
                   4187:   if test "$am_compiler_list" = ""; then
                   4188:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4189:   fi
                   4190:   am__universal=false
                   4191:   case " $depcc " in #(
                   4192:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4193:      esac
                   4194: 
                   4195:   for depmode in $am_compiler_list; do
                   4196:     # Setup a source with many dependencies, because some compilers
                   4197:     # like to wrap large dependency lists on column 80 (with \), and
                   4198:     # we should not choose a depcomp mode which is confused by this.
                   4199:     #
                   4200:     # We need to recreate these files for each test, as the compiler may
                   4201:     # overwrite some of them when testing with obscure command lines.
                   4202:     # This happens at least with the AIX C compiler.
                   4203:     : > sub/conftest.c
                   4204:     for i in 1 2 3 4 5 6; do
                   4205:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.1.1.4 ! misho    4206:       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
        !          4207:       # Solaris 10 /bin/sh.
        !          4208:       echo '/* dummy */' > sub/conftst$i.h
1.1       misho    4209:     done
                   4210:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4211: 
1.1.1.4 ! misho    4212:     # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.1       misho    4213:     # mode.  It turns out that the SunPro C++ compiler does not properly
1.1.1.4 ! misho    4214:     # handle '-M -o', and we need to detect this.  Also, some Intel
        !          4215:     # versions had trouble with output in subdirs.
1.1       misho    4216:     am__obj=sub/conftest.${OBJEXT-o}
                   4217:     am__minus_obj="-o $am__obj"
                   4218:     case $depmode in
                   4219:     gcc)
                   4220:       # This depmode causes a compiler race in universal mode.
                   4221:       test "$am__universal" = false || continue
                   4222:       ;;
                   4223:     nosideeffect)
1.1.1.4 ! misho    4224:       # After this tag, mechanisms are not by side-effect, so they'll
        !          4225:       # only be used when explicitly requested.
1.1       misho    4226:       if test "x$enable_dependency_tracking" = xyes; then
                   4227:        continue
                   4228:       else
                   4229:        break
                   4230:       fi
                   4231:       ;;
1.1.1.2   misho    4232:     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1.1.1.4 ! misho    4233:       # This compiler won't grok '-c -o', but also, the minuso test has
1.1       misho    4234:       # not run yet.  These depmodes are late enough in the game, and
                   4235:       # so weak that their functioning should not be impacted.
                   4236:       am__obj=conftest.${OBJEXT-o}
                   4237:       am__minus_obj=
                   4238:       ;;
                   4239:     none) break ;;
                   4240:     esac
                   4241:     if depmode=$depmode \
                   4242:        source=sub/conftest.c object=$am__obj \
                   4243:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4244:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4245:          >/dev/null 2>conftest.err &&
                   4246:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4247:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4248:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4249:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4250:       # icc doesn't choke on unknown options, it will just issue warnings
                   4251:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4252:       # that says an option was ignored or not supported.
                   4253:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4254:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4255:       # The diagnosis changed in icc 8.0:
                   4256:       #   icc: Command line remark: option '-MP' not supported
                   4257:       if (grep 'ignoring option' conftest.err ||
                   4258:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4259:         am_cv_CC_dependencies_compiler_type=$depmode
                   4260:         break
                   4261:       fi
                   4262:     fi
                   4263:   done
                   4264: 
                   4265:   cd ..
                   4266:   rm -rf conftest.dir
                   4267: else
                   4268:   am_cv_CC_dependencies_compiler_type=none
                   4269: fi
                   4270: 
                   4271: fi
                   4272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   4273: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   4274: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
                   4275: 
                   4276:  if
                   4277:   test "x$enable_dependency_tracking" != xno \
                   4278:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   4279:   am__fastdepCC_TRUE=
                   4280:   am__fastdepCC_FALSE='#'
                   4281: else
                   4282:   am__fastdepCC_TRUE='#'
                   4283:   am__fastdepCC_FALSE=
                   4284: fi
                   4285: 
                   4286: 
                   4287: ac_ext=c
                   4288: ac_cpp='$CPP $CPPFLAGS'
                   4289: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4290: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4291: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4292: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   4293: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   4294: # On Suns, sometimes $CPP names a directory.
                   4295: if test -n "$CPP" && test -d "$CPP"; then
                   4296:   CPP=
                   4297: fi
                   4298: if test -z "$CPP"; then
                   4299:   if ${ac_cv_prog_CPP+:} false; then :
                   4300:   $as_echo_n "(cached) " >&6
                   4301: else
                   4302:       # Double quotes because CPP needs to be expanded
                   4303:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   4304:     do
                   4305:       ac_preproc_ok=false
                   4306: for ac_c_preproc_warn_flag in '' yes
                   4307: do
                   4308:   # Use a header file that comes with gcc, so configuring glibc
                   4309:   # with a fresh cross-compiler works.
                   4310:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   4311:   # <limits.h> exists even on freestanding compilers.
                   4312:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   4313:   # not just through cpp. "Syntax error" is here to catch this case.
                   4314:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4315: /* end confdefs.h.  */
                   4316: #ifdef __STDC__
                   4317: # include <limits.h>
                   4318: #else
                   4319: # include <assert.h>
                   4320: #endif
                   4321:                     Syntax error
                   4322: _ACEOF
                   4323: if ac_fn_c_try_cpp "$LINENO"; then :
                   4324: 
                   4325: else
                   4326:   # Broken: fails on valid input.
                   4327: continue
                   4328: fi
                   4329: rm -f conftest.err conftest.i conftest.$ac_ext
                   4330: 
                   4331:   # OK, works on sane cases.  Now check whether nonexistent headers
                   4332:   # can be detected and how.
                   4333:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4334: /* end confdefs.h.  */
                   4335: #include <ac_nonexistent.h>
                   4336: _ACEOF
                   4337: if ac_fn_c_try_cpp "$LINENO"; then :
                   4338:   # Broken: success on invalid input.
                   4339: continue
                   4340: else
                   4341:   # Passes both tests.
                   4342: ac_preproc_ok=:
                   4343: break
                   4344: fi
                   4345: rm -f conftest.err conftest.i conftest.$ac_ext
                   4346: 
                   4347: done
                   4348: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   4349: rm -f conftest.i conftest.err conftest.$ac_ext
                   4350: if $ac_preproc_ok; then :
                   4351:   break
                   4352: fi
                   4353: 
                   4354:     done
                   4355:     ac_cv_prog_CPP=$CPP
                   4356: 
                   4357: fi
                   4358:   CPP=$ac_cv_prog_CPP
                   4359: else
                   4360:   ac_cv_prog_CPP=$CPP
                   4361: fi
                   4362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   4363: $as_echo "$CPP" >&6; }
                   4364: ac_preproc_ok=false
                   4365: for ac_c_preproc_warn_flag in '' yes
                   4366: do
                   4367:   # Use a header file that comes with gcc, so configuring glibc
                   4368:   # with a fresh cross-compiler works.
                   4369:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   4370:   # <limits.h> exists even on freestanding compilers.
                   4371:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   4372:   # not just through cpp. "Syntax error" is here to catch this case.
                   4373:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4374: /* end confdefs.h.  */
                   4375: #ifdef __STDC__
                   4376: # include <limits.h>
                   4377: #else
                   4378: # include <assert.h>
                   4379: #endif
                   4380:                     Syntax error
                   4381: _ACEOF
                   4382: if ac_fn_c_try_cpp "$LINENO"; then :
                   4383: 
                   4384: else
                   4385:   # Broken: fails on valid input.
                   4386: continue
                   4387: fi
                   4388: rm -f conftest.err conftest.i conftest.$ac_ext
                   4389: 
                   4390:   # OK, works on sane cases.  Now check whether nonexistent headers
                   4391:   # can be detected and how.
                   4392:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4393: /* end confdefs.h.  */
                   4394: #include <ac_nonexistent.h>
                   4395: _ACEOF
                   4396: if ac_fn_c_try_cpp "$LINENO"; then :
                   4397:   # Broken: success on invalid input.
                   4398: continue
                   4399: else
                   4400:   # Passes both tests.
                   4401: ac_preproc_ok=:
                   4402: break
                   4403: fi
                   4404: rm -f conftest.err conftest.i conftest.$ac_ext
                   4405: 
                   4406: done
                   4407: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   4408: rm -f conftest.i conftest.err conftest.$ac_ext
                   4409: if $ac_preproc_ok; then :
                   4410: 
                   4411: else
                   4412:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   4413: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   4414: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
                   4415: See \`config.log' for more details" "$LINENO" 5; }
                   4416: fi
                   4417: 
                   4418: ac_ext=c
                   4419: ac_cpp='$CPP $CPPFLAGS'
                   4420: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4421: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4422: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4423: 
                   4424: if test "x$CC" != xcc; then
                   4425:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4426: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
                   4427: else
                   4428:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4429: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
                   4430: fi
                   4431: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4432:                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4433: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
                   4434:   $as_echo_n "(cached) " >&6
                   4435: else
                   4436:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4437: /* end confdefs.h.  */
                   4438: 
                   4439: int
                   4440: main ()
                   4441: {
                   4442: 
                   4443:   ;
                   4444:   return 0;
                   4445: }
                   4446: _ACEOF
                   4447: # Make sure it works both with $CC and with simple cc.
                   4448: # We do the test twice because some compilers refuse to overwrite an
                   4449: # existing .o file with -o, though they will create one.
                   4450: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4451: rm -f conftest2.*
                   4452: if { { case "(($ac_try" in
                   4453:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4454:   *) ac_try_echo=$ac_try;;
                   4455: esac
                   4456: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4457: $as_echo "$ac_try_echo"; } >&5
                   4458:   (eval "$ac_try") 2>&5
                   4459:   ac_status=$?
                   4460:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4461:   test $ac_status = 0; } &&
                   4462:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4463:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4464:   *) ac_try_echo=$ac_try;;
                   4465: esac
                   4466: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4467: $as_echo "$ac_try_echo"; } >&5
                   4468:   (eval "$ac_try") 2>&5
                   4469:   ac_status=$?
                   4470:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4471:   test $ac_status = 0; };
                   4472: then
                   4473:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4474:   if test "x$CC" != xcc; then
                   4475:     # Test first that cc exists at all.
                   4476:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4477:   { { case "(($ac_try" in
                   4478:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4479:   *) ac_try_echo=$ac_try;;
                   4480: esac
                   4481: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4482: $as_echo "$ac_try_echo"; } >&5
                   4483:   (eval "$ac_try") 2>&5
                   4484:   ac_status=$?
                   4485:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4486:   test $ac_status = 0; }; }; then
                   4487:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4488:       rm -f conftest2.*
                   4489:       if { { case "(($ac_try" in
                   4490:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4491:   *) ac_try_echo=$ac_try;;
                   4492: esac
                   4493: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4494: $as_echo "$ac_try_echo"; } >&5
                   4495:   (eval "$ac_try") 2>&5
                   4496:   ac_status=$?
                   4497:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4498:   test $ac_status = 0; } &&
                   4499:         test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4500:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4501:   *) ac_try_echo=$ac_try;;
                   4502: esac
                   4503: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4504: $as_echo "$ac_try_echo"; } >&5
                   4505:   (eval "$ac_try") 2>&5
                   4506:   ac_status=$?
                   4507:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4508:   test $ac_status = 0; };
                   4509:       then
                   4510:        # cc works too.
                   4511:        :
                   4512:       else
                   4513:        # cc exists but doesn't like -o.
                   4514:        eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4515:       fi
                   4516:     fi
                   4517:   fi
                   4518: else
                   4519:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4520: fi
                   4521: rm -f core conftest*
                   4522: 
                   4523: fi
                   4524: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4525:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4526: $as_echo "yes" >&6; }
                   4527: else
                   4528:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4529: $as_echo "no" >&6; }
                   4530: 
                   4531: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
                   4532: 
                   4533: fi
                   4534: 
                   4535: # FIXME: we rely on the cache variable name because
                   4536: # there is no other way.
                   4537: set dummy $CC
                   4538: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4539: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4540: if test "$am_t" != yes; then
                   4541:    # Losing compiler, so override with the script.
                   4542:    # FIXME: It is wrong to rewrite CC.
                   4543:    # But if we don't then we get into trouble of one sort or another.
                   4544:    # A longer-term fix would be to have automake use am__CC in this case,
                   4545:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4546:    CC="$am_aux_dir/compile $CC"
                   4547: fi
                   4548: 
                   4549: 
                   4550: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   4551: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
                   4552: if ${ac_cv_path_GREP+:} false; then :
                   4553:   $as_echo_n "(cached) " >&6
                   4554: else
                   4555:   if test -z "$GREP"; then
                   4556:   ac_path_GREP_found=false
                   4557:   # Loop through the user's path and test for each of PROGNAME-LIST
                   4558:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4559: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   4560: do
                   4561:   IFS=$as_save_IFS
                   4562:   test -z "$as_dir" && as_dir=.
                   4563:     for ac_prog in grep ggrep; do
                   4564:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4565:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3   misho    4566:       as_fn_executable_p "$ac_path_GREP" || continue
1.1       misho    4567: # Check for GNU ac_path_GREP and select it if it is found.
                   4568:   # Check for GNU $ac_path_GREP
                   4569: case `"$ac_path_GREP" --version 2>&1` in
                   4570: *GNU*)
                   4571:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   4572: *)
                   4573:   ac_count=0
                   4574:   $as_echo_n 0123456789 >"conftest.in"
                   4575:   while :
                   4576:   do
                   4577:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   4578:     mv "conftest.tmp" "conftest.in"
                   4579:     cp "conftest.in" "conftest.nl"
                   4580:     $as_echo 'GREP' >> "conftest.nl"
                   4581:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   4582:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   4583:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   4584:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   4585:       # Best one so far, save it but keep looking for a better one
                   4586:       ac_cv_path_GREP="$ac_path_GREP"
                   4587:       ac_path_GREP_max=$ac_count
                   4588:     fi
                   4589:     # 10*(2^10) chars as input seems more than enough
                   4590:     test $ac_count -gt 10 && break
                   4591:   done
                   4592:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   4593: esac
                   4594: 
                   4595:       $ac_path_GREP_found && break 3
                   4596:     done
                   4597:   done
                   4598:   done
                   4599: IFS=$as_save_IFS
                   4600:   if test -z "$ac_cv_path_GREP"; then
                   4601:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   4602:   fi
                   4603: else
                   4604:   ac_cv_path_GREP=$GREP
                   4605: fi
                   4606: 
                   4607: fi
                   4608: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   4609: $as_echo "$ac_cv_path_GREP" >&6; }
                   4610:  GREP="$ac_cv_path_GREP"
                   4611: 
                   4612: 
                   4613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   4614: $as_echo_n "checking for egrep... " >&6; }
                   4615: if ${ac_cv_path_EGREP+:} false; then :
                   4616:   $as_echo_n "(cached) " >&6
                   4617: else
                   4618:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   4619:    then ac_cv_path_EGREP="$GREP -E"
                   4620:    else
                   4621:      if test -z "$EGREP"; then
                   4622:   ac_path_EGREP_found=false
                   4623:   # Loop through the user's path and test for each of PROGNAME-LIST
                   4624:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4625: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   4626: do
                   4627:   IFS=$as_save_IFS
                   4628:   test -z "$as_dir" && as_dir=.
                   4629:     for ac_prog in egrep; do
                   4630:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4631:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3   misho    4632:       as_fn_executable_p "$ac_path_EGREP" || continue
1.1       misho    4633: # Check for GNU ac_path_EGREP and select it if it is found.
                   4634:   # Check for GNU $ac_path_EGREP
                   4635: case `"$ac_path_EGREP" --version 2>&1` in
                   4636: *GNU*)
                   4637:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   4638: *)
                   4639:   ac_count=0
                   4640:   $as_echo_n 0123456789 >"conftest.in"
                   4641:   while :
                   4642:   do
                   4643:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   4644:     mv "conftest.tmp" "conftest.in"
                   4645:     cp "conftest.in" "conftest.nl"
                   4646:     $as_echo 'EGREP' >> "conftest.nl"
                   4647:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   4648:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   4649:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   4650:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   4651:       # Best one so far, save it but keep looking for a better one
                   4652:       ac_cv_path_EGREP="$ac_path_EGREP"
                   4653:       ac_path_EGREP_max=$ac_count
                   4654:     fi
                   4655:     # 10*(2^10) chars as input seems more than enough
                   4656:     test $ac_count -gt 10 && break
                   4657:   done
                   4658:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   4659: esac
                   4660: 
                   4661:       $ac_path_EGREP_found && break 3
                   4662:     done
                   4663:   done
                   4664:   done
                   4665: IFS=$as_save_IFS
                   4666:   if test -z "$ac_cv_path_EGREP"; then
                   4667:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   4668:   fi
                   4669: else
                   4670:   ac_cv_path_EGREP=$EGREP
                   4671: fi
                   4672: 
                   4673:    fi
                   4674: fi
                   4675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   4676: $as_echo "$ac_cv_path_EGREP" >&6; }
                   4677:  EGREP="$ac_cv_path_EGREP"
                   4678: 
                   4679: 
                   4680: 
                   4681: # Extract the first word of "sed", so it can be a program name with args.
                   4682: set dummy sed; ac_word=$2
                   4683: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4684: $as_echo_n "checking for $ac_word... " >&6; }
                   4685: if ${ac_cv_prog_SED+:} false; then :
                   4686:   $as_echo_n "(cached) " >&6
                   4687: else
                   4688:   if test -n "$SED"; then
                   4689:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   4690: else
                   4691: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4692: for as_dir in $PATH
                   4693: do
                   4694:   IFS=$as_save_IFS
                   4695:   test -z "$as_dir" && as_dir=.
                   4696:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    4697:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    4698:     ac_cv_prog_SED="sed"
                   4699:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4700:     break 2
                   4701:   fi
                   4702: done
                   4703:   done
                   4704: IFS=$as_save_IFS
                   4705: 
                   4706:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="/bin/false"
                   4707: fi
                   4708: fi
                   4709: SED=$ac_cv_prog_SED
                   4710: if test -n "$SED"; then
                   4711:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   4712: $as_echo "$SED" >&6; }
                   4713: else
                   4714:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4715: $as_echo "no" >&6; }
                   4716: fi
                   4717: 
                   4718: 
                   4719: 
1.1.1.3   misho    4720: # Extract the first word of "pdflatex", so it can be a program name with args.
                   4721: set dummy pdflatex; ac_word=$2
                   4722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4723: $as_echo_n "checking for $ac_word... " >&6; }
                   4724: if ${ac_cv_prog_PDFLATEX+:} false; then :
                   4725:   $as_echo_n "(cached) " >&6
                   4726: else
                   4727:   if test -n "$PDFLATEX"; then
                   4728:   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
                   4729: else
                   4730: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4731: for as_dir in $PATH
                   4732: do
                   4733:   IFS=$as_save_IFS
                   4734:   test -z "$as_dir" && as_dir=.
                   4735:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4736:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   4737:     ac_cv_prog_PDFLATEX="pdflatex"
                   4738:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4739:     break 2
                   4740:   fi
                   4741: done
                   4742:   done
                   4743: IFS=$as_save_IFS
                   4744: 
                   4745:   test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX="/bin/false"
                   4746: fi
                   4747: fi
                   4748: PDFLATEX=$ac_cv_prog_PDFLATEX
                   4749: if test -n "$PDFLATEX"; then
                   4750:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
                   4751: $as_echo "$PDFLATEX" >&6; }
                   4752: else
                   4753:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4754: $as_echo "no" >&6; }
                   4755: fi
                   4756: 
                   4757: 
                   4758: # Extract the first word of "latexmk", so it can be a program name with args.
                   4759: set dummy latexmk; ac_word=$2
                   4760: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4761: $as_echo_n "checking for $ac_word... " >&6; }
                   4762: if ${ac_cv_prog_LATEXMK+:} false; then :
                   4763:   $as_echo_n "(cached) " >&6
                   4764: else
                   4765:   if test -n "$LATEXMK"; then
                   4766:   ac_cv_prog_LATEXMK="$LATEXMK" # Let the user override the test.
                   4767: else
                   4768: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4769: for as_dir in $PATH
                   4770: do
                   4771:   IFS=$as_save_IFS
                   4772:   test -z "$as_dir" && as_dir=.
                   4773:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4774:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   4775:     ac_cv_prog_LATEXMK="latexmk"
                   4776:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4777:     break 2
                   4778:   fi
                   4779: done
                   4780:   done
                   4781: IFS=$as_save_IFS
                   4782: 
                   4783:   test -z "$ac_cv_prog_LATEXMK" && ac_cv_prog_LATEXMK="/bin/false"
                   4784: fi
                   4785: fi
                   4786: LATEXMK=$ac_cv_prog_LATEXMK
                   4787: if test -n "$LATEXMK"; then
                   4788:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
                   4789: $as_echo "$LATEXMK" >&6; }
                   4790: else
                   4791:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4792: $as_echo "no" >&6; }
                   4793: fi
                   4794: 
                   4795: 
                   4796: if test "x$PDFLATEX" = "x/bin/false" -o "x$LATEXMK" = "x/bin/false"; then
                   4797:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will not be able to make PDF versions of TeX documents" >&5
                   4798: $as_echo "$as_me: WARNING: Will not be able to make PDF versions of TeX documents" >&2;}
                   4799: else
                   4800:        HAVE_LATEX=true
                   4801: fi
                   4802:  if test "x$HAVE_LATEX" = "xtrue"; then
                   4803:   HAVE_LATEX_TRUE=
                   4804:   HAVE_LATEX_FALSE='#'
                   4805: else
                   4806:   HAVE_LATEX_TRUE='#'
                   4807:   HAVE_LATEX_FALSE=
                   4808: fi
                   4809: 
                   4810: 
1.1       misho    4811: if test "x${GCC}" = "xyes" ; then
                   4812:   COMPILER="GCC"
                   4813:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Intel compiler" >&5
                   4814: $as_echo_n "checking whether we are using the Intel compiler... " >&6; }
                   4815: 
                   4816: 
                   4817: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4818: /* end confdefs.h.  */
                   4819: __INTEL_COMPILER
                   4820: _ACEOF
                   4821: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4822:   $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then :
                   4823:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4824: $as_echo "no" >&6; }
                   4825: else
                   4826:   COMPILER="ICC"
                   4827:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4828: $as_echo "yes" >&6; }
                   4829: 
                   4830: fi
                   4831: rm -f conftest*
                   4832: 
                   4833: else
                   4834:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SunPro compiler" >&5
                   4835: $as_echo_n "checking whether we are using SunPro compiler... " >&6; }
                   4836:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4837: /* end confdefs.h.  */
                   4838: "__SUNPRO_C" __SUNPRO_C
                   4839: _ACEOF
                   4840: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4841:   $EGREP "^__SUNPRO_C.*0x5(7|8|9)" >/dev/null 2>&1; then :
                   4842:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4843: $as_echo "no" >&6; }
                   4844: else
                   4845:   COMPILER="SUNPRO"
                   4846:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4847: $as_echo "yes" >&6; }
                   4848: 
                   4849: fi
                   4850: rm -f conftest*
                   4851: 
                   4852: fi
                   4853: 
                   4854: 
                   4855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set a default CFLAGS" >&5
                   4856: $as_echo_n "checking whether to set a default CFLAGS... " >&6; }
                   4857: if test "x${cflags_specified}" = "x" ; then
                   4858:   case ${COMPILER} in
                   4859:     "ICC")
1.1.1.4 ! misho    4860:         CFLAGS="-Os -g -Wall"
1.1       misho    4861:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Intel default" >&5
                   4862: $as_echo "Intel default" >&6; }
                   4863:         ;;
                   4864:     "GCC")
                   4865:        CFLAGS="-Os -fno-omit-frame-pointer -g -std=gnu99 -Wall"
                   4866:        CFLAGS="${CFLAGS} -Wsign-compare -Wpointer-arith"
                   4867:        CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
                   4868:        CFLAGS="${CFLAGS} -Wmissing-prototypes -Wmissing-declarations"
                   4869:        CFLAGS="${CFLAGS} -Wchar-subscripts -Wcast-qual"
                   4870:        # TODO: conditionally addd -Wpacked if handled
                   4871:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc default" >&5
                   4872: $as_echo "gcc default" >&6; }
                   4873:        ;;
                   4874:     "SUNPRO")
                   4875:        CFLAGS="-xO4 -v -g -xspace -xcode=pic32 -xstrconst -xc99"
                   4876:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunPro default" >&5
                   4877: $as_echo "SunPro default" >&6; }
                   4878:        ;;
                   4879:     *)
                   4880:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown compiler" >&5
                   4881: $as_echo "unknown compiler" >&6; }
                   4882:         ;;
                   4883:   esac
                   4884: else
                   4885:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS supplied by user" >&5
                   4886: $as_echo "CFLAGS supplied by user" >&6; }
                   4887: fi
                   4888: 
                   4889: 
                   4890: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   4891: $as_echo_n "checking whether ln -s works... " >&6; }
                   4892: LN_S=$as_ln_s
                   4893: if test "$LN_S" = "ln -s"; then
                   4894:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4895: $as_echo "yes" >&6; }
                   4896: else
                   4897:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   4898: $as_echo "no, using $LN_S" >&6; }
                   4899: fi
                   4900: 
                   4901: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   4902: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   4903: set x ${MAKE-make}
                   4904: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
                   4905: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
                   4906:   $as_echo_n "(cached) " >&6
                   4907: else
                   4908:   cat >conftest.make <<\_ACEOF
                   4909: SHELL = /bin/sh
                   4910: all:
                   4911:        @echo '@@@%%%=$(MAKE)=@@@%%%'
                   4912: _ACEOF
                   4913: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
                   4914: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   4915:   *@@@%%%=?*=@@@%%%*)
                   4916:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   4917:   *)
                   4918:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   4919: esac
                   4920: rm -f conftest.make
                   4921: fi
                   4922: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   4923:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4924: $as_echo "yes" >&6; }
                   4925:   SET_MAKE=
                   4926: else
                   4927:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4928: $as_echo "no" >&6; }
                   4929:   SET_MAKE="MAKE=${MAKE-make}"
                   4930: fi
                   4931: 
                   4932: if test -n "$ac_tool_prefix"; then
                   4933:   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
                   4934: set dummy ${ac_tool_prefix}ar; ac_word=$2
                   4935: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4936: $as_echo_n "checking for $ac_word... " >&6; }
                   4937: if ${ac_cv_prog_AR+:} false; then :
                   4938:   $as_echo_n "(cached) " >&6
                   4939: else
                   4940:   if test -n "$AR"; then
                   4941:   ac_cv_prog_AR="$AR" # Let the user override the test.
                   4942: else
                   4943: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4944: for as_dir in $PATH
                   4945: do
                   4946:   IFS=$as_save_IFS
                   4947:   test -z "$as_dir" && as_dir=.
                   4948:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    4949:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    4950:     ac_cv_prog_AR="${ac_tool_prefix}ar"
                   4951:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4952:     break 2
                   4953:   fi
                   4954: done
                   4955:   done
                   4956: IFS=$as_save_IFS
                   4957: 
                   4958: fi
                   4959: fi
                   4960: AR=$ac_cv_prog_AR
                   4961: if test -n "$AR"; then
                   4962:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
                   4963: $as_echo "$AR" >&6; }
                   4964: else
                   4965:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4966: $as_echo "no" >&6; }
                   4967: fi
                   4968: 
                   4969: 
                   4970: fi
                   4971: if test -z "$ac_cv_prog_AR"; then
                   4972:   ac_ct_AR=$AR
                   4973:   # Extract the first word of "ar", so it can be a program name with args.
                   4974: set dummy ar; ac_word=$2
                   4975: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4976: $as_echo_n "checking for $ac_word... " >&6; }
                   4977: if ${ac_cv_prog_ac_ct_AR+:} false; then :
                   4978:   $as_echo_n "(cached) " >&6
                   4979: else
                   4980:   if test -n "$ac_ct_AR"; then
                   4981:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
                   4982: else
                   4983: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4984: for as_dir in $PATH
                   4985: do
                   4986:   IFS=$as_save_IFS
                   4987:   test -z "$as_dir" && as_dir=.
                   4988:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    4989:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    4990:     ac_cv_prog_ac_ct_AR="ar"
                   4991:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4992:     break 2
                   4993:   fi
                   4994: done
                   4995:   done
                   4996: IFS=$as_save_IFS
                   4997: 
                   4998: fi
                   4999: fi
                   5000: ac_ct_AR=$ac_cv_prog_ac_ct_AR
                   5001: if test -n "$ac_ct_AR"; then
                   5002:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
                   5003: $as_echo "$ac_ct_AR" >&6; }
                   5004: else
                   5005:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5006: $as_echo "no" >&6; }
                   5007: fi
                   5008: 
                   5009:   if test "x$ac_ct_AR" = x; then
                   5010:     AR=""
                   5011:   else
                   5012:     case $cross_compiling:$ac_tool_warned in
                   5013: yes:)
                   5014: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   5015: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   5016: ac_tool_warned=yes ;;
                   5017: esac
                   5018:     AR=$ac_ct_AR
                   5019:   fi
                   5020: else
                   5021:   AR="$ac_cv_prog_AR"
                   5022: fi
                   5023: 
                   5024: 
                   5025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE-make} is GNU make" >&5
                   5026: $as_echo_n "checking if ${MAKE-make} is GNU make... " >&6; }
                   5027: if ${quagga_cv_gnu_make+:} false; then :
                   5028:   $as_echo_n "(cached) " >&6
                   5029: else
                   5030:   quagga_cv_gnu_make=no
                   5031:         if ${MAKE-make} --version 2>/dev/null | \
                   5032:                grep '^GNU Make ' >/dev/null ; then
                   5033:                quagga_cv_gnu_make=yes;
                   5034:         fi
                   5035: 
                   5036: 
                   5037: fi
                   5038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_gnu_make" >&5
                   5039: $as_echo "$quagga_cv_gnu_make" >&6; }
                   5040: 
                   5041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   5042: $as_echo_n "checking for ANSI C header files... " >&6; }
                   5043: if ${ac_cv_header_stdc+:} false; then :
                   5044:   $as_echo_n "(cached) " >&6
                   5045: else
                   5046:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5047: /* end confdefs.h.  */
                   5048: #include <stdlib.h>
                   5049: #include <stdarg.h>
                   5050: #include <string.h>
                   5051: #include <float.h>
                   5052: 
                   5053: int
                   5054: main ()
                   5055: {
                   5056: 
                   5057:   ;
                   5058:   return 0;
                   5059: }
                   5060: _ACEOF
                   5061: if ac_fn_c_try_compile "$LINENO"; then :
                   5062:   ac_cv_header_stdc=yes
                   5063: else
                   5064:   ac_cv_header_stdc=no
                   5065: fi
                   5066: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   5067: 
                   5068: if test $ac_cv_header_stdc = yes; then
                   5069:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   5070:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5071: /* end confdefs.h.  */
                   5072: #include <string.h>
                   5073: 
                   5074: _ACEOF
                   5075: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5076:   $EGREP "memchr" >/dev/null 2>&1; then :
                   5077: 
                   5078: else
                   5079:   ac_cv_header_stdc=no
                   5080: fi
                   5081: rm -f conftest*
                   5082: 
                   5083: fi
                   5084: 
                   5085: if test $ac_cv_header_stdc = yes; then
                   5086:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   5087:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5088: /* end confdefs.h.  */
                   5089: #include <stdlib.h>
                   5090: 
                   5091: _ACEOF
                   5092: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5093:   $EGREP "free" >/dev/null 2>&1; then :
                   5094: 
                   5095: else
                   5096:   ac_cv_header_stdc=no
                   5097: fi
                   5098: rm -f conftest*
                   5099: 
                   5100: fi
                   5101: 
                   5102: if test $ac_cv_header_stdc = yes; then
                   5103:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   5104:   if test "$cross_compiling" = yes; then :
                   5105:   :
                   5106: else
                   5107:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5108: /* end confdefs.h.  */
                   5109: #include <ctype.h>
                   5110: #include <stdlib.h>
                   5111: #if ((' ' & 0x0FF) == 0x020)
                   5112: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   5113: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   5114: #else
                   5115: # define ISLOWER(c) \
                   5116:                   (('a' <= (c) && (c) <= 'i') \
                   5117:                     || ('j' <= (c) && (c) <= 'r') \
                   5118:                     || ('s' <= (c) && (c) <= 'z'))
                   5119: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   5120: #endif
                   5121: 
                   5122: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   5123: int
                   5124: main ()
                   5125: {
                   5126:   int i;
                   5127:   for (i = 0; i < 256; i++)
                   5128:     if (XOR (islower (i), ISLOWER (i))
                   5129:        || toupper (i) != TOUPPER (i))
                   5130:       return 2;
                   5131:   return 0;
                   5132: }
                   5133: _ACEOF
                   5134: if ac_fn_c_try_run "$LINENO"; then :
                   5135: 
                   5136: else
                   5137:   ac_cv_header_stdc=no
                   5138: fi
                   5139: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   5140:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   5141: fi
                   5142: 
                   5143: fi
                   5144: fi
                   5145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   5146: $as_echo "$ac_cv_header_stdc" >&6; }
                   5147: if test $ac_cv_header_stdc = yes; then
                   5148: 
                   5149: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
                   5150: 
                   5151: fi
                   5152: 
                   5153: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   5154: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   5155:                  inttypes.h stdint.h unistd.h
                   5156: do :
                   5157:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   5158: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   5159: "
                   5160: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   5161:   cat >>confdefs.h <<_ACEOF
                   5162: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   5163: _ACEOF
                   5164: 
                   5165: fi
                   5166: 
                   5167: done
                   5168: 
                   5169: 
                   5170: 
                   5171:   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
                   5172: if test "x$ac_cv_header_minix_config_h" = xyes; then :
                   5173:   MINIX=yes
                   5174: else
                   5175:   MINIX=
                   5176: fi
                   5177: 
                   5178: 
                   5179:   if test "$MINIX" = yes; then
                   5180: 
                   5181: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
                   5182: 
                   5183: 
                   5184: $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
                   5185: 
                   5186: 
                   5187: $as_echo "#define _MINIX 1" >>confdefs.h
                   5188: 
                   5189:   fi
                   5190: 
                   5191: 
                   5192:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
                   5193: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
                   5194: if ${ac_cv_safe_to_define___extensions__+:} false; then :
                   5195:   $as_echo_n "(cached) " >&6
                   5196: else
                   5197:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5198: /* end confdefs.h.  */
                   5199: 
1.1.1.3   misho    5200: #         define __EXTENSIONS__ 1
                   5201:           $ac_includes_default
1.1       misho    5202: int
                   5203: main ()
                   5204: {
                   5205: 
                   5206:   ;
                   5207:   return 0;
                   5208: }
                   5209: _ACEOF
                   5210: if ac_fn_c_try_compile "$LINENO"; then :
                   5211:   ac_cv_safe_to_define___extensions__=yes
                   5212: else
                   5213:   ac_cv_safe_to_define___extensions__=no
                   5214: fi
                   5215: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   5216: fi
                   5217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
                   5218: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
                   5219:   test $ac_cv_safe_to_define___extensions__ = yes &&
                   5220:     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
                   5221: 
                   5222:   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
                   5223: 
                   5224:   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
                   5225: 
                   5226:   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
                   5227: 
                   5228:   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
                   5229: 
                   5230: 
                   5231: 
                   5232: 
                   5233: case `pwd` in
                   5234:   *\ * | *\    *)
                   5235:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
                   5236: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
                   5237: esac
                   5238: 
                   5239: 
                   5240: 
1.1.1.2   misho    5241: macro_version='2.4.2'
                   5242: macro_revision='1.3337'
1.1       misho    5243: 
                   5244: 
                   5245: 
                   5246: 
                   5247: 
                   5248: 
                   5249: 
                   5250: 
                   5251: 
                   5252: 
                   5253: 
                   5254: 
                   5255: 
                   5256: ltmain="$ac_aux_dir/ltmain.sh"
                   5257: 
                   5258: # Backslashify metacharacters that are still active within
                   5259: # double-quoted strings.
                   5260: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
                   5261: 
                   5262: # Same as above, but do not quote variable references.
                   5263: double_quote_subst='s/\(["`\\]\)/\\\1/g'
                   5264: 
                   5265: # Sed substitution to delay expansion of an escaped shell variable in a
                   5266: # double_quote_subst'ed string.
                   5267: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
                   5268: 
                   5269: # Sed substitution to delay expansion of an escaped single quote.
                   5270: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
                   5271: 
                   5272: # Sed substitution to avoid accidental globbing in evaled expressions
                   5273: no_glob_subst='s/\*/\\\*/g'
                   5274: 
                   5275: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   5276: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
                   5277: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
                   5278: 
                   5279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
                   5280: $as_echo_n "checking how to print strings... " >&6; }
                   5281: # Test print first, because it will be a builtin if present.
                   5282: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
                   5283:    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
                   5284:   ECHO='print -r --'
                   5285: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
                   5286:   ECHO='printf %s\n'
                   5287: else
                   5288:   # Use this function as a fallback that always works.
                   5289:   func_fallback_echo ()
                   5290:   {
                   5291:     eval 'cat <<_LTECHO_EOF
                   5292: $1
                   5293: _LTECHO_EOF'
                   5294:   }
                   5295:   ECHO='func_fallback_echo'
                   5296: fi
                   5297: 
                   5298: # func_echo_all arg...
                   5299: # Invoke $ECHO with all args, space-separated.
                   5300: func_echo_all ()
                   5301: {
                   5302:     $ECHO ""
                   5303: }
                   5304: 
                   5305: case "$ECHO" in
                   5306:   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
                   5307: $as_echo "printf" >&6; } ;;
                   5308:   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
                   5309: $as_echo "print -r" >&6; } ;;
                   5310:   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
                   5311: $as_echo "cat" >&6; } ;;
                   5312: esac
                   5313: 
                   5314: 
                   5315: 
                   5316: 
                   5317: 
                   5318: 
                   5319: 
                   5320: 
                   5321: 
                   5322: 
                   5323: 
                   5324: 
                   5325: 
                   5326: 
                   5327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
                   5328: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
                   5329: if ${ac_cv_path_SED+:} false; then :
                   5330:   $as_echo_n "(cached) " >&6
                   5331: else
                   5332:             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
                   5333:      for ac_i in 1 2 3 4 5 6 7; do
                   5334:        ac_script="$ac_script$as_nl$ac_script"
                   5335:      done
                   5336:      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
                   5337:      { ac_script=; unset ac_script;}
                   5338:      if test -z "$SED"; then
                   5339:   ac_path_SED_found=false
                   5340:   # Loop through the user's path and test for each of PROGNAME-LIST
                   5341:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5342: for as_dir in $PATH
                   5343: do
                   5344:   IFS=$as_save_IFS
                   5345:   test -z "$as_dir" && as_dir=.
                   5346:     for ac_prog in sed gsed; do
                   5347:     for ac_exec_ext in '' $ac_executable_extensions; do
                   5348:       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3   misho    5349:       as_fn_executable_p "$ac_path_SED" || continue
1.1       misho    5350: # Check for GNU ac_path_SED and select it if it is found.
                   5351:   # Check for GNU $ac_path_SED
                   5352: case `"$ac_path_SED" --version 2>&1` in
                   5353: *GNU*)
                   5354:   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
                   5355: *)
                   5356:   ac_count=0
                   5357:   $as_echo_n 0123456789 >"conftest.in"
                   5358:   while :
                   5359:   do
                   5360:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   5361:     mv "conftest.tmp" "conftest.in"
                   5362:     cp "conftest.in" "conftest.nl"
                   5363:     $as_echo '' >> "conftest.nl"
                   5364:     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   5365:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   5366:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   5367:     if test $ac_count -gt ${ac_path_SED_max-0}; then
                   5368:       # Best one so far, save it but keep looking for a better one
                   5369:       ac_cv_path_SED="$ac_path_SED"
                   5370:       ac_path_SED_max=$ac_count
                   5371:     fi
                   5372:     # 10*(2^10) chars as input seems more than enough
                   5373:     test $ac_count -gt 10 && break
                   5374:   done
                   5375:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   5376: esac
                   5377: 
                   5378:       $ac_path_SED_found && break 3
                   5379:     done
                   5380:   done
                   5381:   done
                   5382: IFS=$as_save_IFS
                   5383:   if test -z "$ac_cv_path_SED"; then
                   5384:     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
                   5385:   fi
                   5386: else
                   5387:   ac_cv_path_SED=$SED
                   5388: fi
                   5389: 
                   5390: fi
                   5391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
                   5392: $as_echo "$ac_cv_path_SED" >&6; }
                   5393:  SED="$ac_cv_path_SED"
                   5394:   rm -f conftest.sed
                   5395: 
                   5396: test -z "$SED" && SED=sed
                   5397: Xsed="$SED -e 1s/^X//"
                   5398: 
                   5399: 
                   5400: 
                   5401: 
                   5402: 
                   5403: 
                   5404: 
                   5405: 
                   5406: 
                   5407: 
                   5408: 
                   5409: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
                   5410: $as_echo_n "checking for fgrep... " >&6; }
                   5411: if ${ac_cv_path_FGREP+:} false; then :
                   5412:   $as_echo_n "(cached) " >&6
                   5413: else
                   5414:   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
                   5415:    then ac_cv_path_FGREP="$GREP -F"
                   5416:    else
                   5417:      if test -z "$FGREP"; then
                   5418:   ac_path_FGREP_found=false
                   5419:   # Loop through the user's path and test for each of PROGNAME-LIST
                   5420:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5421: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   5422: do
                   5423:   IFS=$as_save_IFS
                   5424:   test -z "$as_dir" && as_dir=.
                   5425:     for ac_prog in fgrep; do
                   5426:     for ac_exec_ext in '' $ac_executable_extensions; do
                   5427:       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3   misho    5428:       as_fn_executable_p "$ac_path_FGREP" || continue
1.1       misho    5429: # Check for GNU ac_path_FGREP and select it if it is found.
                   5430:   # Check for GNU $ac_path_FGREP
                   5431: case `"$ac_path_FGREP" --version 2>&1` in
                   5432: *GNU*)
                   5433:   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
                   5434: *)
                   5435:   ac_count=0
                   5436:   $as_echo_n 0123456789 >"conftest.in"
                   5437:   while :
                   5438:   do
                   5439:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   5440:     mv "conftest.tmp" "conftest.in"
                   5441:     cp "conftest.in" "conftest.nl"
                   5442:     $as_echo 'FGREP' >> "conftest.nl"
                   5443:     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   5444:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   5445:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   5446:     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
                   5447:       # Best one so far, save it but keep looking for a better one
                   5448:       ac_cv_path_FGREP="$ac_path_FGREP"
                   5449:       ac_path_FGREP_max=$ac_count
                   5450:     fi
                   5451:     # 10*(2^10) chars as input seems more than enough
                   5452:     test $ac_count -gt 10 && break
                   5453:   done
                   5454:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   5455: esac
                   5456: 
                   5457:       $ac_path_FGREP_found && break 3
                   5458:     done
                   5459:   done
                   5460:   done
                   5461: IFS=$as_save_IFS
                   5462:   if test -z "$ac_cv_path_FGREP"; then
                   5463:     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   5464:   fi
                   5465: else
                   5466:   ac_cv_path_FGREP=$FGREP
                   5467: fi
                   5468: 
                   5469:    fi
                   5470: fi
                   5471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
                   5472: $as_echo "$ac_cv_path_FGREP" >&6; }
                   5473:  FGREP="$ac_cv_path_FGREP"
                   5474: 
                   5475: 
                   5476: test -z "$GREP" && GREP=grep
                   5477: 
                   5478: 
                   5479: 
                   5480: 
                   5481: 
                   5482: 
                   5483: 
                   5484: 
                   5485: 
                   5486: 
                   5487: 
                   5488: 
                   5489: 
                   5490: 
                   5491: 
                   5492: 
                   5493: 
                   5494: 
                   5495: 
                   5496: # Check whether --with-gnu-ld was given.
                   5497: if test "${with_gnu_ld+set}" = set; then :
                   5498:   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
                   5499: else
                   5500:   with_gnu_ld=no
                   5501: fi
                   5502: 
                   5503: ac_prog=ld
                   5504: if test "$GCC" = yes; then
                   5505:   # Check if gcc -print-prog-name=ld gives a path.
                   5506:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
                   5507: $as_echo_n "checking for ld used by $CC... " >&6; }
                   5508:   case $host in
                   5509:   *-*-mingw*)
                   5510:     # gcc leaves a trailing carriage return which upsets mingw
                   5511:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
                   5512:   *)
                   5513:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
                   5514:   esac
                   5515:   case $ac_prog in
                   5516:     # Accept absolute paths.
                   5517:     [\\/]* | ?:[\\/]*)
                   5518:       re_direlt='/[^/][^/]*/\.\./'
                   5519:       # Canonicalize the pathname of ld
                   5520:       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
                   5521:       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
                   5522:        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
                   5523:       done
                   5524:       test -z "$LD" && LD="$ac_prog"
                   5525:       ;;
                   5526:   "")
                   5527:     # If it fails, then pretend we aren't using GCC.
                   5528:     ac_prog=ld
                   5529:     ;;
                   5530:   *)
                   5531:     # If it is relative, then search for the first ld in PATH.
                   5532:     with_gnu_ld=unknown
                   5533:     ;;
                   5534:   esac
                   5535: elif test "$with_gnu_ld" = yes; then
                   5536:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
                   5537: $as_echo_n "checking for GNU ld... " >&6; }
                   5538: else
                   5539:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
                   5540: $as_echo_n "checking for non-GNU ld... " >&6; }
                   5541: fi
                   5542: if ${lt_cv_path_LD+:} false; then :
                   5543:   $as_echo_n "(cached) " >&6
                   5544: else
                   5545:   if test -z "$LD"; then
                   5546:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   5547:   for ac_dir in $PATH; do
                   5548:     IFS="$lt_save_ifs"
                   5549:     test -z "$ac_dir" && ac_dir=.
                   5550:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   5551:       lt_cv_path_LD="$ac_dir/$ac_prog"
                   5552:       # Check to see if the program is GNU ld.  I'd rather use --version,
                   5553:       # but apparently some variants of GNU ld only accept -v.
                   5554:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   5555:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
                   5556:       *GNU* | *'with BFD'*)
                   5557:        test "$with_gnu_ld" != no && break
                   5558:        ;;
                   5559:       *)
                   5560:        test "$with_gnu_ld" != yes && break
                   5561:        ;;
                   5562:       esac
                   5563:     fi
                   5564:   done
                   5565:   IFS="$lt_save_ifs"
                   5566: else
                   5567:   lt_cv_path_LD="$LD" # Let the user override the test with a path.
                   5568: fi
                   5569: fi
                   5570: 
                   5571: LD="$lt_cv_path_LD"
                   5572: if test -n "$LD"; then
                   5573:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
                   5574: $as_echo "$LD" >&6; }
                   5575: else
                   5576:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5577: $as_echo "no" >&6; }
                   5578: fi
                   5579: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
                   5580: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
                   5581: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
                   5582: if ${lt_cv_prog_gnu_ld+:} false; then :
                   5583:   $as_echo_n "(cached) " >&6
                   5584: else
                   5585:   # I'd rather use --version here, but apparently some GNU lds only accept -v.
                   5586: case `$LD -v 2>&1 </dev/null` in
                   5587: *GNU* | *'with BFD'*)
                   5588:   lt_cv_prog_gnu_ld=yes
                   5589:   ;;
                   5590: *)
                   5591:   lt_cv_prog_gnu_ld=no
                   5592:   ;;
                   5593: esac
                   5594: fi
                   5595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
                   5596: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
                   5597: with_gnu_ld=$lt_cv_prog_gnu_ld
                   5598: 
                   5599: 
                   5600: 
                   5601: 
                   5602: 
                   5603: 
                   5604: 
                   5605: 
                   5606: 
                   5607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
                   5608: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
                   5609: if ${lt_cv_path_NM+:} false; then :
                   5610:   $as_echo_n "(cached) " >&6
                   5611: else
                   5612:   if test -n "$NM"; then
                   5613:   # Let the user override the test.
                   5614:   lt_cv_path_NM="$NM"
                   5615: else
                   5616:   lt_nm_to_check="${ac_tool_prefix}nm"
                   5617:   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
                   5618:     lt_nm_to_check="$lt_nm_to_check nm"
                   5619:   fi
                   5620:   for lt_tmp_nm in $lt_nm_to_check; do
                   5621:     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   5622:     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
                   5623:       IFS="$lt_save_ifs"
                   5624:       test -z "$ac_dir" && ac_dir=.
                   5625:       tmp_nm="$ac_dir/$lt_tmp_nm"
                   5626:       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
                   5627:        # Check to see if the nm accepts a BSD-compat flag.
                   5628:        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
                   5629:        #   nm: unknown option "B" ignored
                   5630:        # Tru64's nm complains that /dev/null is an invalid object file
                   5631:        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
                   5632:        */dev/null* | *'Invalid file or object type'*)
                   5633:          lt_cv_path_NM="$tmp_nm -B"
                   5634:          break
                   5635:          ;;
                   5636:        *)
                   5637:          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
                   5638:          */dev/null*)
                   5639:            lt_cv_path_NM="$tmp_nm -p"
                   5640:            break
                   5641:            ;;
                   5642:          *)
                   5643:            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
                   5644:            continue # so that we can try to find one that supports BSD flags
                   5645:            ;;
                   5646:          esac
                   5647:          ;;
                   5648:        esac
                   5649:       fi
                   5650:     done
                   5651:     IFS="$lt_save_ifs"
                   5652:   done
                   5653:   : ${lt_cv_path_NM=no}
                   5654: fi
                   5655: fi
                   5656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
                   5657: $as_echo "$lt_cv_path_NM" >&6; }
                   5658: if test "$lt_cv_path_NM" != "no"; then
                   5659:   NM="$lt_cv_path_NM"
                   5660: else
                   5661:   # Didn't find any BSD compatible name lister, look for dumpbin.
                   5662:   if test -n "$DUMPBIN"; then :
                   5663:     # Let the user override the test.
                   5664:   else
                   5665:     if test -n "$ac_tool_prefix"; then
                   5666:   for ac_prog in dumpbin "link -dump"
                   5667:   do
                   5668:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   5669: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   5670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   5671: $as_echo_n "checking for $ac_word... " >&6; }
                   5672: if ${ac_cv_prog_DUMPBIN+:} false; then :
                   5673:   $as_echo_n "(cached) " >&6
                   5674: else
                   5675:   if test -n "$DUMPBIN"; then
                   5676:   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
                   5677: else
                   5678: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5679: for as_dir in $PATH
                   5680: do
                   5681:   IFS=$as_save_IFS
                   5682:   test -z "$as_dir" && as_dir=.
                   5683:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    5684:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    5685:     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
                   5686:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5687:     break 2
                   5688:   fi
                   5689: done
                   5690:   done
                   5691: IFS=$as_save_IFS
                   5692: 
                   5693: fi
                   5694: fi
                   5695: DUMPBIN=$ac_cv_prog_DUMPBIN
                   5696: if test -n "$DUMPBIN"; then
                   5697:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
                   5698: $as_echo "$DUMPBIN" >&6; }
                   5699: else
                   5700:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5701: $as_echo "no" >&6; }
                   5702: fi
                   5703: 
                   5704: 
                   5705:     test -n "$DUMPBIN" && break
                   5706:   done
                   5707: fi
                   5708: if test -z "$DUMPBIN"; then
                   5709:   ac_ct_DUMPBIN=$DUMPBIN
                   5710:   for ac_prog in dumpbin "link -dump"
                   5711: do
                   5712:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   5713: set dummy $ac_prog; ac_word=$2
                   5714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   5715: $as_echo_n "checking for $ac_word... " >&6; }
                   5716: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
                   5717:   $as_echo_n "(cached) " >&6
                   5718: else
                   5719:   if test -n "$ac_ct_DUMPBIN"; then
                   5720:   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
                   5721: else
                   5722: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5723: for as_dir in $PATH
                   5724: do
                   5725:   IFS=$as_save_IFS
                   5726:   test -z "$as_dir" && as_dir=.
                   5727:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    5728:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    5729:     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
                   5730:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5731:     break 2
                   5732:   fi
                   5733: done
                   5734:   done
                   5735: IFS=$as_save_IFS
                   5736: 
                   5737: fi
                   5738: fi
                   5739: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
                   5740: if test -n "$ac_ct_DUMPBIN"; then
                   5741:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
                   5742: $as_echo "$ac_ct_DUMPBIN" >&6; }
                   5743: else
                   5744:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5745: $as_echo "no" >&6; }
                   5746: fi
                   5747: 
                   5748: 
                   5749:   test -n "$ac_ct_DUMPBIN" && break
                   5750: done
                   5751: 
                   5752:   if test "x$ac_ct_DUMPBIN" = x; then
                   5753:     DUMPBIN=":"
                   5754:   else
                   5755:     case $cross_compiling:$ac_tool_warned in
                   5756: yes:)
                   5757: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   5758: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   5759: ac_tool_warned=yes ;;
                   5760: esac
                   5761:     DUMPBIN=$ac_ct_DUMPBIN
                   5762:   fi
                   5763: fi
                   5764: 
                   5765:     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
                   5766:     *COFF*)
                   5767:       DUMPBIN="$DUMPBIN -symbols"
                   5768:       ;;
                   5769:     *)
                   5770:       DUMPBIN=:
                   5771:       ;;
                   5772:     esac
                   5773:   fi
                   5774: 
                   5775:   if test "$DUMPBIN" != ":"; then
                   5776:     NM="$DUMPBIN"
                   5777:   fi
                   5778: fi
                   5779: test -z "$NM" && NM=nm
                   5780: 
                   5781: 
                   5782: 
                   5783: 
                   5784: 
                   5785: 
                   5786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
                   5787: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
                   5788: if ${lt_cv_nm_interface+:} false; then :
                   5789:   $as_echo_n "(cached) " >&6
                   5790: else
                   5791:   lt_cv_nm_interface="BSD nm"
                   5792:   echo "int some_variable = 0;" > conftest.$ac_ext
                   5793:   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
                   5794:   (eval "$ac_compile" 2>conftest.err)
                   5795:   cat conftest.err >&5
                   5796:   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
                   5797:   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
                   5798:   cat conftest.err >&5
                   5799:   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
                   5800:   cat conftest.out >&5
                   5801:   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
                   5802:     lt_cv_nm_interface="MS dumpbin"
                   5803:   fi
                   5804:   rm -f conftest*
                   5805: fi
                   5806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
                   5807: $as_echo "$lt_cv_nm_interface" >&6; }
                   5808: 
                   5809: # find the maximum length of command line arguments
                   5810: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
                   5811: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
                   5812: if ${lt_cv_sys_max_cmd_len+:} false; then :
                   5813:   $as_echo_n "(cached) " >&6
                   5814: else
                   5815:     i=0
                   5816:   teststring="ABCD"
                   5817: 
                   5818:   case $build_os in
                   5819:   msdosdjgpp*)
                   5820:     # On DJGPP, this test can blow up pretty badly due to problems in libc
                   5821:     # (any single argument exceeding 2000 bytes causes a buffer overrun
                   5822:     # during glob expansion).  Even if it were fixed, the result of this
                   5823:     # check would be larger than it should be.
                   5824:     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
                   5825:     ;;
                   5826: 
                   5827:   gnu*)
                   5828:     # Under GNU Hurd, this test is not required because there is
                   5829:     # no limit to the length of command line arguments.
                   5830:     # Libtool will interpret -1 as no limit whatsoever
                   5831:     lt_cv_sys_max_cmd_len=-1;
                   5832:     ;;
                   5833: 
                   5834:   cygwin* | mingw* | cegcc*)
                   5835:     # On Win9x/ME, this test blows up -- it succeeds, but takes
                   5836:     # about 5 minutes as the teststring grows exponentially.
                   5837:     # Worse, since 9x/ME are not pre-emptively multitasking,
                   5838:     # you end up with a "frozen" computer, even though with patience
                   5839:     # the test eventually succeeds (with a max line length of 256k).
                   5840:     # Instead, let's just punt: use the minimum linelength reported by
                   5841:     # all of the supported platforms: 8192 (on NT/2K/XP).
                   5842:     lt_cv_sys_max_cmd_len=8192;
                   5843:     ;;
                   5844: 
                   5845:   mint*)
                   5846:     # On MiNT this can take a long time and run out of memory.
                   5847:     lt_cv_sys_max_cmd_len=8192;
                   5848:     ;;
                   5849: 
                   5850:   amigaos*)
                   5851:     # On AmigaOS with pdksh, this test takes hours, literally.
                   5852:     # So we just punt and use a minimum line length of 8192.
                   5853:     lt_cv_sys_max_cmd_len=8192;
                   5854:     ;;
                   5855: 
                   5856:   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
                   5857:     # This has been around since 386BSD, at least.  Likely further.
                   5858:     if test -x /sbin/sysctl; then
                   5859:       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
                   5860:     elif test -x /usr/sbin/sysctl; then
                   5861:       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
                   5862:     else
                   5863:       lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
                   5864:     fi
                   5865:     # And add a safety zone
                   5866:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   5867:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   5868:     ;;
                   5869: 
                   5870:   interix*)
                   5871:     # We know the value 262144 and hardcode it with a safety zone (like BSD)
                   5872:     lt_cv_sys_max_cmd_len=196608
                   5873:     ;;
                   5874: 
1.1.1.2   misho    5875:   os2*)
                   5876:     # The test takes a long time on OS/2.
                   5877:     lt_cv_sys_max_cmd_len=8192
                   5878:     ;;
                   5879: 
1.1       misho    5880:   osf*)
                   5881:     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
                   5882:     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
                   5883:     # nice to cause kernel panics so lets avoid the loop below.
                   5884:     # First set a reasonable default.
                   5885:     lt_cv_sys_max_cmd_len=16384
                   5886:     #
                   5887:     if test -x /sbin/sysconfig; then
                   5888:       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
                   5889:         *1*) lt_cv_sys_max_cmd_len=-1 ;;
                   5890:       esac
                   5891:     fi
                   5892:     ;;
                   5893:   sco3.2v5*)
                   5894:     lt_cv_sys_max_cmd_len=102400
                   5895:     ;;
                   5896:   sysv5* | sco5v6* | sysv4.2uw2*)
                   5897:     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
                   5898:     if test -n "$kargmax"; then
                   5899:       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
                   5900:     else
                   5901:       lt_cv_sys_max_cmd_len=32768
                   5902:     fi
                   5903:     ;;
                   5904:   *)
                   5905:     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
                   5906:     if test -n "$lt_cv_sys_max_cmd_len"; then
                   5907:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   5908:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   5909:     else
                   5910:       # Make teststring a little bigger before we do anything with it.
                   5911:       # a 1K string should be a reasonable start.
                   5912:       for i in 1 2 3 4 5 6 7 8 ; do
                   5913:         teststring=$teststring$teststring
                   5914:       done
                   5915:       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
                   5916:       # If test is not a shell built-in, we'll probably end up computing a
                   5917:       # maximum length that is only half of the actual maximum length, but
                   5918:       # we can't tell.
1.1.1.2   misho    5919:       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1.1       misho    5920:                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
                   5921:              test $i != 17 # 1/2 MB should be enough
                   5922:       do
                   5923:         i=`expr $i + 1`
                   5924:         teststring=$teststring$teststring
                   5925:       done
                   5926:       # Only check the string length outside the loop.
                   5927:       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
                   5928:       teststring=
                   5929:       # Add a significant safety factor because C++ compilers can tack on
                   5930:       # massive amounts of additional arguments before passing them to the
                   5931:       # linker.  It appears as though 1/2 is a usable value.
                   5932:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
                   5933:     fi
                   5934:     ;;
                   5935:   esac
                   5936: 
                   5937: fi
                   5938: 
                   5939: if test -n $lt_cv_sys_max_cmd_len ; then
                   5940:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
                   5941: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
                   5942: else
                   5943:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
                   5944: $as_echo "none" >&6; }
                   5945: fi
                   5946: max_cmd_len=$lt_cv_sys_max_cmd_len
                   5947: 
                   5948: 
                   5949: 
                   5950: 
                   5951: 
                   5952: 
                   5953: : ${CP="cp -f"}
                   5954: : ${MV="mv -f"}
                   5955: : ${RM="rm -f"}
                   5956: 
                   5957: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
                   5958: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
                   5959: # Try some XSI features
                   5960: xsi_shell=no
                   5961: ( _lt_dummy="a/b/c"
                   5962:   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
                   5963:       = c,a/b,b/c, \
                   5964:     && eval 'test $(( 1 + 1 )) -eq 2 \
                   5965:     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
                   5966:   && xsi_shell=yes
                   5967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
                   5968: $as_echo "$xsi_shell" >&6; }
                   5969: 
                   5970: 
                   5971: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
                   5972: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
                   5973: lt_shell_append=no
                   5974: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
                   5975:     >/dev/null 2>&1 \
                   5976:   && lt_shell_append=yes
                   5977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
                   5978: $as_echo "$lt_shell_append" >&6; }
                   5979: 
                   5980: 
                   5981: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
                   5982:   lt_unset=unset
                   5983: else
                   5984:   lt_unset=false
                   5985: fi
                   5986: 
                   5987: 
                   5988: 
                   5989: 
                   5990: 
                   5991: # test EBCDIC or ASCII
                   5992: case `echo X|tr X '\101'` in
                   5993:  A) # ASCII based system
                   5994:     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
                   5995:   lt_SP2NL='tr \040 \012'
                   5996:   lt_NL2SP='tr \015\012 \040\040'
                   5997:   ;;
                   5998:  *) # EBCDIC based system
                   5999:   lt_SP2NL='tr \100 \n'
                   6000:   lt_NL2SP='tr \r\n \100\100'
                   6001:   ;;
                   6002: esac
                   6003: 
                   6004: 
                   6005: 
                   6006: 
                   6007: 
                   6008: 
                   6009: 
                   6010: 
                   6011: 
                   6012: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
                   6013: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
                   6014: if ${lt_cv_to_host_file_cmd+:} false; then :
                   6015:   $as_echo_n "(cached) " >&6
                   6016: else
                   6017:   case $host in
                   6018:   *-*-mingw* )
                   6019:     case $build in
                   6020:       *-*-mingw* ) # actually msys
                   6021:         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
                   6022:         ;;
                   6023:       *-*-cygwin* )
                   6024:         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
                   6025:         ;;
                   6026:       * ) # otherwise, assume *nix
                   6027:         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
                   6028:         ;;
                   6029:     esac
                   6030:     ;;
                   6031:   *-*-cygwin* )
                   6032:     case $build in
                   6033:       *-*-mingw* ) # actually msys
                   6034:         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
                   6035:         ;;
                   6036:       *-*-cygwin* )
                   6037:         lt_cv_to_host_file_cmd=func_convert_file_noop
                   6038:         ;;
                   6039:       * ) # otherwise, assume *nix
                   6040:         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
                   6041:         ;;
                   6042:     esac
                   6043:     ;;
                   6044:   * ) # unhandled hosts (and "normal" native builds)
                   6045:     lt_cv_to_host_file_cmd=func_convert_file_noop
                   6046:     ;;
                   6047: esac
                   6048: 
                   6049: fi
                   6050: 
                   6051: to_host_file_cmd=$lt_cv_to_host_file_cmd
                   6052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
                   6053: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
                   6054: 
                   6055: 
                   6056: 
                   6057: 
                   6058: 
                   6059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
                   6060: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
                   6061: if ${lt_cv_to_tool_file_cmd+:} false; then :
                   6062:   $as_echo_n "(cached) " >&6
                   6063: else
                   6064:   #assume ordinary cross tools, or native build.
                   6065: lt_cv_to_tool_file_cmd=func_convert_file_noop
                   6066: case $host in
                   6067:   *-*-mingw* )
                   6068:     case $build in
                   6069:       *-*-mingw* ) # actually msys
                   6070:         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
                   6071:         ;;
                   6072:     esac
                   6073:     ;;
                   6074: esac
                   6075: 
                   6076: fi
                   6077: 
                   6078: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
                   6079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
                   6080: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
                   6081: 
                   6082: 
                   6083: 
                   6084: 
                   6085: 
                   6086: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
                   6087: $as_echo_n "checking for $LD option to reload object files... " >&6; }
                   6088: if ${lt_cv_ld_reload_flag+:} false; then :
                   6089:   $as_echo_n "(cached) " >&6
                   6090: else
                   6091:   lt_cv_ld_reload_flag='-r'
                   6092: fi
                   6093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
                   6094: $as_echo "$lt_cv_ld_reload_flag" >&6; }
                   6095: reload_flag=$lt_cv_ld_reload_flag
                   6096: case $reload_flag in
                   6097: "" | " "*) ;;
                   6098: *) reload_flag=" $reload_flag" ;;
                   6099: esac
                   6100: reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   6101: case $host_os in
                   6102:   cygwin* | mingw* | pw32* | cegcc*)
                   6103:     if test "$GCC" != yes; then
                   6104:       reload_cmds=false
                   6105:     fi
                   6106:     ;;
                   6107:   darwin*)
                   6108:     if test "$GCC" = yes; then
                   6109:       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
                   6110:     else
                   6111:       reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   6112:     fi
                   6113:     ;;
                   6114: esac
                   6115: 
                   6116: 
                   6117: 
                   6118: 
                   6119: 
                   6120: 
                   6121: 
                   6122: 
                   6123: 
                   6124: if test -n "$ac_tool_prefix"; then
                   6125:   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
                   6126: set dummy ${ac_tool_prefix}objdump; ac_word=$2
                   6127: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6128: $as_echo_n "checking for $ac_word... " >&6; }
                   6129: if ${ac_cv_prog_OBJDUMP+:} false; then :
                   6130:   $as_echo_n "(cached) " >&6
                   6131: else
                   6132:   if test -n "$OBJDUMP"; then
                   6133:   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
                   6134: else
                   6135: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6136: for as_dir in $PATH
                   6137: do
                   6138:   IFS=$as_save_IFS
                   6139:   test -z "$as_dir" && as_dir=.
                   6140:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    6141:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6142:     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
                   6143:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6144:     break 2
                   6145:   fi
                   6146: done
                   6147:   done
                   6148: IFS=$as_save_IFS
                   6149: 
                   6150: fi
                   6151: fi
                   6152: OBJDUMP=$ac_cv_prog_OBJDUMP
                   6153: if test -n "$OBJDUMP"; then
                   6154:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
                   6155: $as_echo "$OBJDUMP" >&6; }
                   6156: else
                   6157:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6158: $as_echo "no" >&6; }
                   6159: fi
                   6160: 
                   6161: 
                   6162: fi
                   6163: if test -z "$ac_cv_prog_OBJDUMP"; then
                   6164:   ac_ct_OBJDUMP=$OBJDUMP
                   6165:   # Extract the first word of "objdump", so it can be a program name with args.
                   6166: set dummy objdump; ac_word=$2
                   6167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6168: $as_echo_n "checking for $ac_word... " >&6; }
                   6169: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
                   6170:   $as_echo_n "(cached) " >&6
                   6171: else
                   6172:   if test -n "$ac_ct_OBJDUMP"; then
                   6173:   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
                   6174: else
                   6175: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6176: for as_dir in $PATH
                   6177: do
                   6178:   IFS=$as_save_IFS
                   6179:   test -z "$as_dir" && as_dir=.
                   6180:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    6181:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6182:     ac_cv_prog_ac_ct_OBJDUMP="objdump"
                   6183:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6184:     break 2
                   6185:   fi
                   6186: done
                   6187:   done
                   6188: IFS=$as_save_IFS
                   6189: 
                   6190: fi
                   6191: fi
                   6192: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
                   6193: if test -n "$ac_ct_OBJDUMP"; then
                   6194:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
                   6195: $as_echo "$ac_ct_OBJDUMP" >&6; }
                   6196: else
                   6197:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6198: $as_echo "no" >&6; }
                   6199: fi
                   6200: 
                   6201:   if test "x$ac_ct_OBJDUMP" = x; then
                   6202:     OBJDUMP="false"
                   6203:   else
                   6204:     case $cross_compiling:$ac_tool_warned in
                   6205: yes:)
                   6206: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6207: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6208: ac_tool_warned=yes ;;
                   6209: esac
                   6210:     OBJDUMP=$ac_ct_OBJDUMP
                   6211:   fi
                   6212: else
                   6213:   OBJDUMP="$ac_cv_prog_OBJDUMP"
                   6214: fi
                   6215: 
                   6216: test -z "$OBJDUMP" && OBJDUMP=objdump
                   6217: 
                   6218: 
                   6219: 
                   6220: 
                   6221: 
                   6222: 
                   6223: 
                   6224: 
                   6225: 
                   6226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
                   6227: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
                   6228: if ${lt_cv_deplibs_check_method+:} false; then :
                   6229:   $as_echo_n "(cached) " >&6
                   6230: else
                   6231:   lt_cv_file_magic_cmd='$MAGIC_CMD'
                   6232: lt_cv_file_magic_test_file=
                   6233: lt_cv_deplibs_check_method='unknown'
                   6234: # Need to set the preceding variable on all platforms that support
                   6235: # interlibrary dependencies.
                   6236: # 'none' -- dependencies not supported.
                   6237: # `unknown' -- same as none, but documents that we really don't know.
                   6238: # 'pass_all' -- all dependencies passed with no checks.
                   6239: # 'test_compile' -- check by making test program.
                   6240: # 'file_magic [[regex]]' -- check by looking for files in library path
                   6241: # which responds to the $file_magic_cmd with a given extended regex.
                   6242: # If you have `file' or equivalent on your system and you're not sure
                   6243: # whether `pass_all' will *always* work, you probably want this one.
                   6244: 
                   6245: case $host_os in
                   6246: aix[4-9]*)
                   6247:   lt_cv_deplibs_check_method=pass_all
                   6248:   ;;
                   6249: 
                   6250: beos*)
                   6251:   lt_cv_deplibs_check_method=pass_all
                   6252:   ;;
                   6253: 
                   6254: bsdi[45]*)
                   6255:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
                   6256:   lt_cv_file_magic_cmd='/usr/bin/file -L'
                   6257:   lt_cv_file_magic_test_file=/shlib/libc.so
                   6258:   ;;
                   6259: 
                   6260: cygwin*)
                   6261:   # func_win32_libid is a shell function defined in ltmain.sh
                   6262:   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
                   6263:   lt_cv_file_magic_cmd='func_win32_libid'
                   6264:   ;;
                   6265: 
                   6266: mingw* | pw32*)
                   6267:   # Base MSYS/MinGW do not provide the 'file' command needed by
                   6268:   # func_win32_libid shell function, so use a weaker test based on 'objdump',
                   6269:   # unless we find 'file', for example because we are cross-compiling.
                   6270:   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
                   6271:   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
                   6272:     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
                   6273:     lt_cv_file_magic_cmd='func_win32_libid'
                   6274:   else
                   6275:     # Keep this pattern in sync with the one in func_win32_libid.
                   6276:     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
                   6277:     lt_cv_file_magic_cmd='$OBJDUMP -f'
                   6278:   fi
                   6279:   ;;
                   6280: 
                   6281: cegcc*)
                   6282:   # use the weaker test based on 'objdump'. See mingw*.
                   6283:   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
                   6284:   lt_cv_file_magic_cmd='$OBJDUMP -f'
                   6285:   ;;
                   6286: 
                   6287: darwin* | rhapsody*)
                   6288:   lt_cv_deplibs_check_method=pass_all
                   6289:   ;;
                   6290: 
                   6291: freebsd* | dragonfly*)
                   6292:   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
                   6293:     case $host_cpu in
                   6294:     i*86 )
                   6295:       # Not sure whether the presence of OpenBSD here was a mistake.
                   6296:       # Let's accept both of them until this is cleared up.
                   6297:       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
                   6298:       lt_cv_file_magic_cmd=/usr/bin/file
                   6299:       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
                   6300:       ;;
                   6301:     esac
                   6302:   else
                   6303:     lt_cv_deplibs_check_method=pass_all
                   6304:   fi
                   6305:   ;;
                   6306: 
                   6307: gnu*)
                   6308:   lt_cv_deplibs_check_method=pass_all
                   6309:   ;;
                   6310: 
                   6311: haiku*)
                   6312:   lt_cv_deplibs_check_method=pass_all
                   6313:   ;;
                   6314: 
                   6315: hpux10.20* | hpux11*)
                   6316:   lt_cv_file_magic_cmd=/usr/bin/file
                   6317:   case $host_cpu in
                   6318:   ia64*)
                   6319:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
                   6320:     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
                   6321:     ;;
                   6322:   hppa*64*)
                   6323:     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]'
                   6324:     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
                   6325:     ;;
                   6326:   *)
                   6327:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
                   6328:     lt_cv_file_magic_test_file=/usr/lib/libc.sl
                   6329:     ;;
                   6330:   esac
                   6331:   ;;
                   6332: 
                   6333: interix[3-9]*)
                   6334:   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
                   6335:   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
                   6336:   ;;
                   6337: 
                   6338: irix5* | irix6* | nonstopux*)
                   6339:   case $LD in
                   6340:   *-32|*"-32 ") libmagic=32-bit;;
                   6341:   *-n32|*"-n32 ") libmagic=N32;;
                   6342:   *-64|*"-64 ") libmagic=64-bit;;
                   6343:   *) libmagic=never-match;;
                   6344:   esac
                   6345:   lt_cv_deplibs_check_method=pass_all
                   6346:   ;;
                   6347: 
1.1.1.2   misho    6348: # This must be glibc/ELF.
1.1       misho    6349: linux* | k*bsd*-gnu | kopensolaris*-gnu)
                   6350:   lt_cv_deplibs_check_method=pass_all
                   6351:   ;;
                   6352: 
                   6353: netbsd*)
                   6354:   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
                   6355:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
                   6356:   else
                   6357:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
                   6358:   fi
                   6359:   ;;
                   6360: 
                   6361: newos6*)
                   6362:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
                   6363:   lt_cv_file_magic_cmd=/usr/bin/file
                   6364:   lt_cv_file_magic_test_file=/usr/lib/libnls.so
                   6365:   ;;
                   6366: 
                   6367: *nto* | *qnx*)
                   6368:   lt_cv_deplibs_check_method=pass_all
                   6369:   ;;
                   6370: 
                   6371: openbsd*)
                   6372:   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   6373:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
                   6374:   else
                   6375:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
                   6376:   fi
                   6377:   ;;
                   6378: 
                   6379: osf3* | osf4* | osf5*)
                   6380:   lt_cv_deplibs_check_method=pass_all
                   6381:   ;;
                   6382: 
                   6383: rdos*)
                   6384:   lt_cv_deplibs_check_method=pass_all
                   6385:   ;;
                   6386: 
                   6387: solaris*)
                   6388:   lt_cv_deplibs_check_method=pass_all
                   6389:   ;;
                   6390: 
                   6391: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
                   6392:   lt_cv_deplibs_check_method=pass_all
                   6393:   ;;
                   6394: 
                   6395: sysv4 | sysv4.3*)
                   6396:   case $host_vendor in
                   6397:   motorola)
                   6398:     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]'
                   6399:     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
                   6400:     ;;
                   6401:   ncr)
                   6402:     lt_cv_deplibs_check_method=pass_all
                   6403:     ;;
                   6404:   sequent)
                   6405:     lt_cv_file_magic_cmd='/bin/file'
                   6406:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
                   6407:     ;;
                   6408:   sni)
                   6409:     lt_cv_file_magic_cmd='/bin/file'
                   6410:     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
                   6411:     lt_cv_file_magic_test_file=/lib/libc.so
                   6412:     ;;
                   6413:   siemens)
                   6414:     lt_cv_deplibs_check_method=pass_all
                   6415:     ;;
                   6416:   pc)
                   6417:     lt_cv_deplibs_check_method=pass_all
                   6418:     ;;
                   6419:   esac
                   6420:   ;;
                   6421: 
                   6422: tpf*)
                   6423:   lt_cv_deplibs_check_method=pass_all
                   6424:   ;;
                   6425: esac
                   6426: 
                   6427: fi
                   6428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
                   6429: $as_echo "$lt_cv_deplibs_check_method" >&6; }
                   6430: 
                   6431: file_magic_glob=
                   6432: want_nocaseglob=no
                   6433: if test "$build" = "$host"; then
                   6434:   case $host_os in
                   6435:   mingw* | pw32*)
                   6436:     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
                   6437:       want_nocaseglob=yes
                   6438:     else
                   6439:       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
                   6440:     fi
                   6441:     ;;
                   6442:   esac
                   6443: fi
                   6444: 
                   6445: file_magic_cmd=$lt_cv_file_magic_cmd
                   6446: deplibs_check_method=$lt_cv_deplibs_check_method
                   6447: test -z "$deplibs_check_method" && deplibs_check_method=unknown
                   6448: 
                   6449: 
                   6450: 
                   6451: 
                   6452: 
                   6453: 
                   6454: 
                   6455: 
                   6456: 
                   6457: 
                   6458: 
                   6459: 
                   6460: 
                   6461: 
                   6462: 
                   6463: 
                   6464: 
                   6465: 
                   6466: 
                   6467: 
                   6468: 
                   6469: 
                   6470: if test -n "$ac_tool_prefix"; then
                   6471:   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
                   6472: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
                   6473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6474: $as_echo_n "checking for $ac_word... " >&6; }
                   6475: if ${ac_cv_prog_DLLTOOL+:} false; then :
                   6476:   $as_echo_n "(cached) " >&6
                   6477: else
                   6478:   if test -n "$DLLTOOL"; then
                   6479:   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
                   6480: else
                   6481: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6482: for as_dir in $PATH
                   6483: do
                   6484:   IFS=$as_save_IFS
                   6485:   test -z "$as_dir" && as_dir=.
                   6486:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    6487:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6488:     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
                   6489:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6490:     break 2
                   6491:   fi
                   6492: done
                   6493:   done
                   6494: IFS=$as_save_IFS
                   6495: 
                   6496: fi
                   6497: fi
                   6498: DLLTOOL=$ac_cv_prog_DLLTOOL
                   6499: if test -n "$DLLTOOL"; then
                   6500:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
                   6501: $as_echo "$DLLTOOL" >&6; }
                   6502: else
                   6503:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6504: $as_echo "no" >&6; }
                   6505: fi
                   6506: 
                   6507: 
                   6508: fi
                   6509: if test -z "$ac_cv_prog_DLLTOOL"; then
                   6510:   ac_ct_DLLTOOL=$DLLTOOL
                   6511:   # Extract the first word of "dlltool", so it can be a program name with args.
                   6512: set dummy dlltool; ac_word=$2
                   6513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6514: $as_echo_n "checking for $ac_word... " >&6; }
                   6515: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
                   6516:   $as_echo_n "(cached) " >&6
                   6517: else
                   6518:   if test -n "$ac_ct_DLLTOOL"; then
                   6519:   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
                   6520: else
                   6521: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6522: for as_dir in $PATH
                   6523: do
                   6524:   IFS=$as_save_IFS
                   6525:   test -z "$as_dir" && as_dir=.
                   6526:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    6527:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6528:     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
                   6529:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6530:     break 2
                   6531:   fi
                   6532: done
                   6533:   done
                   6534: IFS=$as_save_IFS
                   6535: 
                   6536: fi
                   6537: fi
                   6538: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
                   6539: if test -n "$ac_ct_DLLTOOL"; then
                   6540:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
                   6541: $as_echo "$ac_ct_DLLTOOL" >&6; }
                   6542: else
                   6543:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6544: $as_echo "no" >&6; }
                   6545: fi
                   6546: 
                   6547:   if test "x$ac_ct_DLLTOOL" = x; then
                   6548:     DLLTOOL="false"
                   6549:   else
                   6550:     case $cross_compiling:$ac_tool_warned in
                   6551: yes:)
                   6552: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6553: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6554: ac_tool_warned=yes ;;
                   6555: esac
                   6556:     DLLTOOL=$ac_ct_DLLTOOL
                   6557:   fi
                   6558: else
                   6559:   DLLTOOL="$ac_cv_prog_DLLTOOL"
                   6560: fi
                   6561: 
                   6562: test -z "$DLLTOOL" && DLLTOOL=dlltool
                   6563: 
                   6564: 
                   6565: 
                   6566: 
                   6567: 
                   6568: 
                   6569: 
                   6570: 
                   6571: 
                   6572: 
                   6573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
                   6574: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
                   6575: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
                   6576:   $as_echo_n "(cached) " >&6
                   6577: else
                   6578:   lt_cv_sharedlib_from_linklib_cmd='unknown'
                   6579: 
                   6580: case $host_os in
                   6581: cygwin* | mingw* | pw32* | cegcc*)
                   6582:   # two different shell functions defined in ltmain.sh
                   6583:   # decide which to use based on capabilities of $DLLTOOL
                   6584:   case `$DLLTOOL --help 2>&1` in
                   6585:   *--identify-strict*)
                   6586:     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
                   6587:     ;;
                   6588:   *)
                   6589:     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
                   6590:     ;;
                   6591:   esac
                   6592:   ;;
                   6593: *)
                   6594:   # fallback: assume linklib IS sharedlib
                   6595:   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
                   6596:   ;;
                   6597: esac
                   6598: 
                   6599: fi
                   6600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
                   6601: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
                   6602: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
                   6603: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
                   6604: 
                   6605: 
                   6606: 
                   6607: 
                   6608: 
                   6609: 
                   6610: 
                   6611: if test -n "$ac_tool_prefix"; then
                   6612:   for ac_prog in ar
                   6613:   do
                   6614:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   6615: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   6616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6617: $as_echo_n "checking for $ac_word... " >&6; }
                   6618: if ${ac_cv_prog_AR+:} false; then :
                   6619:   $as_echo_n "(cached) " >&6
                   6620: else
                   6621:   if test -n "$AR"; then
                   6622:   ac_cv_prog_AR="$AR" # Let the user override the test.
                   6623: else
                   6624: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6625: for as_dir in $PATH
                   6626: do
                   6627:   IFS=$as_save_IFS
                   6628:   test -z "$as_dir" && as_dir=.
                   6629:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    6630:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6631:     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
                   6632:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6633:     break 2
                   6634:   fi
                   6635: done
                   6636:   done
                   6637: IFS=$as_save_IFS
                   6638: 
                   6639: fi
                   6640: fi
                   6641: AR=$ac_cv_prog_AR
                   6642: if test -n "$AR"; then
                   6643:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
                   6644: $as_echo "$AR" >&6; }
                   6645: else
                   6646:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6647: $as_echo "no" >&6; }
                   6648: fi
                   6649: 
                   6650: 
                   6651:     test -n "$AR" && break
                   6652:   done
                   6653: fi
                   6654: if test -z "$AR"; then
                   6655:   ac_ct_AR=$AR
                   6656:   for ac_prog in ar
                   6657: do
                   6658:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   6659: set dummy $ac_prog; ac_word=$2
                   6660: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6661: $as_echo_n "checking for $ac_word... " >&6; }
                   6662: if ${ac_cv_prog_ac_ct_AR+:} false; then :
                   6663:   $as_echo_n "(cached) " >&6
                   6664: else
                   6665:   if test -n "$ac_ct_AR"; then
                   6666:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
                   6667: else
                   6668: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6669: for as_dir in $PATH
                   6670: do
                   6671:   IFS=$as_save_IFS
                   6672:   test -z "$as_dir" && as_dir=.
                   6673:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    6674:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6675:     ac_cv_prog_ac_ct_AR="$ac_prog"
                   6676:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6677:     break 2
                   6678:   fi
                   6679: done
                   6680:   done
                   6681: IFS=$as_save_IFS
                   6682: 
                   6683: fi
                   6684: fi
                   6685: ac_ct_AR=$ac_cv_prog_ac_ct_AR
                   6686: if test -n "$ac_ct_AR"; then
                   6687:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
                   6688: $as_echo "$ac_ct_AR" >&6; }
                   6689: else
                   6690:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6691: $as_echo "no" >&6; }
                   6692: fi
                   6693: 
                   6694: 
                   6695:   test -n "$ac_ct_AR" && break
                   6696: done
                   6697: 
                   6698:   if test "x$ac_ct_AR" = x; then
                   6699:     AR="false"
                   6700:   else
                   6701:     case $cross_compiling:$ac_tool_warned in
                   6702: yes:)
                   6703: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6704: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6705: ac_tool_warned=yes ;;
                   6706: esac
                   6707:     AR=$ac_ct_AR
                   6708:   fi
                   6709: fi
                   6710: 
                   6711: : ${AR=ar}
                   6712: : ${AR_FLAGS=cru}
                   6713: 
                   6714: 
                   6715: 
                   6716: 
                   6717: 
                   6718: 
                   6719: 
                   6720: 
                   6721: 
                   6722: 
                   6723: 
                   6724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
                   6725: $as_echo_n "checking for archiver @FILE support... " >&6; }
                   6726: if ${lt_cv_ar_at_file+:} false; then :
                   6727:   $as_echo_n "(cached) " >&6
                   6728: else
                   6729:   lt_cv_ar_at_file=no
                   6730:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6731: /* end confdefs.h.  */
                   6732: 
                   6733: int
                   6734: main ()
                   6735: {
                   6736: 
                   6737:   ;
                   6738:   return 0;
                   6739: }
                   6740: _ACEOF
                   6741: if ac_fn_c_try_compile "$LINENO"; then :
                   6742:   echo conftest.$ac_objext > conftest.lst
                   6743:       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
                   6744:       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
                   6745:   (eval $lt_ar_try) 2>&5
                   6746:   ac_status=$?
                   6747:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   6748:   test $ac_status = 0; }
                   6749:       if test "$ac_status" -eq 0; then
                   6750:        # Ensure the archiver fails upon bogus file names.
                   6751:        rm -f conftest.$ac_objext libconftest.a
                   6752:        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
                   6753:   (eval $lt_ar_try) 2>&5
                   6754:   ac_status=$?
                   6755:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   6756:   test $ac_status = 0; }
                   6757:        if test "$ac_status" -ne 0; then
                   6758:           lt_cv_ar_at_file=@
                   6759:         fi
                   6760:       fi
                   6761:       rm -f conftest.* libconftest.a
                   6762: 
                   6763: fi
                   6764: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6765: 
                   6766: fi
                   6767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
                   6768: $as_echo "$lt_cv_ar_at_file" >&6; }
                   6769: 
                   6770: if test "x$lt_cv_ar_at_file" = xno; then
                   6771:   archiver_list_spec=
                   6772: else
                   6773:   archiver_list_spec=$lt_cv_ar_at_file
                   6774: fi
                   6775: 
                   6776: 
                   6777: 
                   6778: 
                   6779: 
                   6780: 
                   6781: 
                   6782: if test -n "$ac_tool_prefix"; then
                   6783:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   6784: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   6785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6786: $as_echo_n "checking for $ac_word... " >&6; }
                   6787: if ${ac_cv_prog_STRIP+:} false; then :
                   6788:   $as_echo_n "(cached) " >&6
                   6789: else
                   6790:   if test -n "$STRIP"; then
                   6791:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
                   6792: else
                   6793: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6794: for as_dir in $PATH
                   6795: do
                   6796:   IFS=$as_save_IFS
                   6797:   test -z "$as_dir" && as_dir=.
                   6798:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    6799:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6800:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   6801:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6802:     break 2
                   6803:   fi
                   6804: done
                   6805:   done
                   6806: IFS=$as_save_IFS
                   6807: 
                   6808: fi
                   6809: fi
                   6810: STRIP=$ac_cv_prog_STRIP
                   6811: if test -n "$STRIP"; then
                   6812:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   6813: $as_echo "$STRIP" >&6; }
                   6814: else
                   6815:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6816: $as_echo "no" >&6; }
                   6817: fi
                   6818: 
                   6819: 
                   6820: fi
                   6821: if test -z "$ac_cv_prog_STRIP"; then
                   6822:   ac_ct_STRIP=$STRIP
                   6823:   # Extract the first word of "strip", so it can be a program name with args.
                   6824: set dummy strip; ac_word=$2
                   6825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6826: $as_echo_n "checking for $ac_word... " >&6; }
                   6827: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
                   6828:   $as_echo_n "(cached) " >&6
                   6829: else
                   6830:   if test -n "$ac_ct_STRIP"; then
                   6831:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
                   6832: else
                   6833: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6834: for as_dir in $PATH
                   6835: do
                   6836:   IFS=$as_save_IFS
                   6837:   test -z "$as_dir" && as_dir=.
                   6838:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    6839:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6840:     ac_cv_prog_ac_ct_STRIP="strip"
                   6841:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6842:     break 2
                   6843:   fi
                   6844: done
                   6845:   done
                   6846: IFS=$as_save_IFS
                   6847: 
                   6848: fi
                   6849: fi
                   6850: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   6851: if test -n "$ac_ct_STRIP"; then
                   6852:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   6853: $as_echo "$ac_ct_STRIP" >&6; }
                   6854: else
                   6855:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6856: $as_echo "no" >&6; }
                   6857: fi
                   6858: 
                   6859:   if test "x$ac_ct_STRIP" = x; then
                   6860:     STRIP=":"
                   6861:   else
                   6862:     case $cross_compiling:$ac_tool_warned in
                   6863: yes:)
                   6864: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6865: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6866: ac_tool_warned=yes ;;
                   6867: esac
                   6868:     STRIP=$ac_ct_STRIP
                   6869:   fi
                   6870: else
                   6871:   STRIP="$ac_cv_prog_STRIP"
                   6872: fi
                   6873: 
                   6874: test -z "$STRIP" && STRIP=:
                   6875: 
                   6876: 
                   6877: 
                   6878: 
                   6879: 
                   6880: 
                   6881: if test -n "$ac_tool_prefix"; then
                   6882:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6883: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6885: $as_echo_n "checking for $ac_word... " >&6; }
                   6886: if ${ac_cv_prog_RANLIB+:} false; then :
                   6887:   $as_echo_n "(cached) " >&6
                   6888: else
                   6889:   if test -n "$RANLIB"; then
                   6890:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   6891: else
                   6892: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6893: for as_dir in $PATH
                   6894: do
                   6895:   IFS=$as_save_IFS
                   6896:   test -z "$as_dir" && as_dir=.
                   6897:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    6898:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6899:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6900:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6901:     break 2
                   6902:   fi
                   6903: done
                   6904:   done
                   6905: IFS=$as_save_IFS
                   6906: 
                   6907: fi
                   6908: fi
                   6909: RANLIB=$ac_cv_prog_RANLIB
                   6910: if test -n "$RANLIB"; then
                   6911:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6912: $as_echo "$RANLIB" >&6; }
                   6913: else
                   6914:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6915: $as_echo "no" >&6; }
                   6916: fi
                   6917: 
                   6918: 
                   6919: fi
                   6920: if test -z "$ac_cv_prog_RANLIB"; then
                   6921:   ac_ct_RANLIB=$RANLIB
                   6922:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6923: set dummy ranlib; ac_word=$2
                   6924: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6925: $as_echo_n "checking for $ac_word... " >&6; }
                   6926: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
                   6927:   $as_echo_n "(cached) " >&6
                   6928: else
                   6929:   if test -n "$ac_ct_RANLIB"; then
                   6930:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6931: else
                   6932: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6933: for as_dir in $PATH
                   6934: do
                   6935:   IFS=$as_save_IFS
                   6936:   test -z "$as_dir" && as_dir=.
                   6937:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    6938:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    6939:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6940:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6941:     break 2
                   6942:   fi
                   6943: done
                   6944:   done
                   6945: IFS=$as_save_IFS
                   6946: 
                   6947: fi
                   6948: fi
                   6949: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6950: if test -n "$ac_ct_RANLIB"; then
                   6951:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6952: $as_echo "$ac_ct_RANLIB" >&6; }
                   6953: else
                   6954:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6955: $as_echo "no" >&6; }
                   6956: fi
                   6957: 
                   6958:   if test "x$ac_ct_RANLIB" = x; then
                   6959:     RANLIB=":"
                   6960:   else
                   6961:     case $cross_compiling:$ac_tool_warned in
                   6962: yes:)
                   6963: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6964: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6965: ac_tool_warned=yes ;;
                   6966: esac
                   6967:     RANLIB=$ac_ct_RANLIB
                   6968:   fi
                   6969: else
                   6970:   RANLIB="$ac_cv_prog_RANLIB"
                   6971: fi
                   6972: 
                   6973: test -z "$RANLIB" && RANLIB=:
                   6974: 
                   6975: 
                   6976: 
                   6977: 
                   6978: 
                   6979: 
                   6980: # Determine commands to create old-style static archives.
                   6981: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
                   6982: old_postinstall_cmds='chmod 644 $oldlib'
                   6983: old_postuninstall_cmds=
                   6984: 
                   6985: if test -n "$RANLIB"; then
                   6986:   case $host_os in
                   6987:   openbsd*)
1.1.1.2   misho    6988:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1       misho    6989:     ;;
                   6990:   *)
1.1.1.2   misho    6991:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1       misho    6992:     ;;
                   6993:   esac
1.1.1.2   misho    6994:   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.1       misho    6995: fi
                   6996: 
                   6997: case $host_os in
                   6998:   darwin*)
                   6999:     lock_old_archive_extraction=yes ;;
                   7000:   *)
                   7001:     lock_old_archive_extraction=no ;;
                   7002: esac
                   7003: 
                   7004: 
                   7005: 
                   7006: 
                   7007: 
                   7008: 
                   7009: 
                   7010: 
                   7011: 
                   7012: 
                   7013: 
                   7014: 
                   7015: 
                   7016: 
                   7017: 
                   7018: 
                   7019: 
                   7020: 
                   7021: 
                   7022: 
                   7023: 
                   7024: 
                   7025: 
                   7026: 
                   7027: 
                   7028: 
                   7029: 
                   7030: 
                   7031: 
                   7032: 
                   7033: 
                   7034: 
                   7035: 
                   7036: 
                   7037: 
                   7038: 
                   7039: 
                   7040: 
                   7041: 
                   7042: # If no C compiler was specified, use CC.
                   7043: LTCC=${LTCC-"$CC"}
                   7044: 
                   7045: # If no C compiler flags were specified, use CFLAGS.
                   7046: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
                   7047: 
                   7048: # Allow CC to be a program name with arguments.
                   7049: compiler=$CC
                   7050: 
                   7051: 
                   7052: # Check for command to grab the raw symbol name followed by C symbol from nm.
                   7053: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
                   7054: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
                   7055: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
                   7056:   $as_echo_n "(cached) " >&6
                   7057: else
                   7058: 
                   7059: # These are sane defaults that work on at least a few old systems.
                   7060: # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
                   7061: 
                   7062: # Character class describing NM global symbol codes.
                   7063: symcode='[BCDEGRST]'
                   7064: 
                   7065: # Regexp to match symbols that can be accessed directly from C.
                   7066: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
                   7067: 
                   7068: # Define system-specific variables.
                   7069: case $host_os in
                   7070: aix*)
                   7071:   symcode='[BCDT]'
                   7072:   ;;
                   7073: cygwin* | mingw* | pw32* | cegcc*)
                   7074:   symcode='[ABCDGISTW]'
                   7075:   ;;
                   7076: hpux*)
                   7077:   if test "$host_cpu" = ia64; then
                   7078:     symcode='[ABCDEGRST]'
                   7079:   fi
                   7080:   ;;
                   7081: irix* | nonstopux*)
                   7082:   symcode='[BCDEGRST]'
                   7083:   ;;
                   7084: osf*)
                   7085:   symcode='[BCDEGQRST]'
                   7086:   ;;
                   7087: solaris*)
                   7088:   symcode='[BDRT]'
                   7089:   ;;
                   7090: sco3.2v5*)
                   7091:   symcode='[DT]'
                   7092:   ;;
                   7093: sysv4.2uw2*)
                   7094:   symcode='[DT]'
                   7095:   ;;
                   7096: sysv5* | sco5v6* | unixware* | OpenUNIX*)
                   7097:   symcode='[ABDT]'
                   7098:   ;;
                   7099: sysv4)
                   7100:   symcode='[DFNSTU]'
                   7101:   ;;
                   7102: esac
                   7103: 
                   7104: # If we're using GNU nm, then use its standard symbol codes.
                   7105: case `$NM -V 2>&1` in
                   7106: *GNU* | *'with BFD'*)
                   7107:   symcode='[ABCDGIRSTW]' ;;
                   7108: esac
                   7109: 
                   7110: # Transform an extracted symbol line into a proper C declaration.
                   7111: # Some systems (esp. on ia64) link data and code symbols differently,
                   7112: # so use this general approach.
                   7113: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
                   7114: 
                   7115: # Transform an extracted symbol line into symbol name and symbol address
                   7116: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
                   7117: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
                   7118: 
                   7119: # Handle CRLF in mingw tool chain
                   7120: opt_cr=
                   7121: case $build_os in
                   7122: mingw*)
                   7123:   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
                   7124:   ;;
                   7125: esac
                   7126: 
                   7127: # Try without a prefix underscore, then with it.
                   7128: for ac_symprfx in "" "_"; do
                   7129: 
                   7130:   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
                   7131:   symxfrm="\\1 $ac_symprfx\\2 \\2"
                   7132: 
                   7133:   # Write the raw and C identifiers.
                   7134:   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
                   7135:     # Fake it for dumpbin and say T for any non-static function
                   7136:     # and D for any global variable.
                   7137:     # Also find C++ and __fastcall symbols from MSVC++,
                   7138:     # which start with @ or ?.
                   7139:     lt_cv_sys_global_symbol_pipe="$AWK '"\
                   7140: "     {last_section=section; section=\$ 3};"\
1.1.1.2   misho    7141: "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
1.1       misho    7142: "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
                   7143: "     \$ 0!~/External *\|/{next};"\
                   7144: "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
                   7145: "     {if(hide[section]) next};"\
                   7146: "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
                   7147: "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
                   7148: "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
                   7149: "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
                   7150: "     ' prfx=^$ac_symprfx"
                   7151:   else
                   7152:     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[     ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
                   7153:   fi
                   7154:   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
                   7155: 
                   7156:   # Check to see that the pipe works correctly.
                   7157:   pipe_works=no
                   7158: 
                   7159:   rm -f conftest*
                   7160:   cat > conftest.$ac_ext <<_LT_EOF
                   7161: #ifdef __cplusplus
                   7162: extern "C" {
                   7163: #endif
                   7164: char nm_test_var;
                   7165: void nm_test_func(void);
                   7166: void nm_test_func(void){}
                   7167: #ifdef __cplusplus
                   7168: }
                   7169: #endif
                   7170: int main(){nm_test_var='a';nm_test_func();return(0);}
                   7171: _LT_EOF
                   7172: 
                   7173:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   7174:   (eval $ac_compile) 2>&5
                   7175:   ac_status=$?
                   7176:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   7177:   test $ac_status = 0; }; then
                   7178:     # Now try to grab the symbols.
                   7179:     nlist=conftest.nm
                   7180:     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
                   7181:   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
                   7182:   ac_status=$?
                   7183:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   7184:   test $ac_status = 0; } && test -s "$nlist"; then
                   7185:       # Try sorting and uniquifying the output.
                   7186:       if sort "$nlist" | uniq > "$nlist"T; then
                   7187:        mv -f "$nlist"T "$nlist"
                   7188:       else
                   7189:        rm -f "$nlist"T
                   7190:       fi
                   7191: 
                   7192:       # Make sure that we snagged all the symbols we need.
                   7193:       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
                   7194:        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
                   7195:          cat <<_LT_EOF > conftest.$ac_ext
                   7196: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
                   7197: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
                   7198: /* DATA imports from DLLs on WIN32 con't be const, because runtime
                   7199:    relocations are performed -- see ld's documentation on pseudo-relocs.  */
                   7200: # define LT_DLSYM_CONST
                   7201: #elif defined(__osf__)
                   7202: /* This system does not cope well with relocations in const data.  */
                   7203: # define LT_DLSYM_CONST
                   7204: #else
                   7205: # define LT_DLSYM_CONST const
                   7206: #endif
                   7207: 
                   7208: #ifdef __cplusplus
                   7209: extern "C" {
                   7210: #endif
                   7211: 
                   7212: _LT_EOF
                   7213:          # Now generate the symbol file.
                   7214:          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
                   7215: 
                   7216:          cat <<_LT_EOF >> conftest.$ac_ext
                   7217: 
                   7218: /* The mapping between symbol names and symbols.  */
                   7219: LT_DLSYM_CONST struct {
                   7220:   const char *name;
                   7221:   void       *address;
                   7222: }
                   7223: lt__PROGRAM__LTX_preloaded_symbols[] =
                   7224: {
                   7225:   { "@PROGRAM@", (void *) 0 },
                   7226: _LT_EOF
                   7227:          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
                   7228:          cat <<\_LT_EOF >> conftest.$ac_ext
                   7229:   {0, (void *) 0}
                   7230: };
                   7231: 
                   7232: /* This works around a problem in FreeBSD linker */
                   7233: #ifdef FREEBSD_WORKAROUND
                   7234: static const void *lt_preloaded_setup() {
                   7235:   return lt__PROGRAM__LTX_preloaded_symbols;
                   7236: }
                   7237: #endif
                   7238: 
                   7239: #ifdef __cplusplus
                   7240: }
                   7241: #endif
                   7242: _LT_EOF
                   7243:          # Now try linking the two files.
                   7244:          mv conftest.$ac_objext conftstm.$ac_objext
                   7245:          lt_globsym_save_LIBS=$LIBS
                   7246:          lt_globsym_save_CFLAGS=$CFLAGS
                   7247:          LIBS="conftstm.$ac_objext"
                   7248:          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
                   7249:          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   7250:   (eval $ac_link) 2>&5
                   7251:   ac_status=$?
                   7252:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   7253:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
                   7254:            pipe_works=yes
                   7255:          fi
                   7256:          LIBS=$lt_globsym_save_LIBS
                   7257:          CFLAGS=$lt_globsym_save_CFLAGS
                   7258:        else
                   7259:          echo "cannot find nm_test_func in $nlist" >&5
                   7260:        fi
                   7261:       else
                   7262:        echo "cannot find nm_test_var in $nlist" >&5
                   7263:       fi
                   7264:     else
                   7265:       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
                   7266:     fi
                   7267:   else
                   7268:     echo "$progname: failed program was:" >&5
                   7269:     cat conftest.$ac_ext >&5
                   7270:   fi
                   7271:   rm -rf conftest* conftst*
                   7272: 
                   7273:   # Do not use the global_symbol_pipe unless it works.
                   7274:   if test "$pipe_works" = yes; then
                   7275:     break
                   7276:   else
                   7277:     lt_cv_sys_global_symbol_pipe=
                   7278:   fi
                   7279: done
                   7280: 
                   7281: fi
                   7282: 
                   7283: if test -z "$lt_cv_sys_global_symbol_pipe"; then
                   7284:   lt_cv_sys_global_symbol_to_cdecl=
                   7285: fi
                   7286: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
                   7287:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
                   7288: $as_echo "failed" >&6; }
                   7289: else
                   7290:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
                   7291: $as_echo "ok" >&6; }
                   7292: fi
                   7293: 
                   7294: # Response file support.
                   7295: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
                   7296:   nm_file_list_spec='@'
                   7297: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
                   7298:   nm_file_list_spec='@'
                   7299: fi
                   7300: 
                   7301: 
                   7302: 
                   7303: 
                   7304: 
                   7305: 
                   7306: 
                   7307: 
                   7308: 
                   7309: 
                   7310: 
                   7311: 
                   7312: 
                   7313: 
                   7314: 
                   7315: 
                   7316: 
                   7317: 
                   7318: 
                   7319: 
                   7320: 
                   7321: 
                   7322: 
                   7323: 
                   7324: 
                   7325: 
                   7326: 
                   7327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
                   7328: $as_echo_n "checking for sysroot... " >&6; }
                   7329: 
                   7330: # Check whether --with-sysroot was given.
                   7331: if test "${with_sysroot+set}" = set; then :
                   7332:   withval=$with_sysroot;
                   7333: else
                   7334:   with_sysroot=no
                   7335: fi
                   7336: 
                   7337: 
                   7338: lt_sysroot=
                   7339: case ${with_sysroot} in #(
                   7340:  yes)
                   7341:    if test "$GCC" = yes; then
                   7342:      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
                   7343:    fi
                   7344:    ;; #(
                   7345:  /*)
                   7346:    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
                   7347:    ;; #(
                   7348:  no|'')
                   7349:    ;; #(
                   7350:  *)
                   7351:    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
                   7352: $as_echo "${with_sysroot}" >&6; }
                   7353:    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
                   7354:    ;;
                   7355: esac
                   7356: 
                   7357:  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
                   7358: $as_echo "${lt_sysroot:-no}" >&6; }
                   7359: 
                   7360: 
                   7361: 
                   7362: 
                   7363: 
                   7364: # Check whether --enable-libtool-lock was given.
                   7365: if test "${enable_libtool_lock+set}" = set; then :
                   7366:   enableval=$enable_libtool_lock;
                   7367: fi
                   7368: 
                   7369: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
                   7370: 
                   7371: # Some flags need to be propagated to the compiler or linker for good
                   7372: # libtool support.
                   7373: case $host in
                   7374: ia64-*-hpux*)
                   7375:   # Find out which ABI we are using.
                   7376:   echo 'int i;' > conftest.$ac_ext
                   7377:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   7378:   (eval $ac_compile) 2>&5
                   7379:   ac_status=$?
                   7380:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   7381:   test $ac_status = 0; }; then
                   7382:     case `/usr/bin/file conftest.$ac_objext` in
                   7383:       *ELF-32*)
                   7384:        HPUX_IA64_MODE="32"
                   7385:        ;;
                   7386:       *ELF-64*)
                   7387:        HPUX_IA64_MODE="64"
                   7388:        ;;
                   7389:     esac
                   7390:   fi
                   7391:   rm -rf conftest*
                   7392:   ;;
                   7393: *-*-irix6*)
                   7394:   # Find out which ABI we are using.
                   7395:   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
                   7396:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   7397:   (eval $ac_compile) 2>&5
                   7398:   ac_status=$?
                   7399:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   7400:   test $ac_status = 0; }; then
                   7401:     if test "$lt_cv_prog_gnu_ld" = yes; then
                   7402:       case `/usr/bin/file conftest.$ac_objext` in
                   7403:        *32-bit*)
                   7404:          LD="${LD-ld} -melf32bsmip"
                   7405:          ;;
                   7406:        *N32*)
                   7407:          LD="${LD-ld} -melf32bmipn32"
                   7408:          ;;
                   7409:        *64-bit*)
                   7410:          LD="${LD-ld} -melf64bmip"
                   7411:        ;;
                   7412:       esac
                   7413:     else
                   7414:       case `/usr/bin/file conftest.$ac_objext` in
                   7415:        *32-bit*)
                   7416:          LD="${LD-ld} -32"
                   7417:          ;;
                   7418:        *N32*)
                   7419:          LD="${LD-ld} -n32"
                   7420:          ;;
                   7421:        *64-bit*)
                   7422:          LD="${LD-ld} -64"
                   7423:          ;;
                   7424:       esac
                   7425:     fi
                   7426:   fi
                   7427:   rm -rf conftest*
                   7428:   ;;
                   7429: 
                   7430: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
                   7431: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
                   7432:   # Find out which ABI we are using.
                   7433:   echo 'int i;' > conftest.$ac_ext
                   7434:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   7435:   (eval $ac_compile) 2>&5
                   7436:   ac_status=$?
                   7437:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   7438:   test $ac_status = 0; }; then
                   7439:     case `/usr/bin/file conftest.o` in
                   7440:       *32-bit*)
                   7441:        case $host in
                   7442:          x86_64-*kfreebsd*-gnu)
                   7443:            LD="${LD-ld} -m elf_i386_fbsd"
                   7444:            ;;
                   7445:          x86_64-*linux*)
                   7446:            LD="${LD-ld} -m elf_i386"
                   7447:            ;;
                   7448:          ppc64-*linux*|powerpc64-*linux*)
                   7449:            LD="${LD-ld} -m elf32ppclinux"
                   7450:            ;;
                   7451:          s390x-*linux*)
                   7452:            LD="${LD-ld} -m elf_s390"
                   7453:            ;;
                   7454:          sparc64-*linux*)
                   7455:            LD="${LD-ld} -m elf32_sparc"
                   7456:            ;;
                   7457:        esac
                   7458:        ;;
                   7459:       *64-bit*)
                   7460:        case $host in
                   7461:          x86_64-*kfreebsd*-gnu)
                   7462:            LD="${LD-ld} -m elf_x86_64_fbsd"
                   7463:            ;;
                   7464:          x86_64-*linux*)
                   7465:            LD="${LD-ld} -m elf_x86_64"
                   7466:            ;;
                   7467:          ppc*-*linux*|powerpc*-*linux*)
                   7468:            LD="${LD-ld} -m elf64ppc"
                   7469:            ;;
                   7470:          s390*-*linux*|s390*-*tpf*)
                   7471:            LD="${LD-ld} -m elf64_s390"
                   7472:            ;;
                   7473:          sparc*-*linux*)
                   7474:            LD="${LD-ld} -m elf64_sparc"
                   7475:            ;;
                   7476:        esac
                   7477:        ;;
                   7478:     esac
                   7479:   fi
                   7480:   rm -rf conftest*
                   7481:   ;;
                   7482: 
                   7483: *-*-sco3.2v5*)
                   7484:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
                   7485:   SAVE_CFLAGS="$CFLAGS"
                   7486:   CFLAGS="$CFLAGS -belf"
                   7487:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
                   7488: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
                   7489: if ${lt_cv_cc_needs_belf+:} false; then :
                   7490:   $as_echo_n "(cached) " >&6
                   7491: else
                   7492:   ac_ext=c
                   7493: ac_cpp='$CPP $CPPFLAGS'
                   7494: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   7495: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   7496: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   7497: 
                   7498:      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7499: /* end confdefs.h.  */
                   7500: 
                   7501: int
                   7502: main ()
                   7503: {
                   7504: 
                   7505:   ;
                   7506:   return 0;
                   7507: }
                   7508: _ACEOF
                   7509: if ac_fn_c_try_link "$LINENO"; then :
                   7510:   lt_cv_cc_needs_belf=yes
                   7511: else
                   7512:   lt_cv_cc_needs_belf=no
                   7513: fi
                   7514: rm -f core conftest.err conftest.$ac_objext \
                   7515:     conftest$ac_exeext conftest.$ac_ext
                   7516:      ac_ext=c
                   7517: ac_cpp='$CPP $CPPFLAGS'
                   7518: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   7519: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   7520: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   7521: 
                   7522: fi
                   7523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
                   7524: $as_echo "$lt_cv_cc_needs_belf" >&6; }
                   7525:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
                   7526:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
                   7527:     CFLAGS="$SAVE_CFLAGS"
                   7528:   fi
                   7529:   ;;
1.1.1.2   misho    7530: *-*solaris*)
1.1       misho    7531:   # Find out which ABI we are using.
                   7532:   echo 'int i;' > conftest.$ac_ext
                   7533:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   7534:   (eval $ac_compile) 2>&5
                   7535:   ac_status=$?
                   7536:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   7537:   test $ac_status = 0; }; then
                   7538:     case `/usr/bin/file conftest.o` in
                   7539:     *64-bit*)
                   7540:       case $lt_cv_prog_gnu_ld in
1.1.1.2   misho    7541:       yes*)
                   7542:         case $host in
                   7543:         i?86-*-solaris*)
                   7544:           LD="${LD-ld} -m elf_x86_64"
                   7545:           ;;
                   7546:         sparc*-*-solaris*)
                   7547:           LD="${LD-ld} -m elf64_sparc"
                   7548:           ;;
                   7549:         esac
                   7550:         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
                   7551:         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
                   7552:           LD="${LD-ld}_sol2"
                   7553:         fi
                   7554:         ;;
1.1       misho    7555:       *)
                   7556:        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
                   7557:          LD="${LD-ld} -64"
                   7558:        fi
                   7559:        ;;
                   7560:       esac
                   7561:       ;;
                   7562:     esac
                   7563:   fi
                   7564:   rm -rf conftest*
                   7565:   ;;
                   7566: esac
                   7567: 
                   7568: need_locks="$enable_libtool_lock"
                   7569: 
                   7570: if test -n "$ac_tool_prefix"; then
                   7571:   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
                   7572: set dummy ${ac_tool_prefix}mt; ac_word=$2
                   7573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7574: $as_echo_n "checking for $ac_word... " >&6; }
                   7575: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
                   7576:   $as_echo_n "(cached) " >&6
                   7577: else
                   7578:   if test -n "$MANIFEST_TOOL"; then
                   7579:   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
                   7580: else
                   7581: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7582: for as_dir in $PATH
                   7583: do
                   7584:   IFS=$as_save_IFS
                   7585:   test -z "$as_dir" && as_dir=.
                   7586:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    7587:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7588:     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
                   7589:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7590:     break 2
                   7591:   fi
                   7592: done
                   7593:   done
                   7594: IFS=$as_save_IFS
                   7595: 
                   7596: fi
                   7597: fi
                   7598: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
                   7599: if test -n "$MANIFEST_TOOL"; then
                   7600:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
                   7601: $as_echo "$MANIFEST_TOOL" >&6; }
                   7602: else
                   7603:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7604: $as_echo "no" >&6; }
                   7605: fi
                   7606: 
                   7607: 
                   7608: fi
                   7609: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
                   7610:   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
                   7611:   # Extract the first word of "mt", so it can be a program name with args.
                   7612: set dummy mt; ac_word=$2
                   7613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7614: $as_echo_n "checking for $ac_word... " >&6; }
                   7615: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
                   7616:   $as_echo_n "(cached) " >&6
                   7617: else
                   7618:   if test -n "$ac_ct_MANIFEST_TOOL"; then
                   7619:   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
                   7620: else
                   7621: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7622: for as_dir in $PATH
                   7623: do
                   7624:   IFS=$as_save_IFS
                   7625:   test -z "$as_dir" && as_dir=.
                   7626:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    7627:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7628:     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
                   7629:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7630:     break 2
                   7631:   fi
                   7632: done
                   7633:   done
                   7634: IFS=$as_save_IFS
                   7635: 
                   7636: fi
                   7637: fi
                   7638: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
                   7639: if test -n "$ac_ct_MANIFEST_TOOL"; then
                   7640:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
                   7641: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
                   7642: else
                   7643:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7644: $as_echo "no" >&6; }
                   7645: fi
                   7646: 
                   7647:   if test "x$ac_ct_MANIFEST_TOOL" = x; then
                   7648:     MANIFEST_TOOL=":"
                   7649:   else
                   7650:     case $cross_compiling:$ac_tool_warned in
                   7651: yes:)
                   7652: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   7653: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   7654: ac_tool_warned=yes ;;
                   7655: esac
                   7656:     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
                   7657:   fi
                   7658: else
                   7659:   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
                   7660: fi
                   7661: 
                   7662: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
                   7663: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
                   7664: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
                   7665: if ${lt_cv_path_mainfest_tool+:} false; then :
                   7666:   $as_echo_n "(cached) " >&6
                   7667: else
                   7668:   lt_cv_path_mainfest_tool=no
                   7669:   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
                   7670:   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
                   7671:   cat conftest.err >&5
                   7672:   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
                   7673:     lt_cv_path_mainfest_tool=yes
                   7674:   fi
                   7675:   rm -f conftest*
                   7676: fi
                   7677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
                   7678: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
                   7679: if test "x$lt_cv_path_mainfest_tool" != xyes; then
                   7680:   MANIFEST_TOOL=:
                   7681: fi
                   7682: 
                   7683: 
                   7684: 
                   7685: 
                   7686: 
                   7687: 
                   7688:   case $host_os in
                   7689:     rhapsody* | darwin*)
                   7690:     if test -n "$ac_tool_prefix"; then
                   7691:   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
                   7692: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
                   7693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7694: $as_echo_n "checking for $ac_word... " >&6; }
                   7695: if ${ac_cv_prog_DSYMUTIL+:} false; then :
                   7696:   $as_echo_n "(cached) " >&6
                   7697: else
                   7698:   if test -n "$DSYMUTIL"; then
                   7699:   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
                   7700: else
                   7701: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7702: for as_dir in $PATH
                   7703: do
                   7704:   IFS=$as_save_IFS
                   7705:   test -z "$as_dir" && as_dir=.
                   7706:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    7707:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7708:     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
                   7709:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7710:     break 2
                   7711:   fi
                   7712: done
                   7713:   done
                   7714: IFS=$as_save_IFS
                   7715: 
                   7716: fi
                   7717: fi
                   7718: DSYMUTIL=$ac_cv_prog_DSYMUTIL
                   7719: if test -n "$DSYMUTIL"; then
                   7720:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
                   7721: $as_echo "$DSYMUTIL" >&6; }
                   7722: else
                   7723:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7724: $as_echo "no" >&6; }
                   7725: fi
                   7726: 
                   7727: 
                   7728: fi
                   7729: if test -z "$ac_cv_prog_DSYMUTIL"; then
                   7730:   ac_ct_DSYMUTIL=$DSYMUTIL
                   7731:   # Extract the first word of "dsymutil", so it can be a program name with args.
                   7732: set dummy dsymutil; ac_word=$2
                   7733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7734: $as_echo_n "checking for $ac_word... " >&6; }
                   7735: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
                   7736:   $as_echo_n "(cached) " >&6
                   7737: else
                   7738:   if test -n "$ac_ct_DSYMUTIL"; then
                   7739:   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
                   7740: else
                   7741: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7742: for as_dir in $PATH
                   7743: do
                   7744:   IFS=$as_save_IFS
                   7745:   test -z "$as_dir" && as_dir=.
                   7746:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    7747:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7748:     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
                   7749:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7750:     break 2
                   7751:   fi
                   7752: done
                   7753:   done
                   7754: IFS=$as_save_IFS
                   7755: 
                   7756: fi
                   7757: fi
                   7758: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
                   7759: if test -n "$ac_ct_DSYMUTIL"; then
                   7760:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
                   7761: $as_echo "$ac_ct_DSYMUTIL" >&6; }
                   7762: else
                   7763:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7764: $as_echo "no" >&6; }
                   7765: fi
                   7766: 
                   7767:   if test "x$ac_ct_DSYMUTIL" = x; then
                   7768:     DSYMUTIL=":"
                   7769:   else
                   7770:     case $cross_compiling:$ac_tool_warned in
                   7771: yes:)
                   7772: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   7773: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   7774: ac_tool_warned=yes ;;
                   7775: esac
                   7776:     DSYMUTIL=$ac_ct_DSYMUTIL
                   7777:   fi
                   7778: else
                   7779:   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
                   7780: fi
                   7781: 
                   7782:     if test -n "$ac_tool_prefix"; then
                   7783:   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
                   7784: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
                   7785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7786: $as_echo_n "checking for $ac_word... " >&6; }
                   7787: if ${ac_cv_prog_NMEDIT+:} false; then :
                   7788:   $as_echo_n "(cached) " >&6
                   7789: else
                   7790:   if test -n "$NMEDIT"; then
                   7791:   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
                   7792: else
                   7793: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7794: for as_dir in $PATH
                   7795: do
                   7796:   IFS=$as_save_IFS
                   7797:   test -z "$as_dir" && as_dir=.
                   7798:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    7799:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7800:     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
                   7801:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7802:     break 2
                   7803:   fi
                   7804: done
                   7805:   done
                   7806: IFS=$as_save_IFS
                   7807: 
                   7808: fi
                   7809: fi
                   7810: NMEDIT=$ac_cv_prog_NMEDIT
                   7811: if test -n "$NMEDIT"; then
                   7812:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
                   7813: $as_echo "$NMEDIT" >&6; }
                   7814: else
                   7815:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7816: $as_echo "no" >&6; }
                   7817: fi
                   7818: 
                   7819: 
                   7820: fi
                   7821: if test -z "$ac_cv_prog_NMEDIT"; then
                   7822:   ac_ct_NMEDIT=$NMEDIT
                   7823:   # Extract the first word of "nmedit", so it can be a program name with args.
                   7824: set dummy nmedit; ac_word=$2
                   7825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7826: $as_echo_n "checking for $ac_word... " >&6; }
                   7827: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
                   7828:   $as_echo_n "(cached) " >&6
                   7829: else
                   7830:   if test -n "$ac_ct_NMEDIT"; then
                   7831:   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
                   7832: else
                   7833: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7834: for as_dir in $PATH
                   7835: do
                   7836:   IFS=$as_save_IFS
                   7837:   test -z "$as_dir" && as_dir=.
                   7838:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    7839:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7840:     ac_cv_prog_ac_ct_NMEDIT="nmedit"
                   7841:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7842:     break 2
                   7843:   fi
                   7844: done
                   7845:   done
                   7846: IFS=$as_save_IFS
                   7847: 
                   7848: fi
                   7849: fi
                   7850: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
                   7851: if test -n "$ac_ct_NMEDIT"; then
                   7852:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
                   7853: $as_echo "$ac_ct_NMEDIT" >&6; }
                   7854: else
                   7855:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7856: $as_echo "no" >&6; }
                   7857: fi
                   7858: 
                   7859:   if test "x$ac_ct_NMEDIT" = x; then
                   7860:     NMEDIT=":"
                   7861:   else
                   7862:     case $cross_compiling:$ac_tool_warned in
                   7863: yes:)
                   7864: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   7865: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   7866: ac_tool_warned=yes ;;
                   7867: esac
                   7868:     NMEDIT=$ac_ct_NMEDIT
                   7869:   fi
                   7870: else
                   7871:   NMEDIT="$ac_cv_prog_NMEDIT"
                   7872: fi
                   7873: 
                   7874:     if test -n "$ac_tool_prefix"; then
                   7875:   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
                   7876: set dummy ${ac_tool_prefix}lipo; ac_word=$2
                   7877: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7878: $as_echo_n "checking for $ac_word... " >&6; }
                   7879: if ${ac_cv_prog_LIPO+:} false; then :
                   7880:   $as_echo_n "(cached) " >&6
                   7881: else
                   7882:   if test -n "$LIPO"; then
                   7883:   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
                   7884: else
                   7885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7886: for as_dir in $PATH
                   7887: do
                   7888:   IFS=$as_save_IFS
                   7889:   test -z "$as_dir" && as_dir=.
                   7890:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    7891:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7892:     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
                   7893:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7894:     break 2
                   7895:   fi
                   7896: done
                   7897:   done
                   7898: IFS=$as_save_IFS
                   7899: 
                   7900: fi
                   7901: fi
                   7902: LIPO=$ac_cv_prog_LIPO
                   7903: if test -n "$LIPO"; then
                   7904:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
                   7905: $as_echo "$LIPO" >&6; }
                   7906: else
                   7907:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7908: $as_echo "no" >&6; }
                   7909: fi
                   7910: 
                   7911: 
                   7912: fi
                   7913: if test -z "$ac_cv_prog_LIPO"; then
                   7914:   ac_ct_LIPO=$LIPO
                   7915:   # Extract the first word of "lipo", so it can be a program name with args.
                   7916: set dummy lipo; ac_word=$2
                   7917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7918: $as_echo_n "checking for $ac_word... " >&6; }
                   7919: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
                   7920:   $as_echo_n "(cached) " >&6
                   7921: else
                   7922:   if test -n "$ac_ct_LIPO"; then
                   7923:   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
                   7924: else
                   7925: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7926: for as_dir in $PATH
                   7927: do
                   7928:   IFS=$as_save_IFS
                   7929:   test -z "$as_dir" && as_dir=.
                   7930:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    7931:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7932:     ac_cv_prog_ac_ct_LIPO="lipo"
                   7933:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7934:     break 2
                   7935:   fi
                   7936: done
                   7937:   done
                   7938: IFS=$as_save_IFS
                   7939: 
                   7940: fi
                   7941: fi
                   7942: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
                   7943: if test -n "$ac_ct_LIPO"; then
                   7944:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
                   7945: $as_echo "$ac_ct_LIPO" >&6; }
                   7946: else
                   7947:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7948: $as_echo "no" >&6; }
                   7949: fi
                   7950: 
                   7951:   if test "x$ac_ct_LIPO" = x; then
                   7952:     LIPO=":"
                   7953:   else
                   7954:     case $cross_compiling:$ac_tool_warned in
                   7955: yes:)
                   7956: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   7957: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   7958: ac_tool_warned=yes ;;
                   7959: esac
                   7960:     LIPO=$ac_ct_LIPO
                   7961:   fi
                   7962: else
                   7963:   LIPO="$ac_cv_prog_LIPO"
                   7964: fi
                   7965: 
                   7966:     if test -n "$ac_tool_prefix"; then
                   7967:   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
                   7968: set dummy ${ac_tool_prefix}otool; ac_word=$2
                   7969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7970: $as_echo_n "checking for $ac_word... " >&6; }
                   7971: if ${ac_cv_prog_OTOOL+:} false; then :
                   7972:   $as_echo_n "(cached) " >&6
                   7973: else
                   7974:   if test -n "$OTOOL"; then
                   7975:   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
                   7976: else
                   7977: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7978: for as_dir in $PATH
                   7979: do
                   7980:   IFS=$as_save_IFS
                   7981:   test -z "$as_dir" && as_dir=.
                   7982:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    7983:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    7984:     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
                   7985:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7986:     break 2
                   7987:   fi
                   7988: done
                   7989:   done
                   7990: IFS=$as_save_IFS
                   7991: 
                   7992: fi
                   7993: fi
                   7994: OTOOL=$ac_cv_prog_OTOOL
                   7995: if test -n "$OTOOL"; then
                   7996:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
                   7997: $as_echo "$OTOOL" >&6; }
                   7998: else
                   7999:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8000: $as_echo "no" >&6; }
                   8001: fi
                   8002: 
                   8003: 
                   8004: fi
                   8005: if test -z "$ac_cv_prog_OTOOL"; then
                   8006:   ac_ct_OTOOL=$OTOOL
                   8007:   # Extract the first word of "otool", so it can be a program name with args.
                   8008: set dummy otool; ac_word=$2
                   8009: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   8010: $as_echo_n "checking for $ac_word... " >&6; }
                   8011: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
                   8012:   $as_echo_n "(cached) " >&6
                   8013: else
                   8014:   if test -n "$ac_ct_OTOOL"; then
                   8015:   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
                   8016: else
                   8017: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8018: for as_dir in $PATH
                   8019: do
                   8020:   IFS=$as_save_IFS
                   8021:   test -z "$as_dir" && as_dir=.
                   8022:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    8023:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    8024:     ac_cv_prog_ac_ct_OTOOL="otool"
                   8025:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   8026:     break 2
                   8027:   fi
                   8028: done
                   8029:   done
                   8030: IFS=$as_save_IFS
                   8031: 
                   8032: fi
                   8033: fi
                   8034: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
                   8035: if test -n "$ac_ct_OTOOL"; then
                   8036:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
                   8037: $as_echo "$ac_ct_OTOOL" >&6; }
                   8038: else
                   8039:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8040: $as_echo "no" >&6; }
                   8041: fi
                   8042: 
                   8043:   if test "x$ac_ct_OTOOL" = x; then
                   8044:     OTOOL=":"
                   8045:   else
                   8046:     case $cross_compiling:$ac_tool_warned in
                   8047: yes:)
                   8048: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   8049: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   8050: ac_tool_warned=yes ;;
                   8051: esac
                   8052:     OTOOL=$ac_ct_OTOOL
                   8053:   fi
                   8054: else
                   8055:   OTOOL="$ac_cv_prog_OTOOL"
                   8056: fi
                   8057: 
                   8058:     if test -n "$ac_tool_prefix"; then
                   8059:   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
                   8060: set dummy ${ac_tool_prefix}otool64; ac_word=$2
                   8061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   8062: $as_echo_n "checking for $ac_word... " >&6; }
                   8063: if ${ac_cv_prog_OTOOL64+:} false; then :
                   8064:   $as_echo_n "(cached) " >&6
                   8065: else
                   8066:   if test -n "$OTOOL64"; then
                   8067:   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
                   8068: else
                   8069: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8070: for as_dir in $PATH
                   8071: do
                   8072:   IFS=$as_save_IFS
                   8073:   test -z "$as_dir" && as_dir=.
                   8074:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    8075:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    8076:     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
                   8077:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   8078:     break 2
                   8079:   fi
                   8080: done
                   8081:   done
                   8082: IFS=$as_save_IFS
                   8083: 
                   8084: fi
                   8085: fi
                   8086: OTOOL64=$ac_cv_prog_OTOOL64
                   8087: if test -n "$OTOOL64"; then
                   8088:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
                   8089: $as_echo "$OTOOL64" >&6; }
                   8090: else
                   8091:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8092: $as_echo "no" >&6; }
                   8093: fi
                   8094: 
                   8095: 
                   8096: fi
                   8097: if test -z "$ac_cv_prog_OTOOL64"; then
                   8098:   ac_ct_OTOOL64=$OTOOL64
                   8099:   # Extract the first word of "otool64", so it can be a program name with args.
                   8100: set dummy otool64; ac_word=$2
                   8101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   8102: $as_echo_n "checking for $ac_word... " >&6; }
                   8103: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
                   8104:   $as_echo_n "(cached) " >&6
                   8105: else
                   8106:   if test -n "$ac_ct_OTOOL64"; then
                   8107:   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
                   8108: else
                   8109: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8110: for as_dir in $PATH
                   8111: do
                   8112:   IFS=$as_save_IFS
                   8113:   test -z "$as_dir" && as_dir=.
                   8114:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3   misho    8115:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    8116:     ac_cv_prog_ac_ct_OTOOL64="otool64"
                   8117:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   8118:     break 2
                   8119:   fi
                   8120: done
                   8121:   done
                   8122: IFS=$as_save_IFS
                   8123: 
                   8124: fi
                   8125: fi
                   8126: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
                   8127: if test -n "$ac_ct_OTOOL64"; then
                   8128:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
                   8129: $as_echo "$ac_ct_OTOOL64" >&6; }
                   8130: else
                   8131:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8132: $as_echo "no" >&6; }
                   8133: fi
                   8134: 
                   8135:   if test "x$ac_ct_OTOOL64" = x; then
                   8136:     OTOOL64=":"
                   8137:   else
                   8138:     case $cross_compiling:$ac_tool_warned in
                   8139: yes:)
                   8140: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   8141: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   8142: ac_tool_warned=yes ;;
                   8143: esac
                   8144:     OTOOL64=$ac_ct_OTOOL64
                   8145:   fi
                   8146: else
                   8147:   OTOOL64="$ac_cv_prog_OTOOL64"
                   8148: fi
                   8149: 
                   8150: 
                   8151: 
                   8152: 
                   8153: 
                   8154: 
                   8155: 
                   8156: 
                   8157: 
                   8158: 
                   8159: 
                   8160: 
                   8161: 
                   8162: 
                   8163: 
                   8164: 
                   8165: 
                   8166: 
                   8167: 
                   8168: 
                   8169: 
                   8170: 
                   8171: 
                   8172: 
                   8173: 
                   8174: 
                   8175: 
                   8176:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
                   8177: $as_echo_n "checking for -single_module linker flag... " >&6; }
                   8178: if ${lt_cv_apple_cc_single_mod+:} false; then :
                   8179:   $as_echo_n "(cached) " >&6
                   8180: else
                   8181:   lt_cv_apple_cc_single_mod=no
                   8182:       if test -z "${LT_MULTI_MODULE}"; then
                   8183:        # By default we will add the -single_module flag. You can override
                   8184:        # by either setting the environment variable LT_MULTI_MODULE
                   8185:        # non-empty at configure time, or by adding -multi_module to the
                   8186:        # link flags.
                   8187:        rm -rf libconftest.dylib*
                   8188:        echo "int foo(void){return 1;}" > conftest.c
                   8189:        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
                   8190: -dynamiclib -Wl,-single_module conftest.c" >&5
                   8191:        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
                   8192:          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
                   8193:         _lt_result=$?
1.1.1.2   misho    8194:        # If there is a non-empty error log, and "single_module"
                   8195:        # appears in it, assume the flag caused a linker warning
                   8196:         if test -s conftest.err && $GREP single_module conftest.err; then
                   8197:          cat conftest.err >&5
                   8198:        # Otherwise, if the output was created with a 0 exit code from
                   8199:        # the compiler, it worked.
                   8200:        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1.1       misho    8201:          lt_cv_apple_cc_single_mod=yes
                   8202:        else
                   8203:          cat conftest.err >&5
                   8204:        fi
                   8205:        rm -rf libconftest.dylib*
                   8206:        rm -f conftest.*
                   8207:       fi
                   8208: fi
                   8209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
                   8210: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.1.1.2   misho    8211: 
1.1       misho    8212:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
                   8213: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
                   8214: if ${lt_cv_ld_exported_symbols_list+:} false; then :
                   8215:   $as_echo_n "(cached) " >&6
                   8216: else
                   8217:   lt_cv_ld_exported_symbols_list=no
                   8218:       save_LDFLAGS=$LDFLAGS
                   8219:       echo "_main" > conftest.sym
                   8220:       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
                   8221:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8222: /* end confdefs.h.  */
                   8223: 
                   8224: int
                   8225: main ()
                   8226: {
                   8227: 
                   8228:   ;
                   8229:   return 0;
                   8230: }
                   8231: _ACEOF
                   8232: if ac_fn_c_try_link "$LINENO"; then :
                   8233:   lt_cv_ld_exported_symbols_list=yes
                   8234: else
                   8235:   lt_cv_ld_exported_symbols_list=no
                   8236: fi
                   8237: rm -f core conftest.err conftest.$ac_objext \
                   8238:     conftest$ac_exeext conftest.$ac_ext
                   8239:        LDFLAGS="$save_LDFLAGS"
                   8240: 
                   8241: fi
                   8242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
                   8243: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.1.1.2   misho    8244: 
1.1       misho    8245:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
                   8246: $as_echo_n "checking for -force_load linker flag... " >&6; }
                   8247: if ${lt_cv_ld_force_load+:} false; then :
                   8248:   $as_echo_n "(cached) " >&6
                   8249: else
                   8250:   lt_cv_ld_force_load=no
                   8251:       cat > conftest.c << _LT_EOF
                   8252: int forced_loaded() { return 2;}
                   8253: _LT_EOF
                   8254:       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
                   8255:       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
                   8256:       echo "$AR cru libconftest.a conftest.o" >&5
                   8257:       $AR cru libconftest.a conftest.o 2>&5
                   8258:       echo "$RANLIB libconftest.a" >&5
                   8259:       $RANLIB libconftest.a 2>&5
                   8260:       cat > conftest.c << _LT_EOF
                   8261: int main() { return 0;}
                   8262: _LT_EOF
                   8263:       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
                   8264:       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
                   8265:       _lt_result=$?
1.1.1.2   misho    8266:       if test -s conftest.err && $GREP force_load conftest.err; then
                   8267:        cat conftest.err >&5
                   8268:       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1.1       misho    8269:        lt_cv_ld_force_load=yes
                   8270:       else
                   8271:        cat conftest.err >&5
                   8272:       fi
                   8273:         rm -f conftest.err libconftest.a conftest conftest.c
                   8274:         rm -rf conftest.dSYM
                   8275: 
                   8276: fi
                   8277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
                   8278: $as_echo "$lt_cv_ld_force_load" >&6; }
                   8279:     case $host_os in
                   8280:     rhapsody* | darwin1.[012])
                   8281:       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
                   8282:     darwin1.*)
                   8283:       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
                   8284:     darwin*) # darwin 5.x on
                   8285:       # if running on 10.5 or later, the deployment target defaults
                   8286:       # to the OS version, if on x86, and 10.4, the deployment
                   8287:       # target defaults to 10.4. Don't you love it?
                   8288:       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
                   8289:        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
                   8290:          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
                   8291:        10.[012]*)
                   8292:          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
                   8293:        10.*)
                   8294:          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
                   8295:       esac
                   8296:     ;;
                   8297:   esac
                   8298:     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
                   8299:       _lt_dar_single_mod='$single_module'
                   8300:     fi
                   8301:     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
                   8302:       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
                   8303:     else
                   8304:       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   8305:     fi
                   8306:     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
                   8307:       _lt_dsymutil='~$DSYMUTIL $lib || :'
                   8308:     else
                   8309:       _lt_dsymutil=
                   8310:     fi
                   8311:     ;;
                   8312:   esac
                   8313: 
                   8314: for ac_header in dlfcn.h
                   8315: do :
                   8316:   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
                   8317: "
                   8318: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
                   8319:   cat >>confdefs.h <<_ACEOF
                   8320: #define HAVE_DLFCN_H 1
                   8321: _ACEOF
                   8322: 
                   8323: fi
                   8324: 
                   8325: done
                   8326: 
                   8327: 
                   8328: 
                   8329: 
                   8330: 
                   8331: # Set options
                   8332: 
                   8333: 
                   8334: 
                   8335:         enable_dlopen=no
                   8336: 
                   8337: 
                   8338:   enable_win32_dll=no
                   8339: 
                   8340: 
                   8341:             # Check whether --enable-shared was given.
                   8342: if test "${enable_shared+set}" = set; then :
                   8343:   enableval=$enable_shared; p=${PACKAGE-default}
                   8344:     case $enableval in
                   8345:     yes) enable_shared=yes ;;
                   8346:     no) enable_shared=no ;;
                   8347:     *)
                   8348:       enable_shared=no
                   8349:       # Look at the argument we got.  We use all the common list separators.
                   8350:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   8351:       for pkg in $enableval; do
                   8352:        IFS="$lt_save_ifs"
                   8353:        if test "X$pkg" = "X$p"; then
                   8354:          enable_shared=yes
                   8355:        fi
                   8356:       done
                   8357:       IFS="$lt_save_ifs"
                   8358:       ;;
                   8359:     esac
                   8360: else
                   8361:   enable_shared=yes
                   8362: fi
                   8363: 
                   8364: 
                   8365: 
                   8366: 
                   8367: 
                   8368: 
                   8369: 
                   8370: 
                   8371: 
                   8372:   # Check whether --enable-static was given.
                   8373: if test "${enable_static+set}" = set; then :
                   8374:   enableval=$enable_static; p=${PACKAGE-default}
                   8375:     case $enableval in
                   8376:     yes) enable_static=yes ;;
                   8377:     no) enable_static=no ;;
                   8378:     *)
                   8379:      enable_static=no
                   8380:       # Look at the argument we got.  We use all the common list separators.
                   8381:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   8382:       for pkg in $enableval; do
                   8383:        IFS="$lt_save_ifs"
                   8384:        if test "X$pkg" = "X$p"; then
                   8385:          enable_static=yes
                   8386:        fi
                   8387:       done
                   8388:       IFS="$lt_save_ifs"
                   8389:       ;;
                   8390:     esac
                   8391: else
                   8392:   enable_static=yes
                   8393: fi
                   8394: 
                   8395: 
                   8396: 
                   8397: 
                   8398: 
                   8399: 
                   8400: 
                   8401: 
                   8402: 
                   8403: 
                   8404: # Check whether --with-pic was given.
                   8405: if test "${with_pic+set}" = set; then :
1.1.1.2   misho    8406:   withval=$with_pic; lt_p=${PACKAGE-default}
                   8407:     case $withval in
                   8408:     yes|no) pic_mode=$withval ;;
                   8409:     *)
                   8410:       pic_mode=default
                   8411:       # Look at the argument we got.  We use all the common list separators.
                   8412:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   8413:       for lt_pkg in $withval; do
                   8414:        IFS="$lt_save_ifs"
                   8415:        if test "X$lt_pkg" = "X$lt_p"; then
                   8416:          pic_mode=yes
                   8417:        fi
                   8418:       done
                   8419:       IFS="$lt_save_ifs"
                   8420:       ;;
                   8421:     esac
1.1       misho    8422: else
                   8423:   pic_mode=default
                   8424: fi
                   8425: 
                   8426: 
                   8427: test -z "$pic_mode" && pic_mode=default
                   8428: 
                   8429: 
                   8430: 
                   8431: 
                   8432: 
                   8433: 
                   8434: 
                   8435:   # Check whether --enable-fast-install was given.
                   8436: if test "${enable_fast_install+set}" = set; then :
                   8437:   enableval=$enable_fast_install; p=${PACKAGE-default}
                   8438:     case $enableval in
                   8439:     yes) enable_fast_install=yes ;;
                   8440:     no) enable_fast_install=no ;;
                   8441:     *)
                   8442:       enable_fast_install=no
                   8443:       # Look at the argument we got.  We use all the common list separators.
                   8444:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   8445:       for pkg in $enableval; do
                   8446:        IFS="$lt_save_ifs"
                   8447:        if test "X$pkg" = "X$p"; then
                   8448:          enable_fast_install=yes
                   8449:        fi
                   8450:       done
                   8451:       IFS="$lt_save_ifs"
                   8452:       ;;
                   8453:     esac
                   8454: else
                   8455:   enable_fast_install=yes
                   8456: fi
                   8457: 
                   8458: 
                   8459: 
                   8460: 
                   8461: 
                   8462: 
                   8463: 
                   8464: 
                   8465: 
                   8466: 
                   8467: 
                   8468: # This can be used to rebuild libtool when needed
                   8469: LIBTOOL_DEPS="$ltmain"
                   8470: 
                   8471: # Always use our own libtool.
                   8472: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
                   8473: 
                   8474: 
                   8475: 
                   8476: 
                   8477: 
                   8478: 
                   8479: 
                   8480: 
                   8481: 
                   8482: 
                   8483: 
                   8484: 
                   8485: 
                   8486: 
                   8487: 
                   8488: 
                   8489: 
                   8490: 
                   8491: 
                   8492: 
                   8493: 
                   8494: 
                   8495: 
                   8496: 
                   8497: 
                   8498: 
1.1.1.2   misho    8499: 
                   8500: 
                   8501: 
                   8502: 
1.1       misho    8503: test -z "$LN_S" && LN_S="ln -s"
                   8504: 
                   8505: 
                   8506: 
                   8507: 
                   8508: 
                   8509: 
                   8510: 
                   8511: 
                   8512: 
                   8513: 
                   8514: 
                   8515: 
                   8516: 
                   8517: 
                   8518: if test -n "${ZSH_VERSION+set}" ; then
                   8519:    setopt NO_GLOB_SUBST
                   8520: fi
                   8521: 
                   8522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
                   8523: $as_echo_n "checking for objdir... " >&6; }
                   8524: if ${lt_cv_objdir+:} false; then :
                   8525:   $as_echo_n "(cached) " >&6
                   8526: else
                   8527:   rm -f .libs 2>/dev/null
                   8528: mkdir .libs 2>/dev/null
                   8529: if test -d .libs; then
                   8530:   lt_cv_objdir=.libs
                   8531: else
                   8532:   # MS-DOS does not allow filenames that begin with a dot.
                   8533:   lt_cv_objdir=_libs
                   8534: fi
                   8535: rmdir .libs 2>/dev/null
                   8536: fi
                   8537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
                   8538: $as_echo "$lt_cv_objdir" >&6; }
                   8539: objdir=$lt_cv_objdir
                   8540: 
                   8541: 
                   8542: 
                   8543: 
                   8544: 
                   8545: cat >>confdefs.h <<_ACEOF
                   8546: #define LT_OBJDIR "$lt_cv_objdir/"
                   8547: _ACEOF
                   8548: 
                   8549: 
                   8550: 
                   8551: 
                   8552: case $host_os in
                   8553: aix3*)
                   8554:   # AIX sometimes has problems with the GCC collect2 program.  For some
                   8555:   # reason, if we set the COLLECT_NAMES environment variable, the problems
                   8556:   # vanish in a puff of smoke.
                   8557:   if test "X${COLLECT_NAMES+set}" != Xset; then
                   8558:     COLLECT_NAMES=
                   8559:     export COLLECT_NAMES
                   8560:   fi
                   8561:   ;;
                   8562: esac
                   8563: 
                   8564: # Global variables:
                   8565: ofile=libtool
                   8566: can_build_shared=yes
                   8567: 
                   8568: # All known linkers require a `.a' archive for static linking (except MSVC,
                   8569: # which needs '.lib').
                   8570: libext=a
                   8571: 
                   8572: with_gnu_ld="$lt_cv_prog_gnu_ld"
                   8573: 
                   8574: old_CC="$CC"
                   8575: old_CFLAGS="$CFLAGS"
                   8576: 
                   8577: # Set sane defaults for various variables
                   8578: test -z "$CC" && CC=cc
                   8579: test -z "$LTCC" && LTCC=$CC
                   8580: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
                   8581: test -z "$LD" && LD=ld
                   8582: test -z "$ac_objext" && ac_objext=o
                   8583: 
                   8584: for cc_temp in $compiler""; do
                   8585:   case $cc_temp in
                   8586:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
                   8587:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
                   8588:     \-*) ;;
                   8589:     *) break;;
                   8590:   esac
                   8591: done
                   8592: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
                   8593: 
                   8594: 
                   8595: # Only perform the check for file, if the check method requires it
                   8596: test -z "$MAGIC_CMD" && MAGIC_CMD=file
                   8597: case $deplibs_check_method in
                   8598: file_magic*)
                   8599:   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
                   8600:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
                   8601: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
                   8602: if ${lt_cv_path_MAGIC_CMD+:} false; then :
                   8603:   $as_echo_n "(cached) " >&6
                   8604: else
                   8605:   case $MAGIC_CMD in
                   8606: [\\/*] |  ?:[\\/]*)
                   8607:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   8608:   ;;
                   8609: *)
                   8610:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   8611:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   8612:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   8613:   for ac_dir in $ac_dummy; do
                   8614:     IFS="$lt_save_ifs"
                   8615:     test -z "$ac_dir" && ac_dir=.
                   8616:     if test -f $ac_dir/${ac_tool_prefix}file; then
                   8617:       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
                   8618:       if test -n "$file_magic_test_file"; then
                   8619:        case $deplibs_check_method in
                   8620:        "file_magic "*)
                   8621:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   8622:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   8623:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   8624:            $EGREP "$file_magic_regex" > /dev/null; then
                   8625:            :
                   8626:          else
                   8627:            cat <<_LT_EOF 1>&2
                   8628: 
                   8629: *** Warning: the command libtool uses to detect shared libraries,
                   8630: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   8631: *** The result is that libtool may fail to recognize shared libraries
                   8632: *** as such.  This will affect the creation of libtool libraries that
                   8633: *** depend on shared libraries, but programs linked with such libtool
                   8634: *** libraries will work regardless of this problem.  Nevertheless, you
                   8635: *** may want to report the problem to your system manager and/or to
                   8636: *** bug-libtool@gnu.org
                   8637: 
                   8638: _LT_EOF
                   8639:          fi ;;
                   8640:        esac
                   8641:       fi
                   8642:       break
                   8643:     fi
                   8644:   done
                   8645:   IFS="$lt_save_ifs"
                   8646:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   8647:   ;;
                   8648: esac
                   8649: fi
                   8650: 
                   8651: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   8652: if test -n "$MAGIC_CMD"; then
                   8653:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
                   8654: $as_echo "$MAGIC_CMD" >&6; }
                   8655: else
                   8656:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8657: $as_echo "no" >&6; }
                   8658: fi
                   8659: 
                   8660: 
                   8661: 
                   8662: 
                   8663: 
                   8664: if test -z "$lt_cv_path_MAGIC_CMD"; then
                   8665:   if test -n "$ac_tool_prefix"; then
                   8666:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
                   8667: $as_echo_n "checking for file... " >&6; }
                   8668: if ${lt_cv_path_MAGIC_CMD+:} false; then :
                   8669:   $as_echo_n "(cached) " >&6
                   8670: else
                   8671:   case $MAGIC_CMD in
                   8672: [\\/*] |  ?:[\\/]*)
                   8673:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   8674:   ;;
                   8675: *)
                   8676:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   8677:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   8678:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   8679:   for ac_dir in $ac_dummy; do
                   8680:     IFS="$lt_save_ifs"
                   8681:     test -z "$ac_dir" && ac_dir=.
                   8682:     if test -f $ac_dir/file; then
                   8683:       lt_cv_path_MAGIC_CMD="$ac_dir/file"
                   8684:       if test -n "$file_magic_test_file"; then
                   8685:        case $deplibs_check_method in
                   8686:        "file_magic "*)
                   8687:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   8688:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   8689:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   8690:            $EGREP "$file_magic_regex" > /dev/null; then
                   8691:            :
                   8692:          else
                   8693:            cat <<_LT_EOF 1>&2
                   8694: 
                   8695: *** Warning: the command libtool uses to detect shared libraries,
                   8696: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   8697: *** The result is that libtool may fail to recognize shared libraries
                   8698: *** as such.  This will affect the creation of libtool libraries that
                   8699: *** depend on shared libraries, but programs linked with such libtool
                   8700: *** libraries will work regardless of this problem.  Nevertheless, you
                   8701: *** may want to report the problem to your system manager and/or to
                   8702: *** bug-libtool@gnu.org
                   8703: 
                   8704: _LT_EOF
                   8705:          fi ;;
                   8706:        esac
                   8707:       fi
                   8708:       break
                   8709:     fi
                   8710:   done
                   8711:   IFS="$lt_save_ifs"
                   8712:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   8713:   ;;
                   8714: esac
                   8715: fi
                   8716: 
                   8717: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   8718: if test -n "$MAGIC_CMD"; then
                   8719:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
                   8720: $as_echo "$MAGIC_CMD" >&6; }
                   8721: else
                   8722:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8723: $as_echo "no" >&6; }
                   8724: fi
                   8725: 
                   8726: 
                   8727:   else
                   8728:     MAGIC_CMD=:
                   8729:   fi
                   8730: fi
                   8731: 
                   8732:   fi
                   8733:   ;;
                   8734: esac
                   8735: 
                   8736: # Use C for the default configuration in the libtool script
                   8737: 
                   8738: lt_save_CC="$CC"
                   8739: ac_ext=c
                   8740: ac_cpp='$CPP $CPPFLAGS'
                   8741: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   8742: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   8743: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   8744: 
                   8745: 
                   8746: # Source file extension for C test sources.
                   8747: ac_ext=c
                   8748: 
                   8749: # Object file extension for compiled C test sources.
                   8750: objext=o
                   8751: objext=$objext
                   8752: 
                   8753: # Code to be used in simple compile tests
                   8754: lt_simple_compile_test_code="int some_variable = 0;"
                   8755: 
                   8756: # Code to be used in simple link tests
                   8757: lt_simple_link_test_code='int main(){return(0);}'
                   8758: 
                   8759: 
                   8760: 
                   8761: 
                   8762: 
                   8763: 
                   8764: 
                   8765: # If no C compiler was specified, use CC.
                   8766: LTCC=${LTCC-"$CC"}
                   8767: 
                   8768: # If no C compiler flags were specified, use CFLAGS.
                   8769: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
                   8770: 
                   8771: # Allow CC to be a program name with arguments.
                   8772: compiler=$CC
                   8773: 
                   8774: # Save the default compiler, since it gets overwritten when the other
                   8775: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
                   8776: compiler_DEFAULT=$CC
                   8777: 
                   8778: # save warnings/boilerplate of simple test code
                   8779: ac_outfile=conftest.$ac_objext
                   8780: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
                   8781: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   8782: _lt_compiler_boilerplate=`cat conftest.err`
                   8783: $RM conftest*
                   8784: 
                   8785: ac_outfile=conftest.$ac_objext
                   8786: echo "$lt_simple_link_test_code" >conftest.$ac_ext
                   8787: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   8788: _lt_linker_boilerplate=`cat conftest.err`
                   8789: $RM -r conftest*
                   8790: 
                   8791: 
1.1.1.2   misho    8792: ## CAVEAT EMPTOR:
                   8793: ## There is no encapsulation within the following macros, do not change
                   8794: ## the running order or otherwise move them around unless you know exactly
                   8795: ## what you are doing...
1.1       misho    8796: if test -n "$compiler"; then
                   8797: 
                   8798: lt_prog_compiler_no_builtin_flag=
                   8799: 
                   8800: if test "$GCC" = yes; then
                   8801:   case $cc_basename in
                   8802:   nvcc*)
                   8803:     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
                   8804:   *)
                   8805:     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
                   8806:   esac
                   8807: 
                   8808:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
                   8809: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
                   8810: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
                   8811:   $as_echo_n "(cached) " >&6
                   8812: else
                   8813:   lt_cv_prog_compiler_rtti_exceptions=no
                   8814:    ac_outfile=conftest.$ac_objext
                   8815:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   8816:    lt_compiler_flag="-fno-rtti -fno-exceptions"
                   8817:    # Insert the option either (1) after the last *FLAGS variable, or
                   8818:    # (2) before a word containing "conftest.", or (3) at the end.
                   8819:    # Note that $ac_compile itself does not contain backslashes and begins
                   8820:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8821:    # The option is referenced via a variable to avoid confusing sed.
                   8822:    lt_compile=`echo "$ac_compile" | $SED \
                   8823:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   8824:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8825:    -e 's:$: $lt_compiler_flag:'`
                   8826:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
                   8827:    (eval "$lt_compile" 2>conftest.err)
                   8828:    ac_status=$?
                   8829:    cat conftest.err >&5
                   8830:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   8831:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   8832:      # The compiler can only warn and ignore the option if not recognized
                   8833:      # So say no if there are warnings other than the usual output.
                   8834:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
                   8835:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   8836:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
                   8837:        lt_cv_prog_compiler_rtti_exceptions=yes
                   8838:      fi
                   8839:    fi
                   8840:    $RM conftest*
                   8841: 
                   8842: fi
                   8843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
                   8844: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
                   8845: 
                   8846: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
                   8847:     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
                   8848: else
                   8849:     :
                   8850: fi
                   8851: 
                   8852: fi
                   8853: 
                   8854: 
                   8855: 
                   8856: 
                   8857: 
                   8858: 
                   8859:   lt_prog_compiler_wl=
                   8860: lt_prog_compiler_pic=
                   8861: lt_prog_compiler_static=
                   8862: 
                   8863: 
                   8864:   if test "$GCC" = yes; then
                   8865:     lt_prog_compiler_wl='-Wl,'
                   8866:     lt_prog_compiler_static='-static'
                   8867: 
                   8868:     case $host_os in
                   8869:       aix*)
                   8870:       # All AIX code is PIC.
                   8871:       if test "$host_cpu" = ia64; then
                   8872:        # AIX 5 now supports IA64 processor
                   8873:        lt_prog_compiler_static='-Bstatic'
                   8874:       fi
                   8875:       ;;
                   8876: 
                   8877:     amigaos*)
                   8878:       case $host_cpu in
                   8879:       powerpc)
                   8880:             # see comment about AmigaOS4 .so support
                   8881:             lt_prog_compiler_pic='-fPIC'
                   8882:         ;;
                   8883:       m68k)
                   8884:             # FIXME: we need at least 68020 code to build shared libraries, but
                   8885:             # adding the `-m68020' flag to GCC prevents building anything better,
                   8886:             # like `-m68040'.
                   8887:             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
                   8888:         ;;
                   8889:       esac
                   8890:       ;;
                   8891: 
                   8892:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
                   8893:       # PIC is the default for these OSes.
                   8894:       ;;
                   8895: 
                   8896:     mingw* | cygwin* | pw32* | os2* | cegcc*)
                   8897:       # This hack is so that the source file can tell whether it is being
                   8898:       # built for inclusion in a dll (and should export symbols for example).
                   8899:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
                   8900:       # (--disable-auto-import) libraries
                   8901:       lt_prog_compiler_pic='-DDLL_EXPORT'
                   8902:       ;;
                   8903: 
                   8904:     darwin* | rhapsody*)
                   8905:       # PIC is the default on this platform
                   8906:       # Common symbols not allowed in MH_DYLIB files
                   8907:       lt_prog_compiler_pic='-fno-common'
                   8908:       ;;
                   8909: 
                   8910:     haiku*)
                   8911:       # PIC is the default for Haiku.
                   8912:       # The "-static" flag exists, but is broken.
                   8913:       lt_prog_compiler_static=
                   8914:       ;;
                   8915: 
                   8916:     hpux*)
                   8917:       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
                   8918:       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
                   8919:       # sets the default TLS model and affects inlining.
                   8920:       case $host_cpu in
                   8921:       hppa*64*)
                   8922:        # +Z the default
                   8923:        ;;
                   8924:       *)
                   8925:        lt_prog_compiler_pic='-fPIC'
                   8926:        ;;
                   8927:       esac
                   8928:       ;;
                   8929: 
                   8930:     interix[3-9]*)
                   8931:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
                   8932:       # Instead, we relocate shared libraries at runtime.
                   8933:       ;;
                   8934: 
                   8935:     msdosdjgpp*)
                   8936:       # Just because we use GCC doesn't mean we suddenly get shared libraries
                   8937:       # on systems that don't support them.
                   8938:       lt_prog_compiler_can_build_shared=no
                   8939:       enable_shared=no
                   8940:       ;;
                   8941: 
                   8942:     *nto* | *qnx*)
                   8943:       # QNX uses GNU C++, but need to define -shared option too, otherwise
                   8944:       # it will coredump.
                   8945:       lt_prog_compiler_pic='-fPIC -shared'
                   8946:       ;;
                   8947: 
                   8948:     sysv4*MP*)
                   8949:       if test -d /usr/nec; then
                   8950:        lt_prog_compiler_pic=-Kconform_pic
                   8951:       fi
                   8952:       ;;
                   8953: 
                   8954:     *)
                   8955:       lt_prog_compiler_pic='-fPIC'
                   8956:       ;;
                   8957:     esac
                   8958: 
                   8959:     case $cc_basename in
                   8960:     nvcc*) # Cuda Compiler Driver 2.2
                   8961:       lt_prog_compiler_wl='-Xlinker '
1.1.1.2   misho    8962:       if test -n "$lt_prog_compiler_pic"; then
                   8963:         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
                   8964:       fi
1.1       misho    8965:       ;;
                   8966:     esac
                   8967:   else
                   8968:     # PORTME Check for flag to pass linker flags through the system compiler.
                   8969:     case $host_os in
                   8970:     aix*)
                   8971:       lt_prog_compiler_wl='-Wl,'
                   8972:       if test "$host_cpu" = ia64; then
                   8973:        # AIX 5 now supports IA64 processor
                   8974:        lt_prog_compiler_static='-Bstatic'
                   8975:       else
                   8976:        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
                   8977:       fi
                   8978:       ;;
                   8979: 
                   8980:     mingw* | cygwin* | pw32* | os2* | cegcc*)
                   8981:       # This hack is so that the source file can tell whether it is being
                   8982:       # built for inclusion in a dll (and should export symbols for example).
                   8983:       lt_prog_compiler_pic='-DDLL_EXPORT'
                   8984:       ;;
                   8985: 
                   8986:     hpux9* | hpux10* | hpux11*)
                   8987:       lt_prog_compiler_wl='-Wl,'
                   8988:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   8989:       # not for PA HP-UX.
                   8990:       case $host_cpu in
                   8991:       hppa*64*|ia64*)
                   8992:        # +Z the default
                   8993:        ;;
                   8994:       *)
                   8995:        lt_prog_compiler_pic='+Z'
                   8996:        ;;
                   8997:       esac
                   8998:       # Is there a better lt_prog_compiler_static that works with the bundled CC?
                   8999:       lt_prog_compiler_static='${wl}-a ${wl}archive'
                   9000:       ;;
                   9001: 
                   9002:     irix5* | irix6* | nonstopux*)
                   9003:       lt_prog_compiler_wl='-Wl,'
                   9004:       # PIC (with -KPIC) is the default.
                   9005:       lt_prog_compiler_static='-non_shared'
                   9006:       ;;
                   9007: 
                   9008:     linux* | k*bsd*-gnu | kopensolaris*-gnu)
                   9009:       case $cc_basename in
                   9010:       # old Intel for x86_64 which still supported -KPIC.
                   9011:       ecc*)
                   9012:        lt_prog_compiler_wl='-Wl,'
                   9013:        lt_prog_compiler_pic='-KPIC'
                   9014:        lt_prog_compiler_static='-static'
                   9015:         ;;
                   9016:       # icc used to be incompatible with GCC.
                   9017:       # ICC 10 doesn't accept -KPIC any more.
                   9018:       icc* | ifort*)
                   9019:        lt_prog_compiler_wl='-Wl,'
                   9020:        lt_prog_compiler_pic='-fPIC'
                   9021:        lt_prog_compiler_static='-static'
                   9022:         ;;
                   9023:       # Lahey Fortran 8.1.
                   9024:       lf95*)
                   9025:        lt_prog_compiler_wl='-Wl,'
                   9026:        lt_prog_compiler_pic='--shared'
                   9027:        lt_prog_compiler_static='--static'
                   9028:        ;;
                   9029:       nagfor*)
                   9030:        # NAG Fortran compiler
                   9031:        lt_prog_compiler_wl='-Wl,-Wl,,'
                   9032:        lt_prog_compiler_pic='-PIC'
                   9033:        lt_prog_compiler_static='-Bstatic'
                   9034:        ;;
                   9035:       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
                   9036:         # Portland Group compilers (*not* the Pentium gcc compiler,
                   9037:        # which looks to be a dead project)
                   9038:        lt_prog_compiler_wl='-Wl,'
                   9039:        lt_prog_compiler_pic='-fpic'
                   9040:        lt_prog_compiler_static='-Bstatic'
                   9041:         ;;
                   9042:       ccc*)
                   9043:         lt_prog_compiler_wl='-Wl,'
                   9044:         # All Alpha code is PIC.
                   9045:         lt_prog_compiler_static='-non_shared'
                   9046:         ;;
                   9047:       xl* | bgxl* | bgf* | mpixl*)
                   9048:        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
                   9049:        lt_prog_compiler_wl='-Wl,'
                   9050:        lt_prog_compiler_pic='-qpic'
                   9051:        lt_prog_compiler_static='-qstaticlink'
                   9052:        ;;
                   9053:       *)
                   9054:        case `$CC -V 2>&1 | sed 5q` in
1.1.1.2   misho    9055:        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
1.1       misho    9056:          # Sun Fortran 8.3 passes all unrecognized flags to the linker
                   9057:          lt_prog_compiler_pic='-KPIC'
                   9058:          lt_prog_compiler_static='-Bstatic'
                   9059:          lt_prog_compiler_wl=''
                   9060:          ;;
1.1.1.2   misho    9061:        *Sun\ F* | *Sun*Fortran*)
                   9062:          lt_prog_compiler_pic='-KPIC'
                   9063:          lt_prog_compiler_static='-Bstatic'
                   9064:          lt_prog_compiler_wl='-Qoption ld '
                   9065:          ;;
1.1       misho    9066:        *Sun\ C*)
                   9067:          # Sun C 5.9
                   9068:          lt_prog_compiler_pic='-KPIC'
                   9069:          lt_prog_compiler_static='-Bstatic'
                   9070:          lt_prog_compiler_wl='-Wl,'
                   9071:          ;;
1.1.1.2   misho    9072:         *Intel*\ [CF]*Compiler*)
                   9073:          lt_prog_compiler_wl='-Wl,'
                   9074:          lt_prog_compiler_pic='-fPIC'
                   9075:          lt_prog_compiler_static='-static'
                   9076:          ;;
                   9077:        *Portland\ Group*)
                   9078:          lt_prog_compiler_wl='-Wl,'
                   9079:          lt_prog_compiler_pic='-fpic'
                   9080:          lt_prog_compiler_static='-Bstatic'
                   9081:          ;;
1.1       misho    9082:        esac
                   9083:        ;;
                   9084:       esac
                   9085:       ;;
                   9086: 
                   9087:     newsos6)
                   9088:       lt_prog_compiler_pic='-KPIC'
                   9089:       lt_prog_compiler_static='-Bstatic'
                   9090:       ;;
                   9091: 
                   9092:     *nto* | *qnx*)
                   9093:       # QNX uses GNU C++, but need to define -shared option too, otherwise
                   9094:       # it will coredump.
                   9095:       lt_prog_compiler_pic='-fPIC -shared'
                   9096:       ;;
                   9097: 
                   9098:     osf3* | osf4* | osf5*)
                   9099:       lt_prog_compiler_wl='-Wl,'
                   9100:       # All OSF/1 code is PIC.
                   9101:       lt_prog_compiler_static='-non_shared'
                   9102:       ;;
                   9103: 
                   9104:     rdos*)
                   9105:       lt_prog_compiler_static='-non_shared'
                   9106:       ;;
                   9107: 
                   9108:     solaris*)
                   9109:       lt_prog_compiler_pic='-KPIC'
                   9110:       lt_prog_compiler_static='-Bstatic'
                   9111:       case $cc_basename in
                   9112:       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
                   9113:        lt_prog_compiler_wl='-Qoption ld ';;
                   9114:       *)
                   9115:        lt_prog_compiler_wl='-Wl,';;
                   9116:       esac
                   9117:       ;;
                   9118: 
                   9119:     sunos4*)
                   9120:       lt_prog_compiler_wl='-Qoption ld '
                   9121:       lt_prog_compiler_pic='-PIC'
                   9122:       lt_prog_compiler_static='-Bstatic'
                   9123:       ;;
                   9124: 
                   9125:     sysv4 | sysv4.2uw2* | sysv4.3*)
                   9126:       lt_prog_compiler_wl='-Wl,'
                   9127:       lt_prog_compiler_pic='-KPIC'
                   9128:       lt_prog_compiler_static='-Bstatic'
                   9129:       ;;
                   9130: 
                   9131:     sysv4*MP*)
                   9132:       if test -d /usr/nec ;then
                   9133:        lt_prog_compiler_pic='-Kconform_pic'
                   9134:        lt_prog_compiler_static='-Bstatic'
                   9135:       fi
                   9136:       ;;
                   9137: 
                   9138:     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
                   9139:       lt_prog_compiler_wl='-Wl,'
                   9140:       lt_prog_compiler_pic='-KPIC'
                   9141:       lt_prog_compiler_static='-Bstatic'
                   9142:       ;;
                   9143: 
                   9144:     unicos*)
                   9145:       lt_prog_compiler_wl='-Wl,'
                   9146:       lt_prog_compiler_can_build_shared=no
                   9147:       ;;
                   9148: 
                   9149:     uts4*)
                   9150:       lt_prog_compiler_pic='-pic'
                   9151:       lt_prog_compiler_static='-Bstatic'
                   9152:       ;;
                   9153: 
                   9154:     *)
                   9155:       lt_prog_compiler_can_build_shared=no
                   9156:       ;;
                   9157:     esac
                   9158:   fi
                   9159: 
                   9160: case $host_os in
                   9161:   # For platforms which do not support PIC, -DPIC is meaningless:
                   9162:   *djgpp*)
                   9163:     lt_prog_compiler_pic=
                   9164:     ;;
                   9165:   *)
                   9166:     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
                   9167:     ;;
                   9168: esac
                   9169: 
                   9170: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
                   9171: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
                   9172: if ${lt_cv_prog_compiler_pic+:} false; then :
                   9173:   $as_echo_n "(cached) " >&6
                   9174: else
                   9175:   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
                   9176: fi
                   9177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
                   9178: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
                   9179: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
                   9180: 
                   9181: #
                   9182: # Check to make sure the PIC flag actually works.
                   9183: #
                   9184: if test -n "$lt_prog_compiler_pic"; then
                   9185:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
                   9186: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
                   9187: if ${lt_cv_prog_compiler_pic_works+:} false; then :
                   9188:   $as_echo_n "(cached) " >&6
                   9189: else
                   9190:   lt_cv_prog_compiler_pic_works=no
                   9191:    ac_outfile=conftest.$ac_objext
                   9192:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   9193:    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
                   9194:    # Insert the option either (1) after the last *FLAGS variable, or
                   9195:    # (2) before a word containing "conftest.", or (3) at the end.
                   9196:    # Note that $ac_compile itself does not contain backslashes and begins
                   9197:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   9198:    # The option is referenced via a variable to avoid confusing sed.
                   9199:    lt_compile=`echo "$ac_compile" | $SED \
                   9200:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   9201:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   9202:    -e 's:$: $lt_compiler_flag:'`
                   9203:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
                   9204:    (eval "$lt_compile" 2>conftest.err)
                   9205:    ac_status=$?
                   9206:    cat conftest.err >&5
                   9207:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9208:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   9209:      # The compiler can only warn and ignore the option if not recognized
                   9210:      # So say no if there are warnings other than the usual output.
                   9211:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
                   9212:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   9213:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
                   9214:        lt_cv_prog_compiler_pic_works=yes
                   9215:      fi
                   9216:    fi
                   9217:    $RM conftest*
                   9218: 
                   9219: fi
                   9220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
                   9221: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
                   9222: 
                   9223: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
                   9224:     case $lt_prog_compiler_pic in
                   9225:      "" | " "*) ;;
                   9226:      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
                   9227:      esac
                   9228: else
                   9229:     lt_prog_compiler_pic=
                   9230:      lt_prog_compiler_can_build_shared=no
                   9231: fi
                   9232: 
                   9233: fi
                   9234: 
                   9235: 
                   9236: 
                   9237: 
                   9238: 
                   9239: 
                   9240: 
                   9241: 
                   9242: 
                   9243: 
                   9244: 
                   9245: #
                   9246: # Check to make sure the static flag actually works.
                   9247: #
                   9248: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
                   9249: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
                   9250: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
                   9251: if ${lt_cv_prog_compiler_static_works+:} false; then :
                   9252:   $as_echo_n "(cached) " >&6
                   9253: else
                   9254:   lt_cv_prog_compiler_static_works=no
                   9255:    save_LDFLAGS="$LDFLAGS"
                   9256:    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
                   9257:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
                   9258:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
                   9259:      # The linker can only warn and ignore the option if not recognized
                   9260:      # So say no if there are warnings
                   9261:      if test -s conftest.err; then
                   9262:        # Append any errors to the config.log.
                   9263:        cat conftest.err 1>&5
                   9264:        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
                   9265:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   9266:        if diff conftest.exp conftest.er2 >/dev/null; then
                   9267:          lt_cv_prog_compiler_static_works=yes
                   9268:        fi
                   9269:      else
                   9270:        lt_cv_prog_compiler_static_works=yes
                   9271:      fi
                   9272:    fi
                   9273:    $RM -r conftest*
                   9274:    LDFLAGS="$save_LDFLAGS"
                   9275: 
                   9276: fi
                   9277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
                   9278: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
                   9279: 
                   9280: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
                   9281:     :
                   9282: else
                   9283:     lt_prog_compiler_static=
                   9284: fi
                   9285: 
                   9286: 
                   9287: 
                   9288: 
                   9289: 
                   9290: 
                   9291: 
                   9292:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
                   9293: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
                   9294: if ${lt_cv_prog_compiler_c_o+:} false; then :
                   9295:   $as_echo_n "(cached) " >&6
                   9296: else
                   9297:   lt_cv_prog_compiler_c_o=no
                   9298:    $RM -r conftest 2>/dev/null
                   9299:    mkdir conftest
                   9300:    cd conftest
                   9301:    mkdir out
                   9302:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   9303: 
                   9304:    lt_compiler_flag="-o out/conftest2.$ac_objext"
                   9305:    # Insert the option either (1) after the last *FLAGS variable, or
                   9306:    # (2) before a word containing "conftest.", or (3) at the end.
                   9307:    # Note that $ac_compile itself does not contain backslashes and begins
                   9308:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   9309:    lt_compile=`echo "$ac_compile" | $SED \
                   9310:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   9311:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   9312:    -e 's:$: $lt_compiler_flag:'`
                   9313:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
                   9314:    (eval "$lt_compile" 2>out/conftest.err)
                   9315:    ac_status=$?
                   9316:    cat out/conftest.err >&5
                   9317:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9318:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
                   9319:    then
                   9320:      # The compiler can only warn and ignore the option if not recognized
                   9321:      # So say no if there are warnings
                   9322:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
                   9323:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
                   9324:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
                   9325:        lt_cv_prog_compiler_c_o=yes
                   9326:      fi
                   9327:    fi
                   9328:    chmod u+w . 2>&5
                   9329:    $RM conftest*
                   9330:    # SGI C++ compiler will create directory out/ii_files/ for
                   9331:    # template instantiation
                   9332:    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
                   9333:    $RM out/* && rmdir out
                   9334:    cd ..
                   9335:    $RM -r conftest
                   9336:    $RM conftest*
                   9337: 
                   9338: fi
                   9339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
                   9340: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
                   9341: 
                   9342: 
                   9343: 
                   9344: 
                   9345: 
                   9346: 
                   9347:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
                   9348: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
                   9349: if ${lt_cv_prog_compiler_c_o+:} false; then :
                   9350:   $as_echo_n "(cached) " >&6
                   9351: else
                   9352:   lt_cv_prog_compiler_c_o=no
                   9353:    $RM -r conftest 2>/dev/null
                   9354:    mkdir conftest
                   9355:    cd conftest
                   9356:    mkdir out
                   9357:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   9358: 
                   9359:    lt_compiler_flag="-o out/conftest2.$ac_objext"
                   9360:    # Insert the option either (1) after the last *FLAGS variable, or
                   9361:    # (2) before a word containing "conftest.", or (3) at the end.
                   9362:    # Note that $ac_compile itself does not contain backslashes and begins
                   9363:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   9364:    lt_compile=`echo "$ac_compile" | $SED \
                   9365:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   9366:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   9367:    -e 's:$: $lt_compiler_flag:'`
                   9368:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
                   9369:    (eval "$lt_compile" 2>out/conftest.err)
                   9370:    ac_status=$?
                   9371:    cat out/conftest.err >&5
                   9372:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9373:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
                   9374:    then
                   9375:      # The compiler can only warn and ignore the option if not recognized
                   9376:      # So say no if there are warnings
                   9377:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
                   9378:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
                   9379:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
                   9380:        lt_cv_prog_compiler_c_o=yes
                   9381:      fi
                   9382:    fi
                   9383:    chmod u+w . 2>&5
                   9384:    $RM conftest*
                   9385:    # SGI C++ compiler will create directory out/ii_files/ for
                   9386:    # template instantiation
                   9387:    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
                   9388:    $RM out/* && rmdir out
                   9389:    cd ..
                   9390:    $RM -r conftest
                   9391:    $RM conftest*
                   9392: 
                   9393: fi
                   9394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
                   9395: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
                   9396: 
                   9397: 
                   9398: 
                   9399: 
                   9400: hard_links="nottested"
                   9401: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
                   9402:   # do not overwrite the value of need_locks provided by the user
                   9403:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
                   9404: $as_echo_n "checking if we can lock with hard links... " >&6; }
                   9405:   hard_links=yes
                   9406:   $RM conftest*
                   9407:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   9408:   touch conftest.a
                   9409:   ln conftest.a conftest.b 2>&5 || hard_links=no
                   9410:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   9411:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
                   9412: $as_echo "$hard_links" >&6; }
                   9413:   if test "$hard_links" = no; then
                   9414:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
                   9415: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
                   9416:     need_locks=warn
                   9417:   fi
                   9418: else
                   9419:   need_locks=no
                   9420: fi
                   9421: 
                   9422: 
                   9423: 
                   9424: 
                   9425: 
                   9426: 
                   9427:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
                   9428: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
                   9429: 
                   9430:   runpath_var=
                   9431:   allow_undefined_flag=
                   9432:   always_export_symbols=no
                   9433:   archive_cmds=
                   9434:   archive_expsym_cmds=
                   9435:   compiler_needs_object=no
                   9436:   enable_shared_with_static_runtimes=no
                   9437:   export_dynamic_flag_spec=
                   9438:   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
                   9439:   hardcode_automatic=no
                   9440:   hardcode_direct=no
                   9441:   hardcode_direct_absolute=no
                   9442:   hardcode_libdir_flag_spec=
                   9443:   hardcode_libdir_separator=
                   9444:   hardcode_minus_L=no
                   9445:   hardcode_shlibpath_var=unsupported
                   9446:   inherit_rpath=no
                   9447:   link_all_deplibs=unknown
                   9448:   module_cmds=
                   9449:   module_expsym_cmds=
                   9450:   old_archive_from_new_cmds=
                   9451:   old_archive_from_expsyms_cmds=
                   9452:   thread_safe_flag_spec=
                   9453:   whole_archive_flag_spec=
                   9454:   # include_expsyms should be a list of space-separated symbols to be *always*
                   9455:   # included in the symbol list
                   9456:   include_expsyms=
                   9457:   # exclude_expsyms can be an extended regexp of symbols to exclude
                   9458:   # it will be wrapped by ` (' and `)$', so one must not match beginning or
                   9459:   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
                   9460:   # as well as any symbol that contains `d'.
                   9461:   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
                   9462:   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
                   9463:   # platforms (ab)use it in PIC code, but their linkers get confused if
                   9464:   # the symbol is explicitly referenced.  Since portable code cannot
                   9465:   # rely on this symbol name, it's probably fine to never include it in
                   9466:   # preloaded symbol tables.
                   9467:   # Exclude shared library initialization/finalization symbols.
                   9468:   extract_expsyms_cmds=
                   9469: 
                   9470:   case $host_os in
                   9471:   cygwin* | mingw* | pw32* | cegcc*)
                   9472:     # FIXME: the MSVC++ port hasn't been tested in a loooong time
                   9473:     # When not using gcc, we currently assume that we are using
                   9474:     # Microsoft Visual C++.
                   9475:     if test "$GCC" != yes; then
                   9476:       with_gnu_ld=no
                   9477:     fi
                   9478:     ;;
                   9479:   interix*)
                   9480:     # we just hope/assume this is gcc and not c89 (= MSVC++)
                   9481:     with_gnu_ld=yes
                   9482:     ;;
                   9483:   openbsd*)
                   9484:     with_gnu_ld=no
                   9485:     ;;
                   9486:   esac
                   9487: 
                   9488:   ld_shlibs=yes
                   9489: 
                   9490:   # On some targets, GNU ld is compatible enough with the native linker
                   9491:   # that we're better off using the native interface for both.
                   9492:   lt_use_gnu_ld_interface=no
                   9493:   if test "$with_gnu_ld" = yes; then
                   9494:     case $host_os in
                   9495:       aix*)
                   9496:        # The AIX port of GNU ld has always aspired to compatibility
                   9497:        # with the native linker.  However, as the warning in the GNU ld
                   9498:        # block says, versions before 2.19.5* couldn't really create working
                   9499:        # shared libraries, regardless of the interface used.
                   9500:        case `$LD -v 2>&1` in
                   9501:          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
                   9502:          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
                   9503:          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
                   9504:          *)
                   9505:            lt_use_gnu_ld_interface=yes
                   9506:            ;;
                   9507:        esac
                   9508:        ;;
                   9509:       *)
                   9510:        lt_use_gnu_ld_interface=yes
                   9511:        ;;
                   9512:     esac
                   9513:   fi
                   9514: 
                   9515:   if test "$lt_use_gnu_ld_interface" = yes; then
                   9516:     # If archive_cmds runs LD, not CC, wlarc should be empty
                   9517:     wlarc='${wl}'
                   9518: 
                   9519:     # Set some defaults for GNU ld with shared library support. These
                   9520:     # are reset later if shared libraries are not supported. Putting them
                   9521:     # here allows them to be overridden if necessary.
                   9522:     runpath_var=LD_RUN_PATH
                   9523:     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9524:     export_dynamic_flag_spec='${wl}--export-dynamic'
                   9525:     # ancient GNU ld didn't support --whole-archive et. al.
                   9526:     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
                   9527:       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
                   9528:     else
                   9529:       whole_archive_flag_spec=
                   9530:     fi
                   9531:     supports_anon_versioning=no
                   9532:     case `$LD -v 2>&1` in
                   9533:       *GNU\ gold*) supports_anon_versioning=yes ;;
                   9534:       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
                   9535:       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
                   9536:       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
                   9537:       *\ 2.11.*) ;; # other 2.11 versions
                   9538:       *) supports_anon_versioning=yes ;;
                   9539:     esac
                   9540: 
                   9541:     # See if GNU ld supports shared libraries.
                   9542:     case $host_os in
                   9543:     aix[3-9]*)
                   9544:       # On AIX/PPC, the GNU linker is very broken
                   9545:       if test "$host_cpu" != ia64; then
                   9546:        ld_shlibs=no
                   9547:        cat <<_LT_EOF 1>&2
                   9548: 
                   9549: *** Warning: the GNU linker, at least up to release 2.19, is reported
                   9550: *** to be unable to reliably create shared libraries on AIX.
                   9551: *** Therefore, libtool is disabling shared libraries support.  If you
                   9552: *** really care for shared libraries, you may want to install binutils
                   9553: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
                   9554: *** You will then need to restart the configuration process.
                   9555: 
                   9556: _LT_EOF
                   9557:       fi
                   9558:       ;;
                   9559: 
                   9560:     amigaos*)
                   9561:       case $host_cpu in
                   9562:       powerpc)
                   9563:             # see comment about AmigaOS4 .so support
                   9564:             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   9565:             archive_expsym_cmds=''
                   9566:         ;;
                   9567:       m68k)
                   9568:             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)'
                   9569:             hardcode_libdir_flag_spec='-L$libdir'
                   9570:             hardcode_minus_L=yes
                   9571:         ;;
                   9572:       esac
                   9573:       ;;
                   9574: 
                   9575:     beos*)
                   9576:       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
                   9577:        allow_undefined_flag=unsupported
                   9578:        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
                   9579:        # support --undefined.  This deserves some investigation.  FIXME
                   9580:        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   9581:       else
                   9582:        ld_shlibs=no
                   9583:       fi
                   9584:       ;;
                   9585: 
                   9586:     cygwin* | mingw* | pw32* | cegcc*)
                   9587:       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
                   9588:       # as there is no search path for DLLs.
                   9589:       hardcode_libdir_flag_spec='-L$libdir'
                   9590:       export_dynamic_flag_spec='${wl}--export-all-symbols'
                   9591:       allow_undefined_flag=unsupported
                   9592:       always_export_symbols=no
                   9593:       enable_shared_with_static_runtimes=yes
                   9594:       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'
                   9595:       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
                   9596: 
                   9597:       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
                   9598:         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   9599:        # If the export-symbols file already is a .def file (1st line
                   9600:        # is EXPORTS), use it as is; otherwise, prepend...
                   9601:        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
                   9602:          cp $export_symbols $output_objdir/$soname.def;
                   9603:        else
                   9604:          echo EXPORTS > $output_objdir/$soname.def;
                   9605:          cat $export_symbols >> $output_objdir/$soname.def;
                   9606:        fi~
                   9607:        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   9608:       else
                   9609:        ld_shlibs=no
                   9610:       fi
                   9611:       ;;
                   9612: 
                   9613:     haiku*)
                   9614:       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   9615:       link_all_deplibs=yes
                   9616:       ;;
                   9617: 
                   9618:     interix[3-9]*)
                   9619:       hardcode_direct=no
                   9620:       hardcode_shlibpath_var=no
                   9621:       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   9622:       export_dynamic_flag_spec='${wl}-E'
                   9623:       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
                   9624:       # Instead, shared libraries are loaded at an image base (0x10000000 by
                   9625:       # default) and relocated if they conflict, which is a slow very memory
                   9626:       # consuming and fragmenting process.  To avoid this, we pick a random,
                   9627:       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
                   9628:       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
                   9629:       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
                   9630:       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'
                   9631:       ;;
                   9632: 
                   9633:     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
                   9634:       tmp_diet=no
                   9635:       if test "$host_os" = linux-dietlibc; then
                   9636:        case $cc_basename in
                   9637:          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
                   9638:        esac
                   9639:       fi
                   9640:       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
                   9641:         && test "$tmp_diet" = no
                   9642:       then
                   9643:        tmp_addflag=' $pic_flag'
                   9644:        tmp_sharedflag='-shared'
                   9645:        case $cc_basename,$host_cpu in
                   9646:         pgcc*)                         # Portland Group C compiler
                   9647:          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'
                   9648:          tmp_addflag=' $pic_flag'
                   9649:          ;;
                   9650:        pgf77* | pgf90* | pgf95* | pgfortran*)
                   9651:                                        # Portland Group f77 and f90 compilers
                   9652:          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'
                   9653:          tmp_addflag=' $pic_flag -Mnomain' ;;
                   9654:        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
                   9655:          tmp_addflag=' -i_dynamic' ;;
                   9656:        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
                   9657:          tmp_addflag=' -i_dynamic -nofor_main' ;;
                   9658:        ifc* | ifort*)                  # Intel Fortran compiler
                   9659:          tmp_addflag=' -nofor_main' ;;
                   9660:        lf95*)                          # Lahey Fortran 8.1
                   9661:          whole_archive_flag_spec=
                   9662:          tmp_sharedflag='--shared' ;;
                   9663:        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
                   9664:          tmp_sharedflag='-qmkshrobj'
                   9665:          tmp_addflag= ;;
                   9666:        nvcc*)  # Cuda Compiler Driver 2.2
                   9667:          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'
                   9668:          compiler_needs_object=yes
                   9669:          ;;
                   9670:        esac
                   9671:        case `$CC -V 2>&1 | sed 5q` in
                   9672:        *Sun\ C*)                       # Sun C 5.9
                   9673:          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'
                   9674:          compiler_needs_object=yes
                   9675:          tmp_sharedflag='-G' ;;
                   9676:        *Sun\ F*)                       # Sun Fortran 8.3
                   9677:          tmp_sharedflag='-G' ;;
                   9678:        esac
                   9679:        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   9680: 
                   9681:         if test "x$supports_anon_versioning" = xyes; then
                   9682:           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
                   9683:            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
                   9684:            echo "local: *; };" >> $output_objdir/$libname.ver~
                   9685:            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
                   9686:         fi
                   9687: 
                   9688:        case $cc_basename in
                   9689:        xlf* | bgf* | bgxlf* | mpixlf*)
                   9690:          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
                   9691:          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
1.1.1.2   misho    9692:          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1.1       misho    9693:          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
                   9694:          if test "x$supports_anon_versioning" = xyes; then
                   9695:            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
                   9696:              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
                   9697:              echo "local: *; };" >> $output_objdir/$libname.ver~
                   9698:              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
                   9699:          fi
                   9700:          ;;
                   9701:        esac
                   9702:       else
                   9703:         ld_shlibs=no
                   9704:       fi
                   9705:       ;;
                   9706: 
                   9707:     netbsd*)
                   9708:       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
                   9709:        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
                   9710:        wlarc=
                   9711:       else
                   9712:        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   9713:        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   9714:       fi
                   9715:       ;;
                   9716: 
                   9717:     solaris*)
                   9718:       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
                   9719:        ld_shlibs=no
                   9720:        cat <<_LT_EOF 1>&2
                   9721: 
                   9722: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
                   9723: *** create shared libraries on Solaris systems.  Therefore, libtool
                   9724: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   9725: *** binutils to release 2.9.1 or newer.  Another option is to modify
                   9726: *** your PATH or compiler configuration so that the native linker is
                   9727: *** used, and then restart.
                   9728: 
                   9729: _LT_EOF
                   9730:       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
                   9731:        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   9732:        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   9733:       else
                   9734:        ld_shlibs=no
                   9735:       fi
                   9736:       ;;
                   9737: 
                   9738:     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
                   9739:       case `$LD -v 2>&1` in
                   9740:         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
                   9741:        ld_shlibs=no
                   9742:        cat <<_LT_EOF 1>&2
                   9743: 
                   9744: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
                   9745: *** reliably create shared libraries on SCO systems.  Therefore, libtool
                   9746: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   9747: *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
                   9748: *** your PATH or compiler configuration so that the native linker is
                   9749: *** used, and then restart.
                   9750: 
                   9751: _LT_EOF
                   9752:        ;;
                   9753:        *)
                   9754:          # For security reasons, it is highly recommended that you always
                   9755:          # use absolute paths for naming shared libraries, and exclude the
                   9756:          # DT_RUNPATH tag from executables and libraries.  But doing so
                   9757:          # requires that you compile everything twice, which is a pain.
                   9758:          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
                   9759:            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9760:            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   9761:            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   9762:          else
                   9763:            ld_shlibs=no
                   9764:          fi
                   9765:        ;;
                   9766:       esac
                   9767:       ;;
                   9768: 
                   9769:     sunos4*)
                   9770:       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   9771:       wlarc=
                   9772:       hardcode_direct=yes
                   9773:       hardcode_shlibpath_var=no
                   9774:       ;;
                   9775: 
                   9776:     *)
                   9777:       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
                   9778:        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   9779:        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   9780:       else
                   9781:        ld_shlibs=no
                   9782:       fi
                   9783:       ;;
                   9784:     esac
                   9785: 
                   9786:     if test "$ld_shlibs" = no; then
                   9787:       runpath_var=
                   9788:       hardcode_libdir_flag_spec=
                   9789:       export_dynamic_flag_spec=
                   9790:       whole_archive_flag_spec=
                   9791:     fi
                   9792:   else
                   9793:     # PORTME fill in a description of your system's linker (not GNU ld)
                   9794:     case $host_os in
                   9795:     aix3*)
                   9796:       allow_undefined_flag=unsupported
                   9797:       always_export_symbols=yes
                   9798:       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'
                   9799:       # Note: this linker hardcodes the directories in LIBPATH if there
                   9800:       # are no directories specified by -L.
                   9801:       hardcode_minus_L=yes
                   9802:       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
                   9803:        # Neither direct hardcoding nor static linking is supported with a
                   9804:        # broken collect2.
                   9805:        hardcode_direct=unsupported
                   9806:       fi
                   9807:       ;;
                   9808: 
                   9809:     aix[4-9]*)
                   9810:       if test "$host_cpu" = ia64; then
                   9811:        # On IA64, the linker does run time linking by default, so we don't
                   9812:        # have to do anything special.
                   9813:        aix_use_runtimelinking=no
                   9814:        exp_sym_flag='-Bexport'
                   9815:        no_entry_flag=""
                   9816:       else
                   9817:        # If we're using GNU nm, then we don't want the "-C" option.
                   9818:        # -C means demangle to AIX nm, but means don't demangle with GNU nm
                   9819:        # Also, AIX nm treats weak defined symbols like other global
                   9820:        # defined symbols, whereas GNU nm marks them as "W".
                   9821:        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
                   9822:          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
                   9823:        else
                   9824:          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
                   9825:        fi
                   9826:        aix_use_runtimelinking=no
                   9827: 
                   9828:        # Test if we are trying to use run time linking or normal
                   9829:        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
                   9830:        # need to do runtime linking.
                   9831:        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
                   9832:          for ld_flag in $LDFLAGS; do
                   9833:          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
                   9834:            aix_use_runtimelinking=yes
                   9835:            break
                   9836:          fi
                   9837:          done
                   9838:          ;;
                   9839:        esac
                   9840: 
                   9841:        exp_sym_flag='-bexport'
                   9842:        no_entry_flag='-bnoentry'
                   9843:       fi
                   9844: 
                   9845:       # When large executables or shared objects are built, AIX ld can
                   9846:       # have problems creating the table of contents.  If linking a library
                   9847:       # or program results in "error TOC overflow" add -mminimal-toc to
                   9848:       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
                   9849:       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
                   9850: 
                   9851:       archive_cmds=''
                   9852:       hardcode_direct=yes
                   9853:       hardcode_direct_absolute=yes
                   9854:       hardcode_libdir_separator=':'
                   9855:       link_all_deplibs=yes
                   9856:       file_list_spec='${wl}-f,'
                   9857: 
                   9858:       if test "$GCC" = yes; then
                   9859:        case $host_os in aix4.[012]|aix4.[012].*)
                   9860:        # We only want to do this on AIX 4.2 and lower, the check
                   9861:        # below for broken collect2 doesn't work under 4.3+
                   9862:          collect2name=`${CC} -print-prog-name=collect2`
                   9863:          if test -f "$collect2name" &&
                   9864:           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
                   9865:          then
                   9866:          # We have reworked collect2
                   9867:          :
                   9868:          else
                   9869:          # We have old collect2
                   9870:          hardcode_direct=unsupported
                   9871:          # It fails to find uninstalled libraries when the uninstalled
                   9872:          # path is not listed in the libpath.  Setting hardcode_minus_L
                   9873:          # to unsupported forces relinking
                   9874:          hardcode_minus_L=yes
                   9875:          hardcode_libdir_flag_spec='-L$libdir'
                   9876:          hardcode_libdir_separator=
                   9877:          fi
                   9878:          ;;
                   9879:        esac
                   9880:        shared_flag='-shared'
                   9881:        if test "$aix_use_runtimelinking" = yes; then
                   9882:          shared_flag="$shared_flag "'${wl}-G'
                   9883:        fi
                   9884:       else
                   9885:        # not using gcc
                   9886:        if test "$host_cpu" = ia64; then
                   9887:        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
                   9888:        # chokes on -Wl,-G. The following line is correct:
                   9889:          shared_flag='-G'
                   9890:        else
                   9891:          if test "$aix_use_runtimelinking" = yes; then
                   9892:            shared_flag='${wl}-G'
                   9893:          else
                   9894:            shared_flag='${wl}-bM:SRE'
                   9895:          fi
                   9896:        fi
                   9897:       fi
                   9898: 
                   9899:       export_dynamic_flag_spec='${wl}-bexpall'
                   9900:       # It seems that -bexpall does not export symbols beginning with
                   9901:       # underscore (_), so it is better to generate a list of symbols to export.
                   9902:       always_export_symbols=yes
                   9903:       if test "$aix_use_runtimelinking" = yes; then
                   9904:        # Warning - without using the other runtime loading flags (-brtl),
                   9905:        # -berok will link without error, but may produce a broken library.
                   9906:        allow_undefined_flag='-berok'
                   9907:         # Determine the default libpath from the value encoded in an
                   9908:         # empty executable.
                   9909:         if test "${lt_cv_aix_libpath+set}" = set; then
                   9910:   aix_libpath=$lt_cv_aix_libpath
                   9911: else
                   9912:   if ${lt_cv_aix_libpath_+:} false; then :
                   9913:   $as_echo_n "(cached) " >&6
                   9914: else
                   9915:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9916: /* end confdefs.h.  */
                   9917: 
                   9918: int
                   9919: main ()
                   9920: {
                   9921: 
                   9922:   ;
                   9923:   return 0;
                   9924: }
                   9925: _ACEOF
                   9926: if ac_fn_c_try_link "$LINENO"; then :
                   9927: 
                   9928:   lt_aix_libpath_sed='
                   9929:       /Import File Strings/,/^$/ {
                   9930:          /^0/ {
                   9931:              s/^0  *\([^ ]*\) *$/\1/
                   9932:              p
                   9933:          }
                   9934:       }'
                   9935:   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9936:   # Check for a 64-bit object if we didn't find anything.
                   9937:   if test -z "$lt_cv_aix_libpath_"; then
                   9938:     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9939:   fi
                   9940: fi
                   9941: rm -f core conftest.err conftest.$ac_objext \
                   9942:     conftest$ac_exeext conftest.$ac_ext
                   9943:   if test -z "$lt_cv_aix_libpath_"; then
                   9944:     lt_cv_aix_libpath_="/usr/lib:/lib"
                   9945:   fi
                   9946: 
                   9947: fi
                   9948: 
                   9949:   aix_libpath=$lt_cv_aix_libpath_
                   9950: fi
                   9951: 
                   9952:         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   9953:         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
                   9954:       else
                   9955:        if test "$host_cpu" = ia64; then
                   9956:          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
                   9957:          allow_undefined_flag="-z nodefs"
                   9958:          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"
                   9959:        else
                   9960:         # Determine the default libpath from the value encoded in an
                   9961:         # empty executable.
                   9962:         if test "${lt_cv_aix_libpath+set}" = set; then
                   9963:   aix_libpath=$lt_cv_aix_libpath
                   9964: else
                   9965:   if ${lt_cv_aix_libpath_+:} false; then :
                   9966:   $as_echo_n "(cached) " >&6
                   9967: else
                   9968:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9969: /* end confdefs.h.  */
                   9970: 
                   9971: int
                   9972: main ()
                   9973: {
                   9974: 
                   9975:   ;
                   9976:   return 0;
                   9977: }
                   9978: _ACEOF
                   9979: if ac_fn_c_try_link "$LINENO"; then :
                   9980: 
                   9981:   lt_aix_libpath_sed='
                   9982:       /Import File Strings/,/^$/ {
                   9983:          /^0/ {
                   9984:              s/^0  *\([^ ]*\) *$/\1/
                   9985:              p
                   9986:          }
                   9987:       }'
                   9988:   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9989:   # Check for a 64-bit object if we didn't find anything.
                   9990:   if test -z "$lt_cv_aix_libpath_"; then
                   9991:     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9992:   fi
                   9993: fi
                   9994: rm -f core conftest.err conftest.$ac_objext \
                   9995:     conftest$ac_exeext conftest.$ac_ext
                   9996:   if test -z "$lt_cv_aix_libpath_"; then
                   9997:     lt_cv_aix_libpath_="/usr/lib:/lib"
                   9998:   fi
                   9999: 
                   10000: fi
                   10001: 
                   10002:   aix_libpath=$lt_cv_aix_libpath_
                   10003: fi
                   10004: 
                   10005:         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   10006:          # Warning - without using the other run time loading flags,
                   10007:          # -berok will link without error, but may produce a broken library.
                   10008:          no_undefined_flag=' ${wl}-bernotok'
                   10009:          allow_undefined_flag=' ${wl}-berok'
                   10010:          if test "$with_gnu_ld" = yes; then
                   10011:            # We only use this code for GNU lds that support --whole-archive.
                   10012:            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
                   10013:          else
                   10014:            # Exported symbols can be pulled into shared objects from archives
                   10015:            whole_archive_flag_spec='$convenience'
                   10016:          fi
                   10017:          archive_cmds_need_lc=yes
                   10018:          # This is similar to how AIX traditionally builds its shared libraries.
                   10019:          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
                   10020:        fi
                   10021:       fi
                   10022:       ;;
                   10023: 
                   10024:     amigaos*)
                   10025:       case $host_cpu in
                   10026:       powerpc)
                   10027:             # see comment about AmigaOS4 .so support
                   10028:             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   10029:             archive_expsym_cmds=''
                   10030:         ;;
                   10031:       m68k)
                   10032:             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)'
                   10033:             hardcode_libdir_flag_spec='-L$libdir'
                   10034:             hardcode_minus_L=yes
                   10035:         ;;
                   10036:       esac
                   10037:       ;;
                   10038: 
                   10039:     bsdi[45]*)
                   10040:       export_dynamic_flag_spec=-rdynamic
                   10041:       ;;
                   10042: 
                   10043:     cygwin* | mingw* | pw32* | cegcc*)
                   10044:       # When not using gcc, we currently assume that we are using
                   10045:       # Microsoft Visual C++.
                   10046:       # hardcode_libdir_flag_spec is actually meaningless, as there is
                   10047:       # no search path for DLLs.
                   10048:       case $cc_basename in
                   10049:       cl*)
                   10050:        # Native MSVC
                   10051:        hardcode_libdir_flag_spec=' '
                   10052:        allow_undefined_flag=unsupported
                   10053:        always_export_symbols=yes
                   10054:        file_list_spec='@'
                   10055:        # Tell ltmain to make .lib files, not .a files.
                   10056:        libext=lib
                   10057:        # Tell ltmain to make .dll files, not .so files.
                   10058:        shrext_cmds=".dll"
                   10059:        # FIXME: Setting linknames here is a bad hack.
                   10060:        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
                   10061:        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
                   10062:            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
                   10063:          else
                   10064:            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
                   10065:          fi~
                   10066:          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
                   10067:          linknames='
                   10068:        # The linker will not automatically build a static lib if we build a DLL.
                   10069:        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
                   10070:        enable_shared_with_static_runtimes=yes
1.1.1.2   misho    10071:        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
1.1       misho    10072:        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
                   10073:        # Don't use ranlib
                   10074:        old_postinstall_cmds='chmod 644 $oldlib'
                   10075:        postlink_cmds='lt_outputfile="@OUTPUT@"~
                   10076:          lt_tool_outputfile="@TOOL_OUTPUT@"~
                   10077:          case $lt_outputfile in
                   10078:            *.exe|*.EXE) ;;
                   10079:            *)
                   10080:              lt_outputfile="$lt_outputfile.exe"
                   10081:              lt_tool_outputfile="$lt_tool_outputfile.exe"
                   10082:              ;;
                   10083:          esac~
                   10084:          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
                   10085:            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
                   10086:            $RM "$lt_outputfile.manifest";
                   10087:          fi'
                   10088:        ;;
                   10089:       *)
                   10090:        # Assume MSVC wrapper
                   10091:        hardcode_libdir_flag_spec=' '
                   10092:        allow_undefined_flag=unsupported
                   10093:        # Tell ltmain to make .lib files, not .a files.
                   10094:        libext=lib
                   10095:        # Tell ltmain to make .dll files, not .so files.
                   10096:        shrext_cmds=".dll"
                   10097:        # FIXME: Setting linknames here is a bad hack.
                   10098:        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
                   10099:        # The linker will automatically build a .lib file if we build a DLL.
                   10100:        old_archive_from_new_cmds='true'
                   10101:        # FIXME: Should let the user specify the lib program.
                   10102:        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
                   10103:        enable_shared_with_static_runtimes=yes
                   10104:        ;;
                   10105:       esac
                   10106:       ;;
                   10107: 
                   10108:     darwin* | rhapsody*)
                   10109: 
                   10110: 
                   10111:   archive_cmds_need_lc=no
                   10112:   hardcode_direct=no
                   10113:   hardcode_automatic=yes
                   10114:   hardcode_shlibpath_var=unsupported
                   10115:   if test "$lt_cv_ld_force_load" = "yes"; then
                   10116:     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\"`'
1.1.1.2   misho    10117: 
1.1       misho    10118:   else
                   10119:     whole_archive_flag_spec=''
                   10120:   fi
                   10121:   link_all_deplibs=yes
                   10122:   allow_undefined_flag="$_lt_dar_allow_undefined"
                   10123:   case $cc_basename in
                   10124:      ifort*) _lt_dar_can_shared=yes ;;
                   10125:      *) _lt_dar_can_shared=$GCC ;;
                   10126:   esac
                   10127:   if test "$_lt_dar_can_shared" = "yes"; then
                   10128:     output_verbose_link_cmd=func_echo_all
                   10129:     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
                   10130:     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
                   10131:     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}"
                   10132:     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}"
                   10133: 
                   10134:   else
                   10135:   ld_shlibs=no
                   10136:   fi
                   10137: 
                   10138:       ;;
                   10139: 
                   10140:     dgux*)
                   10141:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   10142:       hardcode_libdir_flag_spec='-L$libdir'
                   10143:       hardcode_shlibpath_var=no
                   10144:       ;;
                   10145: 
                   10146:     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
                   10147:     # support.  Future versions do this automatically, but an explicit c++rt0.o
                   10148:     # does not break anything, and helps significantly (at the cost of a little
                   10149:     # extra space).
                   10150:     freebsd2.2*)
                   10151:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
                   10152:       hardcode_libdir_flag_spec='-R$libdir'
                   10153:       hardcode_direct=yes
                   10154:       hardcode_shlibpath_var=no
                   10155:       ;;
                   10156: 
                   10157:     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1.1.1.2   misho    10158:     freebsd2.*)
1.1       misho    10159:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   10160:       hardcode_direct=yes
                   10161:       hardcode_minus_L=yes
                   10162:       hardcode_shlibpath_var=no
                   10163:       ;;
                   10164: 
                   10165:     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
                   10166:     freebsd* | dragonfly*)
                   10167:       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   10168:       hardcode_libdir_flag_spec='-R$libdir'
                   10169:       hardcode_direct=yes
                   10170:       hardcode_shlibpath_var=no
                   10171:       ;;
                   10172: 
                   10173:     hpux9*)
                   10174:       if test "$GCC" = yes; then
                   10175:        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
                   10176:       else
                   10177:        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
                   10178:       fi
                   10179:       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   10180:       hardcode_libdir_separator=:
                   10181:       hardcode_direct=yes
                   10182: 
                   10183:       # hardcode_minus_L: Not really in the search PATH,
                   10184:       # but as the default location of the library.
                   10185:       hardcode_minus_L=yes
                   10186:       export_dynamic_flag_spec='${wl}-E'
                   10187:       ;;
                   10188: 
                   10189:     hpux10*)
                   10190:       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
                   10191:        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   10192:       else
                   10193:        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
                   10194:       fi
                   10195:       if test "$with_gnu_ld" = no; then
                   10196:        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   10197:        hardcode_libdir_separator=:
                   10198:        hardcode_direct=yes
                   10199:        hardcode_direct_absolute=yes
                   10200:        export_dynamic_flag_spec='${wl}-E'
                   10201:        # hardcode_minus_L: Not really in the search PATH,
                   10202:        # but as the default location of the library.
                   10203:        hardcode_minus_L=yes
                   10204:       fi
                   10205:       ;;
                   10206: 
                   10207:     hpux11*)
                   10208:       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
                   10209:        case $host_cpu in
                   10210:        hppa*64*)
                   10211:          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   10212:          ;;
                   10213:        ia64*)
                   10214:          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   10215:          ;;
                   10216:        *)
                   10217:          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   10218:          ;;
                   10219:        esac
                   10220:       else
                   10221:        case $host_cpu in
                   10222:        hppa*64*)
                   10223:          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   10224:          ;;
                   10225:        ia64*)
                   10226:          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   10227:          ;;
                   10228:        *)
                   10229: 
                   10230:          # Older versions of the 11.00 compiler do not understand -b yet
                   10231:          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
                   10232:          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
                   10233: $as_echo_n "checking if $CC understands -b... " >&6; }
                   10234: if ${lt_cv_prog_compiler__b+:} false; then :
                   10235:   $as_echo_n "(cached) " >&6
                   10236: else
                   10237:   lt_cv_prog_compiler__b=no
                   10238:    save_LDFLAGS="$LDFLAGS"
                   10239:    LDFLAGS="$LDFLAGS -b"
                   10240:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
                   10241:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
                   10242:      # The linker can only warn and ignore the option if not recognized
                   10243:      # So say no if there are warnings
                   10244:      if test -s conftest.err; then
                   10245:        # Append any errors to the config.log.
                   10246:        cat conftest.err 1>&5
                   10247:        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
                   10248:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   10249:        if diff conftest.exp conftest.er2 >/dev/null; then
                   10250:          lt_cv_prog_compiler__b=yes
                   10251:        fi
                   10252:      else
                   10253:        lt_cv_prog_compiler__b=yes
                   10254:      fi
                   10255:    fi
                   10256:    $RM -r conftest*
                   10257:    LDFLAGS="$save_LDFLAGS"
                   10258: 
                   10259: fi
                   10260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
                   10261: $as_echo "$lt_cv_prog_compiler__b" >&6; }
                   10262: 
                   10263: if test x"$lt_cv_prog_compiler__b" = xyes; then
                   10264:     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   10265: else
                   10266:     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
                   10267: fi
                   10268: 
                   10269:          ;;
                   10270:        esac
                   10271:       fi
                   10272:       if test "$with_gnu_ld" = no; then
                   10273:        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   10274:        hardcode_libdir_separator=:
                   10275: 
                   10276:        case $host_cpu in
                   10277:        hppa*64*|ia64*)
                   10278:          hardcode_direct=no
                   10279:          hardcode_shlibpath_var=no
                   10280:          ;;
                   10281:        *)
                   10282:          hardcode_direct=yes
                   10283:          hardcode_direct_absolute=yes
                   10284:          export_dynamic_flag_spec='${wl}-E'
                   10285: 
                   10286:          # hardcode_minus_L: Not really in the search PATH,
                   10287:          # but as the default location of the library.
                   10288:          hardcode_minus_L=yes
                   10289:          ;;
                   10290:        esac
                   10291:       fi
                   10292:       ;;
                   10293: 
                   10294:     irix5* | irix6* | nonstopux*)
                   10295:       if test "$GCC" = yes; then
                   10296:        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'
                   10297:        # Try to use the -exported_symbol ld option, if it does not
                   10298:        # work, assume that -exports_file does not work either and
                   10299:        # implicitly export all symbols.
                   10300:        # This should be the same for all languages, so no per-tag cache variable.
                   10301:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
                   10302: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
                   10303: if ${lt_cv_irix_exported_symbol+:} false; then :
                   10304:   $as_echo_n "(cached) " >&6
                   10305: else
                   10306:   save_LDFLAGS="$LDFLAGS"
                   10307:           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
                   10308:           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   10309: /* end confdefs.h.  */
                   10310: int foo (void) { return 0; }
                   10311: _ACEOF
                   10312: if ac_fn_c_try_link "$LINENO"; then :
                   10313:   lt_cv_irix_exported_symbol=yes
                   10314: else
                   10315:   lt_cv_irix_exported_symbol=no
                   10316: fi
                   10317: rm -f core conftest.err conftest.$ac_objext \
                   10318:     conftest$ac_exeext conftest.$ac_ext
                   10319:            LDFLAGS="$save_LDFLAGS"
                   10320: fi
                   10321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
                   10322: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
                   10323:        if test "$lt_cv_irix_exported_symbol" = yes; then
                   10324:           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'
                   10325:        fi
                   10326:       else
                   10327:        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'
                   10328:        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'
                   10329:       fi
                   10330:       archive_cmds_need_lc='no'
                   10331:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   10332:       hardcode_libdir_separator=:
                   10333:       inherit_rpath=yes
                   10334:       link_all_deplibs=yes
                   10335:       ;;
                   10336: 
                   10337:     netbsd*)
                   10338:       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
                   10339:        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
                   10340:       else
                   10341:        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
                   10342:       fi
                   10343:       hardcode_libdir_flag_spec='-R$libdir'
                   10344:       hardcode_direct=yes
                   10345:       hardcode_shlibpath_var=no
                   10346:       ;;
                   10347: 
                   10348:     newsos6)
                   10349:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   10350:       hardcode_direct=yes
                   10351:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   10352:       hardcode_libdir_separator=:
                   10353:       hardcode_shlibpath_var=no
                   10354:       ;;
                   10355: 
                   10356:     *nto* | *qnx*)
                   10357:       ;;
                   10358: 
                   10359:     openbsd*)
                   10360:       if test -f /usr/libexec/ld.so; then
                   10361:        hardcode_direct=yes
                   10362:        hardcode_shlibpath_var=no
                   10363:        hardcode_direct_absolute=yes
                   10364:        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   10365:          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   10366:          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
                   10367:          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   10368:          export_dynamic_flag_spec='${wl}-E'
                   10369:        else
                   10370:          case $host_os in
                   10371:           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
                   10372:             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   10373:             hardcode_libdir_flag_spec='-R$libdir'
                   10374:             ;;
                   10375:           *)
                   10376:             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   10377:             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   10378:             ;;
                   10379:          esac
                   10380:        fi
                   10381:       else
                   10382:        ld_shlibs=no
                   10383:       fi
                   10384:       ;;
                   10385: 
                   10386:     os2*)
                   10387:       hardcode_libdir_flag_spec='-L$libdir'
                   10388:       hardcode_minus_L=yes
                   10389:       allow_undefined_flag=unsupported
                   10390:       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
                   10391:       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
                   10392:       ;;
                   10393: 
                   10394:     osf3*)
                   10395:       if test "$GCC" = yes; then
                   10396:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   10397:        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'
                   10398:       else
                   10399:        allow_undefined_flag=' -expect_unresolved \*'
                   10400:        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'
                   10401:       fi
                   10402:       archive_cmds_need_lc='no'
                   10403:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   10404:       hardcode_libdir_separator=:
                   10405:       ;;
                   10406: 
                   10407:     osf4* | osf5*)     # as osf3* with the addition of -msym flag
                   10408:       if test "$GCC" = yes; then
                   10409:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   10410:        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'
                   10411:        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   10412:       else
                   10413:        allow_undefined_flag=' -expect_unresolved \*'
                   10414:        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'
                   10415:        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~
                   10416:        $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'
                   10417: 
                   10418:        # Both c and cxx compiler support -rpath directly
                   10419:        hardcode_libdir_flag_spec='-rpath $libdir'
                   10420:       fi
                   10421:       archive_cmds_need_lc='no'
                   10422:       hardcode_libdir_separator=:
                   10423:       ;;
                   10424: 
                   10425:     solaris*)
                   10426:       no_undefined_flag=' -z defs'
                   10427:       if test "$GCC" = yes; then
                   10428:        wlarc='${wl}'
                   10429:        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   10430:        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
                   10431:          $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'
                   10432:       else
                   10433:        case `$CC -V 2>&1` in
                   10434:        *"Compilers 5.0"*)
                   10435:          wlarc=''
                   10436:          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   10437:          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
                   10438:          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
                   10439:          ;;
                   10440:        *)
                   10441:          wlarc='${wl}'
                   10442:          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
                   10443:          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
                   10444:          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
                   10445:          ;;
                   10446:        esac
                   10447:       fi
                   10448:       hardcode_libdir_flag_spec='-R$libdir'
                   10449:       hardcode_shlibpath_var=no
                   10450:       case $host_os in
                   10451:       solaris2.[0-5] | solaris2.[0-5].*) ;;
                   10452:       *)
                   10453:        # The compiler driver will combine and reorder linker options,
                   10454:        # but understands `-z linker_flag'.  GCC discards it without `$wl',
                   10455:        # but is careful enough not to reorder.
                   10456:        # Supported since Solaris 2.6 (maybe 2.5.1?)
                   10457:        if test "$GCC" = yes; then
                   10458:          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
                   10459:        else
                   10460:          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
                   10461:        fi
                   10462:        ;;
                   10463:       esac
                   10464:       link_all_deplibs=yes
                   10465:       ;;
                   10466: 
                   10467:     sunos4*)
                   10468:       if test "x$host_vendor" = xsequent; then
                   10469:        # Use $CC to link under sequent, because it throws in some extra .o
                   10470:        # files that make .init and .fini sections work.
                   10471:        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
                   10472:       else
                   10473:        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
                   10474:       fi
                   10475:       hardcode_libdir_flag_spec='-L$libdir'
                   10476:       hardcode_direct=yes
                   10477:       hardcode_minus_L=yes
                   10478:       hardcode_shlibpath_var=no
                   10479:       ;;
                   10480: 
                   10481:     sysv4)
                   10482:       case $host_vendor in
                   10483:        sni)
                   10484:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   10485:          hardcode_direct=yes # is this really true???
                   10486:        ;;
                   10487:        siemens)
                   10488:          ## LD is ld it makes a PLAMLIB
                   10489:          ## CC just makes a GrossModule.
                   10490:          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
                   10491:          reload_cmds='$CC -r -o $output$reload_objs'
                   10492:          hardcode_direct=no
                   10493:         ;;
                   10494:        motorola)
                   10495:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   10496:          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
                   10497:        ;;
                   10498:       esac
                   10499:       runpath_var='LD_RUN_PATH'
                   10500:       hardcode_shlibpath_var=no
                   10501:       ;;
                   10502: 
                   10503:     sysv4.3*)
                   10504:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   10505:       hardcode_shlibpath_var=no
                   10506:       export_dynamic_flag_spec='-Bexport'
                   10507:       ;;
                   10508: 
                   10509:     sysv4*MP*)
                   10510:       if test -d /usr/nec; then
                   10511:        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   10512:        hardcode_shlibpath_var=no
                   10513:        runpath_var=LD_RUN_PATH
                   10514:        hardcode_runpath_var=yes
                   10515:        ld_shlibs=yes
                   10516:       fi
                   10517:       ;;
                   10518: 
                   10519:     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
                   10520:       no_undefined_flag='${wl}-z,text'
                   10521:       archive_cmds_need_lc=no
                   10522:       hardcode_shlibpath_var=no
                   10523:       runpath_var='LD_RUN_PATH'
                   10524: 
                   10525:       if test "$GCC" = yes; then
                   10526:        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   10527:        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   10528:       else
                   10529:        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   10530:        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   10531:       fi
                   10532:       ;;
                   10533: 
                   10534:     sysv5* | sco3.2v5* | sco5v6*)
                   10535:       # Note: We can NOT use -z defs as we might desire, because we do not
                   10536:       # link with -lc, and that would cause any symbols used from libc to
                   10537:       # always be unresolved, which means just about no library would
                   10538:       # ever link correctly.  If we're not using GNU ld we use -z text
                   10539:       # though, which does catch some bad symbols but isn't as heavy-handed
                   10540:       # as -z defs.
                   10541:       no_undefined_flag='${wl}-z,text'
                   10542:       allow_undefined_flag='${wl}-z,nodefs'
                   10543:       archive_cmds_need_lc=no
                   10544:       hardcode_shlibpath_var=no
                   10545:       hardcode_libdir_flag_spec='${wl}-R,$libdir'
                   10546:       hardcode_libdir_separator=':'
                   10547:       link_all_deplibs=yes
                   10548:       export_dynamic_flag_spec='${wl}-Bexport'
                   10549:       runpath_var='LD_RUN_PATH'
                   10550: 
                   10551:       if test "$GCC" = yes; then
                   10552:        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   10553:        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   10554:       else
                   10555:        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   10556:        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   10557:       fi
                   10558:       ;;
                   10559: 
                   10560:     uts4*)
                   10561:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   10562:       hardcode_libdir_flag_spec='-L$libdir'
                   10563:       hardcode_shlibpath_var=no
                   10564:       ;;
                   10565: 
                   10566:     *)
                   10567:       ld_shlibs=no
                   10568:       ;;
                   10569:     esac
                   10570: 
                   10571:     if test x$host_vendor = xsni; then
                   10572:       case $host in
                   10573:       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
                   10574:        export_dynamic_flag_spec='${wl}-Blargedynsym'
                   10575:        ;;
                   10576:       esac
                   10577:     fi
                   10578:   fi
                   10579: 
                   10580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
                   10581: $as_echo "$ld_shlibs" >&6; }
                   10582: test "$ld_shlibs" = no && can_build_shared=no
                   10583: 
                   10584: with_gnu_ld=$with_gnu_ld
                   10585: 
                   10586: 
                   10587: 
                   10588: 
                   10589: 
                   10590: 
                   10591: 
                   10592: 
                   10593: 
                   10594: 
                   10595: 
                   10596: 
                   10597: 
                   10598: 
                   10599: 
                   10600: #
                   10601: # Do we need to explicitly link libc?
                   10602: #
                   10603: case "x$archive_cmds_need_lc" in
                   10604: x|xyes)
                   10605:   # Assume -lc should be added
                   10606:   archive_cmds_need_lc=yes
                   10607: 
                   10608:   if test "$enable_shared" = yes && test "$GCC" = yes; then
                   10609:     case $archive_cmds in
                   10610:     *'~'*)
                   10611:       # FIXME: we may have to deal with multi-command sequences.
                   10612:       ;;
                   10613:     '$CC '*)
                   10614:       # Test whether the compiler implicitly links with -lc since on some
                   10615:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
                   10616:       # to ld, don't add -lc before -lgcc.
                   10617:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
                   10618: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
                   10619: if ${lt_cv_archive_cmds_need_lc+:} false; then :
                   10620:   $as_echo_n "(cached) " >&6
                   10621: else
                   10622:   $RM conftest*
                   10623:        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   10624: 
                   10625:        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   10626:   (eval $ac_compile) 2>&5
                   10627:   ac_status=$?
                   10628:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   10629:   test $ac_status = 0; } 2>conftest.err; then
                   10630:          soname=conftest
                   10631:          lib=conftest
                   10632:          libobjs=conftest.$ac_objext
                   10633:          deplibs=
                   10634:          wl=$lt_prog_compiler_wl
                   10635:          pic_flag=$lt_prog_compiler_pic
                   10636:          compiler_flags=-v
                   10637:          linker_flags=-v
                   10638:          verstring=
                   10639:          output_objdir=.
                   10640:          libname=conftest
                   10641:          lt_save_allow_undefined_flag=$allow_undefined_flag
                   10642:          allow_undefined_flag=
                   10643:          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
                   10644:   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
                   10645:   ac_status=$?
                   10646:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   10647:   test $ac_status = 0; }
                   10648:          then
                   10649:            lt_cv_archive_cmds_need_lc=no
                   10650:          else
                   10651:            lt_cv_archive_cmds_need_lc=yes
                   10652:          fi
                   10653:          allow_undefined_flag=$lt_save_allow_undefined_flag
                   10654:        else
                   10655:          cat conftest.err 1>&5
                   10656:        fi
                   10657:        $RM conftest*
                   10658: 
                   10659: fi
                   10660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
                   10661: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
                   10662:       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
                   10663:       ;;
                   10664:     esac
                   10665:   fi
                   10666:   ;;
                   10667: esac
                   10668: 
                   10669: 
                   10670: 
                   10671: 
                   10672: 
                   10673: 
                   10674: 
                   10675: 
                   10676: 
                   10677: 
                   10678: 
                   10679: 
                   10680: 
                   10681: 
                   10682: 
                   10683: 
                   10684: 
                   10685: 
                   10686: 
                   10687: 
                   10688: 
                   10689: 
                   10690: 
                   10691: 
                   10692: 
                   10693: 
                   10694: 
                   10695: 
                   10696: 
                   10697: 
                   10698: 
                   10699: 
                   10700: 
                   10701: 
                   10702: 
                   10703: 
                   10704: 
                   10705: 
                   10706: 
                   10707: 
                   10708: 
                   10709: 
                   10710: 
                   10711: 
                   10712: 
                   10713: 
                   10714: 
                   10715: 
                   10716: 
                   10717: 
                   10718: 
                   10719: 
                   10720: 
                   10721: 
                   10722: 
                   10723: 
                   10724: 
                   10725: 
                   10726: 
                   10727: 
                   10728: 
                   10729: 
                   10730: 
                   10731: 
                   10732: 
                   10733: 
                   10734: 
                   10735: 
                   10736: 
                   10737: 
                   10738: 
                   10739: 
                   10740: 
                   10741: 
                   10742: 
                   10743: 
                   10744: 
                   10745: 
                   10746: 
                   10747: 
                   10748: 
                   10749: 
                   10750: 
                   10751: 
                   10752: 
                   10753: 
                   10754: 
                   10755: 
                   10756: 
                   10757: 
                   10758: 
                   10759: 
                   10760: 
                   10761: 
                   10762: 
                   10763: 
                   10764: 
                   10765: 
                   10766: 
                   10767: 
                   10768: 
                   10769: 
                   10770: 
                   10771: 
                   10772: 
                   10773: 
                   10774: 
                   10775: 
                   10776: 
                   10777: 
                   10778: 
                   10779: 
                   10780: 
                   10781: 
                   10782: 
                   10783: 
                   10784: 
                   10785: 
                   10786: 
                   10787: 
                   10788: 
                   10789: 
                   10790: 
                   10791: 
                   10792: 
                   10793: 
                   10794: 
                   10795: 
                   10796: 
                   10797: 
                   10798: 
                   10799: 
                   10800: 
                   10801: 
                   10802: 
                   10803: 
                   10804: 
                   10805: 
                   10806: 
                   10807: 
                   10808: 
                   10809: 
                   10810: 
                   10811: 
                   10812: 
                   10813: 
                   10814: 
                   10815: 
                   10816: 
                   10817: 
                   10818: 
                   10819: 
                   10820:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
                   10821: $as_echo_n "checking dynamic linker characteristics... " >&6; }
                   10822: 
                   10823: if test "$GCC" = yes; then
                   10824:   case $host_os in
                   10825:     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
                   10826:     *) lt_awk_arg="/^libraries:/" ;;
                   10827:   esac
                   10828:   case $host_os in
                   10829:     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
                   10830:     *) lt_sed_strip_eq="s,=/,/,g" ;;
                   10831:   esac
                   10832:   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
                   10833:   case $lt_search_path_spec in
                   10834:   *\;*)
                   10835:     # if the path contains ";" then we assume it to be the separator
                   10836:     # otherwise default to the standard path separator (i.e. ":") - it is
                   10837:     # assumed that no part of a normal pathname contains ";" but that should
                   10838:     # okay in the real world where ";" in dirpaths is itself problematic.
                   10839:     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
                   10840:     ;;
                   10841:   *)
                   10842:     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
                   10843:     ;;
                   10844:   esac
                   10845:   # Ok, now we have the path, separated by spaces, we can step through it
                   10846:   # and add multilib dir if necessary.
                   10847:   lt_tmp_lt_search_path_spec=
                   10848:   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
                   10849:   for lt_sys_path in $lt_search_path_spec; do
                   10850:     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
                   10851:       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
                   10852:     else
                   10853:       test -d "$lt_sys_path" && \
                   10854:        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
                   10855:     fi
                   10856:   done
                   10857:   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
                   10858: BEGIN {RS=" "; FS="/|\n";} {
                   10859:   lt_foo="";
                   10860:   lt_count=0;
                   10861:   for (lt_i = NF; lt_i > 0; lt_i--) {
                   10862:     if ($lt_i != "" && $lt_i != ".") {
                   10863:       if ($lt_i == "..") {
                   10864:         lt_count++;
                   10865:       } else {
                   10866:         if (lt_count == 0) {
                   10867:           lt_foo="/" $lt_i lt_foo;
                   10868:         } else {
                   10869:           lt_count--;
                   10870:         }
                   10871:       }
                   10872:     }
                   10873:   }
                   10874:   if (lt_foo != "") { lt_freq[lt_foo]++; }
                   10875:   if (lt_freq[lt_foo] == 1) { print lt_foo; }
                   10876: }'`
                   10877:   # AWK program above erroneously prepends '/' to C:/dos/paths
                   10878:   # for these hosts.
                   10879:   case $host_os in
                   10880:     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
                   10881:       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
                   10882:   esac
                   10883:   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
                   10884: else
                   10885:   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
                   10886: fi
                   10887: library_names_spec=
                   10888: libname_spec='lib$name'
                   10889: soname_spec=
                   10890: shrext_cmds=".so"
                   10891: postinstall_cmds=
                   10892: postuninstall_cmds=
                   10893: finish_cmds=
                   10894: finish_eval=
                   10895: shlibpath_var=
                   10896: shlibpath_overrides_runpath=unknown
                   10897: version_type=none
                   10898: dynamic_linker="$host_os ld.so"
                   10899: sys_lib_dlsearch_path_spec="/lib /usr/lib"
                   10900: need_lib_prefix=unknown
                   10901: hardcode_into_libs=no
                   10902: 
                   10903: # when you set need_version to no, make sure it does not cause -set_version
                   10904: # flags to be left without arguments
                   10905: need_version=unknown
                   10906: 
                   10907: case $host_os in
                   10908: aix3*)
1.1.1.2   misho    10909:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    10910:   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
                   10911:   shlibpath_var=LIBPATH
                   10912: 
                   10913:   # AIX 3 has no versioning support, so we append a major version to the name.
                   10914:   soname_spec='${libname}${release}${shared_ext}$major'
                   10915:   ;;
                   10916: 
                   10917: aix[4-9]*)
1.1.1.2   misho    10918:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    10919:   need_lib_prefix=no
                   10920:   need_version=no
                   10921:   hardcode_into_libs=yes
                   10922:   if test "$host_cpu" = ia64; then
                   10923:     # AIX 5 supports IA64
                   10924:     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
                   10925:     shlibpath_var=LD_LIBRARY_PATH
                   10926:   else
                   10927:     # With GCC up to 2.95.x, collect2 would create an import file
                   10928:     # for dependence libraries.  The import file would start with
                   10929:     # the line `#! .'.  This would cause the generated library to
                   10930:     # depend on `.', always an invalid library.  This was fixed in
                   10931:     # development snapshots of GCC prior to 3.0.
                   10932:     case $host_os in
                   10933:       aix4 | aix4.[01] | aix4.[01].*)
                   10934:       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
                   10935:           echo ' yes '
                   10936:           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
                   10937:        :
                   10938:       else
                   10939:        can_build_shared=no
                   10940:       fi
                   10941:       ;;
                   10942:     esac
                   10943:     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
                   10944:     # soname into executable. Probably we can add versioning support to
                   10945:     # collect2, so additional links can be useful in future.
                   10946:     if test "$aix_use_runtimelinking" = yes; then
                   10947:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
                   10948:       # instead of lib<name>.a to let people know that these are not
                   10949:       # typical AIX shared libraries.
                   10950:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10951:     else
                   10952:       # We preserve .a as extension for shared libraries through AIX4.2
                   10953:       # and later when we are not doing run time linking.
                   10954:       library_names_spec='${libname}${release}.a $libname.a'
                   10955:       soname_spec='${libname}${release}${shared_ext}$major'
                   10956:     fi
                   10957:     shlibpath_var=LIBPATH
                   10958:   fi
                   10959:   ;;
                   10960: 
                   10961: amigaos*)
                   10962:   case $host_cpu in
                   10963:   powerpc)
                   10964:     # Since July 2007 AmigaOS4 officially supports .so libraries.
                   10965:     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
                   10966:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10967:     ;;
                   10968:   m68k)
                   10969:     library_names_spec='$libname.ixlibrary $libname.a'
                   10970:     # Create ${libname}_ixlibrary.a entries in /sys/libs.
                   10971:     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
                   10972:     ;;
                   10973:   esac
                   10974:   ;;
                   10975: 
                   10976: beos*)
                   10977:   library_names_spec='${libname}${shared_ext}'
                   10978:   dynamic_linker="$host_os ld.so"
                   10979:   shlibpath_var=LIBRARY_PATH
                   10980:   ;;
                   10981: 
                   10982: bsdi[45]*)
1.1.1.2   misho    10983:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    10984:   need_version=no
                   10985:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10986:   soname_spec='${libname}${release}${shared_ext}$major'
                   10987:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
                   10988:   shlibpath_var=LD_LIBRARY_PATH
                   10989:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
                   10990:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
                   10991:   # the default ld.so.conf also contains /usr/contrib/lib and
                   10992:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
                   10993:   # libtool to hard-code these into programs
                   10994:   ;;
                   10995: 
                   10996: cygwin* | mingw* | pw32* | cegcc*)
                   10997:   version_type=windows
                   10998:   shrext_cmds=".dll"
                   10999:   need_version=no
                   11000:   need_lib_prefix=no
                   11001: 
                   11002:   case $GCC,$cc_basename in
                   11003:   yes,*)
                   11004:     # gcc
                   11005:     library_names_spec='$libname.dll.a'
                   11006:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
                   11007:     postinstall_cmds='base_file=`basename \${file}`~
                   11008:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
                   11009:       dldir=$destdir/`dirname \$dlpath`~
                   11010:       test -d \$dldir || mkdir -p \$dldir~
                   11011:       $install_prog $dir/$dlname \$dldir/$dlname~
                   11012:       chmod a+x \$dldir/$dlname~
                   11013:       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
                   11014:         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
                   11015:       fi'
                   11016:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
                   11017:       dlpath=$dir/\$dldll~
                   11018:        $RM \$dlpath'
                   11019:     shlibpath_overrides_runpath=yes
                   11020: 
                   11021:     case $host_os in
                   11022:     cygwin*)
                   11023:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
                   11024:       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   11025: 
                   11026:       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
                   11027:       ;;
                   11028:     mingw* | cegcc*)
                   11029:       # MinGW DLLs use traditional 'lib' prefix
                   11030:       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   11031:       ;;
                   11032:     pw32*)
                   11033:       # pw32 DLLs use 'pw' prefix rather than 'lib'
                   11034:       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   11035:       ;;
                   11036:     esac
                   11037:     dynamic_linker='Win32 ld.exe'
                   11038:     ;;
                   11039: 
                   11040:   *,cl*)
                   11041:     # Native MSVC
                   11042:     libname_spec='$name'
                   11043:     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   11044:     library_names_spec='${libname}.dll.lib'
                   11045: 
                   11046:     case $build_os in
                   11047:     mingw*)
                   11048:       sys_lib_search_path_spec=
                   11049:       lt_save_ifs=$IFS
                   11050:       IFS=';'
                   11051:       for lt_path in $LIB
                   11052:       do
                   11053:         IFS=$lt_save_ifs
                   11054:         # Let DOS variable expansion print the short 8.3 style file name.
                   11055:         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
                   11056:         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
                   11057:       done
                   11058:       IFS=$lt_save_ifs
                   11059:       # Convert to MSYS style.
                   11060:       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
                   11061:       ;;
                   11062:     cygwin*)
                   11063:       # Convert to unix form, then to dos form, then back to unix form
                   11064:       # but this time dos style (no spaces!) so that the unix form looks
                   11065:       # like /cygdrive/c/PROGRA~1:/cygdr...
                   11066:       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
                   11067:       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
                   11068:       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
                   11069:       ;;
                   11070:     *)
                   11071:       sys_lib_search_path_spec="$LIB"
                   11072:       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
                   11073:         # It is most probably a Windows format PATH.
                   11074:         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
                   11075:       else
                   11076:         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
                   11077:       fi
                   11078:       # FIXME: find the short name or the path components, as spaces are
                   11079:       # common. (e.g. "Program Files" -> "PROGRA~1")
                   11080:       ;;
                   11081:     esac
                   11082: 
                   11083:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
                   11084:     postinstall_cmds='base_file=`basename \${file}`~
                   11085:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
                   11086:       dldir=$destdir/`dirname \$dlpath`~
                   11087:       test -d \$dldir || mkdir -p \$dldir~
                   11088:       $install_prog $dir/$dlname \$dldir/$dlname'
                   11089:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
                   11090:       dlpath=$dir/\$dldll~
                   11091:        $RM \$dlpath'
                   11092:     shlibpath_overrides_runpath=yes
                   11093:     dynamic_linker='Win32 link.exe'
                   11094:     ;;
                   11095: 
                   11096:   *)
                   11097:     # Assume MSVC wrapper
                   11098:     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
                   11099:     dynamic_linker='Win32 ld.exe'
                   11100:     ;;
                   11101:   esac
                   11102:   # FIXME: first we should search . and the directory the executable is in
                   11103:   shlibpath_var=PATH
                   11104:   ;;
                   11105: 
                   11106: darwin* | rhapsody*)
                   11107:   dynamic_linker="$host_os dyld"
                   11108:   version_type=darwin
                   11109:   need_lib_prefix=no
                   11110:   need_version=no
                   11111:   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
                   11112:   soname_spec='${libname}${release}${major}$shared_ext'
                   11113:   shlibpath_overrides_runpath=yes
                   11114:   shlibpath_var=DYLD_LIBRARY_PATH
                   11115:   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
                   11116: 
                   11117:   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
                   11118:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
                   11119:   ;;
                   11120: 
                   11121: dgux*)
1.1.1.2   misho    11122:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    11123:   need_lib_prefix=no
                   11124:   need_version=no
                   11125:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
                   11126:   soname_spec='${libname}${release}${shared_ext}$major'
                   11127:   shlibpath_var=LD_LIBRARY_PATH
                   11128:   ;;
                   11129: 
                   11130: freebsd* | dragonfly*)
                   11131:   # DragonFly does not have aout.  When/if they implement a new
                   11132:   # versioning mechanism, adjust this.
                   11133:   if test -x /usr/bin/objformat; then
                   11134:     objformat=`/usr/bin/objformat`
                   11135:   else
                   11136:     case $host_os in
1.1.1.2   misho    11137:     freebsd[23].*) objformat=aout ;;
1.1       misho    11138:     *) objformat=elf ;;
                   11139:     esac
                   11140:   fi
1.1.1.2   misho    11141:   # Handle Gentoo/FreeBSD as it was Linux
                   11142:   case $host_vendor in
                   11143:     gentoo)
                   11144:       version_type=linux ;;
                   11145:     *)
                   11146:       version_type=freebsd-$objformat ;;
                   11147:   esac
                   11148: 
1.1       misho    11149:   case $version_type in
                   11150:     freebsd-elf*)
                   11151:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   11152:       need_version=no
                   11153:       need_lib_prefix=no
                   11154:       ;;
                   11155:     freebsd-*)
                   11156:       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
                   11157:       need_version=yes
                   11158:       ;;
1.1.1.2   misho    11159:     linux)
                   11160:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   11161:       soname_spec='${libname}${release}${shared_ext}$major'
                   11162:       need_lib_prefix=no
                   11163:       need_version=no
                   11164:       ;;
1.1       misho    11165:   esac
                   11166:   shlibpath_var=LD_LIBRARY_PATH
                   11167:   case $host_os in
1.1.1.2   misho    11168:   freebsd2.*)
1.1       misho    11169:     shlibpath_overrides_runpath=yes
                   11170:     ;;
                   11171:   freebsd3.[01]* | freebsdelf3.[01]*)
                   11172:     shlibpath_overrides_runpath=yes
                   11173:     hardcode_into_libs=yes
                   11174:     ;;
                   11175:   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
                   11176:   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
                   11177:     shlibpath_overrides_runpath=no
                   11178:     hardcode_into_libs=yes
                   11179:     ;;
                   11180:   *) # from 4.6 on, and DragonFly
                   11181:     shlibpath_overrides_runpath=yes
                   11182:     hardcode_into_libs=yes
                   11183:     ;;
                   11184:   esac
                   11185:   ;;
                   11186: 
                   11187: gnu*)
1.1.1.2   misho    11188:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    11189:   need_lib_prefix=no
                   11190:   need_version=no
                   11191:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
                   11192:   soname_spec='${libname}${release}${shared_ext}$major'
                   11193:   shlibpath_var=LD_LIBRARY_PATH
1.1.1.2   misho    11194:   shlibpath_overrides_runpath=no
1.1       misho    11195:   hardcode_into_libs=yes
                   11196:   ;;
                   11197: 
                   11198: haiku*)
1.1.1.2   misho    11199:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    11200:   need_lib_prefix=no
                   11201:   need_version=no
                   11202:   dynamic_linker="$host_os runtime_loader"
                   11203:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
                   11204:   soname_spec='${libname}${release}${shared_ext}$major'
                   11205:   shlibpath_var=LIBRARY_PATH
                   11206:   shlibpath_overrides_runpath=yes
                   11207:   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
                   11208:   hardcode_into_libs=yes
                   11209:   ;;
                   11210: 
                   11211: hpux9* | hpux10* | hpux11*)
                   11212:   # Give a soname corresponding to the major version so that dld.sl refuses to
                   11213:   # link against other versions.
                   11214:   version_type=sunos
                   11215:   need_lib_prefix=no
                   11216:   need_version=no
                   11217:   case $host_cpu in
                   11218:   ia64*)
                   11219:     shrext_cmds='.so'
                   11220:     hardcode_into_libs=yes
                   11221:     dynamic_linker="$host_os dld.so"
                   11222:     shlibpath_var=LD_LIBRARY_PATH
                   11223:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   11224:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   11225:     soname_spec='${libname}${release}${shared_ext}$major'
                   11226:     if test "X$HPUX_IA64_MODE" = X32; then
                   11227:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
                   11228:     else
                   11229:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
                   11230:     fi
                   11231:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   11232:     ;;
                   11233:   hppa*64*)
                   11234:     shrext_cmds='.sl'
                   11235:     hardcode_into_libs=yes
                   11236:     dynamic_linker="$host_os dld.sl"
                   11237:     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
                   11238:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   11239:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   11240:     soname_spec='${libname}${release}${shared_ext}$major'
                   11241:     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
                   11242:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   11243:     ;;
                   11244:   *)
                   11245:     shrext_cmds='.sl'
                   11246:     dynamic_linker="$host_os dld.sl"
                   11247:     shlibpath_var=SHLIB_PATH
                   11248:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
                   11249:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   11250:     soname_spec='${libname}${release}${shared_ext}$major'
                   11251:     ;;
                   11252:   esac
                   11253:   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
                   11254:   postinstall_cmds='chmod 555 $lib'
                   11255:   # or fails outright, so override atomically:
                   11256:   install_override_mode=555
                   11257:   ;;
                   11258: 
                   11259: interix[3-9]*)
1.1.1.2   misho    11260:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    11261:   need_lib_prefix=no
                   11262:   need_version=no
                   11263:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   11264:   soname_spec='${libname}${release}${shared_ext}$major'
                   11265:   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
                   11266:   shlibpath_var=LD_LIBRARY_PATH
                   11267:   shlibpath_overrides_runpath=no
                   11268:   hardcode_into_libs=yes
                   11269:   ;;
                   11270: 
                   11271: irix5* | irix6* | nonstopux*)
                   11272:   case $host_os in
                   11273:     nonstopux*) version_type=nonstopux ;;
                   11274:     *)
                   11275:        if test "$lt_cv_prog_gnu_ld" = yes; then
1.1.1.2   misho    11276:                version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    11277:        else
                   11278:                version_type=irix
                   11279:        fi ;;
                   11280:   esac
                   11281:   need_lib_prefix=no
                   11282:   need_version=no
                   11283:   soname_spec='${libname}${release}${shared_ext}$major'
                   11284:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
                   11285:   case $host_os in
                   11286:   irix5* | nonstopux*)
                   11287:     libsuff= shlibsuff=
                   11288:     ;;
                   11289:   *)
                   11290:     case $LD in # libtool.m4 will add one of these switches to LD
                   11291:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
                   11292:       libsuff= shlibsuff= libmagic=32-bit;;
                   11293:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
                   11294:       libsuff=32 shlibsuff=N32 libmagic=N32;;
                   11295:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
                   11296:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
                   11297:     *) libsuff= shlibsuff= libmagic=never-match;;
                   11298:     esac
                   11299:     ;;
                   11300:   esac
                   11301:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
                   11302:   shlibpath_overrides_runpath=no
                   11303:   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
                   11304:   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
                   11305:   hardcode_into_libs=yes
                   11306:   ;;
                   11307: 
                   11308: # No shared lib support for Linux oldld, aout, or coff.
                   11309: linux*oldld* | linux*aout* | linux*coff*)
                   11310:   dynamic_linker=no
                   11311:   ;;
                   11312: 
1.1.1.2   misho    11313: # This must be glibc/ELF.
1.1       misho    11314: linux* | k*bsd*-gnu | kopensolaris*-gnu)
1.1.1.2   misho    11315:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    11316:   need_lib_prefix=no
                   11317:   need_version=no
                   11318:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   11319:   soname_spec='${libname}${release}${shared_ext}$major'
                   11320:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
                   11321:   shlibpath_var=LD_LIBRARY_PATH
                   11322:   shlibpath_overrides_runpath=no
                   11323: 
                   11324:   # Some binutils ld are patched to set DT_RUNPATH
                   11325:   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
                   11326:   $as_echo_n "(cached) " >&6
                   11327: else
                   11328:   lt_cv_shlibpath_overrides_runpath=no
                   11329:     save_LDFLAGS=$LDFLAGS
                   11330:     save_libdir=$libdir
                   11331:     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
                   11332:         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
                   11333:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11334: /* end confdefs.h.  */
                   11335: 
                   11336: int
                   11337: main ()
                   11338: {
                   11339: 
                   11340:   ;
                   11341:   return 0;
                   11342: }
                   11343: _ACEOF
                   11344: if ac_fn_c_try_link "$LINENO"; then :
                   11345:   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
                   11346:   lt_cv_shlibpath_overrides_runpath=yes
                   11347: fi
                   11348: fi
                   11349: rm -f core conftest.err conftest.$ac_objext \
                   11350:     conftest$ac_exeext conftest.$ac_ext
                   11351:     LDFLAGS=$save_LDFLAGS
                   11352:     libdir=$save_libdir
                   11353: 
                   11354: fi
                   11355: 
                   11356:   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
                   11357: 
                   11358:   # This implies no fast_install, which is unacceptable.
                   11359:   # Some rework will be needed to allow for fast_install
                   11360:   # before this can be enabled.
                   11361:   hardcode_into_libs=yes
                   11362: 
                   11363:   # Append ld.so.conf contents to the search path
                   11364:   if test -f /etc/ld.so.conf; then
                   11365:     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' ' '`
1.1.1.2   misho    11366:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1.1       misho    11367:   fi
                   11368: 
                   11369:   # We used to test for /lib/ld.so.1 and disable shared libraries on
                   11370:   # powerpc, because MkLinux only supported shared libraries with the
                   11371:   # GNU dynamic linker.  Since this was broken with cross compilers,
                   11372:   # most powerpc-linux boxes support dynamic linking these days and
                   11373:   # people can always --disable-shared, the test was removed, and we
                   11374:   # assume the GNU/Linux dynamic linker is in use.
                   11375:   dynamic_linker='GNU/Linux ld.so'
                   11376:   ;;
                   11377: 
                   11378: netbsd*)
                   11379:   version_type=sunos
                   11380:   need_lib_prefix=no
                   11381:   need_version=no
                   11382:   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
                   11383:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   11384:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   11385:     dynamic_linker='NetBSD (a.out) ld.so'
                   11386:   else
                   11387:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   11388:     soname_spec='${libname}${release}${shared_ext}$major'
                   11389:     dynamic_linker='NetBSD ld.elf_so'
                   11390:   fi
                   11391:   shlibpath_var=LD_LIBRARY_PATH
                   11392:   shlibpath_overrides_runpath=yes
                   11393:   hardcode_into_libs=yes
                   11394:   ;;
                   11395: 
                   11396: newsos6)
1.1.1.2   misho    11397:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    11398:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   11399:   shlibpath_var=LD_LIBRARY_PATH
                   11400:   shlibpath_overrides_runpath=yes
                   11401:   ;;
                   11402: 
                   11403: *nto* | *qnx*)
                   11404:   version_type=qnx
                   11405:   need_lib_prefix=no
                   11406:   need_version=no
                   11407:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   11408:   soname_spec='${libname}${release}${shared_ext}$major'
                   11409:   shlibpath_var=LD_LIBRARY_PATH
                   11410:   shlibpath_overrides_runpath=no
                   11411:   hardcode_into_libs=yes
                   11412:   dynamic_linker='ldqnx.so'
                   11413:   ;;
                   11414: 
                   11415: openbsd*)
                   11416:   version_type=sunos
                   11417:   sys_lib_dlsearch_path_spec="/usr/lib"
                   11418:   need_lib_prefix=no
                   11419:   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
                   11420:   case $host_os in
                   11421:     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
                   11422:     *)                         need_version=no  ;;
                   11423:   esac
                   11424:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   11425:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   11426:   shlibpath_var=LD_LIBRARY_PATH
                   11427:   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   11428:     case $host_os in
                   11429:       openbsd2.[89] | openbsd2.[89].*)
                   11430:        shlibpath_overrides_runpath=no
                   11431:        ;;
                   11432:       *)
                   11433:        shlibpath_overrides_runpath=yes
                   11434:        ;;
                   11435:       esac
                   11436:   else
                   11437:     shlibpath_overrides_runpath=yes
                   11438:   fi
                   11439:   ;;
                   11440: 
                   11441: os2*)
                   11442:   libname_spec='$name'
                   11443:   shrext_cmds=".dll"
                   11444:   need_lib_prefix=no
                   11445:   library_names_spec='$libname${shared_ext} $libname.a'
                   11446:   dynamic_linker='OS/2 ld.exe'
                   11447:   shlibpath_var=LIBPATH
                   11448:   ;;
                   11449: 
                   11450: osf3* | osf4* | osf5*)
                   11451:   version_type=osf
                   11452:   need_lib_prefix=no
                   11453:   need_version=no
                   11454:   soname_spec='${libname}${release}${shared_ext}$major'
                   11455:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   11456:   shlibpath_var=LD_LIBRARY_PATH
                   11457:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
                   11458:   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
                   11459:   ;;
                   11460: 
                   11461: rdos*)
                   11462:   dynamic_linker=no
                   11463:   ;;
                   11464: 
                   11465: solaris*)
1.1.1.2   misho    11466:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    11467:   need_lib_prefix=no
                   11468:   need_version=no
                   11469:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   11470:   soname_spec='${libname}${release}${shared_ext}$major'
                   11471:   shlibpath_var=LD_LIBRARY_PATH
                   11472:   shlibpath_overrides_runpath=yes
                   11473:   hardcode_into_libs=yes
                   11474:   # ldd complains unless libraries are executable
                   11475:   postinstall_cmds='chmod +x $lib'
                   11476:   ;;
                   11477: 
                   11478: sunos4*)
                   11479:   version_type=sunos
                   11480:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   11481:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
                   11482:   shlibpath_var=LD_LIBRARY_PATH
                   11483:   shlibpath_overrides_runpath=yes
                   11484:   if test "$with_gnu_ld" = yes; then
                   11485:     need_lib_prefix=no
                   11486:   fi
                   11487:   need_version=yes
                   11488:   ;;
                   11489: 
                   11490: sysv4 | sysv4.3*)
1.1.1.2   misho    11491:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    11492:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   11493:   soname_spec='${libname}${release}${shared_ext}$major'
                   11494:   shlibpath_var=LD_LIBRARY_PATH
                   11495:   case $host_vendor in
                   11496:     sni)
                   11497:       shlibpath_overrides_runpath=no
                   11498:       need_lib_prefix=no
                   11499:       runpath_var=LD_RUN_PATH
                   11500:       ;;
                   11501:     siemens)
                   11502:       need_lib_prefix=no
                   11503:       ;;
                   11504:     motorola)
                   11505:       need_lib_prefix=no
                   11506:       need_version=no
                   11507:       shlibpath_overrides_runpath=no
                   11508:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
                   11509:       ;;
                   11510:   esac
                   11511:   ;;
                   11512: 
                   11513: sysv4*MP*)
                   11514:   if test -d /usr/nec ;then
1.1.1.2   misho    11515:     version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    11516:     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
                   11517:     soname_spec='$libname${shared_ext}.$major'
                   11518:     shlibpath_var=LD_LIBRARY_PATH
                   11519:   fi
                   11520:   ;;
                   11521: 
                   11522: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
                   11523:   version_type=freebsd-elf
                   11524:   need_lib_prefix=no
                   11525:   need_version=no
                   11526:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   11527:   soname_spec='${libname}${release}${shared_ext}$major'
                   11528:   shlibpath_var=LD_LIBRARY_PATH
                   11529:   shlibpath_overrides_runpath=yes
                   11530:   hardcode_into_libs=yes
                   11531:   if test "$with_gnu_ld" = yes; then
                   11532:     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
                   11533:   else
                   11534:     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
                   11535:     case $host_os in
                   11536:       sco3.2v5*)
                   11537:         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
                   11538:        ;;
                   11539:     esac
                   11540:   fi
                   11541:   sys_lib_dlsearch_path_spec='/usr/lib'
                   11542:   ;;
                   11543: 
                   11544: tpf*)
                   11545:   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
1.1.1.2   misho    11546:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    11547:   need_lib_prefix=no
                   11548:   need_version=no
                   11549:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   11550:   shlibpath_var=LD_LIBRARY_PATH
                   11551:   shlibpath_overrides_runpath=no
                   11552:   hardcode_into_libs=yes
                   11553:   ;;
                   11554: 
                   11555: uts4*)
1.1.1.2   misho    11556:   version_type=linux # correct to gnu/linux during the next big refactor
1.1       misho    11557:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   11558:   soname_spec='${libname}${release}${shared_ext}$major'
                   11559:   shlibpath_var=LD_LIBRARY_PATH
                   11560:   ;;
                   11561: 
                   11562: *)
                   11563:   dynamic_linker=no
                   11564:   ;;
                   11565: esac
                   11566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
                   11567: $as_echo "$dynamic_linker" >&6; }
                   11568: test "$dynamic_linker" = no && can_build_shared=no
                   11569: 
                   11570: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
                   11571: if test "$GCC" = yes; then
                   11572:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
                   11573: fi
                   11574: 
                   11575: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
                   11576:   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
                   11577: fi
                   11578: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
                   11579:   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
                   11580: fi
                   11581: 
                   11582: 
                   11583: 
                   11584: 
                   11585: 
                   11586: 
                   11587: 
                   11588: 
                   11589: 
                   11590: 
                   11591: 
                   11592: 
                   11593: 
                   11594: 
                   11595: 
                   11596: 
                   11597: 
                   11598: 
                   11599: 
                   11600: 
                   11601: 
                   11602: 
                   11603: 
                   11604: 
                   11605: 
                   11606: 
                   11607: 
                   11608: 
                   11609: 
                   11610: 
                   11611: 
                   11612: 
                   11613: 
                   11614: 
                   11615: 
                   11616: 
                   11617: 
                   11618: 
                   11619: 
                   11620: 
                   11621: 
                   11622: 
                   11623: 
                   11624: 
                   11625: 
                   11626: 
                   11627: 
                   11628: 
                   11629: 
                   11630: 
                   11631: 
                   11632: 
                   11633: 
                   11634: 
                   11635: 
                   11636: 
                   11637: 
                   11638: 
                   11639: 
                   11640: 
                   11641: 
                   11642: 
                   11643: 
                   11644: 
                   11645: 
                   11646: 
                   11647: 
                   11648: 
                   11649: 
                   11650: 
                   11651: 
                   11652: 
                   11653: 
                   11654: 
                   11655: 
                   11656: 
                   11657: 
                   11658: 
                   11659: 
                   11660: 
                   11661: 
                   11662: 
                   11663: 
                   11664: 
                   11665: 
                   11666: 
                   11667: 
                   11668: 
                   11669: 
                   11670: 
                   11671: 
                   11672: 
                   11673:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
                   11674: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
                   11675: hardcode_action=
                   11676: if test -n "$hardcode_libdir_flag_spec" ||
                   11677:    test -n "$runpath_var" ||
                   11678:    test "X$hardcode_automatic" = "Xyes" ; then
                   11679: 
                   11680:   # We can hardcode non-existent directories.
                   11681:   if test "$hardcode_direct" != no &&
                   11682:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
                   11683:      # have to relink, otherwise we might link with an installed library
                   11684:      # when we should be linking with a yet-to-be-installed one
                   11685:      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
                   11686:      test "$hardcode_minus_L" != no; then
                   11687:     # Linking always hardcodes the temporary library directory.
                   11688:     hardcode_action=relink
                   11689:   else
                   11690:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
                   11691:     hardcode_action=immediate
                   11692:   fi
                   11693: else
                   11694:   # We cannot hardcode anything, or else we can only hardcode existing
                   11695:   # directories.
                   11696:   hardcode_action=unsupported
                   11697: fi
                   11698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
                   11699: $as_echo "$hardcode_action" >&6; }
                   11700: 
                   11701: if test "$hardcode_action" = relink ||
                   11702:    test "$inherit_rpath" = yes; then
                   11703:   # Fast installation is not supported
                   11704:   enable_fast_install=no
                   11705: elif test "$shlibpath_overrides_runpath" = yes ||
                   11706:      test "$enable_shared" = no; then
                   11707:   # Fast installation is not necessary
                   11708:   enable_fast_install=needless
                   11709: fi
                   11710: 
                   11711: 
                   11712: 
                   11713: 
                   11714: 
                   11715: 
                   11716:   if test "x$enable_dlopen" != xyes; then
                   11717:   enable_dlopen=unknown
                   11718:   enable_dlopen_self=unknown
                   11719:   enable_dlopen_self_static=unknown
                   11720: else
                   11721:   lt_cv_dlopen=no
                   11722:   lt_cv_dlopen_libs=
                   11723: 
                   11724:   case $host_os in
                   11725:   beos*)
                   11726:     lt_cv_dlopen="load_add_on"
                   11727:     lt_cv_dlopen_libs=
                   11728:     lt_cv_dlopen_self=yes
                   11729:     ;;
                   11730: 
                   11731:   mingw* | pw32* | cegcc*)
                   11732:     lt_cv_dlopen="LoadLibrary"
                   11733:     lt_cv_dlopen_libs=
                   11734:     ;;
                   11735: 
                   11736:   cygwin*)
                   11737:     lt_cv_dlopen="dlopen"
                   11738:     lt_cv_dlopen_libs=
                   11739:     ;;
                   11740: 
                   11741:   darwin*)
                   11742:   # if libdl is installed we need to link against it
                   11743:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   11744: $as_echo_n "checking for dlopen in -ldl... " >&6; }
                   11745: if ${ac_cv_lib_dl_dlopen+:} false; then :
                   11746:   $as_echo_n "(cached) " >&6
                   11747: else
                   11748:   ac_check_lib_save_LIBS=$LIBS
                   11749: LIBS="-ldl  $LIBS"
                   11750: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11751: /* end confdefs.h.  */
                   11752: 
                   11753: /* Override any GCC internal prototype to avoid an error.
                   11754:    Use char because int might match the return type of a GCC
                   11755:    builtin and then its argument prototype would still apply.  */
                   11756: #ifdef __cplusplus
                   11757: extern "C"
                   11758: #endif
                   11759: char dlopen ();
                   11760: int
                   11761: main ()
                   11762: {
                   11763: return dlopen ();
                   11764:   ;
                   11765:   return 0;
                   11766: }
                   11767: _ACEOF
                   11768: if ac_fn_c_try_link "$LINENO"; then :
                   11769:   ac_cv_lib_dl_dlopen=yes
                   11770: else
                   11771:   ac_cv_lib_dl_dlopen=no
                   11772: fi
                   11773: rm -f core conftest.err conftest.$ac_objext \
                   11774:     conftest$ac_exeext conftest.$ac_ext
                   11775: LIBS=$ac_check_lib_save_LIBS
                   11776: fi
                   11777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   11778: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
                   11779: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
                   11780:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
                   11781: else
                   11782: 
                   11783:     lt_cv_dlopen="dyld"
                   11784:     lt_cv_dlopen_libs=
                   11785:     lt_cv_dlopen_self=yes
                   11786: 
                   11787: fi
                   11788: 
                   11789:     ;;
                   11790: 
                   11791:   *)
                   11792:     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
                   11793: if test "x$ac_cv_func_shl_load" = xyes; then :
                   11794:   lt_cv_dlopen="shl_load"
                   11795: else
                   11796:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
                   11797: $as_echo_n "checking for shl_load in -ldld... " >&6; }
                   11798: if ${ac_cv_lib_dld_shl_load+:} false; then :
                   11799:   $as_echo_n "(cached) " >&6
                   11800: else
                   11801:   ac_check_lib_save_LIBS=$LIBS
                   11802: LIBS="-ldld  $LIBS"
                   11803: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11804: /* end confdefs.h.  */
                   11805: 
                   11806: /* Override any GCC internal prototype to avoid an error.
                   11807:    Use char because int might match the return type of a GCC
                   11808:    builtin and then its argument prototype would still apply.  */
                   11809: #ifdef __cplusplus
                   11810: extern "C"
                   11811: #endif
                   11812: char shl_load ();
                   11813: int
                   11814: main ()
                   11815: {
                   11816: return shl_load ();
                   11817:   ;
                   11818:   return 0;
                   11819: }
                   11820: _ACEOF
                   11821: if ac_fn_c_try_link "$LINENO"; then :
                   11822:   ac_cv_lib_dld_shl_load=yes
                   11823: else
                   11824:   ac_cv_lib_dld_shl_load=no
                   11825: fi
                   11826: rm -f core conftest.err conftest.$ac_objext \
                   11827:     conftest$ac_exeext conftest.$ac_ext
                   11828: LIBS=$ac_check_lib_save_LIBS
                   11829: fi
                   11830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
                   11831: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
                   11832: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
                   11833:   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
                   11834: else
                   11835:   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
                   11836: if test "x$ac_cv_func_dlopen" = xyes; then :
                   11837:   lt_cv_dlopen="dlopen"
                   11838: else
                   11839:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   11840: $as_echo_n "checking for dlopen in -ldl... " >&6; }
                   11841: if ${ac_cv_lib_dl_dlopen+:} false; then :
                   11842:   $as_echo_n "(cached) " >&6
                   11843: else
                   11844:   ac_check_lib_save_LIBS=$LIBS
                   11845: LIBS="-ldl  $LIBS"
                   11846: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11847: /* end confdefs.h.  */
                   11848: 
                   11849: /* Override any GCC internal prototype to avoid an error.
                   11850:    Use char because int might match the return type of a GCC
                   11851:    builtin and then its argument prototype would still apply.  */
                   11852: #ifdef __cplusplus
                   11853: extern "C"
                   11854: #endif
                   11855: char dlopen ();
                   11856: int
                   11857: main ()
                   11858: {
                   11859: return dlopen ();
                   11860:   ;
                   11861:   return 0;
                   11862: }
                   11863: _ACEOF
                   11864: if ac_fn_c_try_link "$LINENO"; then :
                   11865:   ac_cv_lib_dl_dlopen=yes
                   11866: else
                   11867:   ac_cv_lib_dl_dlopen=no
                   11868: fi
                   11869: rm -f core conftest.err conftest.$ac_objext \
                   11870:     conftest$ac_exeext conftest.$ac_ext
                   11871: LIBS=$ac_check_lib_save_LIBS
                   11872: fi
                   11873: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   11874: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
                   11875: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
                   11876:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
                   11877: else
                   11878:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
                   11879: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
                   11880: if ${ac_cv_lib_svld_dlopen+:} false; then :
                   11881:   $as_echo_n "(cached) " >&6
                   11882: else
                   11883:   ac_check_lib_save_LIBS=$LIBS
                   11884: LIBS="-lsvld  $LIBS"
                   11885: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11886: /* end confdefs.h.  */
                   11887: 
                   11888: /* Override any GCC internal prototype to avoid an error.
                   11889:    Use char because int might match the return type of a GCC
                   11890:    builtin and then its argument prototype would still apply.  */
                   11891: #ifdef __cplusplus
                   11892: extern "C"
                   11893: #endif
                   11894: char dlopen ();
                   11895: int
                   11896: main ()
                   11897: {
                   11898: return dlopen ();
                   11899:   ;
                   11900:   return 0;
                   11901: }
                   11902: _ACEOF
                   11903: if ac_fn_c_try_link "$LINENO"; then :
                   11904:   ac_cv_lib_svld_dlopen=yes
                   11905: else
                   11906:   ac_cv_lib_svld_dlopen=no
                   11907: fi
                   11908: rm -f core conftest.err conftest.$ac_objext \
                   11909:     conftest$ac_exeext conftest.$ac_ext
                   11910: LIBS=$ac_check_lib_save_LIBS
                   11911: fi
                   11912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
                   11913: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
                   11914: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
                   11915:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
                   11916: else
                   11917:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
                   11918: $as_echo_n "checking for dld_link in -ldld... " >&6; }
                   11919: if ${ac_cv_lib_dld_dld_link+:} false; then :
                   11920:   $as_echo_n "(cached) " >&6
                   11921: else
                   11922:   ac_check_lib_save_LIBS=$LIBS
                   11923: LIBS="-ldld  $LIBS"
                   11924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11925: /* end confdefs.h.  */
                   11926: 
                   11927: /* Override any GCC internal prototype to avoid an error.
                   11928:    Use char because int might match the return type of a GCC
                   11929:    builtin and then its argument prototype would still apply.  */
                   11930: #ifdef __cplusplus
                   11931: extern "C"
                   11932: #endif
                   11933: char dld_link ();
                   11934: int
                   11935: main ()
                   11936: {
                   11937: return dld_link ();
                   11938:   ;
                   11939:   return 0;
                   11940: }
                   11941: _ACEOF
                   11942: if ac_fn_c_try_link "$LINENO"; then :
                   11943:   ac_cv_lib_dld_dld_link=yes
                   11944: else
                   11945:   ac_cv_lib_dld_dld_link=no
                   11946: fi
                   11947: rm -f core conftest.err conftest.$ac_objext \
                   11948:     conftest$ac_exeext conftest.$ac_ext
                   11949: LIBS=$ac_check_lib_save_LIBS
                   11950: fi
                   11951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
                   11952: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
                   11953: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
                   11954:   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
                   11955: fi
                   11956: 
                   11957: 
                   11958: fi
                   11959: 
                   11960: 
                   11961: fi
                   11962: 
                   11963: 
                   11964: fi
                   11965: 
                   11966: 
                   11967: fi
                   11968: 
                   11969: 
                   11970: fi
                   11971: 
                   11972:     ;;
                   11973:   esac
                   11974: 
                   11975:   if test "x$lt_cv_dlopen" != xno; then
                   11976:     enable_dlopen=yes
                   11977:   else
                   11978:     enable_dlopen=no
                   11979:   fi
                   11980: 
                   11981:   case $lt_cv_dlopen in
                   11982:   dlopen)
                   11983:     save_CPPFLAGS="$CPPFLAGS"
                   11984:     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
                   11985: 
                   11986:     save_LDFLAGS="$LDFLAGS"
                   11987:     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
                   11988: 
                   11989:     save_LIBS="$LIBS"
                   11990:     LIBS="$lt_cv_dlopen_libs $LIBS"
                   11991: 
                   11992:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
                   11993: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
                   11994: if ${lt_cv_dlopen_self+:} false; then :
                   11995:   $as_echo_n "(cached) " >&6
                   11996: else
                   11997:          if test "$cross_compiling" = yes; then :
                   11998:   lt_cv_dlopen_self=cross
                   11999: else
                   12000:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   12001:   lt_status=$lt_dlunknown
                   12002:   cat > conftest.$ac_ext <<_LT_EOF
                   12003: #line $LINENO "configure"
                   12004: #include "confdefs.h"
                   12005: 
                   12006: #if HAVE_DLFCN_H
                   12007: #include <dlfcn.h>
                   12008: #endif
                   12009: 
                   12010: #include <stdio.h>
                   12011: 
                   12012: #ifdef RTLD_GLOBAL
                   12013: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   12014: #else
                   12015: #  ifdef DL_GLOBAL
                   12016: #    define LT_DLGLOBAL                DL_GLOBAL
                   12017: #  else
                   12018: #    define LT_DLGLOBAL                0
                   12019: #  endif
                   12020: #endif
                   12021: 
                   12022: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   12023:    find out it does not work in some platform. */
                   12024: #ifndef LT_DLLAZY_OR_NOW
                   12025: #  ifdef RTLD_LAZY
                   12026: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   12027: #  else
                   12028: #    ifdef DL_LAZY
                   12029: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   12030: #    else
                   12031: #      ifdef RTLD_NOW
                   12032: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   12033: #      else
                   12034: #        ifdef DL_NOW
                   12035: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   12036: #        else
                   12037: #          define LT_DLLAZY_OR_NOW     0
                   12038: #        endif
                   12039: #      endif
                   12040: #    endif
                   12041: #  endif
                   12042: #endif
                   12043: 
                   12044: /* When -fvisbility=hidden is used, assume the code has been annotated
                   12045:    correspondingly for the symbols needed.  */
                   12046: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
                   12047: int fnord () __attribute__((visibility("default")));
                   12048: #endif
                   12049: 
                   12050: int fnord () { return 42; }
                   12051: int main ()
                   12052: {
                   12053:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   12054:   int status = $lt_dlunknown;
                   12055: 
                   12056:   if (self)
                   12057:     {
                   12058:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   12059:       else
                   12060:         {
                   12061:          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
                   12062:           else puts (dlerror ());
                   12063:        }
                   12064:       /* dlclose (self); */
                   12065:     }
                   12066:   else
                   12067:     puts (dlerror ());
                   12068: 
                   12069:   return status;
                   12070: }
                   12071: _LT_EOF
                   12072:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   12073:   (eval $ac_link) 2>&5
                   12074:   ac_status=$?
                   12075:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   12076:   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
                   12077:     (./conftest; exit; ) >&5 2>/dev/null
                   12078:     lt_status=$?
                   12079:     case x$lt_status in
                   12080:       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
                   12081:       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
                   12082:       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
                   12083:     esac
                   12084:   else :
                   12085:     # compilation failed
                   12086:     lt_cv_dlopen_self=no
                   12087:   fi
                   12088: fi
                   12089: rm -fr conftest*
                   12090: 
                   12091: 
                   12092: fi
                   12093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
                   12094: $as_echo "$lt_cv_dlopen_self" >&6; }
                   12095: 
                   12096:     if test "x$lt_cv_dlopen_self" = xyes; then
                   12097:       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
                   12098:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
                   12099: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
                   12100: if ${lt_cv_dlopen_self_static+:} false; then :
                   12101:   $as_echo_n "(cached) " >&6
                   12102: else
                   12103:          if test "$cross_compiling" = yes; then :
                   12104:   lt_cv_dlopen_self_static=cross
                   12105: else
                   12106:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   12107:   lt_status=$lt_dlunknown
                   12108:   cat > conftest.$ac_ext <<_LT_EOF
                   12109: #line $LINENO "configure"
                   12110: #include "confdefs.h"
                   12111: 
                   12112: #if HAVE_DLFCN_H
                   12113: #include <dlfcn.h>
                   12114: #endif
                   12115: 
                   12116: #include <stdio.h>
                   12117: 
                   12118: #ifdef RTLD_GLOBAL
                   12119: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   12120: #else
                   12121: #  ifdef DL_GLOBAL
                   12122: #    define LT_DLGLOBAL                DL_GLOBAL
                   12123: #  else
                   12124: #    define LT_DLGLOBAL                0
                   12125: #  endif
                   12126: #endif
                   12127: 
                   12128: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   12129:    find out it does not work in some platform. */
                   12130: #ifndef LT_DLLAZY_OR_NOW
                   12131: #  ifdef RTLD_LAZY
                   12132: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   12133: #  else
                   12134: #    ifdef DL_LAZY
                   12135: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   12136: #    else
                   12137: #      ifdef RTLD_NOW
                   12138: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   12139: #      else
                   12140: #        ifdef DL_NOW
                   12141: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   12142: #        else
                   12143: #          define LT_DLLAZY_OR_NOW     0
                   12144: #        endif
                   12145: #      endif
                   12146: #    endif
                   12147: #  endif
                   12148: #endif
                   12149: 
                   12150: /* When -fvisbility=hidden is used, assume the code has been annotated
                   12151:    correspondingly for the symbols needed.  */
                   12152: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
                   12153: int fnord () __attribute__((visibility("default")));
                   12154: #endif
                   12155: 
                   12156: int fnord () { return 42; }
                   12157: int main ()
                   12158: {
                   12159:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   12160:   int status = $lt_dlunknown;
                   12161: 
                   12162:   if (self)
                   12163:     {
                   12164:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   12165:       else
                   12166:         {
                   12167:          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
                   12168:           else puts (dlerror ());
                   12169:        }
                   12170:       /* dlclose (self); */
                   12171:     }
                   12172:   else
                   12173:     puts (dlerror ());
                   12174: 
                   12175:   return status;
                   12176: }
                   12177: _LT_EOF
                   12178:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   12179:   (eval $ac_link) 2>&5
                   12180:   ac_status=$?
                   12181:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   12182:   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
                   12183:     (./conftest; exit; ) >&5 2>/dev/null
                   12184:     lt_status=$?
                   12185:     case x$lt_status in
                   12186:       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
                   12187:       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
                   12188:       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
                   12189:     esac
                   12190:   else :
                   12191:     # compilation failed
                   12192:     lt_cv_dlopen_self_static=no
                   12193:   fi
                   12194: fi
                   12195: rm -fr conftest*
                   12196: 
                   12197: 
                   12198: fi
                   12199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
                   12200: $as_echo "$lt_cv_dlopen_self_static" >&6; }
                   12201:     fi
                   12202: 
                   12203:     CPPFLAGS="$save_CPPFLAGS"
                   12204:     LDFLAGS="$save_LDFLAGS"
                   12205:     LIBS="$save_LIBS"
                   12206:     ;;
                   12207:   esac
                   12208: 
                   12209:   case $lt_cv_dlopen_self in
                   12210:   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
                   12211:   *) enable_dlopen_self=unknown ;;
                   12212:   esac
                   12213: 
                   12214:   case $lt_cv_dlopen_self_static in
                   12215:   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
                   12216:   *) enable_dlopen_self_static=unknown ;;
                   12217:   esac
                   12218: fi
                   12219: 
                   12220: 
                   12221: 
                   12222: 
                   12223: 
                   12224: 
                   12225: 
                   12226: 
                   12227: 
                   12228: 
                   12229: 
                   12230: 
                   12231: 
                   12232: 
                   12233: 
                   12234: 
                   12235: 
                   12236: striplib=
                   12237: old_striplib=
                   12238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
                   12239: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
                   12240: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
                   12241:   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
                   12242:   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
                   12243:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   12244: $as_echo "yes" >&6; }
                   12245: else
                   12246: # FIXME - insert some real tests, host_os isn't really good enough
                   12247:   case $host_os in
                   12248:   darwin*)
                   12249:     if test -n "$STRIP" ; then
                   12250:       striplib="$STRIP -x"
                   12251:       old_striplib="$STRIP -S"
                   12252:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   12253: $as_echo "yes" >&6; }
                   12254:     else
                   12255:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   12256: $as_echo "no" >&6; }
                   12257:     fi
                   12258:     ;;
                   12259:   *)
                   12260:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   12261: $as_echo "no" >&6; }
                   12262:     ;;
                   12263:   esac
                   12264: fi
                   12265: 
                   12266: 
                   12267: 
                   12268: 
                   12269: 
                   12270: 
                   12271: 
                   12272: 
                   12273: 
                   12274: 
                   12275: 
                   12276: 
                   12277:   # Report which library types will actually be built
                   12278:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
                   12279: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
                   12280:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
                   12281: $as_echo "$can_build_shared" >&6; }
                   12282: 
                   12283:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
                   12284: $as_echo_n "checking whether to build shared libraries... " >&6; }
                   12285:   test "$can_build_shared" = "no" && enable_shared=no
                   12286: 
                   12287:   # On AIX, shared libraries and static libraries use the same namespace, and
                   12288:   # are all built from PIC.
                   12289:   case $host_os in
                   12290:   aix3*)
                   12291:     test "$enable_shared" = yes && enable_static=no
                   12292:     if test -n "$RANLIB"; then
                   12293:       archive_cmds="$archive_cmds~\$RANLIB \$lib"
                   12294:       postinstall_cmds='$RANLIB $lib'
                   12295:     fi
                   12296:     ;;
                   12297: 
                   12298:   aix[4-9]*)
                   12299:     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
                   12300:       test "$enable_shared" = yes && enable_static=no
                   12301:     fi
                   12302:     ;;
                   12303:   esac
                   12304:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
                   12305: $as_echo "$enable_shared" >&6; }
                   12306: 
                   12307:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
                   12308: $as_echo_n "checking whether to build static libraries... " >&6; }
                   12309:   # Make sure either enable_shared or enable_static is yes.
                   12310:   test "$enable_shared" = yes || enable_static=yes
                   12311:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
                   12312: $as_echo "$enable_static" >&6; }
                   12313: 
                   12314: 
                   12315: 
                   12316: 
                   12317: fi
                   12318: ac_ext=c
                   12319: ac_cpp='$CPP $CPPFLAGS'
                   12320: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   12321: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   12322: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   12323: 
                   12324: CC="$lt_save_CC"
                   12325: 
                   12326: 
                   12327: 
                   12328: 
                   12329: 
                   12330: 
                   12331: 
                   12332: 
                   12333: 
                   12334: 
                   12335: 
                   12336: 
                   12337: 
1.1.1.2   misho    12338: 
                   12339: 
1.1       misho    12340:         ac_config_commands="$ac_config_commands libtool"
                   12341: 
                   12342: 
                   12343: 
                   12344: 
                   12345: # Only expand once:
                   12346: 
                   12347: 
                   12348: 
1.1.1.4 ! misho    12349: 
        !          12350: # Check whether --with-pkg-extra-version was given.
        !          12351: if test "${with_pkg_extra_version+set}" = set; then :
        !          12352:   withval=$with_pkg_extra_version; EXTRAVERSION=$withval
        !          12353: fi
        !          12354: 
        !          12355: 
        !          12356: # Check whether --with-pkg-git-version was given.
        !          12357: if test "${with_pkg_git_version+set}" = set; then :
        !          12358:   withval=$with_pkg_git_version;  test "x$withval" != "xno" && with_pkg_git_version="yes"
        !          12359: fi
        !          12360: 
1.1       misho    12361: # Check whether --enable-vtysh was given.
                   12362: if test "${enable_vtysh+set}" = set; then :
                   12363:   enableval=$enable_vtysh;
                   12364: fi
                   12365: 
                   12366: # Check whether --enable-ipv6 was given.
                   12367: if test "${enable_ipv6+set}" = set; then :
                   12368:   enableval=$enable_ipv6;
                   12369: fi
                   12370: 
                   12371: # Check whether --enable-doc was given.
                   12372: if test "${enable_doc+set}" = set; then :
                   12373:   enableval=$enable_doc;
                   12374: fi
                   12375: 
1.1.1.4 ! misho    12376: # Check whether --enable-tests was given.
        !          12377: if test "${enable_tests+set}" = set; then :
        !          12378:   enableval=$enable_tests;
        !          12379: fi
        !          12380: 
1.1       misho    12381: # Check whether --enable-zebra was given.
                   12382: if test "${enable_zebra+set}" = set; then :
                   12383:   enableval=$enable_zebra;
                   12384: fi
                   12385: 
                   12386: # Check whether --enable-bgpd was given.
                   12387: if test "${enable_bgpd+set}" = set; then :
                   12388:   enableval=$enable_bgpd;
                   12389: fi
                   12390: 
                   12391: # Check whether --enable-ripd was given.
                   12392: if test "${enable_ripd+set}" = set; then :
                   12393:   enableval=$enable_ripd;
                   12394: fi
                   12395: 
                   12396: # Check whether --enable-ripngd was given.
                   12397: if test "${enable_ripngd+set}" = set; then :
                   12398:   enableval=$enable_ripngd;
                   12399: fi
                   12400: 
                   12401: # Check whether --enable-ospfd was given.
                   12402: if test "${enable_ospfd+set}" = set; then :
                   12403:   enableval=$enable_ospfd;
                   12404: fi
                   12405: 
                   12406: # Check whether --enable-ospf6d was given.
                   12407: if test "${enable_ospf6d+set}" = set; then :
                   12408:   enableval=$enable_ospf6d;
                   12409: fi
                   12410: 
1.1.1.3   misho    12411: # Check whether --enable-babeld was given.
                   12412: if test "${enable_babeld+set}" = set; then :
                   12413:   enableval=$enable_babeld;
                   12414: fi
                   12415: 
1.1       misho    12416: # Check whether --enable-watchquagga was given.
                   12417: if test "${enable_watchquagga+set}" = set; then :
                   12418:   enableval=$enable_watchquagga;
                   12419: fi
                   12420: 
                   12421: # Check whether --enable-isisd was given.
                   12422: if test "${enable_isisd+set}" = set; then :
                   12423:   enableval=$enable_isisd;
                   12424: fi
                   12425: 
                   12426: # Check whether --enable-solaris was given.
                   12427: if test "${enable_solaris+set}" = set; then :
                   12428:   enableval=$enable_solaris;
                   12429: fi
                   12430: 
                   12431: # Check whether --enable-bgp-announce was given.
                   12432: if test "${enable_bgp_announce+set}" = set; then :
                   12433:   enableval=$enable_bgp_announce;
                   12434: fi
                   12435: 
                   12436: # Check whether --enable-netlink was given.
                   12437: if test "${enable_netlink+set}" = set; then :
                   12438:   enableval=$enable_netlink;
                   12439: fi
                   12440: 
                   12441: # Check whether --enable-broken-aliases was given.
                   12442: if test "${enable_broken_aliases+set}" = set; then :
                   12443:   enableval=$enable_broken_aliases;
                   12444: fi
                   12445: 
                   12446: # Check whether --enable-snmp was given.
                   12447: if test "${enable_snmp+set}" = set; then :
                   12448:   enableval=$enable_snmp;
                   12449: fi
                   12450: 
                   12451: 
                   12452: # Check whether --with-libpam was given.
                   12453: if test "${with_libpam+set}" = set; then :
                   12454:   withval=$with_libpam;
                   12455: fi
                   12456: 
                   12457: # Check whether --enable-tcp-zebra was given.
                   12458: if test "${enable_tcp_zebra+set}" = set; then :
                   12459:   enableval=$enable_tcp_zebra;
                   12460: fi
                   12461: 
                   12462: # Check whether --enable-opaque-lsa was given.
                   12463: if test "${enable_opaque_lsa+set}" = set; then :
                   12464:   enableval=$enable_opaque_lsa;
                   12465: fi
                   12466: 
                   12467: # Check whether --enable-ospfapi was given.
                   12468: if test "${enable_ospfapi+set}" = set; then :
                   12469:   enableval=$enable_ospfapi;
                   12470: fi
                   12471: 
                   12472: # Check whether --enable-ospfclient was given.
                   12473: if test "${enable_ospfclient+set}" = set; then :
                   12474:   enableval=$enable_ospfclient;
                   12475: fi
                   12476: 
                   12477: # Check whether --enable-ospf-te was given.
                   12478: if test "${enable_ospf_te+set}" = set; then :
                   12479:   enableval=$enable_ospf_te;
                   12480: fi
                   12481: 
                   12482: # Check whether --enable-multipath was given.
                   12483: if test "${enable_multipath+set}" = set; then :
                   12484:   enableval=$enable_multipath;
                   12485: fi
                   12486: 
                   12487: # Check whether --enable-user was given.
                   12488: if test "${enable_user+set}" = set; then :
                   12489:   enableval=$enable_user;
                   12490: fi
                   12491: 
                   12492: # Check whether --enable-group was given.
                   12493: if test "${enable_group+set}" = set; then :
                   12494:   enableval=$enable_group;
                   12495: fi
                   12496: 
                   12497: # Check whether --enable-vty_group was given.
                   12498: if test "${enable_vty_group+set}" = set; then :
                   12499:   enableval=$enable_vty_group;
                   12500: fi
                   12501: 
                   12502: # Check whether --enable-configfile_mask was given.
                   12503: if test "${enable_configfile_mask+set}" = set; then :
                   12504:   enableval=$enable_configfile_mask;
                   12505: fi
                   12506: 
                   12507: # Check whether --enable-logfile_mask was given.
                   12508: if test "${enable_logfile_mask+set}" = set; then :
                   12509:   enableval=$enable_logfile_mask;
                   12510: fi
                   12511: 
                   12512: 
                   12513: # Check whether --enable-rtadv was given.
                   12514: if test "${enable_rtadv+set}" = set; then :
                   12515:   enableval=$enable_rtadv;
                   12516: fi
                   12517: 
                   12518: # Check whether --enable-irdp was given.
                   12519: if test "${enable_irdp+set}" = set; then :
                   12520:   enableval=$enable_irdp;
                   12521: fi
                   12522: 
                   12523: # Check whether --enable-isis_topology was given.
                   12524: if test "${enable_isis_topology+set}" = set; then :
                   12525:   enableval=$enable_isis_topology;
                   12526: fi
                   12527: 
                   12528: # Check whether --enable-capabilities was given.
                   12529: if test "${enable_capabilities+set}" = set; then :
                   12530:   enableval=$enable_capabilities;
                   12531: fi
                   12532: 
1.1.1.4 ! misho    12533: # Check whether --enable-rusage was given.
        !          12534: if test "${enable_rusage+set}" = set; then :
        !          12535:   enableval=$enable_rusage;
        !          12536: fi
        !          12537: 
1.1       misho    12538: # Check whether --enable-gcc_ultra_verbose was given.
                   12539: if test "${enable_gcc_ultra_verbose+set}" = set; then :
                   12540:   enableval=$enable_gcc_ultra_verbose;
                   12541: fi
                   12542: 
                   12543: # Check whether --enable-linux24_tcp_md5 was given.
                   12544: if test "${enable_linux24_tcp_md5+set}" = set; then :
                   12545:   enableval=$enable_linux24_tcp_md5;
                   12546: fi
                   12547: 
                   12548: # Check whether --enable-gcc-rdynamic was given.
                   12549: if test "${enable_gcc_rdynamic+set}" = set; then :
                   12550:   enableval=$enable_gcc_rdynamic;
                   12551: fi
                   12552: 
                   12553: # Check whether --enable-time-check was given.
                   12554: if test "${enable_time_check+set}" = set; then :
                   12555:   enableval=$enable_time_check;
                   12556: fi
                   12557: 
                   12558: # Check whether --enable-pcreposix was given.
                   12559: if test "${enable_pcreposix+set}" = set; then :
                   12560:   enableval=$enable_pcreposix;
                   12561: fi
                   12562: 
1.1.1.4 ! misho    12563: # Check whether --enable-fpm was given.
        !          12564: if test "${enable_fpm+set}" = set; then :
        !          12565:   enableval=$enable_fpm;
        !          12566: fi
        !          12567: 
1.1       misho    12568: 
                   12569: if test x"${enable_gcc_ultra_verbose}" = x"yes" ; then
                   12570:   CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes"
                   12571:   CFLAGS="${CFLAGS} -Wmissing-declarations -Wmissing-noreturn"
                   12572:   CFLAGS="${CFLAGS} -Wmissing-format-attribute -Wunreachable-code"
                   12573:   CFLAGS="${CFLAGS} -Wpacked -Wpadded"
                   12574: fi
                   12575: 
                   12576: if test x"${enable_gcc_rdynamic}" = x"yes" ; then
                   12577:   LDFLAGS="${LDFLAGS} -rdynamic"
                   12578: fi
                   12579: 
                   12580: if test x"${enable_time_check}" != x"no" ; then
                   12581:   if test x"${enable_time_check}" = x"yes" -o x"${enable_time_check}" = x ; then
                   12582: 
                   12583: $as_echo "#define CONSUMED_TIME_CHECK 5000000" >>confdefs.h
                   12584: 
                   12585:   else
                   12586: 
                   12587: cat >>confdefs.h <<_ACEOF
                   12588: #define CONSUMED_TIME_CHECK $enable_time_check
                   12589: _ACEOF
                   12590: 
                   12591:   fi
                   12592: fi
                   12593: 
1.1.1.4 ! misho    12594: if test "${enable_fpm}" = "yes"; then
        !          12595: 
        !          12596: $as_echo "#define HAVE_FPM /**/" >>confdefs.h
        !          12597: 
        !          12598: fi
        !          12599: 
1.1       misho    12600: if test "${enable_broken_aliases}" = "yes"; then
                   12601:   if test "${enable_netlink}" = "yes"
                   12602:   then
                   12603:     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   12604: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   12605: as_fn_error $? "Sorry you can not use netlink with broken aliases
                   12606: See \`config.log' for more details" "$LINENO" 5; }
                   12607:   fi
                   12608: 
                   12609: $as_echo "#define HAVE_BROKEN_ALIASES /**/" >>confdefs.h
                   12610: 
                   12611:   enable_netlink=no
                   12612: fi
                   12613: 
                   12614: if test "${enable_tcp_zebra}" = "yes"; then
                   12615: 
                   12616: $as_echo "#define HAVE_TCP_ZEBRA /**/" >>confdefs.h
                   12617: 
                   12618: fi
                   12619: 
                   12620: if test "${enable_opaque_lsa}" != "no"; then
                   12621: 
                   12622: $as_echo "#define HAVE_OPAQUE_LSA /**/" >>confdefs.h
                   12623: 
                   12624: fi
                   12625: 
                   12626: if test "${enable_ospf_te}" != "no"; then
                   12627: 
                   12628: $as_echo "#define HAVE_OPAQUE_LSA /**/" >>confdefs.h
                   12629: 
                   12630: 
                   12631: $as_echo "#define HAVE_OSPF_TE /**/" >>confdefs.h
                   12632: 
                   12633: fi
                   12634: 
                   12635: if test "${enable_linux24_tcp_md5}" = "yes"; then
                   12636: 
                   12637: $as_echo "#define HAVE_TCP_MD5_LINUX24 /**/" >>confdefs.h
                   12638: 
                   12639: fi
                   12640: 
                   12641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if zebra should be configurable to send Route Advertisements" >&5
                   12642: $as_echo_n "checking if zebra should be configurable to send Route Advertisements... " >&6; }
                   12643: if test "${enable_rtadv}" != "no"; then
                   12644:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   12645: $as_echo "yes" >&6; }
                   12646: 
                   12647: $as_echo "#define HAVE_RTADV /**/" >>confdefs.h
                   12648: 
                   12649: else
                   12650:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   12651: $as_echo "no" >&6; }
                   12652: fi
                   12653: 
                   12654: if test "${enable_irdp}" = "yes"; then
                   12655: 
                   12656: $as_echo "#define HAVE_IRDP /**/" >>confdefs.h
                   12657: 
                   12658: fi
                   12659: 
                   12660: if test "${enable_isisd}" = "yes" && test "${enable_isis_topology}" = yes; then
                   12661: 
                   12662: $as_echo "#define TOPOLOGY_GENERATE /**/" >>confdefs.h
                   12663: 
1.1.1.4 ! misho    12664:   ISIS_TOPOLOGY_INCLUDES="-I\$(srcdir)/topology"
1.1       misho    12665:   ISIS_TOPOLOGY_DIR="topology"
                   12666:   ISIS_TOPOLOGY_LIB="./topology/libtopology.a"
                   12667: fi
                   12668: 
                   12669: 
                   12670: 
                   12671: 
                   12672: 
                   12673: if test "${enable_user}" = "yes" || test x"${enable_user}" = x""; then
                   12674:   enable_user="quagga"
                   12675: elif test "${enable_user}" = "no"; then
                   12676:   enable_user="root"
                   12677: fi
                   12678: 
                   12679: if test "${enable_group}" = "yes" || test x"${enable_group}" = x""; then
                   12680:   enable_group="quagga"
                   12681: elif test "${enable_group}" = "no"; then
                   12682:   enable_group="root"
                   12683: fi
                   12684: 
                   12685: if test x"${enable_vty_group}" = x"yes" ; then
                   12686:   as_fn_error $? "--enable-vty-group requires a group as argument, not yes" "$LINENO" 5
                   12687: elif test x"${enable_vty_group}" != x""; then
                   12688:   if test x"${enable_vty_group}" != x"no"; then
                   12689: 
                   12690: cat >>confdefs.h <<_ACEOF
                   12691: #define VTY_GROUP "${enable_vty_group}"
                   12692: _ACEOF
                   12693: 
                   12694:   fi
                   12695: fi
                   12696: 
                   12697: 
                   12698: 
                   12699: 
                   12700: cat >>confdefs.h <<_ACEOF
                   12701: #define QUAGGA_USER "${enable_user}"
                   12702: _ACEOF
                   12703: 
                   12704: 
                   12705: cat >>confdefs.h <<_ACEOF
                   12706: #define QUAGGA_GROUP "${enable_group}"
                   12707: _ACEOF
                   12708: 
                   12709: 
                   12710: enable_configfile_mask=${enable_configfile_mask:-0600}
                   12711: 
                   12712: cat >>confdefs.h <<_ACEOF
                   12713: #define CONFIGFILE_MASK ${enable_configfile_mask}
                   12714: _ACEOF
                   12715: 
                   12716: 
                   12717: enable_logfile_mask=${enable_logfile_mask:-0600}
                   12718: 
                   12719: cat >>confdefs.h <<_ACEOF
                   12720: #define LOGFILE_MASK ${enable_logfile_mask}
                   12721: _ACEOF
                   12722: 
                   12723: 
                   12724: MULTIPATH_NUM=1
                   12725: 
                   12726: case "${enable_multipath}" in
                   12727:   [0-9]|[1-9][0-9])
                   12728:     MULTIPATH_NUM="${enable_multipath}"
                   12729:     ;;
                   12730:   "")
                   12731:     ;;
                   12732:   *)
                   12733:     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   12734: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   12735: as_fn_error $? "Please specify digit to enable multipath ARG
                   12736: See \`config.log' for more details" "$LINENO" 5; }
                   12737:     ;;
                   12738: esac
                   12739: 
                   12740: 
                   12741: 
1.1.1.4 ! misho    12742: if test "x${EXTRAVERSION}" != "x" ; then
        !          12743:   VERSION="${VERSION}${EXTRAVERSION}"
        !          12744:   PACKAGE_VERSION="${PACKAGE_VERSION}${EXTRAVERSION}"
        !          12745:   PACKAGE_STRING="${PACKAGE_STRING}${EXTRAVERSION}"
        !          12746: fi
        !          12747: 
        !          12748: if test "x$with_pkg_git_version" = "xyes"; then
        !          12749:        if test -d "${srcdir}/.git"; then
        !          12750: 
        !          12751: $as_echo "#define GIT_VERSION 1" >>confdefs.h
        !          12752: 
        !          12753:        else    with_pkg_git_version="no"
        !          12754:                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pkg-git-version given, but this is not a git checkout" >&5
        !          12755: $as_echo "$as_me: WARNING: --with-pkg-git-version given, but this is not a git checkout" >&2;}
        !          12756:        fi
        !          12757: fi
        !          12758:  if test "x$with_pkg_git_version" = "xyes"; then
        !          12759:   GIT_VERSION_TRUE=
        !          12760:   GIT_VERSION_FALSE='#'
        !          12761: else
        !          12762:   GIT_VERSION_TRUE='#'
        !          12763:   GIT_VERSION_FALSE=
        !          12764: fi
        !          12765: 
        !          12766: 
1.1       misho    12767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   12768: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
                   12769: if ${ac_cv_c_const+:} false; then :
                   12770:   $as_echo_n "(cached) " >&6
                   12771: else
                   12772:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   12773: /* end confdefs.h.  */
                   12774: 
                   12775: int
                   12776: main ()
                   12777: {
1.1.1.3   misho    12778: 
1.1       misho    12779: #ifndef __cplusplus
1.1.1.3   misho    12780:   /* Ultrix mips cc rejects this sort of thing.  */
1.1       misho    12781:   typedef int charset[2];
1.1.1.3   misho    12782:   const charset cs = { 0, 0 };
1.1       misho    12783:   /* SunOS 4.1.1 cc rejects this.  */
                   12784:   char const *const *pcpcc;
                   12785:   char **ppc;
                   12786:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   12787:   struct point {int x, y;};
                   12788:   static struct point const zero = {0,0};
                   12789:   /* AIX XL C 1.02.0.0 rejects this.
                   12790:      It does not let you subtract one const X* pointer from another in
                   12791:      an arm of an if-expression whose if-part is not a constant
                   12792:      expression */
                   12793:   const char *g = "string";
                   12794:   pcpcc = &g + (g ? g-g : 0);
                   12795:   /* HPUX 7.0 cc rejects these. */
                   12796:   ++pcpcc;
                   12797:   ppc = (char**) pcpcc;
                   12798:   pcpcc = (char const *const *) ppc;
1.1.1.3   misho    12799:   { /* SCO 3.2v4 cc rejects this sort of thing.  */
                   12800:     char tx;
                   12801:     char *t = &tx;
1.1       misho    12802:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   12803: 
                   12804:     *t++ = 0;
                   12805:     if (s) return 0;
                   12806:   }
                   12807:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   12808:     int x[] = {25, 17};
                   12809:     const int *foo = &x[0];
                   12810:     ++foo;
                   12811:   }
                   12812:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   12813:     typedef const int *iptr;
                   12814:     iptr p = 0;
                   12815:     ++p;
                   12816:   }
1.1.1.3   misho    12817:   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
1.1       misho    12818:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1.1.1.3   misho    12819:     struct s { int j; const int *ap[3]; } bx;
                   12820:     struct s *b = &bx; b->j = 5;
1.1       misho    12821:   }
                   12822:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   12823:     const int foo = 10;
                   12824:     if (!foo) return 0;
                   12825:   }
                   12826:   return !cs[0] && !zero.x;
                   12827: #endif
                   12828: 
                   12829:   ;
                   12830:   return 0;
                   12831: }
                   12832: _ACEOF
                   12833: if ac_fn_c_try_compile "$LINENO"; then :
                   12834:   ac_cv_c_const=yes
                   12835: else
                   12836:   ac_cv_c_const=no
                   12837: fi
                   12838: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   12839: fi
                   12840: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   12841: $as_echo "$ac_cv_c_const" >&6; }
                   12842: if test $ac_cv_c_const = no; then
                   12843: 
                   12844: $as_echo "#define const /**/" >>confdefs.h
                   12845: 
                   12846: fi
                   12847: 
                   12848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
                   12849: $as_echo_n "checking for inline... " >&6; }
                   12850: if ${ac_cv_c_inline+:} false; then :
                   12851:   $as_echo_n "(cached) " >&6
                   12852: else
                   12853:   ac_cv_c_inline=no
                   12854: for ac_kw in inline __inline__ __inline; do
                   12855:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   12856: /* end confdefs.h.  */
                   12857: #ifndef __cplusplus
                   12858: typedef int foo_t;
                   12859: static $ac_kw foo_t static_foo () {return 0; }
                   12860: $ac_kw foo_t foo () {return 0; }
                   12861: #endif
                   12862: 
                   12863: _ACEOF
                   12864: if ac_fn_c_try_compile "$LINENO"; then :
                   12865:   ac_cv_c_inline=$ac_kw
                   12866: fi
                   12867: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   12868:   test "$ac_cv_c_inline" != no && break
                   12869: done
                   12870: 
                   12871: fi
                   12872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
                   12873: $as_echo "$ac_cv_c_inline" >&6; }
                   12874: 
                   12875: case $ac_cv_c_inline in
                   12876:   inline | yes) ;;
                   12877:   *)
                   12878:     case $ac_cv_c_inline in
                   12879:       no) ac_val=;;
                   12880:       *) ac_val=$ac_cv_c_inline;;
                   12881:     esac
                   12882:     cat >>confdefs.h <<_ACEOF
                   12883: #ifndef __cplusplus
                   12884: #define inline $ac_val
                   12885: #endif
                   12886: _ACEOF
                   12887:     ;;
                   12888: esac
                   12889: 
                   12890: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
                   12891: $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
                   12892: if ${ac_cv_c_restrict+:} false; then :
                   12893:   $as_echo_n "(cached) " >&6
                   12894: else
                   12895:   ac_cv_c_restrict=no
                   12896:    # The order here caters to the fact that C++ does not require restrict.
                   12897:    for ac_kw in __restrict __restrict__ _Restrict restrict; do
                   12898:      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   12899: /* end confdefs.h.  */
                   12900: typedef int * int_ptr;
                   12901:        int foo (int_ptr $ac_kw ip) {
                   12902:        return ip[0];
                   12903:        }
                   12904: int
                   12905: main ()
                   12906: {
                   12907: int s[1];
                   12908:        int * $ac_kw t = s;
                   12909:        t[0] = 0;
                   12910:        return foo(t)
                   12911:   ;
                   12912:   return 0;
                   12913: }
                   12914: _ACEOF
                   12915: if ac_fn_c_try_compile "$LINENO"; then :
                   12916:   ac_cv_c_restrict=$ac_kw
                   12917: fi
                   12918: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   12919:      test "$ac_cv_c_restrict" != no && break
                   12920:    done
                   12921: 
                   12922: fi
                   12923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
                   12924: $as_echo "$ac_cv_c_restrict" >&6; }
                   12925: 
                   12926:  case $ac_cv_c_restrict in
                   12927:    restrict) ;;
                   12928:    no) $as_echo "#define restrict /**/" >>confdefs.h
                   12929:  ;;
                   12930:    *)  cat >>confdefs.h <<_ACEOF
                   12931: #define restrict $ac_cv_c_restrict
                   12932: _ACEOF
                   12933:  ;;
                   12934:  esac
                   12935: 
                   12936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
                   12937: $as_echo_n "checking for working volatile... " >&6; }
                   12938: if ${ac_cv_c_volatile+:} false; then :
                   12939:   $as_echo_n "(cached) " >&6
                   12940: else
                   12941:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   12942: /* end confdefs.h.  */
                   12943: 
                   12944: int
                   12945: main ()
                   12946: {
                   12947: 
                   12948: volatile int x;
                   12949: int * volatile y = (int *) 0;
                   12950: return !x && !y;
                   12951:   ;
                   12952:   return 0;
                   12953: }
                   12954: _ACEOF
                   12955: if ac_fn_c_try_compile "$LINENO"; then :
                   12956:   ac_cv_c_volatile=yes
                   12957: else
                   12958:   ac_cv_c_volatile=no
                   12959: fi
                   12960: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   12961: fi
                   12962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
                   12963: $as_echo "$ac_cv_c_volatile" >&6; }
                   12964: if test $ac_cv_c_volatile = no; then
                   12965: 
                   12966: $as_echo "#define volatile /**/" >>confdefs.h
                   12967: 
                   12968: fi
                   12969: 
                   12970: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   12971: $as_echo_n "checking for ANSI C header files... " >&6; }
                   12972: if ${ac_cv_header_stdc+:} false; then :
                   12973:   $as_echo_n "(cached) " >&6
                   12974: else
                   12975:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   12976: /* end confdefs.h.  */
                   12977: #include <stdlib.h>
                   12978: #include <stdarg.h>
                   12979: #include <string.h>
                   12980: #include <float.h>
                   12981: 
                   12982: int
                   12983: main ()
                   12984: {
                   12985: 
                   12986:   ;
                   12987:   return 0;
                   12988: }
                   12989: _ACEOF
                   12990: if ac_fn_c_try_compile "$LINENO"; then :
                   12991:   ac_cv_header_stdc=yes
                   12992: else
                   12993:   ac_cv_header_stdc=no
                   12994: fi
                   12995: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   12996: 
                   12997: if test $ac_cv_header_stdc = yes; then
                   12998:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   12999:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13000: /* end confdefs.h.  */
                   13001: #include <string.h>
                   13002: 
                   13003: _ACEOF
                   13004: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13005:   $EGREP "memchr" >/dev/null 2>&1; then :
                   13006: 
                   13007: else
                   13008:   ac_cv_header_stdc=no
                   13009: fi
                   13010: rm -f conftest*
                   13011: 
                   13012: fi
                   13013: 
                   13014: if test $ac_cv_header_stdc = yes; then
                   13015:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   13016:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13017: /* end confdefs.h.  */
                   13018: #include <stdlib.h>
                   13019: 
                   13020: _ACEOF
                   13021: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13022:   $EGREP "free" >/dev/null 2>&1; then :
                   13023: 
                   13024: else
                   13025:   ac_cv_header_stdc=no
                   13026: fi
                   13027: rm -f conftest*
                   13028: 
                   13029: fi
                   13030: 
                   13031: if test $ac_cv_header_stdc = yes; then
                   13032:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   13033:   if test "$cross_compiling" = yes; then :
                   13034:   :
                   13035: else
                   13036:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13037: /* end confdefs.h.  */
                   13038: #include <ctype.h>
                   13039: #include <stdlib.h>
                   13040: #if ((' ' & 0x0FF) == 0x020)
                   13041: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   13042: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   13043: #else
                   13044: # define ISLOWER(c) \
                   13045:                   (('a' <= (c) && (c) <= 'i') \
                   13046:                     || ('j' <= (c) && (c) <= 'r') \
                   13047:                     || ('s' <= (c) && (c) <= 'z'))
                   13048: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   13049: #endif
                   13050: 
                   13051: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   13052: int
                   13053: main ()
                   13054: {
                   13055:   int i;
                   13056:   for (i = 0; i < 256; i++)
                   13057:     if (XOR (islower (i), ISLOWER (i))
                   13058:        || toupper (i) != TOUPPER (i))
                   13059:       return 2;
                   13060:   return 0;
                   13061: }
                   13062: _ACEOF
                   13063: if ac_fn_c_try_run "$LINENO"; then :
                   13064: 
                   13065: else
                   13066:   ac_cv_header_stdc=no
                   13067: fi
                   13068: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   13069:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   13070: fi
                   13071: 
                   13072: fi
                   13073: fi
                   13074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   13075: $as_echo "$ac_cv_header_stdc" >&6; }
                   13076: if test $ac_cv_header_stdc = yes; then
                   13077: 
                   13078: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
                   13079: 
                   13080: fi
                   13081: 
                   13082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   13083: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
                   13084: if ${ac_cv_header_time+:} false; then :
                   13085:   $as_echo_n "(cached) " >&6
                   13086: else
                   13087:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13088: /* end confdefs.h.  */
                   13089: #include <sys/types.h>
                   13090: #include <sys/time.h>
                   13091: #include <time.h>
                   13092: 
                   13093: int
                   13094: main ()
                   13095: {
                   13096: if ((struct tm *) 0)
                   13097: return 0;
                   13098:   ;
                   13099:   return 0;
                   13100: }
                   13101: _ACEOF
                   13102: if ac_fn_c_try_compile "$LINENO"; then :
                   13103:   ac_cv_header_time=yes
                   13104: else
                   13105:   ac_cv_header_time=no
                   13106: fi
                   13107: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   13108: fi
                   13109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   13110: $as_echo "$ac_cv_header_time" >&6; }
                   13111: if test $ac_cv_header_time = yes; then
                   13112: 
                   13113: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
                   13114: 
                   13115: fi
                   13116: 
                   13117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   13118: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
                   13119: if ${ac_cv_header_sys_wait_h+:} false; then :
                   13120:   $as_echo_n "(cached) " >&6
                   13121: else
                   13122:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13123: /* end confdefs.h.  */
                   13124: #include <sys/types.h>
                   13125: #include <sys/wait.h>
                   13126: #ifndef WEXITSTATUS
                   13127: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   13128: #endif
                   13129: #ifndef WIFEXITED
                   13130: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   13131: #endif
                   13132: 
                   13133: int
                   13134: main ()
                   13135: {
                   13136:   int s;
                   13137:   wait (&s);
                   13138:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
                   13139:   ;
                   13140:   return 0;
                   13141: }
                   13142: _ACEOF
                   13143: if ac_fn_c_try_compile "$LINENO"; then :
                   13144:   ac_cv_header_sys_wait_h=yes
                   13145: else
                   13146:   ac_cv_header_sys_wait_h=no
                   13147: fi
                   13148: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   13149: fi
                   13150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   13151: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   13152: if test $ac_cv_header_sys_wait_h = yes; then
                   13153: 
                   13154: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
                   13155: 
                   13156: fi
                   13157: 
                   13158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   13159: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
                   13160: if ${ac_cv_type_uid_t+:} false; then :
                   13161:   $as_echo_n "(cached) " >&6
                   13162: else
                   13163:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13164: /* end confdefs.h.  */
                   13165: #include <sys/types.h>
                   13166: 
                   13167: _ACEOF
                   13168: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13169:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   13170:   ac_cv_type_uid_t=yes
                   13171: else
                   13172:   ac_cv_type_uid_t=no
                   13173: fi
                   13174: rm -f conftest*
                   13175: 
                   13176: fi
                   13177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   13178: $as_echo "$ac_cv_type_uid_t" >&6; }
                   13179: if test $ac_cv_type_uid_t = no; then
                   13180: 
                   13181: $as_echo "#define uid_t int" >>confdefs.h
                   13182: 
                   13183: 
                   13184: $as_echo "#define gid_t int" >>confdefs.h
                   13185: 
                   13186: fi
                   13187: 
                   13188: ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
                   13189: if test "x$ac_cv_type_mode_t" = xyes; then :
                   13190: 
                   13191: else
                   13192: 
                   13193: cat >>confdefs.h <<_ACEOF
                   13194: #define mode_t int
                   13195: _ACEOF
                   13196: 
                   13197: fi
                   13198: 
                   13199: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   13200: if test "x$ac_cv_type_size_t" = xyes; then :
                   13201: 
                   13202: else
                   13203: 
                   13204: cat >>confdefs.h <<_ACEOF
                   13205: #define size_t unsigned int
                   13206: _ACEOF
                   13207: 
                   13208: fi
                   13209: 
                   13210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   13211: $as_echo_n "checking return type of signal handlers... " >&6; }
                   13212: if ${ac_cv_type_signal+:} false; then :
                   13213:   $as_echo_n "(cached) " >&6
                   13214: else
                   13215:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13216: /* end confdefs.h.  */
                   13217: #include <sys/types.h>
                   13218: #include <signal.h>
                   13219: 
                   13220: int
                   13221: main ()
                   13222: {
                   13223: return *(signal (0, 0)) (0) == 1;
                   13224:   ;
                   13225:   return 0;
                   13226: }
                   13227: _ACEOF
                   13228: if ac_fn_c_try_compile "$LINENO"; then :
                   13229:   ac_cv_type_signal=int
                   13230: else
                   13231:   ac_cv_type_signal=void
                   13232: fi
                   13233: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   13234: fi
                   13235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   13236: $as_echo "$ac_cv_type_signal" >&6; }
                   13237: 
                   13238: cat >>confdefs.h <<_ACEOF
                   13239: #define RETSIGTYPE $ac_cv_type_signal
                   13240: _ACEOF
                   13241: 
                   13242: 
                   13243: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   13244: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
                   13245: if ${ac_cv_struct_tm+:} false; then :
                   13246:   $as_echo_n "(cached) " >&6
                   13247: else
                   13248:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13249: /* end confdefs.h.  */
                   13250: #include <sys/types.h>
                   13251: #include <time.h>
                   13252: 
                   13253: int
                   13254: main ()
                   13255: {
                   13256: struct tm tm;
                   13257:                                     int *p = &tm.tm_sec;
                   13258:                                     return !p;
                   13259:   ;
                   13260:   return 0;
                   13261: }
                   13262: _ACEOF
                   13263: if ac_fn_c_try_compile "$LINENO"; then :
                   13264:   ac_cv_struct_tm=time.h
                   13265: else
                   13266:   ac_cv_struct_tm=sys/time.h
                   13267: fi
                   13268: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   13269: fi
                   13270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   13271: $as_echo "$ac_cv_struct_tm" >&6; }
                   13272: if test $ac_cv_struct_tm = sys/time.h; then
                   13273: 
                   13274: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
                   13275: 
                   13276: fi
                   13277: 
                   13278: 
                   13279: for ac_header in stropts.h sys/ksym.h sys/times.h sys/select.h \
                   13280:        sys/types.h linux/version.h netdb.h asm/types.h \
                   13281:        sys/param.h limits.h signal.h \
                   13282:        sys/socket.h netinet/in.h time.h sys/time.h
                   13283: do :
                   13284:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   13285: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   13286: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   13287:   cat >>confdefs.h <<_ACEOF
                   13288: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   13289: _ACEOF
                   13290: 
                   13291: fi
                   13292: 
                   13293: done
                   13294: 
                   13295: 
                   13296: 
                   13297: 
                   13298: for ac_header in net/if.h
                   13299: do :
                   13300:   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef SUNOS_5
                   13301: #define _XPG4_2
                   13302: #define __EXTENSIONS__
                   13303: #endif
                   13304: #include <stdio.h>
                   13305: #if STDC_HEADERS
                   13306: # include <stdlib.h>
                   13307: # include <stddef.h>
                   13308: #else
                   13309: # if HAVE_STDLIB_H
                   13310: #  include <stdlib.h>
                   13311: # endif
                   13312: #endif
                   13313: #if HAVE_SYS_TYPES_H
                   13314: # include <sys/types.h>
                   13315: #endif
                   13316: /* sys/conf.h depends on param.h on FBSD at least */
                   13317: #if HAVE_SYS_PARAM_H
                   13318: # include <sys/param.h>
                   13319: #endif
                   13320: /* Required for MAXSIG */
                   13321: #if HAVE_SIGNAL_H
                   13322: # include <signal.h>
                   13323: #endif
                   13324: #if HAVE_SYS_SOCKET_H
                   13325: # include <sys/socket.h>
                   13326: #endif
1.1.1.4 ! misho    13327: #ifdef __APPLE__
        !          13328: # define __APPLE_USE_RFC_3542
        !          13329: #endif
1.1       misho    13330: #if HAVE_NETINET_IN_H
                   13331: # include <netinet/in.h>
                   13332: #endif
                   13333: #ifdef TIME_WITH_SYS_TIME
                   13334: # include <sys/time.h>
                   13335: # include <time.h>
                   13336: #else
                   13337: # ifdef HAVE_SYS_TIME_H
                   13338: #  include <sys/time.h>
                   13339: # else
                   13340: #  include <time.h>
                   13341: # endif
                   13342: #endif /* TIME_WITH_SYS_TIME */
                   13343: 
                   13344: "
                   13345: if test "x$ac_cv_header_net_if_h" = xyes; then :
                   13346:   cat >>confdefs.h <<_ACEOF
                   13347: #define HAVE_NET_IF_H 1
                   13348: _ACEOF
                   13349: 
                   13350: fi
                   13351: 
                   13352: done
                   13353: 
                   13354: 
                   13355: 
                   13356: 
                   13357: for ac_header in net/if_var.h
                   13358: do :
                   13359:   ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "#ifdef SUNOS_5
                   13360: #define _XPG4_2
                   13361: #define __EXTENSIONS__
                   13362: #endif
                   13363: #include <stdio.h>
                   13364: #if STDC_HEADERS
                   13365: # include <stdlib.h>
                   13366: # include <stddef.h>
                   13367: #else
                   13368: # if HAVE_STDLIB_H
                   13369: #  include <stdlib.h>
                   13370: # endif
                   13371: #endif
                   13372: #if HAVE_SYS_TYPES_H
                   13373: # include <sys/types.h>
                   13374: #endif
                   13375: /* sys/conf.h depends on param.h on FBSD at least */
                   13376: #if HAVE_SYS_PARAM_H
                   13377: # include <sys/param.h>
                   13378: #endif
                   13379: /* Required for MAXSIG */
                   13380: #if HAVE_SIGNAL_H
                   13381: # include <signal.h>
                   13382: #endif
                   13383: #if HAVE_SYS_SOCKET_H
                   13384: # include <sys/socket.h>
                   13385: #endif
1.1.1.4 ! misho    13386: #ifdef __APPLE__
        !          13387: # define __APPLE_USE_RFC_3542
        !          13388: #endif
1.1       misho    13389: #if HAVE_NETINET_IN_H
                   13390: # include <netinet/in.h>
                   13391: #endif
                   13392: #ifdef TIME_WITH_SYS_TIME
                   13393: # include <sys/time.h>
                   13394: # include <time.h>
                   13395: #else
                   13396: # ifdef HAVE_SYS_TIME_H
                   13397: #  include <sys/time.h>
                   13398: # else
                   13399: #  include <time.h>
                   13400: # endif
                   13401: #endif /* TIME_WITH_SYS_TIME */
                   13402: 
                   13403: #if HAVE_NET_IF_H
                   13404: # include <net/if.h>
                   13405: #endif
                   13406: 
                   13407: "
                   13408: if test "x$ac_cv_header_net_if_var_h" = xyes; then :
                   13409:   cat >>confdefs.h <<_ACEOF
                   13410: #define HAVE_NET_IF_VAR_H 1
                   13411: _ACEOF
                   13412: 
                   13413: fi
                   13414: 
                   13415: done
                   13416: 
                   13417: 
                   13418: 
                   13419: for ac_header in sys/un.h netinet/in_systm.h netinet/in_var.h \
                   13420:        net/if_dl.h net/netopt.h net/route.h \
                   13421:        inet/nd.h arpa/inet.h netinet/ip_icmp.h \
                   13422:        fcntl.h stddef.h sys/ioctl.h syslog.h wchar.h wctype.h \
                   13423:        sys/sysctl.h sys/sockio.h kvm.h sys/conf.h
                   13424: do :
                   13425:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   13426: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef SUNOS_5
                   13427: #define _XPG4_2
                   13428: #define __EXTENSIONS__
                   13429: #endif
                   13430: #include <stdio.h>
                   13431: #if STDC_HEADERS
                   13432: # include <stdlib.h>
                   13433: # include <stddef.h>
                   13434: #else
                   13435: # if HAVE_STDLIB_H
                   13436: #  include <stdlib.h>
                   13437: # endif
                   13438: #endif
                   13439: #if HAVE_SYS_TYPES_H
                   13440: # include <sys/types.h>
                   13441: #endif
                   13442: /* sys/conf.h depends on param.h on FBSD at least */
                   13443: #if HAVE_SYS_PARAM_H
                   13444: # include <sys/param.h>
                   13445: #endif
                   13446: /* Required for MAXSIG */
                   13447: #if HAVE_SIGNAL_H
                   13448: # include <signal.h>
                   13449: #endif
                   13450: #if HAVE_SYS_SOCKET_H
                   13451: # include <sys/socket.h>
                   13452: #endif
1.1.1.4 ! misho    13453: #ifdef __APPLE__
        !          13454: # define __APPLE_USE_RFC_3542
        !          13455: #endif
1.1       misho    13456: #if HAVE_NETINET_IN_H
                   13457: # include <netinet/in.h>
                   13458: #endif
                   13459: #ifdef TIME_WITH_SYS_TIME
                   13460: # include <sys/time.h>
                   13461: # include <time.h>
                   13462: #else
                   13463: # ifdef HAVE_SYS_TIME_H
                   13464: #  include <sys/time.h>
                   13465: # else
                   13466: #  include <time.h>
                   13467: # endif
                   13468: #endif /* TIME_WITH_SYS_TIME */
                   13469: 
                   13470: #if HAVE_NET_IF_H
                   13471: # include <net/if.h>
                   13472: #endif
                   13473: 
                   13474: #if HAVE_NET_IF_VAR_H
                   13475: # include <net/if_var.h>
                   13476: #endif
                   13477: 
                   13478: "
                   13479: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   13480:   cat >>confdefs.h <<_ACEOF
                   13481: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   13482: _ACEOF
                   13483: 
                   13484: fi
                   13485: 
                   13486: done
                   13487: 
                   13488: 
                   13489: for ac_header in ucontext.h
                   13490: do :
                   13491:   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#ifndef __USE_GNU
                   13492: #define __USE_GNU
                   13493: #endif /* __USE_GNU */
                   13494: #ifdef SUNOS_5
                   13495: #define _XPG4_2
                   13496: #define __EXTENSIONS__
                   13497: #endif
                   13498: #include <stdio.h>
                   13499: #if STDC_HEADERS
                   13500: # include <stdlib.h>
                   13501: # include <stddef.h>
                   13502: #else
                   13503: # if HAVE_STDLIB_H
                   13504: #  include <stdlib.h>
                   13505: # endif
                   13506: #endif
                   13507: #if HAVE_SYS_TYPES_H
                   13508: # include <sys/types.h>
                   13509: #endif
                   13510: /* sys/conf.h depends on param.h on FBSD at least */
                   13511: #if HAVE_SYS_PARAM_H
                   13512: # include <sys/param.h>
                   13513: #endif
                   13514: /* Required for MAXSIG */
                   13515: #if HAVE_SIGNAL_H
                   13516: # include <signal.h>
                   13517: #endif
                   13518: #if HAVE_SYS_SOCKET_H
                   13519: # include <sys/socket.h>
                   13520: #endif
1.1.1.4 ! misho    13521: #ifdef __APPLE__
        !          13522: # define __APPLE_USE_RFC_3542
        !          13523: #endif
1.1       misho    13524: #if HAVE_NETINET_IN_H
                   13525: # include <netinet/in.h>
                   13526: #endif
                   13527: #ifdef TIME_WITH_SYS_TIME
                   13528: # include <sys/time.h>
                   13529: # include <time.h>
                   13530: #else
                   13531: # ifdef HAVE_SYS_TIME_H
                   13532: #  include <sys/time.h>
                   13533: # else
                   13534: #  include <time.h>
                   13535: # endif
                   13536: #endif /* TIME_WITH_SYS_TIME */
                   13537: 
                   13538: #if HAVE_NET_IF_H
                   13539: # include <net/if.h>
                   13540: #endif
                   13541: 
                   13542: #if HAVE_NET_IF_VAR_H
                   13543: # include <net/if_var.h>
                   13544: #endif
                   13545: 
                   13546: 
                   13547: "
                   13548: if test "x$ac_cv_header_ucontext_h" = xyes; then :
                   13549:   cat >>confdefs.h <<_ACEOF
                   13550: #define HAVE_UCONTEXT_H 1
                   13551: _ACEOF
                   13552: 
                   13553: fi
                   13554: 
                   13555: done
                   13556: 
                   13557: 
                   13558: 
                   13559: 
                   13560: case "$host" in
                   13561:   *-sunos5.[6-7]* | *-solaris2.[6-7]*)
                   13562:       opsys=sol2-6
                   13563: 
                   13564: $as_echo "#define SUNOS_56 1" >>confdefs.h
                   13565: 
                   13566: 
                   13567: $as_echo "#define SUNOS_5 1" >>confdefs.h
                   13568: 
                   13569:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
                   13570: $as_echo_n "checking for main in -lxnet... " >&6; }
                   13571: if ${ac_cv_lib_xnet_main+:} false; then :
                   13572:   $as_echo_n "(cached) " >&6
                   13573: else
                   13574:   ac_check_lib_save_LIBS=$LIBS
                   13575: LIBS="-lxnet  $LIBS"
                   13576: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13577: /* end confdefs.h.  */
                   13578: 
                   13579: 
                   13580: int
                   13581: main ()
                   13582: {
                   13583: return main ();
                   13584:   ;
                   13585:   return 0;
                   13586: }
                   13587: _ACEOF
                   13588: if ac_fn_c_try_link "$LINENO"; then :
                   13589:   ac_cv_lib_xnet_main=yes
                   13590: else
                   13591:   ac_cv_lib_xnet_main=no
                   13592: fi
                   13593: rm -f core conftest.err conftest.$ac_objext \
                   13594:     conftest$ac_exeext conftest.$ac_ext
                   13595: LIBS=$ac_check_lib_save_LIBS
                   13596: fi
                   13597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
                   13598: $as_echo "$ac_cv_lib_xnet_main" >&6; }
                   13599: if test "x$ac_cv_lib_xnet_main" = xyes; then :
                   13600:   cat >>confdefs.h <<_ACEOF
                   13601: #define HAVE_LIBXNET 1
                   13602: _ACEOF
                   13603: 
                   13604:   LIBS="-lxnet $LIBS"
                   13605: 
                   13606: fi
                   13607: 
                   13608:       CURSES=-lcurses
                   13609:   ;;
                   13610:   *-sunos5.[8-9] \
                   13611:   | *-sunos5.1[0-9] \
                   13612:   | *-sunos5.1[0-9].[0-9] \
                   13613:   | *-solaris2.[8-9] \
                   13614:   | *-solaris2.1[0-9] \
                   13615:   | *-solaris2.1[0-9].[0-9])
                   13616:       opsys=sol8
                   13617: 
                   13618: $as_echo "#define SUNOS_59 1" >>confdefs.h
                   13619: 
                   13620: 
                   13621: $as_echo "#define SUNOS_5 1" >>confdefs.h
                   13622: 
                   13623:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
                   13624: $as_echo_n "checking for main in -lsocket... " >&6; }
                   13625: if ${ac_cv_lib_socket_main+:} false; then :
                   13626:   $as_echo_n "(cached) " >&6
                   13627: else
                   13628:   ac_check_lib_save_LIBS=$LIBS
                   13629: LIBS="-lsocket  $LIBS"
                   13630: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13631: /* end confdefs.h.  */
                   13632: 
                   13633: 
                   13634: int
                   13635: main ()
                   13636: {
                   13637: return main ();
                   13638:   ;
                   13639:   return 0;
                   13640: }
                   13641: _ACEOF
                   13642: if ac_fn_c_try_link "$LINENO"; then :
                   13643:   ac_cv_lib_socket_main=yes
                   13644: else
                   13645:   ac_cv_lib_socket_main=no
                   13646: fi
                   13647: rm -f core conftest.err conftest.$ac_objext \
                   13648:     conftest$ac_exeext conftest.$ac_ext
                   13649: LIBS=$ac_check_lib_save_LIBS
                   13650: fi
                   13651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
                   13652: $as_echo "$ac_cv_lib_socket_main" >&6; }
                   13653: if test "x$ac_cv_lib_socket_main" = xyes; then :
                   13654:   cat >>confdefs.h <<_ACEOF
                   13655: #define HAVE_LIBSOCKET 1
                   13656: _ACEOF
                   13657: 
                   13658:   LIBS="-lsocket $LIBS"
                   13659: 
                   13660: fi
                   13661: 
                   13662:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
                   13663: $as_echo_n "checking for main in -lnsl... " >&6; }
                   13664: if ${ac_cv_lib_nsl_main+:} false; then :
                   13665:   $as_echo_n "(cached) " >&6
                   13666: else
                   13667:   ac_check_lib_save_LIBS=$LIBS
                   13668: LIBS="-lnsl  $LIBS"
                   13669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13670: /* end confdefs.h.  */
                   13671: 
                   13672: 
                   13673: int
                   13674: main ()
                   13675: {
                   13676: return main ();
                   13677:   ;
                   13678:   return 0;
                   13679: }
                   13680: _ACEOF
                   13681: if ac_fn_c_try_link "$LINENO"; then :
                   13682:   ac_cv_lib_nsl_main=yes
                   13683: else
                   13684:   ac_cv_lib_nsl_main=no
                   13685: fi
                   13686: rm -f core conftest.err conftest.$ac_objext \
                   13687:     conftest$ac_exeext conftest.$ac_ext
                   13688: LIBS=$ac_check_lib_save_LIBS
                   13689: fi
                   13690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
                   13691: $as_echo "$ac_cv_lib_nsl_main" >&6; }
                   13692: if test "x$ac_cv_lib_nsl_main" = xyes; then :
                   13693:   cat >>confdefs.h <<_ACEOF
                   13694: #define HAVE_LIBNSL 1
                   13695: _ACEOF
                   13696: 
                   13697:   LIBS="-lnsl $LIBS"
                   13698: 
                   13699: fi
                   13700: 
                   13701:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lumem" >&5
                   13702: $as_echo_n "checking for main in -lumem... " >&6; }
                   13703: if ${ac_cv_lib_umem_main+:} false; then :
                   13704:   $as_echo_n "(cached) " >&6
                   13705: else
                   13706:   ac_check_lib_save_LIBS=$LIBS
                   13707: LIBS="-lumem  $LIBS"
                   13708: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13709: /* end confdefs.h.  */
                   13710: 
                   13711: 
                   13712: int
                   13713: main ()
                   13714: {
                   13715: return main ();
                   13716:   ;
                   13717:   return 0;
                   13718: }
                   13719: _ACEOF
                   13720: if ac_fn_c_try_link "$LINENO"; then :
                   13721:   ac_cv_lib_umem_main=yes
                   13722: else
                   13723:   ac_cv_lib_umem_main=no
                   13724: fi
                   13725: rm -f core conftest.err conftest.$ac_objext \
                   13726:     conftest$ac_exeext conftest.$ac_ext
                   13727: LIBS=$ac_check_lib_save_LIBS
                   13728: fi
                   13729: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_main" >&5
                   13730: $as_echo "$ac_cv_lib_umem_main" >&6; }
                   13731: if test "x$ac_cv_lib_umem_main" = xyes; then :
                   13732:   cat >>confdefs.h <<_ACEOF
                   13733: #define HAVE_LIBUMEM 1
                   13734: _ACEOF
                   13735: 
                   13736:   LIBS="-lumem $LIBS"
                   13737: 
                   13738: fi
                   13739: 
                   13740:       for ac_func in printstack
                   13741: do :
                   13742:   ac_fn_c_check_func "$LINENO" "printstack" "ac_cv_func_printstack"
                   13743: if test "x$ac_cv_func_printstack" = xyes; then :
                   13744:   cat >>confdefs.h <<_ACEOF
                   13745: #define HAVE_PRINTSTACK 1
                   13746: _ACEOF
                   13747: 
                   13748: $as_echo "#define HAVE_PRINTSTACK 1" >>confdefs.h
                   13749: 
                   13750: 
                   13751: $as_echo "#define HAVE_STACK_TRACE 1" >>confdefs.h
                   13752: 
                   13753: 
                   13754: fi
                   13755: done
                   13756: 
                   13757:       CURSES=-lcurses
                   13758:   ;;
                   13759:   *-sunos5* | *-solaris2*)
                   13760: 
                   13761: $as_echo "#define SUNOS_5 /**/" >>confdefs.h
                   13762: 
                   13763:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
                   13764: $as_echo_n "checking for main in -lsocket... " >&6; }
                   13765: if ${ac_cv_lib_socket_main+:} false; then :
                   13766:   $as_echo_n "(cached) " >&6
                   13767: else
                   13768:   ac_check_lib_save_LIBS=$LIBS
                   13769: LIBS="-lsocket  $LIBS"
                   13770: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13771: /* end confdefs.h.  */
                   13772: 
                   13773: 
                   13774: int
                   13775: main ()
                   13776: {
                   13777: return main ();
                   13778:   ;
                   13779:   return 0;
                   13780: }
                   13781: _ACEOF
                   13782: if ac_fn_c_try_link "$LINENO"; then :
                   13783:   ac_cv_lib_socket_main=yes
                   13784: else
                   13785:   ac_cv_lib_socket_main=no
                   13786: fi
                   13787: rm -f core conftest.err conftest.$ac_objext \
                   13788:     conftest$ac_exeext conftest.$ac_ext
                   13789: LIBS=$ac_check_lib_save_LIBS
                   13790: fi
                   13791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
                   13792: $as_echo "$ac_cv_lib_socket_main" >&6; }
                   13793: if test "x$ac_cv_lib_socket_main" = xyes; then :
                   13794:   cat >>confdefs.h <<_ACEOF
                   13795: #define HAVE_LIBSOCKET 1
                   13796: _ACEOF
                   13797: 
                   13798:   LIBS="-lsocket $LIBS"
                   13799: 
                   13800: fi
                   13801: 
                   13802:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
                   13803: $as_echo_n "checking for main in -lnsl... " >&6; }
                   13804: if ${ac_cv_lib_nsl_main+:} false; then :
                   13805:   $as_echo_n "(cached) " >&6
                   13806: else
                   13807:   ac_check_lib_save_LIBS=$LIBS
                   13808: LIBS="-lnsl  $LIBS"
                   13809: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13810: /* end confdefs.h.  */
                   13811: 
                   13812: 
                   13813: int
                   13814: main ()
                   13815: {
                   13816: return main ();
                   13817:   ;
                   13818:   return 0;
                   13819: }
                   13820: _ACEOF
                   13821: if ac_fn_c_try_link "$LINENO"; then :
                   13822:   ac_cv_lib_nsl_main=yes
                   13823: else
                   13824:   ac_cv_lib_nsl_main=no
                   13825: fi
                   13826: rm -f core conftest.err conftest.$ac_objext \
                   13827:     conftest$ac_exeext conftest.$ac_ext
                   13828: LIBS=$ac_check_lib_save_LIBS
                   13829: fi
                   13830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
                   13831: $as_echo "$ac_cv_lib_nsl_main" >&6; }
                   13832: if test "x$ac_cv_lib_nsl_main" = xyes; then :
                   13833:   cat >>confdefs.h <<_ACEOF
                   13834: #define HAVE_LIBNSL 1
                   13835: _ACEOF
                   13836: 
                   13837:   LIBS="-lnsl $LIBS"
                   13838: 
                   13839: fi
                   13840: 
                   13841:       CURSES=-lcurses
                   13842:   ;;
                   13843:   *-linux*)
                   13844:       opsys=gnu-linux
                   13845: 
                   13846: $as_echo "#define GNU_LINUX /**/" >>confdefs.h
                   13847: 
                   13848:   ;;
                   13849:   *-nec-sysv4*)
                   13850:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   13851: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
                   13852: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
                   13853:   $as_echo_n "(cached) " >&6
                   13854: else
                   13855:   ac_check_lib_save_LIBS=$LIBS
                   13856: LIBS="-lnsl  $LIBS"
                   13857: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13858: /* end confdefs.h.  */
                   13859: 
                   13860: /* Override any GCC internal prototype to avoid an error.
                   13861:    Use char because int might match the return type of a GCC
                   13862:    builtin and then its argument prototype would still apply.  */
                   13863: #ifdef __cplusplus
                   13864: extern "C"
                   13865: #endif
                   13866: char gethostbyname ();
                   13867: int
                   13868: main ()
                   13869: {
                   13870: return gethostbyname ();
                   13871:   ;
                   13872:   return 0;
                   13873: }
                   13874: _ACEOF
                   13875: if ac_fn_c_try_link "$LINENO"; then :
                   13876:   ac_cv_lib_nsl_gethostbyname=yes
                   13877: else
                   13878:   ac_cv_lib_nsl_gethostbyname=no
                   13879: fi
                   13880: rm -f core conftest.err conftest.$ac_objext \
                   13881:     conftest$ac_exeext conftest.$ac_ext
                   13882: LIBS=$ac_check_lib_save_LIBS
                   13883: fi
                   13884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   13885: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
                   13886: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
                   13887:   cat >>confdefs.h <<_ACEOF
                   13888: #define HAVE_LIBNSL 1
                   13889: _ACEOF
                   13890: 
                   13891:   LIBS="-lnsl $LIBS"
                   13892: 
                   13893: fi
                   13894: 
                   13895:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
                   13896: $as_echo_n "checking for socket in -lsocket... " >&6; }
                   13897: if ${ac_cv_lib_socket_socket+:} false; then :
                   13898:   $as_echo_n "(cached) " >&6
                   13899: else
                   13900:   ac_check_lib_save_LIBS=$LIBS
                   13901: LIBS="-lsocket  $LIBS"
                   13902: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13903: /* end confdefs.h.  */
                   13904: 
                   13905: /* Override any GCC internal prototype to avoid an error.
                   13906:    Use char because int might match the return type of a GCC
                   13907:    builtin and then its argument prototype would still apply.  */
                   13908: #ifdef __cplusplus
                   13909: extern "C"
                   13910: #endif
                   13911: char socket ();
                   13912: int
                   13913: main ()
                   13914: {
                   13915: return socket ();
                   13916:   ;
                   13917:   return 0;
                   13918: }
                   13919: _ACEOF
                   13920: if ac_fn_c_try_link "$LINENO"; then :
                   13921:   ac_cv_lib_socket_socket=yes
                   13922: else
                   13923:   ac_cv_lib_socket_socket=no
                   13924: fi
                   13925: rm -f core conftest.err conftest.$ac_objext \
                   13926:     conftest$ac_exeext conftest.$ac_ext
                   13927: LIBS=$ac_check_lib_save_LIBS
                   13928: fi
                   13929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
                   13930: $as_echo "$ac_cv_lib_socket_socket" >&6; }
                   13931: if test "x$ac_cv_lib_socket_socket" = xyes; then :
                   13932:   cat >>confdefs.h <<_ACEOF
                   13933: #define HAVE_LIBSOCKET 1
                   13934: _ACEOF
                   13935: 
                   13936:   LIBS="-lsocket $LIBS"
                   13937: 
                   13938: fi
                   13939: 
                   13940:   ;;
                   13941:   *-openbsd*)
                   13942:       opsys=openbsd
                   13943: 
                   13944: $as_echo "#define OPEN_BSD /**/" >>confdefs.h
                   13945: 
                   13946:   ;;
                   13947:   *-bsdi*)
                   13948:       opsys=bsdi
                   13949:       OTHER_METHOD="mtu_kvm.o"
                   13950:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5
                   13951: $as_echo_n "checking for main in -lkvm... " >&6; }
                   13952: if ${ac_cv_lib_kvm_main+:} false; then :
                   13953:   $as_echo_n "(cached) " >&6
                   13954: else
                   13955:   ac_check_lib_save_LIBS=$LIBS
                   13956: LIBS="-lkvm  $LIBS"
                   13957: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   13958: /* end confdefs.h.  */
                   13959: 
                   13960: 
                   13961: int
                   13962: main ()
                   13963: {
                   13964: return main ();
                   13965:   ;
                   13966:   return 0;
                   13967: }
                   13968: _ACEOF
                   13969: if ac_fn_c_try_link "$LINENO"; then :
                   13970:   ac_cv_lib_kvm_main=yes
                   13971: else
                   13972:   ac_cv_lib_kvm_main=no
                   13973: fi
                   13974: rm -f core conftest.err conftest.$ac_objext \
                   13975:     conftest$ac_exeext conftest.$ac_ext
                   13976: LIBS=$ac_check_lib_save_LIBS
                   13977: fi
                   13978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5
                   13979: $as_echo "$ac_cv_lib_kvm_main" >&6; }
                   13980: if test "x$ac_cv_lib_kvm_main" = xyes; then :
                   13981:   cat >>confdefs.h <<_ACEOF
                   13982: #define HAVE_LIBKVM 1
                   13983: _ACEOF
                   13984: 
                   13985:   LIBS="-lkvm $LIBS"
                   13986: 
                   13987: fi
                   13988: 
                   13989:   ;;
                   13990:   *-irix6.5)
                   13991:       opsys=irix
                   13992: 
                   13993: $as_echo "#define IRIX_65 /**/" >>confdefs.h
                   13994: 
                   13995:   ;;
                   13996: esac
                   13997: 
                   13998: # Check whether --enable-largefile was given.
                   13999: if test "${enable_largefile+set}" = set; then :
                   14000:   enableval=$enable_largefile;
                   14001: fi
                   14002: 
                   14003: if test "$enable_largefile" != no; then
                   14004: 
                   14005:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
                   14006: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
                   14007: if ${ac_cv_sys_largefile_CC+:} false; then :
                   14008:   $as_echo_n "(cached) " >&6
                   14009: else
                   14010:   ac_cv_sys_largefile_CC=no
                   14011:      if test "$GCC" != yes; then
                   14012:        ac_save_CC=$CC
                   14013:        while :; do
                   14014:         # IRIX 6.2 and later do not support large files by default,
                   14015:         # so use the C compiler's -n32 option if that helps.
                   14016:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14017: /* end confdefs.h.  */
                   14018: #include <sys/types.h>
                   14019:  /* Check that off_t can represent 2**63 - 1 correctly.
                   14020:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   14021:     since some C++ compilers masquerading as C compilers
                   14022:     incorrectly reject 9223372036854775807.  */
                   14023: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
                   14024:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   14025:                       && LARGE_OFF_T % 2147483647 == 1)
                   14026:                      ? 1 : -1];
                   14027: int
                   14028: main ()
                   14029: {
                   14030: 
                   14031:   ;
                   14032:   return 0;
                   14033: }
                   14034: _ACEOF
                   14035:         if ac_fn_c_try_compile "$LINENO"; then :
                   14036:   break
                   14037: fi
                   14038: rm -f core conftest.err conftest.$ac_objext
                   14039:         CC="$CC -n32"
                   14040:         if ac_fn_c_try_compile "$LINENO"; then :
                   14041:   ac_cv_sys_largefile_CC=' -n32'; break
                   14042: fi
                   14043: rm -f core conftest.err conftest.$ac_objext
                   14044:         break
                   14045:        done
                   14046:        CC=$ac_save_CC
                   14047:        rm -f conftest.$ac_ext
                   14048:     fi
                   14049: fi
                   14050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
                   14051: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
                   14052:   if test "$ac_cv_sys_largefile_CC" != no; then
                   14053:     CC=$CC$ac_cv_sys_largefile_CC
                   14054:   fi
                   14055: 
                   14056:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
                   14057: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
                   14058: if ${ac_cv_sys_file_offset_bits+:} false; then :
                   14059:   $as_echo_n "(cached) " >&6
                   14060: else
                   14061:   while :; do
                   14062:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14063: /* end confdefs.h.  */
                   14064: #include <sys/types.h>
                   14065:  /* Check that off_t can represent 2**63 - 1 correctly.
                   14066:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   14067:     since some C++ compilers masquerading as C compilers
                   14068:     incorrectly reject 9223372036854775807.  */
                   14069: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
                   14070:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   14071:                       && LARGE_OFF_T % 2147483647 == 1)
                   14072:                      ? 1 : -1];
                   14073: int
                   14074: main ()
                   14075: {
                   14076: 
                   14077:   ;
                   14078:   return 0;
                   14079: }
                   14080: _ACEOF
                   14081: if ac_fn_c_try_compile "$LINENO"; then :
                   14082:   ac_cv_sys_file_offset_bits=no; break
                   14083: fi
                   14084: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14085:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14086: /* end confdefs.h.  */
                   14087: #define _FILE_OFFSET_BITS 64
                   14088: #include <sys/types.h>
                   14089:  /* Check that off_t can represent 2**63 - 1 correctly.
                   14090:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   14091:     since some C++ compilers masquerading as C compilers
                   14092:     incorrectly reject 9223372036854775807.  */
                   14093: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
                   14094:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   14095:                       && LARGE_OFF_T % 2147483647 == 1)
                   14096:                      ? 1 : -1];
                   14097: int
                   14098: main ()
                   14099: {
                   14100: 
                   14101:   ;
                   14102:   return 0;
                   14103: }
                   14104: _ACEOF
                   14105: if ac_fn_c_try_compile "$LINENO"; then :
                   14106:   ac_cv_sys_file_offset_bits=64; break
                   14107: fi
                   14108: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14109:   ac_cv_sys_file_offset_bits=unknown
                   14110:   break
                   14111: done
                   14112: fi
                   14113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
                   14114: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
                   14115: case $ac_cv_sys_file_offset_bits in #(
                   14116:   no | unknown) ;;
                   14117:   *)
                   14118: cat >>confdefs.h <<_ACEOF
                   14119: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
                   14120: _ACEOF
                   14121: ;;
                   14122: esac
                   14123: rm -rf conftest*
                   14124:   if test $ac_cv_sys_file_offset_bits = unknown; then
                   14125:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
                   14126: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
                   14127: if ${ac_cv_sys_large_files+:} false; then :
                   14128:   $as_echo_n "(cached) " >&6
                   14129: else
                   14130:   while :; do
                   14131:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14132: /* end confdefs.h.  */
                   14133: #include <sys/types.h>
                   14134:  /* Check that off_t can represent 2**63 - 1 correctly.
                   14135:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   14136:     since some C++ compilers masquerading as C compilers
                   14137:     incorrectly reject 9223372036854775807.  */
                   14138: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
                   14139:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   14140:                       && LARGE_OFF_T % 2147483647 == 1)
                   14141:                      ? 1 : -1];
                   14142: int
                   14143: main ()
                   14144: {
                   14145: 
                   14146:   ;
                   14147:   return 0;
                   14148: }
                   14149: _ACEOF
                   14150: if ac_fn_c_try_compile "$LINENO"; then :
                   14151:   ac_cv_sys_large_files=no; break
                   14152: fi
                   14153: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14154:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14155: /* end confdefs.h.  */
                   14156: #define _LARGE_FILES 1
                   14157: #include <sys/types.h>
                   14158:  /* Check that off_t can represent 2**63 - 1 correctly.
                   14159:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   14160:     since some C++ compilers masquerading as C compilers
                   14161:     incorrectly reject 9223372036854775807.  */
                   14162: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
                   14163:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   14164:                       && LARGE_OFF_T % 2147483647 == 1)
                   14165:                      ? 1 : -1];
                   14166: int
                   14167: main ()
                   14168: {
                   14169: 
                   14170:   ;
                   14171:   return 0;
                   14172: }
                   14173: _ACEOF
                   14174: if ac_fn_c_try_compile "$LINENO"; then :
                   14175:   ac_cv_sys_large_files=1; break
                   14176: fi
                   14177: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14178:   ac_cv_sys_large_files=unknown
                   14179:   break
                   14180: done
                   14181: fi
                   14182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
                   14183: $as_echo "$ac_cv_sys_large_files" >&6; }
                   14184: case $ac_cv_sys_large_files in #(
                   14185:   no | unknown) ;;
                   14186:   *)
                   14187: cat >>confdefs.h <<_ACEOF
                   14188: #define _LARGE_FILES $ac_cv_sys_large_files
                   14189: _ACEOF
                   14190: ;;
                   14191: esac
                   14192: rm -rf conftest*
                   14193:   fi
1.1.1.3   misho    14194: 
                   14195: 
1.1       misho    14196: fi
                   14197: 
                   14198: 
                   14199: case "${enable_vtysh}" in
                   14200:   "yes") VTYSH="vtysh";
                   14201: 
                   14202: $as_echo "#define VTYSH /**/" >>confdefs.h
                   14203: 
                   14204:         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -ltermcap" >&5
                   14205: $as_echo_n "checking for tputs in -ltermcap... " >&6; }
                   14206: if ${ac_cv_lib_termcap_tputs+:} false; then :
                   14207:   $as_echo_n "(cached) " >&6
                   14208: else
                   14209:   ac_check_lib_save_LIBS=$LIBS
                   14210: LIBS="-ltermcap  $LIBS"
                   14211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14212: /* end confdefs.h.  */
                   14213: 
                   14214: /* Override any GCC internal prototype to avoid an error.
                   14215:    Use char because int might match the return type of a GCC
                   14216:    builtin and then its argument prototype would still apply.  */
                   14217: #ifdef __cplusplus
                   14218: extern "C"
                   14219: #endif
                   14220: char tputs ();
                   14221: int
                   14222: main ()
                   14223: {
                   14224: return tputs ();
                   14225:   ;
                   14226:   return 0;
                   14227: }
                   14228: _ACEOF
                   14229: if ac_fn_c_try_link "$LINENO"; then :
                   14230:   ac_cv_lib_termcap_tputs=yes
                   14231: else
                   14232:   ac_cv_lib_termcap_tputs=no
                   14233: fi
                   14234: rm -f core conftest.err conftest.$ac_objext \
                   14235:     conftest$ac_exeext conftest.$ac_ext
                   14236: LIBS=$ac_check_lib_save_LIBS
                   14237: fi
                   14238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tputs" >&5
                   14239: $as_echo "$ac_cv_lib_termcap_tputs" >&6; }
                   14240: if test "x$ac_cv_lib_termcap_tputs" = xyes; then :
                   14241:   LIBREADLINE="$LIBREADLINE -ltermcap"
                   14242: else
                   14243:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -ltinfo" >&5
                   14244: $as_echo_n "checking for tputs in -ltinfo... " >&6; }
                   14245: if ${ac_cv_lib_tinfo_tputs+:} false; then :
                   14246:   $as_echo_n "(cached) " >&6
                   14247: else
                   14248:   ac_check_lib_save_LIBS=$LIBS
                   14249: LIBS="-ltinfo  $LIBS"
                   14250: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14251: /* end confdefs.h.  */
                   14252: 
                   14253: /* Override any GCC internal prototype to avoid an error.
                   14254:    Use char because int might match the return type of a GCC
                   14255:    builtin and then its argument prototype would still apply.  */
                   14256: #ifdef __cplusplus
                   14257: extern "C"
                   14258: #endif
                   14259: char tputs ();
                   14260: int
                   14261: main ()
                   14262: {
                   14263: return tputs ();
                   14264:   ;
                   14265:   return 0;
                   14266: }
                   14267: _ACEOF
                   14268: if ac_fn_c_try_link "$LINENO"; then :
                   14269:   ac_cv_lib_tinfo_tputs=yes
                   14270: else
                   14271:   ac_cv_lib_tinfo_tputs=no
                   14272: fi
                   14273: rm -f core conftest.err conftest.$ac_objext \
                   14274:     conftest$ac_exeext conftest.$ac_ext
                   14275: LIBS=$ac_check_lib_save_LIBS
                   14276: fi
                   14277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tputs" >&5
                   14278: $as_echo "$ac_cv_lib_tinfo_tputs" >&6; }
                   14279: if test "x$ac_cv_lib_tinfo_tputs" = xyes; then :
                   14280:   LIBREADLINE="$LIBREADLINE -ltinfo"
                   14281: else
                   14282:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
                   14283: $as_echo_n "checking for tputs in -lcurses... " >&6; }
                   14284: if ${ac_cv_lib_curses_tputs+:} false; then :
                   14285:   $as_echo_n "(cached) " >&6
                   14286: else
                   14287:   ac_check_lib_save_LIBS=$LIBS
                   14288: LIBS="-lcurses  $LIBS"
                   14289: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14290: /* end confdefs.h.  */
                   14291: 
                   14292: /* Override any GCC internal prototype to avoid an error.
                   14293:    Use char because int might match the return type of a GCC
                   14294:    builtin and then its argument prototype would still apply.  */
                   14295: #ifdef __cplusplus
                   14296: extern "C"
                   14297: #endif
                   14298: char tputs ();
                   14299: int
                   14300: main ()
                   14301: {
                   14302: return tputs ();
                   14303:   ;
                   14304:   return 0;
                   14305: }
                   14306: _ACEOF
                   14307: if ac_fn_c_try_link "$LINENO"; then :
                   14308:   ac_cv_lib_curses_tputs=yes
                   14309: else
                   14310:   ac_cv_lib_curses_tputs=no
                   14311: fi
                   14312: rm -f core conftest.err conftest.$ac_objext \
                   14313:     conftest$ac_exeext conftest.$ac_ext
                   14314: LIBS=$ac_check_lib_save_LIBS
                   14315: fi
                   14316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
                   14317: $as_echo "$ac_cv_lib_curses_tputs" >&6; }
                   14318: if test "x$ac_cv_lib_curses_tputs" = xyes; then :
                   14319:   LIBREADLINE="$LIBREADLINE -lcurses"
                   14320: else
                   14321:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
                   14322: $as_echo_n "checking for tputs in -lncurses... " >&6; }
                   14323: if ${ac_cv_lib_ncurses_tputs+:} false; then :
                   14324:   $as_echo_n "(cached) " >&6
                   14325: else
                   14326:   ac_check_lib_save_LIBS=$LIBS
                   14327: LIBS="-lncurses  $LIBS"
                   14328: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14329: /* end confdefs.h.  */
                   14330: 
                   14331: /* Override any GCC internal prototype to avoid an error.
                   14332:    Use char because int might match the return type of a GCC
                   14333:    builtin and then its argument prototype would still apply.  */
                   14334: #ifdef __cplusplus
                   14335: extern "C"
                   14336: #endif
                   14337: char tputs ();
                   14338: int
                   14339: main ()
                   14340: {
                   14341: return tputs ();
                   14342:   ;
                   14343:   return 0;
                   14344: }
                   14345: _ACEOF
                   14346: if ac_fn_c_try_link "$LINENO"; then :
                   14347:   ac_cv_lib_ncurses_tputs=yes
                   14348: else
                   14349:   ac_cv_lib_ncurses_tputs=no
                   14350: fi
                   14351: rm -f core conftest.err conftest.$ac_objext \
                   14352:     conftest$ac_exeext conftest.$ac_ext
                   14353: LIBS=$ac_check_lib_save_LIBS
                   14354: fi
                   14355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
                   14356: $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
                   14357: if test "x$ac_cv_lib_ncurses_tputs" = xyes; then :
                   14358:   LIBREADLINE="$LIBREADLINE -lncurses"
                   14359: fi
                   14360: 
                   14361: 
                   14362: fi
                   14363: 
                   14364: 
                   14365: fi
                   14366: 
                   14367: 
                   14368: fi
                   14369: 
                   14370:          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
                   14371: $as_echo_n "checking for main in -lreadline... " >&6; }
                   14372: if ${ac_cv_lib_readline_main+:} false; then :
                   14373:   $as_echo_n "(cached) " >&6
                   14374: else
                   14375:   ac_check_lib_save_LIBS=$LIBS
                   14376: LIBS="-lreadline "$LIBREADLINE" $LIBS"
                   14377: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14378: /* end confdefs.h.  */
                   14379: 
                   14380: 
                   14381: int
                   14382: main ()
                   14383: {
                   14384: return main ();
                   14385:   ;
                   14386:   return 0;
                   14387: }
                   14388: _ACEOF
                   14389: if ac_fn_c_try_link "$LINENO"; then :
                   14390:   ac_cv_lib_readline_main=yes
                   14391: else
                   14392:   ac_cv_lib_readline_main=no
                   14393: fi
                   14394: rm -f core conftest.err conftest.$ac_objext \
                   14395:     conftest$ac_exeext conftest.$ac_ext
                   14396: LIBS=$ac_check_lib_save_LIBS
                   14397: fi
                   14398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
                   14399: $as_echo "$ac_cv_lib_readline_main" >&6; }
                   14400: if test "x$ac_cv_lib_readline_main" = xyes; then :
                   14401:   LIBREADLINE="$LIBREADLINE -lreadline"
                   14402: fi
                   14403: 
                   14404:          if test $ac_cv_lib_readline_main = no; then
                   14405:            as_fn_error $? "vtysh needs libreadline but was not found and usable on your system." "$LINENO" 5
                   14406:          fi
                   14407:         ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
                   14408: if test "x$ac_cv_header_readline_history_h" = xyes; then :
                   14409: 
                   14410: fi
                   14411: 
                   14412: 
                   14413:         if test $ac_cv_header_readline_history_h = no;then
                   14414:            as_fn_error $? "readline is too old to have readline/history.h, please update to the latest readline library." "$LINENO" 5
                   14415:         fi
                   14416:         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
                   14417: $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
                   14418: if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
                   14419:   $as_echo_n "(cached) " >&6
                   14420: else
                   14421:   ac_check_lib_save_LIBS=$LIBS
                   14422: LIBS="-lreadline "$LIBREADLINE" $LIBS"
                   14423: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14424: /* end confdefs.h.  */
                   14425: 
                   14426: /* Override any GCC internal prototype to avoid an error.
                   14427:    Use char because int might match the return type of a GCC
                   14428:    builtin and then its argument prototype would still apply.  */
                   14429: #ifdef __cplusplus
                   14430: extern "C"
                   14431: #endif
                   14432: char rl_completion_matches ();
                   14433: int
                   14434: main ()
                   14435: {
                   14436: return rl_completion_matches ();
                   14437:   ;
                   14438:   return 0;
                   14439: }
                   14440: _ACEOF
                   14441: if ac_fn_c_try_link "$LINENO"; then :
                   14442:   ac_cv_lib_readline_rl_completion_matches=yes
                   14443: else
                   14444:   ac_cv_lib_readline_rl_completion_matches=no
                   14445: fi
                   14446: rm -f core conftest.err conftest.$ac_objext \
                   14447:     conftest$ac_exeext conftest.$ac_ext
                   14448: LIBS=$ac_check_lib_save_LIBS
                   14449: fi
                   14450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
                   14451: $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
                   14452: if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
                   14453:   LIBREADLINE="$LIBREADLINE"
                   14454: fi
                   14455: 
                   14456:          if test $ac_cv_lib_readline_rl_completion_matches = no; then
                   14457: 
                   14458: $as_echo "#define rl_completion_matches completion_matches" >>confdefs.h
                   14459: 
                   14460:         fi
                   14461:         ;;
                   14462:   "no" ) VTYSH="";;
                   14463:   *    ) ;;
                   14464: esac
                   14465: 
1.1.1.3   misho    14466:  if test "x$VTYSH" = "xvtysh"; then
                   14467:   VTYSH_TRUE=
                   14468:   VTYSH_FALSE='#'
                   14469: else
                   14470:   VTYSH_TRUE='#'
                   14471:   VTYSH_FALSE=
                   14472: fi
                   14473: 
1.1       misho    14474: 
                   14475: if test "$with_libpam" = "yes"; then
                   14476:   ac_fn_c_check_header_compile "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "#ifdef SUNOS_5
                   14477: #define _XPG4_2
                   14478: #define __EXTENSIONS__
                   14479: #endif
                   14480: #include <stdio.h>
                   14481: #if STDC_HEADERS
                   14482: # include <stdlib.h>
                   14483: # include <stddef.h>
                   14484: #else
                   14485: # if HAVE_STDLIB_H
                   14486: #  include <stdlib.h>
                   14487: # endif
                   14488: #endif
                   14489: #if HAVE_SYS_TYPES_H
                   14490: # include <sys/types.h>
                   14491: #endif
                   14492: /* sys/conf.h depends on param.h on FBSD at least */
                   14493: #if HAVE_SYS_PARAM_H
                   14494: # include <sys/param.h>
                   14495: #endif
                   14496: /* Required for MAXSIG */
                   14497: #if HAVE_SIGNAL_H
                   14498: # include <signal.h>
                   14499: #endif
                   14500: #if HAVE_SYS_SOCKET_H
                   14501: # include <sys/socket.h>
                   14502: #endif
1.1.1.4 ! misho    14503: #ifdef __APPLE__
        !          14504: # define __APPLE_USE_RFC_3542
        !          14505: #endif
1.1       misho    14506: #if HAVE_NETINET_IN_H
                   14507: # include <netinet/in.h>
                   14508: #endif
                   14509: #ifdef TIME_WITH_SYS_TIME
                   14510: # include <sys/time.h>
                   14511: # include <time.h>
                   14512: #else
                   14513: # ifdef HAVE_SYS_TIME_H
                   14514: #  include <sys/time.h>
                   14515: # else
                   14516: #  include <time.h>
                   14517: # endif
                   14518: #endif /* TIME_WITH_SYS_TIME */
                   14519: 
                   14520: #if HAVE_NET_IF_H
                   14521: # include <net/if.h>
                   14522: #endif
                   14523: 
                   14524: #if HAVE_NET_IF_VAR_H
                   14525: # include <net/if_var.h>
                   14526: #endif
                   14527: 
                   14528: #if HAVE_SYS_UN_H
                   14529: # include <sys/un.h>
                   14530: #endif
                   14531: #if HAVE_NETINET_IN_SYSTM_H
                   14532: # include <netinet/in_systm.h>
                   14533: #endif
                   14534: #if HAVE_NETINET_IN_VAR_H
                   14535: # include <netinet/in_var.h>
                   14536: #endif
                   14537: #if HAVE_NET_IF_DL_H
                   14538: # include <net/if_dl.h>
                   14539: #endif
                   14540: #if HAVE_NET_NETOPT_H
                   14541: # include <net/netopt.h>
                   14542: #endif
                   14543: #if HAVE_NET_ROUTE_H
                   14544: # include <net/route.h>
                   14545: #endif
                   14546: #if HAVE_INET_ND_H
                   14547: # include <inet/nd.h>
                   14548: #endif
                   14549: #if HAVE_ARPA_INET_H
                   14550: # include <arpa/inet.h>
                   14551: #endif
                   14552: /* Required for IDRP */
                   14553: #if HAVE_NETINET_IP_ICMP_H
                   14554: # include <netinet/ip_icmp.h>
                   14555: #endif
                   14556: 
                   14557: "
                   14558: if test "x$ac_cv_header_security_pam_misc_h" = xyes; then :
                   14559: 
                   14560: $as_echo "#define HAVE_PAM_MISC_H /**/" >>confdefs.h
                   14561: 
                   14562: 
                   14563: $as_echo "#define PAM_CONV_FUNC misc_conv" >>confdefs.h
                   14564: 
                   14565:      pam_conv_func="misc_conv"
                   14566: 
                   14567: fi
                   14568: 
                   14569: 
                   14570:   ac_fn_c_check_header_compile "$LINENO" "security/openpam.h" "ac_cv_header_security_openpam_h" "#ifdef SUNOS_5
                   14571: #define _XPG4_2
                   14572: #define __EXTENSIONS__
                   14573: #endif
                   14574: #include <stdio.h>
                   14575: #if STDC_HEADERS
                   14576: # include <stdlib.h>
                   14577: # include <stddef.h>
                   14578: #else
                   14579: # if HAVE_STDLIB_H
                   14580: #  include <stdlib.h>
                   14581: # endif
                   14582: #endif
                   14583: #if HAVE_SYS_TYPES_H
                   14584: # include <sys/types.h>
                   14585: #endif
                   14586: /* sys/conf.h depends on param.h on FBSD at least */
                   14587: #if HAVE_SYS_PARAM_H
                   14588: # include <sys/param.h>
                   14589: #endif
                   14590: /* Required for MAXSIG */
                   14591: #if HAVE_SIGNAL_H
                   14592: # include <signal.h>
                   14593: #endif
                   14594: #if HAVE_SYS_SOCKET_H
                   14595: # include <sys/socket.h>
                   14596: #endif
1.1.1.4 ! misho    14597: #ifdef __APPLE__
        !          14598: # define __APPLE_USE_RFC_3542
        !          14599: #endif
1.1       misho    14600: #if HAVE_NETINET_IN_H
                   14601: # include <netinet/in.h>
                   14602: #endif
                   14603: #ifdef TIME_WITH_SYS_TIME
                   14604: # include <sys/time.h>
                   14605: # include <time.h>
                   14606: #else
                   14607: # ifdef HAVE_SYS_TIME_H
                   14608: #  include <sys/time.h>
                   14609: # else
                   14610: #  include <time.h>
                   14611: # endif
                   14612: #endif /* TIME_WITH_SYS_TIME */
                   14613: 
                   14614: #if HAVE_NET_IF_H
                   14615: # include <net/if.h>
                   14616: #endif
                   14617: 
                   14618: #if HAVE_NET_IF_VAR_H
                   14619: # include <net/if_var.h>
                   14620: #endif
                   14621: 
                   14622: #if HAVE_SYS_UN_H
                   14623: # include <sys/un.h>
                   14624: #endif
                   14625: #if HAVE_NETINET_IN_SYSTM_H
                   14626: # include <netinet/in_systm.h>
                   14627: #endif
                   14628: #if HAVE_NETINET_IN_VAR_H
                   14629: # include <netinet/in_var.h>
                   14630: #endif
                   14631: #if HAVE_NET_IF_DL_H
                   14632: # include <net/if_dl.h>
                   14633: #endif
                   14634: #if HAVE_NET_NETOPT_H
                   14635: # include <net/netopt.h>
                   14636: #endif
                   14637: #if HAVE_NET_ROUTE_H
                   14638: # include <net/route.h>
                   14639: #endif
                   14640: #if HAVE_INET_ND_H
                   14641: # include <inet/nd.h>
                   14642: #endif
                   14643: #if HAVE_ARPA_INET_H
                   14644: # include <arpa/inet.h>
                   14645: #endif
                   14646: /* Required for IDRP */
                   14647: #if HAVE_NETINET_IP_ICMP_H
                   14648: # include <netinet/ip_icmp.h>
                   14649: #endif
                   14650: #include <security/pam_appl.h>
                   14651: "
                   14652: if test "x$ac_cv_header_security_openpam_h" = xyes; then :
                   14653: 
                   14654: $as_echo "#define HAVE_OPENPAM_H /**/" >>confdefs.h
                   14655: 
                   14656: 
                   14657: $as_echo "#define PAM_CONV_FUNC openpam_ttyconv" >>confdefs.h
                   14658: 
                   14659:      pam_conv_func="openpam_ttyconv"
                   14660: 
                   14661: fi
                   14662: 
                   14663: 
                   14664:   if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then
                   14665:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pam support will not be built ***" >&5
                   14666: $as_echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
                   14667:     with_libpam="no"
                   14668:   fi
                   14669: fi
                   14670: 
                   14671: if test "$with_libpam" = "yes"; then
                   14672: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
                   14673: $as_echo_n "checking for pam_start in -lpam... " >&6; }
                   14674: if ${ac_cv_lib_pam_pam_start+:} false; then :
                   14675:   $as_echo_n "(cached) " >&6
                   14676: else
                   14677:   ac_check_lib_save_LIBS=$LIBS
                   14678: LIBS="-lpam  $LIBS"
                   14679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14680: /* end confdefs.h.  */
                   14681: 
                   14682: /* Override any GCC internal prototype to avoid an error.
                   14683:    Use char because int might match the return type of a GCC
                   14684:    builtin and then its argument prototype would still apply.  */
                   14685: #ifdef __cplusplus
                   14686: extern "C"
                   14687: #endif
                   14688: char pam_start ();
                   14689: int
                   14690: main ()
                   14691: {
                   14692: return pam_start ();
                   14693:   ;
                   14694:   return 0;
                   14695: }
                   14696: _ACEOF
                   14697: if ac_fn_c_try_link "$LINENO"; then :
                   14698:   ac_cv_lib_pam_pam_start=yes
                   14699: else
                   14700:   ac_cv_lib_pam_pam_start=no
                   14701: fi
                   14702: rm -f core conftest.err conftest.$ac_objext \
                   14703:     conftest$ac_exeext conftest.$ac_ext
                   14704: LIBS=$ac_check_lib_save_LIBS
                   14705: fi
                   14706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
                   14707: $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
                   14708: if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
                   14709:   as_ac_Lib=`$as_echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
                   14710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pam_conv_func in -lpam" >&5
                   14711: $as_echo_n "checking for $pam_conv_func in -lpam... " >&6; }
                   14712: if eval \${$as_ac_Lib+:} false; then :
                   14713:   $as_echo_n "(cached) " >&6
                   14714: else
                   14715:   ac_check_lib_save_LIBS=$LIBS
                   14716: LIBS="-lpam  $LIBS"
                   14717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14718: /* end confdefs.h.  */
                   14719: 
                   14720: /* Override any GCC internal prototype to avoid an error.
                   14721:    Use char because int might match the return type of a GCC
                   14722:    builtin and then its argument prototype would still apply.  */
                   14723: #ifdef __cplusplus
                   14724: extern "C"
                   14725: #endif
                   14726: char $pam_conv_func ();
                   14727: int
                   14728: main ()
                   14729: {
                   14730: return $pam_conv_func ();
                   14731:   ;
                   14732:   return 0;
                   14733: }
                   14734: _ACEOF
                   14735: if ac_fn_c_try_link "$LINENO"; then :
                   14736:   eval "$as_ac_Lib=yes"
                   14737: else
                   14738:   eval "$as_ac_Lib=no"
                   14739: fi
                   14740: rm -f core conftest.err conftest.$ac_objext \
                   14741:     conftest$ac_exeext conftest.$ac_ext
                   14742: LIBS=$ac_check_lib_save_LIBS
                   14743: fi
                   14744: eval ac_res=\$$as_ac_Lib
                   14745:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   14746: $as_echo "$ac_res" >&6; }
                   14747: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   14748: 
                   14749: $as_echo "#define USE_PAM /**/" >>confdefs.h
                   14750: 
                   14751:      LIBPAM="-lpam"
                   14752: else
                   14753: 
                   14754: $as_echo "#define USE_PAM /**/" >>confdefs.h
                   14755: 
                   14756:      LIBPAM="-lpam -lpam_misc"
                   14757: 
                   14758: fi
                   14759: 
                   14760: 
                   14761: else
                   14762:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_end in -lpam" >&5
                   14763: $as_echo_n "checking for pam_end in -lpam... " >&6; }
                   14764: if ${ac_cv_lib_pam_pam_end+:} false; then :
                   14765:   $as_echo_n "(cached) " >&6
                   14766: else
                   14767:   ac_check_lib_save_LIBS=$LIBS
                   14768: LIBS="-lpam -ldl $LIBS"
                   14769: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14770: /* end confdefs.h.  */
                   14771: 
                   14772: /* Override any GCC internal prototype to avoid an error.
                   14773:    Use char because int might match the return type of a GCC
                   14774:    builtin and then its argument prototype would still apply.  */
                   14775: #ifdef __cplusplus
                   14776: extern "C"
                   14777: #endif
                   14778: char pam_end ();
                   14779: int
                   14780: main ()
                   14781: {
                   14782: return pam_end ();
                   14783:   ;
                   14784:   return 0;
                   14785: }
                   14786: _ACEOF
                   14787: if ac_fn_c_try_link "$LINENO"; then :
                   14788:   ac_cv_lib_pam_pam_end=yes
                   14789: else
                   14790:   ac_cv_lib_pam_pam_end=no
                   14791: fi
                   14792: rm -f core conftest.err conftest.$ac_objext \
                   14793:     conftest$ac_exeext conftest.$ac_ext
                   14794: LIBS=$ac_check_lib_save_LIBS
                   14795: fi
                   14796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_end" >&5
                   14797: $as_echo "$ac_cv_lib_pam_pam_end" >&6; }
                   14798: if test "x$ac_cv_lib_pam_pam_end" = xyes; then :
                   14799:   as_ac_Lib=`$as_echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
                   14800: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pam_conv_func in -lpam" >&5
                   14801: $as_echo_n "checking for $pam_conv_func in -lpam... " >&6; }
                   14802: if eval \${$as_ac_Lib+:} false; then :
                   14803:   $as_echo_n "(cached) " >&6
                   14804: else
                   14805:   ac_check_lib_save_LIBS=$LIBS
                   14806: LIBS="-lpam  $LIBS"
                   14807: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14808: /* end confdefs.h.  */
                   14809: 
                   14810: /* Override any GCC internal prototype to avoid an error.
                   14811:    Use char because int might match the return type of a GCC
                   14812:    builtin and then its argument prototype would still apply.  */
                   14813: #ifdef __cplusplus
                   14814: extern "C"
                   14815: #endif
                   14816: char $pam_conv_func ();
                   14817: int
                   14818: main ()
                   14819: {
                   14820: return $pam_conv_func ();
                   14821:   ;
                   14822:   return 0;
                   14823: }
                   14824: _ACEOF
                   14825: if ac_fn_c_try_link "$LINENO"; then :
                   14826:   eval "$as_ac_Lib=yes"
                   14827: else
                   14828:   eval "$as_ac_Lib=no"
                   14829: fi
                   14830: rm -f core conftest.err conftest.$ac_objext \
                   14831:     conftest$ac_exeext conftest.$ac_ext
                   14832: LIBS=$ac_check_lib_save_LIBS
                   14833: fi
                   14834: eval ac_res=\$$as_ac_Lib
                   14835:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   14836: $as_echo "$ac_res" >&6; }
                   14837: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   14838: 
                   14839: $as_echo "#define USE_PAM /**/" >>confdefs.h
                   14840: 
                   14841:        LIBPAM="-lpam -ldl"
                   14842: else
                   14843: 
                   14844: $as_echo "#define USE_PAM /**/" >>confdefs.h
                   14845: 
                   14846:        LIBPAM="-lpam -ldl -lpam_misc"
                   14847: 
                   14848: fi
                   14849: 
                   14850: 
                   14851: else
                   14852:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pam support will not be built ***" >&5
                   14853: $as_echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
                   14854: fi
                   14855: 
                   14856: 
                   14857: 
                   14858: fi
                   14859: 
                   14860: fi
                   14861: 
                   14862: 
                   14863:  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
                   14864: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
                   14865: if ${ac_cv_c_bigendian+:} false; then :
                   14866:   $as_echo_n "(cached) " >&6
                   14867: else
                   14868:   ac_cv_c_bigendian=unknown
                   14869:     # See if we're dealing with a universal compiler.
                   14870:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14871: /* end confdefs.h.  */
                   14872: #ifndef __APPLE_CC__
                   14873:               not a universal capable compiler
                   14874:             #endif
                   14875:             typedef int dummy;
                   14876: 
                   14877: _ACEOF
                   14878: if ac_fn_c_try_compile "$LINENO"; then :
                   14879: 
                   14880:        # Check for potential -arch flags.  It is not universal unless
                   14881:        # there are at least two -arch flags with different values.
                   14882:        ac_arch=
                   14883:        ac_prev=
                   14884:        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
                   14885:         if test -n "$ac_prev"; then
                   14886:           case $ac_word in
                   14887:             i?86 | x86_64 | ppc | ppc64)
                   14888:               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
                   14889:                 ac_arch=$ac_word
                   14890:               else
                   14891:                 ac_cv_c_bigendian=universal
                   14892:                 break
                   14893:               fi
                   14894:               ;;
                   14895:           esac
                   14896:           ac_prev=
                   14897:         elif test "x$ac_word" = "x-arch"; then
                   14898:           ac_prev=arch
                   14899:         fi
                   14900:        done
                   14901: fi
                   14902: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14903:     if test $ac_cv_c_bigendian = unknown; then
                   14904:       # See if sys/param.h defines the BYTE_ORDER macro.
                   14905:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14906: /* end confdefs.h.  */
                   14907: #include <sys/types.h>
                   14908:             #include <sys/param.h>
                   14909: 
                   14910: int
                   14911: main ()
                   14912: {
                   14913: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
                   14914:                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
                   14915:                     && LITTLE_ENDIAN)
                   14916:              bogus endian macros
                   14917:             #endif
                   14918: 
                   14919:   ;
                   14920:   return 0;
                   14921: }
                   14922: _ACEOF
                   14923: if ac_fn_c_try_compile "$LINENO"; then :
                   14924:   # It does; now see whether it defined to BIG_ENDIAN or not.
                   14925:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14926: /* end confdefs.h.  */
                   14927: #include <sys/types.h>
                   14928:                #include <sys/param.h>
                   14929: 
                   14930: int
                   14931: main ()
                   14932: {
                   14933: #if BYTE_ORDER != BIG_ENDIAN
                   14934:                 not big endian
                   14935:                #endif
                   14936: 
                   14937:   ;
                   14938:   return 0;
                   14939: }
                   14940: _ACEOF
                   14941: if ac_fn_c_try_compile "$LINENO"; then :
                   14942:   ac_cv_c_bigendian=yes
                   14943: else
                   14944:   ac_cv_c_bigendian=no
                   14945: fi
                   14946: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14947: fi
                   14948: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14949:     fi
                   14950:     if test $ac_cv_c_bigendian = unknown; then
                   14951:       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
                   14952:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14953: /* end confdefs.h.  */
                   14954: #include <limits.h>
                   14955: 
                   14956: int
                   14957: main ()
                   14958: {
                   14959: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
                   14960:              bogus endian macros
                   14961:             #endif
                   14962: 
                   14963:   ;
                   14964:   return 0;
                   14965: }
                   14966: _ACEOF
                   14967: if ac_fn_c_try_compile "$LINENO"; then :
                   14968:   # It does; now see whether it defined to _BIG_ENDIAN or not.
                   14969:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14970: /* end confdefs.h.  */
                   14971: #include <limits.h>
                   14972: 
                   14973: int
                   14974: main ()
                   14975: {
                   14976: #ifndef _BIG_ENDIAN
                   14977:                 not big endian
                   14978:                #endif
                   14979: 
                   14980:   ;
                   14981:   return 0;
                   14982: }
                   14983: _ACEOF
                   14984: if ac_fn_c_try_compile "$LINENO"; then :
                   14985:   ac_cv_c_bigendian=yes
                   14986: else
                   14987:   ac_cv_c_bigendian=no
                   14988: fi
                   14989: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14990: fi
                   14991: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14992:     fi
                   14993:     if test $ac_cv_c_bigendian = unknown; then
                   14994:       # Compile a test program.
                   14995:       if test "$cross_compiling" = yes; then :
                   14996:   # Try to guess by grepping values from an object file.
                   14997:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   14998: /* end confdefs.h.  */
                   14999: short int ascii_mm[] =
                   15000:                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
                   15001:                short int ascii_ii[] =
                   15002:                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
                   15003:                int use_ascii (int i) {
                   15004:                  return ascii_mm[i] + ascii_ii[i];
                   15005:                }
                   15006:                short int ebcdic_ii[] =
                   15007:                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
                   15008:                short int ebcdic_mm[] =
                   15009:                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
                   15010:                int use_ebcdic (int i) {
                   15011:                  return ebcdic_mm[i] + ebcdic_ii[i];
                   15012:                }
                   15013:                extern int foo;
                   15014: 
                   15015: int
                   15016: main ()
                   15017: {
                   15018: return use_ascii (foo) == use_ebcdic (foo);
                   15019:   ;
                   15020:   return 0;
                   15021: }
                   15022: _ACEOF
                   15023: if ac_fn_c_try_compile "$LINENO"; then :
                   15024:   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
                   15025:              ac_cv_c_bigendian=yes
                   15026:            fi
                   15027:            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
                   15028:              if test "$ac_cv_c_bigendian" = unknown; then
                   15029:                ac_cv_c_bigendian=no
                   15030:              else
                   15031:                # finding both strings is unlikely to happen, but who knows?
                   15032:                ac_cv_c_bigendian=unknown
                   15033:              fi
                   15034:            fi
                   15035: fi
                   15036: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15037: else
                   15038:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15039: /* end confdefs.h.  */
                   15040: $ac_includes_default
                   15041: int
                   15042: main ()
                   15043: {
                   15044: 
                   15045:             /* Are we little or big endian?  From Harbison&Steele.  */
                   15046:             union
                   15047:             {
                   15048:               long int l;
                   15049:               char c[sizeof (long int)];
                   15050:             } u;
                   15051:             u.l = 1;
                   15052:             return u.c[sizeof (long int) - 1] == 1;
                   15053: 
                   15054:   ;
                   15055:   return 0;
                   15056: }
                   15057: _ACEOF
                   15058: if ac_fn_c_try_run "$LINENO"; then :
                   15059:   ac_cv_c_bigendian=no
                   15060: else
                   15061:   ac_cv_c_bigendian=yes
                   15062: fi
                   15063: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15064:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15065: fi
                   15066: 
                   15067:     fi
                   15068: fi
                   15069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
                   15070: $as_echo "$ac_cv_c_bigendian" >&6; }
                   15071:  case $ac_cv_c_bigendian in #(
                   15072:    yes)
                   15073:      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
                   15074: ;; #(
                   15075:    no)
                   15076:       ;; #(
                   15077:    universal)
                   15078: 
                   15079: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
                   15080: 
                   15081:      ;; #(
                   15082:    *)
                   15083:      as_fn_error $? "unknown endianness
                   15084:  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
                   15085:  esac
                   15086: 
                   15087: 
                   15088: 
                   15089: for ac_header in unistd.h
                   15090: do :
                   15091:   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
                   15092: if test "x$ac_cv_header_unistd_h" = xyes; then :
                   15093:   cat >>confdefs.h <<_ACEOF
                   15094: #define HAVE_UNISTD_H 1
                   15095: _ACEOF
                   15096: 
                   15097: fi
                   15098: 
                   15099: done
                   15100: 
                   15101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
                   15102: $as_echo_n "checking for working chown... " >&6; }
                   15103: if ${ac_cv_func_chown_works+:} false; then :
                   15104:   $as_echo_n "(cached) " >&6
                   15105: else
                   15106:   if test "$cross_compiling" = yes; then :
                   15107:   ac_cv_func_chown_works=no
                   15108: else
                   15109:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15110: /* end confdefs.h.  */
                   15111: $ac_includes_default
                   15112: #include <fcntl.h>
                   15113: 
                   15114: int
                   15115: main ()
                   15116: {
                   15117:   char *f = "conftest.chown";
                   15118:   struct stat before, after;
                   15119: 
                   15120:   if (creat (f, 0600) < 0)
                   15121:     return 1;
                   15122:   if (stat (f, &before) < 0)
                   15123:     return 1;
                   15124:   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
                   15125:     return 1;
                   15126:   if (stat (f, &after) < 0)
                   15127:     return 1;
                   15128:   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
                   15129: 
                   15130:   ;
                   15131:   return 0;
                   15132: }
                   15133: _ACEOF
                   15134: if ac_fn_c_try_run "$LINENO"; then :
                   15135:   ac_cv_func_chown_works=yes
                   15136: else
                   15137:   ac_cv_func_chown_works=no
                   15138: fi
                   15139: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15140:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15141: fi
                   15142: 
                   15143: rm -f conftest.chown
                   15144: 
                   15145: fi
                   15146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
                   15147: $as_echo "$ac_cv_func_chown_works" >&6; }
                   15148: if test $ac_cv_func_chown_works = yes; then
                   15149: 
                   15150: $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
                   15151: 
                   15152: fi
                   15153: 
                   15154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
                   15155: $as_echo_n "checking for working POSIX fnmatch... " >&6; }
                   15156: if ${ac_cv_func_fnmatch_works+:} false; then :
                   15157:   $as_echo_n "(cached) " >&6
                   15158: else
                   15159:   # Some versions of Solaris, SCO, and the GNU C Library
                   15160:    # have a broken or incompatible fnmatch.
                   15161:    # So we run a test program.  If we are cross-compiling, take no chance.
                   15162:    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
                   15163:    if test "$cross_compiling" = yes; then :
                   15164:   ac_cv_func_fnmatch_works=cross
                   15165: else
                   15166:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15167: /* end confdefs.h.  */
                   15168: #include <fnmatch.h>
                   15169: #         define y(a, b, c) (fnmatch (a, b, c) == 0)
                   15170: #         define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
                   15171: 
                   15172: int
                   15173: main ()
                   15174: {
                   15175: return
                   15176:           (!(y ("a*", "abc", 0)
                   15177:              && n ("d*/*1", "d/s/1", FNM_PATHNAME)
                   15178:              && y ("a\\\\bc", "abc", 0)
                   15179:              && n ("a\\\\bc", "abc", FNM_NOESCAPE)
                   15180:              && y ("*x", ".x", 0)
                   15181:              && n ("*x", ".x", FNM_PERIOD)
                   15182:              && 1));
                   15183:   ;
                   15184:   return 0;
                   15185: }
                   15186: _ACEOF
                   15187: if ac_fn_c_try_run "$LINENO"; then :
                   15188:   ac_cv_func_fnmatch_works=yes
                   15189: else
                   15190:   ac_cv_func_fnmatch_works=no
                   15191: fi
                   15192: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15193:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15194: fi
                   15195: 
                   15196: fi
                   15197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
                   15198: $as_echo "$ac_cv_func_fnmatch_works" >&6; }
                   15199: if test $ac_cv_func_fnmatch_works = yes; then :
                   15200: 
                   15201: $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
                   15202: 
                   15203: fi
                   15204: 
                   15205: 
                   15206: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
                   15207: if test "x$ac_cv_type_pid_t" = xyes; then :
                   15208: 
                   15209: else
                   15210: 
                   15211: cat >>confdefs.h <<_ACEOF
                   15212: #define pid_t int
                   15213: _ACEOF
                   15214: 
                   15215: fi
                   15216: 
                   15217: for ac_header in vfork.h
                   15218: do :
                   15219:   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
                   15220: if test "x$ac_cv_header_vfork_h" = xyes; then :
                   15221:   cat >>confdefs.h <<_ACEOF
                   15222: #define HAVE_VFORK_H 1
                   15223: _ACEOF
                   15224: 
                   15225: fi
                   15226: 
                   15227: done
                   15228: 
                   15229: for ac_func in fork vfork
                   15230: do :
                   15231:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   15232: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   15233: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   15234:   cat >>confdefs.h <<_ACEOF
                   15235: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15236: _ACEOF
                   15237: 
                   15238: fi
                   15239: done
                   15240: 
                   15241: if test "x$ac_cv_func_fork" = xyes; then
                   15242:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
                   15243: $as_echo_n "checking for working fork... " >&6; }
                   15244: if ${ac_cv_func_fork_works+:} false; then :
                   15245:   $as_echo_n "(cached) " >&6
                   15246: else
                   15247:   if test "$cross_compiling" = yes; then :
                   15248:   ac_cv_func_fork_works=cross
                   15249: else
                   15250:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15251: /* end confdefs.h.  */
                   15252: $ac_includes_default
                   15253: int
                   15254: main ()
                   15255: {
                   15256: 
                   15257:          /* By Ruediger Kuhlmann. */
                   15258:          return fork () < 0;
                   15259: 
                   15260:   ;
                   15261:   return 0;
                   15262: }
                   15263: _ACEOF
                   15264: if ac_fn_c_try_run "$LINENO"; then :
                   15265:   ac_cv_func_fork_works=yes
                   15266: else
                   15267:   ac_cv_func_fork_works=no
                   15268: fi
                   15269: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15270:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15271: fi
                   15272: 
                   15273: fi
                   15274: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
                   15275: $as_echo "$ac_cv_func_fork_works" >&6; }
                   15276: 
                   15277: else
                   15278:   ac_cv_func_fork_works=$ac_cv_func_fork
                   15279: fi
                   15280: if test "x$ac_cv_func_fork_works" = xcross; then
                   15281:   case $host in
                   15282:     *-*-amigaos* | *-*-msdosdjgpp*)
                   15283:       # Override, as these systems have only a dummy fork() stub
                   15284:       ac_cv_func_fork_works=no
                   15285:       ;;
                   15286:     *)
                   15287:       ac_cv_func_fork_works=yes
                   15288:       ;;
                   15289:   esac
                   15290:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
                   15291: $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
                   15292: fi
                   15293: ac_cv_func_vfork_works=$ac_cv_func_vfork
                   15294: if test "x$ac_cv_func_vfork" = xyes; then
                   15295:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
                   15296: $as_echo_n "checking for working vfork... " >&6; }
                   15297: if ${ac_cv_func_vfork_works+:} false; then :
                   15298:   $as_echo_n "(cached) " >&6
                   15299: else
                   15300:   if test "$cross_compiling" = yes; then :
                   15301:   ac_cv_func_vfork_works=cross
                   15302: else
                   15303:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15304: /* end confdefs.h.  */
                   15305: /* Thanks to Paul Eggert for this test.  */
                   15306: $ac_includes_default
                   15307: #include <sys/wait.h>
                   15308: #ifdef HAVE_VFORK_H
                   15309: # include <vfork.h>
                   15310: #endif
                   15311: /* On some sparc systems, changes by the child to local and incoming
                   15312:    argument registers are propagated back to the parent.  The compiler
                   15313:    is told about this with #include <vfork.h>, but some compilers
                   15314:    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
                   15315:    static variable whose address is put into a register that is
                   15316:    clobbered by the vfork.  */
                   15317: static void
                   15318: #ifdef __cplusplus
                   15319: sparc_address_test (int arg)
                   15320: # else
                   15321: sparc_address_test (arg) int arg;
                   15322: #endif
                   15323: {
                   15324:   static pid_t child;
                   15325:   if (!child) {
                   15326:     child = vfork ();
                   15327:     if (child < 0) {
                   15328:       perror ("vfork");
                   15329:       _exit(2);
                   15330:     }
                   15331:     if (!child) {
                   15332:       arg = getpid();
                   15333:       write(-1, "", 0);
                   15334:       _exit (arg);
                   15335:     }
                   15336:   }
                   15337: }
                   15338: 
                   15339: int
                   15340: main ()
                   15341: {
                   15342:   pid_t parent = getpid ();
                   15343:   pid_t child;
                   15344: 
                   15345:   sparc_address_test (0);
                   15346: 
                   15347:   child = vfork ();
                   15348: 
                   15349:   if (child == 0) {
                   15350:     /* Here is another test for sparc vfork register problems.  This
                   15351:        test uses lots of local variables, at least as many local
                   15352:        variables as main has allocated so far including compiler
                   15353:        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
                   15354:        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
                   15355:        reuse the register of parent for one of the local variables,
                   15356:        since it will think that parent can't possibly be used any more
                   15357:        in this routine.  Assigning to the local variable will thus
                   15358:        munge parent in the parent process.  */
                   15359:     pid_t
                   15360:       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
                   15361:       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
                   15362:     /* Convince the compiler that p..p7 are live; otherwise, it might
                   15363:        use the same hardware register for all 8 local variables.  */
                   15364:     if (p != p1 || p != p2 || p != p3 || p != p4
                   15365:        || p != p5 || p != p6 || p != p7)
                   15366:       _exit(1);
                   15367: 
                   15368:     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
                   15369:        from child file descriptors.  If the child closes a descriptor
                   15370:        before it execs or exits, this munges the parent's descriptor
                   15371:        as well.  Test for this by closing stdout in the child.  */
                   15372:     _exit(close(fileno(stdout)) != 0);
                   15373:   } else {
                   15374:     int status;
                   15375:     struct stat st;
                   15376: 
                   15377:     while (wait(&status) != child)
                   15378:       ;
                   15379:     return (
                   15380:         /* Was there some problem with vforking?  */
                   15381:         child < 0
                   15382: 
                   15383:         /* Did the child fail?  (This shouldn't happen.)  */
                   15384:         || status
                   15385: 
                   15386:         /* Did the vfork/compiler bug occur?  */
                   15387:         || parent != getpid()
                   15388: 
                   15389:         /* Did the file descriptor bug occur?  */
                   15390:         || fstat(fileno(stdout), &st) != 0
                   15391:         );
                   15392:   }
                   15393: }
                   15394: _ACEOF
                   15395: if ac_fn_c_try_run "$LINENO"; then :
                   15396:   ac_cv_func_vfork_works=yes
                   15397: else
                   15398:   ac_cv_func_vfork_works=no
                   15399: fi
                   15400: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15401:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15402: fi
                   15403: 
                   15404: fi
                   15405: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
                   15406: $as_echo "$ac_cv_func_vfork_works" >&6; }
                   15407: 
                   15408: fi;
                   15409: if test "x$ac_cv_func_fork_works" = xcross; then
                   15410:   ac_cv_func_vfork_works=$ac_cv_func_vfork
                   15411:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
                   15412: $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
                   15413: fi
                   15414: 
                   15415: if test "x$ac_cv_func_vfork_works" = xyes; then
                   15416: 
                   15417: $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
                   15418: 
                   15419: else
                   15420: 
                   15421: $as_echo "#define vfork fork" >>confdefs.h
                   15422: 
                   15423: fi
                   15424: if test "x$ac_cv_func_fork_works" = xyes; then
                   15425: 
                   15426: $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
                   15427: 
                   15428: fi
                   15429: 
                   15430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
                   15431: $as_echo_n "checking for working memcmp... " >&6; }
                   15432: if ${ac_cv_func_memcmp_working+:} false; then :
                   15433:   $as_echo_n "(cached) " >&6
                   15434: else
                   15435:   if test "$cross_compiling" = yes; then :
                   15436:   ac_cv_func_memcmp_working=no
                   15437: else
                   15438:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15439: /* end confdefs.h.  */
                   15440: $ac_includes_default
                   15441: int
                   15442: main ()
                   15443: {
                   15444: 
                   15445:   /* Some versions of memcmp are not 8-bit clean.  */
                   15446:   char c0 = '\100', c1 = '\200', c2 = '\201';
                   15447:   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
                   15448:     return 1;
                   15449: 
                   15450:   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
                   15451:      or more and with at least one buffer not starting on a 4-byte boundary.
                   15452:      William Lewis provided this test program.   */
                   15453:   {
                   15454:     char foo[21];
                   15455:     char bar[21];
                   15456:     int i;
                   15457:     for (i = 0; i < 4; i++)
                   15458:       {
                   15459:        char *a = foo + i;
                   15460:        char *b = bar + i;
                   15461:        strcpy (a, "--------01111111");
                   15462:        strcpy (b, "--------10000000");
                   15463:        if (memcmp (a, b, 16) >= 0)
                   15464:          return 1;
                   15465:       }
                   15466:     return 0;
                   15467:   }
                   15468: 
                   15469:   ;
                   15470:   return 0;
                   15471: }
                   15472: _ACEOF
                   15473: if ac_fn_c_try_run "$LINENO"; then :
                   15474:   ac_cv_func_memcmp_working=yes
                   15475: else
                   15476:   ac_cv_func_memcmp_working=no
                   15477: fi
                   15478: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15479:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15480: fi
                   15481: 
                   15482: fi
                   15483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
                   15484: $as_echo "$ac_cv_func_memcmp_working" >&6; }
                   15485: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
                   15486:   *" memcmp.$ac_objext "* ) ;;
                   15487:   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
                   15488:  ;;
                   15489: esac
                   15490: 
                   15491: 
                   15492: 
                   15493: 
                   15494: 
                   15495:   for ac_header in $ac_header_list
                   15496: do :
                   15497:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   15498: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   15499: "
                   15500: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   15501:   cat >>confdefs.h <<_ACEOF
                   15502: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   15503: _ACEOF
                   15504: 
                   15505: fi
                   15506: 
                   15507: done
                   15508: 
                   15509: 
                   15510: 
                   15511: 
                   15512: 
                   15513: 
                   15514: 
                   15515: 
                   15516:   for ac_func in $ac_func_list
                   15517: do :
                   15518:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   15519: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   15520: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   15521:   cat >>confdefs.h <<_ACEOF
                   15522: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   15523: _ACEOF
                   15524: 
                   15525: fi
                   15526: done
                   15527: 
                   15528: 
                   15529: 
                   15530: 
                   15531: 
                   15532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
                   15533: $as_echo_n "checking for working mktime... " >&6; }
                   15534: if ${ac_cv_func_working_mktime+:} false; then :
                   15535:   $as_echo_n "(cached) " >&6
                   15536: else
                   15537:   if test "$cross_compiling" = yes; then :
                   15538:   ac_cv_func_working_mktime=no
                   15539: else
                   15540:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15541: /* end confdefs.h.  */
                   15542: /* Test program from Paul Eggert and Tony Leneis.  */
                   15543: #ifdef TIME_WITH_SYS_TIME
                   15544: # include <sys/time.h>
                   15545: # include <time.h>
                   15546: #else
                   15547: # ifdef HAVE_SYS_TIME_H
                   15548: #  include <sys/time.h>
                   15549: # else
                   15550: #  include <time.h>
                   15551: # endif
                   15552: #endif
                   15553: 
                   15554: #include <limits.h>
                   15555: #include <stdlib.h>
                   15556: 
                   15557: #ifdef HAVE_UNISTD_H
                   15558: # include <unistd.h>
                   15559: #endif
                   15560: 
                   15561: #ifndef HAVE_ALARM
                   15562: # define alarm(X) /* empty */
                   15563: #endif
                   15564: 
                   15565: /* Work around redefinition to rpl_putenv by other config tests.  */
                   15566: #undef putenv
                   15567: 
                   15568: static time_t time_t_max;
                   15569: static time_t time_t_min;
                   15570: 
                   15571: /* Values we'll use to set the TZ environment variable.  */
                   15572: static const char *tz_strings[] = {
                   15573:   (const char *) 0, "TZ=GMT0", "TZ=JST-9",
                   15574:   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
                   15575: };
                   15576: #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
                   15577: 
                   15578: /* Return 0 if mktime fails to convert a date in the spring-forward gap.
                   15579:    Based on a problem report from Andreas Jaeger.  */
                   15580: static int
                   15581: spring_forward_gap ()
                   15582: {
                   15583:   /* glibc (up to about 1998-10-07) failed this test. */
                   15584:   struct tm tm;
                   15585: 
                   15586:   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
                   15587:      instead of "TZ=America/Vancouver" in order to detect the bug even
                   15588:      on systems that don't support the Olson extension, or don't have the
                   15589:      full zoneinfo tables installed.  */
                   15590:   putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
                   15591: 
                   15592:   tm.tm_year = 98;
                   15593:   tm.tm_mon = 3;
                   15594:   tm.tm_mday = 5;
                   15595:   tm.tm_hour = 2;
                   15596:   tm.tm_min = 0;
                   15597:   tm.tm_sec = 0;
                   15598:   tm.tm_isdst = -1;
                   15599:   return mktime (&tm) != (time_t) -1;
                   15600: }
                   15601: 
                   15602: static int
                   15603: mktime_test1 (time_t now)
                   15604: {
                   15605:   struct tm *lt;
                   15606:   return ! (lt = localtime (&now)) || mktime (lt) == now;
                   15607: }
                   15608: 
                   15609: static int
                   15610: mktime_test (time_t now)
                   15611: {
                   15612:   return (mktime_test1 (now)
                   15613:          && mktime_test1 ((time_t) (time_t_max - now))
                   15614:          && mktime_test1 ((time_t) (time_t_min + now)));
                   15615: }
                   15616: 
                   15617: static int
                   15618: irix_6_4_bug ()
                   15619: {
                   15620:   /* Based on code from Ariel Faigon.  */
                   15621:   struct tm tm;
                   15622:   tm.tm_year = 96;
                   15623:   tm.tm_mon = 3;
                   15624:   tm.tm_mday = 0;
                   15625:   tm.tm_hour = 0;
                   15626:   tm.tm_min = 0;
                   15627:   tm.tm_sec = 0;
                   15628:   tm.tm_isdst = -1;
                   15629:   mktime (&tm);
                   15630:   return tm.tm_mon == 2 && tm.tm_mday == 31;
                   15631: }
                   15632: 
                   15633: static int
                   15634: bigtime_test (int j)
                   15635: {
                   15636:   struct tm tm;
                   15637:   time_t now;
                   15638:   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
                   15639:   now = mktime (&tm);
                   15640:   if (now != (time_t) -1)
                   15641:     {
                   15642:       struct tm *lt = localtime (&now);
                   15643:       if (! (lt
                   15644:             && lt->tm_year == tm.tm_year
                   15645:             && lt->tm_mon == tm.tm_mon
                   15646:             && lt->tm_mday == tm.tm_mday
                   15647:             && lt->tm_hour == tm.tm_hour
                   15648:             && lt->tm_min == tm.tm_min
                   15649:             && lt->tm_sec == tm.tm_sec
                   15650:             && lt->tm_yday == tm.tm_yday
                   15651:             && lt->tm_wday == tm.tm_wday
                   15652:             && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
                   15653:                  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
                   15654:        return 0;
                   15655:     }
                   15656:   return 1;
                   15657: }
                   15658: 
                   15659: static int
                   15660: year_2050_test ()
                   15661: {
                   15662:   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
                   15663:      ignoring leap seconds.  */
                   15664:   unsigned long int answer = 2527315200UL;
                   15665: 
                   15666:   struct tm tm;
                   15667:   time_t t;
                   15668:   tm.tm_year = 2050 - 1900;
                   15669:   tm.tm_mon = 2 - 1;
                   15670:   tm.tm_mday = 1;
                   15671:   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
                   15672:   tm.tm_isdst = -1;
                   15673: 
                   15674:   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
                   15675:      instead of "TZ=America/Vancouver" in order to detect the bug even
                   15676:      on systems that don't support the Olson extension, or don't have the
                   15677:      full zoneinfo tables installed.  */
                   15678:   putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
                   15679: 
                   15680:   t = mktime (&tm);
                   15681: 
                   15682:   /* Check that the result is either a failure, or close enough
                   15683:      to the correct answer that we can assume the discrepancy is
                   15684:      due to leap seconds.  */
                   15685:   return (t == (time_t) -1
                   15686:          || (0 < t && answer - 120 <= t && t <= answer + 120));
                   15687: }
                   15688: 
                   15689: int
                   15690: main ()
                   15691: {
                   15692:   time_t t, delta;
                   15693:   int i, j;
                   15694: 
                   15695:   /* This test makes some buggy mktime implementations loop.
                   15696:      Give up after 60 seconds; a mktime slower than that
                   15697:      isn't worth using anyway.  */
                   15698:   alarm (60);
                   15699: 
                   15700:   for (;;)
                   15701:     {
                   15702:       t = (time_t_max << 1) + 1;
                   15703:       if (t <= time_t_max)
                   15704:        break;
                   15705:       time_t_max = t;
                   15706:     }
                   15707:   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
                   15708: 
                   15709:   delta = time_t_max / 997; /* a suitable prime number */
                   15710:   for (i = 0; i < N_STRINGS; i++)
                   15711:     {
                   15712:       if (tz_strings[i])
                   15713:        putenv ((char*) tz_strings[i]);
                   15714: 
                   15715:       for (t = 0; t <= time_t_max - delta; t += delta)
                   15716:        if (! mktime_test (t))
                   15717:          return 1;
                   15718:       if (! (mktime_test ((time_t) 1)
                   15719:             && mktime_test ((time_t) (60 * 60))
                   15720:             && mktime_test ((time_t) (60 * 60 * 24))))
                   15721:        return 1;
                   15722: 
                   15723:       for (j = 1; ; j <<= 1)
                   15724:        if (! bigtime_test (j))
                   15725:          return 1;
                   15726:        else if (INT_MAX / 2 < j)
                   15727:          break;
                   15728:       if (! bigtime_test (INT_MAX))
                   15729:        return 1;
                   15730:     }
                   15731:   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
                   15732: }
                   15733: _ACEOF
                   15734: if ac_fn_c_try_run "$LINENO"; then :
                   15735:   ac_cv_func_working_mktime=yes
                   15736: else
                   15737:   ac_cv_func_working_mktime=no
                   15738: fi
                   15739: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15740:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15741: fi
                   15742: 
                   15743: fi
                   15744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
                   15745: $as_echo "$ac_cv_func_working_mktime" >&6; }
                   15746: if test $ac_cv_func_working_mktime = no; then
                   15747:   case " $LIBOBJS " in
                   15748:   *" mktime.$ac_objext "* ) ;;
                   15749:   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
                   15750:  ;;
                   15751: esac
                   15752: 
                   15753: fi
                   15754: 
                   15755: for ac_func in strftime
                   15756: do :
                   15757:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
                   15758: if test "x$ac_cv_func_strftime" = xyes; then :
                   15759:   cat >>confdefs.h <<_ACEOF
                   15760: #define HAVE_STRFTIME 1
                   15761: _ACEOF
                   15762: 
                   15763: else
                   15764:   # strftime is in -lintl on SCO UNIX.
                   15765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   15766: $as_echo_n "checking for strftime in -lintl... " >&6; }
                   15767: if ${ac_cv_lib_intl_strftime+:} false; then :
                   15768:   $as_echo_n "(cached) " >&6
                   15769: else
                   15770:   ac_check_lib_save_LIBS=$LIBS
                   15771: LIBS="-lintl  $LIBS"
                   15772: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15773: /* end confdefs.h.  */
                   15774: 
                   15775: /* Override any GCC internal prototype to avoid an error.
                   15776:    Use char because int might match the return type of a GCC
                   15777:    builtin and then its argument prototype would still apply.  */
                   15778: #ifdef __cplusplus
                   15779: extern "C"
                   15780: #endif
                   15781: char strftime ();
                   15782: int
                   15783: main ()
                   15784: {
                   15785: return strftime ();
                   15786:   ;
                   15787:   return 0;
                   15788: }
                   15789: _ACEOF
                   15790: if ac_fn_c_try_link "$LINENO"; then :
                   15791:   ac_cv_lib_intl_strftime=yes
                   15792: else
                   15793:   ac_cv_lib_intl_strftime=no
                   15794: fi
                   15795: rm -f core conftest.err conftest.$ac_objext \
                   15796:     conftest$ac_exeext conftest.$ac_ext
                   15797: LIBS=$ac_check_lib_save_LIBS
                   15798: fi
                   15799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   15800: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
                   15801: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
                   15802:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   15803: 
                   15804: LIBS="-lintl $LIBS"
                   15805: fi
                   15806: 
                   15807: fi
                   15808: done
                   15809: 
                   15810: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
                   15811: $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
                   15812: if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
                   15813:   $as_echo_n "(cached) " >&6
                   15814: else
                   15815:   rm -f conftest.sym conftest.file
                   15816: echo >conftest.file
                   15817: if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
                   15818:   if test "$cross_compiling" = yes; then :
                   15819:   ac_cv_func_lstat_dereferences_slashed_symlink=no
                   15820: else
                   15821:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15822: /* end confdefs.h.  */
                   15823: $ac_includes_default
                   15824: int
                   15825: main ()
                   15826: {
                   15827: struct stat sbuf;
                   15828:      /* Linux will dereference the symlink and fail, as required by POSIX.
                   15829:        That is better in the sense that it means we will not
                   15830:        have to compile and use the lstat wrapper.  */
                   15831:      return lstat ("conftest.sym/", &sbuf) == 0;
                   15832:   ;
                   15833:   return 0;
                   15834: }
                   15835: _ACEOF
                   15836: if ac_fn_c_try_run "$LINENO"; then :
                   15837:   ac_cv_func_lstat_dereferences_slashed_symlink=yes
                   15838: else
                   15839:   ac_cv_func_lstat_dereferences_slashed_symlink=no
                   15840: fi
                   15841: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15842:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15843: fi
                   15844: 
                   15845: else
                   15846:   # If the `ln -s' command failed, then we probably don't even
                   15847:   # have an lstat function.
                   15848:   ac_cv_func_lstat_dereferences_slashed_symlink=no
                   15849: fi
                   15850: rm -f conftest.sym conftest.file
                   15851: 
                   15852: fi
                   15853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
                   15854: $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
                   15855: 
                   15856: test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
                   15857: 
                   15858: cat >>confdefs.h <<_ACEOF
                   15859: #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
                   15860: _ACEOF
                   15861: 
                   15862: 
                   15863: if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
                   15864:   case " $LIBOBJS " in
                   15865:   *" lstat.$ac_objext "* ) ;;
                   15866:   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
                   15867:  ;;
                   15868: esac
                   15869: 
                   15870: fi
                   15871: 
                   15872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
                   15873: $as_echo_n "checking whether stat accepts an empty string... " >&6; }
                   15874: if ${ac_cv_func_stat_empty_string_bug+:} false; then :
                   15875:   $as_echo_n "(cached) " >&6
                   15876: else
                   15877:   if test "$cross_compiling" = yes; then :
                   15878:   ac_cv_func_stat_empty_string_bug=yes
                   15879: else
                   15880:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15881: /* end confdefs.h.  */
                   15882: $ac_includes_default
                   15883: int
                   15884: main ()
                   15885: {
                   15886: struct stat sbuf;
                   15887:   return stat ("", &sbuf) == 0;
                   15888:   ;
                   15889:   return 0;
                   15890: }
                   15891: _ACEOF
                   15892: if ac_fn_c_try_run "$LINENO"; then :
                   15893:   ac_cv_func_stat_empty_string_bug=no
                   15894: else
                   15895:   ac_cv_func_stat_empty_string_bug=yes
                   15896: fi
                   15897: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15898:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15899: fi
                   15900: 
                   15901: fi
                   15902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
                   15903: $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
                   15904: if test $ac_cv_func_stat_empty_string_bug = yes; then
                   15905:   case " $LIBOBJS " in
                   15906:   *" stat.$ac_objext "* ) ;;
                   15907:   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
                   15908:  ;;
                   15909: esac
                   15910: 
                   15911: 
                   15912: cat >>confdefs.h <<_ACEOF
                   15913: #define HAVE_STAT_EMPTY_STRING_BUG 1
                   15914: _ACEOF
                   15915: 
                   15916: fi
                   15917: 
                   15918: for ac_header in sys/select.h sys/socket.h
                   15919: do :
                   15920:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   15921: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   15922: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   15923:   cat >>confdefs.h <<_ACEOF
                   15924: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   15925: _ACEOF
                   15926: 
                   15927: fi
                   15928: 
                   15929: done
                   15930: 
                   15931: { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
                   15932: $as_echo_n "checking types of arguments for select... " >&6; }
                   15933: if ${ac_cv_func_select_args+:} false; then :
                   15934:   $as_echo_n "(cached) " >&6
                   15935: else
                   15936:   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
                   15937:  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
                   15938:   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
                   15939:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15940: /* end confdefs.h.  */
                   15941: $ac_includes_default
                   15942: #ifdef HAVE_SYS_SELECT_H
                   15943: # include <sys/select.h>
                   15944: #endif
                   15945: #ifdef HAVE_SYS_SOCKET_H
                   15946: # include <sys/socket.h>
                   15947: #endif
                   15948: 
                   15949: int
                   15950: main ()
                   15951: {
                   15952: extern int select ($ac_arg1,
                   15953:                                            $ac_arg234, $ac_arg234, $ac_arg234,
                   15954:                                            $ac_arg5);
                   15955:   ;
                   15956:   return 0;
                   15957: }
                   15958: _ACEOF
                   15959: if ac_fn_c_try_compile "$LINENO"; then :
                   15960:   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
                   15961: fi
                   15962: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15963:   done
                   15964:  done
                   15965: done
                   15966: # Provide a safe default value.
                   15967: : "${ac_cv_func_select_args=int,int *,struct timeval *}"
                   15968: 
                   15969: fi
                   15970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
                   15971: $as_echo "$ac_cv_func_select_args" >&6; }
                   15972: ac_save_IFS=$IFS; IFS=','
                   15973: set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
                   15974: IFS=$ac_save_IFS
                   15975: shift
                   15976: 
                   15977: cat >>confdefs.h <<_ACEOF
                   15978: #define SELECT_TYPE_ARG1 $1
                   15979: _ACEOF
                   15980: 
                   15981: 
                   15982: cat >>confdefs.h <<_ACEOF
                   15983: #define SELECT_TYPE_ARG234 ($2)
                   15984: _ACEOF
                   15985: 
                   15986: 
                   15987: cat >>confdefs.h <<_ACEOF
                   15988: #define SELECT_TYPE_ARG5 ($3)
                   15989: _ACEOF
                   15990: 
                   15991: rm -f conftest*
                   15992: 
                   15993: for ac_func in strftime
                   15994: do :
                   15995:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
                   15996: if test "x$ac_cv_func_strftime" = xyes; then :
                   15997:   cat >>confdefs.h <<_ACEOF
                   15998: #define HAVE_STRFTIME 1
                   15999: _ACEOF
                   16000: 
                   16001: else
                   16002:   # strftime is in -lintl on SCO UNIX.
                   16003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   16004: $as_echo_n "checking for strftime in -lintl... " >&6; }
                   16005: if ${ac_cv_lib_intl_strftime+:} false; then :
                   16006:   $as_echo_n "(cached) " >&6
                   16007: else
                   16008:   ac_check_lib_save_LIBS=$LIBS
                   16009: LIBS="-lintl  $LIBS"
                   16010: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16011: /* end confdefs.h.  */
                   16012: 
                   16013: /* Override any GCC internal prototype to avoid an error.
                   16014:    Use char because int might match the return type of a GCC
                   16015:    builtin and then its argument prototype would still apply.  */
                   16016: #ifdef __cplusplus
                   16017: extern "C"
                   16018: #endif
                   16019: char strftime ();
                   16020: int
                   16021: main ()
                   16022: {
                   16023: return strftime ();
                   16024:   ;
                   16025:   return 0;
                   16026: }
                   16027: _ACEOF
                   16028: if ac_fn_c_try_link "$LINENO"; then :
                   16029:   ac_cv_lib_intl_strftime=yes
                   16030: else
                   16031:   ac_cv_lib_intl_strftime=no
                   16032: fi
                   16033: rm -f core conftest.err conftest.$ac_objext \
                   16034:     conftest$ac_exeext conftest.$ac_ext
                   16035: LIBS=$ac_check_lib_save_LIBS
                   16036: fi
                   16037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   16038: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
                   16039: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
                   16040:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   16041: 
                   16042: LIBS="-lintl $LIBS"
                   16043: fi
                   16044: 
                   16045: fi
                   16046: done
                   16047: 
                   16048: for ac_func in vprintf
                   16049: do :
                   16050:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
                   16051: if test "x$ac_cv_func_vprintf" = xyes; then :
                   16052:   cat >>confdefs.h <<_ACEOF
                   16053: #define HAVE_VPRINTF 1
                   16054: _ACEOF
                   16055: 
                   16056: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
                   16057: if test "x$ac_cv_func__doprnt" = xyes; then :
                   16058: 
                   16059: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
                   16060: 
                   16061: fi
                   16062: 
                   16063: fi
                   16064: done
                   16065: 
                   16066: 
                   16067: 
                   16068: TMPLIBS="$LIBS"
                   16069: ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
                   16070: if test "x$ac_cv_header_math_h" = xyes; then :
                   16071:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
                   16072: $as_echo_n "checking for pow in -lm... " >&6; }
                   16073: if ${ac_cv_lib_m_pow+:} false; then :
                   16074:   $as_echo_n "(cached) " >&6
                   16075: else
                   16076:   ac_check_lib_save_LIBS=$LIBS
                   16077: LIBS="-lm  $LIBS"
                   16078: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16079: /* end confdefs.h.  */
                   16080: 
                   16081: /* Override any GCC internal prototype to avoid an error.
                   16082:    Use char because int might match the return type of a GCC
                   16083:    builtin and then its argument prototype would still apply.  */
                   16084: #ifdef __cplusplus
                   16085: extern "C"
                   16086: #endif
                   16087: char pow ();
                   16088: int
                   16089: main ()
                   16090: {
                   16091: return pow ();
                   16092:   ;
                   16093:   return 0;
                   16094: }
                   16095: _ACEOF
                   16096: if ac_fn_c_try_link "$LINENO"; then :
                   16097:   ac_cv_lib_m_pow=yes
                   16098: else
                   16099:   ac_cv_lib_m_pow=no
                   16100: fi
                   16101: rm -f core conftest.err conftest.$ac_objext \
                   16102:     conftest$ac_exeext conftest.$ac_ext
                   16103: LIBS=$ac_check_lib_save_LIBS
                   16104: fi
                   16105: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
                   16106: $as_echo "$ac_cv_lib_m_pow" >&6; }
                   16107: if test "x$ac_cv_lib_m_pow" = xyes; then :
                   16108:   LIBM="-lm"
                   16109:      LIBS="$LIBS $LIBM"
                   16110: 
                   16111: $as_echo "#define HAVE_LIBM /**/" >>confdefs.h
                   16112: 
                   16113:      for ac_func in pow
                   16114: do :
                   16115:   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
                   16116: if test "x$ac_cv_func_pow" = xyes; then :
                   16117:   cat >>confdefs.h <<_ACEOF
                   16118: #define HAVE_POW 1
                   16119: _ACEOF
                   16120: 
                   16121: else
                   16122:   LIBM=""
                   16123: fi
                   16124: done
                   16125: 
                   16126: 
                   16127: fi
                   16128: 
                   16129: 
                   16130: fi
                   16131: 
                   16132: 
                   16133: if test x"$LIBM" = x ; then
                   16134:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find working pow function - bgpd may not link" >&5
                   16135: $as_echo "$as_me: WARNING: Unable to find working pow function - bgpd may not link" >&2;}
                   16136: fi
                   16137: LIBS="$TMPLIBS"
                   16138: 
                   16139: 
                   16140: for ac_func in dup2 ftruncate getcwd gethostbyname getpagesize gettimeofday \
                   16141:        inet_ntoa inet_aton strnlen \
                   16142:        memchr memmove memset select socket \
                   16143:        strcasecmp strchr strcspn strdup strerror \
                   16144:        strncasecmp strndup strrchr strspn strstr \
                   16145:        strtol strtoul strlcat strlcpy \
                   16146:        daemon snprintf vsnprintf \
                   16147:        if_nametoindex if_indextoname getifaddrs \
                   16148:        uname fcntl
                   16149: do :
                   16150:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   16151: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   16152: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   16153:   cat >>confdefs.h <<_ACEOF
                   16154: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16155: _ACEOF
                   16156: 
                   16157: fi
                   16158: done
                   16159: 
                   16160: 
                   16161: for ac_func in setproctitle
                   16162: do :
                   16163:   ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
                   16164: if test "x$ac_cv_func_setproctitle" = xyes; then :
                   16165:   cat >>confdefs.h <<_ACEOF
                   16166: #define HAVE_SETPROCTITLE 1
                   16167: _ACEOF
                   16168: 
                   16169: else
                   16170:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
                   16171: $as_echo_n "checking for setproctitle in -lutil... " >&6; }
                   16172: if ${ac_cv_lib_util_setproctitle+:} false; then :
                   16173:   $as_echo_n "(cached) " >&6
                   16174: else
                   16175:   ac_check_lib_save_LIBS=$LIBS
                   16176: LIBS="-lutil  $LIBS"
                   16177: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16178: /* end confdefs.h.  */
                   16179: 
                   16180: /* Override any GCC internal prototype to avoid an error.
                   16181:    Use char because int might match the return type of a GCC
                   16182:    builtin and then its argument prototype would still apply.  */
                   16183: #ifdef __cplusplus
                   16184: extern "C"
                   16185: #endif
                   16186: char setproctitle ();
                   16187: int
                   16188: main ()
                   16189: {
                   16190: return setproctitle ();
                   16191:   ;
                   16192:   return 0;
                   16193: }
                   16194: _ACEOF
                   16195: if ac_fn_c_try_link "$LINENO"; then :
                   16196:   ac_cv_lib_util_setproctitle=yes
                   16197: else
                   16198:   ac_cv_lib_util_setproctitle=no
                   16199: fi
                   16200: rm -f core conftest.err conftest.$ac_objext \
                   16201:     conftest$ac_exeext conftest.$ac_ext
                   16202: LIBS=$ac_check_lib_save_LIBS
                   16203: fi
                   16204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
                   16205: $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
                   16206: if test "x$ac_cv_lib_util_setproctitle" = xyes; then :
                   16207:   LIBS="$LIBS -lutil"
                   16208: 
                   16209: $as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
                   16210: 
                   16211: 
                   16212: 
                   16213: fi
                   16214: 
                   16215: 
                   16216: 
                   16217: fi
                   16218: done
                   16219: 
                   16220: 
                   16221: { $as_echo "$as_me:${as_lineno-$LINENO}: checking zebra between kernel interface method" >&5
                   16222: $as_echo_n "checking zebra between kernel interface method... " >&6; }
                   16223: if test x"$opsys" = x"gnu-linux"; then
                   16224:   if test "${enable_netlink}" = "yes";then
                   16225:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5
                   16226: $as_echo "netlink" >&6; }
                   16227:     RT_METHOD=rt_netlink.o
                   16228: 
                   16229: $as_echo "#define HAVE_NETLINK /**/" >>confdefs.h
                   16230: 
                   16231:     netlink=yes
                   16232:   elif test "${enable_netlink}" = "no"; then
                   16233:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ioctl" >&5
                   16234: $as_echo "ioctl" >&6; }
                   16235:     RT_METHOD=rt_ioctl.o
                   16236:     netlink=no
                   16237:   else
                   16238:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5
                   16239: $as_echo "netlink" >&6; }
                   16240:     RT_METHOD=rt_netlink.o
                   16241: 
                   16242: $as_echo "#define HAVE_NETLINK /**/" >>confdefs.h
                   16243: 
                   16244:     netlink=yes
                   16245:   fi
                   16246: elif test x"$opsys" = x"sol2-6";then
                   16247:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Route socket" >&5
                   16248: $as_echo "Route socket" >&6; }
                   16249:   KERNEL_METHOD="kernel_socket.o"
                   16250:   RT_METHOD="rt_socket.o"
                   16251: elif test x"$opsys" = x"sol8";then
                   16252:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Route socket" >&5
                   16253: $as_echo "Route socket" >&6; }
                   16254:   KERNEL_METHOD="kernel_socket.o"
                   16255:   RT_METHOD="rt_socket.o"
                   16256: elif test "$opsys" = "irix" ; then
                   16257:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Route socket" >&5
                   16258: $as_echo "Route socket" >&6; }
                   16259:   KERNEL_METHOD="kernel_socket.o"
                   16260:   RT_METHOD="rt_socket.o"
                   16261: else
                   16262:   if test "$cross_compiling" = yes; then :
                   16263:   KERNEL_METHOD=kernel_socket.o
                   16264:    RT_METHOD=rt_socket.o
                   16265:    { $as_echo "$as_me:${as_lineno-$LINENO}: result: socket" >&5
                   16266: $as_echo "socket" >&6; }
                   16267: else
                   16268:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16269: /* end confdefs.h.  */
                   16270: #include <errno.h>
                   16271: #include <sys/types.h>
                   16272: #include <sys/socket.h>
                   16273: 
                   16274: main ()
                   16275: {
                   16276:   int ac_sock;
                   16277: 
                   16278:   ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
                   16279:   if (ac_sock < 0 && errno == EINVAL)
                   16280:     exit (1);
                   16281:   exit (0);
                   16282: }
                   16283: _ACEOF
                   16284: if ac_fn_c_try_run "$LINENO"; then :
                   16285:   KERNEL_METHOD=kernel_socket.o
                   16286:    RT_METHOD=rt_socket.o
                   16287:    { $as_echo "$as_me:${as_lineno-$LINENO}: result: socket" >&5
                   16288: $as_echo "socket" >&6; }
                   16289: else
                   16290:   RT_METHOD=rt_ioctl.o
                   16291:    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ioctl" >&5
                   16292: $as_echo "ioctl" >&6; }
                   16293: fi
                   16294: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   16295:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   16296: fi
                   16297: 
                   16298: fi
                   16299: 
                   16300: 
                   16301: 
1.1.1.4 ! misho    16302:  if test "x$netlink" = "xyes"; then
        !          16303:   HAVE_NETLINK_TRUE=
        !          16304:   HAVE_NETLINK_FALSE='#'
        !          16305: else
        !          16306:   HAVE_NETLINK_TRUE='#'
        !          16307:   HAVE_NETLINK_FALSE=
        !          16308: fi
        !          16309: 
1.1       misho    16310: 
                   16311: 
                   16312: $as_echo "#define ISIS_METHOD_PFPACKET 1" >>confdefs.h
                   16313: 
                   16314: 
                   16315: $as_echo "#define ISIS_METHOD_DLPI 2" >>confdefs.h
                   16316: 
                   16317: 
                   16318: $as_echo "#define ISIS_METHOD_BPF 3" >>confdefs.h
                   16319: 
                   16320: ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
                   16321: if test "x$ac_cv_header_net_bpf_h" = xyes; then :
                   16322: 
                   16323: fi
                   16324: 
                   16325: 
                   16326: ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
                   16327: if test "x$ac_cv_header_sys_dlpi_h" = xyes; then :
                   16328: 
                   16329: fi
                   16330: 
                   16331: 
                   16332: { $as_echo "$as_me:${as_lineno-$LINENO}: checking zebra IS-IS I/O method" >&5
                   16333: $as_echo_n "checking zebra IS-IS I/O method... " >&6; }
                   16334: if test x"$opsys" = x"gnu-linux"; then
                   16335:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: pfpacket" >&5
                   16336: $as_echo "pfpacket" >&6; }
                   16337:   ISIS_METHOD_MACRO="ISIS_METHOD_PFPACKET"
                   16338: elif test x"$opsys" = x"sol2-6" -o x"$opsys" = x"sol8"; then
                   16339:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLPI" >&5
                   16340: $as_echo "DLPI" >&6; }
                   16341:   ISIS_METHOD_MACRO="ISIS_METHOD_DLPI"
                   16342: else
                   16343:   if test $ac_cv_header_net_bpf_h = no; then
                   16344:     if test $ac_cv_header_sys_dlpi_h = no; then
                   16345:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
                   16346: $as_echo "none" >&6; }
                   16347:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** IS-IS support will not be built ***" >&5
                   16348: $as_echo "$as_me: WARNING: *** IS-IS support will not be built ***" >&2;}
                   16349:       ISISD=""
                   16350:     else
                   16351:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLPI" >&5
                   16352: $as_echo "DLPI" >&6; }
                   16353:     fi
                   16354:     ISIS_METHOD_MACRO="ISIS_METHOD_DLPI"
                   16355:   else
                   16356:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: BPF" >&5
                   16357: $as_echo "BPF" >&6; }
                   16358:     ISIS_METHOD_MACRO="ISIS_METHOD_BPF"
                   16359:   fi
                   16360: fi
                   16361: 
                   16362: cat >>confdefs.h <<_ACEOF
                   16363: #define ISIS_METHOD $ISIS_METHOD_MACRO
                   16364: _ACEOF
                   16365: 
                   16366: 
                   16367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken CMSG_FIRSTHDR" >&5
                   16368: $as_echo_n "checking for broken CMSG_FIRSTHDR... " >&6; }
                   16369: if test "$cross_compiling" = yes; then :
                   16370:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   16371: $as_echo "no" >&6; }
                   16372: else
                   16373:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16374: /* end confdefs.h.  */
                   16375: 
                   16376: #ifdef SUNOS_5
                   16377: #define _XPG4_2
                   16378: #define __EXTENSIONS__
                   16379: #endif
                   16380: #ifdef HAVE_STDLIB_H
                   16381: # include <stdlib.h>
                   16382: #endif
                   16383: #ifdef HAVE_SYS_TYPES_H
                   16384: #include <sys/types.h>
                   16385: #endif
                   16386: #ifdef HAVE_SYS_SOCKET_H
                   16387: #include <sys/socket.h>
                   16388: #endif
                   16389: 
                   16390: main()
                   16391: {
                   16392:   struct msghdr msg;
                   16393:   char buf[4];
                   16394: 
                   16395:   msg.msg_control = buf;
                   16396:   msg.msg_controllen = 0;
                   16397: 
                   16398:   if (CMSG_FIRSTHDR(&msg) != NULL)
                   16399:     exit(0);
                   16400:   exit (1);
                   16401: }
                   16402: _ACEOF
                   16403: if ac_fn_c_try_run "$LINENO"; then :
                   16404:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - using workaround" >&5
                   16405: $as_echo "yes - using workaround" >&6; }
                   16406: $as_echo "#define HAVE_BROKEN_CMSG_FIRSTHDR /**/" >>confdefs.h
                   16407: 
                   16408: else
                   16409:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   16410: $as_echo "no" >&6; }
                   16411: fi
                   16412: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   16413:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   16414: fi
                   16415: 
                   16416: 
                   16417: { $as_echo "$as_me:${as_lineno-$LINENO}: checking route read method" >&5
                   16418: $as_echo_n "checking route read method... " >&6; }
                   16419: if ${quagga_cv_rtread_method+:} false; then :
                   16420:   $as_echo_n "(cached) " >&6
                   16421: else
                   16422:   if test "x$netlink" = xyes; then
                   16423:   quagga_cv_rtread_method="netlink"
                   16424: else
                   16425: for quagga_cv_rtread_method in /proc/net/route /dev/ip /dev/null;
                   16426: do
                   16427:   test x`ls $quagga_cv_rtread_method 2>/dev/null` = x"$quagga_cv_rtread_method" && break
                   16428: done
                   16429: case $quagga_cv_rtread_method in
                   16430:   "/proc/net/route") quagga_cv_rtread_method="proc";;
                   16431:   "/dev/ip")
                   16432:                      case "$host" in
                   16433:                        *-freebsd*)    quagga_cv_rtread_method="sysctl";;
                   16434:                        *)             quagga_cv_rtread_method="getmsg";;
                   16435:                      esac;;
                   16436:        *)
                   16437:                      quagga_cv_rtread_method="sysctl";;
                   16438: esac
                   16439: fi
                   16440: fi
                   16441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_rtread_method" >&5
                   16442: $as_echo "$quagga_cv_rtread_method" >&6; }
                   16443: RTREAD_METHOD=rtread_${quagga_cv_rtread_method}.o
                   16444: 
                   16445: 
                   16446: IOCTL_METHOD=ioctl.o
                   16447: { $as_echo "$as_me:${as_lineno-$LINENO}: checking interface looking up method" >&5
                   16448: $as_echo_n "checking interface looking up method... " >&6; }
                   16449: if test "$netlink" = yes; then
                   16450:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5
                   16451: $as_echo "netlink" >&6; }
                   16452:   IF_METHOD=if_netlink.o
                   16453: elif test "$opsys" = "sol2-6";then
                   16454:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris GIF" >&5
                   16455: $as_echo "Solaris GIF" >&6; }
                   16456:   IF_METHOD=if_ioctl.o
                   16457: elif test "$opsys" = "sol8";then
                   16458:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris GLIF" >&5
                   16459: $as_echo "Solaris GLIF" >&6; }
                   16460:   IF_METHOD=if_ioctl_solaris.o
                   16461:   IOCTL_METHOD=ioctl_solaris.o
                   16462: elif test "$opsys" = "irix" ; then
                   16463:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: IRIX" >&5
                   16464: $as_echo "IRIX" >&6; }
                   16465:   IF_METHOD=if_ioctl.o
                   16466: elif test "$opsys" = "openbsd";then
                   16467:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: openbsd" >&5
                   16468: $as_echo "openbsd" >&6; }
                   16469:   IF_METHOD=if_ioctl.o
                   16470: elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
                   16471:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: sysctl" >&5
                   16472: $as_echo "sysctl" >&6; }
                   16473:     IF_METHOD=if_sysctl.o
                   16474: 
                   16475: $as_echo "#define HAVE_NET_RT_IFLIST /**/" >>confdefs.h
                   16476: 
                   16477: else
                   16478:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ioctl" >&5
                   16479: $as_echo "ioctl" >&6; }
                   16480:     IF_METHOD=if_ioctl.o
                   16481: fi
                   16482: 
                   16483: 
                   16484: 
                   16485: ac_fn_c_check_member "$LINENO" "struct ip_mreqn" "imr_ifindex" "ac_cv_member_struct_ip_mreqn_imr_ifindex" "#ifdef SUNOS_5
                   16486: #define _XPG4_2
                   16487: #define __EXTENSIONS__
                   16488: #endif
                   16489: #include <stdio.h>
                   16490: #if STDC_HEADERS
                   16491: # include <stdlib.h>
                   16492: # include <stddef.h>
                   16493: #else
                   16494: # if HAVE_STDLIB_H
                   16495: #  include <stdlib.h>
                   16496: # endif
                   16497: #endif
                   16498: #if HAVE_SYS_TYPES_H
                   16499: # include <sys/types.h>
                   16500: #endif
                   16501: /* sys/conf.h depends on param.h on FBSD at least */
                   16502: #if HAVE_SYS_PARAM_H
                   16503: # include <sys/param.h>
                   16504: #endif
                   16505: /* Required for MAXSIG */
                   16506: #if HAVE_SIGNAL_H
                   16507: # include <signal.h>
                   16508: #endif
                   16509: #if HAVE_SYS_SOCKET_H
                   16510: # include <sys/socket.h>
                   16511: #endif
1.1.1.4 ! misho    16512: #ifdef __APPLE__
        !          16513: # define __APPLE_USE_RFC_3542
        !          16514: #endif
1.1       misho    16515: #if HAVE_NETINET_IN_H
                   16516: # include <netinet/in.h>
                   16517: #endif
                   16518: #ifdef TIME_WITH_SYS_TIME
                   16519: # include <sys/time.h>
                   16520: # include <time.h>
                   16521: #else
                   16522: # ifdef HAVE_SYS_TIME_H
                   16523: #  include <sys/time.h>
                   16524: # else
                   16525: #  include <time.h>
                   16526: # endif
                   16527: #endif /* TIME_WITH_SYS_TIME */
                   16528: 
                   16529: #if HAVE_NET_IF_H
                   16530: # include <net/if.h>
                   16531: #endif
                   16532: 
                   16533: #if HAVE_NET_IF_VAR_H
                   16534: # include <net/if_var.h>
                   16535: #endif
                   16536: 
                   16537: #if HAVE_SYS_UN_H
                   16538: # include <sys/un.h>
                   16539: #endif
                   16540: #if HAVE_NETINET_IN_SYSTM_H
                   16541: # include <netinet/in_systm.h>
                   16542: #endif
                   16543: #if HAVE_NETINET_IN_VAR_H
                   16544: # include <netinet/in_var.h>
                   16545: #endif
                   16546: #if HAVE_NET_IF_DL_H
                   16547: # include <net/if_dl.h>
                   16548: #endif
                   16549: #if HAVE_NET_NETOPT_H
                   16550: # include <net/netopt.h>
                   16551: #endif
                   16552: #if HAVE_NET_ROUTE_H
                   16553: # include <net/route.h>
                   16554: #endif
                   16555: #if HAVE_INET_ND_H
                   16556: # include <inet/nd.h>
                   16557: #endif
                   16558: #if HAVE_ARPA_INET_H
                   16559: # include <arpa/inet.h>
                   16560: #endif
                   16561: /* Required for IDRP */
                   16562: #if HAVE_NETINET_IP_ICMP_H
                   16563: # include <netinet/ip_icmp.h>
                   16564: #endif
                   16565: 
                   16566: "
                   16567: if test "x$ac_cv_member_struct_ip_mreqn_imr_ifindex" = xyes; then :
                   16568: 
                   16569: cat >>confdefs.h <<_ACEOF
                   16570: #define HAVE_STRUCT_IP_MREQN_IMR_IFINDEX 1
                   16571: _ACEOF
                   16572: 
                   16573: 
                   16574: fi
                   16575: 
                   16576: 
                   16577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD struct ip_mreq hack" >&5
                   16578: $as_echo_n "checking for BSD struct ip_mreq hack... " >&6; }
                   16579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16580: /* end confdefs.h.  */
                   16581: #ifdef HAVE_SYS_PARAM_H
                   16582: #include <sys/param.h>
                   16583: #endif
                   16584: int
                   16585: main ()
                   16586: {
1.1.1.4 ! misho    16587: #if (defined(__FreeBSD__) && ((__FreeBSD_version >= 500022 && __FreeBSD_version < 700000) || (__FreeBSD_version < 500000 && __FreeBSD_version >= 440000))) || (defined(__NetBSD__) && defined(__NetBSD_Version__) && __NetBSD_Version__ >= 106010000) || defined(__OpenBSD__) || defined(__APPLE__)
1.1       misho    16588:   return (0);
                   16589: #else
                   16590:   #error No support for BSD struct ip_mreq hack detected
                   16591: #endif
                   16592:   ;
                   16593:   return 0;
                   16594: }
                   16595: _ACEOF
                   16596: if ac_fn_c_try_compile "$LINENO"; then :
                   16597:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   16598: $as_echo "yes" >&6; }
                   16599: 
                   16600: $as_echo "#define HAVE_BSD_STRUCT_IP_MREQ_HACK /**/" >>confdefs.h
                   16601: 
                   16602: else
                   16603:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   16604: $as_echo "no" >&6; }
                   16605: fi
                   16606: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   16607: 
                   16608: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC3678 protocol-independed API" >&5
                   16609: $as_echo_n "checking for RFC3678 protocol-independed API... " >&6; }
                   16610: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16611: /* end confdefs.h.  */
                   16612: 
                   16613: #include <sys/types.h>
                   16614: #include <netinet/in.h>
                   16615: 
                   16616: int
                   16617: main ()
                   16618: {
                   16619: struct group_req gr; int sock; setsockopt(sock, IPPROTO_IP, MCAST_JOIN_GROUP, (void*)&gr, sizeof(gr));
                   16620: 
                   16621:   ;
                   16622:   return 0;
                   16623: }
                   16624: _ACEOF
                   16625: if ac_fn_c_try_compile "$LINENO"; then :
                   16626:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   16627: $as_echo "yes" >&6; }
                   16628: 
                   16629: $as_echo "#define HAVE_RFC3678 1" >>confdefs.h
                   16630: 
                   16631: else
                   16632:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   16633: $as_echo "no" >&6; }
                   16634: fi
                   16635: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   16636: 
                   16637: ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef SUNOS_5
                   16638: #define _XPG4_2
                   16639: #define __EXTENSIONS__
                   16640: #endif
                   16641: #include <stdio.h>
                   16642: #if STDC_HEADERS
                   16643: # include <stdlib.h>
                   16644: # include <stddef.h>
                   16645: #else
                   16646: # if HAVE_STDLIB_H
                   16647: #  include <stdlib.h>
                   16648: # endif
                   16649: #endif
                   16650: #if HAVE_SYS_TYPES_H
                   16651: # include <sys/types.h>
                   16652: #endif
                   16653: /* sys/conf.h depends on param.h on FBSD at least */
                   16654: #if HAVE_SYS_PARAM_H
                   16655: # include <sys/param.h>
                   16656: #endif
                   16657: /* Required for MAXSIG */
                   16658: #if HAVE_SIGNAL_H
                   16659: # include <signal.h>
                   16660: #endif
                   16661: #if HAVE_SYS_SOCKET_H
                   16662: # include <sys/socket.h>
                   16663: #endif
1.1.1.4 ! misho    16664: #ifdef __APPLE__
        !          16665: # define __APPLE_USE_RFC_3542
        !          16666: #endif
1.1       misho    16667: #if HAVE_NETINET_IN_H
                   16668: # include <netinet/in.h>
                   16669: #endif
                   16670: #ifdef TIME_WITH_SYS_TIME
                   16671: # include <sys/time.h>
                   16672: # include <time.h>
                   16673: #else
                   16674: # ifdef HAVE_SYS_TIME_H
                   16675: #  include <sys/time.h>
                   16676: # else
                   16677: #  include <time.h>
                   16678: # endif
                   16679: #endif /* TIME_WITH_SYS_TIME */
                   16680: 
                   16681: #if HAVE_NET_IF_H
                   16682: # include <net/if.h>
                   16683: #endif
                   16684: 
                   16685: #if HAVE_NET_IF_VAR_H
                   16686: # include <net/if_var.h>
                   16687: #endif
                   16688: 
                   16689: #if HAVE_SYS_UN_H
                   16690: # include <sys/un.h>
                   16691: #endif
                   16692: #if HAVE_NETINET_IN_SYSTM_H
                   16693: # include <netinet/in_systm.h>
                   16694: #endif
                   16695: #if HAVE_NETINET_IN_VAR_H
                   16696: # include <netinet/in_var.h>
                   16697: #endif
                   16698: #if HAVE_NET_IF_DL_H
                   16699: # include <net/if_dl.h>
                   16700: #endif
                   16701: #if HAVE_NET_NETOPT_H
                   16702: # include <net/netopt.h>
                   16703: #endif
                   16704: #if HAVE_NET_ROUTE_H
                   16705: # include <net/route.h>
                   16706: #endif
                   16707: #if HAVE_INET_ND_H
                   16708: # include <inet/nd.h>
                   16709: #endif
                   16710: #if HAVE_ARPA_INET_H
                   16711: # include <arpa/inet.h>
                   16712: #endif
                   16713: /* Required for IDRP */
                   16714: #if HAVE_NETINET_IP_ICMP_H
                   16715: # include <netinet/ip_icmp.h>
                   16716: #endif
                   16717: 
                   16718: "
                   16719: if test "x$ac_cv_header_net_if_h" = xyes; then :
                   16720:   ac_fn_c_check_header_compile "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "#ifdef SUNOS_5
                   16721: #define _XPG4_2
                   16722: #define __EXTENSIONS__
                   16723: #endif
                   16724: #include <stdio.h>
                   16725: #if STDC_HEADERS
                   16726: # include <stdlib.h>
                   16727: # include <stddef.h>
                   16728: #else
                   16729: # if HAVE_STDLIB_H
                   16730: #  include <stdlib.h>
                   16731: # endif
                   16732: #endif
                   16733: #if HAVE_SYS_TYPES_H
                   16734: # include <sys/types.h>
                   16735: #endif
                   16736: /* sys/conf.h depends on param.h on FBSD at least */
                   16737: #if HAVE_SYS_PARAM_H
                   16738: # include <sys/param.h>
                   16739: #endif
                   16740: /* Required for MAXSIG */
                   16741: #if HAVE_SIGNAL_H
                   16742: # include <signal.h>
                   16743: #endif
                   16744: #if HAVE_SYS_SOCKET_H
                   16745: # include <sys/socket.h>
                   16746: #endif
1.1.1.4 ! misho    16747: #ifdef __APPLE__
        !          16748: # define __APPLE_USE_RFC_3542
        !          16749: #endif
1.1       misho    16750: #if HAVE_NETINET_IN_H
                   16751: # include <netinet/in.h>
                   16752: #endif
                   16753: #ifdef TIME_WITH_SYS_TIME
                   16754: # include <sys/time.h>
                   16755: # include <time.h>
                   16756: #else
                   16757: # ifdef HAVE_SYS_TIME_H
                   16758: #  include <sys/time.h>
                   16759: # else
                   16760: #  include <time.h>
                   16761: # endif
                   16762: #endif /* TIME_WITH_SYS_TIME */
                   16763: 
                   16764: #if HAVE_NET_IF_H
                   16765: # include <net/if.h>
                   16766: #endif
                   16767: 
                   16768: #if HAVE_NET_IF_VAR_H
                   16769: # include <net/if_var.h>
                   16770: #endif
                   16771: 
                   16772: #if HAVE_SYS_UN_H
                   16773: # include <sys/un.h>
                   16774: #endif
                   16775: #if HAVE_NETINET_IN_SYSTM_H
                   16776: # include <netinet/in_systm.h>
                   16777: #endif
                   16778: #if HAVE_NETINET_IN_VAR_H
                   16779: # include <netinet/in_var.h>
                   16780: #endif
                   16781: #if HAVE_NET_IF_DL_H
                   16782: # include <net/if_dl.h>
                   16783: #endif
                   16784: #if HAVE_NET_NETOPT_H
                   16785: # include <net/netopt.h>
                   16786: #endif
                   16787: #if HAVE_NET_ROUTE_H
                   16788: # include <net/route.h>
                   16789: #endif
                   16790: #if HAVE_INET_ND_H
                   16791: # include <inet/nd.h>
                   16792: #endif
                   16793: #if HAVE_ARPA_INET_H
                   16794: # include <arpa/inet.h>
                   16795: #endif
                   16796: /* Required for IDRP */
                   16797: #if HAVE_NETINET_IP_ICMP_H
                   16798: # include <netinet/ip_icmp.h>
                   16799: #endif
                   16800: 
                   16801: "
                   16802: if test "x$ac_cv_header_net_if_media_h" = xyes; then :
                   16803: 
                   16804:     ac_fn_c_check_member "$LINENO" "struct ifmediareq" "ifm_status" "ac_cv_member_struct_ifmediareq_ifm_status" "#ifdef SUNOS_5
                   16805: #define _XPG4_2
                   16806: #define __EXTENSIONS__
                   16807: #endif
                   16808: #include <stdio.h>
                   16809: #if STDC_HEADERS
                   16810: # include <stdlib.h>
                   16811: # include <stddef.h>
                   16812: #else
                   16813: # if HAVE_STDLIB_H
                   16814: #  include <stdlib.h>
                   16815: # endif
                   16816: #endif
                   16817: #if HAVE_SYS_TYPES_H
                   16818: # include <sys/types.h>
                   16819: #endif
                   16820: /* sys/conf.h depends on param.h on FBSD at least */
                   16821: #if HAVE_SYS_PARAM_H
                   16822: # include <sys/param.h>
                   16823: #endif
                   16824: /* Required for MAXSIG */
                   16825: #if HAVE_SIGNAL_H
                   16826: # include <signal.h>
                   16827: #endif
                   16828: #if HAVE_SYS_SOCKET_H
                   16829: # include <sys/socket.h>
                   16830: #endif
1.1.1.4 ! misho    16831: #ifdef __APPLE__
        !          16832: # define __APPLE_USE_RFC_3542
        !          16833: #endif
1.1       misho    16834: #if HAVE_NETINET_IN_H
                   16835: # include <netinet/in.h>
                   16836: #endif
                   16837: #ifdef TIME_WITH_SYS_TIME
                   16838: # include <sys/time.h>
                   16839: # include <time.h>
                   16840: #else
                   16841: # ifdef HAVE_SYS_TIME_H
                   16842: #  include <sys/time.h>
                   16843: # else
                   16844: #  include <time.h>
                   16845: # endif
                   16846: #endif /* TIME_WITH_SYS_TIME */
                   16847: 
                   16848: #if HAVE_NET_IF_H
                   16849: # include <net/if.h>
                   16850: #endif
                   16851: 
                   16852: #if HAVE_NET_IF_VAR_H
                   16853: # include <net/if_var.h>
                   16854: #endif
                   16855: 
                   16856: #if HAVE_SYS_UN_H
                   16857: # include <sys/un.h>
                   16858: #endif
                   16859: #if HAVE_NETINET_IN_SYSTM_H
                   16860: # include <netinet/in_systm.h>
                   16861: #endif
                   16862: #if HAVE_NETINET_IN_VAR_H
                   16863: # include <netinet/in_var.h>
                   16864: #endif
                   16865: #if HAVE_NET_IF_DL_H
                   16866: # include <net/if_dl.h>
                   16867: #endif
                   16868: #if HAVE_NET_NETOPT_H
                   16869: # include <net/netopt.h>
                   16870: #endif
                   16871: #if HAVE_NET_ROUTE_H
                   16872: # include <net/route.h>
                   16873: #endif
                   16874: #if HAVE_INET_ND_H
                   16875: # include <inet/nd.h>
                   16876: #endif
                   16877: #if HAVE_ARPA_INET_H
                   16878: # include <arpa/inet.h>
                   16879: #endif
                   16880: /* Required for IDRP */
                   16881: #if HAVE_NETINET_IP_ICMP_H
                   16882: # include <netinet/ip_icmp.h>
                   16883: #endif
                   16884: 
                   16885:       #include <net/if_media.h>
                   16886: 
                   16887: "
                   16888: if test "x$ac_cv_member_struct_ifmediareq_ifm_status" = xyes; then :
                   16889: 
                   16890: cat >>confdefs.h <<_ACEOF
                   16891: #define HAVE_STRUCT_IFMEDIAREQ_IFM_STATUS 1
                   16892: _ACEOF
                   16893: 
                   16894: 
                   16895: $as_echo "#define HAVE_BSD_LINK_DETECT /**/" >>confdefs.h
                   16896: 
                   16897: fi
                   16898: 
                   16899: fi
                   16900: 
                   16901: 
                   16902: fi
                   16903: 
                   16904: 
                   16905: 
1.1.1.4 ! misho    16906: ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
        !          16907: if test "x$ac_cv_header_net_if_h" = xyes; then :
        !          16908:   ac_fn_c_check_member "$LINENO" "struct if_data" "ifi_link_state" "ac_cv_member_struct_if_data_ifi_link_state" "#ifdef SUNOS_5
        !          16909: #define _XPG4_2
        !          16910: #define __EXTENSIONS__
        !          16911: #endif
        !          16912: #include <stdio.h>
        !          16913: #if STDC_HEADERS
        !          16914: # include <stdlib.h>
        !          16915: # include <stddef.h>
        !          16916: #else
        !          16917: # if HAVE_STDLIB_H
        !          16918: #  include <stdlib.h>
        !          16919: # endif
        !          16920: #endif
        !          16921: #if HAVE_SYS_TYPES_H
        !          16922: # include <sys/types.h>
        !          16923: #endif
        !          16924: /* sys/conf.h depends on param.h on FBSD at least */
        !          16925: #if HAVE_SYS_PARAM_H
        !          16926: # include <sys/param.h>
        !          16927: #endif
        !          16928: /* Required for MAXSIG */
        !          16929: #if HAVE_SIGNAL_H
        !          16930: # include <signal.h>
        !          16931: #endif
        !          16932: #if HAVE_SYS_SOCKET_H
        !          16933: # include <sys/socket.h>
        !          16934: #endif
        !          16935: #ifdef __APPLE__
        !          16936: # define __APPLE_USE_RFC_3542
        !          16937: #endif
        !          16938: #if HAVE_NETINET_IN_H
        !          16939: # include <netinet/in.h>
        !          16940: #endif
        !          16941: #ifdef TIME_WITH_SYS_TIME
        !          16942: # include <sys/time.h>
        !          16943: # include <time.h>
        !          16944: #else
        !          16945: # ifdef HAVE_SYS_TIME_H
        !          16946: #  include <sys/time.h>
        !          16947: # else
        !          16948: #  include <time.h>
        !          16949: # endif
        !          16950: #endif /* TIME_WITH_SYS_TIME */
        !          16951: 
        !          16952: #if HAVE_NET_IF_H
        !          16953: # include <net/if.h>
        !          16954: #endif
        !          16955: 
        !          16956: #if HAVE_NET_IF_VAR_H
        !          16957: # include <net/if_var.h>
        !          16958: #endif
        !          16959: 
        !          16960: #if HAVE_SYS_UN_H
        !          16961: # include <sys/un.h>
        !          16962: #endif
        !          16963: #if HAVE_NETINET_IN_SYSTM_H
        !          16964: # include <netinet/in_systm.h>
        !          16965: #endif
        !          16966: #if HAVE_NETINET_IN_VAR_H
        !          16967: # include <netinet/in_var.h>
        !          16968: #endif
        !          16969: #if HAVE_NET_IF_DL_H
        !          16970: # include <net/if_dl.h>
        !          16971: #endif
        !          16972: #if HAVE_NET_NETOPT_H
        !          16973: # include <net/netopt.h>
        !          16974: #endif
        !          16975: #if HAVE_NET_ROUTE_H
        !          16976: # include <net/route.h>
        !          16977: #endif
        !          16978: #if HAVE_INET_ND_H
        !          16979: # include <inet/nd.h>
        !          16980: #endif
        !          16981: #if HAVE_ARPA_INET_H
        !          16982: # include <arpa/inet.h>
        !          16983: #endif
        !          16984: /* Required for IDRP */
        !          16985: #if HAVE_NETINET_IP_ICMP_H
        !          16986: # include <netinet/ip_icmp.h>
        !          16987: #endif
        !          16988: 
        !          16989: "
        !          16990: if test "x$ac_cv_member_struct_if_data_ifi_link_state" = xyes; then :
        !          16991: 
        !          16992: cat >>confdefs.h <<_ACEOF
        !          16993: #define HAVE_STRUCT_IF_DATA_IFI_LINK_STATE 1
        !          16994: _ACEOF
        !          16995: 
        !          16996: 
        !          16997: $as_echo "#define HAVE_BSD_IFI_LINK_STATE /**/" >>confdefs.h
        !          16998: 
        !          16999: fi
        !          17000: 
        !          17001: fi
        !          17002: 
        !          17003: 
        !          17004: 
1.1       misho    17005: 
                   17006: ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "#ifdef SUNOS_5
                   17007: #define _XPG4_2
                   17008: #define __EXTENSIONS__
                   17009: #endif
                   17010: #include <stdio.h>
                   17011: #if STDC_HEADERS
                   17012: # include <stdlib.h>
                   17013: # include <stddef.h>
                   17014: #else
                   17015: # if HAVE_STDLIB_H
                   17016: #  include <stdlib.h>
                   17017: # endif
                   17018: #endif
                   17019: #if HAVE_SYS_TYPES_H
                   17020: # include <sys/types.h>
                   17021: #endif
                   17022: /* sys/conf.h depends on param.h on FBSD at least */
                   17023: #if HAVE_SYS_PARAM_H
                   17024: # include <sys/param.h>
                   17025: #endif
                   17026: /* Required for MAXSIG */
                   17027: #if HAVE_SIGNAL_H
                   17028: # include <signal.h>
                   17029: #endif
                   17030: #if HAVE_SYS_SOCKET_H
                   17031: # include <sys/socket.h>
                   17032: #endif
1.1.1.4 ! misho    17033: #ifdef __APPLE__
        !          17034: # define __APPLE_USE_RFC_3542
        !          17035: #endif
1.1       misho    17036: #if HAVE_NETINET_IN_H
                   17037: # include <netinet/in.h>
                   17038: #endif
                   17039: #ifdef TIME_WITH_SYS_TIME
                   17040: # include <sys/time.h>
                   17041: # include <time.h>
                   17042: #else
                   17043: # ifdef HAVE_SYS_TIME_H
                   17044: #  include <sys/time.h>
                   17045: # else
                   17046: #  include <time.h>
                   17047: # endif
                   17048: #endif /* TIME_WITH_SYS_TIME */
                   17049: 
                   17050: #if HAVE_NET_IF_H
                   17051: # include <net/if.h>
                   17052: #endif
                   17053: 
                   17054: #if HAVE_NET_IF_VAR_H
                   17055: # include <net/if_var.h>
                   17056: #endif
                   17057: 
                   17058: #if HAVE_SYS_UN_H
                   17059: # include <sys/un.h>
                   17060: #endif
                   17061: #if HAVE_NETINET_IN_SYSTM_H
                   17062: # include <netinet/in_systm.h>
                   17063: #endif
                   17064: #if HAVE_NETINET_IN_VAR_H
                   17065: # include <netinet/in_var.h>
                   17066: #endif
                   17067: #if HAVE_NET_IF_DL_H
                   17068: # include <net/if_dl.h>
                   17069: #endif
                   17070: #if HAVE_NET_NETOPT_H
                   17071: # include <net/netopt.h>
                   17072: #endif
                   17073: #if HAVE_NET_ROUTE_H
                   17074: # include <net/route.h>
                   17075: #endif
                   17076: #if HAVE_INET_ND_H
                   17077: # include <inet/nd.h>
                   17078: #endif
                   17079: #if HAVE_ARPA_INET_H
                   17080: # include <arpa/inet.h>
                   17081: #endif
                   17082: /* Required for IDRP */
                   17083: #if HAVE_NETINET_IP_ICMP_H
                   17084: # include <netinet/ip_icmp.h>
                   17085: #endif
                   17086: 
                   17087: "
                   17088: if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
                   17089: 
                   17090:     ac_fn_c_check_decl "$LINENO" "TCP_MD5SIG" "ac_cv_have_decl_TCP_MD5SIG" "#ifdef SUNOS_5
                   17091: #define _XPG4_2
                   17092: #define __EXTENSIONS__
                   17093: #endif
                   17094: #include <stdio.h>
                   17095: #if STDC_HEADERS
                   17096: # include <stdlib.h>
                   17097: # include <stddef.h>
                   17098: #else
                   17099: # if HAVE_STDLIB_H
                   17100: #  include <stdlib.h>
                   17101: # endif
                   17102: #endif
                   17103: #if HAVE_SYS_TYPES_H
                   17104: # include <sys/types.h>
                   17105: #endif
                   17106: /* sys/conf.h depends on param.h on FBSD at least */
                   17107: #if HAVE_SYS_PARAM_H
                   17108: # include <sys/param.h>
                   17109: #endif
                   17110: /* Required for MAXSIG */
                   17111: #if HAVE_SIGNAL_H
                   17112: # include <signal.h>
                   17113: #endif
                   17114: #if HAVE_SYS_SOCKET_H
                   17115: # include <sys/socket.h>
                   17116: #endif
1.1.1.4 ! misho    17117: #ifdef __APPLE__
        !          17118: # define __APPLE_USE_RFC_3542
        !          17119: #endif
1.1       misho    17120: #if HAVE_NETINET_IN_H
                   17121: # include <netinet/in.h>
                   17122: #endif
                   17123: #ifdef TIME_WITH_SYS_TIME
                   17124: # include <sys/time.h>
                   17125: # include <time.h>
                   17126: #else
                   17127: # ifdef HAVE_SYS_TIME_H
                   17128: #  include <sys/time.h>
                   17129: # else
                   17130: #  include <time.h>
                   17131: # endif
                   17132: #endif /* TIME_WITH_SYS_TIME */
                   17133: 
                   17134: #if HAVE_NET_IF_H
                   17135: # include <net/if.h>
                   17136: #endif
                   17137: 
                   17138: #if HAVE_NET_IF_VAR_H
                   17139: # include <net/if_var.h>
                   17140: #endif
                   17141: 
                   17142: #if HAVE_SYS_UN_H
                   17143: # include <sys/un.h>
                   17144: #endif
                   17145: #if HAVE_NETINET_IN_SYSTM_H
                   17146: # include <netinet/in_systm.h>
                   17147: #endif
                   17148: #if HAVE_NETINET_IN_VAR_H
                   17149: # include <netinet/in_var.h>
                   17150: #endif
                   17151: #if HAVE_NET_IF_DL_H
                   17152: # include <net/if_dl.h>
                   17153: #endif
                   17154: #if HAVE_NET_NETOPT_H
                   17155: # include <net/netopt.h>
                   17156: #endif
                   17157: #if HAVE_NET_ROUTE_H
                   17158: # include <net/route.h>
                   17159: #endif
                   17160: #if HAVE_INET_ND_H
                   17161: # include <inet/nd.h>
                   17162: #endif
                   17163: #if HAVE_ARPA_INET_H
                   17164: # include <arpa/inet.h>
                   17165: #endif
                   17166: /* Required for IDRP */
                   17167: #if HAVE_NETINET_IP_ICMP_H
                   17168: # include <netinet/ip_icmp.h>
                   17169: #endif
                   17170: 
                   17171:       #include <netinet/tcp.h>
                   17172: 
                   17173: "
                   17174: if test "x$ac_cv_have_decl_TCP_MD5SIG" = xyes; then :
                   17175:   ac_have_decl=1
                   17176: else
                   17177:   ac_have_decl=0
                   17178: fi
                   17179: 
                   17180: cat >>confdefs.h <<_ACEOF
                   17181: #define HAVE_DECL_TCP_MD5SIG $ac_have_decl
                   17182: _ACEOF
                   17183: 
                   17184: fi
                   17185: 
                   17186: 
                   17187: if test $ac_cv_have_decl_TCP_MD5SIG = no; then
                   17188:   ac_fn_c_check_header_mongrel "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default"
                   17189: if test "x$ac_cv_header_linux_tcp_h" = xyes; then :
                   17190: 
                   17191:        ac_fn_c_check_decl "$LINENO" "TCP_MD5SIG" "ac_cv_have_decl_TCP_MD5SIG" "#ifdef SUNOS_5
                   17192: #define _XPG4_2
                   17193: #define __EXTENSIONS__
                   17194: #endif
                   17195: #include <stdio.h>
                   17196: #if STDC_HEADERS
                   17197: # include <stdlib.h>
                   17198: # include <stddef.h>
                   17199: #else
                   17200: # if HAVE_STDLIB_H
                   17201: #  include <stdlib.h>
                   17202: # endif
                   17203: #endif
                   17204: #if HAVE_SYS_TYPES_H
                   17205: # include <sys/types.h>
                   17206: #endif
                   17207: /* sys/conf.h depends on param.h on FBSD at least */
                   17208: #if HAVE_SYS_PARAM_H
                   17209: # include <sys/param.h>
                   17210: #endif
                   17211: /* Required for MAXSIG */
                   17212: #if HAVE_SIGNAL_H
                   17213: # include <signal.h>
                   17214: #endif
                   17215: #if HAVE_SYS_SOCKET_H
                   17216: # include <sys/socket.h>
                   17217: #endif
1.1.1.4 ! misho    17218: #ifdef __APPLE__
        !          17219: # define __APPLE_USE_RFC_3542
        !          17220: #endif
1.1       misho    17221: #if HAVE_NETINET_IN_H
                   17222: # include <netinet/in.h>
                   17223: #endif
                   17224: #ifdef TIME_WITH_SYS_TIME
                   17225: # include <sys/time.h>
                   17226: # include <time.h>
                   17227: #else
                   17228: # ifdef HAVE_SYS_TIME_H
                   17229: #  include <sys/time.h>
                   17230: # else
                   17231: #  include <time.h>
                   17232: # endif
                   17233: #endif /* TIME_WITH_SYS_TIME */
                   17234: 
                   17235: #if HAVE_NET_IF_H
                   17236: # include <net/if.h>
                   17237: #endif
                   17238: 
                   17239: #if HAVE_NET_IF_VAR_H
                   17240: # include <net/if_var.h>
                   17241: #endif
                   17242: 
                   17243: #if HAVE_SYS_UN_H
                   17244: # include <sys/un.h>
                   17245: #endif
                   17246: #if HAVE_NETINET_IN_SYSTM_H
                   17247: # include <netinet/in_systm.h>
                   17248: #endif
                   17249: #if HAVE_NETINET_IN_VAR_H
                   17250: # include <netinet/in_var.h>
                   17251: #endif
                   17252: #if HAVE_NET_IF_DL_H
                   17253: # include <net/if_dl.h>
                   17254: #endif
                   17255: #if HAVE_NET_NETOPT_H
                   17256: # include <net/netopt.h>
                   17257: #endif
                   17258: #if HAVE_NET_ROUTE_H
                   17259: # include <net/route.h>
                   17260: #endif
                   17261: #if HAVE_INET_ND_H
                   17262: # include <inet/nd.h>
                   17263: #endif
                   17264: #if HAVE_ARPA_INET_H
                   17265: # include <arpa/inet.h>
                   17266: #endif
                   17267: /* Required for IDRP */
                   17268: #if HAVE_NETINET_IP_ICMP_H
                   17269: # include <netinet/ip_icmp.h>
                   17270: #endif
                   17271: 
                   17272:           #include <linux/tcp.h>
                   17273: 
                   17274: "
                   17275: if test "x$ac_cv_have_decl_TCP_MD5SIG" = xyes; then :
                   17276:   ac_have_decl=1
                   17277: else
                   17278:   ac_have_decl=0
                   17279: fi
                   17280: 
                   17281: cat >>confdefs.h <<_ACEOF
                   17282: #define HAVE_DECL_TCP_MD5SIG $ac_have_decl
                   17283: _ACEOF
                   17284: 
                   17285: fi
                   17286: 
                   17287: 
                   17288: fi
                   17289: 
                   17290: if test "$netlink" != yes; then
                   17291:   if test -r /proc/net/dev; then
                   17292: 
                   17293: $as_echo "#define HAVE_PROC_NET_DEV /**/" >>confdefs.h
                   17294: 
                   17295:     IF_PROC=if_proc.o
                   17296:   fi
                   17297:   if test -r /proc/net/if_inet6; then
                   17298: 
                   17299: $as_echo "#define HAVE_PROC_NET_IF_INET6 /**/" >>confdefs.h
                   17300: 
                   17301:     IF_PROC=if_proc.o
                   17302:   fi
                   17303: fi
                   17304: 
                   17305: 
                   17306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipforward method" >&5
                   17307: $as_echo_n "checking ipforward method... " >&6; }
                   17308: if ${quagga_cv_ipforward_method+:} false; then :
                   17309:   $as_echo_n "(cached) " >&6
                   17310: else
1.1.1.3   misho    17311:   if test x$cross_compiling = xyes; then
                   17312:   if test x"$opsys" = x"gnu-linux"; then
                   17313:     quagga_cv_ipforward_method=/proc/net/snmp
                   17314:   else
                   17315:     quagga_cv_ipforward_method=/dev/ip
                   17316:   fi
                   17317: else
1.1       misho    17318:   for quagga_cv_ipforward_method in /proc/net/snmp /dev/ip /dev/null;
1.1.1.3   misho    17319:   do
                   17320:     test x`ls $quagga_cv_ipforward_method 2>/dev/null` = x"$quagga_cv_ipforward_method" && break
                   17321:   done
                   17322: fi
1.1       misho    17323: case $quagga_cv_ipforward_method in
                   17324:   "/proc/net/snmp")  quagga_cv_ipforward_method="proc";;
                   17325:   "/dev/ip")
                   17326:                      case "$host" in
                   17327:                        *-nec-sysv4*)  quagga_cv_ipforward_method="ews";;
                   17328:                        *-freebsd*)    quagga_cv_ipforward_method="sysctl";;
                   17329:                        *)             quagga_cv_ipforward_method="solaris";;
                   17330:                      esac;;
                   17331:   *)                 quagga_cv_ipforward_method="sysctl";;
                   17332: esac
                   17333: fi
                   17334: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_ipforward_method" >&5
                   17335: $as_echo "$quagga_cv_ipforward_method" >&6; }
                   17336: IPFORWARD=ipforward_${quagga_cv_ipforward_method}.o
                   17337: 
                   17338: 
                   17339: for ac_func in getaddrinfo
                   17340: do :
                   17341:   ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
                   17342: if test "x$ac_cv_func_getaddrinfo" = xyes; then :
                   17343:   cat >>confdefs.h <<_ACEOF
                   17344: #define HAVE_GETADDRINFO 1
                   17345: _ACEOF
                   17346:  have_getaddrinfo=yes
                   17347: else
                   17348:   have_getaddrinfo=no
                   17349: fi
                   17350: done
                   17351: 
                   17352: 
                   17353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether does this OS have IPv6 stack" >&5
                   17354: $as_echo_n "checking whether does this OS have IPv6 stack... " >&6; }
                   17355: if test "${enable_ipv6}" = "no"; then
                   17356:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
                   17357: $as_echo "disabled" >&6; }
                   17358: else
                   17359:   if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then
                   17360:     zebra_cv_ipv6=yes
                   17361: 
                   17362: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
                   17363: 
                   17364: 
                   17365: $as_echo "#define INRIA_IPV6 1" >>confdefs.h
                   17366: 
                   17367:     RIPNGD="ripngd"
                   17368:     OSPF6D="ospf6d"
                   17369:     LIB_IPV6=""
                   17370:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: INRIA IPv6" >&5
                   17371: $as_echo "INRIA IPv6" >&6; }
                   17372:   elif grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
                   17373:     zebra_cv_ipv6=yes
                   17374: 
                   17375: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
                   17376: 
                   17377: 
                   17378: $as_echo "#define KAME 1" >>confdefs.h
                   17379: 
                   17380:     RIPNGD="ripngd"
                   17381:     OSPF6D="ospf6d"
                   17382:     if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
                   17383:       LIB_IPV6="-L/usr/local/v6/lib -linet6"
                   17384:     fi
                   17385:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: KAME" >&5
                   17386: $as_echo "KAME" >&6; }
                   17387:   elif grep MUSICA /usr/include6/netinet6/in6.h >/dev/null 2>&1; then
                   17388:     zebra_cv_ipv6=yes
                   17389: 
                   17390: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
                   17391: 
                   17392: 
                   17393: $as_echo "#define MUSICA 1" >>confdefs.h
                   17394: 
                   17395: 
                   17396: $as_echo "#define KAME 1" >>confdefs.h
                   17397: 
                   17398:     RIPNGD="ripngd"
                   17399:     OSPF6D="ospf6d"
                   17400:     if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
                   17401:       LIB_IPV6="-L/usr/local/v6/lib -linet6"
                   17402:     fi
                   17403:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: MUSICA" >&5
                   17404: $as_echo "MUSICA" >&6; }
                   17405:   elif grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then
                   17406:     zebra_cv_ipv6=yes
                   17407: 
                   17408: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
                   17409: 
                   17410: 
                   17411: $as_echo "#define NRL 1" >>confdefs.h
                   17412: 
                   17413:     RIPNGD="ripngd"
                   17414:     OSPF6D="ospf6d"
                   17415:     if test x"$opsys" = x"bsdi";then
                   17416: 
                   17417: $as_echo "#define BSDI_NRL /**/" >>confdefs.h
                   17418: 
                   17419:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: BSDI_NRL" >&5
                   17420: $as_echo "BSDI_NRL" >&6; }
                   17421:     else
                   17422:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: NRL" >&5
                   17423: $as_echo "NRL" >&6; }
                   17424:     fi
                   17425:   elif test x"$opsys" = x"sol8"; then
                   17426:     zebra_cv_ipv6=yes;
                   17427: 
                   17428: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
                   17429: 
                   17430: 
                   17431: $as_echo "#define SOLARIS_IPV6 1" >>confdefs.h
                   17432: 
                   17433:     RIPNGD="ripngd"
                   17434:     OSPF6D="ospf6d"
                   17435:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris IPv6" >&5
                   17436: $as_echo "Solaris IPv6" >&6; }
                   17437:   elif test "${enable_ipv6}" = "yes"; then
                   17438:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17439: /* end confdefs.h.  */
                   17440: 
                   17441:       #include <linux/version.h>
                   17442:       /* 2.1.128 or later */
                   17443:       #if LINUX_VERSION_CODE >= 0x020180
                   17444:       yes
                   17445:       #endif
                   17446: _ACEOF
                   17447: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   17448:   $EGREP "yes" >/dev/null 2>&1; then :
                   17449:   zebra_cv_ipv6=yes
                   17450:        zebra_cv_linux_ipv6=yes
                   17451:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux IPv6" >&5
                   17452: $as_echo "Linux IPv6" >&6; }
                   17453: fi
                   17454: rm -f conftest*
                   17455: 
                   17456:   else
                   17457:     if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route"
                   17458:      then
                   17459:       zebra_cv_ipv6=yes
                   17460:       zebra_cv_linux_ipv6=yes
                   17461:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux IPv6" >&5
                   17462: $as_echo "Linux IPv6" >&6; }
                   17463:     fi
                   17464:   fi
                   17465: 
                   17466:   if test "$zebra_cv_linux_ipv6" = "yes";then
                   17467:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libc has IPv6 support" >&5
                   17468: $as_echo_n "checking whether libc has IPv6 support... " >&6; }
                   17469:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17470: /* end confdefs.h.  */
                   17471: #include <netinet/in.h>
                   17472: 
                   17473: int
                   17474: main ()
                   17475: {
                   17476:  int a; a = (int) in6addr_any.s6_addr[0]; if (a != 12345) return a;
                   17477:   ;
                   17478:   return 0;
                   17479: }
                   17480: _ACEOF
                   17481: if ac_fn_c_try_link "$LINENO"; then :
                   17482:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   17483: $as_echo "yes" >&6; }
                   17484:       zebra_cv_ipv6=yes
                   17485:       zebra_cv_linux_ipv6=yes
                   17486: else
                   17487:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   17488: $as_echo "no" >&6; }
                   17489:       zebra_cv_ipv6=no
                   17490:       zebra_cv_linux_ipv6=no
                   17491: fi
                   17492: rm -f core conftest.err conftest.$ac_objext \
                   17493:     conftest$ac_exeext conftest.$ac_ext
                   17494:   fi
                   17495: 
                   17496:   if test "$zebra_cv_linux_ipv6" = "yes";then
                   17497:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc >= 2.1" >&5
                   17498: $as_echo_n "checking for GNU libc >= 2.1... " >&6; }
                   17499: 
                   17500: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
                   17501: 
                   17502:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17503: /* end confdefs.h.  */
                   17504: 
                   17505: #include <features.h>
                   17506: #if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
                   17507:   yes
                   17508: #endif
                   17509: _ACEOF
                   17510: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   17511:   $EGREP "yes" >/dev/null 2>&1; then :
                   17512:   glibc=yes
                   17513: 
                   17514: $as_echo "#define LINUX_IPV6 1" >>confdefs.h
                   17515: 
                   17516:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   17517: $as_echo "yes" >&6; }
                   17518: else
                   17519:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   17520: $as_echo "no" >&6; }
                   17521: 
                   17522: fi
                   17523: rm -f conftest*
                   17524: 
                   17525:     RIPNGD="ripngd"
                   17526:     OSPF6D="ospf6d"
                   17527:     if test "$glibc" != "yes"; then
                   17528:       INCLUDES="-I/usr/inet6/include"
                   17529:       if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
                   17530:          LIB_IPV6="-L/usr/inet6/lib -linet6"
                   17531:       fi
                   17532:     fi
                   17533:   fi
                   17534: 
                   17535:   LIBS="$LIB_IPV6 $LIBS"
                   17536: 
                   17537: 
                   17538:   if test x"$RIPNGD" = x""; then
                   17539:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPv4 only" >&5
                   17540: $as_echo "IPv4 only" >&6; }
                   17541:   fi
                   17542: fi
                   17543: 
                   17544: if test "x${zebra_cv_ipv6}" = "xyes"; then
                   17545: for ac_header in netinet6/in6.h netinet/in6_var.h netinet/icmp6.h \
                   17546:        netinet6/in6_var.h netinet6/nd6.h
                   17547: do :
                   17548:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   17549: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef SUNOS_5
                   17550: #define _XPG4_2
                   17551: #define __EXTENSIONS__
                   17552: #endif
                   17553: #include <stdio.h>
                   17554: #if STDC_HEADERS
                   17555: # include <stdlib.h>
                   17556: # include <stddef.h>
                   17557: #else
                   17558: # if HAVE_STDLIB_H
                   17559: #  include <stdlib.h>
                   17560: # endif
                   17561: #endif
                   17562: #if HAVE_SYS_TYPES_H
                   17563: # include <sys/types.h>
                   17564: #endif
                   17565: /* sys/conf.h depends on param.h on FBSD at least */
                   17566: #if HAVE_SYS_PARAM_H
                   17567: # include <sys/param.h>
                   17568: #endif
                   17569: /* Required for MAXSIG */
                   17570: #if HAVE_SIGNAL_H
                   17571: # include <signal.h>
                   17572: #endif
                   17573: #if HAVE_SYS_SOCKET_H
                   17574: # include <sys/socket.h>
                   17575: #endif
1.1.1.4 ! misho    17576: #ifdef __APPLE__
        !          17577: # define __APPLE_USE_RFC_3542
        !          17578: #endif
1.1       misho    17579: #if HAVE_NETINET_IN_H
                   17580: # include <netinet/in.h>
                   17581: #endif
                   17582: #ifdef TIME_WITH_SYS_TIME
                   17583: # include <sys/time.h>
                   17584: # include <time.h>
                   17585: #else
                   17586: # ifdef HAVE_SYS_TIME_H
                   17587: #  include <sys/time.h>
                   17588: # else
                   17589: #  include <time.h>
                   17590: # endif
                   17591: #endif /* TIME_WITH_SYS_TIME */
                   17592: 
                   17593: #if HAVE_NET_IF_H
                   17594: # include <net/if.h>
                   17595: #endif
                   17596: 
                   17597: #if HAVE_NET_IF_VAR_H
                   17598: # include <net/if_var.h>
                   17599: #endif
                   17600: 
                   17601: #if HAVE_SYS_UN_H
                   17602: # include <sys/un.h>
                   17603: #endif
                   17604: #if HAVE_NETINET_IN_SYSTM_H
                   17605: # include <netinet/in_systm.h>
                   17606: #endif
                   17607: #if HAVE_NETINET_IN_VAR_H
                   17608: # include <netinet/in_var.h>
                   17609: #endif
                   17610: #if HAVE_NET_IF_DL_H
                   17611: # include <net/if_dl.h>
                   17612: #endif
                   17613: #if HAVE_NET_NETOPT_H
                   17614: # include <net/netopt.h>
                   17615: #endif
                   17616: #if HAVE_NET_ROUTE_H
                   17617: # include <net/route.h>
                   17618: #endif
                   17619: #if HAVE_INET_ND_H
                   17620: # include <inet/nd.h>
                   17621: #endif
                   17622: #if HAVE_ARPA_INET_H
                   17623: # include <arpa/inet.h>
                   17624: #endif
                   17625: /* Required for IDRP */
                   17626: #if HAVE_NETINET_IP_ICMP_H
                   17627: # include <netinet/ip_icmp.h>
                   17628: #endif
                   17629: 
                   17630: "
                   17631: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   17632:   cat >>confdefs.h <<_ACEOF
                   17633: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   17634: _ACEOF
                   17635: 
                   17636: fi
                   17637: 
                   17638: done
                   17639: 
                   17640: fi
                   17641: 
                   17642: 
                   17643: if test "${enable_doc}" = "no";then
                   17644:   DOC=""
                   17645: else
                   17646:   DOC="doc"
                   17647: fi
                   17648: 
1.1.1.4 ! misho    17649: if test "${enable_tests}" = "no";then
        !          17650:   BUILD_TESTS=""
        !          17651: else
        !          17652:   BUILD_TESTS="tests"
        !          17653: fi
        !          17654: 
1.1       misho    17655: if test "${enable_zebra}" = "no";then
                   17656:   ZEBRA=""
                   17657: else
                   17658:   ZEBRA="zebra"
                   17659: fi
1.1.1.3   misho    17660:  if test "x$ZEBRA" = "xzebra"; then
                   17661:   ZEBRA_TRUE=
                   17662:   ZEBRA_FALSE='#'
                   17663: else
                   17664:   ZEBRA_TRUE='#'
                   17665:   ZEBRA_FALSE=
                   17666: fi
                   17667: 
1.1       misho    17668: 
                   17669: if test "${enable_bgpd}" = "no";then
                   17670:   BGPD=""
                   17671: else
                   17672:   BGPD="bgpd"
                   17673: fi
1.1.1.3   misho    17674:  if test "x$BGPD" = "xbgpd"; then
                   17675:   BGPD_TRUE=
                   17676:   BGPD_FALSE='#'
                   17677: else
                   17678:   BGPD_TRUE='#'
                   17679:   BGPD_FALSE=
                   17680: fi
                   17681: 
1.1       misho    17682: 
                   17683: if test "${enable_ripd}" = "no";then
                   17684:   RIPD=""
                   17685: else
                   17686:   RIPD="ripd"
                   17687: fi
1.1.1.3   misho    17688:  if test "x$RIPD" = "xripd"; then
                   17689:   RIPD_TRUE=
                   17690:   RIPD_FALSE='#'
                   17691: else
                   17692:   RIPD_TRUE='#'
                   17693:   RIPD_FALSE=
                   17694: fi
                   17695: 
1.1       misho    17696: 
                   17697: if test "${enable_ospfd}" = "no";then
                   17698:   OSPFD=""
                   17699: else
                   17700:   OSPFD="ospfd"
                   17701: fi
1.1.1.3   misho    17702:  if test "x$OSPFD" = "xospfd"; then
                   17703:   OSPFD_TRUE=
                   17704:   OSPFD_FALSE='#'
                   17705: else
                   17706:   OSPFD_TRUE='#'
                   17707:   OSPFD_FALSE=
                   17708: fi
                   17709: 
                   17710: 
                   17711: if test "${enable_babeld}" = "no";then
                   17712:   BABELD=""
                   17713: else
                   17714:   BABELD="babeld"
                   17715: fi
                   17716:  if test "x$BABELD" = "xbabeld"; then
                   17717:   BABELD_TRUE=
                   17718:   BABELD_FALSE='#'
                   17719: else
                   17720:   BABELD_TRUE='#'
                   17721:   BABELD_FALSE=
                   17722: fi
                   17723: 
1.1       misho    17724: 
                   17725: if test "${enable_watchquagga}" = "no";then
                   17726:   WATCHQUAGGA=""
                   17727: else
                   17728:   WATCHQUAGGA="watchquagga"
                   17729: fi
1.1.1.3   misho    17730:  if test "x$WATCHQUAGGA" = "xwatchquagga"; then
                   17731:   WATCHQUAGGA_TRUE=
                   17732:   WATCHQUAGGA_FALSE='#'
                   17733: else
                   17734:   WATCHQUAGGA_TRUE='#'
                   17735:   WATCHQUAGGA_FALSE=
                   17736: fi
                   17737: 
1.1       misho    17738: 
                   17739: OSPFCLIENT=""
                   17740: if test "${enable_opaque_lsa}" != "no"; then
                   17741:   if test "${enable_ospfapi}" != "no";then
                   17742: 
                   17743: $as_echo "#define SUPPORT_OSPF_API /**/" >>confdefs.h
                   17744: 
                   17745: 
                   17746:     if test "${enable_ospfclient}" != "no";then
                   17747:       OSPFCLIENT="ospfclient"
                   17748:     fi
                   17749:   fi
                   17750: 
                   17751: fi
1.1.1.3   misho    17752:  if test "x$OSPFCLIENT" = "xospfclient"; then
                   17753:   OSPFCLIENT_TRUE=
                   17754:   OSPFCLIENT_FALSE='#'
                   17755: else
                   17756:   OSPFCLIENT_TRUE='#'
                   17757:   OSPFCLIENT_FALSE=
                   17758: fi
                   17759: 
1.1       misho    17760: 
                   17761: case "${enable_ripngd}" in
                   17762:   "yes") RIPNGD="ripngd";;
                   17763:   "no" ) RIPNGD="";;
                   17764:   *    ) ;;
                   17765: esac
1.1.1.3   misho    17766:  if test "x$RIPNGD" = "xripngd"; then
                   17767:   RIPNGD_TRUE=
                   17768:   RIPNGD_FALSE='#'
                   17769: else
                   17770:   RIPNGD_TRUE='#'
                   17771:   RIPNGD_FALSE=
                   17772: fi
                   17773: 
1.1       misho    17774: 
                   17775: case "${enable_ospf6d}" in
                   17776:   "yes") OSPF6D="ospf6d";;
                   17777:   "no" ) OSPF6D="";;
                   17778:   *    ) ;;
                   17779: esac
1.1.1.3   misho    17780:  if test "x$OSPF6D" = "xospf6d"; then
                   17781:   OSPF6D_TRUE=
                   17782:   OSPF6D_FALSE='#'
                   17783: else
                   17784:   OSPF6D_TRUE='#'
                   17785:   OSPF6D_FALSE=
                   17786: fi
                   17787: 
1.1       misho    17788: 
                   17789: case "${enable_isisd}" in
                   17790:   "yes") ISISD="isisd";;
                   17791:   "no" ) ISISD="";;
                   17792:   *    ) ;;
                   17793: esac
1.1.1.3   misho    17794:  if test "x$ISISD" = "xisisd"; then
                   17795:   ISISD_TRUE=
                   17796:   ISISD_FALSE='#'
                   17797: else
                   17798:   ISISD_TRUE='#'
                   17799:   ISISD_FALSE=
                   17800: fi
                   17801: 
1.1       misho    17802: 
                   17803: # XXX Perhaps auto-enable on Solaris, but that's messy for cross builds.
                   17804: case "${enable_solaris}" in
                   17805:   "yes") SOLARIS="solaris";;
                   17806:   "no" ) SOLARIS="";;
                   17807:   *    ) ;;
                   17808: esac
                   17809: 
                   17810: if test "${enable_bgp_announce}" = "no";then
                   17811: 
                   17812: $as_echo "#define DISABLE_BGP_ANNOUNCE 1" >>confdefs.h
                   17813: 
                   17814: else
                   17815: 
                   17816: $as_echo "#define DISABLE_BGP_ANNOUNCE 0" >>confdefs.h
                   17817: 
                   17818: fi
                   17819: 
                   17820: 
                   17821: 
                   17822: 
                   17823: 
                   17824: 
                   17825: 
                   17826: 
                   17827: 
                   17828: 
                   17829: 
                   17830: 
                   17831: 
                   17832: 
                   17833: 
                   17834: 
1.1.1.3   misho    17835: 
1.1.1.4 ! misho    17836: 
1.1       misho    17837: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lc" >&5
                   17838: $as_echo_n "checking for inet_ntop in -lc... " >&6; }
                   17839: if ${ac_cv_lib_c_inet_ntop+:} false; then :
                   17840:   $as_echo_n "(cached) " >&6
                   17841: else
                   17842:   ac_check_lib_save_LIBS=$LIBS
                   17843: LIBS="-lc  $LIBS"
                   17844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17845: /* end confdefs.h.  */
                   17846: 
                   17847: /* Override any GCC internal prototype to avoid an error.
                   17848:    Use char because int might match the return type of a GCC
                   17849:    builtin and then its argument prototype would still apply.  */
                   17850: #ifdef __cplusplus
                   17851: extern "C"
                   17852: #endif
                   17853: char inet_ntop ();
                   17854: int
                   17855: main ()
                   17856: {
                   17857: return inet_ntop ();
                   17858:   ;
                   17859:   return 0;
                   17860: }
                   17861: _ACEOF
                   17862: if ac_fn_c_try_link "$LINENO"; then :
                   17863:   ac_cv_lib_c_inet_ntop=yes
                   17864: else
                   17865:   ac_cv_lib_c_inet_ntop=no
                   17866: fi
                   17867: rm -f core conftest.err conftest.$ac_objext \
                   17868:     conftest$ac_exeext conftest.$ac_ext
                   17869: LIBS=$ac_check_lib_save_LIBS
                   17870: fi
                   17871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_ntop" >&5
                   17872: $as_echo "$ac_cv_lib_c_inet_ntop" >&6; }
                   17873: if test "x$ac_cv_lib_c_inet_ntop" = xyes; then :
                   17874: 
                   17875: $as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h
                   17876: 
                   17877: fi
                   17878: 
                   17879: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lc" >&5
                   17880: $as_echo_n "checking for inet_pton in -lc... " >&6; }
                   17881: if ${ac_cv_lib_c_inet_pton+:} false; then :
                   17882:   $as_echo_n "(cached) " >&6
                   17883: else
                   17884:   ac_check_lib_save_LIBS=$LIBS
                   17885: LIBS="-lc  $LIBS"
                   17886: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17887: /* end confdefs.h.  */
                   17888: 
                   17889: /* Override any GCC internal prototype to avoid an error.
                   17890:    Use char because int might match the return type of a GCC
                   17891:    builtin and then its argument prototype would still apply.  */
                   17892: #ifdef __cplusplus
                   17893: extern "C"
                   17894: #endif
                   17895: char inet_pton ();
                   17896: int
                   17897: main ()
                   17898: {
                   17899: return inet_pton ();
                   17900:   ;
                   17901:   return 0;
                   17902: }
                   17903: _ACEOF
                   17904: if ac_fn_c_try_link "$LINENO"; then :
                   17905:   ac_cv_lib_c_inet_pton=yes
                   17906: else
                   17907:   ac_cv_lib_c_inet_pton=no
                   17908: fi
                   17909: rm -f core conftest.err conftest.$ac_objext \
                   17910:     conftest$ac_exeext conftest.$ac_ext
                   17911: LIBS=$ac_check_lib_save_LIBS
                   17912: fi
                   17913: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_pton" >&5
                   17914: $as_echo "$ac_cv_lib_c_inet_pton" >&6; }
                   17915: if test "x$ac_cv_lib_c_inet_pton" = xyes; then :
                   17916: 
                   17917: $as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h
                   17918: 
                   17919: fi
                   17920: 
                   17921: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
                   17922: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
                   17923: if ${ac_cv_lib_crypt_crypt+:} false; then :
                   17924:   $as_echo_n "(cached) " >&6
                   17925: else
                   17926:   ac_check_lib_save_LIBS=$LIBS
                   17927: LIBS="-lcrypt  $LIBS"
                   17928: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17929: /* end confdefs.h.  */
                   17930: 
                   17931: /* Override any GCC internal prototype to avoid an error.
                   17932:    Use char because int might match the return type of a GCC
                   17933:    builtin and then its argument prototype would still apply.  */
                   17934: #ifdef __cplusplus
                   17935: extern "C"
                   17936: #endif
                   17937: char crypt ();
                   17938: int
                   17939: main ()
                   17940: {
                   17941: return crypt ();
                   17942:   ;
                   17943:   return 0;
                   17944: }
                   17945: _ACEOF
                   17946: if ac_fn_c_try_link "$LINENO"; then :
                   17947:   ac_cv_lib_crypt_crypt=yes
                   17948: else
                   17949:   ac_cv_lib_crypt_crypt=no
                   17950: fi
                   17951: rm -f core conftest.err conftest.$ac_objext \
                   17952:     conftest$ac_exeext conftest.$ac_ext
                   17953: LIBS=$ac_check_lib_save_LIBS
                   17954: fi
                   17955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
                   17956: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
                   17957: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
                   17958:   cat >>confdefs.h <<_ACEOF
                   17959: #define HAVE_LIBCRYPT 1
                   17960: _ACEOF
                   17961: 
                   17962:   LIBS="-lcrypt $LIBS"
                   17963: 
                   17964: fi
                   17965: 
                   17966: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init in -lresolv" >&5
                   17967: $as_echo_n "checking for res_init in -lresolv... " >&6; }
                   17968: if ${ac_cv_lib_resolv_res_init+:} false; then :
                   17969:   $as_echo_n "(cached) " >&6
                   17970: else
                   17971:   ac_check_lib_save_LIBS=$LIBS
                   17972: LIBS="-lresolv  $LIBS"
                   17973: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17974: /* end confdefs.h.  */
                   17975: 
                   17976: /* Override any GCC internal prototype to avoid an error.
                   17977:    Use char because int might match the return type of a GCC
                   17978:    builtin and then its argument prototype would still apply.  */
                   17979: #ifdef __cplusplus
                   17980: extern "C"
                   17981: #endif
                   17982: char res_init ();
                   17983: int
                   17984: main ()
                   17985: {
                   17986: return res_init ();
                   17987:   ;
                   17988:   return 0;
                   17989: }
                   17990: _ACEOF
                   17991: if ac_fn_c_try_link "$LINENO"; then :
                   17992:   ac_cv_lib_resolv_res_init=yes
                   17993: else
                   17994:   ac_cv_lib_resolv_res_init=no
                   17995: fi
                   17996: rm -f core conftest.err conftest.$ac_objext \
                   17997:     conftest$ac_exeext conftest.$ac_ext
                   17998: LIBS=$ac_check_lib_save_LIBS
                   17999: fi
                   18000: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_init" >&5
                   18001: $as_echo "$ac_cv_lib_resolv_res_init" >&6; }
                   18002: if test "x$ac_cv_lib_resolv_res_init" = xyes; then :
                   18003:   cat >>confdefs.h <<_ACEOF
                   18004: #define HAVE_LIBRESOLV 1
                   18005: _ACEOF
                   18006: 
                   18007:   LIBS="-lresolv $LIBS"
                   18008: 
                   18009: fi
                   18010: 
                   18011: 
                   18012: ac_fn_c_check_func "$LINENO" "__inet_ntop" "ac_cv_func___inet_ntop"
                   18013: if test "x$ac_cv_func___inet_ntop" = xyes; then :
                   18014: 
                   18015: $as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h
                   18016: 
                   18017: fi
                   18018: 
                   18019: ac_fn_c_check_func "$LINENO" "__inet_pton" "ac_cv_func___inet_pton"
                   18020: if test "x$ac_cv_func___inet_pton" = xyes; then :
                   18021: 
                   18022: $as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h
                   18023: 
                   18024: fi
                   18025: 
                   18026: ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton"
                   18027: if test "x$ac_cv_func___inet_aton" = xyes; then :
                   18028: 
                   18029: $as_echo "#define HAVE_INET_ATON /**/" >>confdefs.h
                   18030: 
                   18031: fi
                   18032: 
                   18033: 
                   18034: if test "x$enable_pcreposix" = "xyes"; then
                   18035:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix_regexec in -lpcreposix" >&5
                   18036: $as_echo_n "checking for pcreposix_regexec in -lpcreposix... " >&6; }
                   18037: if ${ac_cv_lib_pcreposix_pcreposix_regexec+:} false; then :
                   18038:   $as_echo_n "(cached) " >&6
                   18039: else
                   18040:   ac_check_lib_save_LIBS=$LIBS
                   18041: LIBS="-lpcreposix  $LIBS"
                   18042: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18043: /* end confdefs.h.  */
                   18044: 
                   18045: /* Override any GCC internal prototype to avoid an error.
                   18046:    Use char because int might match the return type of a GCC
                   18047:    builtin and then its argument prototype would still apply.  */
                   18048: #ifdef __cplusplus
                   18049: extern "C"
                   18050: #endif
                   18051: char pcreposix_regexec ();
                   18052: int
                   18053: main ()
                   18054: {
                   18055: return pcreposix_regexec ();
                   18056:   ;
                   18057:   return 0;
                   18058: }
                   18059: _ACEOF
                   18060: if ac_fn_c_try_link "$LINENO"; then :
                   18061:   ac_cv_lib_pcreposix_pcreposix_regexec=yes
                   18062: else
                   18063:   ac_cv_lib_pcreposix_pcreposix_regexec=no
                   18064: fi
                   18065: rm -f core conftest.err conftest.$ac_objext \
                   18066:     conftest$ac_exeext conftest.$ac_ext
                   18067: LIBS=$ac_check_lib_save_LIBS
                   18068: fi
                   18069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_pcreposix_regexec" >&5
                   18070: $as_echo "$ac_cv_lib_pcreposix_pcreposix_regexec" >&6; }
                   18071: if test "x$ac_cv_lib_pcreposix_pcreposix_regexec" = xyes; then :
                   18072:   cat >>confdefs.h <<_ACEOF
                   18073: #define HAVE_LIBPCREPOSIX 1
                   18074: _ACEOF
                   18075: 
                   18076:   LIBS="-lpcreposix $LIBS"
                   18077: 
                   18078: else
                   18079:   enable_pcreposix=no
                   18080:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** falling back to other regex library ***" >&5
                   18081: $as_echo "$as_me: WARNING: *** falling back to other regex library ***" >&2;}
                   18082: fi
                   18083: 
                   18084: fi
                   18085: 
                   18086: if test "x$enable_pcreposix" != "xyes"; then
                   18087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system has GNU regex" >&5
                   18088: $as_echo_n "checking whether system has GNU regex... " >&6; }
                   18089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lc" >&5
                   18090: $as_echo_n "checking for regexec in -lc... " >&6; }
                   18091: if ${ac_cv_lib_c_regexec+:} false; then :
                   18092:   $as_echo_n "(cached) " >&6
                   18093: else
                   18094:   ac_check_lib_save_LIBS=$LIBS
                   18095: LIBS="-lc  $LIBS"
                   18096: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18097: /* end confdefs.h.  */
                   18098: 
                   18099: /* Override any GCC internal prototype to avoid an error.
                   18100:    Use char because int might match the return type of a GCC
                   18101:    builtin and then its argument prototype would still apply.  */
                   18102: #ifdef __cplusplus
                   18103: extern "C"
                   18104: #endif
                   18105: char regexec ();
                   18106: int
                   18107: main ()
                   18108: {
                   18109: return regexec ();
                   18110:   ;
                   18111:   return 0;
                   18112: }
                   18113: _ACEOF
                   18114: if ac_fn_c_try_link "$LINENO"; then :
                   18115:   ac_cv_lib_c_regexec=yes
                   18116: else
                   18117:   ac_cv_lib_c_regexec=no
                   18118: fi
                   18119: rm -f core conftest.err conftest.$ac_objext \
                   18120:     conftest$ac_exeext conftest.$ac_ext
                   18121: LIBS=$ac_check_lib_save_LIBS
                   18122: fi
                   18123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_regexec" >&5
                   18124: $as_echo "$ac_cv_lib_c_regexec" >&6; }
                   18125: if test "x$ac_cv_lib_c_regexec" = xyes; then :
                   18126: 
                   18127: $as_echo "#define HAVE_GNU_REGEX /**/" >>confdefs.h
                   18128: 
                   18129:  LIB_REGEX=""
                   18130: else
                   18131:   LIB_REGEX="regex.o"
                   18132: fi
                   18133: 
                   18134: fi
                   18135: 
                   18136: 
                   18137: 
1.1.1.4 ! misho    18138: if test "${enable_snmp}" != ""; then
        !          18139:    if test -n "$ac_tool_prefix"; then
        !          18140:   # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
        !          18141: set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
        !          18142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
        !          18143: $as_echo_n "checking for $ac_word... " >&6; }
        !          18144: if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
1.1       misho    18145:   $as_echo_n "(cached) " >&6
                   18146: else
1.1.1.4 ! misho    18147:   case $NETSNMP_CONFIG in
        !          18148:   [\\/]* | ?:[\\/]*)
        !          18149:   ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
        !          18150:   ;;
        !          18151:   *)
        !          18152:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          18153: for as_dir in $PATH
        !          18154: do
        !          18155:   IFS=$as_save_IFS
        !          18156:   test -z "$as_dir" && as_dir=.
        !          18157:     for ac_exec_ext in '' $ac_executable_extensions; do
        !          18158:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          18159:     ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
        !          18160:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          18161:     break 2
        !          18162:   fi
        !          18163: done
        !          18164:   done
        !          18165: IFS=$as_save_IFS
        !          18166: 
        !          18167:   ;;
        !          18168: esac
        !          18169: fi
        !          18170: NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
        !          18171: if test -n "$NETSNMP_CONFIG"; then
        !          18172:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
        !          18173: $as_echo "$NETSNMP_CONFIG" >&6; }
        !          18174: else
        !          18175:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          18176: $as_echo "no" >&6; }
        !          18177: fi
        !          18178: 
        !          18179: 
        !          18180: fi
        !          18181: if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
        !          18182:   ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
        !          18183:   # Extract the first word of "net-snmp-config", so it can be a program name with args.
        !          18184: set dummy net-snmp-config; ac_word=$2
        !          18185: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
        !          18186: $as_echo_n "checking for $ac_word... " >&6; }
        !          18187: if ${ac_cv_path_ac_pt_NETSNMP_CONFIG+:} false; then :
        !          18188:   $as_echo_n "(cached) " >&6
        !          18189: else
        !          18190:   case $ac_pt_NETSNMP_CONFIG in
        !          18191:   [\\/]* | ?:[\\/]*)
        !          18192:   ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
        !          18193:   ;;
        !          18194:   *)
        !          18195:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          18196: for as_dir in $PATH
        !          18197: do
        !          18198:   IFS=$as_save_IFS
        !          18199:   test -z "$as_dir" && as_dir=.
        !          18200:     for ac_exec_ext in '' $ac_executable_extensions; do
        !          18201:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          18202:     ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
        !          18203:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          18204:     break 2
        !          18205:   fi
        !          18206: done
        !          18207:   done
        !          18208: IFS=$as_save_IFS
        !          18209: 
        !          18210:   ;;
        !          18211: esac
        !          18212: fi
        !          18213: ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
        !          18214: if test -n "$ac_pt_NETSNMP_CONFIG"; then
        !          18215:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_NETSNMP_CONFIG" >&5
        !          18216: $as_echo "$ac_pt_NETSNMP_CONFIG" >&6; }
        !          18217: else
        !          18218:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          18219: $as_echo "no" >&6; }
        !          18220: fi
        !          18221: 
        !          18222:   if test "x$ac_pt_NETSNMP_CONFIG" = x; then
        !          18223:     NETSNMP_CONFIG="no"
        !          18224:   else
        !          18225:     case $cross_compiling:$ac_tool_warned in
        !          18226: yes:)
        !          18227: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
        !          18228: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
        !          18229: ac_tool_warned=yes ;;
        !          18230: esac
        !          18231:     NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
        !          18232:   fi
        !          18233: else
        !          18234:   NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
        !          18235: fi
        !          18236: 
        !          18237:    if test x"$NETSNMP_CONFIG" = x"no"; then
        !          18238:       as_fn_error $? "--enable-snmp given but unable to find net-snmp-config" "$LINENO" 5
        !          18239:    fi
        !          18240:    LIBS="$LIBS `${NETSNMP_CONFIG} --agent-libs`"
        !          18241:    CFLAGS="`${NETSNMP_CONFIG} --base-cflags` $CFLAGS"
        !          18242:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link to Net-SNMP" >&5
        !          18243: $as_echo_n "checking whether we can link to Net-SNMP... " >&6; }
        !          18244:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          18245: /* end confdefs.h.  */
        !          18246: 
        !          18247: int main(void);
1.1       misho    18248: 
                   18249: int
                   18250: main ()
                   18251: {
1.1.1.4 ! misho    18252: 
        !          18253: {
        !          18254:   return 0;
        !          18255: }
        !          18256: 
1.1       misho    18257:   ;
                   18258:   return 0;
                   18259: }
                   18260: _ACEOF
                   18261: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.4 ! misho    18262:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
        !          18263: $as_echo "yes" >&6; }
1.1       misho    18264: else
1.1.1.4 ! misho    18265: 
        !          18266:      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          18267: $as_echo "no" >&6; }
        !          18268:      as_fn_error $? "--enable-snmp given but not usable" "$LINENO" 5
1.1       misho    18269: fi
                   18270: rm -f core conftest.err conftest.$ac_objext \
                   18271:     conftest$ac_exeext conftest.$ac_ext
                   18272: 
1.1.1.4 ! misho    18273: $as_echo "#define HAVE_SNMP /**/" >>confdefs.h
1.1       misho    18274: 
1.1.1.4 ! misho    18275:    case "${enable_snmp}" in
        !          18276:      yes)
        !          18277:       SNMP_METHOD=agentx
        !          18278:       ;;
        !          18279:      smux|agentx)
        !          18280:       SNMP_METHOD="${enable_snmp}"
        !          18281:       ;;
        !          18282:      *)
        !          18283:       as_fn_error $? "--enable-snmp given with an unknown method (${enable_snmp}). Use smux or agentx" "$LINENO" 5
        !          18284:       ;;
        !          18285:    esac
1.1       misho    18286: 
                   18287: 
                   18288: 
1.1.1.4 ! misho    18289: cat >>confdefs.h <<_ACEOF
        !          18290: #define `$as_echo "SNMP_${SNMP_METHOD}" | $as_tr_cpp` /**/
        !          18291: _ACEOF
        !          18292: 
        !          18293: fi
1.1       misho    18294: 
1.1.1.4 ! misho    18295: ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "#ifdef SUNOS_5
1.1       misho    18296: #define _XPG4_2
                   18297: #define __EXTENSIONS__
                   18298: #endif
                   18299: #include <stdio.h>
                   18300: #if STDC_HEADERS
                   18301: # include <stdlib.h>
                   18302: # include <stddef.h>
                   18303: #else
                   18304: # if HAVE_STDLIB_H
                   18305: #  include <stdlib.h>
                   18306: # endif
                   18307: #endif
                   18308: #if HAVE_SYS_TYPES_H
                   18309: # include <sys/types.h>
                   18310: #endif
                   18311: /* sys/conf.h depends on param.h on FBSD at least */
                   18312: #if HAVE_SYS_PARAM_H
                   18313: # include <sys/param.h>
                   18314: #endif
                   18315: /* Required for MAXSIG */
                   18316: #if HAVE_SIGNAL_H
                   18317: # include <signal.h>
                   18318: #endif
                   18319: #if HAVE_SYS_SOCKET_H
                   18320: # include <sys/socket.h>
                   18321: #endif
1.1.1.4 ! misho    18322: #ifdef __APPLE__
        !          18323: # define __APPLE_USE_RFC_3542
        !          18324: #endif
1.1       misho    18325: #if HAVE_NETINET_IN_H
                   18326: # include <netinet/in.h>
                   18327: #endif
                   18328: #ifdef TIME_WITH_SYS_TIME
                   18329: # include <sys/time.h>
                   18330: # include <time.h>
                   18331: #else
                   18332: # ifdef HAVE_SYS_TIME_H
                   18333: #  include <sys/time.h>
                   18334: # else
                   18335: #  include <time.h>
                   18336: # endif
                   18337: #endif /* TIME_WITH_SYS_TIME */
                   18338: 
                   18339: #if HAVE_NET_IF_H
                   18340: # include <net/if.h>
                   18341: #endif
                   18342: 
                   18343: #if HAVE_NET_IF_VAR_H
                   18344: # include <net/if_var.h>
                   18345: #endif
                   18346: 
                   18347: #if HAVE_SYS_UN_H
                   18348: # include <sys/un.h>
                   18349: #endif
                   18350: #if HAVE_NETINET_IN_SYSTM_H
                   18351: # include <netinet/in_systm.h>
                   18352: #endif
                   18353: #if HAVE_NETINET_IN_VAR_H
                   18354: # include <netinet/in_var.h>
                   18355: #endif
                   18356: #if HAVE_NET_IF_DL_H
                   18357: # include <net/if_dl.h>
                   18358: #endif
                   18359: #if HAVE_NET_NETOPT_H
                   18360: # include <net/netopt.h>
                   18361: #endif
                   18362: #if HAVE_NET_ROUTE_H
                   18363: # include <net/route.h>
                   18364: #endif
                   18365: #if HAVE_INET_ND_H
                   18366: # include <inet/nd.h>
                   18367: #endif
                   18368: #if HAVE_ARPA_INET_H
                   18369: # include <arpa/inet.h>
                   18370: #endif
                   18371: /* Required for IDRP */
                   18372: #if HAVE_NETINET_IP_ICMP_H
                   18373: # include <netinet/ip_icmp.h>
                   18374: #endif
                   18375: 
                   18376: #if HAVE_NETINET6_IN6_H
                   18377: #include <netinet6/in6.h>
                   18378: #endif
                   18379: #if HAVE_NETINET_IN6_VAR_H
                   18380: #include <netinet/in6_var.h>
                   18381: #endif
                   18382: #if HAVE_NETINET_ICMP6_H
                   18383: # include <netinet/icmp6.h>
                   18384: #endif
                   18385: #if HAVE_NETINET6_IN6_VAR_H
                   18386: # include <netinet6/in6_var.h>
                   18387: #endif
                   18388: #if HAVE_NETINET6_ND6_H
                   18389: # include <netinet6/nd6.h>
                   18390: #endif
                   18391: 
                   18392: "
1.1.1.4 ! misho    18393: if test "x$ac_cv_type_struct_sockaddr" = xyes; then :
1.1       misho    18394: 
1.1.1.4 ! misho    18395: cat >>confdefs.h <<_ACEOF
        !          18396: #define HAVE_STRUCT_SOCKADDR 1
        !          18397: _ACEOF
1.1       misho    18398: 
                   18399: 
                   18400: fi
1.1.1.4 ! misho    18401: ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#ifdef SUNOS_5
1.1       misho    18402: #define _XPG4_2
                   18403: #define __EXTENSIONS__
                   18404: #endif
                   18405: #include <stdio.h>
                   18406: #if STDC_HEADERS
                   18407: # include <stdlib.h>
                   18408: # include <stddef.h>
                   18409: #else
                   18410: # if HAVE_STDLIB_H
                   18411: #  include <stdlib.h>
                   18412: # endif
                   18413: #endif
                   18414: #if HAVE_SYS_TYPES_H
                   18415: # include <sys/types.h>
                   18416: #endif
                   18417: /* sys/conf.h depends on param.h on FBSD at least */
                   18418: #if HAVE_SYS_PARAM_H
                   18419: # include <sys/param.h>
                   18420: #endif
                   18421: /* Required for MAXSIG */
                   18422: #if HAVE_SIGNAL_H
                   18423: # include <signal.h>
                   18424: #endif
                   18425: #if HAVE_SYS_SOCKET_H
                   18426: # include <sys/socket.h>
                   18427: #endif
1.1.1.4 ! misho    18428: #ifdef __APPLE__
        !          18429: # define __APPLE_USE_RFC_3542
        !          18430: #endif
1.1       misho    18431: #if HAVE_NETINET_IN_H
                   18432: # include <netinet/in.h>
                   18433: #endif
                   18434: #ifdef TIME_WITH_SYS_TIME
                   18435: # include <sys/time.h>
                   18436: # include <time.h>
                   18437: #else
                   18438: # ifdef HAVE_SYS_TIME_H
                   18439: #  include <sys/time.h>
                   18440: # else
                   18441: #  include <time.h>
                   18442: # endif
                   18443: #endif /* TIME_WITH_SYS_TIME */
                   18444: 
                   18445: #if HAVE_NET_IF_H
                   18446: # include <net/if.h>
                   18447: #endif
                   18448: 
                   18449: #if HAVE_NET_IF_VAR_H
                   18450: # include <net/if_var.h>
                   18451: #endif
                   18452: 
                   18453: #if HAVE_SYS_UN_H
                   18454: # include <sys/un.h>
                   18455: #endif
                   18456: #if HAVE_NETINET_IN_SYSTM_H
                   18457: # include <netinet/in_systm.h>
                   18458: #endif
                   18459: #if HAVE_NETINET_IN_VAR_H
                   18460: # include <netinet/in_var.h>
                   18461: #endif
                   18462: #if HAVE_NET_IF_DL_H
                   18463: # include <net/if_dl.h>
                   18464: #endif
                   18465: #if HAVE_NET_NETOPT_H
                   18466: # include <net/netopt.h>
                   18467: #endif
                   18468: #if HAVE_NET_ROUTE_H
                   18469: # include <net/route.h>
                   18470: #endif
                   18471: #if HAVE_INET_ND_H
                   18472: # include <inet/nd.h>
                   18473: #endif
                   18474: #if HAVE_ARPA_INET_H
                   18475: # include <arpa/inet.h>
                   18476: #endif
                   18477: /* Required for IDRP */
                   18478: #if HAVE_NETINET_IP_ICMP_H
                   18479: # include <netinet/ip_icmp.h>
                   18480: #endif
                   18481: 
                   18482: #if HAVE_NETINET6_IN6_H
                   18483: #include <netinet6/in6.h>
                   18484: #endif
                   18485: #if HAVE_NETINET_IN6_VAR_H
                   18486: #include <netinet/in6_var.h>
                   18487: #endif
                   18488: #if HAVE_NETINET_ICMP6_H
                   18489: # include <netinet/icmp6.h>
                   18490: #endif
                   18491: #if HAVE_NETINET6_IN6_VAR_H
                   18492: # include <netinet6/in6_var.h>
                   18493: #endif
                   18494: #if HAVE_NETINET6_ND6_H
                   18495: # include <netinet6/nd6.h>
                   18496: #endif
                   18497: 
                   18498: "
1.1.1.4 ! misho    18499: if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
1.1       misho    18500: 
                   18501: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    18502: #define HAVE_STRUCT_SOCKADDR_IN 1
1.1       misho    18503: _ACEOF
                   18504: 
                   18505: 
                   18506: fi
1.1.1.4 ! misho    18507: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#ifdef SUNOS_5
1.1       misho    18508: #define _XPG4_2
                   18509: #define __EXTENSIONS__
                   18510: #endif
                   18511: #include <stdio.h>
                   18512: #if STDC_HEADERS
                   18513: # include <stdlib.h>
                   18514: # include <stddef.h>
                   18515: #else
                   18516: # if HAVE_STDLIB_H
                   18517: #  include <stdlib.h>
                   18518: # endif
                   18519: #endif
                   18520: #if HAVE_SYS_TYPES_H
                   18521: # include <sys/types.h>
                   18522: #endif
                   18523: /* sys/conf.h depends on param.h on FBSD at least */
                   18524: #if HAVE_SYS_PARAM_H
                   18525: # include <sys/param.h>
                   18526: #endif
                   18527: /* Required for MAXSIG */
                   18528: #if HAVE_SIGNAL_H
                   18529: # include <signal.h>
                   18530: #endif
                   18531: #if HAVE_SYS_SOCKET_H
                   18532: # include <sys/socket.h>
                   18533: #endif
1.1.1.4 ! misho    18534: #ifdef __APPLE__
        !          18535: # define __APPLE_USE_RFC_3542
        !          18536: #endif
1.1       misho    18537: #if HAVE_NETINET_IN_H
                   18538: # include <netinet/in.h>
                   18539: #endif
                   18540: #ifdef TIME_WITH_SYS_TIME
                   18541: # include <sys/time.h>
                   18542: # include <time.h>
                   18543: #else
                   18544: # ifdef HAVE_SYS_TIME_H
                   18545: #  include <sys/time.h>
                   18546: # else
                   18547: #  include <time.h>
                   18548: # endif
                   18549: #endif /* TIME_WITH_SYS_TIME */
                   18550: 
                   18551: #if HAVE_NET_IF_H
                   18552: # include <net/if.h>
                   18553: #endif
                   18554: 
                   18555: #if HAVE_NET_IF_VAR_H
                   18556: # include <net/if_var.h>
                   18557: #endif
                   18558: 
                   18559: #if HAVE_SYS_UN_H
                   18560: # include <sys/un.h>
                   18561: #endif
                   18562: #if HAVE_NETINET_IN_SYSTM_H
                   18563: # include <netinet/in_systm.h>
                   18564: #endif
                   18565: #if HAVE_NETINET_IN_VAR_H
                   18566: # include <netinet/in_var.h>
                   18567: #endif
                   18568: #if HAVE_NET_IF_DL_H
                   18569: # include <net/if_dl.h>
                   18570: #endif
                   18571: #if HAVE_NET_NETOPT_H
                   18572: # include <net/netopt.h>
                   18573: #endif
                   18574: #if HAVE_NET_ROUTE_H
                   18575: # include <net/route.h>
                   18576: #endif
                   18577: #if HAVE_INET_ND_H
                   18578: # include <inet/nd.h>
                   18579: #endif
                   18580: #if HAVE_ARPA_INET_H
                   18581: # include <arpa/inet.h>
                   18582: #endif
                   18583: /* Required for IDRP */
                   18584: #if HAVE_NETINET_IP_ICMP_H
                   18585: # include <netinet/ip_icmp.h>
                   18586: #endif
                   18587: 
                   18588: #if HAVE_NETINET6_IN6_H
                   18589: #include <netinet6/in6.h>
                   18590: #endif
                   18591: #if HAVE_NETINET_IN6_VAR_H
                   18592: #include <netinet/in6_var.h>
                   18593: #endif
                   18594: #if HAVE_NETINET_ICMP6_H
                   18595: # include <netinet/icmp6.h>
                   18596: #endif
                   18597: #if HAVE_NETINET6_IN6_VAR_H
                   18598: # include <netinet6/in6_var.h>
                   18599: #endif
                   18600: #if HAVE_NETINET6_ND6_H
                   18601: # include <netinet6/nd6.h>
                   18602: #endif
                   18603: 
                   18604: "
1.1.1.4 ! misho    18605: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
1.1       misho    18606: 
                   18607: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    18608: #define HAVE_STRUCT_SOCKADDR_IN6 1
1.1       misho    18609: _ACEOF
                   18610: 
                   18611: 
                   18612: fi
1.1.1.4 ! misho    18613: ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#ifdef SUNOS_5
1.1       misho    18614: #define _XPG4_2
                   18615: #define __EXTENSIONS__
                   18616: #endif
                   18617: #include <stdio.h>
                   18618: #if STDC_HEADERS
                   18619: # include <stdlib.h>
                   18620: # include <stddef.h>
                   18621: #else
                   18622: # if HAVE_STDLIB_H
                   18623: #  include <stdlib.h>
                   18624: # endif
                   18625: #endif
                   18626: #if HAVE_SYS_TYPES_H
                   18627: # include <sys/types.h>
                   18628: #endif
                   18629: /* sys/conf.h depends on param.h on FBSD at least */
                   18630: #if HAVE_SYS_PARAM_H
                   18631: # include <sys/param.h>
                   18632: #endif
                   18633: /* Required for MAXSIG */
                   18634: #if HAVE_SIGNAL_H
                   18635: # include <signal.h>
                   18636: #endif
                   18637: #if HAVE_SYS_SOCKET_H
                   18638: # include <sys/socket.h>
                   18639: #endif
1.1.1.4 ! misho    18640: #ifdef __APPLE__
        !          18641: # define __APPLE_USE_RFC_3542
        !          18642: #endif
1.1       misho    18643: #if HAVE_NETINET_IN_H
                   18644: # include <netinet/in.h>
                   18645: #endif
                   18646: #ifdef TIME_WITH_SYS_TIME
                   18647: # include <sys/time.h>
                   18648: # include <time.h>
                   18649: #else
                   18650: # ifdef HAVE_SYS_TIME_H
                   18651: #  include <sys/time.h>
                   18652: # else
                   18653: #  include <time.h>
                   18654: # endif
                   18655: #endif /* TIME_WITH_SYS_TIME */
                   18656: 
                   18657: #if HAVE_NET_IF_H
                   18658: # include <net/if.h>
                   18659: #endif
                   18660: 
                   18661: #if HAVE_NET_IF_VAR_H
                   18662: # include <net/if_var.h>
                   18663: #endif
                   18664: 
                   18665: #if HAVE_SYS_UN_H
                   18666: # include <sys/un.h>
                   18667: #endif
                   18668: #if HAVE_NETINET_IN_SYSTM_H
                   18669: # include <netinet/in_systm.h>
                   18670: #endif
                   18671: #if HAVE_NETINET_IN_VAR_H
                   18672: # include <netinet/in_var.h>
                   18673: #endif
                   18674: #if HAVE_NET_IF_DL_H
                   18675: # include <net/if_dl.h>
                   18676: #endif
                   18677: #if HAVE_NET_NETOPT_H
                   18678: # include <net/netopt.h>
                   18679: #endif
                   18680: #if HAVE_NET_ROUTE_H
                   18681: # include <net/route.h>
                   18682: #endif
                   18683: #if HAVE_INET_ND_H
                   18684: # include <inet/nd.h>
                   18685: #endif
                   18686: #if HAVE_ARPA_INET_H
                   18687: # include <arpa/inet.h>
                   18688: #endif
                   18689: /* Required for IDRP */
                   18690: #if HAVE_NETINET_IP_ICMP_H
                   18691: # include <netinet/ip_icmp.h>
                   18692: #endif
                   18693: 
                   18694: #if HAVE_NETINET6_IN6_H
                   18695: #include <netinet6/in6.h>
                   18696: #endif
                   18697: #if HAVE_NETINET_IN6_VAR_H
                   18698: #include <netinet/in6_var.h>
                   18699: #endif
                   18700: #if HAVE_NETINET_ICMP6_H
                   18701: # include <netinet/icmp6.h>
                   18702: #endif
                   18703: #if HAVE_NETINET6_IN6_VAR_H
                   18704: # include <netinet6/in6_var.h>
                   18705: #endif
                   18706: #if HAVE_NETINET6_ND6_H
                   18707: # include <netinet6/nd6.h>
                   18708: #endif
                   18709: 
                   18710: "
1.1.1.4 ! misho    18711: if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
1.1       misho    18712: 
                   18713: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    18714: #define HAVE_STRUCT_SOCKADDR_UN 1
1.1       misho    18715: _ACEOF
                   18716: 
                   18717: 
                   18718: fi
1.1.1.4 ! misho    18719: ac_fn_c_check_type "$LINENO" "struct sockaddr_dl" "ac_cv_type_struct_sockaddr_dl" "#ifdef SUNOS_5
1.1       misho    18720: #define _XPG4_2
                   18721: #define __EXTENSIONS__
                   18722: #endif
                   18723: #include <stdio.h>
                   18724: #if STDC_HEADERS
                   18725: # include <stdlib.h>
                   18726: # include <stddef.h>
                   18727: #else
                   18728: # if HAVE_STDLIB_H
                   18729: #  include <stdlib.h>
                   18730: # endif
                   18731: #endif
                   18732: #if HAVE_SYS_TYPES_H
                   18733: # include <sys/types.h>
                   18734: #endif
                   18735: /* sys/conf.h depends on param.h on FBSD at least */
                   18736: #if HAVE_SYS_PARAM_H
                   18737: # include <sys/param.h>
                   18738: #endif
                   18739: /* Required for MAXSIG */
                   18740: #if HAVE_SIGNAL_H
                   18741: # include <signal.h>
                   18742: #endif
                   18743: #if HAVE_SYS_SOCKET_H
                   18744: # include <sys/socket.h>
                   18745: #endif
1.1.1.4 ! misho    18746: #ifdef __APPLE__
        !          18747: # define __APPLE_USE_RFC_3542
        !          18748: #endif
1.1       misho    18749: #if HAVE_NETINET_IN_H
                   18750: # include <netinet/in.h>
                   18751: #endif
                   18752: #ifdef TIME_WITH_SYS_TIME
                   18753: # include <sys/time.h>
                   18754: # include <time.h>
                   18755: #else
                   18756: # ifdef HAVE_SYS_TIME_H
                   18757: #  include <sys/time.h>
                   18758: # else
                   18759: #  include <time.h>
                   18760: # endif
                   18761: #endif /* TIME_WITH_SYS_TIME */
                   18762: 
                   18763: #if HAVE_NET_IF_H
                   18764: # include <net/if.h>
                   18765: #endif
                   18766: 
                   18767: #if HAVE_NET_IF_VAR_H
                   18768: # include <net/if_var.h>
                   18769: #endif
                   18770: 
                   18771: #if HAVE_SYS_UN_H
                   18772: # include <sys/un.h>
                   18773: #endif
                   18774: #if HAVE_NETINET_IN_SYSTM_H
                   18775: # include <netinet/in_systm.h>
                   18776: #endif
                   18777: #if HAVE_NETINET_IN_VAR_H
                   18778: # include <netinet/in_var.h>
                   18779: #endif
                   18780: #if HAVE_NET_IF_DL_H
                   18781: # include <net/if_dl.h>
                   18782: #endif
                   18783: #if HAVE_NET_NETOPT_H
                   18784: # include <net/netopt.h>
                   18785: #endif
                   18786: #if HAVE_NET_ROUTE_H
                   18787: # include <net/route.h>
                   18788: #endif
                   18789: #if HAVE_INET_ND_H
                   18790: # include <inet/nd.h>
                   18791: #endif
                   18792: #if HAVE_ARPA_INET_H
                   18793: # include <arpa/inet.h>
                   18794: #endif
                   18795: /* Required for IDRP */
                   18796: #if HAVE_NETINET_IP_ICMP_H
                   18797: # include <netinet/ip_icmp.h>
                   18798: #endif
                   18799: 
                   18800: #if HAVE_NETINET6_IN6_H
                   18801: #include <netinet6/in6.h>
                   18802: #endif
                   18803: #if HAVE_NETINET_IN6_VAR_H
                   18804: #include <netinet/in6_var.h>
                   18805: #endif
                   18806: #if HAVE_NETINET_ICMP6_H
                   18807: # include <netinet/icmp6.h>
                   18808: #endif
                   18809: #if HAVE_NETINET6_IN6_VAR_H
                   18810: # include <netinet6/in6_var.h>
                   18811: #endif
                   18812: #if HAVE_NETINET6_ND6_H
                   18813: # include <netinet6/nd6.h>
                   18814: #endif
                   18815: 
                   18816: "
1.1.1.4 ! misho    18817: if test "x$ac_cv_type_struct_sockaddr_dl" = xyes; then :
1.1       misho    18818: 
                   18819: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    18820: #define HAVE_STRUCT_SOCKADDR_DL 1
1.1       misho    18821: _ACEOF
                   18822: 
                   18823: 
                   18824: fi
1.1.1.4 ! misho    18825: ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#ifdef SUNOS_5
1.1       misho    18826: #define _XPG4_2
                   18827: #define __EXTENSIONS__
                   18828: #endif
                   18829: #include <stdio.h>
                   18830: #if STDC_HEADERS
                   18831: # include <stdlib.h>
                   18832: # include <stddef.h>
                   18833: #else
                   18834: # if HAVE_STDLIB_H
                   18835: #  include <stdlib.h>
                   18836: # endif
                   18837: #endif
                   18838: #if HAVE_SYS_TYPES_H
                   18839: # include <sys/types.h>
                   18840: #endif
                   18841: /* sys/conf.h depends on param.h on FBSD at least */
                   18842: #if HAVE_SYS_PARAM_H
                   18843: # include <sys/param.h>
                   18844: #endif
                   18845: /* Required for MAXSIG */
                   18846: #if HAVE_SIGNAL_H
                   18847: # include <signal.h>
                   18848: #endif
                   18849: #if HAVE_SYS_SOCKET_H
                   18850: # include <sys/socket.h>
                   18851: #endif
1.1.1.4 ! misho    18852: #ifdef __APPLE__
        !          18853: # define __APPLE_USE_RFC_3542
        !          18854: #endif
1.1       misho    18855: #if HAVE_NETINET_IN_H
                   18856: # include <netinet/in.h>
                   18857: #endif
                   18858: #ifdef TIME_WITH_SYS_TIME
                   18859: # include <sys/time.h>
                   18860: # include <time.h>
                   18861: #else
                   18862: # ifdef HAVE_SYS_TIME_H
                   18863: #  include <sys/time.h>
                   18864: # else
                   18865: #  include <time.h>
                   18866: # endif
                   18867: #endif /* TIME_WITH_SYS_TIME */
                   18868: 
                   18869: #if HAVE_NET_IF_H
                   18870: # include <net/if.h>
                   18871: #endif
                   18872: 
                   18873: #if HAVE_NET_IF_VAR_H
                   18874: # include <net/if_var.h>
                   18875: #endif
                   18876: 
                   18877: #if HAVE_SYS_UN_H
                   18878: # include <sys/un.h>
                   18879: #endif
                   18880: #if HAVE_NETINET_IN_SYSTM_H
                   18881: # include <netinet/in_systm.h>
                   18882: #endif
                   18883: #if HAVE_NETINET_IN_VAR_H
                   18884: # include <netinet/in_var.h>
                   18885: #endif
                   18886: #if HAVE_NET_IF_DL_H
                   18887: # include <net/if_dl.h>
                   18888: #endif
                   18889: #if HAVE_NET_NETOPT_H
                   18890: # include <net/netopt.h>
                   18891: #endif
                   18892: #if HAVE_NET_ROUTE_H
                   18893: # include <net/route.h>
                   18894: #endif
                   18895: #if HAVE_INET_ND_H
                   18896: # include <inet/nd.h>
                   18897: #endif
                   18898: #if HAVE_ARPA_INET_H
                   18899: # include <arpa/inet.h>
                   18900: #endif
                   18901: /* Required for IDRP */
                   18902: #if HAVE_NETINET_IP_ICMP_H
                   18903: # include <netinet/ip_icmp.h>
                   18904: #endif
                   18905: 
                   18906: #if HAVE_NETINET6_IN6_H
                   18907: #include <netinet6/in6.h>
                   18908: #endif
                   18909: #if HAVE_NETINET_IN6_VAR_H
                   18910: #include <netinet/in6_var.h>
                   18911: #endif
                   18912: #if HAVE_NETINET_ICMP6_H
                   18913: # include <netinet/icmp6.h>
                   18914: #endif
                   18915: #if HAVE_NETINET6_IN6_VAR_H
                   18916: # include <netinet6/in6_var.h>
                   18917: #endif
                   18918: #if HAVE_NETINET6_ND6_H
                   18919: # include <netinet6/nd6.h>
                   18920: #endif
                   18921: 
                   18922: "
1.1.1.4 ! misho    18923: if test "x$ac_cv_type_socklen_t" = xyes; then :
1.1       misho    18924: 
                   18925: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    18926: #define HAVE_SOCKLEN_T 1
1.1       misho    18927: _ACEOF
                   18928: 
                   18929: 
                   18930: fi
1.1.1.4 ! misho    18931: ac_fn_c_check_type "$LINENO" "struct ifaliasreq" "ac_cv_type_struct_ifaliasreq" "#ifdef SUNOS_5
1.1       misho    18932: #define _XPG4_2
                   18933: #define __EXTENSIONS__
                   18934: #endif
                   18935: #include <stdio.h>
                   18936: #if STDC_HEADERS
                   18937: # include <stdlib.h>
                   18938: # include <stddef.h>
                   18939: #else
                   18940: # if HAVE_STDLIB_H
                   18941: #  include <stdlib.h>
                   18942: # endif
                   18943: #endif
                   18944: #if HAVE_SYS_TYPES_H
                   18945: # include <sys/types.h>
                   18946: #endif
                   18947: /* sys/conf.h depends on param.h on FBSD at least */
                   18948: #if HAVE_SYS_PARAM_H
                   18949: # include <sys/param.h>
                   18950: #endif
                   18951: /* Required for MAXSIG */
                   18952: #if HAVE_SIGNAL_H
                   18953: # include <signal.h>
                   18954: #endif
                   18955: #if HAVE_SYS_SOCKET_H
                   18956: # include <sys/socket.h>
                   18957: #endif
1.1.1.4 ! misho    18958: #ifdef __APPLE__
        !          18959: # define __APPLE_USE_RFC_3542
        !          18960: #endif
1.1       misho    18961: #if HAVE_NETINET_IN_H
                   18962: # include <netinet/in.h>
                   18963: #endif
                   18964: #ifdef TIME_WITH_SYS_TIME
                   18965: # include <sys/time.h>
                   18966: # include <time.h>
                   18967: #else
                   18968: # ifdef HAVE_SYS_TIME_H
                   18969: #  include <sys/time.h>
                   18970: # else
                   18971: #  include <time.h>
                   18972: # endif
                   18973: #endif /* TIME_WITH_SYS_TIME */
                   18974: 
                   18975: #if HAVE_NET_IF_H
                   18976: # include <net/if.h>
                   18977: #endif
                   18978: 
                   18979: #if HAVE_NET_IF_VAR_H
                   18980: # include <net/if_var.h>
                   18981: #endif
                   18982: 
                   18983: #if HAVE_SYS_UN_H
                   18984: # include <sys/un.h>
                   18985: #endif
                   18986: #if HAVE_NETINET_IN_SYSTM_H
                   18987: # include <netinet/in_systm.h>
                   18988: #endif
                   18989: #if HAVE_NETINET_IN_VAR_H
                   18990: # include <netinet/in_var.h>
                   18991: #endif
                   18992: #if HAVE_NET_IF_DL_H
                   18993: # include <net/if_dl.h>
                   18994: #endif
                   18995: #if HAVE_NET_NETOPT_H
                   18996: # include <net/netopt.h>
                   18997: #endif
                   18998: #if HAVE_NET_ROUTE_H
                   18999: # include <net/route.h>
                   19000: #endif
                   19001: #if HAVE_INET_ND_H
                   19002: # include <inet/nd.h>
                   19003: #endif
                   19004: #if HAVE_ARPA_INET_H
                   19005: # include <arpa/inet.h>
                   19006: #endif
                   19007: /* Required for IDRP */
                   19008: #if HAVE_NETINET_IP_ICMP_H
                   19009: # include <netinet/ip_icmp.h>
                   19010: #endif
                   19011: 
                   19012: #if HAVE_NETINET6_IN6_H
                   19013: #include <netinet6/in6.h>
                   19014: #endif
                   19015: #if HAVE_NETINET_IN6_VAR_H
                   19016: #include <netinet/in6_var.h>
                   19017: #endif
                   19018: #if HAVE_NETINET_ICMP6_H
                   19019: # include <netinet/icmp6.h>
                   19020: #endif
                   19021: #if HAVE_NETINET6_IN6_VAR_H
                   19022: # include <netinet6/in6_var.h>
                   19023: #endif
                   19024: #if HAVE_NETINET6_ND6_H
                   19025: # include <netinet6/nd6.h>
                   19026: #endif
                   19027: 
                   19028: "
1.1.1.4 ! misho    19029: if test "x$ac_cv_type_struct_ifaliasreq" = xyes; then :
1.1       misho    19030: 
                   19031: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    19032: #define HAVE_STRUCT_IFALIASREQ 1
1.1       misho    19033: _ACEOF
                   19034: 
                   19035: 
                   19036: fi
1.1.1.4 ! misho    19037: ac_fn_c_check_type "$LINENO" "struct if6_aliasreq" "ac_cv_type_struct_if6_aliasreq" "#ifdef SUNOS_5
1.1       misho    19038: #define _XPG4_2
                   19039: #define __EXTENSIONS__
                   19040: #endif
                   19041: #include <stdio.h>
                   19042: #if STDC_HEADERS
                   19043: # include <stdlib.h>
                   19044: # include <stddef.h>
                   19045: #else
                   19046: # if HAVE_STDLIB_H
                   19047: #  include <stdlib.h>
                   19048: # endif
                   19049: #endif
                   19050: #if HAVE_SYS_TYPES_H
                   19051: # include <sys/types.h>
                   19052: #endif
                   19053: /* sys/conf.h depends on param.h on FBSD at least */
                   19054: #if HAVE_SYS_PARAM_H
                   19055: # include <sys/param.h>
                   19056: #endif
                   19057: /* Required for MAXSIG */
                   19058: #if HAVE_SIGNAL_H
                   19059: # include <signal.h>
                   19060: #endif
                   19061: #if HAVE_SYS_SOCKET_H
                   19062: # include <sys/socket.h>
                   19063: #endif
1.1.1.4 ! misho    19064: #ifdef __APPLE__
        !          19065: # define __APPLE_USE_RFC_3542
        !          19066: #endif
1.1       misho    19067: #if HAVE_NETINET_IN_H
                   19068: # include <netinet/in.h>
                   19069: #endif
                   19070: #ifdef TIME_WITH_SYS_TIME
                   19071: # include <sys/time.h>
                   19072: # include <time.h>
                   19073: #else
                   19074: # ifdef HAVE_SYS_TIME_H
                   19075: #  include <sys/time.h>
                   19076: # else
                   19077: #  include <time.h>
                   19078: # endif
                   19079: #endif /* TIME_WITH_SYS_TIME */
                   19080: 
                   19081: #if HAVE_NET_IF_H
                   19082: # include <net/if.h>
                   19083: #endif
                   19084: 
                   19085: #if HAVE_NET_IF_VAR_H
                   19086: # include <net/if_var.h>
                   19087: #endif
                   19088: 
                   19089: #if HAVE_SYS_UN_H
                   19090: # include <sys/un.h>
                   19091: #endif
                   19092: #if HAVE_NETINET_IN_SYSTM_H
                   19093: # include <netinet/in_systm.h>
                   19094: #endif
                   19095: #if HAVE_NETINET_IN_VAR_H
                   19096: # include <netinet/in_var.h>
                   19097: #endif
                   19098: #if HAVE_NET_IF_DL_H
                   19099: # include <net/if_dl.h>
                   19100: #endif
                   19101: #if HAVE_NET_NETOPT_H
                   19102: # include <net/netopt.h>
                   19103: #endif
                   19104: #if HAVE_NET_ROUTE_H
                   19105: # include <net/route.h>
                   19106: #endif
                   19107: #if HAVE_INET_ND_H
                   19108: # include <inet/nd.h>
                   19109: #endif
                   19110: #if HAVE_ARPA_INET_H
                   19111: # include <arpa/inet.h>
                   19112: #endif
                   19113: /* Required for IDRP */
                   19114: #if HAVE_NETINET_IP_ICMP_H
                   19115: # include <netinet/ip_icmp.h>
                   19116: #endif
                   19117: 
                   19118: #if HAVE_NETINET6_IN6_H
                   19119: #include <netinet6/in6.h>
                   19120: #endif
                   19121: #if HAVE_NETINET_IN6_VAR_H
                   19122: #include <netinet/in6_var.h>
                   19123: #endif
                   19124: #if HAVE_NETINET_ICMP6_H
                   19125: # include <netinet/icmp6.h>
                   19126: #endif
                   19127: #if HAVE_NETINET6_IN6_VAR_H
                   19128: # include <netinet6/in6_var.h>
                   19129: #endif
                   19130: #if HAVE_NETINET6_ND6_H
                   19131: # include <netinet6/nd6.h>
                   19132: #endif
                   19133: 
                   19134: "
1.1.1.4 ! misho    19135: if test "x$ac_cv_type_struct_if6_aliasreq" = xyes; then :
1.1       misho    19136: 
                   19137: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    19138: #define HAVE_STRUCT_IF6_ALIASREQ 1
1.1       misho    19139: _ACEOF
                   19140: 
                   19141: 
                   19142: fi
1.1.1.4 ! misho    19143: ac_fn_c_check_type "$LINENO" "struct in6_aliasreq" "ac_cv_type_struct_in6_aliasreq" "#ifdef SUNOS_5
1.1       misho    19144: #define _XPG4_2
                   19145: #define __EXTENSIONS__
                   19146: #endif
                   19147: #include <stdio.h>
                   19148: #if STDC_HEADERS
                   19149: # include <stdlib.h>
                   19150: # include <stddef.h>
                   19151: #else
                   19152: # if HAVE_STDLIB_H
                   19153: #  include <stdlib.h>
                   19154: # endif
                   19155: #endif
                   19156: #if HAVE_SYS_TYPES_H
                   19157: # include <sys/types.h>
                   19158: #endif
                   19159: /* sys/conf.h depends on param.h on FBSD at least */
                   19160: #if HAVE_SYS_PARAM_H
                   19161: # include <sys/param.h>
                   19162: #endif
                   19163: /* Required for MAXSIG */
                   19164: #if HAVE_SIGNAL_H
                   19165: # include <signal.h>
                   19166: #endif
                   19167: #if HAVE_SYS_SOCKET_H
                   19168: # include <sys/socket.h>
                   19169: #endif
1.1.1.4 ! misho    19170: #ifdef __APPLE__
        !          19171: # define __APPLE_USE_RFC_3542
        !          19172: #endif
1.1       misho    19173: #if HAVE_NETINET_IN_H
                   19174: # include <netinet/in.h>
                   19175: #endif
                   19176: #ifdef TIME_WITH_SYS_TIME
                   19177: # include <sys/time.h>
                   19178: # include <time.h>
                   19179: #else
                   19180: # ifdef HAVE_SYS_TIME_H
                   19181: #  include <sys/time.h>
                   19182: # else
                   19183: #  include <time.h>
                   19184: # endif
                   19185: #endif /* TIME_WITH_SYS_TIME */
                   19186: 
                   19187: #if HAVE_NET_IF_H
                   19188: # include <net/if.h>
                   19189: #endif
                   19190: 
                   19191: #if HAVE_NET_IF_VAR_H
                   19192: # include <net/if_var.h>
                   19193: #endif
                   19194: 
                   19195: #if HAVE_SYS_UN_H
                   19196: # include <sys/un.h>
                   19197: #endif
                   19198: #if HAVE_NETINET_IN_SYSTM_H
                   19199: # include <netinet/in_systm.h>
                   19200: #endif
                   19201: #if HAVE_NETINET_IN_VAR_H
                   19202: # include <netinet/in_var.h>
                   19203: #endif
                   19204: #if HAVE_NET_IF_DL_H
                   19205: # include <net/if_dl.h>
                   19206: #endif
                   19207: #if HAVE_NET_NETOPT_H
                   19208: # include <net/netopt.h>
                   19209: #endif
                   19210: #if HAVE_NET_ROUTE_H
                   19211: # include <net/route.h>
                   19212: #endif
                   19213: #if HAVE_INET_ND_H
                   19214: # include <inet/nd.h>
                   19215: #endif
                   19216: #if HAVE_ARPA_INET_H
                   19217: # include <arpa/inet.h>
                   19218: #endif
                   19219: /* Required for IDRP */
                   19220: #if HAVE_NETINET_IP_ICMP_H
                   19221: # include <netinet/ip_icmp.h>
                   19222: #endif
                   19223: 
                   19224: #if HAVE_NETINET6_IN6_H
                   19225: #include <netinet6/in6.h>
                   19226: #endif
                   19227: #if HAVE_NETINET_IN6_VAR_H
                   19228: #include <netinet/in6_var.h>
                   19229: #endif
                   19230: #if HAVE_NETINET_ICMP6_H
                   19231: # include <netinet/icmp6.h>
                   19232: #endif
                   19233: #if HAVE_NETINET6_IN6_VAR_H
                   19234: # include <netinet6/in6_var.h>
                   19235: #endif
                   19236: #if HAVE_NETINET6_ND6_H
                   19237: # include <netinet6/nd6.h>
                   19238: #endif
                   19239: 
                   19240: "
1.1.1.4 ! misho    19241: if test "x$ac_cv_type_struct_in6_aliasreq" = xyes; then :
1.1       misho    19242: 
                   19243: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    19244: #define HAVE_STRUCT_IN6_ALIASREQ 1
1.1       misho    19245: _ACEOF
                   19246: 
                   19247: 
                   19248: fi
1.1.1.4 ! misho    19249: ac_fn_c_check_type "$LINENO" "struct nd_opt_adv_interval" "ac_cv_type_struct_nd_opt_adv_interval" "#ifdef SUNOS_5
1.1       misho    19250: #define _XPG4_2
                   19251: #define __EXTENSIONS__
                   19252: #endif
                   19253: #include <stdio.h>
                   19254: #if STDC_HEADERS
                   19255: # include <stdlib.h>
                   19256: # include <stddef.h>
                   19257: #else
                   19258: # if HAVE_STDLIB_H
                   19259: #  include <stdlib.h>
                   19260: # endif
                   19261: #endif
                   19262: #if HAVE_SYS_TYPES_H
                   19263: # include <sys/types.h>
                   19264: #endif
                   19265: /* sys/conf.h depends on param.h on FBSD at least */
                   19266: #if HAVE_SYS_PARAM_H
                   19267: # include <sys/param.h>
                   19268: #endif
                   19269: /* Required for MAXSIG */
                   19270: #if HAVE_SIGNAL_H
                   19271: # include <signal.h>
                   19272: #endif
                   19273: #if HAVE_SYS_SOCKET_H
                   19274: # include <sys/socket.h>
                   19275: #endif
1.1.1.4 ! misho    19276: #ifdef __APPLE__
        !          19277: # define __APPLE_USE_RFC_3542
        !          19278: #endif
1.1       misho    19279: #if HAVE_NETINET_IN_H
                   19280: # include <netinet/in.h>
                   19281: #endif
                   19282: #ifdef TIME_WITH_SYS_TIME
                   19283: # include <sys/time.h>
                   19284: # include <time.h>
                   19285: #else
                   19286: # ifdef HAVE_SYS_TIME_H
                   19287: #  include <sys/time.h>
                   19288: # else
                   19289: #  include <time.h>
                   19290: # endif
                   19291: #endif /* TIME_WITH_SYS_TIME */
                   19292: 
                   19293: #if HAVE_NET_IF_H
                   19294: # include <net/if.h>
                   19295: #endif
                   19296: 
                   19297: #if HAVE_NET_IF_VAR_H
                   19298: # include <net/if_var.h>
                   19299: #endif
                   19300: 
                   19301: #if HAVE_SYS_UN_H
                   19302: # include <sys/un.h>
                   19303: #endif
                   19304: #if HAVE_NETINET_IN_SYSTM_H
                   19305: # include <netinet/in_systm.h>
                   19306: #endif
                   19307: #if HAVE_NETINET_IN_VAR_H
                   19308: # include <netinet/in_var.h>
                   19309: #endif
                   19310: #if HAVE_NET_IF_DL_H
                   19311: # include <net/if_dl.h>
                   19312: #endif
                   19313: #if HAVE_NET_NETOPT_H
                   19314: # include <net/netopt.h>
                   19315: #endif
                   19316: #if HAVE_NET_ROUTE_H
                   19317: # include <net/route.h>
                   19318: #endif
                   19319: #if HAVE_INET_ND_H
                   19320: # include <inet/nd.h>
                   19321: #endif
                   19322: #if HAVE_ARPA_INET_H
                   19323: # include <arpa/inet.h>
                   19324: #endif
                   19325: /* Required for IDRP */
                   19326: #if HAVE_NETINET_IP_ICMP_H
                   19327: # include <netinet/ip_icmp.h>
                   19328: #endif
                   19329: 
                   19330: #if HAVE_NETINET6_IN6_H
                   19331: #include <netinet6/in6.h>
                   19332: #endif
                   19333: #if HAVE_NETINET_IN6_VAR_H
                   19334: #include <netinet/in6_var.h>
                   19335: #endif
                   19336: #if HAVE_NETINET_ICMP6_H
                   19337: # include <netinet/icmp6.h>
                   19338: #endif
                   19339: #if HAVE_NETINET6_IN6_VAR_H
                   19340: # include <netinet6/in6_var.h>
                   19341: #endif
                   19342: #if HAVE_NETINET6_ND6_H
                   19343: # include <netinet6/nd6.h>
                   19344: #endif
                   19345: 
                   19346: "
1.1.1.4 ! misho    19347: if test "x$ac_cv_type_struct_nd_opt_adv_interval" = xyes; then :
1.1       misho    19348: 
                   19349: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    19350: #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL 1
1.1       misho    19351: _ACEOF
                   19352: 
                   19353: 
                   19354: fi
1.1.1.4 ! misho    19355: ac_fn_c_check_type "$LINENO" "struct rt_addrinfo" "ac_cv_type_struct_rt_addrinfo" "#ifdef SUNOS_5
1.1       misho    19356: #define _XPG4_2
                   19357: #define __EXTENSIONS__
                   19358: #endif
                   19359: #include <stdio.h>
                   19360: #if STDC_HEADERS
                   19361: # include <stdlib.h>
                   19362: # include <stddef.h>
                   19363: #else
                   19364: # if HAVE_STDLIB_H
                   19365: #  include <stdlib.h>
                   19366: # endif
                   19367: #endif
                   19368: #if HAVE_SYS_TYPES_H
                   19369: # include <sys/types.h>
                   19370: #endif
                   19371: /* sys/conf.h depends on param.h on FBSD at least */
                   19372: #if HAVE_SYS_PARAM_H
                   19373: # include <sys/param.h>
                   19374: #endif
                   19375: /* Required for MAXSIG */
                   19376: #if HAVE_SIGNAL_H
                   19377: # include <signal.h>
                   19378: #endif
                   19379: #if HAVE_SYS_SOCKET_H
                   19380: # include <sys/socket.h>
                   19381: #endif
1.1.1.4 ! misho    19382: #ifdef __APPLE__
        !          19383: # define __APPLE_USE_RFC_3542
        !          19384: #endif
1.1       misho    19385: #if HAVE_NETINET_IN_H
                   19386: # include <netinet/in.h>
                   19387: #endif
                   19388: #ifdef TIME_WITH_SYS_TIME
                   19389: # include <sys/time.h>
                   19390: # include <time.h>
                   19391: #else
                   19392: # ifdef HAVE_SYS_TIME_H
                   19393: #  include <sys/time.h>
                   19394: # else
                   19395: #  include <time.h>
                   19396: # endif
                   19397: #endif /* TIME_WITH_SYS_TIME */
                   19398: 
                   19399: #if HAVE_NET_IF_H
                   19400: # include <net/if.h>
                   19401: #endif
                   19402: 
                   19403: #if HAVE_NET_IF_VAR_H
                   19404: # include <net/if_var.h>
                   19405: #endif
                   19406: 
                   19407: #if HAVE_SYS_UN_H
                   19408: # include <sys/un.h>
                   19409: #endif
                   19410: #if HAVE_NETINET_IN_SYSTM_H
                   19411: # include <netinet/in_systm.h>
                   19412: #endif
                   19413: #if HAVE_NETINET_IN_VAR_H
                   19414: # include <netinet/in_var.h>
                   19415: #endif
                   19416: #if HAVE_NET_IF_DL_H
                   19417: # include <net/if_dl.h>
                   19418: #endif
                   19419: #if HAVE_NET_NETOPT_H
                   19420: # include <net/netopt.h>
                   19421: #endif
                   19422: #if HAVE_NET_ROUTE_H
                   19423: # include <net/route.h>
                   19424: #endif
                   19425: #if HAVE_INET_ND_H
                   19426: # include <inet/nd.h>
                   19427: #endif
                   19428: #if HAVE_ARPA_INET_H
                   19429: # include <arpa/inet.h>
                   19430: #endif
                   19431: /* Required for IDRP */
                   19432: #if HAVE_NETINET_IP_ICMP_H
                   19433: # include <netinet/ip_icmp.h>
                   19434: #endif
                   19435: 
                   19436: #if HAVE_NETINET6_IN6_H
                   19437: #include <netinet6/in6.h>
                   19438: #endif
                   19439: #if HAVE_NETINET_IN6_VAR_H
                   19440: #include <netinet/in6_var.h>
                   19441: #endif
                   19442: #if HAVE_NETINET_ICMP6_H
                   19443: # include <netinet/icmp6.h>
                   19444: #endif
                   19445: #if HAVE_NETINET6_IN6_VAR_H
                   19446: # include <netinet6/in6_var.h>
                   19447: #endif
                   19448: #if HAVE_NETINET6_ND6_H
                   19449: # include <netinet6/nd6.h>
                   19450: #endif
                   19451: 
                   19452: "
1.1.1.4 ! misho    19453: if test "x$ac_cv_type_struct_rt_addrinfo" = xyes; then :
1.1       misho    19454: 
                   19455: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    19456: #define HAVE_STRUCT_RT_ADDRINFO 1
1.1       misho    19457: _ACEOF
                   19458: 
                   19459: 
                   19460: fi
1.1.1.4 ! misho    19461: ac_fn_c_check_type "$LINENO" "struct nd_opt_homeagent_info" "ac_cv_type_struct_nd_opt_homeagent_info" "#ifdef SUNOS_5
1.1       misho    19462: #define _XPG4_2
                   19463: #define __EXTENSIONS__
                   19464: #endif
                   19465: #include <stdio.h>
                   19466: #if STDC_HEADERS
                   19467: # include <stdlib.h>
                   19468: # include <stddef.h>
                   19469: #else
                   19470: # if HAVE_STDLIB_H
                   19471: #  include <stdlib.h>
                   19472: # endif
                   19473: #endif
                   19474: #if HAVE_SYS_TYPES_H
                   19475: # include <sys/types.h>
                   19476: #endif
                   19477: /* sys/conf.h depends on param.h on FBSD at least */
                   19478: #if HAVE_SYS_PARAM_H
                   19479: # include <sys/param.h>
                   19480: #endif
                   19481: /* Required for MAXSIG */
                   19482: #if HAVE_SIGNAL_H
                   19483: # include <signal.h>
                   19484: #endif
                   19485: #if HAVE_SYS_SOCKET_H
                   19486: # include <sys/socket.h>
                   19487: #endif
1.1.1.4 ! misho    19488: #ifdef __APPLE__
        !          19489: # define __APPLE_USE_RFC_3542
        !          19490: #endif
1.1       misho    19491: #if HAVE_NETINET_IN_H
                   19492: # include <netinet/in.h>
                   19493: #endif
                   19494: #ifdef TIME_WITH_SYS_TIME
                   19495: # include <sys/time.h>
                   19496: # include <time.h>
                   19497: #else
                   19498: # ifdef HAVE_SYS_TIME_H
                   19499: #  include <sys/time.h>
                   19500: # else
                   19501: #  include <time.h>
                   19502: # endif
                   19503: #endif /* TIME_WITH_SYS_TIME */
                   19504: 
                   19505: #if HAVE_NET_IF_H
                   19506: # include <net/if.h>
                   19507: #endif
                   19508: 
                   19509: #if HAVE_NET_IF_VAR_H
                   19510: # include <net/if_var.h>
                   19511: #endif
                   19512: 
                   19513: #if HAVE_SYS_UN_H
                   19514: # include <sys/un.h>
                   19515: #endif
                   19516: #if HAVE_NETINET_IN_SYSTM_H
                   19517: # include <netinet/in_systm.h>
                   19518: #endif
                   19519: #if HAVE_NETINET_IN_VAR_H
                   19520: # include <netinet/in_var.h>
                   19521: #endif
                   19522: #if HAVE_NET_IF_DL_H
                   19523: # include <net/if_dl.h>
                   19524: #endif
                   19525: #if HAVE_NET_NETOPT_H
                   19526: # include <net/netopt.h>
                   19527: #endif
                   19528: #if HAVE_NET_ROUTE_H
                   19529: # include <net/route.h>
                   19530: #endif
                   19531: #if HAVE_INET_ND_H
                   19532: # include <inet/nd.h>
                   19533: #endif
                   19534: #if HAVE_ARPA_INET_H
                   19535: # include <arpa/inet.h>
                   19536: #endif
                   19537: /* Required for IDRP */
                   19538: #if HAVE_NETINET_IP_ICMP_H
                   19539: # include <netinet/ip_icmp.h>
                   19540: #endif
                   19541: 
                   19542: #if HAVE_NETINET6_IN6_H
                   19543: #include <netinet6/in6.h>
                   19544: #endif
                   19545: #if HAVE_NETINET_IN6_VAR_H
                   19546: #include <netinet/in6_var.h>
                   19547: #endif
                   19548: #if HAVE_NETINET_ICMP6_H
                   19549: # include <netinet/icmp6.h>
                   19550: #endif
                   19551: #if HAVE_NETINET6_IN6_VAR_H
                   19552: # include <netinet6/in6_var.h>
                   19553: #endif
                   19554: #if HAVE_NETINET6_ND6_H
                   19555: # include <netinet6/nd6.h>
                   19556: #endif
                   19557: 
                   19558: "
1.1.1.4 ! misho    19559: if test "x$ac_cv_type_struct_nd_opt_homeagent_info" = xyes; then :
1.1       misho    19560: 
                   19561: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    19562: #define HAVE_STRUCT_ND_OPT_HOMEAGENT_INFO 1
1.1       misho    19563: _ACEOF
                   19564: 
                   19565: 
                   19566: fi
1.1.1.4 ! misho    19567: ac_fn_c_check_type "$LINENO" "struct nd_opt_adv_interval" "ac_cv_type_struct_nd_opt_adv_interval" "#ifdef SUNOS_5
1.1       misho    19568: #define _XPG4_2
                   19569: #define __EXTENSIONS__
                   19570: #endif
                   19571: #include <stdio.h>
                   19572: #if STDC_HEADERS
                   19573: # include <stdlib.h>
                   19574: # include <stddef.h>
                   19575: #else
                   19576: # if HAVE_STDLIB_H
                   19577: #  include <stdlib.h>
                   19578: # endif
                   19579: #endif
                   19580: #if HAVE_SYS_TYPES_H
                   19581: # include <sys/types.h>
                   19582: #endif
                   19583: /* sys/conf.h depends on param.h on FBSD at least */
                   19584: #if HAVE_SYS_PARAM_H
                   19585: # include <sys/param.h>
                   19586: #endif
                   19587: /* Required for MAXSIG */
                   19588: #if HAVE_SIGNAL_H
                   19589: # include <signal.h>
                   19590: #endif
                   19591: #if HAVE_SYS_SOCKET_H
                   19592: # include <sys/socket.h>
                   19593: #endif
1.1.1.4 ! misho    19594: #ifdef __APPLE__
        !          19595: # define __APPLE_USE_RFC_3542
        !          19596: #endif
1.1       misho    19597: #if HAVE_NETINET_IN_H
                   19598: # include <netinet/in.h>
                   19599: #endif
                   19600: #ifdef TIME_WITH_SYS_TIME
                   19601: # include <sys/time.h>
                   19602: # include <time.h>
                   19603: #else
                   19604: # ifdef HAVE_SYS_TIME_H
                   19605: #  include <sys/time.h>
                   19606: # else
                   19607: #  include <time.h>
                   19608: # endif
                   19609: #endif /* TIME_WITH_SYS_TIME */
                   19610: 
                   19611: #if HAVE_NET_IF_H
                   19612: # include <net/if.h>
                   19613: #endif
                   19614: 
                   19615: #if HAVE_NET_IF_VAR_H
                   19616: # include <net/if_var.h>
                   19617: #endif
                   19618: 
                   19619: #if HAVE_SYS_UN_H
                   19620: # include <sys/un.h>
                   19621: #endif
                   19622: #if HAVE_NETINET_IN_SYSTM_H
                   19623: # include <netinet/in_systm.h>
                   19624: #endif
                   19625: #if HAVE_NETINET_IN_VAR_H
                   19626: # include <netinet/in_var.h>
                   19627: #endif
                   19628: #if HAVE_NET_IF_DL_H
                   19629: # include <net/if_dl.h>
                   19630: #endif
                   19631: #if HAVE_NET_NETOPT_H
                   19632: # include <net/netopt.h>
                   19633: #endif
                   19634: #if HAVE_NET_ROUTE_H
                   19635: # include <net/route.h>
                   19636: #endif
                   19637: #if HAVE_INET_ND_H
                   19638: # include <inet/nd.h>
                   19639: #endif
                   19640: #if HAVE_ARPA_INET_H
                   19641: # include <arpa/inet.h>
                   19642: #endif
                   19643: /* Required for IDRP */
                   19644: #if HAVE_NETINET_IP_ICMP_H
                   19645: # include <netinet/ip_icmp.h>
                   19646: #endif
                   19647: 
                   19648: #if HAVE_NETINET6_IN6_H
                   19649: #include <netinet6/in6.h>
                   19650: #endif
                   19651: #if HAVE_NETINET_IN6_VAR_H
                   19652: #include <netinet/in6_var.h>
                   19653: #endif
                   19654: #if HAVE_NETINET_ICMP6_H
                   19655: # include <netinet/icmp6.h>
                   19656: #endif
                   19657: #if HAVE_NETINET6_IN6_VAR_H
                   19658: # include <netinet6/in6_var.h>
                   19659: #endif
                   19660: #if HAVE_NETINET6_ND6_H
                   19661: # include <netinet6/nd6.h>
                   19662: #endif
                   19663: 
                   19664: "
1.1.1.4 ! misho    19665: if test "x$ac_cv_type_struct_nd_opt_adv_interval" = xyes; then :
1.1       misho    19666: 
                   19667: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    19668: #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL 1
1.1       misho    19669: _ACEOF
                   19670: 
                   19671: 
                   19672: fi
1.1.1.4 ! misho    19673: 
        !          19674: 
        !          19675: ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#ifdef SUNOS_5
1.1       misho    19676: #define _XPG4_2
                   19677: #define __EXTENSIONS__
                   19678: #endif
                   19679: #include <stdio.h>
                   19680: #if STDC_HEADERS
                   19681: # include <stdlib.h>
                   19682: # include <stddef.h>
                   19683: #else
                   19684: # if HAVE_STDLIB_H
                   19685: #  include <stdlib.h>
                   19686: # endif
                   19687: #endif
                   19688: #if HAVE_SYS_TYPES_H
                   19689: # include <sys/types.h>
                   19690: #endif
                   19691: /* sys/conf.h depends on param.h on FBSD at least */
                   19692: #if HAVE_SYS_PARAM_H
                   19693: # include <sys/param.h>
                   19694: #endif
                   19695: /* Required for MAXSIG */
                   19696: #if HAVE_SIGNAL_H
                   19697: # include <signal.h>
                   19698: #endif
                   19699: #if HAVE_SYS_SOCKET_H
                   19700: # include <sys/socket.h>
                   19701: #endif
1.1.1.4 ! misho    19702: #ifdef __APPLE__
        !          19703: # define __APPLE_USE_RFC_3542
        !          19704: #endif
1.1       misho    19705: #if HAVE_NETINET_IN_H
                   19706: # include <netinet/in.h>
                   19707: #endif
                   19708: #ifdef TIME_WITH_SYS_TIME
                   19709: # include <sys/time.h>
                   19710: # include <time.h>
                   19711: #else
                   19712: # ifdef HAVE_SYS_TIME_H
                   19713: #  include <sys/time.h>
                   19714: # else
                   19715: #  include <time.h>
                   19716: # endif
                   19717: #endif /* TIME_WITH_SYS_TIME */
                   19718: 
                   19719: #if HAVE_NET_IF_H
                   19720: # include <net/if.h>
                   19721: #endif
                   19722: 
                   19723: #if HAVE_NET_IF_VAR_H
                   19724: # include <net/if_var.h>
                   19725: #endif
                   19726: 
                   19727: #if HAVE_SYS_UN_H
                   19728: # include <sys/un.h>
                   19729: #endif
                   19730: #if HAVE_NETINET_IN_SYSTM_H
                   19731: # include <netinet/in_systm.h>
                   19732: #endif
                   19733: #if HAVE_NETINET_IN_VAR_H
                   19734: # include <netinet/in_var.h>
                   19735: #endif
                   19736: #if HAVE_NET_IF_DL_H
                   19737: # include <net/if_dl.h>
                   19738: #endif
                   19739: #if HAVE_NET_NETOPT_H
                   19740: # include <net/netopt.h>
                   19741: #endif
                   19742: #if HAVE_NET_ROUTE_H
                   19743: # include <net/route.h>
                   19744: #endif
                   19745: #if HAVE_INET_ND_H
                   19746: # include <inet/nd.h>
                   19747: #endif
                   19748: #if HAVE_ARPA_INET_H
                   19749: # include <arpa/inet.h>
                   19750: #endif
                   19751: /* Required for IDRP */
                   19752: #if HAVE_NETINET_IP_ICMP_H
                   19753: # include <netinet/ip_icmp.h>
                   19754: #endif
                   19755: 
                   19756: #if HAVE_NETINET6_IN6_H
                   19757: #include <netinet6/in6.h>
                   19758: #endif
                   19759: #if HAVE_NETINET_IN6_VAR_H
                   19760: #include <netinet/in6_var.h>
                   19761: #endif
                   19762: #if HAVE_NETINET_ICMP6_H
                   19763: # include <netinet/icmp6.h>
                   19764: #endif
                   19765: #if HAVE_NETINET6_IN6_VAR_H
                   19766: # include <netinet6/in6_var.h>
                   19767: #endif
                   19768: #if HAVE_NETINET6_ND6_H
                   19769: # include <netinet6/nd6.h>
                   19770: #endif
                   19771: 
                   19772: "
1.1.1.4 ! misho    19773: if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
1.1       misho    19774: 
                   19775: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    19776: #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
1.1       misho    19777: _ACEOF
                   19778: 
                   19779: 
                   19780: fi
1.1.1.4 ! misho    19781: ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#ifdef SUNOS_5
1.1       misho    19782: #define _XPG4_2
                   19783: #define __EXTENSIONS__
                   19784: #endif
                   19785: #include <stdio.h>
                   19786: #if STDC_HEADERS
                   19787: # include <stdlib.h>
                   19788: # include <stddef.h>
                   19789: #else
                   19790: # if HAVE_STDLIB_H
                   19791: #  include <stdlib.h>
                   19792: # endif
                   19793: #endif
                   19794: #if HAVE_SYS_TYPES_H
                   19795: # include <sys/types.h>
                   19796: #endif
                   19797: /* sys/conf.h depends on param.h on FBSD at least */
                   19798: #if HAVE_SYS_PARAM_H
                   19799: # include <sys/param.h>
                   19800: #endif
                   19801: /* Required for MAXSIG */
                   19802: #if HAVE_SIGNAL_H
                   19803: # include <signal.h>
                   19804: #endif
                   19805: #if HAVE_SYS_SOCKET_H
                   19806: # include <sys/socket.h>
                   19807: #endif
1.1.1.4 ! misho    19808: #ifdef __APPLE__
        !          19809: # define __APPLE_USE_RFC_3542
        !          19810: #endif
1.1       misho    19811: #if HAVE_NETINET_IN_H
                   19812: # include <netinet/in.h>
                   19813: #endif
                   19814: #ifdef TIME_WITH_SYS_TIME
                   19815: # include <sys/time.h>
                   19816: # include <time.h>
                   19817: #else
                   19818: # ifdef HAVE_SYS_TIME_H
                   19819: #  include <sys/time.h>
                   19820: # else
                   19821: #  include <time.h>
                   19822: # endif
                   19823: #endif /* TIME_WITH_SYS_TIME */
                   19824: 
                   19825: #if HAVE_NET_IF_H
                   19826: # include <net/if.h>
                   19827: #endif
                   19828: 
                   19829: #if HAVE_NET_IF_VAR_H
                   19830: # include <net/if_var.h>
                   19831: #endif
                   19832: 
                   19833: #if HAVE_SYS_UN_H
                   19834: # include <sys/un.h>
                   19835: #endif
                   19836: #if HAVE_NETINET_IN_SYSTM_H
                   19837: # include <netinet/in_systm.h>
                   19838: #endif
                   19839: #if HAVE_NETINET_IN_VAR_H
                   19840: # include <netinet/in_var.h>
                   19841: #endif
                   19842: #if HAVE_NET_IF_DL_H
                   19843: # include <net/if_dl.h>
                   19844: #endif
                   19845: #if HAVE_NET_NETOPT_H
                   19846: # include <net/netopt.h>
                   19847: #endif
                   19848: #if HAVE_NET_ROUTE_H
                   19849: # include <net/route.h>
                   19850: #endif
                   19851: #if HAVE_INET_ND_H
                   19852: # include <inet/nd.h>
                   19853: #endif
                   19854: #if HAVE_ARPA_INET_H
                   19855: # include <arpa/inet.h>
                   19856: #endif
                   19857: /* Required for IDRP */
                   19858: #if HAVE_NETINET_IP_ICMP_H
                   19859: # include <netinet/ip_icmp.h>
                   19860: #endif
                   19861: 
                   19862: #if HAVE_NETINET6_IN6_H
                   19863: #include <netinet6/in6.h>
                   19864: #endif
                   19865: #if HAVE_NETINET_IN6_VAR_H
                   19866: #include <netinet/in6_var.h>
                   19867: #endif
                   19868: #if HAVE_NETINET_ICMP6_H
                   19869: # include <netinet/icmp6.h>
                   19870: #endif
                   19871: #if HAVE_NETINET6_IN6_VAR_H
                   19872: # include <netinet6/in6_var.h>
                   19873: #endif
                   19874: #if HAVE_NETINET6_ND6_H
                   19875: # include <netinet6/nd6.h>
                   19876: #endif
                   19877: 
                   19878: "
1.1.1.4 ! misho    19879: if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
1.1       misho    19880: 
                   19881: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    19882: #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
1.1       misho    19883: _ACEOF
                   19884: 
                   19885: 
                   19886: fi
1.1.1.4 ! misho    19887: ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#ifdef SUNOS_5
1.1       misho    19888: #define _XPG4_2
                   19889: #define __EXTENSIONS__
                   19890: #endif
                   19891: #include <stdio.h>
                   19892: #if STDC_HEADERS
                   19893: # include <stdlib.h>
                   19894: # include <stddef.h>
                   19895: #else
                   19896: # if HAVE_STDLIB_H
                   19897: #  include <stdlib.h>
                   19898: # endif
                   19899: #endif
                   19900: #if HAVE_SYS_TYPES_H
                   19901: # include <sys/types.h>
                   19902: #endif
                   19903: /* sys/conf.h depends on param.h on FBSD at least */
                   19904: #if HAVE_SYS_PARAM_H
                   19905: # include <sys/param.h>
                   19906: #endif
                   19907: /* Required for MAXSIG */
                   19908: #if HAVE_SIGNAL_H
                   19909: # include <signal.h>
                   19910: #endif
                   19911: #if HAVE_SYS_SOCKET_H
                   19912: # include <sys/socket.h>
                   19913: #endif
1.1.1.4 ! misho    19914: #ifdef __APPLE__
        !          19915: # define __APPLE_USE_RFC_3542
        !          19916: #endif
1.1       misho    19917: #if HAVE_NETINET_IN_H
                   19918: # include <netinet/in.h>
                   19919: #endif
                   19920: #ifdef TIME_WITH_SYS_TIME
                   19921: # include <sys/time.h>
                   19922: # include <time.h>
                   19923: #else
                   19924: # ifdef HAVE_SYS_TIME_H
                   19925: #  include <sys/time.h>
                   19926: # else
                   19927: #  include <time.h>
                   19928: # endif
                   19929: #endif /* TIME_WITH_SYS_TIME */
                   19930: 
                   19931: #if HAVE_NET_IF_H
                   19932: # include <net/if.h>
                   19933: #endif
                   19934: 
                   19935: #if HAVE_NET_IF_VAR_H
                   19936: # include <net/if_var.h>
                   19937: #endif
                   19938: 
                   19939: #if HAVE_SYS_UN_H
                   19940: # include <sys/un.h>
                   19941: #endif
                   19942: #if HAVE_NETINET_IN_SYSTM_H
                   19943: # include <netinet/in_systm.h>
                   19944: #endif
                   19945: #if HAVE_NETINET_IN_VAR_H
                   19946: # include <netinet/in_var.h>
                   19947: #endif
                   19948: #if HAVE_NET_IF_DL_H
                   19949: # include <net/if_dl.h>
                   19950: #endif
                   19951: #if HAVE_NET_NETOPT_H
                   19952: # include <net/netopt.h>
                   19953: #endif
                   19954: #if HAVE_NET_ROUTE_H
                   19955: # include <net/route.h>
                   19956: #endif
                   19957: #if HAVE_INET_ND_H
                   19958: # include <inet/nd.h>
                   19959: #endif
                   19960: #if HAVE_ARPA_INET_H
                   19961: # include <arpa/inet.h>
                   19962: #endif
                   19963: /* Required for IDRP */
                   19964: #if HAVE_NETINET_IP_ICMP_H
                   19965: # include <netinet/ip_icmp.h>
                   19966: #endif
                   19967: 
                   19968: #if HAVE_NETINET6_IN6_H
                   19969: #include <netinet6/in6.h>
                   19970: #endif
                   19971: #if HAVE_NETINET_IN6_VAR_H
                   19972: #include <netinet/in6_var.h>
                   19973: #endif
                   19974: #if HAVE_NETINET_ICMP6_H
                   19975: # include <netinet/icmp6.h>
                   19976: #endif
                   19977: #if HAVE_NETINET6_IN6_VAR_H
                   19978: # include <netinet6/in6_var.h>
                   19979: #endif
                   19980: #if HAVE_NETINET6_ND6_H
                   19981: # include <netinet6/nd6.h>
                   19982: #endif
                   19983: 
                   19984: "
1.1.1.4 ! misho    19985: if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
1.1       misho    19986: 
                   19987: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    19988: #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
1.1       misho    19989: _ACEOF
                   19990: 
                   19991: 
                   19992: fi
1.1.1.4 ! misho    19993: ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "#ifdef SUNOS_5
1.1       misho    19994: #define _XPG4_2
                   19995: #define __EXTENSIONS__
                   19996: #endif
                   19997: #include <stdio.h>
                   19998: #if STDC_HEADERS
                   19999: # include <stdlib.h>
                   20000: # include <stddef.h>
                   20001: #else
                   20002: # if HAVE_STDLIB_H
                   20003: #  include <stdlib.h>
                   20004: # endif
                   20005: #endif
                   20006: #if HAVE_SYS_TYPES_H
                   20007: # include <sys/types.h>
                   20008: #endif
                   20009: /* sys/conf.h depends on param.h on FBSD at least */
                   20010: #if HAVE_SYS_PARAM_H
                   20011: # include <sys/param.h>
                   20012: #endif
                   20013: /* Required for MAXSIG */
                   20014: #if HAVE_SIGNAL_H
                   20015: # include <signal.h>
                   20016: #endif
                   20017: #if HAVE_SYS_SOCKET_H
                   20018: # include <sys/socket.h>
                   20019: #endif
1.1.1.4 ! misho    20020: #ifdef __APPLE__
        !          20021: # define __APPLE_USE_RFC_3542
        !          20022: #endif
1.1       misho    20023: #if HAVE_NETINET_IN_H
                   20024: # include <netinet/in.h>
                   20025: #endif
                   20026: #ifdef TIME_WITH_SYS_TIME
                   20027: # include <sys/time.h>
                   20028: # include <time.h>
                   20029: #else
                   20030: # ifdef HAVE_SYS_TIME_H
                   20031: #  include <sys/time.h>
                   20032: # else
                   20033: #  include <time.h>
                   20034: # endif
                   20035: #endif /* TIME_WITH_SYS_TIME */
                   20036: 
                   20037: #if HAVE_NET_IF_H
                   20038: # include <net/if.h>
                   20039: #endif
                   20040: 
                   20041: #if HAVE_NET_IF_VAR_H
                   20042: # include <net/if_var.h>
                   20043: #endif
                   20044: 
                   20045: #if HAVE_SYS_UN_H
                   20046: # include <sys/un.h>
                   20047: #endif
                   20048: #if HAVE_NETINET_IN_SYSTM_H
                   20049: # include <netinet/in_systm.h>
                   20050: #endif
                   20051: #if HAVE_NETINET_IN_VAR_H
                   20052: # include <netinet/in_var.h>
                   20053: #endif
                   20054: #if HAVE_NET_IF_DL_H
                   20055: # include <net/if_dl.h>
                   20056: #endif
                   20057: #if HAVE_NET_NETOPT_H
                   20058: # include <net/netopt.h>
                   20059: #endif
                   20060: #if HAVE_NET_ROUTE_H
                   20061: # include <net/route.h>
                   20062: #endif
                   20063: #if HAVE_INET_ND_H
                   20064: # include <inet/nd.h>
                   20065: #endif
                   20066: #if HAVE_ARPA_INET_H
                   20067: # include <arpa/inet.h>
                   20068: #endif
                   20069: /* Required for IDRP */
                   20070: #if HAVE_NETINET_IP_ICMP_H
                   20071: # include <netinet/ip_icmp.h>
                   20072: #endif
                   20073: 
                   20074: #if HAVE_NETINET6_IN6_H
                   20075: #include <netinet6/in6.h>
                   20076: #endif
                   20077: #if HAVE_NETINET_IN6_VAR_H
                   20078: #include <netinet/in6_var.h>
                   20079: #endif
                   20080: #if HAVE_NETINET_ICMP6_H
                   20081: # include <netinet/icmp6.h>
                   20082: #endif
                   20083: #if HAVE_NETINET6_IN6_VAR_H
                   20084: # include <netinet6/in6_var.h>
                   20085: #endif
                   20086: #if HAVE_NETINET6_ND6_H
                   20087: # include <netinet6/nd6.h>
                   20088: #endif
                   20089: 
                   20090: "
1.1.1.4 ! misho    20091: if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
1.1       misho    20092: 
                   20093: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    20094: #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
1.1       misho    20095: _ACEOF
                   20096: 
                   20097: 
                   20098: fi
1.1.1.4 ! misho    20099: ac_fn_c_check_member "$LINENO" "struct sockaddr_dl" "sdl_len" "ac_cv_member_struct_sockaddr_dl_sdl_len" "#ifdef SUNOS_5
1.1       misho    20100: #define _XPG4_2
                   20101: #define __EXTENSIONS__
                   20102: #endif
                   20103: #include <stdio.h>
                   20104: #if STDC_HEADERS
                   20105: # include <stdlib.h>
                   20106: # include <stddef.h>
                   20107: #else
                   20108: # if HAVE_STDLIB_H
                   20109: #  include <stdlib.h>
                   20110: # endif
                   20111: #endif
                   20112: #if HAVE_SYS_TYPES_H
                   20113: # include <sys/types.h>
                   20114: #endif
                   20115: /* sys/conf.h depends on param.h on FBSD at least */
                   20116: #if HAVE_SYS_PARAM_H
                   20117: # include <sys/param.h>
                   20118: #endif
                   20119: /* Required for MAXSIG */
                   20120: #if HAVE_SIGNAL_H
                   20121: # include <signal.h>
                   20122: #endif
                   20123: #if HAVE_SYS_SOCKET_H
                   20124: # include <sys/socket.h>
                   20125: #endif
1.1.1.4 ! misho    20126: #ifdef __APPLE__
        !          20127: # define __APPLE_USE_RFC_3542
        !          20128: #endif
1.1       misho    20129: #if HAVE_NETINET_IN_H
                   20130: # include <netinet/in.h>
                   20131: #endif
                   20132: #ifdef TIME_WITH_SYS_TIME
                   20133: # include <sys/time.h>
                   20134: # include <time.h>
                   20135: #else
                   20136: # ifdef HAVE_SYS_TIME_H
                   20137: #  include <sys/time.h>
                   20138: # else
                   20139: #  include <time.h>
                   20140: # endif
                   20141: #endif /* TIME_WITH_SYS_TIME */
                   20142: 
                   20143: #if HAVE_NET_IF_H
                   20144: # include <net/if.h>
                   20145: #endif
                   20146: 
                   20147: #if HAVE_NET_IF_VAR_H
                   20148: # include <net/if_var.h>
                   20149: #endif
                   20150: 
                   20151: #if HAVE_SYS_UN_H
                   20152: # include <sys/un.h>
                   20153: #endif
                   20154: #if HAVE_NETINET_IN_SYSTM_H
                   20155: # include <netinet/in_systm.h>
                   20156: #endif
                   20157: #if HAVE_NETINET_IN_VAR_H
                   20158: # include <netinet/in_var.h>
                   20159: #endif
                   20160: #if HAVE_NET_IF_DL_H
                   20161: # include <net/if_dl.h>
                   20162: #endif
                   20163: #if HAVE_NET_NETOPT_H
                   20164: # include <net/netopt.h>
                   20165: #endif
                   20166: #if HAVE_NET_ROUTE_H
                   20167: # include <net/route.h>
                   20168: #endif
                   20169: #if HAVE_INET_ND_H
                   20170: # include <inet/nd.h>
                   20171: #endif
                   20172: #if HAVE_ARPA_INET_H
                   20173: # include <arpa/inet.h>
                   20174: #endif
                   20175: /* Required for IDRP */
                   20176: #if HAVE_NETINET_IP_ICMP_H
                   20177: # include <netinet/ip_icmp.h>
                   20178: #endif
                   20179: 
                   20180: #if HAVE_NETINET6_IN6_H
                   20181: #include <netinet6/in6.h>
                   20182: #endif
                   20183: #if HAVE_NETINET_IN6_VAR_H
                   20184: #include <netinet/in6_var.h>
                   20185: #endif
                   20186: #if HAVE_NETINET_ICMP6_H
                   20187: # include <netinet/icmp6.h>
                   20188: #endif
                   20189: #if HAVE_NETINET6_IN6_VAR_H
                   20190: # include <netinet6/in6_var.h>
                   20191: #endif
                   20192: #if HAVE_NETINET6_ND6_H
                   20193: # include <netinet6/nd6.h>
                   20194: #endif
                   20195: 
                   20196: "
1.1.1.4 ! misho    20197: if test "x$ac_cv_member_struct_sockaddr_dl_sdl_len" = xyes; then :
1.1       misho    20198: 
                   20199: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho    20200: #define HAVE_STRUCT_SOCKADDR_DL_SDL_LEN 1
1.1       misho    20201: _ACEOF
                   20202: 
                   20203: 
                   20204: fi
                   20205: ac_fn_c_check_member "$LINENO" "struct if6_aliasreq" "ifra_lifetime" "ac_cv_member_struct_if6_aliasreq_ifra_lifetime" "#ifdef SUNOS_5
                   20206: #define _XPG4_2
                   20207: #define __EXTENSIONS__
                   20208: #endif
                   20209: #include <stdio.h>
                   20210: #if STDC_HEADERS
                   20211: # include <stdlib.h>
                   20212: # include <stddef.h>
                   20213: #else
                   20214: # if HAVE_STDLIB_H
                   20215: #  include <stdlib.h>
                   20216: # endif
                   20217: #endif
                   20218: #if HAVE_SYS_TYPES_H
                   20219: # include <sys/types.h>
                   20220: #endif
                   20221: /* sys/conf.h depends on param.h on FBSD at least */
                   20222: #if HAVE_SYS_PARAM_H
                   20223: # include <sys/param.h>
                   20224: #endif
                   20225: /* Required for MAXSIG */
                   20226: #if HAVE_SIGNAL_H
                   20227: # include <signal.h>
                   20228: #endif
                   20229: #if HAVE_SYS_SOCKET_H
                   20230: # include <sys/socket.h>
                   20231: #endif
1.1.1.4 ! misho    20232: #ifdef __APPLE__
        !          20233: # define __APPLE_USE_RFC_3542
        !          20234: #endif
1.1       misho    20235: #if HAVE_NETINET_IN_H
                   20236: # include <netinet/in.h>
                   20237: #endif
                   20238: #ifdef TIME_WITH_SYS_TIME
                   20239: # include <sys/time.h>
                   20240: # include <time.h>
                   20241: #else
                   20242: # ifdef HAVE_SYS_TIME_H
                   20243: #  include <sys/time.h>
                   20244: # else
                   20245: #  include <time.h>
                   20246: # endif
                   20247: #endif /* TIME_WITH_SYS_TIME */
                   20248: 
                   20249: #if HAVE_NET_IF_H
                   20250: # include <net/if.h>
                   20251: #endif
                   20252: 
                   20253: #if HAVE_NET_IF_VAR_H
                   20254: # include <net/if_var.h>
                   20255: #endif
                   20256: 
                   20257: #if HAVE_SYS_UN_H
                   20258: # include <sys/un.h>
                   20259: #endif
                   20260: #if HAVE_NETINET_IN_SYSTM_H
                   20261: # include <netinet/in_systm.h>
                   20262: #endif
                   20263: #if HAVE_NETINET_IN_VAR_H
                   20264: # include <netinet/in_var.h>
                   20265: #endif
                   20266: #if HAVE_NET_IF_DL_H
                   20267: # include <net/if_dl.h>
                   20268: #endif
                   20269: #if HAVE_NET_NETOPT_H
                   20270: # include <net/netopt.h>
                   20271: #endif
                   20272: #if HAVE_NET_ROUTE_H
                   20273: # include <net/route.h>
                   20274: #endif
                   20275: #if HAVE_INET_ND_H
                   20276: # include <inet/nd.h>
                   20277: #endif
                   20278: #if HAVE_ARPA_INET_H
                   20279: # include <arpa/inet.h>
                   20280: #endif
                   20281: /* Required for IDRP */
                   20282: #if HAVE_NETINET_IP_ICMP_H
                   20283: # include <netinet/ip_icmp.h>
                   20284: #endif
                   20285: 
                   20286: #if HAVE_NETINET6_IN6_H
                   20287: #include <netinet6/in6.h>
                   20288: #endif
                   20289: #if HAVE_NETINET_IN6_VAR_H
                   20290: #include <netinet/in6_var.h>
                   20291: #endif
                   20292: #if HAVE_NETINET_ICMP6_H
                   20293: # include <netinet/icmp6.h>
                   20294: #endif
                   20295: #if HAVE_NETINET6_IN6_VAR_H
                   20296: # include <netinet6/in6_var.h>
                   20297: #endif
                   20298: #if HAVE_NETINET6_ND6_H
                   20299: # include <netinet6/nd6.h>
                   20300: #endif
                   20301: 
                   20302: "
                   20303: if test "x$ac_cv_member_struct_if6_aliasreq_ifra_lifetime" = xyes; then :
                   20304: 
                   20305: cat >>confdefs.h <<_ACEOF
                   20306: #define HAVE_STRUCT_IF6_ALIASREQ_IFRA_LIFETIME 1
                   20307: _ACEOF
                   20308: 
                   20309: 
                   20310: fi
                   20311: ac_fn_c_check_member "$LINENO" "struct nd_opt_adv_interval" "nd_opt_ai_type" "ac_cv_member_struct_nd_opt_adv_interval_nd_opt_ai_type" "#ifdef SUNOS_5
                   20312: #define _XPG4_2
                   20313: #define __EXTENSIONS__
                   20314: #endif
                   20315: #include <stdio.h>
                   20316: #if STDC_HEADERS
                   20317: # include <stdlib.h>
                   20318: # include <stddef.h>
                   20319: #else
                   20320: # if HAVE_STDLIB_H
                   20321: #  include <stdlib.h>
                   20322: # endif
                   20323: #endif
                   20324: #if HAVE_SYS_TYPES_H
                   20325: # include <sys/types.h>
                   20326: #endif
                   20327: /* sys/conf.h depends on param.h on FBSD at least */
                   20328: #if HAVE_SYS_PARAM_H
                   20329: # include <sys/param.h>
                   20330: #endif
                   20331: /* Required for MAXSIG */
                   20332: #if HAVE_SIGNAL_H
                   20333: # include <signal.h>
                   20334: #endif
                   20335: #if HAVE_SYS_SOCKET_H
                   20336: # include <sys/socket.h>
                   20337: #endif
1.1.1.4 ! misho    20338: #ifdef __APPLE__
        !          20339: # define __APPLE_USE_RFC_3542
        !          20340: #endif
1.1       misho    20341: #if HAVE_NETINET_IN_H
                   20342: # include <netinet/in.h>
                   20343: #endif
                   20344: #ifdef TIME_WITH_SYS_TIME
                   20345: # include <sys/time.h>
                   20346: # include <time.h>
                   20347: #else
                   20348: # ifdef HAVE_SYS_TIME_H
                   20349: #  include <sys/time.h>
                   20350: # else
                   20351: #  include <time.h>
                   20352: # endif
                   20353: #endif /* TIME_WITH_SYS_TIME */
                   20354: 
                   20355: #if HAVE_NET_IF_H
                   20356: # include <net/if.h>
                   20357: #endif
                   20358: 
                   20359: #if HAVE_NET_IF_VAR_H
                   20360: # include <net/if_var.h>
                   20361: #endif
                   20362: 
                   20363: #if HAVE_SYS_UN_H
                   20364: # include <sys/un.h>
                   20365: #endif
                   20366: #if HAVE_NETINET_IN_SYSTM_H
                   20367: # include <netinet/in_systm.h>
                   20368: #endif
                   20369: #if HAVE_NETINET_IN_VAR_H
                   20370: # include <netinet/in_var.h>
                   20371: #endif
                   20372: #if HAVE_NET_IF_DL_H
                   20373: # include <net/if_dl.h>
                   20374: #endif
                   20375: #if HAVE_NET_NETOPT_H
                   20376: # include <net/netopt.h>
                   20377: #endif
                   20378: #if HAVE_NET_ROUTE_H
                   20379: # include <net/route.h>
                   20380: #endif
                   20381: #if HAVE_INET_ND_H
                   20382: # include <inet/nd.h>
                   20383: #endif
                   20384: #if HAVE_ARPA_INET_H
                   20385: # include <arpa/inet.h>
                   20386: #endif
                   20387: /* Required for IDRP */
                   20388: #if HAVE_NETINET_IP_ICMP_H
                   20389: # include <netinet/ip_icmp.h>
                   20390: #endif
                   20391: 
                   20392: #if HAVE_NETINET6_IN6_H
                   20393: #include <netinet6/in6.h>
                   20394: #endif
                   20395: #if HAVE_NETINET_IN6_VAR_H
                   20396: #include <netinet/in6_var.h>
                   20397: #endif
                   20398: #if HAVE_NETINET_ICMP6_H
                   20399: # include <netinet/icmp6.h>
                   20400: #endif
                   20401: #if HAVE_NETINET6_IN6_VAR_H
                   20402: # include <netinet6/in6_var.h>
                   20403: #endif
                   20404: #if HAVE_NETINET6_ND6_H
                   20405: # include <netinet6/nd6.h>
                   20406: #endif
                   20407: 
                   20408: "
                   20409: if test "x$ac_cv_member_struct_nd_opt_adv_interval_nd_opt_ai_type" = xyes; then :
                   20410: 
                   20411: cat >>confdefs.h <<_ACEOF
                   20412: #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL_ND_OPT_AI_TYPE 1
                   20413: _ACEOF
                   20414: 
                   20415: 
                   20416: fi
                   20417: 
                   20418: 
                   20419: ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "#ifdef SUNOS_5
                   20420: #define _XPG4_2
                   20421: #define __EXTENSIONS__
                   20422: #endif
                   20423: #include <stdio.h>
                   20424: #if STDC_HEADERS
                   20425: # include <stdlib.h>
                   20426: # include <stddef.h>
                   20427: #else
                   20428: # if HAVE_STDLIB_H
                   20429: #  include <stdlib.h>
                   20430: # endif
                   20431: #endif
                   20432: #if HAVE_SYS_TYPES_H
                   20433: # include <sys/types.h>
                   20434: #endif
                   20435: /* sys/conf.h depends on param.h on FBSD at least */
                   20436: #if HAVE_SYS_PARAM_H
                   20437: # include <sys/param.h>
                   20438: #endif
                   20439: /* Required for MAXSIG */
                   20440: #if HAVE_SIGNAL_H
                   20441: # include <signal.h>
                   20442: #endif
                   20443: #if HAVE_SYS_SOCKET_H
                   20444: # include <sys/socket.h>
                   20445: #endif
1.1.1.4 ! misho    20446: #ifdef __APPLE__
        !          20447: # define __APPLE_USE_RFC_3542
        !          20448: #endif
1.1       misho    20449: #if HAVE_NETINET_IN_H
                   20450: # include <netinet/in.h>
                   20451: #endif
                   20452: #ifdef TIME_WITH_SYS_TIME
                   20453: # include <sys/time.h>
                   20454: # include <time.h>
                   20455: #else
                   20456: # ifdef HAVE_SYS_TIME_H
                   20457: #  include <sys/time.h>
                   20458: # else
                   20459: #  include <time.h>
                   20460: # endif
                   20461: #endif /* TIME_WITH_SYS_TIME */
                   20462: 
                   20463: #if HAVE_NET_IF_H
                   20464: # include <net/if.h>
                   20465: #endif
                   20466: 
                   20467: #if HAVE_NET_IF_VAR_H
                   20468: # include <net/if_var.h>
                   20469: #endif
                   20470: 
                   20471: #if HAVE_SYS_UN_H
                   20472: # include <sys/un.h>
                   20473: #endif
                   20474: #if HAVE_NETINET_IN_SYSTM_H
                   20475: # include <netinet/in_systm.h>
                   20476: #endif
                   20477: #if HAVE_NETINET_IN_VAR_H
                   20478: # include <netinet/in_var.h>
                   20479: #endif
                   20480: #if HAVE_NET_IF_DL_H
                   20481: # include <net/if_dl.h>
                   20482: #endif
                   20483: #if HAVE_NET_NETOPT_H
                   20484: # include <net/netopt.h>
                   20485: #endif
                   20486: #if HAVE_NET_ROUTE_H
                   20487: # include <net/route.h>
                   20488: #endif
                   20489: #if HAVE_INET_ND_H
                   20490: # include <inet/nd.h>
                   20491: #endif
                   20492: #if HAVE_ARPA_INET_H
                   20493: # include <arpa/inet.h>
                   20494: #endif
                   20495: /* Required for IDRP */
                   20496: #if HAVE_NETINET_IP_ICMP_H
                   20497: # include <netinet/ip_icmp.h>
                   20498: #endif
                   20499: 
                   20500: #if HAVE_NETINET6_IN6_H
                   20501: #include <netinet6/in6.h>
                   20502: #endif
                   20503: #if HAVE_NETINET_IN6_VAR_H
                   20504: #include <netinet/in6_var.h>
                   20505: #endif
                   20506: #if HAVE_NETINET_ICMP6_H
                   20507: # include <netinet/icmp6.h>
                   20508: #endif
                   20509: #if HAVE_NETINET6_IN6_VAR_H
                   20510: # include <netinet6/in6_var.h>
                   20511: #endif
                   20512: #if HAVE_NETINET6_ND6_H
                   20513: # include <netinet6/nd6.h>
                   20514: #endif
                   20515: 
                   20516: "
                   20517: if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then :
                   20518: 
                   20519: cat >>confdefs.h <<_ACEOF
                   20520: #define HAVE_STRUCT_IN_PKTINFO 1
                   20521: _ACEOF
                   20522: 
                   20523: ac_fn_c_check_type "$LINENO" "struct icmphdr" "ac_cv_type_struct_icmphdr" "#ifdef SUNOS_5
                   20524: #define _XPG4_2
                   20525: #define __EXTENSIONS__
                   20526: #endif
                   20527: #include <stdio.h>
                   20528: #if STDC_HEADERS
                   20529: # include <stdlib.h>
                   20530: # include <stddef.h>
                   20531: #else
                   20532: # if HAVE_STDLIB_H
                   20533: #  include <stdlib.h>
                   20534: # endif
                   20535: #endif
                   20536: #if HAVE_SYS_TYPES_H
                   20537: # include <sys/types.h>
                   20538: #endif
                   20539: /* sys/conf.h depends on param.h on FBSD at least */
                   20540: #if HAVE_SYS_PARAM_H
                   20541: # include <sys/param.h>
                   20542: #endif
                   20543: /* Required for MAXSIG */
                   20544: #if HAVE_SIGNAL_H
                   20545: # include <signal.h>
                   20546: #endif
                   20547: #if HAVE_SYS_SOCKET_H
                   20548: # include <sys/socket.h>
                   20549: #endif
1.1.1.4 ! misho    20550: #ifdef __APPLE__
        !          20551: # define __APPLE_USE_RFC_3542
        !          20552: #endif
1.1       misho    20553: #if HAVE_NETINET_IN_H
                   20554: # include <netinet/in.h>
                   20555: #endif
                   20556: #ifdef TIME_WITH_SYS_TIME
                   20557: # include <sys/time.h>
                   20558: # include <time.h>
                   20559: #else
                   20560: # ifdef HAVE_SYS_TIME_H
                   20561: #  include <sys/time.h>
                   20562: # else
                   20563: #  include <time.h>
                   20564: # endif
                   20565: #endif /* TIME_WITH_SYS_TIME */
                   20566: 
                   20567: #if HAVE_NET_IF_H
                   20568: # include <net/if.h>
                   20569: #endif
                   20570: 
                   20571: #if HAVE_NET_IF_VAR_H
                   20572: # include <net/if_var.h>
                   20573: #endif
                   20574: 
                   20575: #if HAVE_SYS_UN_H
                   20576: # include <sys/un.h>
                   20577: #endif
                   20578: #if HAVE_NETINET_IN_SYSTM_H
                   20579: # include <netinet/in_systm.h>
                   20580: #endif
                   20581: #if HAVE_NETINET_IN_VAR_H
                   20582: # include <netinet/in_var.h>
                   20583: #endif
                   20584: #if HAVE_NET_IF_DL_H
                   20585: # include <net/if_dl.h>
                   20586: #endif
                   20587: #if HAVE_NET_NETOPT_H
                   20588: # include <net/netopt.h>
                   20589: #endif
                   20590: #if HAVE_NET_ROUTE_H
                   20591: # include <net/route.h>
                   20592: #endif
                   20593: #if HAVE_INET_ND_H
                   20594: # include <inet/nd.h>
                   20595: #endif
                   20596: #if HAVE_ARPA_INET_H
                   20597: # include <arpa/inet.h>
                   20598: #endif
                   20599: /* Required for IDRP */
                   20600: #if HAVE_NETINET_IP_ICMP_H
                   20601: # include <netinet/ip_icmp.h>
                   20602: #endif
                   20603: 
                   20604: #if HAVE_NETINET6_IN6_H
                   20605: #include <netinet6/in6.h>
                   20606: #endif
                   20607: #if HAVE_NETINET_IN6_VAR_H
                   20608: #include <netinet/in6_var.h>
                   20609: #endif
                   20610: #if HAVE_NETINET_ICMP6_H
                   20611: # include <netinet/icmp6.h>
                   20612: #endif
                   20613: #if HAVE_NETINET6_IN6_VAR_H
                   20614: # include <netinet6/in6_var.h>
                   20615: #endif
                   20616: #if HAVE_NETINET6_ND6_H
                   20617: # include <netinet6/nd6.h>
                   20618: #endif
                   20619: 
                   20620: "
                   20621: if test "x$ac_cv_type_struct_icmphdr" = xyes; then :
                   20622: 
                   20623: cat >>confdefs.h <<_ACEOF
                   20624: #define HAVE_STRUCT_ICMPHDR 1
                   20625: _ACEOF
                   20626: 
                   20627: if test "${enable_irdp}" != "no"; then
                   20628: 
                   20629: $as_echo "#define HAVE_IRDP /**/" >>confdefs.h
                   20630: 
                   20631:     fi
                   20632: else
                   20633:   if test "${enable_irdp}" = "yes"; then
                   20634:       as_fn_error $? "'IRDP requires in_pktinfo at the moment!'" "$LINENO" 5
                   20635:     fi
                   20636: fi
                   20637: 
                   20638: else
                   20639:   if test "${enable_irdp}" = "yes"; then
                   20640:     as_fn_error $? "'IRDP requires in_pktinfo at the moment!'" "$LINENO" 5
                   20641:   fi
                   20642: fi
                   20643: 
                   20644: 
1.1.1.4 ! misho    20645: if test "${enable_rusage}" != "no"; then
        !          20646:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrusage is available" >&5
1.1       misho    20647: $as_echo_n "checking whether getrusage is available... " >&6; }
1.1.1.4 ! misho    20648:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       misho    20649: /* end confdefs.h.  */
                   20650: #include <sys/resource.h>
                   20651: int
                   20652: main ()
                   20653: {
                   20654: struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
                   20655:   ;
                   20656:   return 0;
                   20657: }
                   20658: _ACEOF
                   20659: if ac_fn_c_try_compile "$LINENO"; then :
                   20660:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   20661: $as_echo "yes" >&6; }
                   20662: 
                   20663: $as_echo "#define HAVE_RUSAGE /**/" >>confdefs.h
                   20664: 
                   20665: else
                   20666:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   20667: $as_echo "no" >&6; }
                   20668: fi
                   20669: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.4 ! misho    20670: fi
1.1       misho    20671: 
                   20672: ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#ifdef SUNOS_5
                   20673: #define _XPG4_2
                   20674: #define __EXTENSIONS__
                   20675: #endif
                   20676: #include <stdio.h>
                   20677: #if STDC_HEADERS
                   20678: # include <stdlib.h>
                   20679: # include <stddef.h>
                   20680: #else
                   20681: # if HAVE_STDLIB_H
                   20682: #  include <stdlib.h>
                   20683: # endif
                   20684: #endif
                   20685: #if HAVE_SYS_TYPES_H
                   20686: # include <sys/types.h>
                   20687: #endif
                   20688: /* sys/conf.h depends on param.h on FBSD at least */
                   20689: #if HAVE_SYS_PARAM_H
                   20690: # include <sys/param.h>
                   20691: #endif
                   20692: /* Required for MAXSIG */
                   20693: #if HAVE_SIGNAL_H
                   20694: # include <signal.h>
                   20695: #endif
                   20696: #if HAVE_SYS_SOCKET_H
                   20697: # include <sys/socket.h>
                   20698: #endif
1.1.1.4 ! misho    20699: #ifdef __APPLE__
        !          20700: # define __APPLE_USE_RFC_3542
        !          20701: #endif
1.1       misho    20702: #if HAVE_NETINET_IN_H
                   20703: # include <netinet/in.h>
                   20704: #endif
                   20705: #ifdef TIME_WITH_SYS_TIME
                   20706: # include <sys/time.h>
                   20707: # include <time.h>
                   20708: #else
                   20709: # ifdef HAVE_SYS_TIME_H
                   20710: #  include <sys/time.h>
                   20711: # else
                   20712: #  include <time.h>
                   20713: # endif
                   20714: #endif /* TIME_WITH_SYS_TIME */
                   20715: 
                   20716: #if HAVE_NET_IF_H
                   20717: # include <net/if.h>
                   20718: #endif
                   20719: 
                   20720: #if HAVE_NET_IF_VAR_H
                   20721: # include <net/if_var.h>
                   20722: #endif
                   20723: 
                   20724: #if HAVE_SYS_UN_H
                   20725: # include <sys/un.h>
                   20726: #endif
                   20727: #if HAVE_NETINET_IN_SYSTM_H
                   20728: # include <netinet/in_systm.h>
                   20729: #endif
                   20730: #if HAVE_NETINET_IN_VAR_H
                   20731: # include <netinet/in_var.h>
                   20732: #endif
                   20733: #if HAVE_NET_IF_DL_H
                   20734: # include <net/if_dl.h>
                   20735: #endif
                   20736: #if HAVE_NET_NETOPT_H
                   20737: # include <net/netopt.h>
                   20738: #endif
                   20739: #if HAVE_NET_ROUTE_H
                   20740: # include <net/route.h>
                   20741: #endif
                   20742: #if HAVE_INET_ND_H
                   20743: # include <inet/nd.h>
                   20744: #endif
                   20745: #if HAVE_ARPA_INET_H
                   20746: # include <arpa/inet.h>
                   20747: #endif
                   20748: /* Required for IDRP */
                   20749: #if HAVE_NETINET_IP_ICMP_H
                   20750: # include <netinet/ip_icmp.h>
                   20751: #endif
                   20752: 
                   20753: #if HAVE_NETINET6_IN6_H
                   20754: #include <netinet6/in6.h>
                   20755: #endif
                   20756: #if HAVE_NETINET_IN6_VAR_H
                   20757: #include <netinet/in6_var.h>
                   20758: #endif
                   20759: #if HAVE_NETINET_ICMP6_H
                   20760: # include <netinet/icmp6.h>
                   20761: #endif
                   20762: #if HAVE_NETINET6_IN6_VAR_H
                   20763: # include <netinet6/in6_var.h>
                   20764: #endif
                   20765: #if HAVE_NETINET6_ND6_H
                   20766: # include <netinet6/nd6.h>
                   20767: #endif
                   20768: 
                   20769: "
                   20770: if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then :
                   20771:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
                   20772: $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
                   20773: if ${ac_cv_lib_rt_clock_gettime+:} false; then :
                   20774:   $as_echo_n "(cached) " >&6
                   20775: else
                   20776:   ac_check_lib_save_LIBS=$LIBS
                   20777: LIBS="-lrt  $LIBS"
                   20778: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20779: /* end confdefs.h.  */
                   20780: 
                   20781: /* Override any GCC internal prototype to avoid an error.
                   20782:    Use char because int might match the return type of a GCC
                   20783:    builtin and then its argument prototype would still apply.  */
                   20784: #ifdef __cplusplus
                   20785: extern "C"
                   20786: #endif
                   20787: char clock_gettime ();
                   20788: int
                   20789: main ()
                   20790: {
                   20791: return clock_gettime ();
                   20792:   ;
                   20793:   return 0;
                   20794: }
                   20795: _ACEOF
                   20796: if ac_fn_c_try_link "$LINENO"; then :
                   20797:   ac_cv_lib_rt_clock_gettime=yes
                   20798: else
                   20799:   ac_cv_lib_rt_clock_gettime=no
                   20800: fi
                   20801: rm -f core conftest.err conftest.$ac_objext \
                   20802:     conftest$ac_exeext conftest.$ac_ext
                   20803: LIBS=$ac_check_lib_save_LIBS
                   20804: fi
                   20805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
                   20806: $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
                   20807: if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
                   20808:   LIBS="$LIBS -lrt"
                   20809: fi
                   20810: 
                   20811: 
                   20812: $as_echo "#define HAVE_CLOCK_MONOTONIC /**/" >>confdefs.h
                   20813: 
                   20814: 
                   20815: else
                   20816:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   20817: $as_echo "no" >&6; }
                   20818: fi
                   20819: 
                   20820: 
                   20821: if test "${enable_capabilities}" != "no"; then
                   20822:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prctl PR_SET_KEEPCAPS is available" >&5
                   20823: $as_echo_n "checking whether prctl PR_SET_KEEPCAPS is available... " >&6; }
                   20824:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20825: /* end confdefs.h.  */
                   20826: #include <sys/prctl.h>
                   20827: int
                   20828: main ()
                   20829: {
                   20830: prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0);
                   20831:   ;
                   20832:   return 0;
                   20833: }
                   20834: _ACEOF
                   20835: if ac_fn_c_try_compile "$LINENO"; then :
                   20836:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   20837: $as_echo "yes" >&6; }
                   20838: 
                   20839: $as_echo "#define HAVE_PR_SET_KEEPCAPS /**/" >>confdefs.h
                   20840: 
                   20841:      quagga_ac_keepcaps="yes"
                   20842: else
                   20843:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   20844: $as_echo "no" >&6; }
                   20845: 
                   20846: fi
                   20847: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20848:   if test x"${quagga_ac_keepcaps}" = x"yes"; then
                   20849:     for ac_header in sys/capability.h
                   20850: do :
                   20851:   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
                   20852: if test "x$ac_cv_header_sys_capability_h" = xyes; then :
                   20853:   cat >>confdefs.h <<_ACEOF
                   20854: #define HAVE_SYS_CAPABILITY_H 1
                   20855: _ACEOF
                   20856: 
                   20857: fi
                   20858: 
                   20859: done
                   20860: 
                   20861:   fi
                   20862:   if test x"${ac_cv_header_sys_capability_h}" = x"yes"; then
                   20863:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
                   20864: $as_echo_n "checking for cap_init in -lcap... " >&6; }
                   20865: if ${ac_cv_lib_cap_cap_init+:} false; then :
                   20866:   $as_echo_n "(cached) " >&6
                   20867: else
                   20868:   ac_check_lib_save_LIBS=$LIBS
                   20869: LIBS="-lcap  $LIBS"
                   20870: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20871: /* end confdefs.h.  */
                   20872: 
                   20873: /* Override any GCC internal prototype to avoid an error.
                   20874:    Use char because int might match the return type of a GCC
                   20875:    builtin and then its argument prototype would still apply.  */
                   20876: #ifdef __cplusplus
                   20877: extern "C"
                   20878: #endif
                   20879: char cap_init ();
                   20880: int
                   20881: main ()
                   20882: {
                   20883: return cap_init ();
                   20884:   ;
                   20885:   return 0;
                   20886: }
                   20887: _ACEOF
                   20888: if ac_fn_c_try_link "$LINENO"; then :
                   20889:   ac_cv_lib_cap_cap_init=yes
                   20890: else
                   20891:   ac_cv_lib_cap_cap_init=no
                   20892: fi
                   20893: rm -f core conftest.err conftest.$ac_objext \
                   20894:     conftest$ac_exeext conftest.$ac_ext
                   20895: LIBS=$ac_check_lib_save_LIBS
                   20896: fi
                   20897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
                   20898: $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
                   20899: if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
                   20900: 
                   20901: $as_echo "#define HAVE_LCAPS 1" >>confdefs.h
                   20902: 
                   20903:        LIBCAP="-lcap"
                   20904:        quagga_ac_lcaps="yes"
                   20905: 
                   20906: fi
                   20907: 
                   20908:   else
                   20909:     for ac_header in priv.h
                   20910: do :
                   20911:   ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
                   20912: if test "x$ac_cv_header_priv_h" = xyes; then :
                   20913:   cat >>confdefs.h <<_ACEOF
                   20914: #define HAVE_PRIV_H 1
                   20915: _ACEOF
                   20916:  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris style privileges are available" >&5
                   20917: $as_echo_n "checking Solaris style privileges are available... " >&6; }
                   20918:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   20919: /* end confdefs.h.  */
                   20920: #include <priv.h>
                   20921: int
                   20922: main ()
                   20923: {
                   20924: getpflags(PRIV_AWARE);
                   20925:   ;
                   20926:   return 0;
                   20927: }
                   20928: _ACEOF
                   20929: if ac_fn_c_try_compile "$LINENO"; then :
                   20930:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   20931: $as_echo "yes" >&6; }
                   20932: 
                   20933: $as_echo "#define HAVE_SOLARIS_CAPABILITIES 1" >>confdefs.h
                   20934: 
                   20935:           quagga_ac_scaps="yes"
                   20936: else
                   20937:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   20938: $as_echo "no" >&6; }
                   20939: 
                   20940: fi
                   20941: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20942: 
                   20943: 
                   20944: fi
                   20945: 
                   20946: done
                   20947: 
                   20948:   fi
                   20949:   if test x"${quagga_ac_scaps}" = x"yes" \
                   20950:        -o x"${quagga_ac_lcaps}" = x"yes"; then
                   20951: 
                   20952: $as_echo "#define HAVE_CAPABILITIES 1" >>confdefs.h
                   20953: 
                   20954:   fi
                   20955: fi
                   20956: 
                   20957: 
1.1.1.4 ! misho    20958: 
        !          20959:   # starting point: no aliasing scheme yet...
        !          20960:   ax_sys_weak_alias=no
        !          20961: 
        !          20962:   # Figure out what kind of aliasing may be supported...
        !          20963:    # Test whether compiler accepts __attribute__ form of weak aliasing
        !          20964:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts function __attribute__((weak,alias()))" >&5
        !          20965: $as_echo_n "checking whether $CC accepts function __attribute__((weak,alias()))... " >&6; }
        !          20966: if ${ax_cv_sys_weak_alias_attribute+:} false; then :
        !          20967:   $as_echo_n "(cached) " >&6
        !          20968: else
        !          20969: 
        !          20970:     # We add -Werror if it's gcc to force an error exit if the weak attribute
        !          20971:     # isn't understood
        !          20972:     if test $GCC = yes; then :
        !          20973: 
        !          20974:       save_CFLAGS=$CFLAGS
        !          20975:       CFLAGS=-Werror
        !          20976: fi
        !          20977: 
        !          20978:     # Try linking with a weak alias...
        !          20979:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          20980: /* end confdefs.h.  */
        !          20981: 
        !          20982: 
        !          20983: void __weakf(int c) {}
        !          20984: void weakf(int c) __attribute__((weak, alias("__weakf")));
        !          20985: int
        !          20986: main ()
        !          20987: {
        !          20988: weakf(0)
        !          20989:   ;
        !          20990:   return 0;
        !          20991: }
        !          20992: _ACEOF
        !          20993: if ac_fn_c_try_link "$LINENO"; then :
        !          20994:   ax_cv_sys_weak_alias_attribute=yes
        !          20995: else
        !          20996:   ax_cv_sys_weak_alias_attribute=no
        !          20997: fi
        !          20998: rm -f core conftest.err conftest.$ac_objext \
        !          20999:     conftest$ac_exeext conftest.$ac_ext
        !          21000: 
        !          21001:     # Restore original CFLAGS
        !          21002:     if test $GCC = yes; then :
        !          21003: 
        !          21004:       CFLAGS=$save_CFLAGS
        !          21005: fi
        !          21006: 
        !          21007: fi
        !          21008: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_attribute" >&5
        !          21009: $as_echo "$ax_cv_sys_weak_alias_attribute" >&6; }
        !          21010: 
        !          21011:   # What was the result of the test?
        !          21012:   if test $ax_cv_sys_weak_alias_attribute = yes; then :
        !          21013: 
        !          21014:     test $ax_sys_weak_alias = no && ax_sys_weak_alias=attribute
        !          21015: 
        !          21016: $as_echo "#define HAVE_SYS_WEAK_ALIAS_ATTRIBUTE 1" >>confdefs.h
        !          21017: 
        !          21018: 
        !          21019: fi
        !          21020: 
        !          21021:    # Test whether compiler accepts #pragma form of weak aliasing
        !          21022:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports #pragma weak" >&5
        !          21023: $as_echo_n "checking whether $CC supports #pragma weak... " >&6; }
        !          21024: if ${ax_cv_sys_weak_alias_pragma+:} false; then :
        !          21025:   $as_echo_n "(cached) " >&6
        !          21026: else
        !          21027: 
        !          21028: 
        !          21029:     # Try linking with a weak alias...
        !          21030:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          21031: /* end confdefs.h.  */
        !          21032: 
        !          21033: 
        !          21034: extern void weakf(int c);
        !          21035: #pragma weak weakf = __weakf
        !          21036: void __weakf(int c) {}
        !          21037: int
        !          21038: main ()
        !          21039: {
        !          21040: weakf(0)
        !          21041:   ;
        !          21042:   return 0;
        !          21043: }
        !          21044: _ACEOF
        !          21045: if ac_fn_c_try_link "$LINENO"; then :
        !          21046:   ax_cv_sys_weak_alias_pragma=yes
        !          21047: else
        !          21048:   ax_cv_sys_weak_alias_pragma=no
        !          21049: fi
        !          21050: rm -f core conftest.err conftest.$ac_objext \
        !          21051:     conftest$ac_exeext conftest.$ac_ext
        !          21052: 
        !          21053: fi
        !          21054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_pragma" >&5
        !          21055: $as_echo "$ax_cv_sys_weak_alias_pragma" >&6; }
        !          21056: 
        !          21057:   # What was the result of the test?
        !          21058:   if test $ax_cv_sys_weak_alias_pragma = yes; then :
        !          21059: 
        !          21060:     test $ax_sys_weak_alias = no && ax_sys_weak_alias=pragma
        !          21061: 
        !          21062: $as_echo "#define HAVE_SYS_WEAK_ALIAS_PRAGMA 1" >>confdefs.h
        !          21063: 
        !          21064: 
        !          21065: fi
        !          21066: 
        !          21067:    # Test whether compiler accepts _HP_SECONDARY_DEF pragma from HP...
        !          21068:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports #pragma _HP_SECONDARY_DEF" >&5
        !          21069: $as_echo_n "checking whether $CC supports #pragma _HP_SECONDARY_DEF... " >&6; }
        !          21070: if ${ax_cv_sys_weak_alias_hpsecondary+:} false; then :
        !          21071:   $as_echo_n "(cached) " >&6
        !          21072: else
        !          21073: 
        !          21074: 
        !          21075:     # Try linking with a weak alias...
        !          21076:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          21077: /* end confdefs.h.  */
        !          21078: 
        !          21079: 
        !          21080: extern void weakf(int c);
        !          21081: #pragma _HP_SECONDARY_DEF __weakf weakf
        !          21082: void __weakf(int c) {}
        !          21083: int
        !          21084: main ()
        !          21085: {
        !          21086: weakf(0)
        !          21087:   ;
        !          21088:   return 0;
        !          21089: }
        !          21090: _ACEOF
        !          21091: if ac_fn_c_try_link "$LINENO"; then :
        !          21092:   ax_cv_sys_weak_alias_hpsecondary=yes
        !          21093: else
        !          21094:   ax_cv_sys_weak_alias_hpsecondary=no
        !          21095: fi
        !          21096: rm -f core conftest.err conftest.$ac_objext \
        !          21097:     conftest$ac_exeext conftest.$ac_ext
        !          21098: 
        !          21099: fi
        !          21100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_hpsecondary" >&5
        !          21101: $as_echo "$ax_cv_sys_weak_alias_hpsecondary" >&6; }
        !          21102: 
        !          21103:   # What was the result of the test?
        !          21104:   if test $ax_cv_sys_weak_alias_hpsecondary = yes; then :
        !          21105: 
        !          21106:     test $ax_sys_weak_alias = no && ax_sys_weak_alias=hpsecondary
        !          21107: 
        !          21108: $as_echo "#define HAVE_SYS_WEAK_ALIAS_HPSECONDARY 1" >>confdefs.h
        !          21109: 
        !          21110: 
        !          21111: fi
        !          21112: 
        !          21113:    # Test whether compiler accepts "_CRI duplicate" pragma from Cray
        !          21114:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports #pragma _CRI duplicate" >&5
        !          21115: $as_echo_n "checking whether $CC supports #pragma _CRI duplicate... " >&6; }
        !          21116: if ${ax_cv_sys_weak_alias_criduplicate+:} false; then :
        !          21117:   $as_echo_n "(cached) " >&6
        !          21118: else
        !          21119: 
        !          21120: 
        !          21121:     # Try linking with a weak alias...
        !          21122:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          21123: /* end confdefs.h.  */
        !          21124: 
        !          21125: 
        !          21126: extern void weakf(int c);
        !          21127: #pragma _CRI duplicate weakf as __weakf
        !          21128: void __weakf(int c) {}
        !          21129: int
        !          21130: main ()
        !          21131: {
        !          21132: weakf(0)
        !          21133:   ;
        !          21134:   return 0;
        !          21135: }
        !          21136: _ACEOF
        !          21137: if ac_fn_c_try_link "$LINENO"; then :
        !          21138:   ax_cv_sys_weak_alias_criduplicate=yes
        !          21139: else
        !          21140:   ax_cv_sys_weak_alias_criduplicate=no
        !          21141: fi
        !          21142: rm -f core conftest.err conftest.$ac_objext \
        !          21143:     conftest$ac_exeext conftest.$ac_ext
        !          21144: 
        !          21145: fi
        !          21146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_criduplicate" >&5
        !          21147: $as_echo "$ax_cv_sys_weak_alias_criduplicate" >&6; }
        !          21148: 
        !          21149:   # What was the result of the test?
        !          21150:   if test $ax_cv_sys_weak_alias_criduplicate = yes; then :
        !          21151: 
        !          21152:     test $ax_sys_weak_alias = no && ax_sys_weak_alias=criduplicate
        !          21153: 
        !          21154: $as_echo "#define HAVE_SYS_WEAK_ALIAS_CRIDUPLICATE 1" >>confdefs.h
        !          21155: 
        !          21156: 
        !          21157: fi
        !          21158: 
        !          21159: 
        !          21160:   # Do we actually support aliasing?
        !          21161:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create weak aliases with $CC" >&5
        !          21162: $as_echo_n "checking how to create weak aliases with $CC... " >&6; }
        !          21163: if ${ax_cv_sys_weak_alias+:} false; then :
        !          21164:   $as_echo_n "(cached) " >&6
        !          21165: else
        !          21166:   ax_cv_sys_weak_alias=$ax_sys_weak_alias
        !          21167: fi
        !          21168: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias" >&5
        !          21169: $as_echo "$ax_cv_sys_weak_alias" >&6; }
        !          21170: 
        !          21171:   # OK, set a #define
        !          21172:   if test $ax_cv_sys_weak_alias != no; then :
        !          21173: 
        !          21174: 
        !          21175: $as_echo "#define HAVE_SYS_WEAK_ALIAS 1" >>confdefs.h
        !          21176: 
        !          21177: 
        !          21178: fi
        !          21179: 
        !          21180:   # Can aliases cross object file boundaries?
        !          21181:    # Check to see if weak aliases can cross object file boundaries
        !          21182:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports weak aliases across object file boundaries" >&5
        !          21183: $as_echo_n "checking whether $CC supports weak aliases across object file boundaries... " >&6; }
        !          21184: if ${ax_cv_sys_weak_alias_crossfile+:} false; then :
        !          21185:   $as_echo_n "(cached) " >&6
        !          21186: else
        !          21187: 
        !          21188:     if test $ax_cv_sys_weak_alias = no; then :
        !          21189:   ax_cv_sys_weak_alias_crossfile=no
        !          21190: else
        !          21191: 
        !          21192:       # conftest1 contains our weak alias definition...
        !          21193:       cat >conftest1.$ac_ext <<_ACEOF
        !          21194: /* confdefs.h.  */
        !          21195: _ACEOF
        !          21196:       cat confdefs.h >>conftest1.$ac_ext
        !          21197:       cat >>conftest1.$ac_ext <<_ACEOF
        !          21198: /* end confdefs.h.  */
        !          21199: 
        !          21200: #ifndef HAVE_SYS_WEAK_ALIAS_ATTRIBUTE
        !          21201: extern void weakf(int c);
        !          21202: #if defined(HAVE_SYS_WEAK_ALIAS_PRAGMA)
        !          21203: #pragma weak weakf = __weakf
        !          21204: #elif defined(HAVE_SYS_WEAK_ALIAS_HPSECONDARY)
        !          21205: #pragma _HP_SECONDARY_DEF __weakf weakf
        !          21206: #elif defined(HAVE_SYS_WEAK_ALIAS_CRIDUPLICATE)
        !          21207: #pragma _CRI duplicate weakf as __weakf
        !          21208: #endif
        !          21209: #endif
        !          21210: void __weakf(int c) {}
        !          21211: #ifdef HAVE_SYS_WEAK_ALIAS_ATTRIBUTE
        !          21212: void weakf(int c) __attribute((weak, alias("__weakf")));
        !          21213: #endif
        !          21214: _ACEOF
        !          21215:       # And conftest2 contains our main routine that calls it
        !          21216:       cat >conftest2.$ac_ext <<_ACEOF
        !          21217: /* confdefs.h.  */
        !          21218: _ACEOF
        !          21219:       cat confdefs.h >> conftest2.$ac_ext
        !          21220:       cat >>conftest2.$ac_ext <<_ACEOF
        !          21221: /* end confdefs.h.  */
        !          21222: 
        !          21223: extern void weakf(int c);
        !          21224: int
        !          21225: main ()
        !          21226: {
        !          21227:   weakf(0);
        !          21228:   return 0;
        !          21229: }
        !          21230: _ACEOF
        !          21231:       # We must remove the object files (if any) ourselves...
        !          21232:       rm -f conftest2.$ac_objext conftest$ac_exeext
        !          21233: 
        !          21234:       # Change ac_link to compile *2* files together
        !          21235:       save_aclink=$ac_link
        !          21236:       ac_link=`echo "$ac_link" | \
        !          21237:                sed -e 's/conftest\(\.\$ac_ext\)/conftest1\1 conftest2\1/'`
        !          21238:       # Since we created the files ourselves, don't use SOURCE argument
        !          21239:       if ac_fn_c_try_link "$LINENO"; then :
        !          21240:   ax_cv_sys_weak_alias_crossfile=yes
        !          21241: else
        !          21242:   ax_cv_sys_weak_alias_crossfile=no
        !          21243: fi
        !          21244: rm -f core conftest.err conftest.$ac_objext \
        !          21245:     conftest$ac_exeext
        !          21246:       # Restore ac_link
        !          21247:       ac_link=$save_aclink
        !          21248: 
        !          21249:       # We must remove the object files (if any) and C files ourselves...
        !          21250:       rm -f conftest1.$ac_ext conftest2.$ac_ext \
        !          21251:             conftest1.$ac_objext conftest2.$ac_objext
        !          21252: 
        !          21253: fi
        !          21254: 
        !          21255: fi
        !          21256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_crossfile" >&5
        !          21257: $as_echo "$ax_cv_sys_weak_alias_crossfile" >&6; }
        !          21258: 
        !          21259:   # What were the results of the test?
        !          21260:   if test $ax_cv_sys_weak_alias_crossfile = yes; then :
        !          21261: 
        !          21262: 
        !          21263: $as_echo "#define HAVE_SYS_WEAK_ALIAS_CROSSFILE 1" >>confdefs.h
        !          21264: 
        !          21265: 
        !          21266: fi
        !          21267: 
        !          21268: 
        !          21269:   # OK, remember the results
        !          21270:   WEAK_ALIAS=$ax_cv_sys_weak_alias
        !          21271: 
        !          21272:   WEAK_ALIAS_CROSSFILE=$ax_cv_sys_weak_alias_crossfile
        !          21273: 
        !          21274: 
        !          21275: 
1.1       misho    21276: ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
                   21277: if test "x$ac_cv_header_execinfo_h" = xyes; then :
                   21278:   ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
                   21279: if test "x$ac_cv_func_backtrace" = xyes; then :
                   21280: 
                   21281: $as_echo "#define HAVE_GLIBC_BACKTRACE /**/" >>confdefs.h
                   21282: 
                   21283: 
                   21284: $as_echo "#define HAVE_STACK_TRACE /**/" >>confdefs.h
                   21285: 
                   21286: 
                   21287: fi
                   21288: 
                   21289: 
                   21290: fi
                   21291: 
                   21292: 
                   21293: 
                   21294: ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "#ifdef SUNOS_5
                   21295: #define _XPG4_2
                   21296: #define __EXTENSIONS__
                   21297: #endif
                   21298: #include <stdio.h>
                   21299: #if STDC_HEADERS
                   21300: # include <stdlib.h>
                   21301: # include <stddef.h>
                   21302: #else
                   21303: # if HAVE_STDLIB_H
                   21304: #  include <stdlib.h>
                   21305: # endif
                   21306: #endif
                   21307: #if HAVE_SYS_TYPES_H
                   21308: # include <sys/types.h>
                   21309: #endif
                   21310: /* sys/conf.h depends on param.h on FBSD at least */
                   21311: #if HAVE_SYS_PARAM_H
                   21312: # include <sys/param.h>
                   21313: #endif
                   21314: /* Required for MAXSIG */
                   21315: #if HAVE_SIGNAL_H
                   21316: # include <signal.h>
                   21317: #endif
                   21318: #if HAVE_SYS_SOCKET_H
                   21319: # include <sys/socket.h>
                   21320: #endif
1.1.1.4 ! misho    21321: #ifdef __APPLE__
        !          21322: # define __APPLE_USE_RFC_3542
        !          21323: #endif
1.1       misho    21324: #if HAVE_NETINET_IN_H
                   21325: # include <netinet/in.h>
                   21326: #endif
                   21327: #ifdef TIME_WITH_SYS_TIME
                   21328: # include <sys/time.h>
                   21329: # include <time.h>
                   21330: #else
                   21331: # ifdef HAVE_SYS_TIME_H
                   21332: #  include <sys/time.h>
                   21333: # else
                   21334: #  include <time.h>
                   21335: # endif
                   21336: #endif /* TIME_WITH_SYS_TIME */
                   21337: 
                   21338: #if HAVE_NET_IF_H
                   21339: # include <net/if.h>
                   21340: #endif
                   21341: 
                   21342: #if HAVE_NET_IF_VAR_H
                   21343: # include <net/if_var.h>
                   21344: #endif
                   21345: 
                   21346: #if HAVE_SYS_UN_H
                   21347: # include <sys/un.h>
                   21348: #endif
                   21349: #if HAVE_NETINET_IN_SYSTM_H
                   21350: # include <netinet/in_systm.h>
                   21351: #endif
                   21352: #if HAVE_NETINET_IN_VAR_H
                   21353: # include <netinet/in_var.h>
                   21354: #endif
                   21355: #if HAVE_NET_IF_DL_H
                   21356: # include <net/if_dl.h>
                   21357: #endif
                   21358: #if HAVE_NET_NETOPT_H
                   21359: # include <net/netopt.h>
                   21360: #endif
                   21361: #if HAVE_NET_ROUTE_H
                   21362: # include <net/route.h>
                   21363: #endif
                   21364: #if HAVE_INET_ND_H
                   21365: # include <inet/nd.h>
                   21366: #endif
                   21367: #if HAVE_ARPA_INET_H
                   21368: # include <arpa/inet.h>
                   21369: #endif
                   21370: /* Required for IDRP */
                   21371: #if HAVE_NETINET_IP_ICMP_H
                   21372: # include <netinet/ip_icmp.h>
                   21373: #endif
                   21374: 
                   21375: #if HAVE_NETINET6_IN6_H
                   21376: #include <netinet6/in6.h>
                   21377: #endif
                   21378: #if HAVE_NETINET_IN6_VAR_H
                   21379: #include <netinet/in6_var.h>
                   21380: #endif
                   21381: #if HAVE_NETINET_ICMP6_H
                   21382: # include <netinet/icmp6.h>
                   21383: #endif
                   21384: #if HAVE_NETINET6_IN6_VAR_H
                   21385: # include <netinet6/in6_var.h>
                   21386: #endif
                   21387: #if HAVE_NETINET6_ND6_H
                   21388: # include <netinet6/nd6.h>
                   21389: #endif
                   21390: 
                   21391: "
                   21392: if test "x$ac_cv_header_malloc_h" = xyes; then :
                   21393:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mallinfo is available" >&5
                   21394: $as_echo_n "checking whether mallinfo is available... " >&6; }
                   21395:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21396: /* end confdefs.h.  */
                   21397: #include <malloc.h>
                   21398: int
                   21399: main ()
                   21400: {
                   21401: struct mallinfo ac_x; ac_x = mallinfo ();
                   21402:   ;
                   21403:   return 0;
                   21404: }
                   21405: _ACEOF
                   21406: if ac_fn_c_try_link "$LINENO"; then :
                   21407:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   21408: $as_echo "yes" >&6; }
                   21409: 
                   21410: $as_echo "#define HAVE_MALLINFO /**/" >>confdefs.h
                   21411: 
                   21412: else
                   21413:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   21414: $as_echo "no" >&6; }
                   21415: 
                   21416: fi
                   21417: rm -f core conftest.err conftest.$ac_objext \
                   21418:     conftest$ac_exeext conftest.$ac_ext
                   21419: 
                   21420: fi
                   21421: 
                   21422: 
                   21423: 
                   21424: CONFDATE=`date '+%Y%m%d'`
                   21425: 
                   21426: 
                   21427: # Check whether --enable-pie was given.
                   21428: if test "${enable_pie+set}" = set; then :
                   21429:   enableval=$enable_pie;
                   21430: fi
                   21431: 
                   21432: if test "$enable_pie" != "no"; then
                   21433:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts PIE flags" >&5
                   21434: $as_echo_n "checking whether $CC accepts PIE flags... " >&6; }
                   21435: if ${ap_cv_cc_pie+:} false; then :
                   21436:   $as_echo_n "(cached) " >&6
                   21437: else
                   21438: 
                   21439:     save_CFLAGS=$CFLAGS
                   21440:     save_LDFLAGS=$LDFLAGS
                   21441:     CFLAGS="$CFLAGS -fPIE"
                   21442:     LDFLAGS="$LDFLAGS -pie"
                   21443:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21444: /* end confdefs.h.  */
                   21445: static int foo[30000]; int main () { return 0; }
                   21446: _ACEOF
                   21447: if ac_fn_c_try_link "$LINENO"; then :
                   21448:   ap_cv_cc_pie=yes
                   21449: else
                   21450:   ap_cv_cc_pie=no
                   21451: 
                   21452: fi
                   21453: rm -f core conftest.err conftest.$ac_objext \
                   21454:     conftest$ac_exeext conftest.$ac_ext
                   21455:     CFLAGS=$save_CFLAGS
                   21456:     LDFLAGS=$save_LDFLAGS
                   21457: 
                   21458: fi
                   21459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_cc_pie" >&5
                   21460: $as_echo "$ap_cv_cc_pie" >&6; }
                   21461:   if test "$ap_cv_cc_pie" = "yes"; then
                   21462:     PICFLAGS="-fPIE"
                   21463:     PILDFLAGS="-pie"
                   21464:   fi
                   21465: fi
                   21466: 
                   21467: 
                   21468: 
                   21469: 
                   21470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking directory to use for state file" >&5
                   21471: $as_echo_n "checking directory to use for state file... " >&6; }
                   21472: if test "${prefix}" = "NONE"; then
                   21473:   quagga_statedir_prefix="";
                   21474: else
                   21475:   quagga_statedir_prefix=${prefix}
                   21476: fi
                   21477: if test "${localstatedir}" = '${prefix}/var'; then
                   21478:   for QUAGGA_STATE_DIR in ${quagga_statedir_prefix}/var/run                    ${quagga_statedir_prefix}/var/adm                       ${quagga_statedir_prefix}/etc                   /var/run                                /var/adm                                /etc                                    /dev/null;
                   21479:   do
                   21480:     test -d $QUAGGA_STATE_DIR && break
                   21481:   done
                   21482:   quagga_statedir=$QUAGGA_STATE_DIR
                   21483: else
                   21484:   quagga_statedir=${localstatedir}
                   21485: fi
                   21486: if test $quagga_statedir = "/dev/null"; then
                   21487:     as_fn_error $? "'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" "$LINENO" 5
                   21488: fi
                   21489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${quagga_statedir}" >&5
                   21490: $as_echo "${quagga_statedir}" >&6; }
                   21491: 
                   21492: 
                   21493: 
                   21494: cat >>confdefs.h <<_ACEOF
                   21495: #define PATH_ZEBRA_PID "$quagga_statedir/zebra.pid"
                   21496: _ACEOF
                   21497: 
                   21498: 
                   21499: cat >>confdefs.h <<_ACEOF
                   21500: #define PATH_RIPD_PID "$quagga_statedir/ripd.pid"
                   21501: _ACEOF
                   21502: 
                   21503: 
                   21504: cat >>confdefs.h <<_ACEOF
                   21505: #define PATH_RIPNGD_PID "$quagga_statedir/ripngd.pid"
                   21506: _ACEOF
                   21507: 
                   21508: 
                   21509: cat >>confdefs.h <<_ACEOF
                   21510: #define PATH_BGPD_PID "$quagga_statedir/bgpd.pid"
                   21511: _ACEOF
                   21512: 
                   21513: 
                   21514: cat >>confdefs.h <<_ACEOF
                   21515: #define PATH_OSPFD_PID "$quagga_statedir/ospfd.pid"
                   21516: _ACEOF
                   21517: 
                   21518: 
                   21519: cat >>confdefs.h <<_ACEOF
                   21520: #define PATH_OSPF6D_PID "$quagga_statedir/ospf6d.pid"
                   21521: _ACEOF
                   21522: 
                   21523: 
                   21524: cat >>confdefs.h <<_ACEOF
1.1.1.3   misho    21525: #define PATH_BABELD_PID "$quagga_statedir/babeld.pid"
                   21526: _ACEOF
                   21527: 
                   21528: 
                   21529: cat >>confdefs.h <<_ACEOF
1.1       misho    21530: #define PATH_ISISD_PID "$quagga_statedir/isisd.pid"
                   21531: _ACEOF
                   21532: 
                   21533: 
                   21534: cat >>confdefs.h <<_ACEOF
                   21535: #define PATH_WATCHQUAGGA_PID "$quagga_statedir/watchquagga.pid"
                   21536: _ACEOF
                   21537: 
                   21538: 
                   21539: cat >>confdefs.h <<_ACEOF
                   21540: #define ZEBRA_SERV_PATH "$quagga_statedir/zserv.api"
                   21541: _ACEOF
                   21542: 
                   21543: 
                   21544: cat >>confdefs.h <<_ACEOF
                   21545: #define ZEBRA_VTYSH_PATH "$quagga_statedir/zebra.vty"
                   21546: _ACEOF
                   21547: 
                   21548: 
                   21549: cat >>confdefs.h <<_ACEOF
                   21550: #define RIP_VTYSH_PATH "$quagga_statedir/ripd.vty"
                   21551: _ACEOF
                   21552: 
                   21553: 
                   21554: cat >>confdefs.h <<_ACEOF
                   21555: #define RIPNG_VTYSH_PATH "$quagga_statedir/ripngd.vty"
                   21556: _ACEOF
                   21557: 
                   21558: 
                   21559: cat >>confdefs.h <<_ACEOF
                   21560: #define BGP_VTYSH_PATH "$quagga_statedir/bgpd.vty"
                   21561: _ACEOF
                   21562: 
                   21563: 
                   21564: cat >>confdefs.h <<_ACEOF
                   21565: #define OSPF_VTYSH_PATH "$quagga_statedir/ospfd.vty"
                   21566: _ACEOF
                   21567: 
                   21568: 
                   21569: cat >>confdefs.h <<_ACEOF
                   21570: #define OSPF6_VTYSH_PATH "$quagga_statedir/ospf6d.vty"
                   21571: _ACEOF
                   21572: 
                   21573: 
                   21574: cat >>confdefs.h <<_ACEOF
1.1.1.3   misho    21575: #define BABEL_VTYSH_PATH "$quagga_statedir/babeld.vty"
                   21576: _ACEOF
                   21577: 
                   21578: 
                   21579: cat >>confdefs.h <<_ACEOF
1.1       misho    21580: #define ISIS_VTYSH_PATH "$quagga_statedir/isisd.vty"
                   21581: _ACEOF
                   21582: 
                   21583: 
                   21584: cat >>confdefs.h <<_ACEOF
                   21585: #define DAEMON_VTY_DIR "$quagga_statedir"
                   21586: _ACEOF
                   21587: 
                   21588: 
                   21589: 
                   21590: $as_echo "#define QUAGGA_NO_DEPRECATED_INTERFACES 1" >>confdefs.h
                   21591: 
                   21592: 
                   21593: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working htonl" >&5
                   21594: $as_echo_n "checking for working htonl... " >&6; }
                   21595: if ${ac_cv_htonl_works+:} false; then :
                   21596:   $as_echo_n "(cached) " >&6
                   21597: else
                   21598:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21599: /* end confdefs.h.  */
                   21600: #ifdef SUNOS_5
                   21601: #define _XPG4_2
                   21602: #define __EXTENSIONS__
                   21603: #endif
                   21604: #include <stdio.h>
                   21605: #if STDC_HEADERS
                   21606: # include <stdlib.h>
                   21607: # include <stddef.h>
                   21608: #else
                   21609: # if HAVE_STDLIB_H
                   21610: #  include <stdlib.h>
                   21611: # endif
                   21612: #endif
                   21613: #if HAVE_SYS_TYPES_H
                   21614: # include <sys/types.h>
                   21615: #endif
                   21616: /* sys/conf.h depends on param.h on FBSD at least */
                   21617: #if HAVE_SYS_PARAM_H
                   21618: # include <sys/param.h>
                   21619: #endif
                   21620: /* Required for MAXSIG */
                   21621: #if HAVE_SIGNAL_H
                   21622: # include <signal.h>
                   21623: #endif
                   21624: #if HAVE_SYS_SOCKET_H
                   21625: # include <sys/socket.h>
                   21626: #endif
1.1.1.4 ! misho    21627: #ifdef __APPLE__
        !          21628: # define __APPLE_USE_RFC_3542
        !          21629: #endif
1.1       misho    21630: #if HAVE_NETINET_IN_H
                   21631: # include <netinet/in.h>
                   21632: #endif
                   21633: #ifdef TIME_WITH_SYS_TIME
                   21634: # include <sys/time.h>
                   21635: # include <time.h>
                   21636: #else
                   21637: # ifdef HAVE_SYS_TIME_H
                   21638: #  include <sys/time.h>
                   21639: # else
                   21640: #  include <time.h>
                   21641: # endif
                   21642: #endif /* TIME_WITH_SYS_TIME */
                   21643: 
                   21644: #if HAVE_NET_IF_H
                   21645: # include <net/if.h>
                   21646: #endif
                   21647: 
                   21648: #if HAVE_NET_IF_VAR_H
                   21649: # include <net/if_var.h>
                   21650: #endif
                   21651: 
                   21652: #if HAVE_SYS_UN_H
                   21653: # include <sys/un.h>
                   21654: #endif
                   21655: #if HAVE_NETINET_IN_SYSTM_H
                   21656: # include <netinet/in_systm.h>
                   21657: #endif
                   21658: #if HAVE_NETINET_IN_VAR_H
                   21659: # include <netinet/in_var.h>
                   21660: #endif
                   21661: #if HAVE_NET_IF_DL_H
                   21662: # include <net/if_dl.h>
                   21663: #endif
                   21664: #if HAVE_NET_NETOPT_H
                   21665: # include <net/netopt.h>
                   21666: #endif
                   21667: #if HAVE_NET_ROUTE_H
                   21668: # include <net/route.h>
                   21669: #endif
                   21670: #if HAVE_INET_ND_H
                   21671: # include <inet/nd.h>
                   21672: #endif
                   21673: #if HAVE_ARPA_INET_H
                   21674: # include <arpa/inet.h>
                   21675: #endif
                   21676: /* Required for IDRP */
                   21677: #if HAVE_NETINET_IP_ICMP_H
                   21678: # include <netinet/ip_icmp.h>
                   21679: #endif
                   21680: 
                   21681: #if HAVE_NETINET6_IN6_H
                   21682: #include <netinet6/in6.h>
                   21683: #endif
                   21684: #if HAVE_NETINET_IN6_VAR_H
                   21685: #include <netinet/in6_var.h>
                   21686: #endif
                   21687: #if HAVE_NETINET_ICMP6_H
                   21688: # include <netinet/icmp6.h>
                   21689: #endif
                   21690: #if HAVE_NETINET6_IN6_VAR_H
                   21691: # include <netinet6/in6_var.h>
                   21692: #endif
                   21693: #if HAVE_NETINET6_ND6_H
                   21694: # include <netinet6/nd6.h>
                   21695: #endif
                   21696: 
                   21697: int
                   21698: main ()
                   21699: {
                   21700: htonl (0);
                   21701:   ;
                   21702:   return 0;
                   21703: }
                   21704: _ACEOF
                   21705: if ac_fn_c_try_link "$LINENO"; then :
                   21706:   ac_cv_htonl_works=yes
                   21707: else
                   21708:   ac_cv_htonl_works=no
                   21709: fi
                   21710: rm -f core conftest.err conftest.$ac_objext \
                   21711:     conftest$ac_exeext conftest.$ac_ext
                   21712: 
                   21713: 
                   21714: fi
                   21715: 
                   21716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_htonl_works" >&5
                   21717: $as_echo "$ac_cv_htonl_works" >&6; }
                   21718: 
1.1.1.3   misho    21719: ac_config_files="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile watchquagga/Makefile ospf6d/Makefile isisd/Makefile babeld/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile tests/Makefile m4/Makefile redhat/Makefile pkgsrc/Makefile redhat/quagga.spec lib/version.h doc/defines.texi isisd/topology/Makefile pkgsrc/bgpd.sh pkgsrc/ospf6d.sh pkgsrc/ospfd.sh pkgsrc/ripd.sh pkgsrc/ripngd.sh pkgsrc/zebra.sh"
1.1       misho    21720: 
                   21721: ac_config_files="$ac_config_files solaris/Makefile"
                   21722: 
                   21723: 
                   21724: ac_config_files="$ac_config_files vtysh/extract.pl"
                   21725: 
                   21726: ## Hack, but working solution to avoid rebuilding of quagga.info.
                   21727: ## It's already in CVS until texinfo 4.7 is more common.
                   21728: cat >confcache <<\_ACEOF
                   21729: # This file is a shell script that caches the results of configure
                   21730: # tests run on this system so they can be shared between configure
                   21731: # scripts and configure runs, see configure's option --config-cache.
                   21732: # It is not useful on other systems.  If it contains results you don't
                   21733: # want to keep, you may remove or edit it.
                   21734: #
                   21735: # config.status only pays attention to the cache file if you give it
                   21736: # the --recheck option to rerun configure.
                   21737: #
                   21738: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   21739: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   21740: # following values.
                   21741: 
                   21742: _ACEOF
                   21743: 
                   21744: # The following way of writing the cache mishandles newlines in values,
                   21745: # but we know of no workaround that is simple, portable, and efficient.
                   21746: # So, we kill variables containing newlines.
                   21747: # Ultrix sh set writes to stderr and can't be redirected directly,
                   21748: # and sets the high bit in the cache file unless we assign to the vars.
                   21749: (
                   21750:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   21751:     eval ac_val=\$$ac_var
                   21752:     case $ac_val in #(
                   21753:     *${as_nl}*)
                   21754:       case $ac_var in #(
                   21755:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   21756: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   21757:       esac
                   21758:       case $ac_var in #(
                   21759:       _ | IFS | as_nl) ;; #(
                   21760:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   21761:       *) { eval $ac_var=; unset $ac_var;} ;;
                   21762:       esac ;;
                   21763:     esac
                   21764:   done
                   21765: 
                   21766:   (set) 2>&1 |
                   21767:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   21768:     *${as_nl}ac_space=\ *)
                   21769:       # `set' does not quote correctly, so add quotes: double-quote
                   21770:       # substitution turns \\\\ into \\, and sed turns \\ into \.
                   21771:       sed -n \
                   21772:        "s/'/'\\\\''/g;
                   21773:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   21774:       ;; #(
                   21775:     *)
                   21776:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   21777:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   21778:       ;;
                   21779:     esac |
                   21780:     sort
                   21781: ) |
                   21782:   sed '
                   21783:      /^ac_cv_env_/b end
                   21784:      t clear
                   21785:      :clear
                   21786:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   21787:      t end
                   21788:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   21789:      :end' >>confcache
                   21790: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   21791:   if test -w "$cache_file"; then
                   21792:     if test "x$cache_file" != "x/dev/null"; then
                   21793:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   21794: $as_echo "$as_me: updating cache $cache_file" >&6;}
                   21795:       if test ! -f "$cache_file" || test -h "$cache_file"; then
                   21796:        cat confcache >"$cache_file"
                   21797:       else
                   21798:         case $cache_file in #(
                   21799:         */* | ?:*)
                   21800:          mv -f confcache "$cache_file"$$ &&
                   21801:          mv -f "$cache_file"$$ "$cache_file" ;; #(
                   21802:         *)
                   21803:          mv -f confcache "$cache_file" ;;
                   21804:        esac
                   21805:       fi
                   21806:     fi
                   21807:   else
                   21808:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   21809: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
                   21810:   fi
                   21811: fi
                   21812: rm -f confcache
                   21813: 
                   21814: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   21815: # Let make expand exec_prefix.
                   21816: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   21817: 
                   21818: DEFS=-DHAVE_CONFIG_H
                   21819: 
                   21820: ac_libobjs=
                   21821: ac_ltlibobjs=
                   21822: U=
                   21823: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   21824:   # 1. Remove the extension, and $U if already installed.
                   21825:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
                   21826:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
                   21827:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   21828:   #    will be set to the directory where LIBOBJS objects are built.
                   21829:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   21830:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
                   21831: done
                   21832: LIBOBJS=$ac_libobjs
                   21833: 
                   21834: LTLIBOBJS=$ac_ltlibobjs
                   21835: 
                   21836: 
1.1.1.4 ! misho    21837: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
        !          21838: $as_echo_n "checking that generated files are newer than configure... " >&6; }
        !          21839:    if test -n "$am_sleep_pid"; then
        !          21840:      # Hide warnings about reused PIDs.
        !          21841:      wait $am_sleep_pid 2>/dev/null
        !          21842:    fi
        !          21843:    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
        !          21844: $as_echo "done" >&6; }
1.1       misho    21845:  if test -n "$EXEEXT"; then
                   21846:   am__EXEEXT_TRUE=
                   21847:   am__EXEEXT_FALSE='#'
                   21848: else
                   21849:   am__EXEEXT_TRUE='#'
                   21850:   am__EXEEXT_FALSE=
                   21851: fi
                   21852: 
                   21853: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
                   21854:   as_fn_error $? "conditional \"AMDEP\" was never defined.
                   21855: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21856: fi
                   21857: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
                   21858:   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
                   21859: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21860: fi
1.1.1.3   misho    21861: if test -z "${HAVE_LATEX_TRUE}" && test -z "${HAVE_LATEX_FALSE}"; then
                   21862:   as_fn_error $? "conditional \"HAVE_LATEX\" was never defined.
                   21863: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21864: fi
1.1.1.4 ! misho    21865: if test -z "${GIT_VERSION_TRUE}" && test -z "${GIT_VERSION_FALSE}"; then
        !          21866:   as_fn_error $? "conditional \"GIT_VERSION\" was never defined.
        !          21867: Usually this means the macro was only invoked conditionally." "$LINENO" 5
        !          21868: fi
1.1.1.3   misho    21869: if test -z "${VTYSH_TRUE}" && test -z "${VTYSH_FALSE}"; then
                   21870:   as_fn_error $? "conditional \"VTYSH\" was never defined.
                   21871: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21872: fi
1.1       misho    21873: 
1.1.1.4 ! misho    21874: if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
        !          21875:   as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
        !          21876: Usually this means the macro was only invoked conditionally." "$LINENO" 5
        !          21877: fi
1.1.1.3   misho    21878: if test -z "${ZEBRA_TRUE}" && test -z "${ZEBRA_FALSE}"; then
                   21879:   as_fn_error $? "conditional \"ZEBRA\" was never defined.
                   21880: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21881: fi
                   21882: if test -z "${BGPD_TRUE}" && test -z "${BGPD_FALSE}"; then
                   21883:   as_fn_error $? "conditional \"BGPD\" was never defined.
                   21884: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21885: fi
                   21886: if test -z "${RIPD_TRUE}" && test -z "${RIPD_FALSE}"; then
                   21887:   as_fn_error $? "conditional \"RIPD\" was never defined.
                   21888: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21889: fi
                   21890: if test -z "${OSPFD_TRUE}" && test -z "${OSPFD_FALSE}"; then
                   21891:   as_fn_error $? "conditional \"OSPFD\" was never defined.
                   21892: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21893: fi
                   21894: if test -z "${BABELD_TRUE}" && test -z "${BABELD_FALSE}"; then
                   21895:   as_fn_error $? "conditional \"BABELD\" was never defined.
                   21896: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21897: fi
                   21898: if test -z "${WATCHQUAGGA_TRUE}" && test -z "${WATCHQUAGGA_FALSE}"; then
                   21899:   as_fn_error $? "conditional \"WATCHQUAGGA\" was never defined.
                   21900: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21901: fi
                   21902: if test -z "${OSPFCLIENT_TRUE}" && test -z "${OSPFCLIENT_FALSE}"; then
                   21903:   as_fn_error $? "conditional \"OSPFCLIENT\" was never defined.
                   21904: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21905: fi
                   21906: if test -z "${RIPNGD_TRUE}" && test -z "${RIPNGD_FALSE}"; then
                   21907:   as_fn_error $? "conditional \"RIPNGD\" was never defined.
                   21908: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21909: fi
                   21910: if test -z "${OSPF6D_TRUE}" && test -z "${OSPF6D_FALSE}"; then
                   21911:   as_fn_error $? "conditional \"OSPF6D\" was never defined.
                   21912: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21913: fi
                   21914: if test -z "${ISISD_TRUE}" && test -z "${ISISD_FALSE}"; then
                   21915:   as_fn_error $? "conditional \"ISISD\" was never defined.
                   21916: Usually this means the macro was only invoked conditionally." "$LINENO" 5
                   21917: fi
1.1       misho    21918: 
                   21919: : "${CONFIG_STATUS=./config.status}"
                   21920: ac_write_fail=0
                   21921: ac_clean_files_save=$ac_clean_files
                   21922: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
                   21923: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   21924: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   21925: as_write_fail=0
                   21926: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
                   21927: #! $SHELL
                   21928: # Generated by $as_me.
                   21929: # Run this file to recreate the current configuration.
                   21930: # Compiler output produced by configure, useful for debugging
                   21931: # configure, is in config.log if it exists.
                   21932: 
                   21933: debug=false
                   21934: ac_cs_recheck=false
                   21935: ac_cs_silent=false
                   21936: 
                   21937: SHELL=\${CONFIG_SHELL-$SHELL}
                   21938: export SHELL
                   21939: _ASEOF
                   21940: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   21941: ## -------------------- ##
                   21942: ## M4sh Initialization. ##
                   21943: ## -------------------- ##
                   21944: 
                   21945: # Be more Bourne compatible
                   21946: DUALCASE=1; export DUALCASE # for MKS sh
                   21947: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
                   21948:   emulate sh
                   21949:   NULLCMD=:
                   21950:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
                   21951:   # is contrary to our usage.  Disable this feature.
                   21952:   alias -g '${1+"$@"}'='"$@"'
                   21953:   setopt NO_GLOB_SUBST
                   21954: else
                   21955:   case `(set -o) 2>/dev/null` in #(
                   21956:   *posix*) :
                   21957:     set -o posix ;; #(
                   21958:   *) :
                   21959:      ;;
                   21960: esac
                   21961: fi
                   21962: 
                   21963: 
                   21964: as_nl='
                   21965: '
                   21966: export as_nl
                   21967: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   21968: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   21969: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   21970: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   21971: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   21972: # but without wasting forks for bash or zsh.
                   21973: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   21974:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   21975:   as_echo='print -r --'
                   21976:   as_echo_n='print -rn --'
                   21977: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   21978:   as_echo='printf %s\n'
                   21979:   as_echo_n='printf %s'
                   21980: else
                   21981:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   21982:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   21983:     as_echo_n='/usr/ucb/echo -n'
                   21984:   else
                   21985:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   21986:     as_echo_n_body='eval
                   21987:       arg=$1;
                   21988:       case $arg in #(
                   21989:       *"$as_nl"*)
                   21990:        expr "X$arg" : "X\\(.*\\)$as_nl";
                   21991:        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   21992:       esac;
                   21993:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   21994:     '
                   21995:     export as_echo_n_body
                   21996:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   21997:   fi
                   21998:   export as_echo_body
                   21999:   as_echo='sh -c $as_echo_body as_echo'
                   22000: fi
                   22001: 
                   22002: # The user is always right.
                   22003: if test "${PATH_SEPARATOR+set}" != set; then
                   22004:   PATH_SEPARATOR=:
                   22005:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   22006:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   22007:       PATH_SEPARATOR=';'
                   22008:   }
                   22009: fi
                   22010: 
                   22011: 
                   22012: # IFS
                   22013: # We need space, tab and new line, in precisely that order.  Quoting is
                   22014: # there to prevent editors from complaining about space-tab.
                   22015: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   22016: # splitting by setting IFS to empty value.)
                   22017: IFS=" ""       $as_nl"
                   22018: 
                   22019: # Find who we are.  Look in the path if we contain no directory separator.
                   22020: as_myself=
                   22021: case $0 in #((
                   22022:   *[\\/]* ) as_myself=$0 ;;
                   22023:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   22024: for as_dir in $PATH
                   22025: do
                   22026:   IFS=$as_save_IFS
                   22027:   test -z "$as_dir" && as_dir=.
                   22028:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   22029:   done
                   22030: IFS=$as_save_IFS
                   22031: 
                   22032:      ;;
                   22033: esac
                   22034: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   22035: # in which case we are not to be found in the path.
                   22036: if test "x$as_myself" = x; then
                   22037:   as_myself=$0
                   22038: fi
                   22039: if test ! -f "$as_myself"; then
                   22040:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   22041:   exit 1
                   22042: fi
                   22043: 
                   22044: # Unset variables that we do not need and which cause bugs (e.g. in
                   22045: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   22046: # suppresses any "Segmentation fault" message there.  '((' could
                   22047: # trigger a bug in pdksh 5.2.14.
                   22048: for as_var in BASH_ENV ENV MAIL MAILPATH
                   22049: do eval test x\${$as_var+set} = xset \
                   22050:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
                   22051: done
                   22052: PS1='$ '
                   22053: PS2='> '
                   22054: PS4='+ '
                   22055: 
                   22056: # NLS nuisances.
                   22057: LC_ALL=C
                   22058: export LC_ALL
                   22059: LANGUAGE=C
                   22060: export LANGUAGE
                   22061: 
                   22062: # CDPATH.
                   22063: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   22064: 
                   22065: 
                   22066: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   22067: # ----------------------------------------
                   22068: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   22069: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
                   22070: # script with STATUS, using 1 if that was 0.
                   22071: as_fn_error ()
                   22072: {
                   22073:   as_status=$1; test $as_status -eq 0 && as_status=1
                   22074:   if test "$4"; then
                   22075:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   22076:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
                   22077:   fi
                   22078:   $as_echo "$as_me: error: $2" >&2
                   22079:   as_fn_exit $as_status
                   22080: } # as_fn_error
                   22081: 
                   22082: 
                   22083: # as_fn_set_status STATUS
                   22084: # -----------------------
                   22085: # Set $? to STATUS, without forking.
                   22086: as_fn_set_status ()
                   22087: {
                   22088:   return $1
                   22089: } # as_fn_set_status
                   22090: 
                   22091: # as_fn_exit STATUS
                   22092: # -----------------
                   22093: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   22094: as_fn_exit ()
                   22095: {
                   22096:   set +e
                   22097:   as_fn_set_status $1
                   22098:   exit $1
                   22099: } # as_fn_exit
                   22100: 
                   22101: # as_fn_unset VAR
                   22102: # ---------------
                   22103: # Portably unset VAR.
                   22104: as_fn_unset ()
                   22105: {
                   22106:   { eval $1=; unset $1;}
                   22107: }
                   22108: as_unset=as_fn_unset
                   22109: # as_fn_append VAR VALUE
                   22110: # ----------------------
                   22111: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   22112: # advantage of any shell optimizations that allow amortized linear growth over
                   22113: # repeated appends, instead of the typical quadratic growth present in naive
                   22114: # implementations.
                   22115: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   22116:   eval 'as_fn_append ()
                   22117:   {
                   22118:     eval $1+=\$2
                   22119:   }'
                   22120: else
                   22121:   as_fn_append ()
                   22122:   {
                   22123:     eval $1=\$$1\$2
                   22124:   }
                   22125: fi # as_fn_append
                   22126: 
                   22127: # as_fn_arith ARG...
                   22128: # ------------------
                   22129: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   22130: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   22131: # must be portable across $(()) and expr.
                   22132: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   22133:   eval 'as_fn_arith ()
                   22134:   {
                   22135:     as_val=$(( $* ))
                   22136:   }'
                   22137: else
                   22138:   as_fn_arith ()
                   22139:   {
                   22140:     as_val=`expr "$@" || test $? -eq 1`
                   22141:   }
                   22142: fi # as_fn_arith
                   22143: 
                   22144: 
                   22145: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   22146:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   22147:   as_expr=expr
                   22148: else
                   22149:   as_expr=false
                   22150: fi
                   22151: 
                   22152: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   22153:   as_basename=basename
                   22154: else
                   22155:   as_basename=false
                   22156: fi
                   22157: 
                   22158: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   22159:   as_dirname=dirname
                   22160: else
                   22161:   as_dirname=false
                   22162: fi
                   22163: 
                   22164: as_me=`$as_basename -- "$0" ||
                   22165: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   22166:         X"$0" : 'X\(//\)$' \| \
                   22167:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                   22168: $as_echo X/"$0" |
                   22169:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   22170:            s//\1/
                   22171:            q
                   22172:          }
                   22173:          /^X\/\(\/\/\)$/{
                   22174:            s//\1/
                   22175:            q
                   22176:          }
                   22177:          /^X\/\(\/\).*/{
                   22178:            s//\1/
                   22179:            q
                   22180:          }
                   22181:          s/.*/./; q'`
                   22182: 
                   22183: # Avoid depending upon Character Ranges.
                   22184: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   22185: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   22186: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   22187: as_cr_digits='0123456789'
                   22188: as_cr_alnum=$as_cr_Letters$as_cr_digits
                   22189: 
                   22190: ECHO_C= ECHO_N= ECHO_T=
                   22191: case `echo -n x` in #(((((
                   22192: -n*)
                   22193:   case `echo 'xy\c'` in
                   22194:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                   22195:   xy)  ECHO_C='\c';;
                   22196:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   22197:        ECHO_T='        ';;
                   22198:   esac;;
                   22199: *)
                   22200:   ECHO_N='-n';;
                   22201: esac
                   22202: 
                   22203: rm -f conf$$ conf$$.exe conf$$.file
                   22204: if test -d conf$$.dir; then
                   22205:   rm -f conf$$.dir/conf$$.file
                   22206: else
                   22207:   rm -f conf$$.dir
                   22208:   mkdir conf$$.dir 2>/dev/null
                   22209: fi
                   22210: if (echo >conf$$.file) 2>/dev/null; then
                   22211:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   22212:     as_ln_s='ln -s'
                   22213:     # ... but there are two gotchas:
                   22214:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   22215:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.3   misho    22216:     # In both cases, we have to default to `cp -pR'.
1.1       misho    22217:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.3   misho    22218:       as_ln_s='cp -pR'
1.1       misho    22219:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   22220:     as_ln_s=ln
                   22221:   else
1.1.1.3   misho    22222:     as_ln_s='cp -pR'
1.1       misho    22223:   fi
                   22224: else
1.1.1.3   misho    22225:   as_ln_s='cp -pR'
1.1       misho    22226: fi
                   22227: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   22228: rmdir conf$$.dir 2>/dev/null
                   22229: 
                   22230: 
                   22231: # as_fn_mkdir_p
                   22232: # -------------
                   22233: # Create "$as_dir" as a directory, including parents if necessary.
                   22234: as_fn_mkdir_p ()
                   22235: {
                   22236: 
                   22237:   case $as_dir in #(
                   22238:   -*) as_dir=./$as_dir;;
                   22239:   esac
                   22240:   test -d "$as_dir" || eval $as_mkdir_p || {
                   22241:     as_dirs=
                   22242:     while :; do
                   22243:       case $as_dir in #(
                   22244:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   22245:       *) as_qdir=$as_dir;;
                   22246:       esac
                   22247:       as_dirs="'$as_qdir' $as_dirs"
                   22248:       as_dir=`$as_dirname -- "$as_dir" ||
                   22249: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   22250:         X"$as_dir" : 'X\(//\)[^/]' \| \
                   22251:         X"$as_dir" : 'X\(//\)$' \| \
                   22252:         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   22253: $as_echo X"$as_dir" |
                   22254:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   22255:            s//\1/
                   22256:            q
                   22257:          }
                   22258:          /^X\(\/\/\)[^/].*/{
                   22259:            s//\1/
                   22260:            q
                   22261:          }
                   22262:          /^X\(\/\/\)$/{
                   22263:            s//\1/
                   22264:            q
                   22265:          }
                   22266:          /^X\(\/\).*/{
                   22267:            s//\1/
                   22268:            q
                   22269:          }
                   22270:          s/.*/./; q'`
                   22271:       test -d "$as_dir" && break
                   22272:     done
                   22273:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                   22274:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
                   22275: 
                   22276: 
                   22277: } # as_fn_mkdir_p
                   22278: if mkdir -p . 2>/dev/null; then
                   22279:   as_mkdir_p='mkdir -p "$as_dir"'
                   22280: else
                   22281:   test -d ./-p && rmdir ./-p
                   22282:   as_mkdir_p=false
                   22283: fi
                   22284: 
1.1.1.3   misho    22285: 
                   22286: # as_fn_executable_p FILE
                   22287: # -----------------------
                   22288: # Test if FILE is an executable regular file.
                   22289: as_fn_executable_p ()
                   22290: {
                   22291:   test -f "$1" && test -x "$1"
                   22292: } # as_fn_executable_p
                   22293: as_test_x='test -x'
                   22294: as_executable_p=as_fn_executable_p
1.1       misho    22295: 
                   22296: # Sed expression to map a string onto a valid CPP name.
                   22297: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   22298: 
                   22299: # Sed expression to map a string onto a valid variable name.
                   22300: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   22301: 
                   22302: 
                   22303: exec 6>&1
                   22304: ## ----------------------------------- ##
                   22305: ## Main body of $CONFIG_STATUS script. ##
                   22306: ## ----------------------------------- ##
                   22307: _ASEOF
                   22308: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
                   22309: 
                   22310: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   22311: # Save the log message, to keep $0 and so on meaningful, and to
                   22312: # report actual input values of CONFIG_FILES etc. instead of their
                   22313: # values after options handling.
                   22314: ac_log="
1.1.1.4 ! misho    22315: This file was extended by Quagga $as_me 0.99.22, which was
1.1.1.3   misho    22316: generated by GNU Autoconf 2.69.  Invocation command line was
1.1       misho    22317: 
                   22318:   CONFIG_FILES    = $CONFIG_FILES
                   22319:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   22320:   CONFIG_LINKS    = $CONFIG_LINKS
                   22321:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   22322:   $ $0 $@
                   22323: 
                   22324: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   22325: "
                   22326: 
                   22327: _ACEOF
                   22328: 
                   22329: case $ac_config_files in *"
                   22330: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   22331: esac
                   22332: 
                   22333: case $ac_config_headers in *"
                   22334: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   22335: esac
                   22336: 
                   22337: 
                   22338: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   22339: # Files that config.status was made for.
                   22340: config_files="$ac_config_files"
                   22341: config_headers="$ac_config_headers"
                   22342: config_commands="$ac_config_commands"
                   22343: 
                   22344: _ACEOF
                   22345: 
                   22346: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   22347: ac_cs_usage="\
                   22348: \`$as_me' instantiates files and other configuration actions
                   22349: from templates according to the current configuration.  Unless the files
                   22350: and actions are specified as TAGs, all are instantiated by default.
                   22351: 
                   22352: Usage: $0 [OPTION]... [TAG]...
                   22353: 
                   22354:   -h, --help       print this help, then exit
                   22355:   -V, --version    print version number and configuration settings, then exit
                   22356:       --config     print configuration, then exit
                   22357:   -q, --quiet, --silent
                   22358:                    do not print progress messages
                   22359:   -d, --debug      don't remove temporary files
                   22360:       --recheck    update $as_me by reconfiguring in the same conditions
                   22361:       --file=FILE[:TEMPLATE]
                   22362:                    instantiate the configuration file FILE
                   22363:       --header=FILE[:TEMPLATE]
                   22364:                    instantiate the configuration header FILE
                   22365: 
                   22366: Configuration files:
                   22367: $config_files
                   22368: 
                   22369: Configuration headers:
                   22370: $config_headers
                   22371: 
                   22372: Configuration commands:
                   22373: $config_commands
                   22374: 
                   22375: Report bugs to <https://bugzilla.quagga.net>."
                   22376: 
                   22377: _ACEOF
                   22378: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   22379: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
                   22380: ac_cs_version="\\
1.1.1.4 ! misho    22381: Quagga config.status 0.99.22
1.1.1.3   misho    22382: configured by $0, generated by GNU Autoconf 2.69,
1.1       misho    22383:   with options \\"\$ac_cs_config\\"
                   22384: 
1.1.1.3   misho    22385: Copyright (C) 2012 Free Software Foundation, Inc.
1.1       misho    22386: This config.status script is free software; the Free Software Foundation
                   22387: gives unlimited permission to copy, distribute and modify it."
                   22388: 
                   22389: ac_pwd='$ac_pwd'
                   22390: srcdir='$srcdir'
                   22391: INSTALL='$INSTALL'
                   22392: MKDIR_P='$MKDIR_P'
                   22393: AWK='$AWK'
                   22394: test -n "\$AWK" || AWK=awk
                   22395: _ACEOF
                   22396: 
                   22397: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   22398: # The default lists apply if the user does not specify any file.
                   22399: ac_need_defaults=:
                   22400: while test $# != 0
                   22401: do
                   22402:   case $1 in
                   22403:   --*=?*)
                   22404:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   22405:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   22406:     ac_shift=:
                   22407:     ;;
                   22408:   --*=)
                   22409:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   22410:     ac_optarg=
                   22411:     ac_shift=:
                   22412:     ;;
                   22413:   *)
                   22414:     ac_option=$1
                   22415:     ac_optarg=$2
                   22416:     ac_shift=shift
                   22417:     ;;
                   22418:   esac
                   22419: 
                   22420:   case $ac_option in
                   22421:   # Handling of the options.
                   22422:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   22423:     ac_cs_recheck=: ;;
                   22424:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
                   22425:     $as_echo "$ac_cs_version"; exit ;;
                   22426:   --config | --confi | --conf | --con | --co | --c )
                   22427:     $as_echo "$ac_cs_config"; exit ;;
                   22428:   --debug | --debu | --deb | --de | --d | -d )
                   22429:     debug=: ;;
                   22430:   --file | --fil | --fi | --f )
                   22431:     $ac_shift
                   22432:     case $ac_optarg in
                   22433:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   22434:     '') as_fn_error $? "missing file argument" ;;
                   22435:     esac
                   22436:     as_fn_append CONFIG_FILES " '$ac_optarg'"
                   22437:     ac_need_defaults=false;;
                   22438:   --header | --heade | --head | --hea )
                   22439:     $ac_shift
                   22440:     case $ac_optarg in
                   22441:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   22442:     esac
                   22443:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
                   22444:     ac_need_defaults=false;;
                   22445:   --he | --h)
                   22446:     # Conflict between --help and --header
                   22447:     as_fn_error $? "ambiguous option: \`$1'
                   22448: Try \`$0 --help' for more information.";;
                   22449:   --help | --hel | -h )
                   22450:     $as_echo "$ac_cs_usage"; exit ;;
                   22451:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   22452:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   22453:     ac_cs_silent=: ;;
                   22454: 
                   22455:   # This is an error.
                   22456:   -*) as_fn_error $? "unrecognized option: \`$1'
                   22457: Try \`$0 --help' for more information." ;;
                   22458: 
                   22459:   *) as_fn_append ac_config_targets " $1"
                   22460:      ac_need_defaults=false ;;
                   22461: 
                   22462:   esac
                   22463:   shift
                   22464: done
                   22465: 
                   22466: ac_configure_extra_args=
                   22467: 
                   22468: if $ac_cs_silent; then
                   22469:   exec 6>/dev/null
                   22470:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   22471: fi
                   22472: 
                   22473: _ACEOF
                   22474: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   22475: if \$ac_cs_recheck; then
1.1.1.3   misho    22476:   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1       misho    22477:   shift
                   22478:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   22479:   CONFIG_SHELL='$SHELL'
                   22480:   export CONFIG_SHELL
                   22481:   exec "\$@"
                   22482: fi
                   22483: 
                   22484: _ACEOF
                   22485: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   22486: exec 5>>config.log
                   22487: {
                   22488:   echo
                   22489:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   22490: ## Running $as_me. ##
                   22491: _ASBOX
                   22492:   $as_echo "$ac_log"
                   22493: } >&5
                   22494: 
                   22495: _ACEOF
                   22496: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   22497: #
                   22498: # INIT-COMMANDS
                   22499: #
                   22500: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   22501: 
                   22502: 
                   22503: # The HP-UX ksh and POSIX shell print the target directory to stdout
                   22504: # if CDPATH is set.
                   22505: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   22506: 
                   22507: sed_quote_subst='$sed_quote_subst'
                   22508: double_quote_subst='$double_quote_subst'
                   22509: delay_variable_subst='$delay_variable_subst'
                   22510: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
                   22511: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
                   22512: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
                   22513: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
                   22514: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
                   22515: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
                   22516: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
                   22517: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1.1.1.2   misho    22518: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1.1       misho    22519: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
                   22520: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
                   22521: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
                   22522: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
                   22523: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
                   22524: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
                   22525: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
                   22526: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
                   22527: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
                   22528: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
                   22529: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
                   22530: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
                   22531: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
                   22532: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
                   22533: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
                   22534: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
                   22535: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
                   22536: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
                   22537: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
                   22538: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
                   22539: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
                   22540: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
                   22541: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
                   22542: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
                   22543: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
                   22544: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
                   22545: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
                   22546: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
                   22547: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
                   22548: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
                   22549: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
                   22550: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
                   22551: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
                   22552: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
                   22553: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
                   22554: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
                   22555: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
                   22556: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
                   22557: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
                   22558: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
                   22559: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
                   22560: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
                   22561: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
                   22562: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
                   22563: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
                   22564: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
                   22565: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
                   22566: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
                   22567: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
                   22568: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
                   22569: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
                   22570: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
                   22571: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
                   22572: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
                   22573: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
                   22574: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
                   22575: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
                   22576: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
                   22577: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
                   22578: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
                   22579: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
                   22580: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
                   22581: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
                   22582: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
                   22583: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
                   22584: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
                   22585: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
                   22586: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
                   22587: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
                   22588: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
                   22589: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
                   22590: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
                   22591: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
                   22592: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
                   22593: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
                   22594: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
                   22595: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
                   22596: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
                   22597: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
                   22598: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
                   22599: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
                   22600: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
                   22601: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
                   22602: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
                   22603: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
                   22604: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
                   22605: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
                   22606: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
                   22607: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
                   22608: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
                   22609: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
                   22610: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
                   22611: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
                   22612: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
                   22613: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
                   22614: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
                   22615: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
                   22616: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
                   22617: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
                   22618: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
                   22619: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
                   22620: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
                   22621: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
                   22622: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
                   22623: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
                   22624: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
                   22625: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
                   22626: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
                   22627: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
                   22628: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
                   22629: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
                   22630: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
                   22631: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
                   22632: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
                   22633: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
                   22634: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
                   22635: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
                   22636: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
                   22637: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
                   22638: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
                   22639: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
                   22640: 
                   22641: LTCC='$LTCC'
                   22642: LTCFLAGS='$LTCFLAGS'
                   22643: compiler='$compiler_DEFAULT'
                   22644: 
                   22645: # A function that is used when there is no print builtin or printf.
                   22646: func_fallback_echo ()
                   22647: {
                   22648:   eval 'cat <<_LTECHO_EOF
                   22649: \$1
                   22650: _LTECHO_EOF'
                   22651: }
                   22652: 
                   22653: # Quote evaled strings.
                   22654: for var in SHELL \
                   22655: ECHO \
1.1.1.2   misho    22656: PATH_SEPARATOR \
1.1       misho    22657: SED \
                   22658: GREP \
                   22659: EGREP \
                   22660: FGREP \
                   22661: LD \
                   22662: NM \
                   22663: LN_S \
                   22664: lt_SP2NL \
                   22665: lt_NL2SP \
                   22666: reload_flag \
                   22667: OBJDUMP \
                   22668: deplibs_check_method \
                   22669: file_magic_cmd \
                   22670: file_magic_glob \
                   22671: want_nocaseglob \
                   22672: DLLTOOL \
                   22673: sharedlib_from_linklib_cmd \
                   22674: AR \
                   22675: AR_FLAGS \
                   22676: archiver_list_spec \
                   22677: STRIP \
                   22678: RANLIB \
                   22679: CC \
                   22680: CFLAGS \
                   22681: compiler \
                   22682: lt_cv_sys_global_symbol_pipe \
                   22683: lt_cv_sys_global_symbol_to_cdecl \
                   22684: lt_cv_sys_global_symbol_to_c_name_address \
                   22685: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
                   22686: nm_file_list_spec \
                   22687: lt_prog_compiler_no_builtin_flag \
                   22688: lt_prog_compiler_pic \
                   22689: lt_prog_compiler_wl \
                   22690: lt_prog_compiler_static \
                   22691: lt_cv_prog_compiler_c_o \
                   22692: need_locks \
                   22693: MANIFEST_TOOL \
                   22694: DSYMUTIL \
                   22695: NMEDIT \
                   22696: LIPO \
                   22697: OTOOL \
                   22698: OTOOL64 \
                   22699: shrext_cmds \
                   22700: export_dynamic_flag_spec \
                   22701: whole_archive_flag_spec \
                   22702: compiler_needs_object \
                   22703: with_gnu_ld \
                   22704: allow_undefined_flag \
                   22705: no_undefined_flag \
                   22706: hardcode_libdir_flag_spec \
                   22707: hardcode_libdir_separator \
                   22708: exclude_expsyms \
                   22709: include_expsyms \
                   22710: file_list_spec \
                   22711: variables_saved_for_relink \
                   22712: libname_spec \
                   22713: library_names_spec \
                   22714: soname_spec \
                   22715: install_override_mode \
                   22716: finish_eval \
                   22717: old_striplib \
                   22718: striplib; do
                   22719:     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
                   22720:     *[\\\\\\\`\\"\\\$]*)
                   22721:       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
                   22722:       ;;
                   22723:     *)
                   22724:       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
                   22725:       ;;
                   22726:     esac
                   22727: done
                   22728: 
                   22729: # Double-quote double-evaled strings.
                   22730: for var in reload_cmds \
                   22731: old_postinstall_cmds \
                   22732: old_postuninstall_cmds \
                   22733: old_archive_cmds \
                   22734: extract_expsyms_cmds \
                   22735: old_archive_from_new_cmds \
                   22736: old_archive_from_expsyms_cmds \
                   22737: archive_cmds \
                   22738: archive_expsym_cmds \
                   22739: module_cmds \
                   22740: module_expsym_cmds \
                   22741: export_symbols_cmds \
                   22742: prelink_cmds \
                   22743: postlink_cmds \
                   22744: postinstall_cmds \
                   22745: postuninstall_cmds \
                   22746: finish_cmds \
                   22747: sys_lib_search_path_spec \
                   22748: sys_lib_dlsearch_path_spec; do
                   22749:     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
                   22750:     *[\\\\\\\`\\"\\\$]*)
                   22751:       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
                   22752:       ;;
                   22753:     *)
                   22754:       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
                   22755:       ;;
                   22756:     esac
                   22757: done
                   22758: 
                   22759: ac_aux_dir='$ac_aux_dir'
                   22760: xsi_shell='$xsi_shell'
                   22761: lt_shell_append='$lt_shell_append'
                   22762: 
                   22763: # See if we are running on zsh, and set the options which allow our
                   22764: # commands through without removal of \ escapes INIT.
                   22765: if test -n "\${ZSH_VERSION+set}" ; then
                   22766:    setopt NO_GLOB_SUBST
                   22767: fi
                   22768: 
                   22769: 
                   22770:     PACKAGE='$PACKAGE'
                   22771:     VERSION='$VERSION'
                   22772:     TIMESTAMP='$TIMESTAMP'
                   22773:     RM='$RM'
                   22774:     ofile='$ofile'
                   22775: 
                   22776: 
                   22777: 
                   22778: 
                   22779: _ACEOF
                   22780: 
                   22781: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   22782: 
                   22783: # Handling of arguments.
                   22784: for ac_config_target in $ac_config_targets
                   22785: do
                   22786:   case $ac_config_target in
                   22787:     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
                   22788:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   22789:     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
                   22790:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   22791:     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
                   22792:     "zebra/Makefile") CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;;
                   22793:     "ripd/Makefile") CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;;
                   22794:     "ripngd/Makefile") CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;;
                   22795:     "bgpd/Makefile") CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;;
                   22796:     "ospfd/Makefile") CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;;
                   22797:     "watchquagga/Makefile") CONFIG_FILES="$CONFIG_FILES watchquagga/Makefile" ;;
                   22798:     "ospf6d/Makefile") CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;;
                   22799:     "isisd/Makefile") CONFIG_FILES="$CONFIG_FILES isisd/Makefile" ;;
1.1.1.3   misho    22800:     "babeld/Makefile") CONFIG_FILES="$CONFIG_FILES babeld/Makefile" ;;
1.1       misho    22801:     "vtysh/Makefile") CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;;
                   22802:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   22803:     "ospfclient/Makefile") CONFIG_FILES="$CONFIG_FILES ospfclient/Makefile" ;;
                   22804:     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
                   22805:     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
                   22806:     "redhat/Makefile") CONFIG_FILES="$CONFIG_FILES redhat/Makefile" ;;
                   22807:     "pkgsrc/Makefile") CONFIG_FILES="$CONFIG_FILES pkgsrc/Makefile" ;;
                   22808:     "redhat/quagga.spec") CONFIG_FILES="$CONFIG_FILES redhat/quagga.spec" ;;
                   22809:     "lib/version.h") CONFIG_FILES="$CONFIG_FILES lib/version.h" ;;
                   22810:     "doc/defines.texi") CONFIG_FILES="$CONFIG_FILES doc/defines.texi" ;;
                   22811:     "isisd/topology/Makefile") CONFIG_FILES="$CONFIG_FILES isisd/topology/Makefile" ;;
                   22812:     "pkgsrc/bgpd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/bgpd.sh" ;;
                   22813:     "pkgsrc/ospf6d.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ospf6d.sh" ;;
                   22814:     "pkgsrc/ospfd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ospfd.sh" ;;
                   22815:     "pkgsrc/ripd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ripd.sh" ;;
                   22816:     "pkgsrc/ripngd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ripngd.sh" ;;
                   22817:     "pkgsrc/zebra.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/zebra.sh" ;;
                   22818:     "solaris/Makefile") CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;;
                   22819:     "vtysh/extract.pl") CONFIG_FILES="$CONFIG_FILES vtysh/extract.pl" ;;
                   22820: 
                   22821:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
                   22822:   esac
                   22823: done
                   22824: 
                   22825: 
                   22826: # If the user did not use the arguments to specify the items to instantiate,
                   22827: # then the envvar interface is used.  Set only those that are not.
                   22828: # We use the long form for the default assignment because of an extremely
                   22829: # bizarre bug on SunOS 4.1.3.
                   22830: if $ac_need_defaults; then
                   22831:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   22832:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   22833:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   22834: fi
                   22835: 
                   22836: # Have a temporary directory for convenience.  Make it in the build tree
                   22837: # simply because there is no reason against having it here, and in addition,
                   22838: # creating and moving files from /tmp can sometimes cause problems.
                   22839: # Hook for its removal unless debugging.
                   22840: # Note that there is a small window in which the directory will not be cleaned:
                   22841: # after its creation but before its name has been assigned to `$tmp'.
                   22842: $debug ||
                   22843: {
                   22844:   tmp= ac_tmp=
                   22845:   trap 'exit_status=$?
                   22846:   : "${ac_tmp:=$tmp}"
                   22847:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
                   22848: ' 0
                   22849:   trap 'as_fn_exit 1' 1 2 13 15
                   22850: }
                   22851: # Create a (secure) tmp directory for tmp files.
                   22852: 
                   22853: {
                   22854:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   22855:   test -d "$tmp"
                   22856: }  ||
                   22857: {
                   22858:   tmp=./conf$$-$RANDOM
                   22859:   (umask 077 && mkdir "$tmp")
                   22860: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
                   22861: ac_tmp=$tmp
                   22862: 
                   22863: # Set up the scripts for CONFIG_FILES section.
                   22864: # No need to generate them if there are no CONFIG_FILES.
                   22865: # This happens for instance with `./config.status config.h'.
                   22866: if test -n "$CONFIG_FILES"; then
                   22867: 
                   22868: 
                   22869: ac_cr=`echo X | tr X '\015'`
                   22870: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   22871: # But we know of no other shell where ac_cr would be empty at this
                   22872: # point, so we can use a bashism as a fallback.
                   22873: if test "x$ac_cr" = x; then
                   22874:   eval ac_cr=\$\'\\r\'
                   22875: fi
                   22876: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   22877: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
                   22878:   ac_cs_awk_cr='\\r'
                   22879: else
                   22880:   ac_cs_awk_cr=$ac_cr
                   22881: fi
                   22882: 
                   22883: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
                   22884: _ACEOF
                   22885: 
                   22886: 
                   22887: {
                   22888:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   22889:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   22890:   echo "_ACEOF"
                   22891: } >conf$$subs.sh ||
                   22892:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   22893: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
                   22894: ac_delim='%!_!# '
                   22895: for ac_last_try in false false false false false :; do
                   22896:   . ./conf$$subs.sh ||
                   22897:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   22898: 
                   22899:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   22900:   if test $ac_delim_n = $ac_delim_num; then
                   22901:     break
                   22902:   elif $ac_last_try; then
                   22903:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   22904:   else
                   22905:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   22906:   fi
                   22907: done
                   22908: rm -f conf$$subs.sh
                   22909: 
                   22910: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   22911: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
                   22912: _ACEOF
                   22913: sed -n '
                   22914: h
                   22915: s/^/S["/; s/!.*/"]=/
                   22916: p
                   22917: g
                   22918: s/^[^!]*!//
                   22919: :repl
                   22920: t repl
                   22921: s/'"$ac_delim"'$//
                   22922: t delim
                   22923: :nl
                   22924: h
                   22925: s/\(.\{148\}\)..*/\1/
                   22926: t more1
                   22927: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   22928: p
                   22929: n
                   22930: b repl
                   22931: :more1
                   22932: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   22933: p
                   22934: g
                   22935: s/.\{148\}//
                   22936: t nl
                   22937: :delim
                   22938: h
                   22939: s/\(.\{148\}\)..*/\1/
                   22940: t more2
                   22941: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   22942: p
                   22943: b
                   22944: :more2
                   22945: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   22946: p
                   22947: g
                   22948: s/.\{148\}//
                   22949: t delim
                   22950: ' <conf$$subs.awk | sed '
                   22951: /^[^""]/{
                   22952:   N
                   22953:   s/\n//
                   22954: }
                   22955: ' >>$CONFIG_STATUS || ac_write_fail=1
                   22956: rm -f conf$$subs.awk
                   22957: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   22958: _ACAWK
                   22959: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
                   22960:   for (key in S) S_is_set[key] = 1
                   22961:   FS = ""
                   22962: 
                   22963: }
                   22964: {
                   22965:   line = $ 0
                   22966:   nfields = split(line, field, "@")
                   22967:   substed = 0
                   22968:   len = length(field[1])
                   22969:   for (i = 2; i < nfields; i++) {
                   22970:     key = field[i]
                   22971:     keylen = length(key)
                   22972:     if (S_is_set[key]) {
                   22973:       value = S[key]
                   22974:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   22975:       len += length(value) + length(field[++i])
                   22976:       substed = 1
                   22977:     } else
                   22978:       len += 1 + keylen
                   22979:   }
                   22980: 
                   22981:   print line
                   22982: }
                   22983: 
                   22984: _ACAWK
                   22985: _ACEOF
                   22986: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   22987: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   22988:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   22989: else
                   22990:   cat
                   22991: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
                   22992:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
                   22993: _ACEOF
                   22994: 
                   22995: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   22996: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
                   22997: # trailing colons and then remove the whole line if VPATH becomes empty
                   22998: # (actually we leave an empty line to preserve line numbers).
                   22999: if test "x$srcdir" = x.; then
                   23000:   ac_vpsub='/^[         ]*VPATH[        ]*=[    ]*/{
                   23001: h
                   23002: s///
                   23003: s/^/:/
                   23004: s/[     ]*$/:/
                   23005: s/:\$(srcdir):/:/g
                   23006: s/:\${srcdir}:/:/g
                   23007: s/:@srcdir@:/:/g
                   23008: s/^:*//
                   23009: s/:*$//
                   23010: x
                   23011: s/\(=[  ]*\).*/\1/
                   23012: G
                   23013: s/\n//
                   23014: s/^[^=]*=[      ]*$//
                   23015: }'
                   23016: fi
                   23017: 
                   23018: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   23019: fi # test -n "$CONFIG_FILES"
                   23020: 
                   23021: # Set up the scripts for CONFIG_HEADERS section.
                   23022: # No need to generate them if there are no CONFIG_HEADERS.
                   23023: # This happens for instance with `./config.status Makefile'.
                   23024: if test -n "$CONFIG_HEADERS"; then
                   23025: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
                   23026: BEGIN {
                   23027: _ACEOF
                   23028: 
                   23029: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   23030: # here-document in config.status, that substitutes the proper values into
                   23031: # config.h.in to produce config.h.
                   23032: 
                   23033: # Create a delimiter string that does not exist in confdefs.h, to ease
                   23034: # handling of long lines.
                   23035: ac_delim='%!_!# '
                   23036: for ac_last_try in false false :; do
                   23037:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
                   23038:   if test -z "$ac_tt"; then
                   23039:     break
                   23040:   elif $ac_last_try; then
                   23041:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
                   23042:   else
                   23043:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   23044:   fi
                   23045: done
                   23046: 
                   23047: # For the awk script, D is an array of macro values keyed by name,
                   23048: # likewise P contains macro parameters if any.  Preserve backslash
                   23049: # newline sequences.
                   23050: 
                   23051: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   23052: sed -n '
                   23053: s/.\{148\}/&'"$ac_delim"'/g
                   23054: t rset
                   23055: :rset
                   23056: s/^[    ]*#[    ]*define[       ][      ]*/ /
                   23057: t def
                   23058: d
                   23059: :def
                   23060: s/\\$//
                   23061: t bsnl
                   23062: s/["\\]/\\&/g
                   23063: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   23064: D["\1"]=" \3"/p
                   23065: s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2"/p
                   23066: d
                   23067: :bsnl
                   23068: s/["\\]/\\&/g
                   23069: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   23070: D["\1"]=" \3\\\\\\n"\\/p
                   23071: t cont
                   23072: s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   23073: t cont
                   23074: d
                   23075: :cont
                   23076: n
                   23077: s/.\{148\}/&'"$ac_delim"'/g
                   23078: t clear
                   23079: :clear
                   23080: s/\\$//
                   23081: t bsnlc
                   23082: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   23083: d
                   23084: :bsnlc
                   23085: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   23086: b cont
                   23087: ' <confdefs.h | sed '
                   23088: s/'"$ac_delim"'/"\\\
                   23089: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   23090: 
                   23091: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   23092:   for (key in D) D_is_set[key] = 1
                   23093:   FS = ""
                   23094: }
                   23095: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   23096:   line = \$ 0
                   23097:   split(line, arg, " ")
                   23098:   if (arg[1] == "#") {
                   23099:     defundef = arg[2]
                   23100:     mac1 = arg[3]
                   23101:   } else {
                   23102:     defundef = substr(arg[1], 2)
                   23103:     mac1 = arg[2]
                   23104:   }
                   23105:   split(mac1, mac2, "(") #)
                   23106:   macro = mac2[1]
                   23107:   prefix = substr(line, 1, index(line, defundef) - 1)
                   23108:   if (D_is_set[macro]) {
                   23109:     # Preserve the white space surrounding the "#".
                   23110:     print prefix "define", macro P[macro] D[macro]
                   23111:     next
                   23112:   } else {
                   23113:     # Replace #undef with comments.  This is necessary, for example,
                   23114:     # in the case of _POSIX_SOURCE, which is predefined and required
                   23115:     # on some systems where configure will not decide to define it.
                   23116:     if (defundef == "undef") {
                   23117:       print "/*", prefix defundef, macro, "*/"
                   23118:       next
                   23119:     }
                   23120:   }
                   23121: }
                   23122: { print }
                   23123: _ACAWK
                   23124: _ACEOF
                   23125: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   23126:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
                   23127: fi # test -n "$CONFIG_HEADERS"
                   23128: 
                   23129: 
                   23130: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   23131: shift
                   23132: for ac_tag
                   23133: do
                   23134:   case $ac_tag in
                   23135:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   23136:   esac
                   23137:   case $ac_mode$ac_tag in
                   23138:   :[FHL]*:*);;
                   23139:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
                   23140:   :[FH]-) ac_tag=-:-;;
                   23141:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   23142:   esac
                   23143:   ac_save_IFS=$IFS
                   23144:   IFS=:
                   23145:   set x $ac_tag
                   23146:   IFS=$ac_save_IFS
                   23147:   shift
                   23148:   ac_file=$1
                   23149:   shift
                   23150: 
                   23151:   case $ac_mode in
                   23152:   :L) ac_source=$1;;
                   23153:   :[FH])
                   23154:     ac_file_inputs=
                   23155:     for ac_f
                   23156:     do
                   23157:       case $ac_f in
                   23158:       -) ac_f="$ac_tmp/stdin";;
                   23159:       *) # Look for the file first in the build tree, then in the source tree
                   23160:         # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   23161:         # because $ac_f cannot contain `:'.
                   23162:         test -f "$ac_f" ||
                   23163:           case $ac_f in
                   23164:           [\\/$]*) false;;
                   23165:           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   23166:           esac ||
                   23167:           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
                   23168:       esac
                   23169:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   23170:       as_fn_append ac_file_inputs " '$ac_f'"
                   23171:     done
                   23172: 
                   23173:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   23174:     # use $as_me), people would be surprised to read:
                   23175:     #    /* config.h.  Generated by config.status.  */
                   23176:     configure_input='Generated from '`
                   23177:          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   23178:        `' by configure.'
                   23179:     if test x"$ac_file" != x-; then
                   23180:       configure_input="$ac_file.  $configure_input"
                   23181:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   23182: $as_echo "$as_me: creating $ac_file" >&6;}
                   23183:     fi
                   23184:     # Neutralize special characters interpreted by sed in replacement strings.
                   23185:     case $configure_input in #(
                   23186:     *\&* | *\|* | *\\* )
                   23187:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   23188:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   23189:     *) ac_sed_conf_input=$configure_input;;
                   23190:     esac
                   23191: 
                   23192:     case $ac_tag in
                   23193:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
                   23194:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
                   23195:     esac
                   23196:     ;;
                   23197:   esac
                   23198: 
                   23199:   ac_dir=`$as_dirname -- "$ac_file" ||
                   23200: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23201:         X"$ac_file" : 'X\(//\)[^/]' \| \
                   23202:         X"$ac_file" : 'X\(//\)$' \| \
                   23203:         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
                   23204: $as_echo X"$ac_file" |
                   23205:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   23206:            s//\1/
                   23207:            q
                   23208:          }
                   23209:          /^X\(\/\/\)[^/].*/{
                   23210:            s//\1/
                   23211:            q
                   23212:          }
                   23213:          /^X\(\/\/\)$/{
                   23214:            s//\1/
                   23215:            q
                   23216:          }
                   23217:          /^X\(\/\).*/{
                   23218:            s//\1/
                   23219:            q
                   23220:          }
                   23221:          s/.*/./; q'`
                   23222:   as_dir="$ac_dir"; as_fn_mkdir_p
                   23223:   ac_builddir=.
                   23224: 
                   23225: case "$ac_dir" in
                   23226: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   23227: *)
                   23228:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
                   23229:   # A ".." for each directory in $ac_dir_suffix.
                   23230:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
                   23231:   case $ac_top_builddir_sub in
                   23232:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   23233:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   23234:   esac ;;
                   23235: esac
                   23236: ac_abs_top_builddir=$ac_pwd
                   23237: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   23238: # for backward compatibility:
                   23239: ac_top_builddir=$ac_top_build_prefix
                   23240: 
                   23241: case $srcdir in
                   23242:   .)  # We are building in place.
                   23243:     ac_srcdir=.
                   23244:     ac_top_srcdir=$ac_top_builddir_sub
                   23245:     ac_abs_top_srcdir=$ac_pwd ;;
                   23246:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   23247:     ac_srcdir=$srcdir$ac_dir_suffix;
                   23248:     ac_top_srcdir=$srcdir
                   23249:     ac_abs_top_srcdir=$srcdir ;;
                   23250:   *) # Relative name.
                   23251:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   23252:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   23253:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   23254: esac
                   23255: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   23256: 
                   23257: 
                   23258:   case $ac_mode in
                   23259:   :F)
                   23260:   #
                   23261:   # CONFIG_FILE
                   23262:   #
                   23263: 
                   23264:   case $INSTALL in
                   23265:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   23266:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   23267:   esac
                   23268:   ac_MKDIR_P=$MKDIR_P
                   23269:   case $MKDIR_P in
                   23270:   [\\/$]* | ?:[\\/]* ) ;;
                   23271:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   23272:   esac
                   23273: _ACEOF
                   23274: 
                   23275: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   23276: # If the template does not know about datarootdir, expand it.
                   23277: # FIXME: This hack should be removed a few years after 2.60.
                   23278: ac_datarootdir_hack=; ac_datarootdir_seen=
                   23279: ac_sed_dataroot='
                   23280: /datarootdir/ {
                   23281:   p
                   23282:   q
                   23283: }
                   23284: /@datadir@/p
                   23285: /@docdir@/p
                   23286: /@infodir@/p
                   23287: /@localedir@/p
                   23288: /@mandir@/p'
                   23289: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
                   23290: *datarootdir*) ac_datarootdir_seen=yes;;
                   23291: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
                   23292:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   23293: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
                   23294: _ACEOF
                   23295: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   23296:   ac_datarootdir_hack='
                   23297:   s&@datadir@&$datadir&g
                   23298:   s&@docdir@&$docdir&g
                   23299:   s&@infodir@&$infodir&g
                   23300:   s&@localedir@&$localedir&g
                   23301:   s&@mandir@&$mandir&g
                   23302:   s&\\\${datarootdir}&$datarootdir&g' ;;
                   23303: esac
                   23304: _ACEOF
                   23305: 
                   23306: # Neutralize VPATH when `$srcdir' = `.'.
                   23307: # Shell code in configure.ac might set extrasub.
                   23308: # FIXME: do we really want to maintain this feature?
                   23309: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   23310: ac_sed_extra="$ac_vpsub
                   23311: $extrasub
                   23312: _ACEOF
                   23313: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   23314: :t
                   23315: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   23316: s|@configure_input@|$ac_sed_conf_input|;t t
                   23317: s&@top_builddir@&$ac_top_builddir_sub&;t t
                   23318: s&@top_build_prefix@&$ac_top_build_prefix&;t t
                   23319: s&@srcdir@&$ac_srcdir&;t t
                   23320: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   23321: s&@top_srcdir@&$ac_top_srcdir&;t t
                   23322: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   23323: s&@builddir@&$ac_builddir&;t t
                   23324: s&@abs_builddir@&$ac_abs_builddir&;t t
                   23325: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   23326: s&@INSTALL@&$ac_INSTALL&;t t
                   23327: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   23328: $ac_datarootdir_hack
                   23329: "
                   23330: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
                   23331:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   23332: 
                   23333: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   23334:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
                   23335:   { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' \
                   23336:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
                   23337:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   23338: which seems to be undefined.  Please make sure it is defined" >&5
                   23339: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   23340: which seems to be undefined.  Please make sure it is defined" >&2;}
                   23341: 
                   23342:   rm -f "$ac_tmp/stdin"
                   23343:   case $ac_file in
                   23344:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
                   23345:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
                   23346:   esac \
                   23347:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   23348:  ;;
                   23349:   :H)
                   23350:   #
                   23351:   # CONFIG_HEADER
                   23352:   #
                   23353:   if test x"$ac_file" != x-; then
                   23354:     {
                   23355:       $as_echo "/* $configure_input  */" \
                   23356:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
                   23357:     } >"$ac_tmp/config.h" \
                   23358:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   23359:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
                   23360:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   23361: $as_echo "$as_me: $ac_file is unchanged" >&6;}
                   23362:     else
                   23363:       rm -f "$ac_file"
                   23364:       mv "$ac_tmp/config.h" "$ac_file" \
                   23365:        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   23366:     fi
                   23367:   else
                   23368:     $as_echo "/* $configure_input  */" \
                   23369:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
                   23370:       || as_fn_error $? "could not create -" "$LINENO" 5
                   23371:   fi
                   23372: # Compute "$ac_file"'s index in $config_headers.
                   23373: _am_arg="$ac_file"
                   23374: _am_stamp_count=1
                   23375: for _am_header in $config_headers :; do
                   23376:   case $_am_header in
                   23377:     $_am_arg | $_am_arg:* )
                   23378:       break ;;
                   23379:     * )
                   23380:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   23381:   esac
                   23382: done
                   23383: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   23384: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23385:         X"$_am_arg" : 'X\(//\)[^/]' \| \
                   23386:         X"$_am_arg" : 'X\(//\)$' \| \
                   23387:         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
                   23388: $as_echo X"$_am_arg" |
                   23389:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   23390:            s//\1/
                   23391:            q
                   23392:          }
                   23393:          /^X\(\/\/\)[^/].*/{
                   23394:            s//\1/
                   23395:            q
                   23396:          }
                   23397:          /^X\(\/\/\)$/{
                   23398:            s//\1/
                   23399:            q
                   23400:          }
                   23401:          /^X\(\/\).*/{
                   23402:            s//\1/
                   23403:            q
                   23404:          }
                   23405:          s/.*/./; q'`/stamp-h$_am_stamp_count
                   23406:  ;;
                   23407: 
                   23408:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   23409: $as_echo "$as_me: executing $ac_file commands" >&6;}
                   23410:  ;;
                   23411:   esac
                   23412: 
                   23413: 
                   23414:   case $ac_file$ac_mode in
                   23415:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   23416:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   23417:   # are listed without --file.  Let's play safe and only enable the eval
                   23418:   # if we detect the quoting.
                   23419:   case $CONFIG_FILES in
                   23420:   *\'*) eval set x "$CONFIG_FILES" ;;
                   23421:   *)   set x $CONFIG_FILES ;;
                   23422:   esac
                   23423:   shift
                   23424:   for mf
                   23425:   do
                   23426:     # Strip MF so we end up with the name of the file.
                   23427:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   23428:     # Check whether this is an Automake generated Makefile or not.
1.1.1.4 ! misho    23429:     # We used to match only the files named 'Makefile.in', but
1.1       misho    23430:     # some people rename them; so instead we look at the file content.
                   23431:     # Grep'ing the first line is not enough: some people post-process
                   23432:     # each Makefile.in and add a new line on top of each file to say so.
                   23433:     # Grep'ing the whole file is not good either: AIX grep has a line
                   23434:     # limit of 2048, but all sed's we know have understand at least 4000.
                   23435:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   23436:       dirpart=`$as_dirname -- "$mf" ||
                   23437: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23438:         X"$mf" : 'X\(//\)[^/]' \| \
                   23439:         X"$mf" : 'X\(//\)$' \| \
                   23440:         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
                   23441: $as_echo X"$mf" |
                   23442:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   23443:            s//\1/
                   23444:            q
                   23445:          }
                   23446:          /^X\(\/\/\)[^/].*/{
                   23447:            s//\1/
                   23448:            q
                   23449:          }
                   23450:          /^X\(\/\/\)$/{
                   23451:            s//\1/
                   23452:            q
                   23453:          }
                   23454:          /^X\(\/\).*/{
                   23455:            s//\1/
                   23456:            q
                   23457:          }
                   23458:          s/.*/./; q'`
                   23459:     else
                   23460:       continue
                   23461:     fi
                   23462:     # Extract the definition of DEPDIR, am__include, and am__quote
1.1.1.4 ! misho    23463:     # from the Makefile without running 'make'.
1.1       misho    23464:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   23465:     test -z "$DEPDIR" && continue
                   23466:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   23467:     test -z "am__include" && continue
                   23468:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   23469:     # Find all dependency output files, they are included files with
                   23470:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   23471:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   23472:     # expansion.
                   23473:     for file in `sed -n "
                   23474:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.1.1.4 ! misho    23475:         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1.1       misho    23476:       # Make sure the directory exists.
                   23477:       test -f "$dirpart/$file" && continue
                   23478:       fdir=`$as_dirname -- "$file" ||
                   23479: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   23480:         X"$file" : 'X\(//\)[^/]' \| \
                   23481:         X"$file" : 'X\(//\)$' \| \
                   23482:         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
                   23483: $as_echo X"$file" |
                   23484:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   23485:            s//\1/
                   23486:            q
                   23487:          }
                   23488:          /^X\(\/\/\)[^/].*/{
                   23489:            s//\1/
                   23490:            q
                   23491:          }
                   23492:          /^X\(\/\/\)$/{
                   23493:            s//\1/
                   23494:            q
                   23495:          }
                   23496:          /^X\(\/\).*/{
                   23497:            s//\1/
                   23498:            q
                   23499:          }
                   23500:          s/.*/./; q'`
                   23501:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   23502:       # echo "creating $dirpart/$file"
                   23503:       echo '# dummy' > "$dirpart/$file"
                   23504:     done
                   23505:   done
                   23506: }
                   23507:  ;;
                   23508:     "libtool":C)
                   23509: 
                   23510:     # See if we are running on zsh, and set the options which allow our
                   23511:     # commands through without removal of \ escapes.
                   23512:     if test -n "${ZSH_VERSION+set}" ; then
                   23513:       setopt NO_GLOB_SUBST
                   23514:     fi
                   23515: 
                   23516:     cfgfile="${ofile}T"
                   23517:     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
                   23518:     $RM "$cfgfile"
                   23519: 
                   23520:     cat <<_LT_EOF >> "$cfgfile"
                   23521: #! $SHELL
                   23522: 
                   23523: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
                   23524: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
                   23525: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   23526: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
                   23527: #
                   23528: #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1.1.1.2   misho    23529: #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
                   23530: #                 Foundation, Inc.
1.1       misho    23531: #   Written by Gordon Matzigkeit, 1996
                   23532: #
                   23533: #   This file is part of GNU Libtool.
                   23534: #
                   23535: # GNU Libtool is free software; you can redistribute it and/or
                   23536: # modify it under the terms of the GNU General Public License as
                   23537: # published by the Free Software Foundation; either version 2 of
                   23538: # the License, or (at your option) any later version.
                   23539: #
                   23540: # As a special exception to the GNU General Public License,
                   23541: # if you distribute this file as part of a program or library that
                   23542: # is built using GNU Libtool, you may include this file under the
                   23543: # same distribution terms that you use for the rest of that program.
                   23544: #
                   23545: # GNU Libtool is distributed in the hope that it will be useful,
                   23546: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                   23547: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                   23548: # GNU General Public License for more details.
                   23549: #
                   23550: # You should have received a copy of the GNU General Public License
                   23551: # along with GNU Libtool; see the file COPYING.  If not, a copy
                   23552: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
                   23553: # obtained by writing to the Free Software Foundation, Inc.,
                   23554: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
                   23555: 
                   23556: 
                   23557: # The names of the tagged configurations supported by this script.
                   23558: available_tags=""
                   23559: 
                   23560: # ### BEGIN LIBTOOL CONFIG
                   23561: 
                   23562: # Which release of libtool.m4 was used?
                   23563: macro_version=$macro_version
                   23564: macro_revision=$macro_revision
                   23565: 
                   23566: # Whether or not to build shared libraries.
                   23567: build_libtool_libs=$enable_shared
                   23568: 
                   23569: # Whether or not to build static libraries.
                   23570: build_old_libs=$enable_static
                   23571: 
                   23572: # What type of objects to build.
                   23573: pic_mode=$pic_mode
                   23574: 
                   23575: # Whether or not to optimize for fast installation.
                   23576: fast_install=$enable_fast_install
                   23577: 
                   23578: # Shell to use when invoking shell scripts.
                   23579: SHELL=$lt_SHELL
                   23580: 
                   23581: # An echo program that protects backslashes.
                   23582: ECHO=$lt_ECHO
                   23583: 
1.1.1.2   misho    23584: # The PATH separator for the build system.
                   23585: PATH_SEPARATOR=$lt_PATH_SEPARATOR
                   23586: 
1.1       misho    23587: # The host system.
                   23588: host_alias=$host_alias
                   23589: host=$host
                   23590: host_os=$host_os
                   23591: 
                   23592: # The build system.
                   23593: build_alias=$build_alias
                   23594: build=$build
                   23595: build_os=$build_os
                   23596: 
                   23597: # A sed program that does not truncate output.
                   23598: SED=$lt_SED
                   23599: 
                   23600: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
                   23601: Xsed="\$SED -e 1s/^X//"
                   23602: 
                   23603: # A grep program that handles long lines.
                   23604: GREP=$lt_GREP
                   23605: 
                   23606: # An ERE matcher.
                   23607: EGREP=$lt_EGREP
                   23608: 
                   23609: # A literal string matcher.
                   23610: FGREP=$lt_FGREP
                   23611: 
                   23612: # A BSD- or MS-compatible name lister.
                   23613: NM=$lt_NM
                   23614: 
                   23615: # Whether we need soft or hard links.
                   23616: LN_S=$lt_LN_S
                   23617: 
                   23618: # What is the maximum length of a command?
                   23619: max_cmd_len=$max_cmd_len
                   23620: 
                   23621: # Object file suffix (normally "o").
                   23622: objext=$ac_objext
                   23623: 
                   23624: # Executable file suffix (normally "").
                   23625: exeext=$exeext
                   23626: 
                   23627: # whether the shell understands "unset".
                   23628: lt_unset=$lt_unset
                   23629: 
                   23630: # turn spaces into newlines.
                   23631: SP2NL=$lt_lt_SP2NL
                   23632: 
                   23633: # turn newlines into spaces.
                   23634: NL2SP=$lt_lt_NL2SP
                   23635: 
                   23636: # convert \$build file names to \$host format.
                   23637: to_host_file_cmd=$lt_cv_to_host_file_cmd
                   23638: 
                   23639: # convert \$build files to toolchain format.
                   23640: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
                   23641: 
                   23642: # An object symbol dumper.
                   23643: OBJDUMP=$lt_OBJDUMP
                   23644: 
                   23645: # Method to check whether dependent libraries are shared objects.
                   23646: deplibs_check_method=$lt_deplibs_check_method
                   23647: 
                   23648: # Command to use when deplibs_check_method = "file_magic".
                   23649: file_magic_cmd=$lt_file_magic_cmd
                   23650: 
                   23651: # How to find potential files when deplibs_check_method = "file_magic".
                   23652: file_magic_glob=$lt_file_magic_glob
                   23653: 
                   23654: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
                   23655: want_nocaseglob=$lt_want_nocaseglob
                   23656: 
                   23657: # DLL creation program.
                   23658: DLLTOOL=$lt_DLLTOOL
                   23659: 
                   23660: # Command to associate shared and link libraries.
                   23661: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
                   23662: 
                   23663: # The archiver.
                   23664: AR=$lt_AR
                   23665: 
                   23666: # Flags to create an archive.
                   23667: AR_FLAGS=$lt_AR_FLAGS
                   23668: 
                   23669: # How to feed a file listing to the archiver.
                   23670: archiver_list_spec=$lt_archiver_list_spec
                   23671: 
                   23672: # A symbol stripping program.
                   23673: STRIP=$lt_STRIP
                   23674: 
                   23675: # Commands used to install an old-style archive.
                   23676: RANLIB=$lt_RANLIB
                   23677: old_postinstall_cmds=$lt_old_postinstall_cmds
                   23678: old_postuninstall_cmds=$lt_old_postuninstall_cmds
                   23679: 
                   23680: # Whether to use a lock for old archive extraction.
                   23681: lock_old_archive_extraction=$lock_old_archive_extraction
                   23682: 
                   23683: # A C compiler.
                   23684: LTCC=$lt_CC
                   23685: 
                   23686: # LTCC compiler flags.
                   23687: LTCFLAGS=$lt_CFLAGS
                   23688: 
                   23689: # Take the output of nm and produce a listing of raw symbols and C names.
                   23690: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
                   23691: 
                   23692: # Transform the output of nm in a proper C declaration.
                   23693: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
                   23694: 
                   23695: # Transform the output of nm in a C name address pair.
                   23696: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
                   23697: 
                   23698: # Transform the output of nm in a C name address pair when lib prefix is needed.
                   23699: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
                   23700: 
                   23701: # Specify filename containing input files for \$NM.
                   23702: nm_file_list_spec=$lt_nm_file_list_spec
                   23703: 
                   23704: # The root where to search for dependent libraries,and in which our libraries should be installed.
                   23705: lt_sysroot=$lt_sysroot
                   23706: 
                   23707: # The name of the directory that contains temporary libtool files.
                   23708: objdir=$objdir
                   23709: 
                   23710: # Used to examine libraries when file_magic_cmd begins with "file".
                   23711: MAGIC_CMD=$MAGIC_CMD
                   23712: 
                   23713: # Must we lock files when doing compilation?
                   23714: need_locks=$lt_need_locks
                   23715: 
                   23716: # Manifest tool.
                   23717: MANIFEST_TOOL=$lt_MANIFEST_TOOL
                   23718: 
                   23719: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
                   23720: DSYMUTIL=$lt_DSYMUTIL
                   23721: 
                   23722: # Tool to change global to local symbols on Mac OS X.
                   23723: NMEDIT=$lt_NMEDIT
                   23724: 
                   23725: # Tool to manipulate fat objects and archives on Mac OS X.
                   23726: LIPO=$lt_LIPO
                   23727: 
                   23728: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
                   23729: OTOOL=$lt_OTOOL
                   23730: 
                   23731: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
                   23732: OTOOL64=$lt_OTOOL64
                   23733: 
                   23734: # Old archive suffix (normally "a").
                   23735: libext=$libext
                   23736: 
                   23737: # Shared library suffix (normally ".so").
                   23738: shrext_cmds=$lt_shrext_cmds
                   23739: 
                   23740: # The commands to extract the exported symbol list from a shared archive.
                   23741: extract_expsyms_cmds=$lt_extract_expsyms_cmds
                   23742: 
                   23743: # Variables whose values should be saved in libtool wrapper scripts and
                   23744: # restored at link time.
                   23745: variables_saved_for_relink=$lt_variables_saved_for_relink
                   23746: 
                   23747: # Do we need the "lib" prefix for modules?
                   23748: need_lib_prefix=$need_lib_prefix
                   23749: 
                   23750: # Do we need a version for libraries?
                   23751: need_version=$need_version
                   23752: 
                   23753: # Library versioning type.
                   23754: version_type=$version_type
                   23755: 
                   23756: # Shared library runtime path variable.
                   23757: runpath_var=$runpath_var
                   23758: 
                   23759: # Shared library path variable.
                   23760: shlibpath_var=$shlibpath_var
                   23761: 
                   23762: # Is shlibpath searched before the hard-coded library search path?
                   23763: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
                   23764: 
                   23765: # Format of library name prefix.
                   23766: libname_spec=$lt_libname_spec
                   23767: 
                   23768: # List of archive names.  First name is the real one, the rest are links.
                   23769: # The last name is the one that the linker finds with -lNAME
                   23770: library_names_spec=$lt_library_names_spec
                   23771: 
                   23772: # The coded name of the library, if different from the real name.
                   23773: soname_spec=$lt_soname_spec
                   23774: 
                   23775: # Permission mode override for installation of shared libraries.
                   23776: install_override_mode=$lt_install_override_mode
                   23777: 
                   23778: # Command to use after installation of a shared archive.
                   23779: postinstall_cmds=$lt_postinstall_cmds
                   23780: 
                   23781: # Command to use after uninstallation of a shared archive.
                   23782: postuninstall_cmds=$lt_postuninstall_cmds
                   23783: 
                   23784: # Commands used to finish a libtool library installation in a directory.
                   23785: finish_cmds=$lt_finish_cmds
                   23786: 
                   23787: # As "finish_cmds", except a single script fragment to be evaled but
                   23788: # not shown.
                   23789: finish_eval=$lt_finish_eval
                   23790: 
                   23791: # Whether we should hardcode library paths into libraries.
                   23792: hardcode_into_libs=$hardcode_into_libs
                   23793: 
                   23794: # Compile-time system search path for libraries.
                   23795: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
                   23796: 
                   23797: # Run-time system search path for libraries.
                   23798: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
                   23799: 
                   23800: # Whether dlopen is supported.
                   23801: dlopen_support=$enable_dlopen
                   23802: 
                   23803: # Whether dlopen of programs is supported.
                   23804: dlopen_self=$enable_dlopen_self
                   23805: 
                   23806: # Whether dlopen of statically linked programs is supported.
                   23807: dlopen_self_static=$enable_dlopen_self_static
                   23808: 
                   23809: # Commands to strip libraries.
                   23810: old_striplib=$lt_old_striplib
                   23811: striplib=$lt_striplib
                   23812: 
                   23813: 
                   23814: # The linker used to build libraries.
                   23815: LD=$lt_LD
                   23816: 
                   23817: # How to create reloadable object files.
                   23818: reload_flag=$lt_reload_flag
                   23819: reload_cmds=$lt_reload_cmds
                   23820: 
                   23821: # Commands used to build an old-style archive.
                   23822: old_archive_cmds=$lt_old_archive_cmds
                   23823: 
                   23824: # A language specific compiler.
                   23825: CC=$lt_compiler
                   23826: 
                   23827: # Is the compiler the GNU compiler?
                   23828: with_gcc=$GCC
                   23829: 
                   23830: # Compiler flag to turn off builtin functions.
                   23831: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
                   23832: 
                   23833: # Additional compiler flags for building library objects.
                   23834: pic_flag=$lt_lt_prog_compiler_pic
                   23835: 
                   23836: # How to pass a linker flag through the compiler.
                   23837: wl=$lt_lt_prog_compiler_wl
                   23838: 
                   23839: # Compiler flag to prevent dynamic linking.
                   23840: link_static_flag=$lt_lt_prog_compiler_static
                   23841: 
                   23842: # Does compiler simultaneously support -c and -o options?
                   23843: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
                   23844: 
                   23845: # Whether or not to add -lc for building shared libraries.
                   23846: build_libtool_need_lc=$archive_cmds_need_lc
                   23847: 
                   23848: # Whether or not to disallow shared libs when runtime libs are static.
                   23849: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
                   23850: 
                   23851: # Compiler flag to allow reflexive dlopens.
                   23852: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
                   23853: 
                   23854: # Compiler flag to generate shared objects directly from archives.
                   23855: whole_archive_flag_spec=$lt_whole_archive_flag_spec
                   23856: 
                   23857: # Whether the compiler copes with passing no objects directly.
                   23858: compiler_needs_object=$lt_compiler_needs_object
                   23859: 
                   23860: # Create an old-style archive from a shared archive.
                   23861: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
                   23862: 
                   23863: # Create a temporary old-style archive to link instead of a shared archive.
                   23864: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
                   23865: 
                   23866: # Commands used to build a shared archive.
                   23867: archive_cmds=$lt_archive_cmds
                   23868: archive_expsym_cmds=$lt_archive_expsym_cmds
                   23869: 
                   23870: # Commands used to build a loadable module if different from building
                   23871: # a shared archive.
                   23872: module_cmds=$lt_module_cmds
                   23873: module_expsym_cmds=$lt_module_expsym_cmds
                   23874: 
                   23875: # Whether we are building with GNU ld or not.
                   23876: with_gnu_ld=$lt_with_gnu_ld
                   23877: 
                   23878: # Flag that allows shared libraries with undefined symbols to be built.
                   23879: allow_undefined_flag=$lt_allow_undefined_flag
                   23880: 
                   23881: # Flag that enforces no undefined symbols.
                   23882: no_undefined_flag=$lt_no_undefined_flag
                   23883: 
                   23884: # Flag to hardcode \$libdir into a binary during linking.
                   23885: # This must work even if \$libdir does not exist
                   23886: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
                   23887: 
                   23888: # Whether we need a single "-rpath" flag with a separated argument.
                   23889: hardcode_libdir_separator=$lt_hardcode_libdir_separator
                   23890: 
                   23891: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
                   23892: # DIR into the resulting binary.
                   23893: hardcode_direct=$hardcode_direct
                   23894: 
                   23895: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
                   23896: # DIR into the resulting binary and the resulting library dependency is
                   23897: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
                   23898: # library is relocated.
                   23899: hardcode_direct_absolute=$hardcode_direct_absolute
                   23900: 
                   23901: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
                   23902: # into the resulting binary.
                   23903: hardcode_minus_L=$hardcode_minus_L
                   23904: 
                   23905: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
                   23906: # into the resulting binary.
                   23907: hardcode_shlibpath_var=$hardcode_shlibpath_var
                   23908: 
                   23909: # Set to "yes" if building a shared library automatically hardcodes DIR
                   23910: # into the library and all subsequent libraries and executables linked
                   23911: # against it.
                   23912: hardcode_automatic=$hardcode_automatic
                   23913: 
                   23914: # Set to yes if linker adds runtime paths of dependent libraries
                   23915: # to runtime path list.
                   23916: inherit_rpath=$inherit_rpath
                   23917: 
                   23918: # Whether libtool must link a program against all its dependency libraries.
                   23919: link_all_deplibs=$link_all_deplibs
                   23920: 
                   23921: # Set to "yes" if exported symbols are required.
                   23922: always_export_symbols=$always_export_symbols
                   23923: 
                   23924: # The commands to list exported symbols.
                   23925: export_symbols_cmds=$lt_export_symbols_cmds
                   23926: 
                   23927: # Symbols that should not be listed in the preloaded symbols.
                   23928: exclude_expsyms=$lt_exclude_expsyms
                   23929: 
                   23930: # Symbols that must always be exported.
                   23931: include_expsyms=$lt_include_expsyms
                   23932: 
                   23933: # Commands necessary for linking programs (against libraries) with templates.
                   23934: prelink_cmds=$lt_prelink_cmds
                   23935: 
                   23936: # Commands necessary for finishing linking programs.
                   23937: postlink_cmds=$lt_postlink_cmds
                   23938: 
                   23939: # Specify filename containing input files.
                   23940: file_list_spec=$lt_file_list_spec
                   23941: 
                   23942: # How to hardcode a shared library path into an executable.
                   23943: hardcode_action=$hardcode_action
                   23944: 
                   23945: # ### END LIBTOOL CONFIG
                   23946: 
                   23947: _LT_EOF
                   23948: 
                   23949:   case $host_os in
                   23950:   aix3*)
                   23951:     cat <<\_LT_EOF >> "$cfgfile"
                   23952: # AIX sometimes has problems with the GCC collect2 program.  For some
                   23953: # reason, if we set the COLLECT_NAMES environment variable, the problems
                   23954: # vanish in a puff of smoke.
                   23955: if test "X${COLLECT_NAMES+set}" != Xset; then
                   23956:   COLLECT_NAMES=
                   23957:   export COLLECT_NAMES
                   23958: fi
                   23959: _LT_EOF
                   23960:     ;;
                   23961:   esac
                   23962: 
                   23963: 
                   23964: ltmain="$ac_aux_dir/ltmain.sh"
                   23965: 
                   23966: 
                   23967:   # We use sed instead of cat because bash on DJGPP gets confused if
                   23968:   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
                   23969:   # text mode, it properly converts lines to CR/LF.  This bash problem
                   23970:   # is reportedly fixed, but why not run on old versions too?
                   23971:   sed '$q' "$ltmain" >> "$cfgfile" \
                   23972:      || (rm -f "$cfgfile"; exit 1)
                   23973: 
                   23974:   if test x"$xsi_shell" = xyes; then
                   23975:   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
                   23976: func_dirname ()\
                   23977: {\
                   23978: \    case ${1} in\
                   23979: \      */*) func_dirname_result="${1%/*}${2}" ;;\
                   23980: \      *  ) func_dirname_result="${3}" ;;\
                   23981: \    esac\
                   23982: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
                   23983:   && mv -f "$cfgfile.tmp" "$cfgfile" \
                   23984:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   23985: test 0 -eq $? || _lt_function_replace_fail=:
                   23986: 
                   23987: 
                   23988:   sed -e '/^func_basename ()$/,/^} # func_basename /c\
                   23989: func_basename ()\
                   23990: {\
                   23991: \    func_basename_result="${1##*/}"\
                   23992: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
                   23993:   && mv -f "$cfgfile.tmp" "$cfgfile" \
                   23994:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   23995: test 0 -eq $? || _lt_function_replace_fail=:
                   23996: 
                   23997: 
                   23998:   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
                   23999: func_dirname_and_basename ()\
                   24000: {\
                   24001: \    case ${1} in\
                   24002: \      */*) func_dirname_result="${1%/*}${2}" ;;\
                   24003: \      *  ) func_dirname_result="${3}" ;;\
                   24004: \    esac\
                   24005: \    func_basename_result="${1##*/}"\
                   24006: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
                   24007:   && mv -f "$cfgfile.tmp" "$cfgfile" \
                   24008:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   24009: test 0 -eq $? || _lt_function_replace_fail=:
                   24010: 
                   24011: 
                   24012:   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
                   24013: func_stripname ()\
                   24014: {\
                   24015: \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
                   24016: \    # positional parameters, so assign one to ordinary parameter first.\
                   24017: \    func_stripname_result=${3}\
                   24018: \    func_stripname_result=${func_stripname_result#"${1}"}\
                   24019: \    func_stripname_result=${func_stripname_result%"${2}"}\
                   24020: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
                   24021:   && mv -f "$cfgfile.tmp" "$cfgfile" \
                   24022:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   24023: test 0 -eq $? || _lt_function_replace_fail=:
                   24024: 
                   24025: 
                   24026:   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
                   24027: func_split_long_opt ()\
                   24028: {\
                   24029: \    func_split_long_opt_name=${1%%=*}\
                   24030: \    func_split_long_opt_arg=${1#*=}\
                   24031: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
                   24032:   && mv -f "$cfgfile.tmp" "$cfgfile" \
                   24033:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   24034: test 0 -eq $? || _lt_function_replace_fail=:
                   24035: 
                   24036: 
                   24037:   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
                   24038: func_split_short_opt ()\
                   24039: {\
                   24040: \    func_split_short_opt_arg=${1#??}\
                   24041: \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
                   24042: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
                   24043:   && mv -f "$cfgfile.tmp" "$cfgfile" \
                   24044:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   24045: test 0 -eq $? || _lt_function_replace_fail=:
                   24046: 
                   24047: 
                   24048:   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
                   24049: func_lo2o ()\
                   24050: {\
                   24051: \    case ${1} in\
                   24052: \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
                   24053: \      *)    func_lo2o_result=${1} ;;\
                   24054: \    esac\
                   24055: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
                   24056:   && mv -f "$cfgfile.tmp" "$cfgfile" \
                   24057:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   24058: test 0 -eq $? || _lt_function_replace_fail=:
                   24059: 
                   24060: 
                   24061:   sed -e '/^func_xform ()$/,/^} # func_xform /c\
                   24062: func_xform ()\
                   24063: {\
                   24064:     func_xform_result=${1%.*}.lo\
                   24065: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
                   24066:   && mv -f "$cfgfile.tmp" "$cfgfile" \
                   24067:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   24068: test 0 -eq $? || _lt_function_replace_fail=:
                   24069: 
                   24070: 
                   24071:   sed -e '/^func_arith ()$/,/^} # func_arith /c\
                   24072: func_arith ()\
                   24073: {\
                   24074:     func_arith_result=$(( $* ))\
                   24075: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
                   24076:   && mv -f "$cfgfile.tmp" "$cfgfile" \
                   24077:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   24078: test 0 -eq $? || _lt_function_replace_fail=:
                   24079: 
                   24080: 
                   24081:   sed -e '/^func_len ()$/,/^} # func_len /c\
                   24082: func_len ()\
                   24083: {\
                   24084:     func_len_result=${#1}\
                   24085: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
                   24086:   && mv -f "$cfgfile.tmp" "$cfgfile" \
                   24087:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   24088: test 0 -eq $? || _lt_function_replace_fail=:
                   24089: 
                   24090: fi
                   24091: 
                   24092: if test x"$lt_shell_append" = xyes; then
                   24093:   sed -e '/^func_append ()$/,/^} # func_append /c\
                   24094: func_append ()\
                   24095: {\
                   24096:     eval "${1}+=\\${2}"\
                   24097: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
                   24098:   && mv -f "$cfgfile.tmp" "$cfgfile" \
                   24099:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   24100: test 0 -eq $? || _lt_function_replace_fail=:
                   24101: 
                   24102: 
                   24103:   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
                   24104: func_append_quoted ()\
                   24105: {\
                   24106: \    func_quote_for_eval "${2}"\
                   24107: \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
                   24108: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
                   24109:   && mv -f "$cfgfile.tmp" "$cfgfile" \
                   24110:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   24111: test 0 -eq $? || _lt_function_replace_fail=:
                   24112: 
                   24113: 
                   24114:   # Save a `func_append' function call where possible by direct use of '+='
                   24115:   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
                   24116:     && mv -f "$cfgfile.tmp" "$cfgfile" \
                   24117:       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   24118:   test 0 -eq $? || _lt_function_replace_fail=:
                   24119: else
                   24120:   # Save a `func_append' function call even when '+=' is not available
                   24121:   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
                   24122:     && mv -f "$cfgfile.tmp" "$cfgfile" \
                   24123:       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
                   24124:   test 0 -eq $? || _lt_function_replace_fail=:
                   24125: fi
                   24126: 
                   24127: if test x"$_lt_function_replace_fail" = x":"; then
                   24128:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
                   24129: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
                   24130: fi
                   24131: 
                   24132: 
                   24133:    mv -f "$cfgfile" "$ofile" ||
                   24134:     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
                   24135:   chmod +x "$ofile"
                   24136: 
                   24137:  ;;
                   24138:     "vtysh/extract.pl":F) chmod +x vtysh/extract.pl ;;
                   24139: 
                   24140:   esac
                   24141: done # for ac_tag
                   24142: 
                   24143: 
                   24144: as_fn_exit 0
                   24145: _ACEOF
                   24146: ac_clean_files=$ac_clean_files_save
                   24147: 
                   24148: test $ac_write_fail = 0 ||
                   24149:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
                   24150: 
                   24151: 
                   24152: # configure is writing to config.log, and then calls config.status.
                   24153: # config.status does its own redirection, appending to config.log.
                   24154: # Unfortunately, on DOS this fails, as config.log is still kept open
                   24155: # by configure, so config.status won't be able to write to it; its
                   24156: # output is simply discarded.  So we exec the FD to /dev/null,
                   24157: # effectively closing config.log, so it can be properly (re)opened and
                   24158: # appended to by config.status.  When coming back to configure, we
                   24159: # need to make the FD available again.
                   24160: if test "$no_create" != yes; then
                   24161:   ac_cs_success=:
                   24162:   ac_config_status_args=
                   24163:   test "$silent" = yes &&
                   24164:     ac_config_status_args="$ac_config_status_args --quiet"
                   24165:   exec 5>/dev/null
                   24166:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   24167:   exec 5>>config.log
                   24168:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   24169:   # would make configure fail if this is the last instruction.
                   24170:   $ac_cs_success || as_fn_exit 1
                   24171: fi
                   24172: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   24173:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   24174: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   24175: fi
                   24176: 
                   24177: 
                   24178: echo "
                   24179: Quagga configuration
                   24180: --------------------
                   24181: quagga version          : ${PACKAGE_VERSION}
1.1.1.4 ! misho    24182: host operating system   : ${host_os}
1.1       misho    24183: source code location    : ${srcdir}
                   24184: compiler                : ${CC}
                   24185: compiler flags          : ${CFLAGS}
                   24186: make                    : ${MAKE-make}
1.1.1.4 ! misho    24187: includes                : ${INCLUDES}
1.1       misho    24188: linker flags            : ${LDFLAGS} ${LIBS} ${LIBCAP} ${LIBREADLINE} ${LIBM}
                   24189: state file directory    : ${quagga_statedir}
                   24190: config file directory   : `eval echo \`echo ${sysconfdir}\``
                   24191: example directory       : `eval echo \`echo ${exampledir}\``
                   24192: user to run as         : ${enable_user}
                   24193: group to run as                : ${enable_group}
                   24194: group for vty sockets  : ${enable_vty_group}
                   24195: config file mask        : ${enable_configfile_mask}
                   24196: log file mask           : ${enable_logfile_mask}
                   24197: 
                   24198: The above user and group must have read/write access to the state file
                   24199: directory and to the config files in the config file directory."
                   24200: 
                   24201: if test x"$quagga_cv_gnu_make" = x"no"; then echo "
                   24202: Warning: The ${MAKE-make} programme detected, either in your path or
                   24203: via the MAKE variable, is not GNU Make. GNU make may be installed as
                   24204: gmake on some systems. and is required to complete a build of Quagga
                   24205: " > /dev/stderr
                   24206: fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>