Home | History | Annotate | Line # | Download | only in dist
configure revision 1.3
      1  1.1  christos #! /bin/sh
      2  1.1  christos # From configure.in Revision: 1.204 .
      3  1.1  christos # Guess values for system-dependent variables and create Makefiles.
      4  1.1  christos # Generated by GNU Autoconf 2.61.
      5  1.1  christos #
      6  1.1  christos # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      7  1.1  christos # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
      8  1.1  christos # This configure script is free software; the Free Software Foundation
      9  1.1  christos # gives unlimited permission to copy, distribute and modify it.
     10  1.1  christos ## --------------------- ##
     11  1.1  christos ## M4sh Initialization.  ##
     12  1.1  christos ## --------------------- ##
     13  1.1  christos 
     14  1.1  christos # Be more Bourne compatible
     15  1.1  christos DUALCASE=1; export DUALCASE # for MKS sh
     16  1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     17  1.1  christos   emulate sh
     18  1.1  christos   NULLCMD=:
     19  1.1  christos   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     20  1.1  christos   # is contrary to our usage.  Disable this feature.
     21  1.1  christos   alias -g '${1+"$@"}'='"$@"'
     22  1.1  christos   setopt NO_GLOB_SUBST
     23  1.1  christos else
     24  1.1  christos   case `(set -o) 2>/dev/null` in
     25  1.1  christos   *posix*) set -o posix ;;
     26  1.1  christos esac
     27  1.1  christos 
     28  1.1  christos fi
     29  1.1  christos 
     30  1.1  christos 
     31  1.1  christos 
     32  1.1  christos 
     33  1.1  christos # PATH needs CR
     34  1.1  christos # Avoid depending upon Character Ranges.
     35  1.1  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     36  1.1  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     37  1.1  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     38  1.1  christos as_cr_digits='0123456789'
     39  1.1  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
     40  1.1  christos 
     41  1.1  christos # The user is always right.
     42  1.1  christos if test "${PATH_SEPARATOR+set}" != set; then
     43  1.1  christos   echo "#! /bin/sh" >conf$$.sh
     44  1.1  christos   echo  "exit 0"   >>conf$$.sh
     45  1.1  christos   chmod +x conf$$.sh
     46  1.1  christos   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     47  1.1  christos     PATH_SEPARATOR=';'
     48  1.1  christos   else
     49  1.1  christos     PATH_SEPARATOR=:
     50  1.1  christos   fi
     51  1.1  christos   rm -f conf$$.sh
     52  1.1  christos fi
     53  1.1  christos 
     54  1.1  christos # Support unset when possible.
     55  1.1  christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     56  1.1  christos   as_unset=unset
     57  1.1  christos else
     58  1.1  christos   as_unset=false
     59  1.1  christos fi
     60  1.1  christos 
     61  1.1  christos 
     62  1.1  christos # IFS
     63  1.1  christos # We need space, tab and new line, in precisely that order.  Quoting is
     64  1.1  christos # there to prevent editors from complaining about space-tab.
     65  1.1  christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     66  1.1  christos # splitting by setting IFS to empty value.)
     67  1.1  christos as_nl='
     68  1.1  christos '
     69  1.1  christos IFS=" ""	$as_nl"
     70  1.1  christos 
     71  1.1  christos # Find who we are.  Look in the path if we contain no directory separator.
     72  1.1  christos case $0 in
     73  1.1  christos   *[\\/]* ) as_myself=$0 ;;
     74  1.1  christos   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     75  1.1  christos for as_dir in $PATH
     76  1.1  christos do
     77  1.1  christos   IFS=$as_save_IFS
     78  1.1  christos   test -z "$as_dir" && as_dir=.
     79  1.1  christos   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     80  1.1  christos done
     81  1.1  christos IFS=$as_save_IFS
     82  1.1  christos 
     83  1.1  christos      ;;
     84  1.1  christos esac
     85  1.1  christos # We did not find ourselves, most probably we were run as `sh COMMAND'
     86  1.1  christos # in which case we are not to be found in the path.
     87  1.1  christos if test "x$as_myself" = x; then
     88  1.1  christos   as_myself=$0
     89  1.1  christos fi
     90  1.1  christos if test ! -f "$as_myself"; then
     91  1.1  christos   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     92  1.1  christos   { (exit 1); exit 1; }
     93  1.1  christos fi
     94  1.1  christos 
     95  1.1  christos # Work around bugs in pre-3.0 UWIN ksh.
     96  1.1  christos for as_var in ENV MAIL MAILPATH
     97  1.1  christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     98  1.1  christos done
     99  1.1  christos PS1='$ '
    100  1.1  christos PS2='> '
    101  1.1  christos PS4='+ '
    102  1.1  christos 
    103  1.1  christos # NLS nuisances.
    104  1.1  christos for as_var in \
    105  1.1  christos   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    106  1.1  christos   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    107  1.1  christos   LC_TELEPHONE LC_TIME
    108  1.1  christos do
    109  1.1  christos   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    110  1.1  christos     eval $as_var=C; export $as_var
    111  1.1  christos   else
    112  1.1  christos     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    113  1.1  christos   fi
    114  1.1  christos done
    115  1.1  christos 
    116  1.1  christos # Required to use basename.
    117  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1 &&
    118  1.1  christos    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    119  1.1  christos   as_expr=expr
    120  1.1  christos else
    121  1.1  christos   as_expr=false
    122  1.1  christos fi
    123  1.1  christos 
    124  1.1  christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    125  1.1  christos   as_basename=basename
    126  1.1  christos else
    127  1.1  christos   as_basename=false
    128  1.1  christos fi
    129  1.1  christos 
    130  1.1  christos 
    131  1.1  christos # Name of the executable.
    132  1.1  christos as_me=`$as_basename -- "$0" ||
    133  1.1  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    134  1.1  christos 	 X"$0" : 'X\(//\)$' \| \
    135  1.1  christos 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    136  1.1  christos echo X/"$0" |
    137  1.1  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{
    138  1.1  christos 	    s//\1/
    139  1.1  christos 	    q
    140  1.1  christos 	  }
    141  1.1  christos 	  /^X\/\(\/\/\)$/{
    142  1.1  christos 	    s//\1/
    143  1.1  christos 	    q
    144  1.1  christos 	  }
    145  1.1  christos 	  /^X\/\(\/\).*/{
    146  1.1  christos 	    s//\1/
    147  1.1  christos 	    q
    148  1.1  christos 	  }
    149  1.1  christos 	  s/.*/./; q'`
    150  1.1  christos 
    151  1.1  christos # CDPATH.
    152  1.1  christos $as_unset CDPATH
    153  1.1  christos 
    154  1.1  christos 
    155  1.1  christos if test "x$CONFIG_SHELL" = x; then
    156  1.1  christos   if (eval ":") 2>/dev/null; then
    157  1.1  christos   as_have_required=yes
    158  1.1  christos else
    159  1.1  christos   as_have_required=no
    160  1.1  christos fi
    161  1.1  christos 
    162  1.1  christos   if test $as_have_required = yes && 	 (eval ":
    163  1.1  christos (as_func_return () {
    164  1.1  christos   (exit \$1)
    165  1.1  christos }
    166  1.1  christos as_func_success () {
    167  1.1  christos   as_func_return 0
    168  1.1  christos }
    169  1.1  christos as_func_failure () {
    170  1.1  christos   as_func_return 1
    171  1.1  christos }
    172  1.1  christos as_func_ret_success () {
    173  1.1  christos   return 0
    174  1.1  christos }
    175  1.1  christos as_func_ret_failure () {
    176  1.1  christos   return 1
    177  1.1  christos }
    178  1.1  christos 
    179  1.1  christos exitcode=0
    180  1.1  christos if as_func_success; then
    181  1.1  christos   :
    182  1.1  christos else
    183  1.1  christos   exitcode=1
    184  1.1  christos   echo as_func_success failed.
    185  1.1  christos fi
    186  1.1  christos 
    187  1.1  christos if as_func_failure; then
    188  1.1  christos   exitcode=1
    189  1.1  christos   echo as_func_failure succeeded.
    190  1.1  christos fi
    191  1.1  christos 
    192  1.1  christos if as_func_ret_success; then
    193  1.1  christos   :
    194  1.1  christos else
    195  1.1  christos   exitcode=1
    196  1.1  christos   echo as_func_ret_success failed.
    197  1.1  christos fi
    198  1.1  christos 
    199  1.1  christos if as_func_ret_failure; then
    200  1.1  christos   exitcode=1
    201  1.1  christos   echo as_func_ret_failure succeeded.
    202  1.1  christos fi
    203  1.1  christos 
    204  1.1  christos if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    205  1.1  christos   :
    206  1.1  christos else
    207  1.1  christos   exitcode=1
    208  1.1  christos   echo positional parameters were not saved.
    209  1.1  christos fi
    210  1.1  christos 
    211  1.1  christos test \$exitcode = 0) || { (exit 1); exit 1; }
    212  1.1  christos 
    213  1.1  christos (
    214  1.1  christos   as_lineno_1=\$LINENO
    215  1.1  christos   as_lineno_2=\$LINENO
    216  1.1  christos   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    217  1.1  christos   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    218  1.1  christos ") 2> /dev/null; then
    219  1.1  christos   :
    220  1.1  christos else
    221  1.1  christos   as_candidate_shells=
    222  1.1  christos     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    223  1.1  christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    224  1.1  christos do
    225  1.1  christos   IFS=$as_save_IFS
    226  1.1  christos   test -z "$as_dir" && as_dir=.
    227  1.1  christos   case $as_dir in
    228  1.1  christos 	 /*)
    229  1.1  christos 	   for as_base in sh bash ksh sh5; do
    230  1.1  christos 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    231  1.1  christos 	   done;;
    232  1.1  christos        esac
    233  1.1  christos done
    234  1.1  christos IFS=$as_save_IFS
    235  1.1  christos 
    236  1.1  christos 
    237  1.1  christos       for as_shell in $as_candidate_shells $SHELL; do
    238  1.1  christos 	 # Try only shells that exist, to save several forks.
    239  1.1  christos 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    240  1.1  christos 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
    241  1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    242  1.1  christos   emulate sh
    243  1.1  christos   NULLCMD=:
    244  1.1  christos   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    245  1.1  christos   # is contrary to our usage.  Disable this feature.
    246  1.1  christos   alias -g '${1+"$@"}'='"$@"'
    247  1.1  christos   setopt NO_GLOB_SUBST
    248  1.1  christos else
    249  1.1  christos   case `(set -o) 2>/dev/null` in
    250  1.1  christos   *posix*) set -o posix ;;
    251  1.1  christos esac
    252  1.1  christos 
    253  1.1  christos fi
    254  1.1  christos 
    255  1.1  christos 
    256  1.1  christos :
    257  1.1  christos _ASEOF
    258  1.1  christos }; then
    259  1.1  christos   CONFIG_SHELL=$as_shell
    260  1.1  christos 	       as_have_required=yes
    261  1.1  christos 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
    262  1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    263  1.1  christos   emulate sh
    264  1.1  christos   NULLCMD=:
    265  1.1  christos   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    266  1.1  christos   # is contrary to our usage.  Disable this feature.
    267  1.1  christos   alias -g '${1+"$@"}'='"$@"'
    268  1.1  christos   setopt NO_GLOB_SUBST
    269  1.1  christos else
    270  1.1  christos   case `(set -o) 2>/dev/null` in
    271  1.1  christos   *posix*) set -o posix ;;
    272  1.1  christos esac
    273  1.1  christos 
    274  1.1  christos fi
    275  1.1  christos 
    276  1.1  christos 
    277  1.1  christos :
    278  1.1  christos (as_func_return () {
    279  1.1  christos   (exit $1)
    280  1.1  christos }
    281  1.1  christos as_func_success () {
    282  1.1  christos   as_func_return 0
    283  1.1  christos }
    284  1.1  christos as_func_failure () {
    285  1.1  christos   as_func_return 1
    286  1.1  christos }
    287  1.1  christos as_func_ret_success () {
    288  1.1  christos   return 0
    289  1.1  christos }
    290  1.1  christos as_func_ret_failure () {
    291  1.1  christos   return 1
    292  1.1  christos }
    293  1.1  christos 
    294  1.1  christos exitcode=0
    295  1.1  christos if as_func_success; then
    296  1.1  christos   :
    297  1.1  christos else
    298  1.1  christos   exitcode=1
    299  1.1  christos   echo as_func_success failed.
    300  1.1  christos fi
    301  1.1  christos 
    302  1.1  christos if as_func_failure; then
    303  1.1  christos   exitcode=1
    304  1.1  christos   echo as_func_failure succeeded.
    305  1.1  christos fi
    306  1.1  christos 
    307  1.1  christos if as_func_ret_success; then
    308  1.1  christos   :
    309  1.1  christos else
    310  1.1  christos   exitcode=1
    311  1.1  christos   echo as_func_ret_success failed.
    312  1.1  christos fi
    313  1.1  christos 
    314  1.1  christos if as_func_ret_failure; then
    315  1.1  christos   exitcode=1
    316  1.1  christos   echo as_func_ret_failure succeeded.
    317  1.1  christos fi
    318  1.1  christos 
    319  1.1  christos if ( set x; as_func_ret_success y && test x = "$1" ); then
    320  1.1  christos   :
    321  1.1  christos else
    322  1.1  christos   exitcode=1
    323  1.1  christos   echo positional parameters were not saved.
    324  1.1  christos fi
    325  1.1  christos 
    326  1.1  christos test $exitcode = 0) || { (exit 1); exit 1; }
    327  1.1  christos 
    328  1.1  christos (
    329  1.1  christos   as_lineno_1=$LINENO
    330  1.1  christos   as_lineno_2=$LINENO
    331  1.1  christos   test "x$as_lineno_1" != "x$as_lineno_2" &&
    332  1.1  christos   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    333  1.1  christos 
    334  1.1  christos _ASEOF
    335  1.1  christos }; then
    336  1.1  christos   break
    337  1.1  christos fi
    338  1.1  christos 
    339  1.1  christos fi
    340  1.1  christos 
    341  1.1  christos       done
    342  1.1  christos 
    343  1.1  christos       if test "x$CONFIG_SHELL" != x; then
    344  1.1  christos   for as_var in BASH_ENV ENV
    345  1.1  christos         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    346  1.1  christos         done
    347  1.1  christos         export CONFIG_SHELL
    348  1.1  christos         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    349  1.1  christos fi
    350  1.1  christos 
    351  1.1  christos 
    352  1.1  christos     if test $as_have_required = no; then
    353  1.1  christos   echo This script requires a shell more modern than all the
    354  1.1  christos       echo shells that I found on your system.  Please install a
    355  1.1  christos       echo modern shell, or manually run the script under such a
    356  1.1  christos       echo shell if you do have one.
    357  1.1  christos       { (exit 1); exit 1; }
    358  1.1  christos fi
    359  1.1  christos 
    360  1.1  christos 
    361  1.1  christos fi
    362  1.1  christos 
    363  1.1  christos fi
    364  1.1  christos 
    365  1.1  christos 
    366  1.1  christos 
    367  1.1  christos (eval "as_func_return () {
    368  1.1  christos   (exit \$1)
    369  1.1  christos }
    370  1.1  christos as_func_success () {
    371  1.1  christos   as_func_return 0
    372  1.1  christos }
    373  1.1  christos as_func_failure () {
    374  1.1  christos   as_func_return 1
    375  1.1  christos }
    376  1.1  christos as_func_ret_success () {
    377  1.1  christos   return 0
    378  1.1  christos }
    379  1.1  christos as_func_ret_failure () {
    380  1.1  christos   return 1
    381  1.1  christos }
    382  1.1  christos 
    383  1.1  christos exitcode=0
    384  1.1  christos if as_func_success; then
    385  1.1  christos   :
    386  1.1  christos else
    387  1.1  christos   exitcode=1
    388  1.1  christos   echo as_func_success failed.
    389  1.1  christos fi
    390  1.1  christos 
    391  1.1  christos if as_func_failure; then
    392  1.1  christos   exitcode=1
    393  1.1  christos   echo as_func_failure succeeded.
    394  1.1  christos fi
    395  1.1  christos 
    396  1.1  christos if as_func_ret_success; then
    397  1.1  christos   :
    398  1.1  christos else
    399  1.1  christos   exitcode=1
    400  1.1  christos   echo as_func_ret_success failed.
    401  1.1  christos fi
    402  1.1  christos 
    403  1.1  christos if as_func_ret_failure; then
    404  1.1  christos   exitcode=1
    405  1.1  christos   echo as_func_ret_failure succeeded.
    406  1.1  christos fi
    407  1.1  christos 
    408  1.1  christos if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    409  1.1  christos   :
    410  1.1  christos else
    411  1.1  christos   exitcode=1
    412  1.1  christos   echo positional parameters were not saved.
    413  1.1  christos fi
    414  1.1  christos 
    415  1.1  christos test \$exitcode = 0") || {
    416  1.1  christos   echo No shell found that supports shell functions.
    417  1.1  christos   echo Please tell autoconf@gnu.org about your system,
    418  1.1  christos   echo including any error possibly output before this
    419  1.1  christos   echo message
    420  1.1  christos }
    421  1.1  christos 
    422  1.1  christos 
    423  1.1  christos 
    424  1.1  christos   as_lineno_1=$LINENO
    425  1.1  christos   as_lineno_2=$LINENO
    426  1.1  christos   test "x$as_lineno_1" != "x$as_lineno_2" &&
    427  1.1  christos   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    428  1.1  christos 
    429  1.1  christos   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    430  1.1  christos   # uniformly replaced by the line number.  The first 'sed' inserts a
    431  1.1  christos   # line-number line after each line using $LINENO; the second 'sed'
    432  1.1  christos   # does the real work.  The second script uses 'N' to pair each
    433  1.1  christos   # line-number line with the line containing $LINENO, and appends
    434  1.1  christos   # trailing '-' during substitution so that $LINENO is not a special
    435  1.1  christos   # case at line end.
    436  1.1  christos   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    437  1.1  christos   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    438  1.1  christos   # E. McMahon (1931-1989) for sed's syntax.  :-)
    439  1.1  christos   sed -n '
    440  1.1  christos     p
    441  1.1  christos     /[$]LINENO/=
    442  1.1  christos   ' <$as_myself |
    443  1.1  christos     sed '
    444  1.1  christos       s/[$]LINENO.*/&-/
    445  1.1  christos       t lineno
    446  1.1  christos       b
    447  1.1  christos       :lineno
    448  1.1  christos       N
    449  1.1  christos       :loop
    450  1.1  christos       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    451  1.1  christos       t loop
    452  1.1  christos       s/-\n.*//
    453  1.1  christos     ' >$as_me.lineno &&
    454  1.1  christos   chmod +x "$as_me.lineno" ||
    455  1.1  christos     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    456  1.1  christos    { (exit 1); exit 1; }; }
    457  1.1  christos 
    458  1.1  christos   # Don't try to exec as it changes $[0], causing all sort of problems
    459  1.1  christos   # (the dirname of $[0] is not the place where we might find the
    460  1.1  christos   # original and so on.  Autoconf is especially sensitive to this).
    461  1.1  christos   . "./$as_me.lineno"
    462  1.1  christos   # Exit status is that of the last command.
    463  1.1  christos   exit
    464  1.1  christos }
    465  1.1  christos 
    466  1.1  christos 
    467  1.1  christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    468  1.1  christos   as_dirname=dirname
    469  1.1  christos else
    470  1.1  christos   as_dirname=false
    471  1.1  christos fi
    472  1.1  christos 
    473  1.1  christos ECHO_C= ECHO_N= ECHO_T=
    474  1.1  christos case `echo -n x` in
    475  1.1  christos -n*)
    476  1.1  christos   case `echo 'x\c'` in
    477  1.1  christos   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    478  1.1  christos   *)   ECHO_C='\c';;
    479  1.1  christos   esac;;
    480  1.1  christos *)
    481  1.1  christos   ECHO_N='-n';;
    482  1.1  christos esac
    483  1.1  christos 
    484  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1 &&
    485  1.1  christos    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    486  1.1  christos   as_expr=expr
    487  1.1  christos else
    488  1.1  christos   as_expr=false
    489  1.1  christos fi
    490  1.1  christos 
    491  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
    492  1.1  christos if test -d conf$$.dir; then
    493  1.1  christos   rm -f conf$$.dir/conf$$.file
    494  1.1  christos else
    495  1.1  christos   rm -f conf$$.dir
    496  1.1  christos   mkdir conf$$.dir
    497  1.1  christos fi
    498  1.1  christos echo >conf$$.file
    499  1.1  christos if ln -s conf$$.file conf$$ 2>/dev/null; then
    500  1.1  christos   as_ln_s='ln -s'
    501  1.1  christos   # ... but there are two gotchas:
    502  1.1  christos   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    503  1.1  christos   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    504  1.1  christos   # In both cases, we have to default to `cp -p'.
    505  1.1  christos   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    506  1.1  christos     as_ln_s='cp -p'
    507  1.1  christos elif ln conf$$.file conf$$ 2>/dev/null; then
    508  1.1  christos   as_ln_s=ln
    509  1.1  christos else
    510  1.1  christos   as_ln_s='cp -p'
    511  1.1  christos fi
    512  1.1  christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    513  1.1  christos rmdir conf$$.dir 2>/dev/null
    514  1.1  christos 
    515  1.1  christos if mkdir -p . 2>/dev/null; then
    516  1.1  christos   as_mkdir_p=:
    517  1.1  christos else
    518  1.1  christos   test -d ./-p && rmdir ./-p
    519  1.1  christos   as_mkdir_p=false
    520  1.1  christos fi
    521  1.1  christos 
    522  1.1  christos if test -x / >/dev/null 2>&1; then
    523  1.1  christos   as_test_x='test -x'
    524  1.1  christos else
    525  1.1  christos   if ls -dL / >/dev/null 2>&1; then
    526  1.1  christos     as_ls_L_option=L
    527  1.1  christos   else
    528  1.1  christos     as_ls_L_option=
    529  1.1  christos   fi
    530  1.1  christos   as_test_x='
    531  1.1  christos     eval sh -c '\''
    532  1.1  christos       if test -d "$1"; then
    533  1.1  christos         test -d "$1/.";
    534  1.1  christos       else
    535  1.1  christos 	case $1 in
    536  1.1  christos         -*)set "./$1";;
    537  1.1  christos 	esac;
    538  1.1  christos 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
    539  1.1  christos 	???[sx]*):;;*)false;;esac;fi
    540  1.1  christos     '\'' sh
    541  1.1  christos   '
    542  1.1  christos fi
    543  1.1  christos as_executable_p=$as_test_x
    544  1.1  christos 
    545  1.1  christos # Sed expression to map a string onto a valid CPP name.
    546  1.1  christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    547  1.1  christos 
    548  1.1  christos # Sed expression to map a string onto a valid variable name.
    549  1.1  christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    550  1.1  christos 
    551  1.1  christos 
    552  1.1  christos 
    553  1.1  christos exec 7<&0 </dev/null 6>&1
    554  1.1  christos 
    555  1.1  christos # Name of the host.
    556  1.1  christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    557  1.1  christos # so uname gets run too.
    558  1.1  christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    559  1.1  christos 
    560  1.1  christos #
    561  1.1  christos # Initializations.
    562  1.1  christos #
    563  1.1  christos ac_default_prefix=/usr/local
    564  1.1  christos ac_clean_files=
    565  1.1  christos ac_config_libobj_dir=.
    566  1.1  christos LIBOBJS=
    567  1.1  christos cross_compiling=no
    568  1.1  christos subdirs=
    569  1.1  christos MFLAGS=
    570  1.1  christos MAKEFLAGS=
    571  1.1  christos SHELL=${CONFIG_SHELL-/bin/sh}
    572  1.1  christos 
    573  1.1  christos # Identity of this package.
    574  1.1  christos PACKAGE_NAME=
    575  1.1  christos PACKAGE_TARNAME=
    576  1.1  christos PACKAGE_VERSION=
    577  1.1  christos PACKAGE_STRING=
    578  1.1  christos PACKAGE_BUGREPORT=
    579  1.1  christos 
    580  1.1  christos ac_unique_file="tcpdump.c"
    581  1.1  christos # Factoring default headers for most tests.
    582  1.1  christos ac_includes_default="\
    583  1.1  christos #include <stdio.h>
    584  1.1  christos #ifdef HAVE_SYS_TYPES_H
    585  1.1  christos # include <sys/types.h>
    586  1.1  christos #endif
    587  1.1  christos #ifdef HAVE_SYS_STAT_H
    588  1.1  christos # include <sys/stat.h>
    589  1.1  christos #endif
    590  1.1  christos #ifdef STDC_HEADERS
    591  1.1  christos # include <stdlib.h>
    592  1.1  christos # include <stddef.h>
    593  1.1  christos #else
    594  1.1  christos # ifdef HAVE_STDLIB_H
    595  1.1  christos #  include <stdlib.h>
    596  1.1  christos # endif
    597  1.1  christos #endif
    598  1.1  christos #ifdef HAVE_STRING_H
    599  1.1  christos # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    600  1.1  christos #  include <memory.h>
    601  1.1  christos # endif
    602  1.1  christos # include <string.h>
    603  1.1  christos #endif
    604  1.1  christos #ifdef HAVE_STRINGS_H
    605  1.1  christos # include <strings.h>
    606  1.1  christos #endif
    607  1.1  christos #ifdef HAVE_INTTYPES_H
    608  1.1  christos # include <inttypes.h>
    609  1.1  christos #endif
    610  1.1  christos #ifdef HAVE_STDINT_H
    611  1.1  christos # include <stdint.h>
    612  1.1  christos #endif
    613  1.1  christos #ifdef HAVE_UNISTD_H
    614  1.1  christos # include <unistd.h>
    615  1.1  christos #endif"
    616  1.1  christos 
    617  1.1  christos ac_subst_vars='SHELL
    618  1.1  christos PATH_SEPARATOR
    619  1.1  christos PACKAGE_NAME
    620  1.1  christos PACKAGE_TARNAME
    621  1.1  christos PACKAGE_VERSION
    622  1.1  christos PACKAGE_STRING
    623  1.1  christos PACKAGE_BUGREPORT
    624  1.1  christos exec_prefix
    625  1.1  christos prefix
    626  1.1  christos program_transform_name
    627  1.1  christos bindir
    628  1.1  christos sbindir
    629  1.1  christos libexecdir
    630  1.1  christos datarootdir
    631  1.1  christos datadir
    632  1.1  christos sysconfdir
    633  1.1  christos sharedstatedir
    634  1.1  christos localstatedir
    635  1.1  christos includedir
    636  1.1  christos oldincludedir
    637  1.1  christos docdir
    638  1.1  christos infodir
    639  1.1  christos htmldir
    640  1.1  christos dvidir
    641  1.1  christos pdfdir
    642  1.1  christos psdir
    643  1.1  christos libdir
    644  1.1  christos localedir
    645  1.1  christos mandir
    646  1.1  christos DEFS
    647  1.1  christos ECHO_C
    648  1.1  christos ECHO_N
    649  1.1  christos ECHO_T
    650  1.1  christos LIBS
    651  1.1  christos build_alias
    652  1.1  christos host_alias
    653  1.1  christos target_alias
    654  1.1  christos build
    655  1.1  christos build_cpu
    656  1.1  christos build_vendor
    657  1.1  christos build_os
    658  1.1  christos host
    659  1.1  christos host_cpu
    660  1.1  christos host_vendor
    661  1.1  christos host_os
    662  1.1  christos SHLICC2
    663  1.1  christos CC
    664  1.1  christos CFLAGS
    665  1.1  christos LDFLAGS
    666  1.1  christos CPPFLAGS
    667  1.1  christos ac_ct_CC
    668  1.1  christos EXEEXT
    669  1.1  christos OBJEXT
    670  1.1  christos CPP
    671  1.1  christos GREP
    672  1.1  christos EGREP
    673  1.1  christos LIBOBJS
    674  1.1  christos PCAP_CONFIG
    675  1.1  christos RANLIB
    676  1.1  christos V_CCOPT
    677  1.1  christos V_DEFS
    678  1.1  christos V_GROUP
    679  1.1  christos V_INCLS
    680  1.1  christos V_PCAPDEP
    681  1.1  christos LOCALSRC
    682  1.1  christos MAN_FILE_FORMATS
    683  1.1  christos MAN_MISC_INFO
    684  1.1  christos INSTALL_PROGRAM
    685  1.1  christos INSTALL_SCRIPT
    686  1.1  christos INSTALL_DATA
    687  1.1  christos LTLIBOBJS'
    688  1.1  christos ac_subst_files=''
    689  1.1  christos       ac_precious_vars='build_alias
    690  1.1  christos host_alias
    691  1.1  christos target_alias
    692  1.1  christos CC
    693  1.1  christos CFLAGS
    694  1.1  christos LDFLAGS
    695  1.1  christos LIBS
    696  1.1  christos CPPFLAGS
    697  1.1  christos CPP'
    698  1.1  christos 
    699  1.1  christos 
    700  1.1  christos # Initialize some variables set by options.
    701  1.1  christos ac_init_help=
    702  1.1  christos ac_init_version=false
    703  1.1  christos # The variables have the same names as the options, with
    704  1.1  christos # dashes changed to underlines.
    705  1.1  christos cache_file=/dev/null
    706  1.1  christos exec_prefix=NONE
    707  1.1  christos no_create=
    708  1.1  christos no_recursion=
    709  1.1  christos prefix=NONE
    710  1.1  christos program_prefix=NONE
    711  1.1  christos program_suffix=NONE
    712  1.1  christos program_transform_name=s,x,x,
    713  1.1  christos silent=
    714  1.1  christos site=
    715  1.1  christos srcdir=
    716  1.1  christos verbose=
    717  1.1  christos x_includes=NONE
    718  1.1  christos x_libraries=NONE
    719  1.1  christos 
    720  1.1  christos # Installation directory options.
    721  1.1  christos # These are left unexpanded so users can "make install exec_prefix=/foo"
    722  1.1  christos # and all the variables that are supposed to be based on exec_prefix
    723  1.1  christos # by default will actually change.
    724  1.1  christos # Use braces instead of parens because sh, perl, etc. also accept them.
    725  1.1  christos # (The list follows the same order as the GNU Coding Standards.)
    726  1.1  christos bindir='${exec_prefix}/bin'
    727  1.1  christos sbindir='${exec_prefix}/sbin'
    728  1.1  christos libexecdir='${exec_prefix}/libexec'
    729  1.1  christos datarootdir='${prefix}/share'
    730  1.1  christos datadir='${datarootdir}'
    731  1.1  christos sysconfdir='${prefix}/etc'
    732  1.1  christos sharedstatedir='${prefix}/com'
    733  1.1  christos localstatedir='${prefix}/var'
    734  1.1  christos includedir='${prefix}/include'
    735  1.1  christos oldincludedir='/usr/include'
    736  1.1  christos docdir='${datarootdir}/doc/${PACKAGE}'
    737  1.1  christos infodir='${datarootdir}/info'
    738  1.1  christos htmldir='${docdir}'
    739  1.1  christos dvidir='${docdir}'
    740  1.1  christos pdfdir='${docdir}'
    741  1.1  christos psdir='${docdir}'
    742  1.1  christos libdir='${exec_prefix}/lib'
    743  1.1  christos localedir='${datarootdir}/locale'
    744  1.1  christos mandir='${datarootdir}/man'
    745  1.1  christos 
    746  1.1  christos ac_prev=
    747  1.1  christos ac_dashdash=
    748  1.1  christos for ac_option
    749  1.1  christos do
    750  1.1  christos   # If the previous option needs an argument, assign it.
    751  1.1  christos   if test -n "$ac_prev"; then
    752  1.1  christos     eval $ac_prev=\$ac_option
    753  1.1  christos     ac_prev=
    754  1.1  christos     continue
    755  1.1  christos   fi
    756  1.1  christos 
    757  1.1  christos   case $ac_option in
    758  1.1  christos   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    759  1.1  christos   *)	ac_optarg=yes ;;
    760  1.1  christos   esac
    761  1.1  christos 
    762  1.1  christos   # Accept the important Cygnus configure options, so we can diagnose typos.
    763  1.1  christos 
    764  1.1  christos   case $ac_dashdash$ac_option in
    765  1.1  christos   --)
    766  1.1  christos     ac_dashdash=yes ;;
    767  1.1  christos 
    768  1.1  christos   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    769  1.1  christos     ac_prev=bindir ;;
    770  1.1  christos   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    771  1.1  christos     bindir=$ac_optarg ;;
    772  1.1  christos 
    773  1.1  christos   -build | --build | --buil | --bui | --bu)
    774  1.1  christos     ac_prev=build_alias ;;
    775  1.1  christos   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    776  1.1  christos     build_alias=$ac_optarg ;;
    777  1.1  christos 
    778  1.1  christos   -cache-file | --cache-file | --cache-fil | --cache-fi \
    779  1.1  christos   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    780  1.1  christos     ac_prev=cache_file ;;
    781  1.1  christos   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    782  1.1  christos   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    783  1.1  christos     cache_file=$ac_optarg ;;
    784  1.1  christos 
    785  1.1  christos   --config-cache | -C)
    786  1.1  christos     cache_file=config.cache ;;
    787  1.1  christos 
    788  1.1  christos   -datadir | --datadir | --datadi | --datad)
    789  1.1  christos     ac_prev=datadir ;;
    790  1.1  christos   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    791  1.1  christos     datadir=$ac_optarg ;;
    792  1.1  christos 
    793  1.1  christos   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    794  1.1  christos   | --dataroo | --dataro | --datar)
    795  1.1  christos     ac_prev=datarootdir ;;
    796  1.1  christos   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    797  1.1  christos   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    798  1.1  christos     datarootdir=$ac_optarg ;;
    799  1.1  christos 
    800  1.1  christos   -disable-* | --disable-*)
    801  1.1  christos     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    802  1.1  christos     # Reject names that are not valid shell variable names.
    803  1.1  christos     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    804  1.1  christos       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    805  1.1  christos    { (exit 1); exit 1; }; }
    806  1.1  christos     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    807  1.1  christos     eval enable_$ac_feature=no ;;
    808  1.1  christos 
    809  1.1  christos   -docdir | --docdir | --docdi | --doc | --do)
    810  1.1  christos     ac_prev=docdir ;;
    811  1.1  christos   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    812  1.1  christos     docdir=$ac_optarg ;;
    813  1.1  christos 
    814  1.1  christos   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    815  1.1  christos     ac_prev=dvidir ;;
    816  1.1  christos   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    817  1.1  christos     dvidir=$ac_optarg ;;
    818  1.1  christos 
    819  1.1  christos   -enable-* | --enable-*)
    820  1.1  christos     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    821  1.1  christos     # Reject names that are not valid shell variable names.
    822  1.1  christos     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    823  1.1  christos       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    824  1.1  christos    { (exit 1); exit 1; }; }
    825  1.1  christos     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    826  1.1  christos     eval enable_$ac_feature=\$ac_optarg ;;
    827  1.1  christos 
    828  1.1  christos   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    829  1.1  christos   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    830  1.1  christos   | --exec | --exe | --ex)
    831  1.1  christos     ac_prev=exec_prefix ;;
    832  1.1  christos   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    833  1.1  christos   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    834  1.1  christos   | --exec=* | --exe=* | --ex=*)
    835  1.1  christos     exec_prefix=$ac_optarg ;;
    836  1.1  christos 
    837  1.1  christos   -gas | --gas | --ga | --g)
    838  1.1  christos     # Obsolete; use --with-gas.
    839  1.1  christos     with_gas=yes ;;
    840  1.1  christos 
    841  1.1  christos   -help | --help | --hel | --he | -h)
    842  1.1  christos     ac_init_help=long ;;
    843  1.1  christos   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    844  1.1  christos     ac_init_help=recursive ;;
    845  1.1  christos   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    846  1.1  christos     ac_init_help=short ;;
    847  1.1  christos 
    848  1.1  christos   -host | --host | --hos | --ho)
    849  1.1  christos     ac_prev=host_alias ;;
    850  1.1  christos   -host=* | --host=* | --hos=* | --ho=*)
    851  1.1  christos     host_alias=$ac_optarg ;;
    852  1.1  christos 
    853  1.1  christos   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    854  1.1  christos     ac_prev=htmldir ;;
    855  1.1  christos   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    856  1.1  christos   | --ht=*)
    857  1.1  christos     htmldir=$ac_optarg ;;
    858  1.1  christos 
    859  1.1  christos   -includedir | --includedir | --includedi | --included | --include \
    860  1.1  christos   | --includ | --inclu | --incl | --inc)
    861  1.1  christos     ac_prev=includedir ;;
    862  1.1  christos   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    863  1.1  christos   | --includ=* | --inclu=* | --incl=* | --inc=*)
    864  1.1  christos     includedir=$ac_optarg ;;
    865  1.1  christos 
    866  1.1  christos   -infodir | --infodir | --infodi | --infod | --info | --inf)
    867  1.1  christos     ac_prev=infodir ;;
    868  1.1  christos   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    869  1.1  christos     infodir=$ac_optarg ;;
    870  1.1  christos 
    871  1.1  christos   -libdir | --libdir | --libdi | --libd)
    872  1.1  christos     ac_prev=libdir ;;
    873  1.1  christos   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    874  1.1  christos     libdir=$ac_optarg ;;
    875  1.1  christos 
    876  1.1  christos   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    877  1.1  christos   | --libexe | --libex | --libe)
    878  1.1  christos     ac_prev=libexecdir ;;
    879  1.1  christos   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    880  1.1  christos   | --libexe=* | --libex=* | --libe=*)
    881  1.1  christos     libexecdir=$ac_optarg ;;
    882  1.1  christos 
    883  1.1  christos   -localedir | --localedir | --localedi | --localed | --locale)
    884  1.1  christos     ac_prev=localedir ;;
    885  1.1  christos   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    886  1.1  christos     localedir=$ac_optarg ;;
    887  1.1  christos 
    888  1.1  christos   -localstatedir | --localstatedir | --localstatedi | --localstated \
    889  1.1  christos   | --localstate | --localstat | --localsta | --localst | --locals)
    890  1.1  christos     ac_prev=localstatedir ;;
    891  1.1  christos   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    892  1.1  christos   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    893  1.1  christos     localstatedir=$ac_optarg ;;
    894  1.1  christos 
    895  1.1  christos   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    896  1.1  christos     ac_prev=mandir ;;
    897  1.1  christos   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    898  1.1  christos     mandir=$ac_optarg ;;
    899  1.1  christos 
    900  1.1  christos   -nfp | --nfp | --nf)
    901  1.1  christos     # Obsolete; use --without-fp.
    902  1.1  christos     with_fp=no ;;
    903  1.1  christos 
    904  1.1  christos   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    905  1.1  christos   | --no-cr | --no-c | -n)
    906  1.1  christos     no_create=yes ;;
    907  1.1  christos 
    908  1.1  christos   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    909  1.1  christos   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    910  1.1  christos     no_recursion=yes ;;
    911  1.1  christos 
    912  1.1  christos   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    913  1.1  christos   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    914  1.1  christos   | --oldin | --oldi | --old | --ol | --o)
    915  1.1  christos     ac_prev=oldincludedir ;;
    916  1.1  christos   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    917  1.1  christos   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    918  1.1  christos   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    919  1.1  christos     oldincludedir=$ac_optarg ;;
    920  1.1  christos 
    921  1.1  christos   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    922  1.1  christos     ac_prev=prefix ;;
    923  1.1  christos   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    924  1.1  christos     prefix=$ac_optarg ;;
    925  1.1  christos 
    926  1.1  christos   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    927  1.1  christos   | --program-pre | --program-pr | --program-p)
    928  1.1  christos     ac_prev=program_prefix ;;
    929  1.1  christos   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    930  1.1  christos   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    931  1.1  christos     program_prefix=$ac_optarg ;;
    932  1.1  christos 
    933  1.1  christos   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    934  1.1  christos   | --program-suf | --program-su | --program-s)
    935  1.1  christos     ac_prev=program_suffix ;;
    936  1.1  christos   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    937  1.1  christos   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    938  1.1  christos     program_suffix=$ac_optarg ;;
    939  1.1  christos 
    940  1.1  christos   -program-transform-name | --program-transform-name \
    941  1.1  christos   | --program-transform-nam | --program-transform-na \
    942  1.1  christos   | --program-transform-n | --program-transform- \
    943  1.1  christos   | --program-transform | --program-transfor \
    944  1.1  christos   | --program-transfo | --program-transf \
    945  1.1  christos   | --program-trans | --program-tran \
    946  1.1  christos   | --progr-tra | --program-tr | --program-t)
    947  1.1  christos     ac_prev=program_transform_name ;;
    948  1.1  christos   -program-transform-name=* | --program-transform-name=* \
    949  1.1  christos   | --program-transform-nam=* | --program-transform-na=* \
    950  1.1  christos   | --program-transform-n=* | --program-transform-=* \
    951  1.1  christos   | --program-transform=* | --program-transfor=* \
    952  1.1  christos   | --program-transfo=* | --program-transf=* \
    953  1.1  christos   | --program-trans=* | --program-tran=* \
    954  1.1  christos   | --progr-tra=* | --program-tr=* | --program-t=*)
    955  1.1  christos     program_transform_name=$ac_optarg ;;
    956  1.1  christos 
    957  1.1  christos   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    958  1.1  christos     ac_prev=pdfdir ;;
    959  1.1  christos   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    960  1.1  christos     pdfdir=$ac_optarg ;;
    961  1.1  christos 
    962  1.1  christos   -psdir | --psdir | --psdi | --psd | --ps)
    963  1.1  christos     ac_prev=psdir ;;
    964  1.1  christos   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    965  1.1  christos     psdir=$ac_optarg ;;
    966  1.1  christos 
    967  1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    968  1.1  christos   | -silent | --silent | --silen | --sile | --sil)
    969  1.1  christos     silent=yes ;;
    970  1.1  christos 
    971  1.1  christos   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    972  1.1  christos     ac_prev=sbindir ;;
    973  1.1  christos   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    974  1.1  christos   | --sbi=* | --sb=*)
    975  1.1  christos     sbindir=$ac_optarg ;;
    976  1.1  christos 
    977  1.1  christos   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    978  1.1  christos   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    979  1.1  christos   | --sharedst | --shareds | --shared | --share | --shar \
    980  1.1  christos   | --sha | --sh)
    981  1.1  christos     ac_prev=sharedstatedir ;;
    982  1.1  christos   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    983  1.1  christos   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    984  1.1  christos   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    985  1.1  christos   | --sha=* | --sh=*)
    986  1.1  christos     sharedstatedir=$ac_optarg ;;
    987  1.1  christos 
    988  1.1  christos   -site | --site | --sit)
    989  1.1  christos     ac_prev=site ;;
    990  1.1  christos   -site=* | --site=* | --sit=*)
    991  1.1  christos     site=$ac_optarg ;;
    992  1.1  christos 
    993  1.1  christos   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    994  1.1  christos     ac_prev=srcdir ;;
    995  1.1  christos   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    996  1.1  christos     srcdir=$ac_optarg ;;
    997  1.1  christos 
    998  1.1  christos   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    999  1.1  christos   | --syscon | --sysco | --sysc | --sys | --sy)
   1000  1.1  christos     ac_prev=sysconfdir ;;
   1001  1.1  christos   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1002  1.1  christos   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1003  1.1  christos     sysconfdir=$ac_optarg ;;
   1004  1.1  christos 
   1005  1.1  christos   -target | --target | --targe | --targ | --tar | --ta | --t)
   1006  1.1  christos     ac_prev=target_alias ;;
   1007  1.1  christos   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1008  1.1  christos     target_alias=$ac_optarg ;;
   1009  1.1  christos 
   1010  1.1  christos   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1011  1.1  christos     verbose=yes ;;
   1012  1.1  christos 
   1013  1.1  christos   -version | --version | --versio | --versi | --vers | -V)
   1014  1.1  christos     ac_init_version=: ;;
   1015  1.1  christos 
   1016  1.1  christos   -with-* | --with-*)
   1017  1.1  christos     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1018  1.1  christos     # Reject names that are not valid shell variable names.
   1019  1.1  christos     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1020  1.1  christos       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1021  1.1  christos    { (exit 1); exit 1; }; }
   1022  1.1  christos     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   1023  1.1  christos     eval with_$ac_package=\$ac_optarg ;;
   1024  1.1  christos 
   1025  1.1  christos   -without-* | --without-*)
   1026  1.1  christos     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1027  1.1  christos     # Reject names that are not valid shell variable names.
   1028  1.1  christos     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1029  1.1  christos       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1030  1.1  christos    { (exit 1); exit 1; }; }
   1031  1.1  christos     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   1032  1.1  christos     eval with_$ac_package=no ;;
   1033  1.1  christos 
   1034  1.1  christos   --x)
   1035  1.1  christos     # Obsolete; use --with-x.
   1036  1.1  christos     with_x=yes ;;
   1037  1.1  christos 
   1038  1.1  christos   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1039  1.1  christos   | --x-incl | --x-inc | --x-in | --x-i)
   1040  1.1  christos     ac_prev=x_includes ;;
   1041  1.1  christos   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1042  1.1  christos   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1043  1.1  christos     x_includes=$ac_optarg ;;
   1044  1.1  christos 
   1045  1.1  christos   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1046  1.1  christos   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1047  1.1  christos     ac_prev=x_libraries ;;
   1048  1.1  christos   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1049  1.1  christos   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1050  1.1  christos     x_libraries=$ac_optarg ;;
   1051  1.1  christos 
   1052  1.1  christos   -*) { echo "$as_me: error: unrecognized option: $ac_option
   1053  1.1  christos Try \`$0 --help' for more information." >&2
   1054  1.1  christos    { (exit 1); exit 1; }; }
   1055  1.1  christos     ;;
   1056  1.1  christos 
   1057  1.1  christos   *=*)
   1058  1.1  christos     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1059  1.1  christos     # Reject names that are not valid shell variable names.
   1060  1.1  christos     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
   1061  1.1  christos       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   1062  1.1  christos    { (exit 1); exit 1; }; }
   1063  1.1  christos     eval $ac_envvar=\$ac_optarg
   1064  1.1  christos     export $ac_envvar ;;
   1065  1.1  christos 
   1066  1.1  christos   *)
   1067  1.1  christos     # FIXME: should be removed in autoconf 3.0.
   1068  1.1  christos     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1069  1.1  christos     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1070  1.1  christos       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1071  1.1  christos     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1072  1.1  christos     ;;
   1073  1.1  christos 
   1074  1.1  christos   esac
   1075  1.1  christos done
   1076  1.1  christos 
   1077  1.1  christos if test -n "$ac_prev"; then
   1078  1.1  christos   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1079  1.1  christos   { echo "$as_me: error: missing argument to $ac_option" >&2
   1080  1.1  christos    { (exit 1); exit 1; }; }
   1081  1.1  christos fi
   1082  1.1  christos 
   1083  1.1  christos # Be sure to have absolute directory names.
   1084  1.1  christos for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1085  1.1  christos 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1086  1.1  christos 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1087  1.1  christos 		libdir localedir mandir
   1088  1.1  christos do
   1089  1.1  christos   eval ac_val=\$$ac_var
   1090  1.1  christos   case $ac_val in
   1091  1.1  christos     [\\/$]* | ?:[\\/]* )  continue;;
   1092  1.1  christos     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1093  1.1  christos   esac
   1094  1.1  christos   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   1095  1.1  christos    { (exit 1); exit 1; }; }
   1096  1.1  christos done
   1097  1.1  christos 
   1098  1.1  christos # There might be people who depend on the old broken behavior: `$host'
   1099  1.1  christos # used to hold the argument of --host etc.
   1100  1.1  christos # FIXME: To remove some day.
   1101  1.1  christos build=$build_alias
   1102  1.1  christos host=$host_alias
   1103  1.1  christos target=$target_alias
   1104  1.1  christos 
   1105  1.1  christos # FIXME: To remove some day.
   1106  1.1  christos if test "x$host_alias" != x; then
   1107  1.1  christos   if test "x$build_alias" = x; then
   1108  1.1  christos     cross_compiling=maybe
   1109  1.1  christos     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1110  1.1  christos     If a cross compiler is detected then cross compile mode will be used." >&2
   1111  1.1  christos   elif test "x$build_alias" != "x$host_alias"; then
   1112  1.1  christos     cross_compiling=yes
   1113  1.1  christos   fi
   1114  1.1  christos fi
   1115  1.1  christos 
   1116  1.1  christos ac_tool_prefix=
   1117  1.1  christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1118  1.1  christos 
   1119  1.1  christos test "$silent" = yes && exec 6>/dev/null
   1120  1.1  christos 
   1121  1.1  christos 
   1122  1.1  christos ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1123  1.1  christos ac_ls_di=`ls -di .` &&
   1124  1.1  christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1125  1.1  christos   { echo "$as_me: error: Working directory cannot be determined" >&2
   1126  1.1  christos    { (exit 1); exit 1; }; }
   1127  1.1  christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1128  1.1  christos   { echo "$as_me: error: pwd does not report name of working directory" >&2
   1129  1.1  christos    { (exit 1); exit 1; }; }
   1130  1.1  christos 
   1131  1.1  christos 
   1132  1.1  christos # Find the source files, if location was not specified.
   1133  1.1  christos if test -z "$srcdir"; then
   1134  1.1  christos   ac_srcdir_defaulted=yes
   1135  1.1  christos   # Try the directory containing this script, then the parent directory.
   1136  1.1  christos   ac_confdir=`$as_dirname -- "$0" ||
   1137  1.1  christos $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1138  1.1  christos 	 X"$0" : 'X\(//\)[^/]' \| \
   1139  1.1  christos 	 X"$0" : 'X\(//\)$' \| \
   1140  1.1  christos 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   1141  1.1  christos echo X"$0" |
   1142  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1143  1.1  christos 	    s//\1/
   1144  1.1  christos 	    q
   1145  1.1  christos 	  }
   1146  1.1  christos 	  /^X\(\/\/\)[^/].*/{
   1147  1.1  christos 	    s//\1/
   1148  1.1  christos 	    q
   1149  1.1  christos 	  }
   1150  1.1  christos 	  /^X\(\/\/\)$/{
   1151  1.1  christos 	    s//\1/
   1152  1.1  christos 	    q
   1153  1.1  christos 	  }
   1154  1.1  christos 	  /^X\(\/\).*/{
   1155  1.1  christos 	    s//\1/
   1156  1.1  christos 	    q
   1157  1.1  christos 	  }
   1158  1.1  christos 	  s/.*/./; q'`
   1159  1.1  christos   srcdir=$ac_confdir
   1160  1.1  christos   if test ! -r "$srcdir/$ac_unique_file"; then
   1161  1.1  christos     srcdir=..
   1162  1.1  christos   fi
   1163  1.1  christos else
   1164  1.1  christos   ac_srcdir_defaulted=no
   1165  1.1  christos fi
   1166  1.1  christos if test ! -r "$srcdir/$ac_unique_file"; then
   1167  1.1  christos   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1168  1.1  christos   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   1169  1.1  christos    { (exit 1); exit 1; }; }
   1170  1.1  christos fi
   1171  1.1  christos ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1172  1.1  christos ac_abs_confdir=`(
   1173  1.1  christos 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   1174  1.1  christos    { (exit 1); exit 1; }; }
   1175  1.1  christos 	pwd)`
   1176  1.1  christos # When building in place, set srcdir=.
   1177  1.1  christos if test "$ac_abs_confdir" = "$ac_pwd"; then
   1178  1.1  christos   srcdir=.
   1179  1.1  christos fi
   1180  1.1  christos # Remove unnecessary trailing slashes from srcdir.
   1181  1.1  christos # Double slashes in file names in object file debugging info
   1182  1.1  christos # mess up M-x gdb in Emacs.
   1183  1.1  christos case $srcdir in
   1184  1.1  christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1185  1.1  christos esac
   1186  1.1  christos for ac_var in $ac_precious_vars; do
   1187  1.1  christos   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1188  1.1  christos   eval ac_env_${ac_var}_value=\$${ac_var}
   1189  1.1  christos   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1190  1.1  christos   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1191  1.1  christos done
   1192  1.1  christos 
   1193  1.1  christos #
   1194  1.1  christos # Report the --help message.
   1195  1.1  christos #
   1196  1.1  christos if test "$ac_init_help" = "long"; then
   1197  1.1  christos   # Omit some internal or obsolete options to make the list less imposing.
   1198  1.1  christos   # This message is too long to be a string in the A/UX 3.1 sh.
   1199  1.1  christos   cat <<_ACEOF
   1200  1.1  christos \`configure' configures this package to adapt to many kinds of systems.
   1201  1.1  christos 
   1202  1.1  christos Usage: $0 [OPTION]... [VAR=VALUE]...
   1203  1.1  christos 
   1204  1.1  christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1205  1.1  christos VAR=VALUE.  See below for descriptions of some of the useful variables.
   1206  1.1  christos 
   1207  1.1  christos Defaults for the options are specified in brackets.
   1208  1.1  christos 
   1209  1.1  christos Configuration:
   1210  1.1  christos   -h, --help              display this help and exit
   1211  1.1  christos       --help=short        display options specific to this package
   1212  1.1  christos       --help=recursive    display the short help of all the included packages
   1213  1.1  christos   -V, --version           display version information and exit
   1214  1.1  christos   -q, --quiet, --silent   do not print \`checking...' messages
   1215  1.1  christos       --cache-file=FILE   cache test results in FILE [disabled]
   1216  1.1  christos   -C, --config-cache      alias for \`--cache-file=config.cache'
   1217  1.1  christos   -n, --no-create         do not create output files
   1218  1.1  christos       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1219  1.1  christos 
   1220  1.1  christos Installation directories:
   1221  1.1  christos   --prefix=PREFIX         install architecture-independent files in PREFIX
   1222  1.1  christos 			  [$ac_default_prefix]
   1223  1.1  christos   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1224  1.1  christos 			  [PREFIX]
   1225  1.1  christos 
   1226  1.1  christos By default, \`make install' will install all the files in
   1227  1.1  christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1228  1.1  christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1229  1.1  christos for instance \`--prefix=\$HOME'.
   1230  1.1  christos 
   1231  1.1  christos For better control, use the options below.
   1232  1.1  christos 
   1233  1.1  christos Fine tuning of the installation directories:
   1234  1.1  christos   --bindir=DIR           user executables [EPREFIX/bin]
   1235  1.1  christos   --sbindir=DIR          system admin executables [EPREFIX/sbin]
   1236  1.1  christos   --libexecdir=DIR       program executables [EPREFIX/libexec]
   1237  1.1  christos   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   1238  1.1  christos   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   1239  1.1  christos   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   1240  1.1  christos   --libdir=DIR           object code libraries [EPREFIX/lib]
   1241  1.1  christos   --includedir=DIR       C header files [PREFIX/include]
   1242  1.1  christos   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   1243  1.1  christos   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
   1244  1.1  christos   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
   1245  1.1  christos   --infodir=DIR          info documentation [DATAROOTDIR/info]
   1246  1.1  christos   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
   1247  1.1  christos   --mandir=DIR           man documentation [DATAROOTDIR/man]
   1248  1.1  christos   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
   1249  1.1  christos   --htmldir=DIR          html documentation [DOCDIR]
   1250  1.1  christos   --dvidir=DIR           dvi documentation [DOCDIR]
   1251  1.1  christos   --pdfdir=DIR           pdf documentation [DOCDIR]
   1252  1.1  christos   --psdir=DIR            ps documentation [DOCDIR]
   1253  1.1  christos _ACEOF
   1254  1.1  christos 
   1255  1.1  christos   cat <<\_ACEOF
   1256  1.1  christos 
   1257  1.1  christos System types:
   1258  1.1  christos   --build=BUILD     configure for building on BUILD [guessed]
   1259  1.1  christos   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1260  1.1  christos _ACEOF
   1261  1.1  christos fi
   1262  1.1  christos 
   1263  1.1  christos if test -n "$ac_init_help"; then
   1264  1.1  christos 
   1265  1.1  christos   cat <<\_ACEOF
   1266  1.1  christos 
   1267  1.1  christos Optional Features:
   1268  1.1  christos   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1269  1.1  christos   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1270  1.3  christos   --disable-universal     don't build universal on OS X
   1271  1.1  christos   --enable-smb            enable possibly-buggy SMB printer default=yes
   1272  1.1  christos   --disable-smb           disable possibly-buggy SMB printer
   1273  1.1  christos   --enable-ipv6           enable ipv6 (with ipv4) support
   1274  1.1  christos   --disable-ipv6          disable ipv6 support
   1275  1.1  christos 
   1276  1.1  christos Optional Packages:
   1277  1.1  christos   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1278  1.1  christos   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1279  1.1  christos   --without-gcc           don't use gcc
   1280  1.1  christos   --with-smi              link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
   1281  1.1  christos   --without-smi           don't link with libsmi
   1282  1.1  christos   --with-user=USERNAME    drop privileges by default to USERNAME
   1283  1.1  christos   --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
   1284  1.1  christos   --with-crypto[=PATH]    use SSLeay libcrypto (located in directory PATH, if
   1285  1.1  christos                           supplied). [default=yes, if available]
   1286  1.1  christos 
   1287  1.1  christos Some influential environment variables:
   1288  1.1  christos   CC          C compiler command
   1289  1.1  christos   CFLAGS      C compiler flags
   1290  1.1  christos   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1291  1.1  christos               nonstandard directory <lib dir>
   1292  1.1  christos   LIBS        libraries to pass to the linker, e.g. -l<library>
   1293  1.1  christos   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1294  1.1  christos               you have headers in a nonstandard directory <include dir>
   1295  1.1  christos   CPP         C preprocessor
   1296  1.1  christos 
   1297  1.1  christos Use these variables to override the choices made by `configure' or to help
   1298  1.1  christos it to find libraries and programs with nonstandard names/locations.
   1299  1.1  christos 
   1300  1.1  christos _ACEOF
   1301  1.1  christos ac_status=$?
   1302  1.1  christos fi
   1303  1.1  christos 
   1304  1.1  christos if test "$ac_init_help" = "recursive"; then
   1305  1.1  christos   # If there are subdirs, report their specific --help.
   1306  1.1  christos   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1307  1.1  christos     test -d "$ac_dir" || continue
   1308  1.1  christos     ac_builddir=.
   1309  1.1  christos 
   1310  1.1  christos case "$ac_dir" in
   1311  1.1  christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1312  1.1  christos *)
   1313  1.1  christos   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   1314  1.1  christos   # A ".." for each directory in $ac_dir_suffix.
   1315  1.1  christos   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   1316  1.1  christos   case $ac_top_builddir_sub in
   1317  1.1  christos   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1318  1.1  christos   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1319  1.1  christos   esac ;;
   1320  1.1  christos esac
   1321  1.1  christos ac_abs_top_builddir=$ac_pwd
   1322  1.1  christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1323  1.1  christos # for backward compatibility:
   1324  1.1  christos ac_top_builddir=$ac_top_build_prefix
   1325  1.1  christos 
   1326  1.1  christos case $srcdir in
   1327  1.1  christos   .)  # We are building in place.
   1328  1.1  christos     ac_srcdir=.
   1329  1.1  christos     ac_top_srcdir=$ac_top_builddir_sub
   1330  1.1  christos     ac_abs_top_srcdir=$ac_pwd ;;
   1331  1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   1332  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   1333  1.1  christos     ac_top_srcdir=$srcdir
   1334  1.1  christos     ac_abs_top_srcdir=$srcdir ;;
   1335  1.1  christos   *) # Relative name.
   1336  1.1  christos     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1337  1.1  christos     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1338  1.1  christos     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1339  1.1  christos esac
   1340  1.1  christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1341  1.1  christos 
   1342  1.1  christos     cd "$ac_dir" || { ac_status=$?; continue; }
   1343  1.1  christos     # Check for guested configure.
   1344  1.1  christos     if test -f "$ac_srcdir/configure.gnu"; then
   1345  1.1  christos       echo &&
   1346  1.1  christos       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1347  1.1  christos     elif test -f "$ac_srcdir/configure"; then
   1348  1.1  christos       echo &&
   1349  1.1  christos       $SHELL "$ac_srcdir/configure" --help=recursive
   1350  1.1  christos     else
   1351  1.1  christos       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1352  1.1  christos     fi || ac_status=$?
   1353  1.1  christos     cd "$ac_pwd" || { ac_status=$?; break; }
   1354  1.1  christos   done
   1355  1.1  christos fi
   1356  1.1  christos 
   1357  1.1  christos test -n "$ac_init_help" && exit $ac_status
   1358  1.1  christos if $ac_init_version; then
   1359  1.1  christos   cat <<\_ACEOF
   1360  1.1  christos configure
   1361  1.1  christos generated by GNU Autoconf 2.61
   1362  1.1  christos 
   1363  1.1  christos Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   1364  1.1  christos 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
   1365  1.1  christos This configure script is free software; the Free Software Foundation
   1366  1.1  christos gives unlimited permission to copy, distribute and modify it.
   1367  1.1  christos _ACEOF
   1368  1.1  christos   exit
   1369  1.1  christos fi
   1370  1.1  christos cat >config.log <<_ACEOF
   1371  1.1  christos This file contains any messages produced by compilers while
   1372  1.1  christos running configure, to aid debugging if configure makes a mistake.
   1373  1.1  christos 
   1374  1.1  christos It was created by $as_me, which was
   1375  1.1  christos generated by GNU Autoconf 2.61.  Invocation command line was
   1376  1.1  christos 
   1377  1.1  christos   $ $0 $@
   1378  1.1  christos 
   1379  1.1  christos _ACEOF
   1380  1.1  christos exec 5>>config.log
   1381  1.1  christos {
   1382  1.1  christos cat <<_ASUNAME
   1383  1.1  christos ## --------- ##
   1384  1.1  christos ## Platform. ##
   1385  1.1  christos ## --------- ##
   1386  1.1  christos 
   1387  1.1  christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1388  1.1  christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1389  1.1  christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1390  1.1  christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1391  1.1  christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1392  1.1  christos 
   1393  1.1  christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1394  1.1  christos /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1395  1.1  christos 
   1396  1.1  christos /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1397  1.1  christos /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1398  1.1  christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1399  1.1  christos /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1400  1.1  christos /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1401  1.1  christos /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1402  1.1  christos /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1403  1.1  christos 
   1404  1.1  christos _ASUNAME
   1405  1.1  christos 
   1406  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1407  1.1  christos for as_dir in $PATH
   1408  1.1  christos do
   1409  1.1  christos   IFS=$as_save_IFS
   1410  1.1  christos   test -z "$as_dir" && as_dir=.
   1411  1.1  christos   echo "PATH: $as_dir"
   1412  1.1  christos done
   1413  1.1  christos IFS=$as_save_IFS
   1414  1.1  christos 
   1415  1.1  christos } >&5
   1416  1.1  christos 
   1417  1.1  christos cat >&5 <<_ACEOF
   1418  1.1  christos 
   1419  1.1  christos 
   1420  1.1  christos ## ----------- ##
   1421  1.1  christos ## Core tests. ##
   1422  1.1  christos ## ----------- ##
   1423  1.1  christos 
   1424  1.1  christos _ACEOF
   1425  1.1  christos 
   1426  1.1  christos 
   1427  1.1  christos # Keep a trace of the command line.
   1428  1.1  christos # Strip out --no-create and --no-recursion so they do not pile up.
   1429  1.1  christos # Strip out --silent because we don't want to record it for future runs.
   1430  1.1  christos # Also quote any args containing shell meta-characters.
   1431  1.1  christos # Make two passes to allow for proper duplicate-argument suppression.
   1432  1.1  christos ac_configure_args=
   1433  1.1  christos ac_configure_args0=
   1434  1.1  christos ac_configure_args1=
   1435  1.1  christos ac_must_keep_next=false
   1436  1.1  christos for ac_pass in 1 2
   1437  1.1  christos do
   1438  1.1  christos   for ac_arg
   1439  1.1  christos   do
   1440  1.1  christos     case $ac_arg in
   1441  1.1  christos     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1442  1.1  christos     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1443  1.1  christos     | -silent | --silent | --silen | --sile | --sil)
   1444  1.1  christos       continue ;;
   1445  1.1  christos     *\'*)
   1446  1.1  christos       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1447  1.1  christos     esac
   1448  1.1  christos     case $ac_pass in
   1449  1.1  christos     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1450  1.1  christos     2)
   1451  1.1  christos       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1452  1.1  christos       if test $ac_must_keep_next = true; then
   1453  1.1  christos 	ac_must_keep_next=false # Got value, back to normal.
   1454  1.1  christos       else
   1455  1.1  christos 	case $ac_arg in
   1456  1.1  christos 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1457  1.1  christos 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1458  1.1  christos 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1459  1.1  christos 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1460  1.1  christos 	    case "$ac_configure_args0 " in
   1461  1.1  christos 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1462  1.1  christos 	    esac
   1463  1.1  christos 	    ;;
   1464  1.1  christos 	  -* ) ac_must_keep_next=true ;;
   1465  1.1  christos 	esac
   1466  1.1  christos       fi
   1467  1.1  christos       ac_configure_args="$ac_configure_args '$ac_arg'"
   1468  1.1  christos       ;;
   1469  1.1  christos     esac
   1470  1.1  christos   done
   1471  1.1  christos done
   1472  1.1  christos $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1473  1.1  christos $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1474  1.1  christos 
   1475  1.1  christos # When interrupted or exit'd, cleanup temporary files, and complete
   1476  1.1  christos # config.log.  We remove comments because anyway the quotes in there
   1477  1.1  christos # would cause problems or look ugly.
   1478  1.1  christos # WARNING: Use '\'' to represent an apostrophe within the trap.
   1479  1.1  christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1480  1.1  christos trap 'exit_status=$?
   1481  1.1  christos   # Save into config.log some information that might help in debugging.
   1482  1.1  christos   {
   1483  1.1  christos     echo
   1484  1.1  christos 
   1485  1.1  christos     cat <<\_ASBOX
   1486  1.1  christos ## ---------------- ##
   1487  1.1  christos ## Cache variables. ##
   1488  1.1  christos ## ---------------- ##
   1489  1.1  christos _ASBOX
   1490  1.1  christos     echo
   1491  1.1  christos     # The following way of writing the cache mishandles newlines in values,
   1492  1.1  christos (
   1493  1.1  christos   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1494  1.1  christos     eval ac_val=\$$ac_var
   1495  1.1  christos     case $ac_val in #(
   1496  1.1  christos     *${as_nl}*)
   1497  1.1  christos       case $ac_var in #(
   1498  1.1  christos       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   1499  1.1  christos echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   1500  1.1  christos       esac
   1501  1.1  christos       case $ac_var in #(
   1502  1.1  christos       _ | IFS | as_nl) ;; #(
   1503  1.1  christos       *) $as_unset $ac_var ;;
   1504  1.1  christos       esac ;;
   1505  1.1  christos     esac
   1506  1.1  christos   done
   1507  1.1  christos   (set) 2>&1 |
   1508  1.1  christos     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1509  1.1  christos     *${as_nl}ac_space=\ *)
   1510  1.1  christos       sed -n \
   1511  1.1  christos 	"s/'\''/'\''\\\\'\'''\''/g;
   1512  1.1  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1513  1.1  christos       ;; #(
   1514  1.1  christos     *)
   1515  1.1  christos       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1516  1.1  christos       ;;
   1517  1.1  christos     esac |
   1518  1.1  christos     sort
   1519  1.1  christos )
   1520  1.1  christos     echo
   1521  1.1  christos 
   1522  1.1  christos     cat <<\_ASBOX
   1523  1.1  christos ## ----------------- ##
   1524  1.1  christos ## Output variables. ##
   1525  1.1  christos ## ----------------- ##
   1526  1.1  christos _ASBOX
   1527  1.1  christos     echo
   1528  1.1  christos     for ac_var in $ac_subst_vars
   1529  1.1  christos     do
   1530  1.1  christos       eval ac_val=\$$ac_var
   1531  1.1  christos       case $ac_val in
   1532  1.1  christos       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1533  1.1  christos       esac
   1534  1.1  christos       echo "$ac_var='\''$ac_val'\''"
   1535  1.1  christos     done | sort
   1536  1.1  christos     echo
   1537  1.1  christos 
   1538  1.1  christos     if test -n "$ac_subst_files"; then
   1539  1.1  christos       cat <<\_ASBOX
   1540  1.1  christos ## ------------------- ##
   1541  1.1  christos ## File substitutions. ##
   1542  1.1  christos ## ------------------- ##
   1543  1.1  christos _ASBOX
   1544  1.1  christos       echo
   1545  1.1  christos       for ac_var in $ac_subst_files
   1546  1.1  christos       do
   1547  1.1  christos 	eval ac_val=\$$ac_var
   1548  1.1  christos 	case $ac_val in
   1549  1.1  christos 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1550  1.1  christos 	esac
   1551  1.1  christos 	echo "$ac_var='\''$ac_val'\''"
   1552  1.1  christos       done | sort
   1553  1.1  christos       echo
   1554  1.1  christos     fi
   1555  1.1  christos 
   1556  1.1  christos     if test -s confdefs.h; then
   1557  1.1  christos       cat <<\_ASBOX
   1558  1.1  christos ## ----------- ##
   1559  1.1  christos ## confdefs.h. ##
   1560  1.1  christos ## ----------- ##
   1561  1.1  christos _ASBOX
   1562  1.1  christos       echo
   1563  1.1  christos       cat confdefs.h
   1564  1.1  christos       echo
   1565  1.1  christos     fi
   1566  1.1  christos     test "$ac_signal" != 0 &&
   1567  1.1  christos       echo "$as_me: caught signal $ac_signal"
   1568  1.1  christos     echo "$as_me: exit $exit_status"
   1569  1.1  christos   } >&5
   1570  1.1  christos   rm -f core *.core core.conftest.* &&
   1571  1.1  christos     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1572  1.1  christos     exit $exit_status
   1573  1.1  christos ' 0
   1574  1.1  christos for ac_signal in 1 2 13 15; do
   1575  1.1  christos   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1576  1.1  christos done
   1577  1.1  christos ac_signal=0
   1578  1.1  christos 
   1579  1.1  christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1580  1.1  christos rm -f -r conftest* confdefs.h
   1581  1.1  christos 
   1582  1.1  christos # Predefined preprocessor variables.
   1583  1.1  christos 
   1584  1.1  christos cat >>confdefs.h <<_ACEOF
   1585  1.1  christos #define PACKAGE_NAME "$PACKAGE_NAME"
   1586  1.1  christos _ACEOF
   1587  1.1  christos 
   1588  1.1  christos 
   1589  1.1  christos cat >>confdefs.h <<_ACEOF
   1590  1.1  christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1591  1.1  christos _ACEOF
   1592  1.1  christos 
   1593  1.1  christos 
   1594  1.1  christos cat >>confdefs.h <<_ACEOF
   1595  1.1  christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1596  1.1  christos _ACEOF
   1597  1.1  christos 
   1598  1.1  christos 
   1599  1.1  christos cat >>confdefs.h <<_ACEOF
   1600  1.1  christos #define PACKAGE_STRING "$PACKAGE_STRING"
   1601  1.1  christos _ACEOF
   1602  1.1  christos 
   1603  1.1  christos 
   1604  1.1  christos cat >>confdefs.h <<_ACEOF
   1605  1.1  christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1606  1.1  christos _ACEOF
   1607  1.1  christos 
   1608  1.1  christos 
   1609  1.1  christos # Let the site file select an alternate cache file if it wants to.
   1610  1.1  christos # Prefer explicitly selected file to automatically selected ones.
   1611  1.1  christos if test -n "$CONFIG_SITE"; then
   1612  1.1  christos   set x "$CONFIG_SITE"
   1613  1.1  christos elif test "x$prefix" != xNONE; then
   1614  1.1  christos   set x "$prefix/share/config.site" "$prefix/etc/config.site"
   1615  1.1  christos else
   1616  1.1  christos   set x "$ac_default_prefix/share/config.site" \
   1617  1.1  christos 	"$ac_default_prefix/etc/config.site"
   1618  1.1  christos fi
   1619  1.1  christos shift
   1620  1.1  christos for ac_site_file
   1621  1.1  christos do
   1622  1.1  christos   if test -r "$ac_site_file"; then
   1623  1.1  christos     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1624  1.1  christos echo "$as_me: loading site script $ac_site_file" >&6;}
   1625  1.1  christos     sed 's/^/| /' "$ac_site_file" >&5
   1626  1.1  christos     . "$ac_site_file"
   1627  1.1  christos   fi
   1628  1.1  christos done
   1629  1.1  christos 
   1630  1.1  christos if test -r "$cache_file"; then
   1631  1.1  christos   # Some versions of bash will fail to source /dev/null (special
   1632  1.1  christos   # files actually), so we avoid doing that.
   1633  1.1  christos   if test -f "$cache_file"; then
   1634  1.1  christos     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1635  1.1  christos echo "$as_me: loading cache $cache_file" >&6;}
   1636  1.1  christos     case $cache_file in
   1637  1.1  christos       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   1638  1.1  christos       *)                      . "./$cache_file";;
   1639  1.1  christos     esac
   1640  1.1  christos   fi
   1641  1.1  christos else
   1642  1.1  christos   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   1643  1.1  christos echo "$as_me: creating cache $cache_file" >&6;}
   1644  1.1  christos   >$cache_file
   1645  1.1  christos fi
   1646  1.1  christos 
   1647  1.1  christos # Check that the precious variables saved in the cache have kept the same
   1648  1.1  christos # value.
   1649  1.1  christos ac_cache_corrupted=false
   1650  1.1  christos for ac_var in $ac_precious_vars; do
   1651  1.1  christos   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1652  1.1  christos   eval ac_new_set=\$ac_env_${ac_var}_set
   1653  1.1  christos   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   1654  1.1  christos   eval ac_new_val=\$ac_env_${ac_var}_value
   1655  1.1  christos   case $ac_old_set,$ac_new_set in
   1656  1.1  christos     set,)
   1657  1.1  christos       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1658  1.1  christos echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1659  1.1  christos       ac_cache_corrupted=: ;;
   1660  1.1  christos     ,set)
   1661  1.1  christos       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   1662  1.1  christos echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1663  1.1  christos       ac_cache_corrupted=: ;;
   1664  1.1  christos     ,);;
   1665  1.1  christos     *)
   1666  1.1  christos       if test "x$ac_old_val" != "x$ac_new_val"; then
   1667  1.1  christos 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   1668  1.1  christos echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1669  1.1  christos 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   1670  1.1  christos echo "$as_me:   former value:  $ac_old_val" >&2;}
   1671  1.1  christos 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   1672  1.1  christos echo "$as_me:   current value: $ac_new_val" >&2;}
   1673  1.1  christos 	ac_cache_corrupted=:
   1674  1.1  christos       fi;;
   1675  1.1  christos   esac
   1676  1.1  christos   # Pass precious variables to config.status.
   1677  1.1  christos   if test "$ac_new_set" = set; then
   1678  1.1  christos     case $ac_new_val in
   1679  1.1  christos     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   1680  1.1  christos     *) ac_arg=$ac_var=$ac_new_val ;;
   1681  1.1  christos     esac
   1682  1.1  christos     case " $ac_configure_args " in
   1683  1.1  christos       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1684  1.1  christos       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1685  1.1  christos     esac
   1686  1.1  christos   fi
   1687  1.1  christos done
   1688  1.1  christos if $ac_cache_corrupted; then
   1689  1.1  christos   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   1690  1.1  christos echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1691  1.1  christos   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1692  1.1  christos echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1693  1.1  christos    { (exit 1); exit 1; }; }
   1694  1.1  christos fi
   1695  1.1  christos 
   1696  1.1  christos 
   1697  1.1  christos 
   1698  1.1  christos 
   1699  1.1  christos 
   1700  1.1  christos 
   1701  1.1  christos 
   1702  1.1  christos 
   1703  1.1  christos 
   1704  1.1  christos 
   1705  1.1  christos 
   1706  1.1  christos 
   1707  1.1  christos 
   1708  1.1  christos 
   1709  1.1  christos 
   1710  1.1  christos 
   1711  1.1  christos 
   1712  1.1  christos ac_ext=c
   1713  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   1714  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1715  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1716  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1717  1.1  christos 
   1718  1.1  christos 
   1719  1.1  christos 
   1720  1.1  christos ac_aux_dir=
   1721  1.1  christos for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   1722  1.1  christos   if test -f "$ac_dir/install-sh"; then
   1723  1.1  christos     ac_aux_dir=$ac_dir
   1724  1.1  christos     ac_install_sh="$ac_aux_dir/install-sh -c"
   1725  1.1  christos     break
   1726  1.1  christos   elif test -f "$ac_dir/install.sh"; then
   1727  1.1  christos     ac_aux_dir=$ac_dir
   1728  1.1  christos     ac_install_sh="$ac_aux_dir/install.sh -c"
   1729  1.1  christos     break
   1730  1.1  christos   elif test -f "$ac_dir/shtool"; then
   1731  1.1  christos     ac_aux_dir=$ac_dir
   1732  1.1  christos     ac_install_sh="$ac_aux_dir/shtool install -c"
   1733  1.1  christos     break
   1734  1.1  christos   fi
   1735  1.1  christos done
   1736  1.1  christos if test -z "$ac_aux_dir"; then
   1737  1.1  christos   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
   1738  1.1  christos echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
   1739  1.1  christos    { (exit 1); exit 1; }; }
   1740  1.1  christos fi
   1741  1.1  christos 
   1742  1.1  christos # These three variables are undocumented and unsupported,
   1743  1.1  christos # and are intended to be withdrawn in a future Autoconf release.
   1744  1.1  christos # They can cause serious problems if a builder's source tree is in a directory
   1745  1.1  christos # whose full name contains unusual characters.
   1746  1.1  christos ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   1747  1.1  christos ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   1748  1.1  christos ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   1749  1.1  christos 
   1750  1.1  christos 
   1751  1.1  christos # Make sure we can run config.sub.
   1752  1.1  christos $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   1753  1.1  christos   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
   1754  1.1  christos echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   1755  1.1  christos    { (exit 1); exit 1; }; }
   1756  1.1  christos 
   1757  1.1  christos { echo "$as_me:$LINENO: checking build system type" >&5
   1758  1.1  christos echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
   1759  1.1  christos if test "${ac_cv_build+set}" = set; then
   1760  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1761  1.1  christos else
   1762  1.1  christos   ac_build_alias=$build_alias
   1763  1.1  christos test "x$ac_build_alias" = x &&
   1764  1.1  christos   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   1765  1.1  christos test "x$ac_build_alias" = x &&
   1766  1.1  christos   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   1767  1.1  christos echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   1768  1.1  christos    { (exit 1); exit 1; }; }
   1769  1.1  christos ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   1770  1.1  christos   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
   1771  1.1  christos echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   1772  1.1  christos    { (exit 1); exit 1; }; }
   1773  1.1  christos 
   1774  1.1  christos fi
   1775  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   1776  1.1  christos echo "${ECHO_T}$ac_cv_build" >&6; }
   1777  1.1  christos case $ac_cv_build in
   1778  1.1  christos *-*-*) ;;
   1779  1.1  christos *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
   1780  1.1  christos echo "$as_me: error: invalid value of canonical build" >&2;}
   1781  1.1  christos    { (exit 1); exit 1; }; };;
   1782  1.1  christos esac
   1783  1.1  christos build=$ac_cv_build
   1784  1.1  christos ac_save_IFS=$IFS; IFS='-'
   1785  1.1  christos set x $ac_cv_build
   1786  1.1  christos shift
   1787  1.1  christos build_cpu=$1
   1788  1.1  christos build_vendor=$2
   1789  1.1  christos shift; shift
   1790  1.1  christos # Remember, the first character of IFS is used to create $*,
   1791  1.1  christos # except with old shells:
   1792  1.1  christos build_os=$*
   1793  1.1  christos IFS=$ac_save_IFS
   1794  1.1  christos case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   1795  1.1  christos 
   1796  1.1  christos 
   1797  1.1  christos { echo "$as_me:$LINENO: checking host system type" >&5
   1798  1.1  christos echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
   1799  1.1  christos if test "${ac_cv_host+set}" = set; then
   1800  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1801  1.1  christos else
   1802  1.1  christos   if test "x$host_alias" = x; then
   1803  1.1  christos   ac_cv_host=$ac_cv_build
   1804  1.1  christos else
   1805  1.1  christos   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   1806  1.1  christos     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
   1807  1.1  christos echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   1808  1.1  christos    { (exit 1); exit 1; }; }
   1809  1.1  christos fi
   1810  1.1  christos 
   1811  1.1  christos fi
   1812  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   1813  1.1  christos echo "${ECHO_T}$ac_cv_host" >&6; }
   1814  1.1  christos case $ac_cv_host in
   1815  1.1  christos *-*-*) ;;
   1816  1.1  christos *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
   1817  1.1  christos echo "$as_me: error: invalid value of canonical host" >&2;}
   1818  1.1  christos    { (exit 1); exit 1; }; };;
   1819  1.1  christos esac
   1820  1.1  christos host=$ac_cv_host
   1821  1.1  christos ac_save_IFS=$IFS; IFS='-'
   1822  1.1  christos set x $ac_cv_host
   1823  1.1  christos shift
   1824  1.1  christos host_cpu=$1
   1825  1.1  christos host_vendor=$2
   1826  1.1  christos shift; shift
   1827  1.1  christos # Remember, the first character of IFS is used to create $*,
   1828  1.1  christos # except with old shells:
   1829  1.1  christos host_os=$*
   1830  1.1  christos IFS=$ac_save_IFS
   1831  1.1  christos case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   1832  1.1  christos 
   1833  1.1  christos 
   1834  1.1  christos 
   1835  1.1  christos 
   1836  1.1  christos 
   1837  1.1  christos 
   1838  1.1  christos 
   1839  1.1  christos 
   1840  1.1  christos 
   1841  1.1  christos # Check whether --with-gcc was given.
   1842  1.1  christos if test "${with_gcc+set}" = set; then
   1843  1.1  christos   withval=$with_gcc;
   1844  1.1  christos fi
   1845  1.1  christos 
   1846  1.1  christos     V_CCOPT="-O"
   1847  1.1  christos     V_INCLS=""
   1848  1.1  christos     if test "${srcdir}" != "." ; then
   1849  1.3  christos 	    V_INCLS="-I$srcdir"
   1850  1.1  christos     fi
   1851  1.1  christos     if test "${CFLAGS+set}" = set; then
   1852  1.1  christos 	    LBL_CFLAGS="$CFLAGS"
   1853  1.1  christos     fi
   1854  1.1  christos     if test -z "$CC" ; then
   1855  1.1  christos 	    case "$host_os" in
   1856  1.1  christos 
   1857  1.1  christos 	    bsdi*)
   1858  1.1  christos 		    # Extract the first word of "shlicc2", so it can be a program name with args.
   1859  1.1  christos set dummy shlicc2; ac_word=$2
   1860  1.1  christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1861  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1862  1.1  christos if test "${ac_cv_prog_SHLICC2+set}" = set; then
   1863  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1864  1.1  christos else
   1865  1.1  christos   if test -n "$SHLICC2"; then
   1866  1.1  christos   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
   1867  1.1  christos else
   1868  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1869  1.1  christos for as_dir in $PATH
   1870  1.1  christos do
   1871  1.1  christos   IFS=$as_save_IFS
   1872  1.1  christos   test -z "$as_dir" && as_dir=.
   1873  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1874  1.1  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1875  1.1  christos     ac_cv_prog_SHLICC2="yes"
   1876  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1877  1.1  christos     break 2
   1878  1.1  christos   fi
   1879  1.1  christos done
   1880  1.1  christos done
   1881  1.1  christos IFS=$as_save_IFS
   1882  1.1  christos 
   1883  1.1  christos   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
   1884  1.1  christos fi
   1885  1.1  christos fi
   1886  1.1  christos SHLICC2=$ac_cv_prog_SHLICC2
   1887  1.1  christos if test -n "$SHLICC2"; then
   1888  1.1  christos   { echo "$as_me:$LINENO: result: $SHLICC2" >&5
   1889  1.1  christos echo "${ECHO_T}$SHLICC2" >&6; }
   1890  1.1  christos else
   1891  1.1  christos   { echo "$as_me:$LINENO: result: no" >&5
   1892  1.1  christos echo "${ECHO_T}no" >&6; }
   1893  1.1  christos fi
   1894  1.1  christos 
   1895  1.1  christos 
   1896  1.1  christos 		    if test $SHLICC2 = yes ; then
   1897  1.1  christos 			    CC=shlicc2
   1898  1.1  christos 			    export CC
   1899  1.1  christos 		    fi
   1900  1.1  christos 		    ;;
   1901  1.1  christos 	    esac
   1902  1.1  christos     fi
   1903  1.1  christos     if test -z "$CC" -a "$with_gcc" = no ; then
   1904  1.1  christos 	    CC=cc
   1905  1.1  christos 	    export CC
   1906  1.1  christos     fi
   1907  1.1  christos 
   1908  1.1  christos ac_ext=c
   1909  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   1910  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1911  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1912  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1913  1.1  christos if test -n "$ac_tool_prefix"; then
   1914  1.1  christos   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1915  1.1  christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1916  1.1  christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1917  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1918  1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1919  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1920  1.1  christos else
   1921  1.1  christos   if test -n "$CC"; then
   1922  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1923  1.1  christos else
   1924  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1925  1.1  christos for as_dir in $PATH
   1926  1.1  christos do
   1927  1.1  christos   IFS=$as_save_IFS
   1928  1.1  christos   test -z "$as_dir" && as_dir=.
   1929  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1930  1.1  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1931  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1932  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1933  1.1  christos     break 2
   1934  1.1  christos   fi
   1935  1.1  christos done
   1936  1.1  christos done
   1937  1.1  christos IFS=$as_save_IFS
   1938  1.1  christos 
   1939  1.1  christos fi
   1940  1.1  christos fi
   1941  1.1  christos CC=$ac_cv_prog_CC
   1942  1.1  christos if test -n "$CC"; then
   1943  1.1  christos   { echo "$as_me:$LINENO: result: $CC" >&5
   1944  1.1  christos echo "${ECHO_T}$CC" >&6; }
   1945  1.1  christos else
   1946  1.1  christos   { echo "$as_me:$LINENO: result: no" >&5
   1947  1.1  christos echo "${ECHO_T}no" >&6; }
   1948  1.1  christos fi
   1949  1.1  christos 
   1950  1.1  christos 
   1951  1.1  christos fi
   1952  1.1  christos if test -z "$ac_cv_prog_CC"; then
   1953  1.1  christos   ac_ct_CC=$CC
   1954  1.1  christos   # Extract the first word of "gcc", so it can be a program name with args.
   1955  1.1  christos set dummy gcc; ac_word=$2
   1956  1.1  christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1957  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1958  1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1959  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1960  1.1  christos else
   1961  1.1  christos   if test -n "$ac_ct_CC"; then
   1962  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1963  1.1  christos else
   1964  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1965  1.1  christos for as_dir in $PATH
   1966  1.1  christos do
   1967  1.1  christos   IFS=$as_save_IFS
   1968  1.1  christos   test -z "$as_dir" && as_dir=.
   1969  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1970  1.1  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1971  1.1  christos     ac_cv_prog_ac_ct_CC="gcc"
   1972  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1973  1.1  christos     break 2
   1974  1.1  christos   fi
   1975  1.1  christos done
   1976  1.1  christos done
   1977  1.1  christos IFS=$as_save_IFS
   1978  1.1  christos 
   1979  1.1  christos fi
   1980  1.1  christos fi
   1981  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1982  1.1  christos if test -n "$ac_ct_CC"; then
   1983  1.1  christos   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1984  1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6; }
   1985  1.1  christos else
   1986  1.1  christos   { echo "$as_me:$LINENO: result: no" >&5
   1987  1.1  christos echo "${ECHO_T}no" >&6; }
   1988  1.1  christos fi
   1989  1.1  christos 
   1990  1.1  christos   if test "x$ac_ct_CC" = x; then
   1991  1.1  christos     CC=""
   1992  1.1  christos   else
   1993  1.1  christos     case $cross_compiling:$ac_tool_warned in
   1994  1.1  christos yes:)
   1995  1.1  christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   1996  1.1  christos whose name does not start with the host triplet.  If you think this
   1997  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   1998  1.1  christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   1999  1.1  christos whose name does not start with the host triplet.  If you think this
   2000  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2001  1.1  christos ac_tool_warned=yes ;;
   2002  1.1  christos esac
   2003  1.1  christos     CC=$ac_ct_CC
   2004  1.1  christos   fi
   2005  1.1  christos else
   2006  1.1  christos   CC="$ac_cv_prog_CC"
   2007  1.1  christos fi
   2008  1.1  christos 
   2009  1.1  christos if test -z "$CC"; then
   2010  1.1  christos           if test -n "$ac_tool_prefix"; then
   2011  1.1  christos     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2012  1.1  christos set dummy ${ac_tool_prefix}cc; ac_word=$2
   2013  1.1  christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2014  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2015  1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   2016  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2017  1.1  christos else
   2018  1.1  christos   if test -n "$CC"; then
   2019  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   2020  1.1  christos else
   2021  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2022  1.1  christos for as_dir in $PATH
   2023  1.1  christos do
   2024  1.1  christos   IFS=$as_save_IFS
   2025  1.1  christos   test -z "$as_dir" && as_dir=.
   2026  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   2027  1.1  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2028  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2029  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2030  1.1  christos     break 2
   2031  1.1  christos   fi
   2032  1.1  christos done
   2033  1.1  christos done
   2034  1.1  christos IFS=$as_save_IFS
   2035  1.1  christos 
   2036  1.1  christos fi
   2037  1.1  christos fi
   2038  1.1  christos CC=$ac_cv_prog_CC
   2039  1.1  christos if test -n "$CC"; then
   2040  1.1  christos   { echo "$as_me:$LINENO: result: $CC" >&5
   2041  1.1  christos echo "${ECHO_T}$CC" >&6; }
   2042  1.1  christos else
   2043  1.1  christos   { echo "$as_me:$LINENO: result: no" >&5
   2044  1.1  christos echo "${ECHO_T}no" >&6; }
   2045  1.1  christos fi
   2046  1.1  christos 
   2047  1.1  christos 
   2048  1.1  christos   fi
   2049  1.1  christos fi
   2050  1.1  christos if test -z "$CC"; then
   2051  1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   2052  1.1  christos set dummy cc; ac_word=$2
   2053  1.1  christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2054  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2055  1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   2056  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2057  1.1  christos else
   2058  1.1  christos   if test -n "$CC"; then
   2059  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   2060  1.1  christos else
   2061  1.1  christos   ac_prog_rejected=no
   2062  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2063  1.1  christos for as_dir in $PATH
   2064  1.1  christos do
   2065  1.1  christos   IFS=$as_save_IFS
   2066  1.1  christos   test -z "$as_dir" && as_dir=.
   2067  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   2068  1.1  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2069  1.1  christos     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2070  1.1  christos        ac_prog_rejected=yes
   2071  1.1  christos        continue
   2072  1.1  christos      fi
   2073  1.1  christos     ac_cv_prog_CC="cc"
   2074  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2075  1.1  christos     break 2
   2076  1.1  christos   fi
   2077  1.1  christos done
   2078  1.1  christos done
   2079  1.1  christos IFS=$as_save_IFS
   2080  1.1  christos 
   2081  1.1  christos if test $ac_prog_rejected = yes; then
   2082  1.1  christos   # We found a bogon in the path, so make sure we never use it.
   2083  1.1  christos   set dummy $ac_cv_prog_CC
   2084  1.1  christos   shift
   2085  1.1  christos   if test $# != 0; then
   2086  1.1  christos     # We chose a different compiler from the bogus one.
   2087  1.1  christos     # However, it has the same basename, so the bogon will be chosen
   2088  1.1  christos     # first if we set CC to just the basename; use the full file name.
   2089  1.1  christos     shift
   2090  1.1  christos     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2091  1.1  christos   fi
   2092  1.1  christos fi
   2093  1.1  christos fi
   2094  1.1  christos fi
   2095  1.1  christos CC=$ac_cv_prog_CC
   2096  1.1  christos if test -n "$CC"; then
   2097  1.1  christos   { echo "$as_me:$LINENO: result: $CC" >&5
   2098  1.1  christos echo "${ECHO_T}$CC" >&6; }
   2099  1.1  christos else
   2100  1.1  christos   { echo "$as_me:$LINENO: result: no" >&5
   2101  1.1  christos echo "${ECHO_T}no" >&6; }
   2102  1.1  christos fi
   2103  1.1  christos 
   2104  1.1  christos 
   2105  1.1  christos fi
   2106  1.1  christos if test -z "$CC"; then
   2107  1.1  christos   if test -n "$ac_tool_prefix"; then
   2108  1.1  christos   for ac_prog in cl.exe
   2109  1.1  christos   do
   2110  1.1  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2111  1.1  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2112  1.1  christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2113  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2114  1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   2115  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2116  1.1  christos else
   2117  1.1  christos   if test -n "$CC"; then
   2118  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   2119  1.1  christos else
   2120  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2121  1.1  christos for as_dir in $PATH
   2122  1.1  christos do
   2123  1.1  christos   IFS=$as_save_IFS
   2124  1.1  christos   test -z "$as_dir" && as_dir=.
   2125  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   2126  1.1  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2127  1.1  christos     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2128  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2129  1.1  christos     break 2
   2130  1.1  christos   fi
   2131  1.1  christos done
   2132  1.1  christos done
   2133  1.1  christos IFS=$as_save_IFS
   2134  1.1  christos 
   2135  1.1  christos fi
   2136  1.1  christos fi
   2137  1.1  christos CC=$ac_cv_prog_CC
   2138  1.1  christos if test -n "$CC"; then
   2139  1.1  christos   { echo "$as_me:$LINENO: result: $CC" >&5
   2140  1.1  christos echo "${ECHO_T}$CC" >&6; }
   2141  1.1  christos else
   2142  1.1  christos   { echo "$as_me:$LINENO: result: no" >&5
   2143  1.1  christos echo "${ECHO_T}no" >&6; }
   2144  1.1  christos fi
   2145  1.1  christos 
   2146  1.1  christos 
   2147  1.1  christos     test -n "$CC" && break
   2148  1.1  christos   done
   2149  1.1  christos fi
   2150  1.1  christos if test -z "$CC"; then
   2151  1.1  christos   ac_ct_CC=$CC
   2152  1.1  christos   for ac_prog in cl.exe
   2153  1.1  christos do
   2154  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2155  1.1  christos set dummy $ac_prog; ac_word=$2
   2156  1.1  christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2157  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2158  1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2159  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2160  1.1  christos else
   2161  1.1  christos   if test -n "$ac_ct_CC"; then
   2162  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2163  1.1  christos else
   2164  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2165  1.1  christos for as_dir in $PATH
   2166  1.1  christos do
   2167  1.1  christos   IFS=$as_save_IFS
   2168  1.1  christos   test -z "$as_dir" && as_dir=.
   2169  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   2170  1.1  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2171  1.1  christos     ac_cv_prog_ac_ct_CC="$ac_prog"
   2172  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2173  1.1  christos     break 2
   2174  1.1  christos   fi
   2175  1.1  christos done
   2176  1.1  christos done
   2177  1.1  christos IFS=$as_save_IFS
   2178  1.1  christos 
   2179  1.1  christos fi
   2180  1.1  christos fi
   2181  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2182  1.1  christos if test -n "$ac_ct_CC"; then
   2183  1.1  christos   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2184  1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6; }
   2185  1.1  christos else
   2186  1.1  christos   { echo "$as_me:$LINENO: result: no" >&5
   2187  1.1  christos echo "${ECHO_T}no" >&6; }
   2188  1.1  christos fi
   2189  1.1  christos 
   2190  1.1  christos 
   2191  1.1  christos   test -n "$ac_ct_CC" && break
   2192  1.1  christos done
   2193  1.1  christos 
   2194  1.1  christos   if test "x$ac_ct_CC" = x; then
   2195  1.1  christos     CC=""
   2196  1.1  christos   else
   2197  1.1  christos     case $cross_compiling:$ac_tool_warned in
   2198  1.1  christos yes:)
   2199  1.1  christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2200  1.1  christos whose name does not start with the host triplet.  If you think this
   2201  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2202  1.1  christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2203  1.1  christos whose name does not start with the host triplet.  If you think this
   2204  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2205  1.1  christos ac_tool_warned=yes ;;
   2206  1.1  christos esac
   2207  1.1  christos     CC=$ac_ct_CC
   2208  1.1  christos   fi
   2209  1.1  christos fi
   2210  1.1  christos 
   2211  1.1  christos fi
   2212  1.1  christos 
   2213  1.1  christos 
   2214  1.1  christos test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   2215  1.1  christos See \`config.log' for more details." >&5
   2216  1.1  christos echo "$as_me: error: no acceptable C compiler found in \$PATH
   2217  1.1  christos See \`config.log' for more details." >&2;}
   2218  1.1  christos    { (exit 1); exit 1; }; }
   2219  1.1  christos 
   2220  1.1  christos # Provide some information about the compiler.
   2221  1.1  christos echo "$as_me:$LINENO: checking for C compiler version" >&5
   2222  1.1  christos ac_compiler=`set X $ac_compile; echo $2`
   2223  1.1  christos { (ac_try="$ac_compiler --version >&5"
   2224  1.1  christos case "(($ac_try" in
   2225  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2226  1.1  christos   *) ac_try_echo=$ac_try;;
   2227  1.1  christos esac
   2228  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2229  1.1  christos   (eval "$ac_compiler --version >&5") 2>&5
   2230  1.1  christos   ac_status=$?
   2231  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2232  1.1  christos   (exit $ac_status); }
   2233  1.1  christos { (ac_try="$ac_compiler -v >&5"
   2234  1.1  christos case "(($ac_try" in
   2235  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2236  1.1  christos   *) ac_try_echo=$ac_try;;
   2237  1.1  christos esac
   2238  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2239  1.1  christos   (eval "$ac_compiler -v >&5") 2>&5
   2240  1.1  christos   ac_status=$?
   2241  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2242  1.1  christos   (exit $ac_status); }
   2243  1.1  christos { (ac_try="$ac_compiler -V >&5"
   2244  1.1  christos case "(($ac_try" in
   2245  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2246  1.1  christos   *) ac_try_echo=$ac_try;;
   2247  1.1  christos esac
   2248  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2249  1.1  christos   (eval "$ac_compiler -V >&5") 2>&5
   2250  1.1  christos   ac_status=$?
   2251  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2252  1.1  christos   (exit $ac_status); }
   2253  1.1  christos 
   2254  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   2255  1.1  christos /* confdefs.h.  */
   2256  1.1  christos _ACEOF
   2257  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2258  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2259  1.1  christos /* end confdefs.h.  */
   2260  1.1  christos 
   2261  1.1  christos int
   2262  1.1  christos main ()
   2263  1.1  christos {
   2264  1.1  christos 
   2265  1.1  christos   ;
   2266  1.1  christos   return 0;
   2267  1.1  christos }
   2268  1.1  christos _ACEOF
   2269  1.1  christos ac_clean_files_save=$ac_clean_files
   2270  1.1  christos ac_clean_files="$ac_clean_files a.out a.exe b.out"
   2271  1.1  christos # Try to create an executable without -o first, disregard a.out.
   2272  1.1  christos # It will help us diagnose broken compilers, and finding out an intuition
   2273  1.1  christos # of exeext.
   2274  1.1  christos { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   2275  1.1  christos echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
   2276  1.1  christos ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2277  1.1  christos #
   2278  1.1  christos # List of possible output files, starting from the most likely.
   2279  1.1  christos # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
   2280  1.1  christos # only as a last resort.  b.out is created by i960 compilers.
   2281  1.1  christos ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
   2282  1.1  christos #
   2283  1.1  christos # The IRIX 6 linker writes into existing files which may not be
   2284  1.1  christos # executable, retaining their permissions.  Remove them first so a
   2285  1.1  christos # subsequent execution test works.
   2286  1.1  christos ac_rmfiles=
   2287  1.1  christos for ac_file in $ac_files
   2288  1.1  christos do
   2289  1.1  christos   case $ac_file in
   2290  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2291  1.1  christos     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   2292  1.1  christos   esac
   2293  1.1  christos done
   2294  1.1  christos rm -f $ac_rmfiles
   2295  1.1  christos 
   2296  1.1  christos if { (ac_try="$ac_link_default"
   2297  1.1  christos case "(($ac_try" in
   2298  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2299  1.1  christos   *) ac_try_echo=$ac_try;;
   2300  1.1  christos esac
   2301  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2302  1.1  christos   (eval "$ac_link_default") 2>&5
   2303  1.1  christos   ac_status=$?
   2304  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2305  1.1  christos   (exit $ac_status); }; then
   2306  1.1  christos   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   2307  1.1  christos # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   2308  1.1  christos # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   2309  1.1  christos # so that the user can short-circuit this test for compilers unknown to
   2310  1.1  christos # Autoconf.
   2311  1.1  christos for ac_file in $ac_files ''
   2312  1.1  christos do
   2313  1.1  christos   test -f "$ac_file" || continue
   2314  1.1  christos   case $ac_file in
   2315  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
   2316  1.1  christos 	;;
   2317  1.1  christos     [ab].out )
   2318  1.1  christos 	# We found the default executable, but exeext='' is most
   2319  1.1  christos 	# certainly right.
   2320  1.1  christos 	break;;
   2321  1.1  christos     *.* )
   2322  1.1  christos         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   2323  1.1  christos 	then :; else
   2324  1.1  christos 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2325  1.1  christos 	fi
   2326  1.1  christos 	# We set ac_cv_exeext here because the later test for it is not
   2327  1.1  christos 	# safe: cross compilers may not add the suffix if given an `-o'
   2328  1.1  christos 	# argument, so we may need to know it at that point already.
   2329  1.1  christos 	# Even if this section looks crufty: it has the advantage of
   2330  1.1  christos 	# actually working.
   2331  1.1  christos 	break;;
   2332  1.1  christos     * )
   2333  1.1  christos 	break;;
   2334  1.1  christos   esac
   2335  1.1  christos done
   2336  1.1  christos test "$ac_cv_exeext" = no && ac_cv_exeext=
   2337  1.1  christos 
   2338  1.1  christos else
   2339  1.1  christos   ac_file=''
   2340  1.1  christos fi
   2341  1.1  christos 
   2342  1.1  christos { echo "$as_me:$LINENO: result: $ac_file" >&5
   2343  1.1  christos echo "${ECHO_T}$ac_file" >&6; }
   2344  1.1  christos if test -z "$ac_file"; then
   2345  1.1  christos   echo "$as_me: failed program was:" >&5
   2346  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2347  1.1  christos 
   2348  1.1  christos { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2349  1.1  christos See \`config.log' for more details." >&5
   2350  1.1  christos echo "$as_me: error: C compiler cannot create executables
   2351  1.1  christos See \`config.log' for more details." >&2;}
   2352  1.1  christos    { (exit 77); exit 77; }; }
   2353  1.1  christos fi
   2354  1.1  christos 
   2355  1.1  christos ac_exeext=$ac_cv_exeext
   2356  1.1  christos 
   2357  1.1  christos # Check that the compiler produces executables we can run.  If not, either
   2358  1.1  christos # the compiler is broken, or we cross compile.
   2359  1.1  christos { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2360  1.1  christos echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
   2361  1.1  christos # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2362  1.1  christos # If not cross compiling, check that we can run a simple program.
   2363  1.1  christos if test "$cross_compiling" != yes; then
   2364  1.1  christos   if { ac_try='./$ac_file'
   2365  1.1  christos   { (case "(($ac_try" in
   2366  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2367  1.1  christos   *) ac_try_echo=$ac_try;;
   2368  1.1  christos esac
   2369  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2370  1.1  christos   (eval "$ac_try") 2>&5
   2371  1.1  christos   ac_status=$?
   2372  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2373  1.1  christos   (exit $ac_status); }; }; then
   2374  1.1  christos     cross_compiling=no
   2375  1.1  christos   else
   2376  1.1  christos     if test "$cross_compiling" = maybe; then
   2377  1.1  christos 	cross_compiling=yes
   2378  1.1  christos     else
   2379  1.1  christos 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2380  1.1  christos If you meant to cross compile, use \`--host'.
   2381  1.1  christos See \`config.log' for more details." >&5
   2382  1.1  christos echo "$as_me: error: cannot run C compiled programs.
   2383  1.1  christos If you meant to cross compile, use \`--host'.
   2384  1.1  christos See \`config.log' for more details." >&2;}
   2385  1.1  christos    { (exit 1); exit 1; }; }
   2386  1.1  christos     fi
   2387  1.1  christos   fi
   2388  1.1  christos fi
   2389  1.1  christos { echo "$as_me:$LINENO: result: yes" >&5
   2390  1.1  christos echo "${ECHO_T}yes" >&6; }
   2391  1.1  christos 
   2392  1.1  christos rm -f a.out a.exe conftest$ac_cv_exeext b.out
   2393  1.1  christos ac_clean_files=$ac_clean_files_save
   2394  1.1  christos # Check that the compiler produces executables we can run.  If not, either
   2395  1.1  christos # the compiler is broken, or we cross compile.
   2396  1.1  christos { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2397  1.1  christos echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
   2398  1.1  christos { echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2399  1.1  christos echo "${ECHO_T}$cross_compiling" >&6; }
   2400  1.1  christos 
   2401  1.1  christos { echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2402  1.1  christos echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
   2403  1.1  christos if { (ac_try="$ac_link"
   2404  1.1  christos case "(($ac_try" in
   2405  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2406  1.1  christos   *) ac_try_echo=$ac_try;;
   2407  1.1  christos esac
   2408  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2409  1.1  christos   (eval "$ac_link") 2>&5
   2410  1.1  christos   ac_status=$?
   2411  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2412  1.1  christos   (exit $ac_status); }; then
   2413  1.1  christos   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2414  1.1  christos # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2415  1.1  christos # work properly (i.e., refer to `conftest.exe'), while it won't with
   2416  1.1  christos # `rm'.
   2417  1.1  christos for ac_file in conftest.exe conftest conftest.*; do
   2418  1.1  christos   test -f "$ac_file" || continue
   2419  1.1  christos   case $ac_file in
   2420  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2421  1.1  christos     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2422  1.1  christos 	  break;;
   2423  1.1  christos     * ) break;;
   2424  1.1  christos   esac
   2425  1.1  christos done
   2426  1.1  christos else
   2427  1.1  christos   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   2428  1.1  christos See \`config.log' for more details." >&5
   2429  1.1  christos echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   2430  1.1  christos See \`config.log' for more details." >&2;}
   2431  1.1  christos    { (exit 1); exit 1; }; }
   2432  1.1  christos fi
   2433  1.1  christos 
   2434  1.1  christos rm -f conftest$ac_cv_exeext
   2435  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2436  1.1  christos echo "${ECHO_T}$ac_cv_exeext" >&6; }
   2437  1.1  christos 
   2438  1.1  christos rm -f conftest.$ac_ext
   2439  1.1  christos EXEEXT=$ac_cv_exeext
   2440  1.1  christos ac_exeext=$EXEEXT
   2441  1.1  christos { echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2442  1.1  christos echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
   2443  1.1  christos if test "${ac_cv_objext+set}" = set; then
   2444  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2445  1.1  christos else
   2446  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2447  1.1  christos /* confdefs.h.  */
   2448  1.1  christos _ACEOF
   2449  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2450  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2451  1.1  christos /* end confdefs.h.  */
   2452  1.1  christos 
   2453  1.1  christos int
   2454  1.1  christos main ()
   2455  1.1  christos {
   2456  1.1  christos 
   2457  1.1  christos   ;
   2458  1.1  christos   return 0;
   2459  1.1  christos }
   2460  1.1  christos _ACEOF
   2461  1.1  christos rm -f conftest.o conftest.obj
   2462  1.1  christos if { (ac_try="$ac_compile"
   2463  1.1  christos case "(($ac_try" in
   2464  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2465  1.1  christos   *) ac_try_echo=$ac_try;;
   2466  1.1  christos esac
   2467  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2468  1.1  christos   (eval "$ac_compile") 2>&5
   2469  1.1  christos   ac_status=$?
   2470  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2471  1.1  christos   (exit $ac_status); }; then
   2472  1.1  christos   for ac_file in conftest.o conftest.obj conftest.*; do
   2473  1.1  christos   test -f "$ac_file" || continue;
   2474  1.1  christos   case $ac_file in
   2475  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
   2476  1.1  christos     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2477  1.1  christos        break;;
   2478  1.1  christos   esac
   2479  1.1  christos done
   2480  1.1  christos else
   2481  1.1  christos   echo "$as_me: failed program was:" >&5
   2482  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2483  1.1  christos 
   2484  1.1  christos { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   2485  1.1  christos See \`config.log' for more details." >&5
   2486  1.1  christos echo "$as_me: error: cannot compute suffix of object files: cannot compile
   2487  1.1  christos See \`config.log' for more details." >&2;}
   2488  1.1  christos    { (exit 1); exit 1; }; }
   2489  1.1  christos fi
   2490  1.1  christos 
   2491  1.1  christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2492  1.1  christos fi
   2493  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   2494  1.1  christos echo "${ECHO_T}$ac_cv_objext" >&6; }
   2495  1.1  christos OBJEXT=$ac_cv_objext
   2496  1.1  christos ac_objext=$OBJEXT
   2497  1.1  christos { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   2498  1.1  christos echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
   2499  1.1  christos if test "${ac_cv_c_compiler_gnu+set}" = set; then
   2500  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2501  1.1  christos else
   2502  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2503  1.1  christos /* confdefs.h.  */
   2504  1.1  christos _ACEOF
   2505  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2506  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2507  1.1  christos /* end confdefs.h.  */
   2508  1.1  christos 
   2509  1.1  christos int
   2510  1.1  christos main ()
   2511  1.1  christos {
   2512  1.1  christos #ifndef __GNUC__
   2513  1.1  christos        choke me
   2514  1.1  christos #endif
   2515  1.1  christos 
   2516  1.1  christos   ;
   2517  1.1  christos   return 0;
   2518  1.1  christos }
   2519  1.1  christos _ACEOF
   2520  1.1  christos rm -f conftest.$ac_objext
   2521  1.1  christos if { (ac_try="$ac_compile"
   2522  1.1  christos case "(($ac_try" in
   2523  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2524  1.1  christos   *) ac_try_echo=$ac_try;;
   2525  1.1  christos esac
   2526  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2527  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   2528  1.1  christos   ac_status=$?
   2529  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2530  1.1  christos   rm -f conftest.er1
   2531  1.1  christos   cat conftest.err >&5
   2532  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2533  1.1  christos   (exit $ac_status); } && {
   2534  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   2535  1.1  christos 	 test ! -s conftest.err
   2536  1.1  christos        } && test -s conftest.$ac_objext; then
   2537  1.1  christos   ac_compiler_gnu=yes
   2538  1.1  christos else
   2539  1.1  christos   echo "$as_me: failed program was:" >&5
   2540  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2541  1.1  christos 
   2542  1.1  christos 	ac_compiler_gnu=no
   2543  1.1  christos fi
   2544  1.1  christos 
   2545  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2546  1.1  christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2547  1.1  christos 
   2548  1.1  christos fi
   2549  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2550  1.1  christos echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
   2551  1.1  christos GCC=`test $ac_compiler_gnu = yes && echo yes`
   2552  1.1  christos ac_test_CFLAGS=${CFLAGS+set}
   2553  1.1  christos ac_save_CFLAGS=$CFLAGS
   2554  1.1  christos { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2555  1.1  christos echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
   2556  1.1  christos if test "${ac_cv_prog_cc_g+set}" = set; then
   2557  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2558  1.1  christos else
   2559  1.1  christos   ac_save_c_werror_flag=$ac_c_werror_flag
   2560  1.1  christos    ac_c_werror_flag=yes
   2561  1.1  christos    ac_cv_prog_cc_g=no
   2562  1.1  christos    CFLAGS="-g"
   2563  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   2564  1.1  christos /* confdefs.h.  */
   2565  1.1  christos _ACEOF
   2566  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2567  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2568  1.1  christos /* end confdefs.h.  */
   2569  1.1  christos 
   2570  1.1  christos int
   2571  1.1  christos main ()
   2572  1.1  christos {
   2573  1.1  christos 
   2574  1.1  christos   ;
   2575  1.1  christos   return 0;
   2576  1.1  christos }
   2577  1.1  christos _ACEOF
   2578  1.1  christos rm -f conftest.$ac_objext
   2579  1.1  christos if { (ac_try="$ac_compile"
   2580  1.1  christos case "(($ac_try" in
   2581  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2582  1.1  christos   *) ac_try_echo=$ac_try;;
   2583  1.1  christos esac
   2584  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2585  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   2586  1.1  christos   ac_status=$?
   2587  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2588  1.1  christos   rm -f conftest.er1
   2589  1.1  christos   cat conftest.err >&5
   2590  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2591  1.1  christos   (exit $ac_status); } && {
   2592  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   2593  1.1  christos 	 test ! -s conftest.err
   2594  1.1  christos        } && test -s conftest.$ac_objext; then
   2595  1.1  christos   ac_cv_prog_cc_g=yes
   2596  1.1  christos else
   2597  1.1  christos   echo "$as_me: failed program was:" >&5
   2598  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2599  1.1  christos 
   2600  1.1  christos 	CFLAGS=""
   2601  1.1  christos       cat >conftest.$ac_ext <<_ACEOF
   2602  1.1  christos /* confdefs.h.  */
   2603  1.1  christos _ACEOF
   2604  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2605  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2606  1.1  christos /* end confdefs.h.  */
   2607  1.1  christos 
   2608  1.1  christos int
   2609  1.1  christos main ()
   2610  1.1  christos {
   2611  1.1  christos 
   2612  1.1  christos   ;
   2613  1.1  christos   return 0;
   2614  1.1  christos }
   2615  1.1  christos _ACEOF
   2616  1.1  christos rm -f conftest.$ac_objext
   2617  1.1  christos if { (ac_try="$ac_compile"
   2618  1.1  christos case "(($ac_try" in
   2619  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2620  1.1  christos   *) ac_try_echo=$ac_try;;
   2621  1.1  christos esac
   2622  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2623  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   2624  1.1  christos   ac_status=$?
   2625  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2626  1.1  christos   rm -f conftest.er1
   2627  1.1  christos   cat conftest.err >&5
   2628  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2629  1.1  christos   (exit $ac_status); } && {
   2630  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   2631  1.1  christos 	 test ! -s conftest.err
   2632  1.1  christos        } && test -s conftest.$ac_objext; then
   2633  1.1  christos   :
   2634  1.1  christos else
   2635  1.1  christos   echo "$as_me: failed program was:" >&5
   2636  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2637  1.1  christos 
   2638  1.1  christos 	ac_c_werror_flag=$ac_save_c_werror_flag
   2639  1.1  christos 	 CFLAGS="-g"
   2640  1.1  christos 	 cat >conftest.$ac_ext <<_ACEOF
   2641  1.1  christos /* confdefs.h.  */
   2642  1.1  christos _ACEOF
   2643  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2644  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2645  1.1  christos /* end confdefs.h.  */
   2646  1.1  christos 
   2647  1.1  christos int
   2648  1.1  christos main ()
   2649  1.1  christos {
   2650  1.1  christos 
   2651  1.1  christos   ;
   2652  1.1  christos   return 0;
   2653  1.1  christos }
   2654  1.1  christos _ACEOF
   2655  1.1  christos rm -f conftest.$ac_objext
   2656  1.1  christos if { (ac_try="$ac_compile"
   2657  1.1  christos case "(($ac_try" in
   2658  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2659  1.1  christos   *) ac_try_echo=$ac_try;;
   2660  1.1  christos esac
   2661  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2662  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   2663  1.1  christos   ac_status=$?
   2664  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2665  1.1  christos   rm -f conftest.er1
   2666  1.1  christos   cat conftest.err >&5
   2667  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2668  1.1  christos   (exit $ac_status); } && {
   2669  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   2670  1.1  christos 	 test ! -s conftest.err
   2671  1.1  christos        } && test -s conftest.$ac_objext; then
   2672  1.1  christos   ac_cv_prog_cc_g=yes
   2673  1.1  christos else
   2674  1.1  christos   echo "$as_me: failed program was:" >&5
   2675  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2676  1.1  christos 
   2677  1.1  christos 
   2678  1.1  christos fi
   2679  1.1  christos 
   2680  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2681  1.1  christos fi
   2682  1.1  christos 
   2683  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2684  1.1  christos fi
   2685  1.1  christos 
   2686  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2687  1.1  christos    ac_c_werror_flag=$ac_save_c_werror_flag
   2688  1.1  christos fi
   2689  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   2690  1.1  christos echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
   2691  1.1  christos if test "$ac_test_CFLAGS" = set; then
   2692  1.1  christos   CFLAGS=$ac_save_CFLAGS
   2693  1.1  christos elif test $ac_cv_prog_cc_g = yes; then
   2694  1.1  christos   if test "$GCC" = yes; then
   2695  1.1  christos     CFLAGS="-g -O2"
   2696  1.1  christos   else
   2697  1.1  christos     CFLAGS="-g"
   2698  1.1  christos   fi
   2699  1.1  christos else
   2700  1.1  christos   if test "$GCC" = yes; then
   2701  1.1  christos     CFLAGS="-O2"
   2702  1.1  christos   else
   2703  1.1  christos     CFLAGS=
   2704  1.1  christos   fi
   2705  1.1  christos fi
   2706  1.1  christos { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
   2707  1.1  christos echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
   2708  1.1  christos if test "${ac_cv_prog_cc_c89+set}" = set; then
   2709  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2710  1.1  christos else
   2711  1.1  christos   ac_cv_prog_cc_c89=no
   2712  1.1  christos ac_save_CC=$CC
   2713  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   2714  1.1  christos /* confdefs.h.  */
   2715  1.1  christos _ACEOF
   2716  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2717  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2718  1.1  christos /* end confdefs.h.  */
   2719  1.1  christos #include <stdarg.h>
   2720  1.1  christos #include <stdio.h>
   2721  1.1  christos #include <sys/types.h>
   2722  1.1  christos #include <sys/stat.h>
   2723  1.1  christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2724  1.1  christos struct buf { int x; };
   2725  1.1  christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2726  1.1  christos static char *e (p, i)
   2727  1.1  christos      char **p;
   2728  1.1  christos      int i;
   2729  1.1  christos {
   2730  1.1  christos   return p[i];
   2731  1.1  christos }
   2732  1.1  christos static char *f (char * (*g) (char **, int), char **p, ...)
   2733  1.1  christos {
   2734  1.1  christos   char *s;
   2735  1.1  christos   va_list v;
   2736  1.1  christos   va_start (v,p);
   2737  1.1  christos   s = g (p, va_arg (v,int));
   2738  1.1  christos   va_end (v);
   2739  1.1  christos   return s;
   2740  1.1  christos }
   2741  1.1  christos 
   2742  1.1  christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2743  1.1  christos    function prototypes and stuff, but not '\xHH' hex character constants.
   2744  1.1  christos    These don't provoke an error unfortunately, instead are silently treated
   2745  1.1  christos    as 'x'.  The following induces an error, until -std is added to get
   2746  1.1  christos    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   2747  1.1  christos    array size at least.  It's necessary to write '\x00'==0 to get something
   2748  1.1  christos    that's true only with -std.  */
   2749  1.1  christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   2750  1.1  christos 
   2751  1.1  christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2752  1.1  christos    inside strings and character constants.  */
   2753  1.1  christos #define FOO(x) 'x'
   2754  1.1  christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   2755  1.1  christos 
   2756  1.1  christos int test (int i, double x);
   2757  1.1  christos struct s1 {int (*f) (int a);};
   2758  1.1  christos struct s2 {int (*f) (double a);};
   2759  1.1  christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2760  1.1  christos int argc;
   2761  1.1  christos char **argv;
   2762  1.1  christos int
   2763  1.1  christos main ()
   2764  1.1  christos {
   2765  1.1  christos return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2766  1.1  christos   ;
   2767  1.1  christos   return 0;
   2768  1.1  christos }
   2769  1.1  christos _ACEOF
   2770  1.1  christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   2771  1.1  christos 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2772  1.1  christos do
   2773  1.1  christos   CC="$ac_save_CC $ac_arg"
   2774  1.1  christos   rm -f conftest.$ac_objext
   2775  1.1  christos if { (ac_try="$ac_compile"
   2776  1.1  christos case "(($ac_try" in
   2777  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2778  1.1  christos   *) ac_try_echo=$ac_try;;
   2779  1.1  christos esac
   2780  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2781  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   2782  1.1  christos   ac_status=$?
   2783  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2784  1.1  christos   rm -f conftest.er1
   2785  1.1  christos   cat conftest.err >&5
   2786  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2787  1.1  christos   (exit $ac_status); } && {
   2788  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   2789  1.1  christos 	 test ! -s conftest.err
   2790  1.1  christos        } && test -s conftest.$ac_objext; then
   2791  1.1  christos   ac_cv_prog_cc_c89=$ac_arg
   2792  1.1  christos else
   2793  1.1  christos   echo "$as_me: failed program was:" >&5
   2794  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2795  1.1  christos 
   2796  1.1  christos 
   2797  1.1  christos fi
   2798  1.1  christos 
   2799  1.1  christos rm -f core conftest.err conftest.$ac_objext
   2800  1.1  christos   test "x$ac_cv_prog_cc_c89" != "xno" && break
   2801  1.1  christos done
   2802  1.1  christos rm -f conftest.$ac_ext
   2803  1.1  christos CC=$ac_save_CC
   2804  1.1  christos 
   2805  1.1  christos fi
   2806  1.1  christos # AC_CACHE_VAL
   2807  1.1  christos case "x$ac_cv_prog_cc_c89" in
   2808  1.1  christos   x)
   2809  1.1  christos     { echo "$as_me:$LINENO: result: none needed" >&5
   2810  1.1  christos echo "${ECHO_T}none needed" >&6; } ;;
   2811  1.1  christos   xno)
   2812  1.1  christos     { echo "$as_me:$LINENO: result: unsupported" >&5
   2813  1.1  christos echo "${ECHO_T}unsupported" >&6; } ;;
   2814  1.1  christos   *)
   2815  1.1  christos     CC="$CC $ac_cv_prog_cc_c89"
   2816  1.1  christos     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
   2817  1.1  christos echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
   2818  1.1  christos esac
   2819  1.1  christos 
   2820  1.1  christos 
   2821  1.1  christos ac_ext=c
   2822  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   2823  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2824  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2825  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2826  1.1  christos 
   2827  1.1  christos 
   2828  1.1  christos 
   2829  1.1  christos 
   2830  1.1  christos 
   2831  1.1  christos     if test "$GCC" = yes ; then
   2832  1.1  christos 	    if test "$SHLICC2" = yes ; then
   2833  1.1  christos 		    ac_cv_lbl_gcc_vers=2
   2834  1.1  christos 		    V_CCOPT="-O2"
   2835  1.1  christos 	    else
   2836  1.1  christos 		    { echo "$as_me:$LINENO: checking gcc version" >&5
   2837  1.1  christos echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
   2838  1.1  christos 		    if test "${ac_cv_lbl_gcc_vers+set}" = set; then
   2839  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2840  1.1  christos else
   2841  1.1  christos   ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
   2842  1.1  christos 			    sed -e '/^gcc version /!d' \
   2843  1.1  christos 				-e 's/^gcc version //' \
   2844  1.1  christos 				-e 's/ .*//' -e 's/^[^0-9]*//' \
   2845  1.1  christos 				-e 's/\..*//'`
   2846  1.1  christos fi
   2847  1.1  christos 
   2848  1.1  christos 		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
   2849  1.1  christos echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
   2850  1.1  christos 		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
   2851  1.1  christos 			    V_CCOPT="-O2"
   2852  1.1  christos 		    fi
   2853  1.1  christos 	    fi
   2854  1.1  christos     else
   2855  1.1  christos 	    { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
   2856  1.1  christos echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
   2857  1.1  christos 	    if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
   2858  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2859  1.1  christos else
   2860  1.1  christos 
   2861  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   2862  1.1  christos /* confdefs.h.  */
   2863  1.1  christos _ACEOF
   2864  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2865  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2866  1.1  christos /* end confdefs.h.  */
   2867  1.1  christos #include <sys/types.h>
   2868  1.1  christos int
   2869  1.1  christos main ()
   2870  1.1  christos {
   2871  1.1  christos int frob(int, char *)
   2872  1.1  christos   ;
   2873  1.1  christos   return 0;
   2874  1.1  christos }
   2875  1.1  christos _ACEOF
   2876  1.1  christos rm -f conftest.$ac_objext
   2877  1.1  christos if { (ac_try="$ac_compile"
   2878  1.1  christos case "(($ac_try" in
   2879  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2880  1.1  christos   *) ac_try_echo=$ac_try;;
   2881  1.1  christos esac
   2882  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2883  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   2884  1.1  christos   ac_status=$?
   2885  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2886  1.1  christos   rm -f conftest.er1
   2887  1.1  christos   cat conftest.err >&5
   2888  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2889  1.1  christos   (exit $ac_status); } && {
   2890  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   2891  1.1  christos 	 test ! -s conftest.err
   2892  1.1  christos        } && test -s conftest.$ac_objext; then
   2893  1.1  christos   ac_cv_lbl_cc_ansi_prototypes=yes
   2894  1.1  christos else
   2895  1.1  christos   echo "$as_me: failed program was:" >&5
   2896  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2897  1.1  christos 
   2898  1.1  christos 	ac_cv_lbl_cc_ansi_prototypes=no
   2899  1.1  christos fi
   2900  1.1  christos 
   2901  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2902  1.1  christos fi
   2903  1.1  christos 
   2904  1.1  christos 	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
   2905  1.1  christos echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
   2906  1.1  christos 	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
   2907  1.1  christos 		    case "$host_os" in
   2908  1.1  christos 
   2909  1.1  christos 		    hpux*)
   2910  1.1  christos 			    { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
   2911  1.1  christos echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
   2912  1.1  christos 			    savedcflags="$CFLAGS"
   2913  1.1  christos 			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
   2914  1.1  christos 			    if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
   2915  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2916  1.1  christos else
   2917  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2918  1.1  christos /* confdefs.h.  */
   2919  1.1  christos _ACEOF
   2920  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2921  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2922  1.1  christos /* end confdefs.h.  */
   2923  1.1  christos #include <sys/types.h>
   2924  1.1  christos int
   2925  1.1  christos main ()
   2926  1.1  christos {
   2927  1.1  christos int frob(int, char *)
   2928  1.1  christos   ;
   2929  1.1  christos   return 0;
   2930  1.1  christos }
   2931  1.1  christos _ACEOF
   2932  1.1  christos rm -f conftest.$ac_objext
   2933  1.1  christos if { (ac_try="$ac_compile"
   2934  1.1  christos case "(($ac_try" in
   2935  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2936  1.1  christos   *) ac_try_echo=$ac_try;;
   2937  1.1  christos esac
   2938  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2939  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   2940  1.1  christos   ac_status=$?
   2941  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2942  1.1  christos   rm -f conftest.er1
   2943  1.1  christos   cat conftest.err >&5
   2944  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2945  1.1  christos   (exit $ac_status); } && {
   2946  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   2947  1.1  christos 	 test ! -s conftest.err
   2948  1.1  christos        } && test -s conftest.$ac_objext; then
   2949  1.1  christos   ac_cv_lbl_cc_hpux_cc_aa=yes
   2950  1.1  christos else
   2951  1.1  christos   echo "$as_me: failed program was:" >&5
   2952  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2953  1.1  christos 
   2954  1.1  christos 	ac_cv_lbl_cc_hpux_cc_aa=no
   2955  1.1  christos fi
   2956  1.1  christos 
   2957  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2958  1.1  christos fi
   2959  1.1  christos 
   2960  1.1  christos 			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
   2961  1.1  christos echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
   2962  1.1  christos 			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
   2963  1.1  christos 				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
   2964  1.1  christos echo "$as_me: error: see the INSTALL doc for more info" >&2;}
   2965  1.1  christos    { (exit 1); exit 1; }; }
   2966  1.1  christos 			    fi
   2967  1.1  christos 			    CFLAGS="$savedcflags"
   2968  1.1  christos 			    V_CCOPT="-Aa $V_CCOPT"
   2969  1.1  christos 
   2970  1.1  christos cat >>confdefs.h <<\_ACEOF
   2971  1.1  christos #define _HPUX_SOURCE 1
   2972  1.1  christos _ACEOF
   2973  1.1  christos 
   2974  1.1  christos 			    ;;
   2975  1.1  christos 
   2976  1.1  christos 		    osf*)
   2977  1.1  christos 			    { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
   2978  1.1  christos echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
   2979  1.1  christos 			    savedcflags="$CFLAGS"
   2980  1.1  christos 			    CFLAGS="-std1"
   2981  1.1  christos 			    if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
   2982  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2983  1.1  christos else
   2984  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2985  1.1  christos /* confdefs.h.  */
   2986  1.1  christos _ACEOF
   2987  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2988  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2989  1.1  christos /* end confdefs.h.  */
   2990  1.1  christos #include <sys/types.h>
   2991  1.1  christos int
   2992  1.1  christos main ()
   2993  1.1  christos {
   2994  1.1  christos int frob(int, char *)
   2995  1.1  christos   ;
   2996  1.1  christos   return 0;
   2997  1.1  christos }
   2998  1.1  christos _ACEOF
   2999  1.1  christos rm -f conftest.$ac_objext
   3000  1.1  christos if { (ac_try="$ac_compile"
   3001  1.1  christos case "(($ac_try" in
   3002  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3003  1.1  christos   *) ac_try_echo=$ac_try;;
   3004  1.1  christos esac
   3005  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3006  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   3007  1.1  christos   ac_status=$?
   3008  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3009  1.1  christos   rm -f conftest.er1
   3010  1.1  christos   cat conftest.err >&5
   3011  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3012  1.1  christos   (exit $ac_status); } && {
   3013  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   3014  1.1  christos 	 test ! -s conftest.err
   3015  1.1  christos        } && test -s conftest.$ac_objext; then
   3016  1.1  christos   ac_cv_lbl_cc_osf1_cc_std1=yes
   3017  1.1  christos else
   3018  1.1  christos   echo "$as_me: failed program was:" >&5
   3019  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3020  1.1  christos 
   3021  1.1  christos 	ac_cv_lbl_cc_osf1_cc_std1=no
   3022  1.1  christos fi
   3023  1.1  christos 
   3024  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3025  1.1  christos fi
   3026  1.1  christos 
   3027  1.1  christos 			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
   3028  1.1  christos echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
   3029  1.1  christos 			    if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
   3030  1.1  christos 				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
   3031  1.1  christos echo "$as_me: error: see the INSTALL doc for more info" >&2;}
   3032  1.1  christos    { (exit 1); exit 1; }; }
   3033  1.1  christos 			    fi
   3034  1.1  christos 			    CFLAGS="$savedcflags"
   3035  1.1  christos 			    V_CCOPT="-std1 $V_CCOPT"
   3036  1.1  christos 			    ;;
   3037  1.1  christos 
   3038  1.1  christos 		    *)
   3039  1.1  christos 			    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
   3040  1.1  christos echo "$as_me: error: see the INSTALL doc for more info" >&2;}
   3041  1.1  christos    { (exit 1); exit 1; }; }
   3042  1.1  christos 			    ;;
   3043  1.1  christos 		    esac
   3044  1.1  christos 	    fi
   3045  1.1  christos 	    V_INCLS="$V_INCLS -I/usr/local/include"
   3046  1.1  christos 	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
   3047  1.1  christos 
   3048  1.1  christos 	    case "$host_os" in
   3049  1.1  christos 
   3050  1.1  christos 	    irix*)
   3051  1.1  christos 		    V_CCOPT="$V_CCOPT -xansi -signed -O"
   3052  1.1  christos 		    ;;
   3053  1.1  christos 
   3054  1.1  christos 	    osf*)
   3055  1.1  christos 	    	    #
   3056  1.1  christos 		    # Presumed to be DEC OSF/1, Digital UNIX, or
   3057  1.1  christos 		    # Tru64 UNIX.
   3058  1.1  christos 		    #
   3059  1.1  christos 		    V_CCOPT="$V_CCOPT -O"
   3060  1.1  christos 		    ;;
   3061  1.1  christos 
   3062  1.1  christos 	    ultrix*)
   3063  1.1  christos 		    { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
   3064  1.1  christos echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
   3065  1.1  christos 		    if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
   3066  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3067  1.1  christos else
   3068  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3069  1.1  christos /* confdefs.h.  */
   3070  1.1  christos _ACEOF
   3071  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3072  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3073  1.1  christos /* end confdefs.h.  */
   3074  1.1  christos #include <sys/types.h>
   3075  1.1  christos int
   3076  1.1  christos main ()
   3077  1.1  christos {
   3078  1.1  christos struct a { int b; };
   3079  1.1  christos 			    void c(const struct a *)
   3080  1.1  christos   ;
   3081  1.1  christos   return 0;
   3082  1.1  christos }
   3083  1.1  christos _ACEOF
   3084  1.1  christos rm -f conftest.$ac_objext
   3085  1.1  christos if { (ac_try="$ac_compile"
   3086  1.1  christos case "(($ac_try" in
   3087  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3088  1.1  christos   *) ac_try_echo=$ac_try;;
   3089  1.1  christos esac
   3090  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3091  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   3092  1.1  christos   ac_status=$?
   3093  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3094  1.1  christos   rm -f conftest.er1
   3095  1.1  christos   cat conftest.err >&5
   3096  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3097  1.1  christos   (exit $ac_status); } && {
   3098  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   3099  1.1  christos 	 test ! -s conftest.err
   3100  1.1  christos        } && test -s conftest.$ac_objext; then
   3101  1.1  christos   ac_cv_lbl_cc_const_proto=yes
   3102  1.1  christos else
   3103  1.1  christos   echo "$as_me: failed program was:" >&5
   3104  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3105  1.1  christos 
   3106  1.1  christos 	ac_cv_lbl_cc_const_proto=no
   3107  1.1  christos fi
   3108  1.1  christos 
   3109  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3110  1.1  christos fi
   3111  1.1  christos 
   3112  1.1  christos 		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
   3113  1.1  christos echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
   3114  1.1  christos 		    if test $ac_cv_lbl_cc_const_proto = no ; then
   3115  1.1  christos 
   3116  1.1  christos cat >>confdefs.h <<\_ACEOF
   3117  1.1  christos #define const
   3118  1.1  christos _ACEOF
   3119  1.1  christos 
   3120  1.1  christos 		    fi
   3121  1.1  christos 		    ;;
   3122  1.1  christos 	    esac
   3123  1.1  christos     fi
   3124  1.1  christos 
   3125  1.1  christos { echo "$as_me:$LINENO: checking for inline" >&5
   3126  1.1  christos echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
   3127  1.1  christos     save_CFLAGS="$CFLAGS"
   3128  1.1  christos     CFLAGS="$V_CCOPT"
   3129  1.1  christos     if test "${ac_cv_lbl_inline+set}" = set; then
   3130  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3131  1.1  christos else
   3132  1.1  christos 
   3133  1.1  christos 	ac_cv_lbl_inline=""
   3134  1.1  christos 	ac_lbl_cc_inline=no
   3135  1.1  christos 	for ac_lbl_inline in inline __inline__ __inline
   3136  1.1  christos 	do
   3137  1.1  christos 	    cat >conftest.$ac_ext <<_ACEOF
   3138  1.1  christos /* confdefs.h.  */
   3139  1.1  christos _ACEOF
   3140  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3141  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3142  1.1  christos /* end confdefs.h.  */
   3143  1.1  christos #define inline $ac_lbl_inline
   3144  1.1  christos 		static inline struct iltest *foo(void);
   3145  1.1  christos 		struct iltest {
   3146  1.1  christos 		    int iltest1;
   3147  1.1  christos 		    int iltest2;
   3148  1.1  christos 		};
   3149  1.1  christos 
   3150  1.1  christos 		static inline struct iltest *
   3151  1.1  christos 		foo()
   3152  1.1  christos 		{
   3153  1.1  christos 		    static struct iltest xxx;
   3154  1.1  christos 
   3155  1.1  christos 		    return &xxx;
   3156  1.1  christos 		}
   3157  1.1  christos int
   3158  1.1  christos main ()
   3159  1.1  christos {
   3160  1.1  christos 
   3161  1.1  christos   ;
   3162  1.1  christos   return 0;
   3163  1.1  christos }
   3164  1.1  christos _ACEOF
   3165  1.1  christos rm -f conftest.$ac_objext
   3166  1.1  christos if { (ac_try="$ac_compile"
   3167  1.1  christos case "(($ac_try" in
   3168  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3169  1.1  christos   *) ac_try_echo=$ac_try;;
   3170  1.1  christos esac
   3171  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3172  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   3173  1.1  christos   ac_status=$?
   3174  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3175  1.1  christos   rm -f conftest.er1
   3176  1.1  christos   cat conftest.err >&5
   3177  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3178  1.1  christos   (exit $ac_status); } && {
   3179  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   3180  1.1  christos 	 test ! -s conftest.err
   3181  1.1  christos        } && test -s conftest.$ac_objext; then
   3182  1.1  christos   ac_lbl_cc_inline=yes
   3183  1.1  christos else
   3184  1.1  christos   echo "$as_me: failed program was:" >&5
   3185  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3186  1.1  christos 
   3187  1.1  christos 
   3188  1.1  christos fi
   3189  1.1  christos 
   3190  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3191  1.1  christos 	    if test "$ac_lbl_cc_inline" = yes ; then
   3192  1.1  christos 		break;
   3193  1.1  christos 	    fi
   3194  1.1  christos 	done
   3195  1.1  christos 	if test "$ac_lbl_cc_inline" = yes ; then
   3196  1.1  christos 	    ac_cv_lbl_inline=$ac_lbl_inline
   3197  1.1  christos 	fi
   3198  1.1  christos fi
   3199  1.1  christos 
   3200  1.1  christos     CFLAGS="$save_CFLAGS"
   3201  1.1  christos     if test ! -z "$ac_cv_lbl_inline" ; then
   3202  1.1  christos 	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
   3203  1.1  christos echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
   3204  1.1  christos     else
   3205  1.1  christos 	{ echo "$as_me:$LINENO: result: no" >&5
   3206  1.1  christos echo "${ECHO_T}no" >&6; }
   3207  1.1  christos     fi
   3208  1.1  christos 
   3209  1.1  christos cat >>confdefs.h <<_ACEOF
   3210  1.1  christos #define inline $ac_cv_lbl_inline
   3211  1.1  christos _ACEOF
   3212  1.1  christos 
   3213  1.1  christos 
   3214  1.1  christos { echo "$as_me:$LINENO: checking for __attribute__" >&5
   3215  1.1  christos echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
   3216  1.1  christos if test "${ac_cv___attribute__+set}" = set; then
   3217  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3218  1.1  christos else
   3219  1.1  christos 
   3220  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   3221  1.3  christos 
   3222  1.3  christos   /* confdefs.h.  */
   3223  1.1  christos _ACEOF
   3224  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3225  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3226  1.1  christos /* end confdefs.h.  */
   3227  1.1  christos 
   3228  1.1  christos #include <stdlib.h>
   3229  1.1  christos 
   3230  1.1  christos static void foo(void) __attribute__ ((noreturn));
   3231  1.1  christos 
   3232  1.1  christos static void
   3233  1.1  christos foo(void)
   3234  1.1  christos {
   3235  1.1  christos   exit(1);
   3236  1.1  christos }
   3237  1.1  christos 
   3238  1.1  christos int
   3239  1.1  christos main(int argc, char **argv)
   3240  1.1  christos {
   3241  1.1  christos   foo();
   3242  1.1  christos }
   3243  1.1  christos 
   3244  1.1  christos _ACEOF
   3245  1.1  christos rm -f conftest.$ac_objext
   3246  1.1  christos if { (ac_try="$ac_compile"
   3247  1.1  christos case "(($ac_try" in
   3248  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3249  1.1  christos   *) ac_try_echo=$ac_try;;
   3250  1.1  christos esac
   3251  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3252  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   3253  1.1  christos   ac_status=$?
   3254  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3255  1.1  christos   rm -f conftest.er1
   3256  1.1  christos   cat conftest.err >&5
   3257  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3258  1.1  christos   (exit $ac_status); } && {
   3259  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   3260  1.1  christos 	 test ! -s conftest.err
   3261  1.1  christos        } && test -s conftest.$ac_objext; then
   3262  1.1  christos   ac_cv___attribute__=yes
   3263  1.1  christos else
   3264  1.1  christos   echo "$as_me: failed program was:" >&5
   3265  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3266  1.1  christos 
   3267  1.1  christos 	ac_cv___attribute__=no
   3268  1.1  christos fi
   3269  1.1  christos 
   3270  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3271  1.1  christos fi
   3272  1.1  christos 
   3273  1.1  christos if test "$ac_cv___attribute__" = "yes"; then
   3274  1.1  christos 
   3275  1.1  christos cat >>confdefs.h <<\_ACEOF
   3276  1.1  christos #define HAVE___ATTRIBUTE__ 1
   3277  1.1  christos _ACEOF
   3278  1.1  christos 
   3279  1.1  christos   V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
   3280  1.1  christos else
   3281  1.1  christos   V_DEFS="$V_DEFS -D_U_=\"\""
   3282  1.1  christos fi
   3283  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
   3284  1.1  christos echo "${ECHO_T}$ac_cv___attribute__" >&6; }
   3285  1.1  christos 
   3286  1.1  christos if test "$ac_cv___attribute__" = "yes"; then
   3287  1.1  christos 
   3288  1.1  christos { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
   3289  1.1  christos echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
   3290  1.1  christos if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
   3291  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3292  1.1  christos else
   3293  1.1  christos 
   3294  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   3295  1.3  christos 
   3296  1.3  christos   /* confdefs.h.  */
   3297  1.1  christos _ACEOF
   3298  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3299  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3300  1.1  christos /* end confdefs.h.  */
   3301  1.1  christos 
   3302  1.1  christos #include <stdlib.h>
   3303  1.1  christos 
   3304  1.1  christos extern int (*foo)(const char *fmt, ...)
   3305  1.1  christos 		  __attribute__ ((format (printf, 1, 2)));
   3306  1.1  christos 
   3307  1.1  christos int
   3308  1.1  christos main(int argc, char **argv)
   3309  1.1  christos {
   3310  1.1  christos   (*foo)("%s", "test");
   3311  1.1  christos }
   3312  1.1  christos 
   3313  1.1  christos _ACEOF
   3314  1.1  christos rm -f conftest.$ac_objext
   3315  1.1  christos if { (ac_try="$ac_compile"
   3316  1.1  christos case "(($ac_try" in
   3317  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3318  1.1  christos   *) ac_try_echo=$ac_try;;
   3319  1.1  christos esac
   3320  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3321  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   3322  1.1  christos   ac_status=$?
   3323  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3324  1.1  christos   rm -f conftest.er1
   3325  1.1  christos   cat conftest.err >&5
   3326  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3327  1.1  christos   (exit $ac_status); } && {
   3328  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   3329  1.1  christos 	 test ! -s conftest.err
   3330  1.1  christos        } && test -s conftest.$ac_objext; then
   3331  1.1  christos   ac_cv___attribute___format_function_pointer=yes
   3332  1.1  christos else
   3333  1.1  christos   echo "$as_me: failed program was:" >&5
   3334  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3335  1.1  christos 
   3336  1.1  christos 	ac_cv___attribute___format_function_pointer=no
   3337  1.1  christos fi
   3338  1.1  christos 
   3339  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3340  1.1  christos fi
   3341  1.1  christos 
   3342  1.1  christos if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
   3343  1.1  christos 
   3344  1.1  christos cat >>confdefs.h <<\_ACEOF
   3345  1.1  christos #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
   3346  1.1  christos _ACEOF
   3347  1.1  christos 
   3348  1.1  christos fi
   3349  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
   3350  1.1  christos echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
   3351  1.1  christos 
   3352  1.1  christos fi
   3353  1.1  christos ac_ext=c
   3354  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   3355  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3356  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3357  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3358  1.1  christos { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   3359  1.1  christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
   3360  1.1  christos # On Suns, sometimes $CPP names a directory.
   3361  1.1  christos if test -n "$CPP" && test -d "$CPP"; then
   3362  1.1  christos   CPP=
   3363  1.1  christos fi
   3364  1.1  christos if test -z "$CPP"; then
   3365  1.1  christos   if test "${ac_cv_prog_CPP+set}" = set; then
   3366  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3367  1.1  christos else
   3368  1.1  christos       # Double quotes because CPP needs to be expanded
   3369  1.1  christos     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3370  1.1  christos     do
   3371  1.1  christos       ac_preproc_ok=false
   3372  1.1  christos for ac_c_preproc_warn_flag in '' yes
   3373  1.1  christos do
   3374  1.1  christos   # Use a header file that comes with gcc, so configuring glibc
   3375  1.1  christos   # with a fresh cross-compiler works.
   3376  1.1  christos   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3377  1.1  christos   # <limits.h> exists even on freestanding compilers.
   3378  1.1  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   3379  1.1  christos   # not just through cpp. "Syntax error" is here to catch this case.
   3380  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3381  1.1  christos /* confdefs.h.  */
   3382  1.1  christos _ACEOF
   3383  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3384  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3385  1.1  christos /* end confdefs.h.  */
   3386  1.1  christos #ifdef __STDC__
   3387  1.1  christos # include <limits.h>
   3388  1.1  christos #else
   3389  1.1  christos # include <assert.h>
   3390  1.1  christos #endif
   3391  1.1  christos 		     Syntax error
   3392  1.1  christos _ACEOF
   3393  1.1  christos if { (ac_try="$ac_cpp conftest.$ac_ext"
   3394  1.1  christos case "(($ac_try" in
   3395  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3396  1.1  christos   *) ac_try_echo=$ac_try;;
   3397  1.1  christos esac
   3398  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3399  1.1  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3400  1.1  christos   ac_status=$?
   3401  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3402  1.1  christos   rm -f conftest.er1
   3403  1.1  christos   cat conftest.err >&5
   3404  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3405  1.1  christos   (exit $ac_status); } >/dev/null && {
   3406  1.1  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3407  1.1  christos 	 test ! -s conftest.err
   3408  1.1  christos        }; then
   3409  1.1  christos   :
   3410  1.1  christos else
   3411  1.1  christos   echo "$as_me: failed program was:" >&5
   3412  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3413  1.1  christos 
   3414  1.1  christos   # Broken: fails on valid input.
   3415  1.1  christos continue
   3416  1.1  christos fi
   3417  1.1  christos 
   3418  1.1  christos rm -f conftest.err conftest.$ac_ext
   3419  1.1  christos 
   3420  1.1  christos   # OK, works on sane cases.  Now check whether nonexistent headers
   3421  1.1  christos   # can be detected and how.
   3422  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3423  1.1  christos /* confdefs.h.  */
   3424  1.1  christos _ACEOF
   3425  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3426  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3427  1.1  christos /* end confdefs.h.  */
   3428  1.1  christos #include <ac_nonexistent.h>
   3429  1.1  christos _ACEOF
   3430  1.1  christos if { (ac_try="$ac_cpp conftest.$ac_ext"
   3431  1.1  christos case "(($ac_try" in
   3432  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3433  1.1  christos   *) ac_try_echo=$ac_try;;
   3434  1.1  christos esac
   3435  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3436  1.1  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3437  1.1  christos   ac_status=$?
   3438  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3439  1.1  christos   rm -f conftest.er1
   3440  1.1  christos   cat conftest.err >&5
   3441  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3442  1.1  christos   (exit $ac_status); } >/dev/null && {
   3443  1.1  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3444  1.1  christos 	 test ! -s conftest.err
   3445  1.1  christos        }; then
   3446  1.1  christos   # Broken: success on invalid input.
   3447  1.1  christos continue
   3448  1.1  christos else
   3449  1.1  christos   echo "$as_me: failed program was:" >&5
   3450  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3451  1.1  christos 
   3452  1.1  christos   # Passes both tests.
   3453  1.1  christos ac_preproc_ok=:
   3454  1.1  christos break
   3455  1.1  christos fi
   3456  1.1  christos 
   3457  1.1  christos rm -f conftest.err conftest.$ac_ext
   3458  1.1  christos 
   3459  1.1  christos done
   3460  1.1  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3461  1.1  christos rm -f conftest.err conftest.$ac_ext
   3462  1.1  christos if $ac_preproc_ok; then
   3463  1.1  christos   break
   3464  1.1  christos fi
   3465  1.1  christos 
   3466  1.1  christos     done
   3467  1.1  christos     ac_cv_prog_CPP=$CPP
   3468  1.1  christos 
   3469  1.1  christos fi
   3470  1.1  christos   CPP=$ac_cv_prog_CPP
   3471  1.1  christos else
   3472  1.1  christos   ac_cv_prog_CPP=$CPP
   3473  1.1  christos fi
   3474  1.1  christos { echo "$as_me:$LINENO: result: $CPP" >&5
   3475  1.1  christos echo "${ECHO_T}$CPP" >&6; }
   3476  1.1  christos ac_preproc_ok=false
   3477  1.1  christos for ac_c_preproc_warn_flag in '' yes
   3478  1.1  christos do
   3479  1.1  christos   # Use a header file that comes with gcc, so configuring glibc
   3480  1.1  christos   # with a fresh cross-compiler works.
   3481  1.1  christos   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3482  1.1  christos   # <limits.h> exists even on freestanding compilers.
   3483  1.1  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   3484  1.1  christos   # not just through cpp. "Syntax error" is here to catch this case.
   3485  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3486  1.1  christos /* confdefs.h.  */
   3487  1.1  christos _ACEOF
   3488  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3489  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3490  1.1  christos /* end confdefs.h.  */
   3491  1.1  christos #ifdef __STDC__
   3492  1.1  christos # include <limits.h>
   3493  1.1  christos #else
   3494  1.1  christos # include <assert.h>
   3495  1.1  christos #endif
   3496  1.1  christos 		     Syntax error
   3497  1.1  christos _ACEOF
   3498  1.1  christos if { (ac_try="$ac_cpp conftest.$ac_ext"
   3499  1.1  christos case "(($ac_try" in
   3500  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3501  1.1  christos   *) ac_try_echo=$ac_try;;
   3502  1.1  christos esac
   3503  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3504  1.1  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3505  1.1  christos   ac_status=$?
   3506  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3507  1.1  christos   rm -f conftest.er1
   3508  1.1  christos   cat conftest.err >&5
   3509  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3510  1.1  christos   (exit $ac_status); } >/dev/null && {
   3511  1.1  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3512  1.1  christos 	 test ! -s conftest.err
   3513  1.1  christos        }; then
   3514  1.1  christos   :
   3515  1.1  christos else
   3516  1.1  christos   echo "$as_me: failed program was:" >&5
   3517  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3518  1.1  christos 
   3519  1.1  christos   # Broken: fails on valid input.
   3520  1.1  christos continue
   3521  1.1  christos fi
   3522  1.1  christos 
   3523  1.1  christos rm -f conftest.err conftest.$ac_ext
   3524  1.1  christos 
   3525  1.1  christos   # OK, works on sane cases.  Now check whether nonexistent headers
   3526  1.1  christos   # can be detected and how.
   3527  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3528  1.1  christos /* confdefs.h.  */
   3529  1.1  christos _ACEOF
   3530  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3531  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3532  1.1  christos /* end confdefs.h.  */
   3533  1.1  christos #include <ac_nonexistent.h>
   3534  1.1  christos _ACEOF
   3535  1.1  christos if { (ac_try="$ac_cpp conftest.$ac_ext"
   3536  1.1  christos case "(($ac_try" in
   3537  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3538  1.1  christos   *) ac_try_echo=$ac_try;;
   3539  1.1  christos esac
   3540  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3541  1.1  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3542  1.1  christos   ac_status=$?
   3543  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3544  1.1  christos   rm -f conftest.er1
   3545  1.1  christos   cat conftest.err >&5
   3546  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3547  1.1  christos   (exit $ac_status); } >/dev/null && {
   3548  1.1  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3549  1.1  christos 	 test ! -s conftest.err
   3550  1.1  christos        }; then
   3551  1.1  christos   # Broken: success on invalid input.
   3552  1.1  christos continue
   3553  1.1  christos else
   3554  1.1  christos   echo "$as_me: failed program was:" >&5
   3555  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3556  1.1  christos 
   3557  1.1  christos   # Passes both tests.
   3558  1.1  christos ac_preproc_ok=:
   3559  1.1  christos break
   3560  1.1  christos fi
   3561  1.1  christos 
   3562  1.1  christos rm -f conftest.err conftest.$ac_ext
   3563  1.1  christos 
   3564  1.1  christos done
   3565  1.1  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3566  1.1  christos rm -f conftest.err conftest.$ac_ext
   3567  1.1  christos if $ac_preproc_ok; then
   3568  1.1  christos   :
   3569  1.1  christos else
   3570  1.1  christos   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   3571  1.1  christos See \`config.log' for more details." >&5
   3572  1.1  christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   3573  1.1  christos See \`config.log' for more details." >&2;}
   3574  1.1  christos    { (exit 1); exit 1; }; }
   3575  1.1  christos fi
   3576  1.1  christos 
   3577  1.1  christos ac_ext=c
   3578  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   3579  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3580  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3581  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3582  1.1  christos 
   3583  1.1  christos 
   3584  1.1  christos { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   3585  1.1  christos echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
   3586  1.1  christos if test "${ac_cv_path_GREP+set}" = set; then
   3587  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3588  1.1  christos else
   3589  1.1  christos   # Extract the first word of "grep ggrep" to use in msg output
   3590  1.1  christos if test -z "$GREP"; then
   3591  1.1  christos set dummy grep ggrep; ac_prog_name=$2
   3592  1.1  christos if test "${ac_cv_path_GREP+set}" = set; then
   3593  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3594  1.1  christos else
   3595  1.1  christos   ac_path_GREP_found=false
   3596  1.1  christos # Loop through the user's path and test for each of PROGNAME-LIST
   3597  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3598  1.1  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3599  1.1  christos do
   3600  1.1  christos   IFS=$as_save_IFS
   3601  1.1  christos   test -z "$as_dir" && as_dir=.
   3602  1.1  christos   for ac_prog in grep ggrep; do
   3603  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   3604  1.1  christos     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3605  1.1  christos     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   3606  1.1  christos     # Check for GNU ac_path_GREP and select it if it is found.
   3607  1.1  christos   # Check for GNU $ac_path_GREP
   3608  1.1  christos case `"$ac_path_GREP" --version 2>&1` in
   3609  1.1  christos *GNU*)
   3610  1.1  christos   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3611  1.1  christos *)
   3612  1.1  christos   ac_count=0
   3613  1.1  christos   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3614  1.1  christos   while :
   3615  1.1  christos   do
   3616  1.1  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3617  1.1  christos     mv "conftest.tmp" "conftest.in"
   3618  1.1  christos     cp "conftest.in" "conftest.nl"
   3619  1.1  christos     echo 'GREP' >> "conftest.nl"
   3620  1.1  christos     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3621  1.1  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3622  1.1  christos     ac_count=`expr $ac_count + 1`
   3623  1.1  christos     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3624  1.1  christos       # Best one so far, save it but keep looking for a better one
   3625  1.1  christos       ac_cv_path_GREP="$ac_path_GREP"
   3626  1.1  christos       ac_path_GREP_max=$ac_count
   3627  1.1  christos     fi
   3628  1.1  christos     # 10*(2^10) chars as input seems more than enough
   3629  1.1  christos     test $ac_count -gt 10 && break
   3630  1.1  christos   done
   3631  1.1  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3632  1.1  christos esac
   3633  1.1  christos 
   3634  1.1  christos 
   3635  1.1  christos     $ac_path_GREP_found && break 3
   3636  1.1  christos   done
   3637  1.1  christos done
   3638  1.1  christos 
   3639  1.1  christos done
   3640  1.1  christos IFS=$as_save_IFS
   3641  1.1  christos 
   3642  1.1  christos 
   3643  1.1  christos fi
   3644  1.1  christos 
   3645  1.1  christos GREP="$ac_cv_path_GREP"
   3646  1.1  christos if test -z "$GREP"; then
   3647  1.1  christos   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3648  1.1  christos echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3649  1.1  christos    { (exit 1); exit 1; }; }
   3650  1.1  christos fi
   3651  1.1  christos 
   3652  1.1  christos else
   3653  1.1  christos   ac_cv_path_GREP=$GREP
   3654  1.1  christos fi
   3655  1.1  christos 
   3656  1.1  christos 
   3657  1.1  christos fi
   3658  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   3659  1.1  christos echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
   3660  1.1  christos  GREP="$ac_cv_path_GREP"
   3661  1.1  christos 
   3662  1.1  christos 
   3663  1.1  christos { echo "$as_me:$LINENO: checking for egrep" >&5
   3664  1.1  christos echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
   3665  1.1  christos if test "${ac_cv_path_EGREP+set}" = set; then
   3666  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3667  1.1  christos else
   3668  1.1  christos   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3669  1.1  christos    then ac_cv_path_EGREP="$GREP -E"
   3670  1.1  christos    else
   3671  1.1  christos      # Extract the first word of "egrep" to use in msg output
   3672  1.1  christos if test -z "$EGREP"; then
   3673  1.1  christos set dummy egrep; ac_prog_name=$2
   3674  1.1  christos if test "${ac_cv_path_EGREP+set}" = set; then
   3675  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3676  1.1  christos else
   3677  1.1  christos   ac_path_EGREP_found=false
   3678  1.1  christos # Loop through the user's path and test for each of PROGNAME-LIST
   3679  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3680  1.1  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3681  1.1  christos do
   3682  1.1  christos   IFS=$as_save_IFS
   3683  1.1  christos   test -z "$as_dir" && as_dir=.
   3684  1.1  christos   for ac_prog in egrep; do
   3685  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   3686  1.1  christos     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3687  1.1  christos     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   3688  1.1  christos     # Check for GNU ac_path_EGREP and select it if it is found.
   3689  1.1  christos   # Check for GNU $ac_path_EGREP
   3690  1.1  christos case `"$ac_path_EGREP" --version 2>&1` in
   3691  1.1  christos *GNU*)
   3692  1.1  christos   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3693  1.1  christos *)
   3694  1.1  christos   ac_count=0
   3695  1.1  christos   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3696  1.1  christos   while :
   3697  1.1  christos   do
   3698  1.1  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3699  1.1  christos     mv "conftest.tmp" "conftest.in"
   3700  1.1  christos     cp "conftest.in" "conftest.nl"
   3701  1.1  christos     echo 'EGREP' >> "conftest.nl"
   3702  1.1  christos     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3703  1.1  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3704  1.1  christos     ac_count=`expr $ac_count + 1`
   3705  1.1  christos     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3706  1.1  christos       # Best one so far, save it but keep looking for a better one
   3707  1.1  christos       ac_cv_path_EGREP="$ac_path_EGREP"
   3708  1.1  christos       ac_path_EGREP_max=$ac_count
   3709  1.1  christos     fi
   3710  1.1  christos     # 10*(2^10) chars as input seems more than enough
   3711  1.1  christos     test $ac_count -gt 10 && break
   3712  1.1  christos   done
   3713  1.1  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3714  1.1  christos esac
   3715  1.1  christos 
   3716  1.1  christos 
   3717  1.1  christos     $ac_path_EGREP_found && break 3
   3718  1.1  christos   done
   3719  1.1  christos done
   3720  1.1  christos 
   3721  1.1  christos done
   3722  1.1  christos IFS=$as_save_IFS
   3723  1.1  christos 
   3724  1.1  christos 
   3725  1.1  christos fi
   3726  1.1  christos 
   3727  1.1  christos EGREP="$ac_cv_path_EGREP"
   3728  1.1  christos if test -z "$EGREP"; then
   3729  1.1  christos   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3730  1.1  christos echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3731  1.1  christos    { (exit 1); exit 1; }; }
   3732  1.1  christos fi
   3733  1.1  christos 
   3734  1.1  christos else
   3735  1.1  christos   ac_cv_path_EGREP=$EGREP
   3736  1.1  christos fi
   3737  1.1  christos 
   3738  1.1  christos 
   3739  1.1  christos    fi
   3740  1.1  christos fi
   3741  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   3742  1.1  christos echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
   3743  1.1  christos  EGREP="$ac_cv_path_EGREP"
   3744  1.1  christos 
   3745  1.1  christos 
   3746  1.1  christos { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   3747  1.1  christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
   3748  1.1  christos if test "${ac_cv_header_stdc+set}" = set; then
   3749  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3750  1.1  christos else
   3751  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3752  1.1  christos /* confdefs.h.  */
   3753  1.1  christos _ACEOF
   3754  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3755  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3756  1.1  christos /* end confdefs.h.  */
   3757  1.1  christos #include <stdlib.h>
   3758  1.1  christos #include <stdarg.h>
   3759  1.1  christos #include <string.h>
   3760  1.1  christos #include <float.h>
   3761  1.1  christos 
   3762  1.1  christos int
   3763  1.1  christos main ()
   3764  1.1  christos {
   3765  1.1  christos 
   3766  1.1  christos   ;
   3767  1.1  christos   return 0;
   3768  1.1  christos }
   3769  1.1  christos _ACEOF
   3770  1.1  christos rm -f conftest.$ac_objext
   3771  1.1  christos if { (ac_try="$ac_compile"
   3772  1.1  christos case "(($ac_try" in
   3773  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3774  1.1  christos   *) ac_try_echo=$ac_try;;
   3775  1.1  christos esac
   3776  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3777  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   3778  1.1  christos   ac_status=$?
   3779  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3780  1.1  christos   rm -f conftest.er1
   3781  1.1  christos   cat conftest.err >&5
   3782  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3783  1.1  christos   (exit $ac_status); } && {
   3784  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   3785  1.1  christos 	 test ! -s conftest.err
   3786  1.1  christos        } && test -s conftest.$ac_objext; then
   3787  1.1  christos   ac_cv_header_stdc=yes
   3788  1.1  christos else
   3789  1.1  christos   echo "$as_me: failed program was:" >&5
   3790  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3791  1.1  christos 
   3792  1.1  christos 	ac_cv_header_stdc=no
   3793  1.1  christos fi
   3794  1.1  christos 
   3795  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3796  1.1  christos 
   3797  1.1  christos if test $ac_cv_header_stdc = yes; then
   3798  1.1  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3799  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3800  1.1  christos /* confdefs.h.  */
   3801  1.1  christos _ACEOF
   3802  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3803  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3804  1.1  christos /* end confdefs.h.  */
   3805  1.1  christos #include <string.h>
   3806  1.1  christos 
   3807  1.1  christos _ACEOF
   3808  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3809  1.1  christos   $EGREP "memchr" >/dev/null 2>&1; then
   3810  1.1  christos   :
   3811  1.1  christos else
   3812  1.1  christos   ac_cv_header_stdc=no
   3813  1.1  christos fi
   3814  1.1  christos rm -f -r conftest*
   3815  1.1  christos 
   3816  1.1  christos fi
   3817  1.1  christos 
   3818  1.1  christos if test $ac_cv_header_stdc = yes; then
   3819  1.1  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3820  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3821  1.1  christos /* confdefs.h.  */
   3822  1.1  christos _ACEOF
   3823  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3824  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3825  1.1  christos /* end confdefs.h.  */
   3826  1.1  christos #include <stdlib.h>
   3827  1.1  christos 
   3828  1.1  christos _ACEOF
   3829  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3830  1.1  christos   $EGREP "free" >/dev/null 2>&1; then
   3831  1.1  christos   :
   3832  1.1  christos else
   3833  1.1  christos   ac_cv_header_stdc=no
   3834  1.1  christos fi
   3835  1.1  christos rm -f -r conftest*
   3836  1.1  christos 
   3837  1.1  christos fi
   3838  1.1  christos 
   3839  1.1  christos if test $ac_cv_header_stdc = yes; then
   3840  1.1  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3841  1.1  christos   if test "$cross_compiling" = yes; then
   3842  1.1  christos   :
   3843  1.1  christos else
   3844  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3845  1.1  christos /* confdefs.h.  */
   3846  1.1  christos _ACEOF
   3847  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3848  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3849  1.1  christos /* end confdefs.h.  */
   3850  1.1  christos #include <ctype.h>
   3851  1.1  christos #include <stdlib.h>
   3852  1.1  christos #if ((' ' & 0x0FF) == 0x020)
   3853  1.1  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3854  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3855  1.1  christos #else
   3856  1.1  christos # define ISLOWER(c) \
   3857  1.1  christos 		   (('a' <= (c) && (c) <= 'i') \
   3858  1.1  christos 		     || ('j' <= (c) && (c) <= 'r') \
   3859  1.1  christos 		     || ('s' <= (c) && (c) <= 'z'))
   3860  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3861  1.1  christos #endif
   3862  1.1  christos 
   3863  1.1  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3864  1.1  christos int
   3865  1.1  christos main ()
   3866  1.1  christos {
   3867  1.1  christos   int i;
   3868  1.1  christos   for (i = 0; i < 256; i++)
   3869  1.1  christos     if (XOR (islower (i), ISLOWER (i))
   3870  1.1  christos 	|| toupper (i) != TOUPPER (i))
   3871  1.1  christos       return 2;
   3872  1.1  christos   return 0;
   3873  1.1  christos }
   3874  1.1  christos _ACEOF
   3875  1.1  christos rm -f conftest$ac_exeext
   3876  1.1  christos if { (ac_try="$ac_link"
   3877  1.1  christos case "(($ac_try" in
   3878  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3879  1.1  christos   *) ac_try_echo=$ac_try;;
   3880  1.1  christos esac
   3881  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3882  1.1  christos   (eval "$ac_link") 2>&5
   3883  1.1  christos   ac_status=$?
   3884  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3885  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3886  1.1  christos   { (case "(($ac_try" in
   3887  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3888  1.1  christos   *) ac_try_echo=$ac_try;;
   3889  1.1  christos esac
   3890  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3891  1.1  christos   (eval "$ac_try") 2>&5
   3892  1.1  christos   ac_status=$?
   3893  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3894  1.1  christos   (exit $ac_status); }; }; then
   3895  1.1  christos   :
   3896  1.1  christos else
   3897  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   3898  1.1  christos echo "$as_me: failed program was:" >&5
   3899  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3900  1.1  christos 
   3901  1.1  christos ( exit $ac_status )
   3902  1.1  christos ac_cv_header_stdc=no
   3903  1.1  christos fi
   3904  1.1  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3905  1.1  christos fi
   3906  1.1  christos 
   3907  1.1  christos 
   3908  1.1  christos fi
   3909  1.1  christos fi
   3910  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   3911  1.1  christos echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
   3912  1.1  christos if test $ac_cv_header_stdc = yes; then
   3913  1.1  christos 
   3914  1.1  christos cat >>confdefs.h <<\_ACEOF
   3915  1.1  christos #define STDC_HEADERS 1
   3916  1.1  christos _ACEOF
   3917  1.1  christos 
   3918  1.1  christos fi
   3919  1.1  christos 
   3920  1.1  christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3921  1.1  christos 
   3922  1.1  christos 
   3923  1.1  christos 
   3924  1.1  christos 
   3925  1.1  christos 
   3926  1.1  christos 
   3927  1.1  christos 
   3928  1.1  christos 
   3929  1.1  christos 
   3930  1.1  christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3931  1.1  christos 		  inttypes.h stdint.h unistd.h
   3932  1.1  christos do
   3933  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3934  1.1  christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
   3935  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   3936  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   3937  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3938  1.1  christos else
   3939  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3940  1.1  christos /* confdefs.h.  */
   3941  1.1  christos _ACEOF
   3942  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3943  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3944  1.1  christos /* end confdefs.h.  */
   3945  1.1  christos $ac_includes_default
   3946  1.1  christos 
   3947  1.1  christos #include <$ac_header>
   3948  1.1  christos _ACEOF
   3949  1.1  christos rm -f conftest.$ac_objext
   3950  1.1  christos if { (ac_try="$ac_compile"
   3951  1.1  christos case "(($ac_try" in
   3952  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3953  1.1  christos   *) ac_try_echo=$ac_try;;
   3954  1.1  christos esac
   3955  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3956  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   3957  1.1  christos   ac_status=$?
   3958  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3959  1.1  christos   rm -f conftest.er1
   3960  1.1  christos   cat conftest.err >&5
   3961  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3962  1.1  christos   (exit $ac_status); } && {
   3963  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   3964  1.1  christos 	 test ! -s conftest.err
   3965  1.1  christos        } && test -s conftest.$ac_objext; then
   3966  1.1  christos   eval "$as_ac_Header=yes"
   3967  1.1  christos else
   3968  1.1  christos   echo "$as_me: failed program was:" >&5
   3969  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3970  1.1  christos 
   3971  1.1  christos 	eval "$as_ac_Header=no"
   3972  1.1  christos fi
   3973  1.1  christos 
   3974  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3975  1.1  christos fi
   3976  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   3977  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   3978  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   3979  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   3980  1.1  christos   cat >>confdefs.h <<_ACEOF
   3981  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3982  1.1  christos _ACEOF
   3983  1.1  christos 
   3984  1.1  christos fi
   3985  1.1  christos 
   3986  1.1  christos done
   3987  1.1  christos 
   3988  1.1  christos 
   3989  1.1  christos 
   3990  1.1  christos 
   3991  1.1  christos 
   3992  1.3  christos 
   3993  1.3  christos for ac_header in fcntl.h rpc/rpc.h rpc/rpcent.h netdnet/dnetdb.h
   3994  1.1  christos do
   3995  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3996  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   3997  1.1  christos   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   3998  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   3999  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4000  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4001  1.1  christos fi
   4002  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   4003  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4004  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   4005  1.1  christos else
   4006  1.1  christos   # Is the header compilable?
   4007  1.1  christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   4008  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   4009  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4010  1.1  christos /* confdefs.h.  */
   4011  1.1  christos _ACEOF
   4012  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4013  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4014  1.1  christos /* end confdefs.h.  */
   4015  1.1  christos $ac_includes_default
   4016  1.1  christos #include <$ac_header>
   4017  1.1  christos _ACEOF
   4018  1.1  christos rm -f conftest.$ac_objext
   4019  1.1  christos if { (ac_try="$ac_compile"
   4020  1.1  christos case "(($ac_try" in
   4021  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4022  1.1  christos   *) ac_try_echo=$ac_try;;
   4023  1.1  christos esac
   4024  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4025  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   4026  1.1  christos   ac_status=$?
   4027  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4028  1.1  christos   rm -f conftest.er1
   4029  1.1  christos   cat conftest.err >&5
   4030  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4031  1.1  christos   (exit $ac_status); } && {
   4032  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   4033  1.1  christos 	 test ! -s conftest.err
   4034  1.1  christos        } && test -s conftest.$ac_objext; then
   4035  1.1  christos   ac_header_compiler=yes
   4036  1.1  christos else
   4037  1.1  christos   echo "$as_me: failed program was:" >&5
   4038  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4039  1.1  christos 
   4040  1.1  christos 	ac_header_compiler=no
   4041  1.1  christos fi
   4042  1.1  christos 
   4043  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4044  1.1  christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   4045  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6; }
   4046  1.1  christos 
   4047  1.1  christos # Is the header present?
   4048  1.1  christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   4049  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   4050  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4051  1.1  christos /* confdefs.h.  */
   4052  1.1  christos _ACEOF
   4053  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4054  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4055  1.1  christos /* end confdefs.h.  */
   4056  1.1  christos #include <$ac_header>
   4057  1.1  christos _ACEOF
   4058  1.1  christos if { (ac_try="$ac_cpp conftest.$ac_ext"
   4059  1.1  christos case "(($ac_try" in
   4060  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4061  1.1  christos   *) ac_try_echo=$ac_try;;
   4062  1.1  christos esac
   4063  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4064  1.1  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4065  1.1  christos   ac_status=$?
   4066  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4067  1.1  christos   rm -f conftest.er1
   4068  1.1  christos   cat conftest.err >&5
   4069  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4070  1.1  christos   (exit $ac_status); } >/dev/null && {
   4071  1.1  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4072  1.1  christos 	 test ! -s conftest.err
   4073  1.1  christos        }; then
   4074  1.1  christos   ac_header_preproc=yes
   4075  1.1  christos else
   4076  1.1  christos   echo "$as_me: failed program was:" >&5
   4077  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4078  1.1  christos 
   4079  1.1  christos   ac_header_preproc=no
   4080  1.1  christos fi
   4081  1.1  christos 
   4082  1.1  christos rm -f conftest.err conftest.$ac_ext
   4083  1.1  christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   4084  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6; }
   4085  1.1  christos 
   4086  1.1  christos # So?  What about this header?
   4087  1.1  christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   4088  1.1  christos   yes:no: )
   4089  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   4090  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   4091  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   4092  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   4093  1.1  christos     ac_header_preproc=yes
   4094  1.1  christos     ;;
   4095  1.1  christos   no:yes:* )
   4096  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   4097  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   4098  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   4099  1.1  christos echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   4100  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   4101  1.1  christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   4102  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   4103  1.1  christos echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   4104  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   4105  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   4106  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   4107  1.1  christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   4108  1.1  christos 
   4109  1.1  christos     ;;
   4110  1.1  christos esac
   4111  1.1  christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4112  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4113  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4114  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4115  1.1  christos else
   4116  1.1  christos   eval "$as_ac_Header=\$ac_header_preproc"
   4117  1.1  christos fi
   4118  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   4119  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4120  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   4121  1.1  christos 
   4122  1.1  christos fi
   4123  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4124  1.1  christos   cat >>confdefs.h <<_ACEOF
   4125  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4126  1.1  christos _ACEOF
   4127  1.1  christos 
   4128  1.1  christos fi
   4129  1.1  christos 
   4130  1.1  christos done
   4131  1.1  christos 
   4132  1.1  christos 
   4133  1.1  christos for ac_header in net/pfvar.h
   4134  1.1  christos do
   4135  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4136  1.1  christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4137  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4138  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4139  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4140  1.1  christos else
   4141  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4142  1.1  christos /* confdefs.h.  */
   4143  1.1  christos _ACEOF
   4144  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4145  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4146  1.1  christos /* end confdefs.h.  */
   4147  1.1  christos #include <sys/types.h>
   4148  1.1  christos #include <sys/socket.h>
   4149  1.1  christos #include <net/if.h>
   4150  1.1  christos 
   4151  1.1  christos #include <$ac_header>
   4152  1.1  christos _ACEOF
   4153  1.1  christos rm -f conftest.$ac_objext
   4154  1.1  christos if { (ac_try="$ac_compile"
   4155  1.1  christos case "(($ac_try" in
   4156  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4157  1.1  christos   *) ac_try_echo=$ac_try;;
   4158  1.1  christos esac
   4159  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4160  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   4161  1.1  christos   ac_status=$?
   4162  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4163  1.1  christos   rm -f conftest.er1
   4164  1.1  christos   cat conftest.err >&5
   4165  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4166  1.1  christos   (exit $ac_status); } && {
   4167  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   4168  1.1  christos 	 test ! -s conftest.err
   4169  1.1  christos        } && test -s conftest.$ac_objext; then
   4170  1.1  christos   eval "$as_ac_Header=yes"
   4171  1.1  christos else
   4172  1.1  christos   echo "$as_me: failed program was:" >&5
   4173  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4174  1.1  christos 
   4175  1.1  christos 	eval "$as_ac_Header=no"
   4176  1.1  christos fi
   4177  1.1  christos 
   4178  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4179  1.1  christos fi
   4180  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   4181  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4182  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   4183  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4184  1.1  christos   cat >>confdefs.h <<_ACEOF
   4185  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4186  1.1  christos _ACEOF
   4187  1.1  christos 
   4188  1.1  christos fi
   4189  1.1  christos 
   4190  1.1  christos done
   4191  1.1  christos 
   4192  1.1  christos if test "$ac_cv_header_net_pfvar_h" = yes; then
   4193  1.1  christos 	LOCALSRC="print-pflog.c $LOCALSRC"
   4194  1.1  christos fi
   4195  1.1  christos 
   4196  1.1  christos for ac_header in netinet/if_ether.h
   4197  1.1  christos do
   4198  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4199  1.1  christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4200  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4201  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4202  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4203  1.1  christos else
   4204  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4205  1.1  christos /* confdefs.h.  */
   4206  1.1  christos _ACEOF
   4207  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4208  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4209  1.1  christos /* end confdefs.h.  */
   4210  1.1  christos #include <sys/types.h>
   4211  1.1  christos #include <sys/socket.h>
   4212  1.1  christos 
   4213  1.1  christos #include <$ac_header>
   4214  1.1  christos _ACEOF
   4215  1.1  christos rm -f conftest.$ac_objext
   4216  1.1  christos if { (ac_try="$ac_compile"
   4217  1.1  christos case "(($ac_try" in
   4218  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4219  1.1  christos   *) ac_try_echo=$ac_try;;
   4220  1.1  christos esac
   4221  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4222  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   4223  1.1  christos   ac_status=$?
   4224  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4225  1.1  christos   rm -f conftest.er1
   4226  1.1  christos   cat conftest.err >&5
   4227  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4228  1.1  christos   (exit $ac_status); } && {
   4229  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   4230  1.1  christos 	 test ! -s conftest.err
   4231  1.1  christos        } && test -s conftest.$ac_objext; then
   4232  1.1  christos   eval "$as_ac_Header=yes"
   4233  1.1  christos else
   4234  1.1  christos   echo "$as_me: failed program was:" >&5
   4235  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4236  1.1  christos 
   4237  1.1  christos 	eval "$as_ac_Header=no"
   4238  1.1  christos fi
   4239  1.1  christos 
   4240  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4241  1.1  christos fi
   4242  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   4243  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4244  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   4245  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4246  1.1  christos   cat >>confdefs.h <<_ACEOF
   4247  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4248  1.1  christos _ACEOF
   4249  1.1  christos 
   4250  1.1  christos fi
   4251  1.1  christos 
   4252  1.1  christos done
   4253  1.1  christos 
   4254  1.1  christos if test "$ac_cv_header_netinet_if_ether_h" != yes; then
   4255  1.1  christos 	#
   4256  1.1  christos 	# The simple test didn't work.
   4257  1.1  christos 	# Do we need to include <net/if.h> first?
   4258  1.1  christos 	# Unset ac_cv_header_netinet_if_ether_h so we don't
   4259  1.1  christos 	# treat the previous failure as a cached value and
   4260  1.1  christos 	# suppress the next test.
   4261  1.1  christos 	#
   4262  1.1  christos 	{ echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
   4263  1.1  christos echo "$as_me: Rechecking with some additional includes" >&6;}
   4264  1.1  christos 	unset ac_cv_header_netinet_if_ether_h
   4265  1.1  christos 
   4266  1.1  christos for ac_header in netinet/if_ether.h
   4267  1.1  christos do
   4268  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4269  1.1  christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4270  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4271  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4272  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4273  1.1  christos else
   4274  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4275  1.1  christos /* confdefs.h.  */
   4276  1.1  christos _ACEOF
   4277  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4278  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4279  1.1  christos /* end confdefs.h.  */
   4280  1.1  christos #include <sys/types.h>
   4281  1.1  christos #include <sys/socket.h>
   4282  1.1  christos #include <netinet/in.h>
   4283  1.1  christos struct mbuf;
   4284  1.1  christos struct rtentry;
   4285  1.1  christos #include <net/if.h>
   4286  1.1  christos 
   4287  1.1  christos #include <$ac_header>
   4288  1.1  christos _ACEOF
   4289  1.1  christos rm -f conftest.$ac_objext
   4290  1.1  christos if { (ac_try="$ac_compile"
   4291  1.1  christos case "(($ac_try" in
   4292  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4293  1.1  christos   *) ac_try_echo=$ac_try;;
   4294  1.1  christos esac
   4295  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4296  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   4297  1.1  christos   ac_status=$?
   4298  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4299  1.1  christos   rm -f conftest.er1
   4300  1.1  christos   cat conftest.err >&5
   4301  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4302  1.1  christos   (exit $ac_status); } && {
   4303  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   4304  1.1  christos 	 test ! -s conftest.err
   4305  1.1  christos        } && test -s conftest.$ac_objext; then
   4306  1.1  christos   eval "$as_ac_Header=yes"
   4307  1.1  christos else
   4308  1.1  christos   echo "$as_me: failed program was:" >&5
   4309  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4310  1.1  christos 
   4311  1.1  christos 	eval "$as_ac_Header=no"
   4312  1.1  christos fi
   4313  1.1  christos 
   4314  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4315  1.1  christos fi
   4316  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   4317  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4318  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   4319  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4320  1.1  christos   cat >>confdefs.h <<_ACEOF
   4321  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4322  1.1  christos _ACEOF
   4323  1.1  christos 
   4324  1.1  christos fi
   4325  1.1  christos 
   4326  1.1  christos done
   4327  1.1  christos 
   4328  1.1  christos fi
   4329  1.1  christos 
   4330  1.1  christos { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
   4331  1.1  christos echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
   4332  1.1  christos if test "${ac_cv_header_time+set}" = set; then
   4333  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4334  1.1  christos else
   4335  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4336  1.1  christos /* confdefs.h.  */
   4337  1.1  christos _ACEOF
   4338  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4339  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4340  1.1  christos /* end confdefs.h.  */
   4341  1.1  christos #include <sys/types.h>
   4342  1.1  christos #include <sys/time.h>
   4343  1.1  christos #include <time.h>
   4344  1.1  christos 
   4345  1.1  christos int
   4346  1.1  christos main ()
   4347  1.1  christos {
   4348  1.1  christos if ((struct tm *) 0)
   4349  1.1  christos return 0;
   4350  1.1  christos   ;
   4351  1.1  christos   return 0;
   4352  1.1  christos }
   4353  1.1  christos _ACEOF
   4354  1.1  christos rm -f conftest.$ac_objext
   4355  1.1  christos if { (ac_try="$ac_compile"
   4356  1.1  christos case "(($ac_try" in
   4357  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4358  1.1  christos   *) ac_try_echo=$ac_try;;
   4359  1.1  christos esac
   4360  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4361  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   4362  1.1  christos   ac_status=$?
   4363  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4364  1.1  christos   rm -f conftest.er1
   4365  1.1  christos   cat conftest.err >&5
   4366  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4367  1.1  christos   (exit $ac_status); } && {
   4368  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   4369  1.1  christos 	 test ! -s conftest.err
   4370  1.1  christos        } && test -s conftest.$ac_objext; then
   4371  1.1  christos   ac_cv_header_time=yes
   4372  1.1  christos else
   4373  1.1  christos   echo "$as_me: failed program was:" >&5
   4374  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4375  1.1  christos 
   4376  1.1  christos 	ac_cv_header_time=no
   4377  1.1  christos fi
   4378  1.1  christos 
   4379  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4380  1.1  christos fi
   4381  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
   4382  1.1  christos echo "${ECHO_T}$ac_cv_header_time" >&6; }
   4383  1.1  christos if test $ac_cv_header_time = yes; then
   4384  1.1  christos 
   4385  1.1  christos cat >>confdefs.h <<\_ACEOF
   4386  1.1  christos #define TIME_WITH_SYS_TIME 1
   4387  1.1  christos _ACEOF
   4388  1.1  christos 
   4389  1.1  christos fi
   4390  1.1  christos 
   4391  1.1  christos 
   4392  1.1  christos case "$host_os" in
   4393  1.1  christos 
   4394  1.3  christos darwin*)
   4395  1.3  christos 	# Check whether --enable-universal was given.
   4396  1.3  christos if test "${enable_universal+set}" = set; then
   4397  1.3  christos   enableval=$enable_universal;
   4398  1.3  christos fi
   4399  1.3  christos 
   4400  1.3  christos 	if test "$enable_universal" != "no"; then
   4401  1.3  christos 		case "$host_os" in
   4402  1.3  christos 
   4403  1.3  christos 		darwin9.*)
   4404  1.3  christos 			#
   4405  1.3  christos 			# Leopard.  Build for x86 and 32-bit PowerPC, with
   4406  1.3  christos 			# x86 first.  (That's what Apple does.)
   4407  1.3  christos 			#
   4408  1.3  christos 			V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
   4409  1.3  christos 			LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
   4410  1.3  christos 			;;
   4411  1.3  christos 
   4412  1.3  christos 		darwin10.*)
   4413  1.3  christos 			#
   4414  1.3  christos 			# Snow Leopard.  Build for x86-64 and x86, with
   4415  1.3  christos 			# x86-64 first.  (That's what Apple does.)
   4416  1.3  christos 			#
   4417  1.3  christos 			V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
   4418  1.3  christos 			LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
   4419  1.3  christos 			;;
   4420  1.3  christos 		esac
   4421  1.3  christos 	fi
   4422  1.3  christos 	;;
   4423  1.3  christos 
   4424  1.1  christos linux*)
   4425  1.1  christos 	{ echo "$as_me:$LINENO: checking Linux kernel version" >&5
   4426  1.1  christos echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
   4427  1.1  christos  	if test "$cross_compiling" = yes; then
   4428  1.1  christos  		if test "${ac_cv_linux_vers+set}" = set; then
   4429  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4430  1.1  christos else
   4431  1.1  christos   ac_cv_linux_vers=unknown
   4432  1.1  christos fi
   4433  1.1  christos 
   4434  1.1  christos  	else
   4435  1.1  christos  		if test "${ac_cv_linux_vers+set}" = set; then
   4436  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4437  1.1  christos else
   4438  1.1  christos   ac_cv_linux_vers=`uname -r 2>&1 | \
   4439  1.1  christos  			sed -n -e '$s/.* //' -e '$s/\..*//p'`
   4440  1.1  christos fi
   4441  1.1  christos 
   4442  1.1  christos  	fi
   4443  1.1  christos 	{ echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
   4444  1.1  christos echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
   4445  1.1  christos  	if test $ac_cv_linux_vers = unknown ; then
   4446  1.1  christos  		{ { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
   4447  1.1  christos echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
   4448  1.1  christos    { (exit 1); exit 1; }; }
   4449  1.1  christos  	fi
   4450  1.1  christos 	if test $ac_cv_linux_vers -lt 2 ; then
   4451  1.1  christos 		{ { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
   4452  1.1  christos echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
   4453  1.1  christos    { (exit 1); exit 1; }; }
   4454  1.1  christos 	fi
   4455  1.1  christos 	;;
   4456  1.1  christos 
   4457  1.1  christos *)
   4458  1.1  christos 	;;
   4459  1.1  christos esac
   4460  1.1  christos 
   4461  1.1  christos 
   4462  1.1  christos 
   4463  1.1  christos # Check whether --with-smi was given.
   4464  1.1  christos if test "${with_smi+set}" = set; then
   4465  1.1  christos   withval=$with_smi;
   4466  1.1  christos else
   4467  1.1  christos   with_smi=yes
   4468  1.1  christos fi
   4469  1.1  christos 
   4470  1.1  christos 
   4471  1.1  christos if test "x$with_smi" != "xno" ; then
   4472  1.1  christos 
   4473  1.1  christos for ac_header in smi.h
   4474  1.1  christos do
   4475  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4476  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4477  1.1  christos   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4478  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4479  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4480  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4481  1.1  christos fi
   4482  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   4483  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4484  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   4485  1.1  christos else
   4486  1.1  christos   # Is the header compilable?
   4487  1.1  christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   4488  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   4489  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4490  1.1  christos /* confdefs.h.  */
   4491  1.1  christos _ACEOF
   4492  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4493  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4494  1.1  christos /* end confdefs.h.  */
   4495  1.1  christos $ac_includes_default
   4496  1.1  christos #include <$ac_header>
   4497  1.1  christos _ACEOF
   4498  1.1  christos rm -f conftest.$ac_objext
   4499  1.1  christos if { (ac_try="$ac_compile"
   4500  1.1  christos case "(($ac_try" in
   4501  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4502  1.1  christos   *) ac_try_echo=$ac_try;;
   4503  1.1  christos esac
   4504  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4505  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   4506  1.1  christos   ac_status=$?
   4507  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4508  1.1  christos   rm -f conftest.er1
   4509  1.1  christos   cat conftest.err >&5
   4510  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4511  1.1  christos   (exit $ac_status); } && {
   4512  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   4513  1.1  christos 	 test ! -s conftest.err
   4514  1.1  christos        } && test -s conftest.$ac_objext; then
   4515  1.1  christos   ac_header_compiler=yes
   4516  1.1  christos else
   4517  1.1  christos   echo "$as_me: failed program was:" >&5
   4518  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4519  1.1  christos 
   4520  1.1  christos 	ac_header_compiler=no
   4521  1.1  christos fi
   4522  1.1  christos 
   4523  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4524  1.1  christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   4525  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6; }
   4526  1.1  christos 
   4527  1.1  christos # Is the header present?
   4528  1.1  christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   4529  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   4530  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4531  1.1  christos /* confdefs.h.  */
   4532  1.1  christos _ACEOF
   4533  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4534  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4535  1.1  christos /* end confdefs.h.  */
   4536  1.1  christos #include <$ac_header>
   4537  1.1  christos _ACEOF
   4538  1.1  christos if { (ac_try="$ac_cpp conftest.$ac_ext"
   4539  1.1  christos case "(($ac_try" in
   4540  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4541  1.1  christos   *) ac_try_echo=$ac_try;;
   4542  1.1  christos esac
   4543  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4544  1.1  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4545  1.1  christos   ac_status=$?
   4546  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4547  1.1  christos   rm -f conftest.er1
   4548  1.1  christos   cat conftest.err >&5
   4549  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4550  1.1  christos   (exit $ac_status); } >/dev/null && {
   4551  1.1  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4552  1.1  christos 	 test ! -s conftest.err
   4553  1.1  christos        }; then
   4554  1.1  christos   ac_header_preproc=yes
   4555  1.1  christos else
   4556  1.1  christos   echo "$as_me: failed program was:" >&5
   4557  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4558  1.1  christos 
   4559  1.1  christos   ac_header_preproc=no
   4560  1.1  christos fi
   4561  1.1  christos 
   4562  1.1  christos rm -f conftest.err conftest.$ac_ext
   4563  1.1  christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   4564  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6; }
   4565  1.1  christos 
   4566  1.1  christos # So?  What about this header?
   4567  1.1  christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   4568  1.1  christos   yes:no: )
   4569  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   4570  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   4571  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   4572  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   4573  1.1  christos     ac_header_preproc=yes
   4574  1.1  christos     ;;
   4575  1.1  christos   no:yes:* )
   4576  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   4577  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   4578  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   4579  1.1  christos echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   4580  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   4581  1.1  christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   4582  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   4583  1.1  christos echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   4584  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   4585  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   4586  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   4587  1.1  christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   4588  1.1  christos 
   4589  1.1  christos     ;;
   4590  1.1  christos esac
   4591  1.1  christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4592  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4593  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4594  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4595  1.1  christos else
   4596  1.1  christos   eval "$as_ac_Header=\$ac_header_preproc"
   4597  1.1  christos fi
   4598  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   4599  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4600  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   4601  1.1  christos 
   4602  1.1  christos fi
   4603  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4604  1.1  christos   cat >>confdefs.h <<_ACEOF
   4605  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4606  1.1  christos _ACEOF
   4607  1.1  christos 
   4608  1.1  christos fi
   4609  1.1  christos 
   4610  1.1  christos done
   4611  1.1  christos 
   4612  1.1  christos 
   4613  1.1  christos { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
   4614  1.1  christos echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
   4615  1.1  christos if test "${ac_cv_lib_smi_smiInit+set}" = set; then
   4616  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4617  1.1  christos else
   4618  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   4619  1.1  christos LIBS="-lsmi  $LIBS"
   4620  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4621  1.1  christos /* confdefs.h.  */
   4622  1.1  christos _ACEOF
   4623  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4624  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4625  1.1  christos /* end confdefs.h.  */
   4626  1.1  christos 
   4627  1.1  christos /* Override any GCC internal prototype to avoid an error.
   4628  1.1  christos    Use char because int might match the return type of a GCC
   4629  1.1  christos    builtin and then its argument prototype would still apply.  */
   4630  1.1  christos #ifdef __cplusplus
   4631  1.1  christos extern "C"
   4632  1.1  christos #endif
   4633  1.1  christos char smiInit ();
   4634  1.1  christos int
   4635  1.1  christos main ()
   4636  1.1  christos {
   4637  1.1  christos return smiInit ();
   4638  1.1  christos   ;
   4639  1.1  christos   return 0;
   4640  1.1  christos }
   4641  1.1  christos _ACEOF
   4642  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4643  1.1  christos if { (ac_try="$ac_link"
   4644  1.1  christos case "(($ac_try" in
   4645  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4646  1.1  christos   *) ac_try_echo=$ac_try;;
   4647  1.1  christos esac
   4648  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4649  1.1  christos   (eval "$ac_link") 2>conftest.er1
   4650  1.1  christos   ac_status=$?
   4651  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4652  1.1  christos   rm -f conftest.er1
   4653  1.1  christos   cat conftest.err >&5
   4654  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4655  1.1  christos   (exit $ac_status); } && {
   4656  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   4657  1.1  christos 	 test ! -s conftest.err
   4658  1.1  christos        } && test -s conftest$ac_exeext &&
   4659  1.1  christos        $as_test_x conftest$ac_exeext; then
   4660  1.1  christos   ac_cv_lib_smi_smiInit=yes
   4661  1.1  christos else
   4662  1.1  christos   echo "$as_me: failed program was:" >&5
   4663  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4664  1.1  christos 
   4665  1.1  christos 	ac_cv_lib_smi_smiInit=no
   4666  1.1  christos fi
   4667  1.1  christos 
   4668  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   4669  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4670  1.1  christos LIBS=$ac_check_lib_save_LIBS
   4671  1.1  christos fi
   4672  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
   4673  1.1  christos echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
   4674  1.1  christos if test $ac_cv_lib_smi_smiInit = yes; then
   4675  1.1  christos   cat >>confdefs.h <<_ACEOF
   4676  1.1  christos #define HAVE_LIBSMI 1
   4677  1.1  christos _ACEOF
   4678  1.1  christos 
   4679  1.1  christos   LIBS="-lsmi $LIBS"
   4680  1.1  christos 
   4681  1.1  christos fi
   4682  1.1  christos 
   4683  1.1  christos if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
   4684  1.1  christos then
   4685  1.1  christos { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
   4686  1.1  christos echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
   4687  1.1  christos         if test "$cross_compiling" = yes; then
   4688  1.1  christos    { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
   4689  1.1  christos echo "${ECHO_T}not when cross-compiling" >&6; }
   4690  1.1  christos   libsmi=no
   4691  1.1  christos 
   4692  1.1  christos else
   4693  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4694  1.1  christos /* confdefs.h.  */
   4695  1.1  christos _ACEOF
   4696  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4697  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4698  1.1  christos /* end confdefs.h.  */
   4699  1.1  christos  /* libsmi available check */
   4700  1.1  christos #include <smi.h>
   4701  1.1  christos main()
   4702  1.1  christos {
   4703  1.1  christos   int current, revision, age, n;
   4704  1.1  christos   const int required = 2;
   4705  1.1  christos   if (smiInit(""))
   4706  1.1  christos     exit(1);
   4707  1.1  christos   if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
   4708  1.1  christos     exit(2);
   4709  1.1  christos   n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
   4710  1.1  christos   if (n != 3)
   4711  1.1  christos     exit(3);
   4712  1.1  christos   if (required < current - age || required > current)
   4713  1.1  christos     exit(4);
   4714  1.1  christos   exit(0);
   4715  1.1  christos }
   4716  1.1  christos 
   4717  1.1  christos _ACEOF
   4718  1.1  christos rm -f conftest$ac_exeext
   4719  1.1  christos if { (ac_try="$ac_link"
   4720  1.1  christos case "(($ac_try" in
   4721  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4722  1.1  christos   *) ac_try_echo=$ac_try;;
   4723  1.1  christos esac
   4724  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4725  1.1  christos   (eval "$ac_link") 2>&5
   4726  1.1  christos   ac_status=$?
   4727  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4728  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4729  1.1  christos   { (case "(($ac_try" in
   4730  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4731  1.1  christos   *) ac_try_echo=$ac_try;;
   4732  1.1  christos esac
   4733  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4734  1.1  christos   (eval "$ac_try") 2>&5
   4735  1.1  christos   ac_status=$?
   4736  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4737  1.1  christos   (exit $ac_status); }; }; then
   4738  1.1  christos    { echo "$as_me:$LINENO: result: yes" >&5
   4739  1.1  christos echo "${ECHO_T}yes" >&6; }
   4740  1.1  christos   cat >>confdefs.h <<\_ACEOF
   4741  1.1  christos #define LIBSMI 1
   4742  1.1  christos _ACEOF
   4743  1.1  christos 
   4744  1.1  christos   libsmi=yes
   4745  1.1  christos else
   4746  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   4747  1.1  christos echo "$as_me: failed program was:" >&5
   4748  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4749  1.1  christos 
   4750  1.1  christos ( exit $ac_status )
   4751  1.1  christos  case $? in
   4752  1.1  christos   1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
   4753  1.1  christos echo "${ECHO_T}no - smiInit failed" >&6; } ;;
   4754  1.1  christos   2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
   4755  1.1  christos echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
   4756  1.1  christos   3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
   4757  1.1  christos echo "${ECHO_T}no - can't determine library version" >&6; } ;;
   4758  1.1  christos   4) { echo "$as_me:$LINENO: result: no - too old" >&5
   4759  1.1  christos echo "${ECHO_T}no - too old" >&6; } ;;
   4760  1.1  christos   *) { echo "$as_me:$LINENO: result: no" >&5
   4761  1.1  christos echo "${ECHO_T}no" >&6; } ;;
   4762  1.1  christos   esac
   4763  1.1  christos   libsmi=no
   4764  1.1  christos fi
   4765  1.1  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4766  1.1  christos fi
   4767  1.1  christos 
   4768  1.1  christos 
   4769  1.1  christos fi
   4770  1.1  christos fi
   4771  1.1  christos 
   4772  1.1  christos { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
   4773  1.1  christos echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
   4774  1.1  christos # Check whether --enable-smb was given.
   4775  1.1  christos if test "${enable_smb+set}" = set; then
   4776  1.1  christos   enableval=$enable_smb;
   4777  1.1  christos else
   4778  1.1  christos   enableval=yes
   4779  1.1  christos fi
   4780  1.1  christos 
   4781  1.1  christos case "$enableval" in
   4782  1.1  christos yes)	{ echo "$as_me:$LINENO: result: yes" >&5
   4783  1.1  christos echo "${ECHO_T}yes" >&6; }
   4784  1.1  christos 	{ echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
   4785  1.1  christos echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
   4786  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   4787  1.1  christos #define TCPDUMP_DO_SMB 1
   4788  1.1  christos _ACEOF
   4789  1.1  christos 
   4790  1.1  christos 	LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
   4791  1.1  christos 	;;
   4792  1.1  christos *)	{ echo "$as_me:$LINENO: result: no" >&5
   4793  1.1  christos echo "${ECHO_T}no" >&6; }
   4794  1.1  christos 	;;
   4795  1.1  christos esac
   4796  1.1  christos 
   4797  1.1  christos 
   4798  1.1  christos # Check whether --with-user was given.
   4799  1.1  christos if test "${with_user+set}" = set; then
   4800  1.1  christos   withval=$with_user;
   4801  1.1  christos fi
   4802  1.1  christos 
   4803  1.1  christos { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
   4804  1.1  christos echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
   4805  1.1  christos if test ! -z "$with_user" ; then
   4806  1.1  christos         cat >>confdefs.h <<_ACEOF
   4807  1.1  christos #define WITH_USER "$withval"
   4808  1.1  christos _ACEOF
   4809  1.1  christos 
   4810  1.1  christos        { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
   4811  1.1  christos echo "${ECHO_T}to \"$withval\"" >&6; }
   4812  1.1  christos else
   4813  1.1  christos        { echo "$as_me:$LINENO: result: no" >&5
   4814  1.1  christos echo "${ECHO_T}no" >&6; }
   4815  1.1  christos fi
   4816  1.1  christos 
   4817  1.1  christos 
   4818  1.1  christos # Check whether --with-chroot was given.
   4819  1.1  christos if test "${with_chroot+set}" = set; then
   4820  1.1  christos   withval=$with_chroot;
   4821  1.1  christos fi
   4822  1.1  christos 
   4823  1.1  christos { echo "$as_me:$LINENO: checking whether to chroot" >&5
   4824  1.1  christos echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
   4825  1.1  christos if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
   4826  1.1  christos         cat >>confdefs.h <<_ACEOF
   4827  1.1  christos #define WITH_CHROOT "$withval"
   4828  1.1  christos _ACEOF
   4829  1.1  christos 
   4830  1.1  christos        { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
   4831  1.1  christos echo "${ECHO_T}to \"$withval\"" >&6; }
   4832  1.1  christos else
   4833  1.1  christos        { echo "$as_me:$LINENO: result: no" >&5
   4834  1.1  christos echo "${ECHO_T}no" >&6; }
   4835  1.1  christos fi
   4836  1.1  christos 
   4837  1.1  christos { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
   4838  1.1  christos echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
   4839  1.1  christos # Check whether --enable-ipv6 was given.
   4840  1.1  christos if test "${enable_ipv6+set}" = set; then
   4841  1.1  christos   enableval=$enable_ipv6;  case "$enableval" in
   4842  1.1  christos yes)   { echo "$as_me:$LINENO: result: yes" >&5
   4843  1.1  christos echo "${ECHO_T}yes" >&6; }
   4844  1.3  christos        LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
   4845  1.1  christos        cat >>confdefs.h <<\_ACEOF
   4846  1.1  christos #define INET6 1
   4847  1.1  christos _ACEOF
   4848  1.1  christos 
   4849  1.1  christos        ipv6=yes
   4850  1.1  christos        ;;
   4851  1.1  christos *)
   4852  1.1  christos        { echo "$as_me:$LINENO: result: no" >&5
   4853  1.1  christos echo "${ECHO_T}no" >&6; }
   4854  1.1  christos        ipv6=no
   4855  1.1  christos        ;;
   4856  1.1  christos   esac
   4857  1.1  christos else
   4858  1.1  christos   if test "$cross_compiling" = yes; then
   4859  1.1  christos    { echo "$as_me:$LINENO: result: no" >&5
   4860  1.1  christos echo "${ECHO_T}no" >&6; }
   4861  1.1  christos   ipv6=no
   4862  1.1  christos 
   4863  1.1  christos else
   4864  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4865  1.1  christos /* confdefs.h.  */
   4866  1.1  christos _ACEOF
   4867  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4868  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4869  1.1  christos /* end confdefs.h.  */
   4870  1.1  christos  /* AF_INET6 available check */
   4871  1.1  christos #include <sys/types.h>
   4872  1.1  christos #include <sys/socket.h>
   4873  1.1  christos main()
   4874  1.1  christos {
   4875  1.1  christos  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
   4876  1.1  christos    exit(1);
   4877  1.1  christos  else
   4878  1.1  christos    exit(0);
   4879  1.1  christos }
   4880  1.1  christos 
   4881  1.1  christos _ACEOF
   4882  1.1  christos rm -f conftest$ac_exeext
   4883  1.1  christos if { (ac_try="$ac_link"
   4884  1.1  christos case "(($ac_try" in
   4885  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4886  1.1  christos   *) ac_try_echo=$ac_try;;
   4887  1.1  christos esac
   4888  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4889  1.1  christos   (eval "$ac_link") 2>&5
   4890  1.1  christos   ac_status=$?
   4891  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4892  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4893  1.1  christos   { (case "(($ac_try" in
   4894  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4895  1.1  christos   *) ac_try_echo=$ac_try;;
   4896  1.1  christos esac
   4897  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4898  1.1  christos   (eval "$ac_try") 2>&5
   4899  1.1  christos   ac_status=$?
   4900  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4901  1.1  christos   (exit $ac_status); }; }; then
   4902  1.1  christos    { echo "$as_me:$LINENO: result: yes" >&5
   4903  1.1  christos echo "${ECHO_T}yes" >&6; }
   4904  1.3  christos   LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
   4905  1.1  christos   cat >>confdefs.h <<\_ACEOF
   4906  1.1  christos #define INET6 1
   4907  1.1  christos _ACEOF
   4908  1.1  christos 
   4909  1.1  christos   ipv6=yes
   4910  1.1  christos else
   4911  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   4912  1.1  christos echo "$as_me: failed program was:" >&5
   4913  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4914  1.1  christos 
   4915  1.1  christos ( exit $ac_status )
   4916  1.1  christos  { echo "$as_me:$LINENO: result: no" >&5
   4917  1.1  christos echo "${ECHO_T}no" >&6; }
   4918  1.1  christos   ipv6=no
   4919  1.1  christos fi
   4920  1.1  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4921  1.1  christos fi
   4922  1.1  christos 
   4923  1.1  christos 
   4924  1.1  christos fi
   4925  1.1  christos 
   4926  1.1  christos 
   4927  1.1  christos ipv6type=unknown
   4928  1.1  christos ipv6lib=none
   4929  1.1  christos ipv6trylibc=no
   4930  1.1  christos 
   4931  1.1  christos if test "$ipv6" = "yes"; then
   4932  1.1  christos 	{ echo "$as_me:$LINENO: checking ipv6 stack type" >&5
   4933  1.1  christos echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
   4934  1.1  christos 	for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
   4935  1.1  christos 		case $i in
   4936  1.1  christos 		inria)
   4937  1.1  christos 						cat >conftest.$ac_ext <<_ACEOF
   4938  1.1  christos /* confdefs.h.  */
   4939  1.1  christos _ACEOF
   4940  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4941  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4942  1.1  christos /* end confdefs.h.  */
   4943  1.1  christos #include <netinet/in.h>
   4944  1.1  christos #ifdef IPV6_INRIA_VERSION
   4945  1.1  christos yes
   4946  1.1  christos #endif
   4947  1.1  christos _ACEOF
   4948  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4949  1.1  christos   $EGREP "yes" >/dev/null 2>&1; then
   4950  1.1  christos   ipv6type=$i;
   4951  1.1  christos 				CFLAGS="-DINET6 $CFLAGS"
   4952  1.1  christos fi
   4953  1.1  christos rm -f -r conftest*
   4954  1.1  christos 
   4955  1.1  christos 			;;
   4956  1.1  christos 		kame)
   4957  1.1  christos 						cat >conftest.$ac_ext <<_ACEOF
   4958  1.1  christos /* confdefs.h.  */
   4959  1.1  christos _ACEOF
   4960  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4961  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4962  1.1  christos /* end confdefs.h.  */
   4963  1.1  christos #include <netinet/in.h>
   4964  1.1  christos #ifdef __KAME__
   4965  1.1  christos yes
   4966  1.1  christos #endif
   4967  1.1  christos _ACEOF
   4968  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4969  1.1  christos   $EGREP "yes" >/dev/null 2>&1; then
   4970  1.1  christos   ipv6type=$i;
   4971  1.1  christos 				ipv6lib=inet6;
   4972  1.1  christos 				ipv6libdir=/usr/local/v6/lib;
   4973  1.1  christos 				ipv6trylibc=yes;
   4974  1.1  christos 				CFLAGS="-DINET6 $CFLAGS"
   4975  1.1  christos fi
   4976  1.1  christos rm -f -r conftest*
   4977  1.1  christos 
   4978  1.1  christos 			;;
   4979  1.1  christos 		linux-glibc)
   4980  1.1  christos 						cat >conftest.$ac_ext <<_ACEOF
   4981  1.1  christos /* confdefs.h.  */
   4982  1.1  christos _ACEOF
   4983  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4984  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4985  1.1  christos /* end confdefs.h.  */
   4986  1.1  christos #include <features.h>
   4987  1.1  christos #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
   4988  1.1  christos yes
   4989  1.1  christos #endif
   4990  1.1  christos _ACEOF
   4991  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4992  1.1  christos   $EGREP "yes" >/dev/null 2>&1; then
   4993  1.1  christos   ipv6type=$i;
   4994  1.1  christos 				CFLAGS="-DINET6 $CFLAGS"
   4995  1.1  christos fi
   4996  1.1  christos rm -f -r conftest*
   4997  1.1  christos 
   4998  1.1  christos 			;;
   4999  1.1  christos 		linux-libinet6)
   5000  1.1  christos 																		if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
   5001  1.1  christos 				ipv6type=$i
   5002  1.1  christos 				ipv6lib=inet6
   5003  1.1  christos 				ipv6libdir=/usr/inet6/lib
   5004  1.1  christos 				ipv6trylibc=yes;
   5005  1.1  christos 				CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
   5006  1.1  christos 			fi
   5007  1.1  christos 			;;
   5008  1.1  christos 		toshiba)
   5009  1.1  christos 			cat >conftest.$ac_ext <<_ACEOF
   5010  1.1  christos /* confdefs.h.  */
   5011  1.1  christos _ACEOF
   5012  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5013  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5014  1.1  christos /* end confdefs.h.  */
   5015  1.1  christos #include <sys/param.h>
   5016  1.1  christos #ifdef _TOSHIBA_INET6
   5017  1.1  christos yes
   5018  1.1  christos #endif
   5019  1.1  christos _ACEOF
   5020  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5021  1.1  christos   $EGREP "yes" >/dev/null 2>&1; then
   5022  1.1  christos   ipv6type=$i;
   5023  1.1  christos 				ipv6lib=inet6;
   5024  1.1  christos 				ipv6libdir=/usr/local/v6/lib;
   5025  1.1  christos 				CFLAGS="-DINET6 $CFLAGS"
   5026  1.1  christos fi
   5027  1.1  christos rm -f -r conftest*
   5028  1.1  christos 
   5029  1.1  christos 			;;
   5030  1.1  christos 		v6d)
   5031  1.1  christos 			cat >conftest.$ac_ext <<_ACEOF
   5032  1.1  christos /* confdefs.h.  */
   5033  1.1  christos _ACEOF
   5034  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5035  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5036  1.1  christos /* end confdefs.h.  */
   5037  1.1  christos #include </usr/local/v6/include/sys/v6config.h>
   5038  1.1  christos #ifdef __V6D__
   5039  1.1  christos yes
   5040  1.1  christos #endif
   5041  1.1  christos _ACEOF
   5042  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5043  1.1  christos   $EGREP "yes" >/dev/null 2>&1; then
   5044  1.1  christos   ipv6type=$i;
   5045  1.1  christos 				ipv6lib=v6;
   5046  1.1  christos 				ipv6libdir=/usr/local/v6/lib;
   5047  1.1  christos 				CFLAGS="-I/usr/local/v6/include $CFLAGS"
   5048  1.1  christos fi
   5049  1.1  christos rm -f -r conftest*
   5050  1.1  christos 
   5051  1.1  christos 			;;
   5052  1.1  christos 		zeta)
   5053  1.1  christos 			cat >conftest.$ac_ext <<_ACEOF
   5054  1.1  christos /* confdefs.h.  */
   5055  1.1  christos _ACEOF
   5056  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5057  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5058  1.1  christos /* end confdefs.h.  */
   5059  1.1  christos #include <sys/param.h>
   5060  1.1  christos #ifdef _ZETA_MINAMI_INET6
   5061  1.1  christos yes
   5062  1.1  christos #endif
   5063  1.1  christos _ACEOF
   5064  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5065  1.1  christos   $EGREP "yes" >/dev/null 2>&1; then
   5066  1.1  christos   ipv6type=$i;
   5067  1.1  christos 				ipv6lib=inet6;
   5068  1.1  christos 				ipv6libdir=/usr/local/v6/lib;
   5069  1.1  christos 				CFLAGS="-DINET6 $CFLAGS"
   5070  1.1  christos fi
   5071  1.1  christos rm -f -r conftest*
   5072  1.1  christos 
   5073  1.1  christos 			;;
   5074  1.1  christos 		esac
   5075  1.1  christos 		if test "$ipv6type" != "unknown"; then
   5076  1.1  christos 			break
   5077  1.1  christos 		fi
   5078  1.1  christos 	done
   5079  1.1  christos 	{ echo "$as_me:$LINENO: result: $ipv6type" >&5
   5080  1.1  christos echo "${ECHO_T}$ipv6type" >&6; }
   5081  1.1  christos fi
   5082  1.1  christos 
   5083  1.1  christos if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
   5084  1.1  christos 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
   5085  1.1  christos 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
   5086  1.1  christos 		echo "You have $ipv6lib library, using it"
   5087  1.1  christos 	else
   5088  1.1  christos 		if test "$ipv6trylibc" = "yes"; then
   5089  1.1  christos 			echo "You do not have $ipv6lib library, using libc"
   5090  1.1  christos 		else
   5091  1.1  christos 			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
   5092  1.1  christos 			echo "You need to fetch lib$ipv6lib.a from appropriate"
   5093  1.1  christos 			echo 'ipv6 kit and compile beforehand.'
   5094  1.1  christos 			exit 1
   5095  1.1  christos 		fi
   5096  1.1  christos 	fi
   5097  1.1  christos fi
   5098  1.1  christos 
   5099  1.1  christos 
   5100  1.1  christos if test "$ipv6" = "yes"; then
   5101  1.1  christos 	#
   5102  1.1  christos 	# XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
   5103  1.1  christos 	# function in libc; there are "ngetaddrinfo()" and
   5104  1.1  christos 	# "ogetaddrinfo()" functions, and <netdb.h> #defines
   5105  1.1  christos 	# "getaddrinfo" to be either "ngetaddrinfo" or
   5106  1.1  christos 	# "ogetaddrinfo", depending on whether _SOCKADDR_LEN
   5107  1.1  christos 	# or _XOPEN_SOURCE_EXTENDED are defined or not.
   5108  1.1  christos 	#
   5109  1.1  christos 	# So this test doesn't work on Tru64 5.1, and possibly
   5110  1.1  christos 	# on other 5.x releases.  This causes the configure
   5111  1.1  christos 	# script to become confused, and results in libpcap
   5112  1.1  christos 	# being unbuildable.
   5113  1.1  christos 	#
   5114  1.1  christos 	{ echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
   5115  1.1  christos echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
   5116  1.1  christos if test "${ac_cv_search_getaddrinfo+set}" = set; then
   5117  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5118  1.1  christos else
   5119  1.1  christos   ac_func_search_save_LIBS=$LIBS
   5120  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   5121  1.1  christos /* confdefs.h.  */
   5122  1.1  christos _ACEOF
   5123  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5124  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5125  1.1  christos /* end confdefs.h.  */
   5126  1.1  christos 
   5127  1.1  christos /* Override any GCC internal prototype to avoid an error.
   5128  1.1  christos    Use char because int might match the return type of a GCC
   5129  1.1  christos    builtin and then its argument prototype would still apply.  */
   5130  1.1  christos #ifdef __cplusplus
   5131  1.1  christos extern "C"
   5132  1.1  christos #endif
   5133  1.1  christos char getaddrinfo ();
   5134  1.1  christos int
   5135  1.1  christos main ()
   5136  1.1  christos {
   5137  1.1  christos return getaddrinfo ();
   5138  1.1  christos   ;
   5139  1.1  christos   return 0;
   5140  1.1  christos }
   5141  1.1  christos _ACEOF
   5142  1.1  christos for ac_lib in '' socket; do
   5143  1.1  christos   if test -z "$ac_lib"; then
   5144  1.1  christos     ac_res="none required"
   5145  1.1  christos   else
   5146  1.1  christos     ac_res=-l$ac_lib
   5147  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5148  1.1  christos   fi
   5149  1.1  christos   rm -f conftest.$ac_objext conftest$ac_exeext
   5150  1.1  christos if { (ac_try="$ac_link"
   5151  1.1  christos case "(($ac_try" in
   5152  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5153  1.1  christos   *) ac_try_echo=$ac_try;;
   5154  1.1  christos esac
   5155  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5156  1.1  christos   (eval "$ac_link") 2>conftest.er1
   5157  1.1  christos   ac_status=$?
   5158  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   5159  1.1  christos   rm -f conftest.er1
   5160  1.1  christos   cat conftest.err >&5
   5161  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5162  1.1  christos   (exit $ac_status); } && {
   5163  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   5164  1.1  christos 	 test ! -s conftest.err
   5165  1.1  christos        } && test -s conftest$ac_exeext &&
   5166  1.1  christos        $as_test_x conftest$ac_exeext; then
   5167  1.1  christos   ac_cv_search_getaddrinfo=$ac_res
   5168  1.1  christos else
   5169  1.1  christos   echo "$as_me: failed program was:" >&5
   5170  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   5171  1.1  christos 
   5172  1.1  christos 
   5173  1.1  christos fi
   5174  1.1  christos 
   5175  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   5176  1.1  christos       conftest$ac_exeext
   5177  1.1  christos   if test "${ac_cv_search_getaddrinfo+set}" = set; then
   5178  1.1  christos   break
   5179  1.1  christos fi
   5180  1.1  christos done
   5181  1.1  christos if test "${ac_cv_search_getaddrinfo+set}" = set; then
   5182  1.1  christos   :
   5183  1.1  christos else
   5184  1.1  christos   ac_cv_search_getaddrinfo=no
   5185  1.1  christos fi
   5186  1.1  christos rm conftest.$ac_ext
   5187  1.1  christos LIBS=$ac_func_search_save_LIBS
   5188  1.1  christos fi
   5189  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
   5190  1.1  christos echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
   5191  1.1  christos ac_res=$ac_cv_search_getaddrinfo
   5192  1.1  christos if test "$ac_res" != no; then
   5193  1.1  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5194  1.1  christos   	{ echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
   5195  1.1  christos echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
   5196  1.1  christos 	if test "${td_cv_buggygetaddrinfo+set}" = set; then
   5197  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5198  1.1  christos else
   5199  1.1  christos   if test "$cross_compiling" = yes; then
   5200  1.1  christos   td_cv_buggygetaddrinfo=yes
   5201  1.1  christos else
   5202  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   5203  1.1  christos /* confdefs.h.  */
   5204  1.1  christos _ACEOF
   5205  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5206  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5207  1.1  christos /* end confdefs.h.  */
   5208  1.1  christos 
   5209  1.1  christos #include <sys/types.h>
   5210  1.1  christos #include <netdb.h>
   5211  1.1  christos #include <string.h>
   5212  1.1  christos #include <sys/socket.h>
   5213  1.1  christos #include <netinet/in.h>
   5214  1.1  christos 
   5215  1.1  christos main()
   5216  1.1  christos {
   5217  1.1  christos   int passive, gaierr, inet4 = 0, inet6 = 0;
   5218  1.1  christos   struct addrinfo hints, *ai, *aitop;
   5219  1.1  christos   char straddr[INET6_ADDRSTRLEN], strport[16];
   5220  1.1  christos 
   5221  1.1  christos   for (passive = 0; passive <= 1; passive++) {
   5222  1.1  christos     memset(&hints, 0, sizeof(hints));
   5223  1.1  christos     hints.ai_family = AF_UNSPEC;
   5224  1.1  christos     hints.ai_flags = passive ? AI_PASSIVE : 0;
   5225  1.1  christos     hints.ai_socktype = SOCK_STREAM;
   5226  1.1  christos     hints.ai_protocol = IPPROTO_TCP;
   5227  1.1  christos     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
   5228  1.1  christos       (void)gai_strerror(gaierr);
   5229  1.1  christos       goto bad;
   5230  1.1  christos     }
   5231  1.1  christos     for (ai = aitop; ai; ai = ai->ai_next) {
   5232  1.1  christos       if (ai->ai_addr == NULL ||
   5233  1.1  christos           ai->ai_addrlen == 0 ||
   5234  1.1  christos           getnameinfo(ai->ai_addr, ai->ai_addrlen,
   5235  1.1  christos                       straddr, sizeof(straddr), strport, sizeof(strport),
   5236  1.1  christos                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
   5237  1.1  christos         goto bad;
   5238  1.1  christos       }
   5239  1.1  christos       switch (ai->ai_family) {
   5240  1.1  christos       case AF_INET:
   5241  1.1  christos         if (strcmp(strport, "54321") != 0) {
   5242  1.1  christos           goto bad;
   5243  1.1  christos         }
   5244  1.1  christos         if (passive) {
   5245  1.1  christos           if (strcmp(straddr, "0.0.0.0") != 0) {
   5246  1.1  christos             goto bad;
   5247  1.1  christos           }
   5248  1.1  christos         } else {
   5249  1.1  christos           if (strcmp(straddr, "127.0.0.1") != 0) {
   5250  1.1  christos             goto bad;
   5251  1.1  christos           }
   5252  1.1  christos         }
   5253  1.1  christos         inet4++;
   5254  1.1  christos         break;
   5255  1.1  christos       case AF_INET6:
   5256  1.1  christos         if (strcmp(strport, "54321") != 0) {
   5257  1.1  christos           goto bad;
   5258  1.1  christos         }
   5259  1.1  christos         if (passive) {
   5260  1.1  christos           if (strcmp(straddr, "::") != 0) {
   5261  1.1  christos             goto bad;
   5262  1.1  christos           }
   5263  1.1  christos         } else {
   5264  1.1  christos           if (strcmp(straddr, "::1") != 0) {
   5265  1.1  christos             goto bad;
   5266  1.1  christos           }
   5267  1.1  christos         }
   5268  1.1  christos         inet6++;
   5269  1.1  christos         break;
   5270  1.1  christos       case AF_UNSPEC:
   5271  1.1  christos         goto bad;
   5272  1.1  christos         break;
   5273  1.1  christos #ifdef AF_UNIX
   5274  1.1  christos       case AF_UNIX:
   5275  1.1  christos #else
   5276  1.1  christos #ifdef AF_LOCAL
   5277  1.1  christos       case AF_LOCAL:
   5278  1.1  christos #endif
   5279  1.1  christos #endif
   5280  1.1  christos       default:
   5281  1.1  christos         /* another family support? */
   5282  1.1  christos         break;
   5283  1.1  christos       }
   5284  1.1  christos     }
   5285  1.1  christos   }
   5286  1.1  christos 
   5287  1.1  christos   /* supported family should be 2, unsupported family should be 0 */
   5288  1.1  christos   if (!(inet4 == 0 || inet4 == 2))
   5289  1.1  christos     goto bad;
   5290  1.1  christos   if (!(inet6 == 0 || inet6 == 2))
   5291  1.1  christos     goto bad;
   5292  1.1  christos 
   5293  1.1  christos   if (aitop)
   5294  1.1  christos     freeaddrinfo(aitop);
   5295  1.1  christos   exit(0);
   5296  1.1  christos 
   5297  1.1  christos  bad:
   5298  1.1  christos   if (aitop)
   5299  1.1  christos     freeaddrinfo(aitop);
   5300  1.1  christos   exit(1);
   5301  1.1  christos }
   5302  1.1  christos 
   5303  1.1  christos _ACEOF
   5304  1.1  christos rm -f conftest$ac_exeext
   5305  1.1  christos if { (ac_try="$ac_link"
   5306  1.1  christos case "(($ac_try" in
   5307  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5308  1.1  christos   *) ac_try_echo=$ac_try;;
   5309  1.1  christos esac
   5310  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5311  1.1  christos   (eval "$ac_link") 2>&5
   5312  1.1  christos   ac_status=$?
   5313  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5314  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5315  1.1  christos   { (case "(($ac_try" in
   5316  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5317  1.1  christos   *) ac_try_echo=$ac_try;;
   5318  1.1  christos esac
   5319  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5320  1.1  christos   (eval "$ac_try") 2>&5
   5321  1.1  christos   ac_status=$?
   5322  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5323  1.1  christos   (exit $ac_status); }; }; then
   5324  1.1  christos   td_cv_buggygetaddrinfo=no
   5325  1.1  christos else
   5326  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   5327  1.1  christos echo "$as_me: failed program was:" >&5
   5328  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   5329  1.1  christos 
   5330  1.1  christos ( exit $ac_status )
   5331  1.1  christos td_cv_buggygetaddrinfo=yes
   5332  1.1  christos fi
   5333  1.1  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5334  1.1  christos fi
   5335  1.1  christos 
   5336  1.1  christos 
   5337  1.1  christos fi
   5338  1.1  christos 
   5339  1.1  christos 	if test "$td_cv_buggygetaddrinfo" = no; then
   5340  1.1  christos 		{ echo "$as_me:$LINENO: result: good" >&5
   5341  1.1  christos echo "${ECHO_T}good" >&6; }
   5342  1.1  christos 	else
   5343  1.1  christos 		{ echo "$as_me:$LINENO: result: buggy" >&5
   5344  1.1  christos echo "${ECHO_T}buggy" >&6; }
   5345  1.1  christos 	fi
   5346  1.1  christos 
   5347  1.1  christos 	if test "$td_cv_buggygetaddrinfo" = "yes"; then
   5348  1.1  christos 		#
   5349  1.1  christos 		# XXX - it doesn't appear that "ipv6type" can ever be
   5350  1.1  christos 		# set to "linux".  Should this be testing for
   5351  1.1  christos 		# "linux-glibc", or for that *or* "linux-libinet6"?
   5352  1.1  christos 		# If the latter, note that "linux-libinet6" is also
   5353  1.1  christos 		# the type given to some non-Linux OSes.
   5354  1.1  christos 		#
   5355  1.1  christos 		if test "$ipv6type" != "linux"; then
   5356  1.1  christos 			echo 'Fatal: You must get working getaddrinfo() function.'
   5357  1.1  christos 			echo '       or you can specify "--disable-ipv6"'.
   5358  1.1  christos 			exit 1
   5359  1.1  christos 		else
   5360  1.1  christos 			echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
   5361  1.1  christos 			echo '         Better upgrade your system library to newest version'
   5362  1.1  christos 			echo '         of GNU C library (aka glibc).'
   5363  1.1  christos 		fi
   5364  1.1  christos 	fi
   5365  1.1  christos 
   5366  1.1  christos fi
   5367  1.1  christos 
   5368  1.1  christos 
   5369  1.1  christos for ac_func in getnameinfo
   5370  1.1  christos do
   5371  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5372  1.1  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   5373  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   5374  1.1  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   5375  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5376  1.1  christos else
   5377  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   5378  1.1  christos /* confdefs.h.  */
   5379  1.1  christos _ACEOF
   5380  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5381  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5382  1.1  christos /* end confdefs.h.  */
   5383  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   5384  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   5385  1.1  christos #define $ac_func innocuous_$ac_func
   5386  1.1  christos 
   5387  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   5388  1.1  christos     which can conflict with char $ac_func (); below.
   5389  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5390  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   5391  1.1  christos 
   5392  1.1  christos #ifdef __STDC__
   5393  1.1  christos # include <limits.h>
   5394  1.1  christos #else
   5395  1.1  christos # include <assert.h>
   5396  1.1  christos #endif
   5397  1.1  christos 
   5398  1.1  christos #undef $ac_func
   5399  1.1  christos 
   5400  1.1  christos /* Override any GCC internal prototype to avoid an error.
   5401  1.1  christos    Use char because int might match the return type of a GCC
   5402  1.1  christos    builtin and then its argument prototype would still apply.  */
   5403  1.1  christos #ifdef __cplusplus
   5404  1.1  christos extern "C"
   5405  1.1  christos #endif
   5406  1.1  christos char $ac_func ();
   5407  1.1  christos /* The GNU C library defines this for functions which it implements
   5408  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   5409  1.1  christos     something starting with __ and the normal name is an alias.  */
   5410  1.1  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   5411  1.1  christos choke me
   5412  1.1  christos #endif
   5413  1.1  christos 
   5414  1.1  christos int
   5415  1.1  christos main ()
   5416  1.1  christos {
   5417  1.1  christos return $ac_func ();
   5418  1.1  christos   ;
   5419  1.1  christos   return 0;
   5420  1.1  christos }
   5421  1.1  christos _ACEOF
   5422  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5423  1.1  christos if { (ac_try="$ac_link"
   5424  1.1  christos case "(($ac_try" in
   5425  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5426  1.1  christos   *) ac_try_echo=$ac_try;;
   5427  1.1  christos esac
   5428  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5429  1.1  christos   (eval "$ac_link") 2>conftest.er1
   5430  1.1  christos   ac_status=$?
   5431  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   5432  1.1  christos   rm -f conftest.er1
   5433  1.1  christos   cat conftest.err >&5
   5434  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5435  1.1  christos   (exit $ac_status); } && {
   5436  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   5437  1.1  christos 	 test ! -s conftest.err
   5438  1.1  christos        } && test -s conftest$ac_exeext &&
   5439  1.1  christos        $as_test_x conftest$ac_exeext; then
   5440  1.1  christos   eval "$as_ac_var=yes"
   5441  1.1  christos else
   5442  1.1  christos   echo "$as_me: failed program was:" >&5
   5443  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   5444  1.1  christos 
   5445  1.1  christos 	eval "$as_ac_var=no"
   5446  1.1  christos fi
   5447  1.1  christos 
   5448  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   5449  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   5450  1.1  christos fi
   5451  1.1  christos ac_res=`eval echo '${'$as_ac_var'}'`
   5452  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   5453  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   5454  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   5455  1.1  christos   cat >>confdefs.h <<_ACEOF
   5456  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   5457  1.1  christos _ACEOF
   5458  1.1  christos 
   5459  1.1  christos else
   5460  1.1  christos   case " $LIBOBJS " in
   5461  1.1  christos   *" $ac_func.$ac_objext "* ) ;;
   5462  1.1  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   5463  1.1  christos  ;;
   5464  1.1  christos esac
   5465  1.1  christos 
   5466  1.1  christos fi
   5467  1.1  christos done
   5468  1.1  christos 
   5469  1.1  christos 
   5470  1.1  christos fi
   5471  1.1  christos 
   5472  1.1  christos { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
   5473  1.1  christos echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
   5474  1.1  christos if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
   5475  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5476  1.1  christos else
   5477  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   5478  1.1  christos /* confdefs.h.  */
   5479  1.1  christos _ACEOF
   5480  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5481  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5482  1.1  christos /* end confdefs.h.  */
   5483  1.1  christos #include <netdnet/dnetdb.h>
   5484  1.1  christos 
   5485  1.1  christos _ACEOF
   5486  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5487  1.1  christos   $EGREP "dnet_htoa" >/dev/null 2>&1; then
   5488  1.1  christos   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
   5489  1.1  christos else
   5490  1.1  christos   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
   5491  1.1  christos fi
   5492  1.1  christos rm -f -r conftest*
   5493  1.1  christos 
   5494  1.1  christos fi
   5495  1.1  christos { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
   5496  1.1  christos echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
   5497  1.1  christos if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
   5498  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   5499  1.1  christos #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
   5500  1.1  christos _ACEOF
   5501  1.1  christos 
   5502  1.1  christos fi
   5503  1.1  christos 
   5504  1.3  christos 
   5505  1.3  christos 	{ echo "$as_me:$LINENO: checking for addrinfo" >&5
   5506  1.3  christos echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
   5507  1.3  christos 	if test "${ac_cv_addrinfo+set}" = set; then
   5508  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5509  1.1  christos else
   5510  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   5511  1.1  christos /* confdefs.h.  */
   5512  1.1  christos _ACEOF
   5513  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5514  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5515  1.1  christos /* end confdefs.h.  */
   5516  1.3  christos 
   5517  1.3  christos #		include <netdb.h>
   5518  1.1  christos int
   5519  1.1  christos main ()
   5520  1.1  christos {
   5521  1.3  christos struct addrinfo a
   5522  1.1  christos   ;
   5523  1.1  christos   return 0;
   5524  1.1  christos }
   5525  1.1  christos _ACEOF
   5526  1.1  christos rm -f conftest.$ac_objext
   5527  1.1  christos if { (ac_try="$ac_compile"
   5528  1.1  christos case "(($ac_try" in
   5529  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5530  1.1  christos   *) ac_try_echo=$ac_try;;
   5531  1.1  christos esac
   5532  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5533  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   5534  1.1  christos   ac_status=$?
   5535  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   5536  1.1  christos   rm -f conftest.er1
   5537  1.1  christos   cat conftest.err >&5
   5538  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5539  1.1  christos   (exit $ac_status); } && {
   5540  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   5541  1.1  christos 	 test ! -s conftest.err
   5542  1.1  christos        } && test -s conftest.$ac_objext; then
   5543  1.3  christos   ac_cv_addrinfo=yes
   5544  1.1  christos else
   5545  1.1  christos   echo "$as_me: failed program was:" >&5
   5546  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   5547  1.1  christos 
   5548  1.3  christos 	ac_cv_addrinfo=no
   5549  1.1  christos fi
   5550  1.1  christos 
   5551  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5552  1.1  christos fi
   5553  1.1  christos 
   5554  1.3  christos 	{ echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
   5555  1.3  christos echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
   5556  1.3  christos 	if test $ac_cv_addrinfo = yes; then
   5557  1.3  christos 		cat >>confdefs.h <<\_ACEOF
   5558  1.3  christos #define HAVE_ADDRINFO 1
   5559  1.3  christos _ACEOF
   5560  1.3  christos 
   5561  1.3  christos 	else
   5562  1.3  christos 		cat >>confdefs.h <<\_ACEOF
   5563  1.3  christos #define NEED_ADDRINFO_H 1
   5564  1.3  christos _ACEOF
   5565  1.3  christos 
   5566  1.3  christos 	fi
   5567  1.3  christos 
   5568  1.3  christos if test "$ac_cv_addrinfo" = no; then
   5569  1.3  christos 	missing_includes=yes
   5570  1.3  christos fi
   5571  1.3  christos 
   5572  1.3  christos 
   5573  1.3  christos 	{ echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
   5574  1.3  christos echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
   5575  1.3  christos 	if test "${ac_cv_maxserv+set}" = set; then
   5576  1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5577  1.3  christos else
   5578  1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   5579  1.3  christos /* confdefs.h.  */
   5580  1.3  christos _ACEOF
   5581  1.3  christos cat confdefs.h >>conftest.$ac_ext
   5582  1.3  christos cat >>conftest.$ac_ext <<_ACEOF
   5583  1.3  christos /* end confdefs.h.  */
   5584  1.3  christos #include <netdb.h>
   5585  1.3  christos #ifdef NI_MAXSERV
   5586  1.3  christos yes
   5587  1.3  christos #endif
   5588  1.3  christos _ACEOF
   5589  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5590  1.3  christos   $EGREP "yes" >/dev/null 2>&1; then
   5591  1.3  christos   ac_cv_maxserv=yes
   5592  1.3  christos else
   5593  1.3  christos   ac_cv_maxserv=no
   5594  1.3  christos fi
   5595  1.3  christos rm -f -r conftest*
   5596  1.3  christos 
   5597  1.3  christos fi
   5598  1.3  christos 
   5599  1.3  christos 	{ echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
   5600  1.3  christos echo "${ECHO_T}$ac_cv_maxserv" >&6; }
   5601  1.3  christos 	if test $ac_cv_maxserv != yes; then
   5602  1.3  christos 		cat >>confdefs.h <<\_ACEOF
   5603  1.3  christos #define NEED_ADDRINFO_H 1
   5604  1.3  christos _ACEOF
   5605  1.3  christos 
   5606  1.3  christos 	fi
   5607  1.3  christos 
   5608  1.3  christos if test "$ac_cv_maxserv" = no; then
   5609  1.3  christos 	missing_includes=yes
   5610  1.3  christos fi
   5611  1.3  christos 
   5612  1.3  christos 
   5613  1.3  christos 	{ echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
   5614  1.3  christos echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
   5615  1.3  christos 	if test "${ac_cv_namereqd+set}" = set; then
   5616  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5617  1.1  christos else
   5618  1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   5619  1.1  christos /* confdefs.h.  */
   5620  1.1  christos _ACEOF
   5621  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5622  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5623  1.1  christos /* end confdefs.h.  */
   5624  1.3  christos #include <netdb.h>
   5625  1.3  christos #ifdef NI_NOFQDN
   5626  1.3  christos yes
   5627  1.3  christos #endif
   5628  1.3  christos _ACEOF
   5629  1.3  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5630  1.3  christos   $EGREP "yes" >/dev/null 2>&1; then
   5631  1.3  christos   ac_cv_namereqd=yes
   5632  1.3  christos else
   5633  1.3  christos   ac_cv_namereqd=no
   5634  1.3  christos fi
   5635  1.3  christos rm -f -r conftest*
   5636  1.3  christos 
   5637  1.3  christos fi
   5638  1.1  christos 
   5639  1.3  christos 	{ echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
   5640  1.3  christos echo "${ECHO_T}$ac_cv_namereqd" >&6; }
   5641  1.3  christos 	if test $ac_cv_namereqd != yes; then
   5642  1.3  christos 		cat >>confdefs.h <<\_ACEOF
   5643  1.3  christos #define NEED_ADDRINFO_H 1
   5644  1.1  christos _ACEOF
   5645  1.3  christos 
   5646  1.3  christos 	fi
   5647  1.3  christos 
   5648  1.3  christos if test "$ac_cv_namereqd" = no; then
   5649  1.3  christos 	missing_includes=yes
   5650  1.3  christos fi
   5651  1.3  christos 
   5652  1.3  christos 
   5653  1.3  christos 	{ echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
   5654  1.3  christos echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
   5655  1.3  christos 	if test "${ac_cv_sa_storage+set}" = set; then
   5656  1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5657  1.3  christos else
   5658  1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   5659  1.1  christos /* confdefs.h.  */
   5660  1.1  christos _ACEOF
   5661  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5662  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5663  1.1  christos /* end confdefs.h.  */
   5664  1.3  christos 
   5665  1.3  christos #		include <sys/types.h>
   5666  1.3  christos #		include <sys/socket.h>
   5667  1.1  christos int
   5668  1.1  christos main ()
   5669  1.1  christos {
   5670  1.3  christos struct sockaddr_storage s
   5671  1.1  christos   ;
   5672  1.1  christos   return 0;
   5673  1.1  christos }
   5674  1.1  christos _ACEOF
   5675  1.1  christos rm -f conftest.$ac_objext
   5676  1.1  christos if { (ac_try="$ac_compile"
   5677  1.1  christos case "(($ac_try" in
   5678  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5679  1.1  christos   *) ac_try_echo=$ac_try;;
   5680  1.1  christos esac
   5681  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5682  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   5683  1.1  christos   ac_status=$?
   5684  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   5685  1.1  christos   rm -f conftest.er1
   5686  1.1  christos   cat conftest.err >&5
   5687  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5688  1.1  christos   (exit $ac_status); } && {
   5689  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   5690  1.1  christos 	 test ! -s conftest.err
   5691  1.1  christos        } && test -s conftest.$ac_objext; then
   5692  1.3  christos   ac_cv_sa_storage=yes
   5693  1.1  christos else
   5694  1.1  christos   echo "$as_me: failed program was:" >&5
   5695  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   5696  1.1  christos 
   5697  1.3  christos 	ac_cv_sa_storage=no
   5698  1.1  christos fi
   5699  1.1  christos 
   5700  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5701  1.3  christos fi
   5702  1.3  christos 
   5703  1.3  christos 	{ echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
   5704  1.3  christos echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
   5705  1.3  christos 	if test $ac_cv_sa_storage = yes; then
   5706  1.3  christos 		cat >>confdefs.h <<\_ACEOF
   5707  1.3  christos #define HAVE_SOCKADDR_STORAGE 1
   5708  1.3  christos _ACEOF
   5709  1.3  christos 
   5710  1.3  christos 	fi
   5711  1.3  christos 
   5712  1.3  christos if test "$ac_cv_sa_storage" = no; then
   5713  1.3  christos 	missing_includes=yes
   5714  1.3  christos fi
   5715  1.3  christos 
   5716  1.3  christos 
   5717  1.3  christos 
   5718  1.3  christos 
   5719  1.3  christos 
   5720  1.3  christos 
   5721  1.3  christos 
   5722  1.3  christos for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
   5723  1.3  christos do
   5724  1.3  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5725  1.3  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   5726  1.3  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   5727  1.3  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   5728  1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5729  1.1  christos else
   5730  1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   5731  1.1  christos /* confdefs.h.  */
   5732  1.1  christos _ACEOF
   5733  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5734  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5735  1.1  christos /* end confdefs.h.  */
   5736  1.3  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   5737  1.3  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   5738  1.3  christos #define $ac_func innocuous_$ac_func
   5739  1.3  christos 
   5740  1.3  christos /* System header to define __stub macros and hopefully few prototypes,
   5741  1.3  christos     which can conflict with char $ac_func (); below.
   5742  1.3  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5743  1.3  christos     <limits.h> exists even on freestanding compilers.  */
   5744  1.3  christos 
   5745  1.3  christos #ifdef __STDC__
   5746  1.3  christos # include <limits.h>
   5747  1.3  christos #else
   5748  1.3  christos # include <assert.h>
   5749  1.3  christos #endif
   5750  1.3  christos 
   5751  1.3  christos #undef $ac_func
   5752  1.3  christos 
   5753  1.3  christos /* Override any GCC internal prototype to avoid an error.
   5754  1.3  christos    Use char because int might match the return type of a GCC
   5755  1.3  christos    builtin and then its argument prototype would still apply.  */
   5756  1.3  christos #ifdef __cplusplus
   5757  1.3  christos extern "C"
   5758  1.3  christos #endif
   5759  1.3  christos char $ac_func ();
   5760  1.3  christos /* The GNU C library defines this for functions which it implements
   5761  1.3  christos     to always fail with ENOSYS.  Some functions are actually named
   5762  1.3  christos     something starting with __ and the normal name is an alias.  */
   5763  1.3  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   5764  1.3  christos choke me
   5765  1.3  christos #endif
   5766  1.3  christos 
   5767  1.1  christos int
   5768  1.1  christos main ()
   5769  1.1  christos {
   5770  1.3  christos return $ac_func ();
   5771  1.1  christos   ;
   5772  1.1  christos   return 0;
   5773  1.1  christos }
   5774  1.1  christos _ACEOF
   5775  1.3  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5776  1.3  christos if { (ac_try="$ac_link"
   5777  1.1  christos case "(($ac_try" in
   5778  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5779  1.1  christos   *) ac_try_echo=$ac_try;;
   5780  1.1  christos esac
   5781  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5782  1.3  christos   (eval "$ac_link") 2>conftest.er1
   5783  1.1  christos   ac_status=$?
   5784  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   5785  1.1  christos   rm -f conftest.er1
   5786  1.1  christos   cat conftest.err >&5
   5787  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5788  1.1  christos   (exit $ac_status); } && {
   5789  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   5790  1.1  christos 	 test ! -s conftest.err
   5791  1.3  christos        } && test -s conftest$ac_exeext &&
   5792  1.3  christos        $as_test_x conftest$ac_exeext; then
   5793  1.3  christos   eval "$as_ac_var=yes"
   5794  1.3  christos else
   5795  1.3  christos   echo "$as_me: failed program was:" >&5
   5796  1.3  christos sed 's/^/| /' conftest.$ac_ext >&5
   5797  1.1  christos 
   5798  1.1  christos 	eval "$as_ac_var=no"
   5799  1.1  christos fi
   5800  1.1  christos 
   5801  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   5802  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   5803  1.1  christos fi
   5804  1.1  christos ac_res=`eval echo '${'$as_ac_var'}'`
   5805  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   5806  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   5807  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   5808  1.1  christos   cat >>confdefs.h <<_ACEOF
   5809  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   5810  1.1  christos _ACEOF
   5811  1.1  christos 
   5812  1.1  christos else
   5813  1.1  christos   case " $LIBOBJS " in
   5814  1.1  christos   *" $ac_func.$ac_objext "* ) ;;
   5815  1.1  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   5816  1.1  christos  ;;
   5817  1.1  christos esac
   5818  1.1  christos 
   5819  1.1  christos fi
   5820  1.1  christos done
   5821  1.1  christos 
   5822  1.1  christos 
   5823  1.1  christos 
   5824  1.3  christos 
   5825  1.3  christos 
   5826  1.3  christos for ac_func in fork vfork strftime
   5827  1.1  christos do
   5828  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5829  1.1  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   5830  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   5831  1.1  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   5832  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5833  1.1  christos else
   5834  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   5835  1.1  christos /* confdefs.h.  */
   5836  1.1  christos _ACEOF
   5837  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5838  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5839  1.1  christos /* end confdefs.h.  */
   5840  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   5841  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   5842  1.1  christos #define $ac_func innocuous_$ac_func
   5843  1.1  christos 
   5844  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   5845  1.1  christos     which can conflict with char $ac_func (); below.
   5846  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5847  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   5848  1.1  christos 
   5849  1.1  christos #ifdef __STDC__
   5850  1.1  christos # include <limits.h>
   5851  1.1  christos #else
   5852  1.1  christos # include <assert.h>
   5853  1.1  christos #endif
   5854  1.1  christos 
   5855  1.1  christos #undef $ac_func
   5856  1.1  christos 
   5857  1.1  christos /* Override any GCC internal prototype to avoid an error.
   5858  1.1  christos    Use char because int might match the return type of a GCC
   5859  1.1  christos    builtin and then its argument prototype would still apply.  */
   5860  1.1  christos #ifdef __cplusplus
   5861  1.1  christos extern "C"
   5862  1.1  christos #endif
   5863  1.1  christos char $ac_func ();
   5864  1.1  christos /* The GNU C library defines this for functions which it implements
   5865  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   5866  1.1  christos     something starting with __ and the normal name is an alias.  */
   5867  1.1  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   5868  1.1  christos choke me
   5869  1.1  christos #endif
   5870  1.1  christos 
   5871  1.1  christos int
   5872  1.1  christos main ()
   5873  1.1  christos {
   5874  1.1  christos return $ac_func ();
   5875  1.1  christos   ;
   5876  1.1  christos   return 0;
   5877  1.1  christos }
   5878  1.1  christos _ACEOF
   5879  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5880  1.1  christos if { (ac_try="$ac_link"
   5881  1.1  christos case "(($ac_try" in
   5882  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5883  1.1  christos   *) ac_try_echo=$ac_try;;
   5884  1.1  christos esac
   5885  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5886  1.1  christos   (eval "$ac_link") 2>conftest.er1
   5887  1.1  christos   ac_status=$?
   5888  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   5889  1.1  christos   rm -f conftest.er1
   5890  1.1  christos   cat conftest.err >&5
   5891  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5892  1.1  christos   (exit $ac_status); } && {
   5893  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   5894  1.1  christos 	 test ! -s conftest.err
   5895  1.1  christos        } && test -s conftest$ac_exeext &&
   5896  1.1  christos        $as_test_x conftest$ac_exeext; then
   5897  1.1  christos   eval "$as_ac_var=yes"
   5898  1.1  christos else
   5899  1.1  christos   echo "$as_me: failed program was:" >&5
   5900  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   5901  1.1  christos 
   5902  1.1  christos 	eval "$as_ac_var=no"
   5903  1.1  christos fi
   5904  1.1  christos 
   5905  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   5906  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   5907  1.1  christos fi
   5908  1.1  christos ac_res=`eval echo '${'$as_ac_var'}'`
   5909  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   5910  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   5911  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   5912  1.1  christos   cat >>confdefs.h <<_ACEOF
   5913  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   5914  1.1  christos _ACEOF
   5915  1.1  christos 
   5916  1.1  christos fi
   5917  1.1  christos done
   5918  1.1  christos 
   5919  1.1  christos 
   5920  1.1  christos 
   5921  1.1  christos for ac_func in setlinebuf alarm
   5922  1.1  christos do
   5923  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5924  1.1  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   5925  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   5926  1.1  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   5927  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5928  1.1  christos else
   5929  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   5930  1.1  christos /* confdefs.h.  */
   5931  1.1  christos _ACEOF
   5932  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5933  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5934  1.1  christos /* end confdefs.h.  */
   5935  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   5936  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   5937  1.1  christos #define $ac_func innocuous_$ac_func
   5938  1.1  christos 
   5939  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   5940  1.1  christos     which can conflict with char $ac_func (); below.
   5941  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5942  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   5943  1.1  christos 
   5944  1.1  christos #ifdef __STDC__
   5945  1.1  christos # include <limits.h>
   5946  1.1  christos #else
   5947  1.1  christos # include <assert.h>
   5948  1.1  christos #endif
   5949  1.1  christos 
   5950  1.1  christos #undef $ac_func
   5951  1.1  christos 
   5952  1.1  christos /* Override any GCC internal prototype to avoid an error.
   5953  1.1  christos    Use char because int might match the return type of a GCC
   5954  1.1  christos    builtin and then its argument prototype would still apply.  */
   5955  1.1  christos #ifdef __cplusplus
   5956  1.1  christos extern "C"
   5957  1.1  christos #endif
   5958  1.1  christos char $ac_func ();
   5959  1.1  christos /* The GNU C library defines this for functions which it implements
   5960  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   5961  1.1  christos     something starting with __ and the normal name is an alias.  */
   5962  1.1  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   5963  1.1  christos choke me
   5964  1.1  christos #endif
   5965  1.1  christos 
   5966  1.1  christos int
   5967  1.1  christos main ()
   5968  1.1  christos {
   5969  1.1  christos return $ac_func ();
   5970  1.1  christos   ;
   5971  1.1  christos   return 0;
   5972  1.1  christos }
   5973  1.1  christos _ACEOF
   5974  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5975  1.1  christos if { (ac_try="$ac_link"
   5976  1.1  christos case "(($ac_try" in
   5977  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5978  1.1  christos   *) ac_try_echo=$ac_try;;
   5979  1.1  christos esac
   5980  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5981  1.1  christos   (eval "$ac_link") 2>conftest.er1
   5982  1.1  christos   ac_status=$?
   5983  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   5984  1.1  christos   rm -f conftest.er1
   5985  1.1  christos   cat conftest.err >&5
   5986  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5987  1.1  christos   (exit $ac_status); } && {
   5988  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   5989  1.1  christos 	 test ! -s conftest.err
   5990  1.1  christos        } && test -s conftest$ac_exeext &&
   5991  1.1  christos        $as_test_x conftest$ac_exeext; then
   5992  1.1  christos   eval "$as_ac_var=yes"
   5993  1.1  christos else
   5994  1.1  christos   echo "$as_me: failed program was:" >&5
   5995  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   5996  1.1  christos 
   5997  1.1  christos 	eval "$as_ac_var=no"
   5998  1.1  christos fi
   5999  1.1  christos 
   6000  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6001  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   6002  1.1  christos fi
   6003  1.1  christos ac_res=`eval echo '${'$as_ac_var'}'`
   6004  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   6005  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   6006  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   6007  1.1  christos   cat >>confdefs.h <<_ACEOF
   6008  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   6009  1.1  christos _ACEOF
   6010  1.1  christos 
   6011  1.1  christos fi
   6012  1.1  christos done
   6013  1.1  christos 
   6014  1.1  christos 
   6015  1.1  christos needsnprintf=no
   6016  1.1  christos 
   6017  1.1  christos 
   6018  1.1  christos for ac_func in vsnprintf snprintf
   6019  1.1  christos do
   6020  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6021  1.1  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   6022  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   6023  1.1  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   6024  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6025  1.1  christos else
   6026  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6027  1.1  christos /* confdefs.h.  */
   6028  1.1  christos _ACEOF
   6029  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6030  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6031  1.1  christos /* end confdefs.h.  */
   6032  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   6033  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   6034  1.1  christos #define $ac_func innocuous_$ac_func
   6035  1.1  christos 
   6036  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   6037  1.1  christos     which can conflict with char $ac_func (); below.
   6038  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   6039  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   6040  1.1  christos 
   6041  1.1  christos #ifdef __STDC__
   6042  1.1  christos # include <limits.h>
   6043  1.1  christos #else
   6044  1.1  christos # include <assert.h>
   6045  1.1  christos #endif
   6046  1.1  christos 
   6047  1.1  christos #undef $ac_func
   6048  1.1  christos 
   6049  1.1  christos /* Override any GCC internal prototype to avoid an error.
   6050  1.1  christos    Use char because int might match the return type of a GCC
   6051  1.1  christos    builtin and then its argument prototype would still apply.  */
   6052  1.1  christos #ifdef __cplusplus
   6053  1.1  christos extern "C"
   6054  1.1  christos #endif
   6055  1.1  christos char $ac_func ();
   6056  1.1  christos /* The GNU C library defines this for functions which it implements
   6057  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   6058  1.1  christos     something starting with __ and the normal name is an alias.  */
   6059  1.1  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   6060  1.1  christos choke me
   6061  1.1  christos #endif
   6062  1.1  christos 
   6063  1.1  christos int
   6064  1.1  christos main ()
   6065  1.1  christos {
   6066  1.1  christos return $ac_func ();
   6067  1.1  christos   ;
   6068  1.1  christos   return 0;
   6069  1.1  christos }
   6070  1.1  christos _ACEOF
   6071  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   6072  1.1  christos if { (ac_try="$ac_link"
   6073  1.1  christos case "(($ac_try" in
   6074  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6075  1.1  christos   *) ac_try_echo=$ac_try;;
   6076  1.1  christos esac
   6077  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6078  1.1  christos   (eval "$ac_link") 2>conftest.er1
   6079  1.1  christos   ac_status=$?
   6080  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6081  1.1  christos   rm -f conftest.er1
   6082  1.1  christos   cat conftest.err >&5
   6083  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6084  1.1  christos   (exit $ac_status); } && {
   6085  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   6086  1.1  christos 	 test ! -s conftest.err
   6087  1.1  christos        } && test -s conftest$ac_exeext &&
   6088  1.1  christos        $as_test_x conftest$ac_exeext; then
   6089  1.1  christos   eval "$as_ac_var=yes"
   6090  1.1  christos else
   6091  1.1  christos   echo "$as_me: failed program was:" >&5
   6092  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6093  1.1  christos 
   6094  1.1  christos 	eval "$as_ac_var=no"
   6095  1.1  christos fi
   6096  1.1  christos 
   6097  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6098  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   6099  1.1  christos fi
   6100  1.1  christos ac_res=`eval echo '${'$as_ac_var'}'`
   6101  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   6102  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   6103  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   6104  1.1  christos   cat >>confdefs.h <<_ACEOF
   6105  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   6106  1.1  christos _ACEOF
   6107  1.1  christos 
   6108  1.1  christos else
   6109  1.1  christos   needsnprintf=yes
   6110  1.1  christos fi
   6111  1.1  christos done
   6112  1.1  christos 
   6113  1.1  christos if test $needsnprintf = yes; then
   6114  1.1  christos 	case " $LIBOBJS " in
   6115  1.1  christos   *" snprintf.$ac_objext "* ) ;;
   6116  1.1  christos   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
   6117  1.1  christos  ;;
   6118  1.1  christos esac
   6119  1.1  christos 
   6120  1.1  christos fi
   6121  1.1  christos 
   6122  1.1  christos 
   6123  1.1  christos     { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
   6124  1.1  christos echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
   6125  1.1  christos if test "${ac_cv_type_signal+set}" = set; then
   6126  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6127  1.1  christos else
   6128  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6129  1.1  christos /* confdefs.h.  */
   6130  1.1  christos _ACEOF
   6131  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6132  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6133  1.1  christos /* end confdefs.h.  */
   6134  1.1  christos #include <sys/types.h>
   6135  1.1  christos #include <signal.h>
   6136  1.1  christos 
   6137  1.1  christos int
   6138  1.1  christos main ()
   6139  1.1  christos {
   6140  1.1  christos return *(signal (0, 0)) (0) == 1;
   6141  1.1  christos   ;
   6142  1.1  christos   return 0;
   6143  1.1  christos }
   6144  1.1  christos _ACEOF
   6145  1.1  christos rm -f conftest.$ac_objext
   6146  1.1  christos if { (ac_try="$ac_compile"
   6147  1.1  christos case "(($ac_try" in
   6148  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6149  1.1  christos   *) ac_try_echo=$ac_try;;
   6150  1.1  christos esac
   6151  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6152  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   6153  1.1  christos   ac_status=$?
   6154  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6155  1.1  christos   rm -f conftest.er1
   6156  1.1  christos   cat conftest.err >&5
   6157  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6158  1.1  christos   (exit $ac_status); } && {
   6159  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   6160  1.1  christos 	 test ! -s conftest.err
   6161  1.1  christos        } && test -s conftest.$ac_objext; then
   6162  1.1  christos   ac_cv_type_signal=int
   6163  1.1  christos else
   6164  1.1  christos   echo "$as_me: failed program was:" >&5
   6165  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6166  1.1  christos 
   6167  1.1  christos 	ac_cv_type_signal=void
   6168  1.1  christos fi
   6169  1.1  christos 
   6170  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6171  1.1  christos fi
   6172  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
   6173  1.1  christos echo "${ECHO_T}$ac_cv_type_signal" >&6; }
   6174  1.1  christos 
   6175  1.1  christos cat >>confdefs.h <<_ACEOF
   6176  1.1  christos #define RETSIGTYPE $ac_cv_type_signal
   6177  1.1  christos _ACEOF
   6178  1.1  christos 
   6179  1.1  christos 
   6180  1.1  christos     if test "$ac_cv_type_signal" = void ; then
   6181  1.1  christos 
   6182  1.1  christos cat >>confdefs.h <<\_ACEOF
   6183  1.1  christos #define RETSIGVAL
   6184  1.1  christos _ACEOF
   6185  1.1  christos 
   6186  1.1  christos     else
   6187  1.1  christos 
   6188  1.1  christos cat >>confdefs.h <<\_ACEOF
   6189  1.1  christos #define RETSIGVAL (0)
   6190  1.1  christos _ACEOF
   6191  1.1  christos 
   6192  1.1  christos     fi
   6193  1.1  christos     case "$host_os" in
   6194  1.1  christos 
   6195  1.1  christos     irix*)
   6196  1.1  christos 
   6197  1.1  christos cat >>confdefs.h <<\_ACEOF
   6198  1.1  christos #define _BSD_SIGNALS 1
   6199  1.1  christos _ACEOF
   6200  1.1  christos 
   6201  1.1  christos 	    ;;
   6202  1.1  christos 
   6203  1.1  christos     *)
   6204  1.1  christos 
   6205  1.1  christos for ac_func in sigaction
   6206  1.1  christos do
   6207  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6208  1.1  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   6209  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   6210  1.1  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   6211  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6212  1.1  christos else
   6213  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6214  1.1  christos /* confdefs.h.  */
   6215  1.1  christos _ACEOF
   6216  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6217  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6218  1.1  christos /* end confdefs.h.  */
   6219  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   6220  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   6221  1.1  christos #define $ac_func innocuous_$ac_func
   6222  1.1  christos 
   6223  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   6224  1.1  christos     which can conflict with char $ac_func (); below.
   6225  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   6226  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   6227  1.1  christos 
   6228  1.1  christos #ifdef __STDC__
   6229  1.1  christos # include <limits.h>
   6230  1.1  christos #else
   6231  1.1  christos # include <assert.h>
   6232  1.1  christos #endif
   6233  1.1  christos 
   6234  1.1  christos #undef $ac_func
   6235  1.1  christos 
   6236  1.1  christos /* Override any GCC internal prototype to avoid an error.
   6237  1.1  christos    Use char because int might match the return type of a GCC
   6238  1.1  christos    builtin and then its argument prototype would still apply.  */
   6239  1.1  christos #ifdef __cplusplus
   6240  1.1  christos extern "C"
   6241  1.1  christos #endif
   6242  1.1  christos char $ac_func ();
   6243  1.1  christos /* The GNU C library defines this for functions which it implements
   6244  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   6245  1.1  christos     something starting with __ and the normal name is an alias.  */
   6246  1.1  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   6247  1.1  christos choke me
   6248  1.1  christos #endif
   6249  1.1  christos 
   6250  1.1  christos int
   6251  1.1  christos main ()
   6252  1.1  christos {
   6253  1.1  christos return $ac_func ();
   6254  1.1  christos   ;
   6255  1.1  christos   return 0;
   6256  1.1  christos }
   6257  1.1  christos _ACEOF
   6258  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   6259  1.1  christos if { (ac_try="$ac_link"
   6260  1.1  christos case "(($ac_try" in
   6261  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6262  1.1  christos   *) ac_try_echo=$ac_try;;
   6263  1.1  christos esac
   6264  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6265  1.1  christos   (eval "$ac_link") 2>conftest.er1
   6266  1.1  christos   ac_status=$?
   6267  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6268  1.1  christos   rm -f conftest.er1
   6269  1.1  christos   cat conftest.err >&5
   6270  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6271  1.1  christos   (exit $ac_status); } && {
   6272  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   6273  1.1  christos 	 test ! -s conftest.err
   6274  1.1  christos        } && test -s conftest$ac_exeext &&
   6275  1.1  christos        $as_test_x conftest$ac_exeext; then
   6276  1.1  christos   eval "$as_ac_var=yes"
   6277  1.1  christos else
   6278  1.1  christos   echo "$as_me: failed program was:" >&5
   6279  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6280  1.1  christos 
   6281  1.1  christos 	eval "$as_ac_var=no"
   6282  1.1  christos fi
   6283  1.1  christos 
   6284  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6285  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   6286  1.1  christos fi
   6287  1.1  christos ac_res=`eval echo '${'$as_ac_var'}'`
   6288  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   6289  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   6290  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   6291  1.1  christos   cat >>confdefs.h <<_ACEOF
   6292  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   6293  1.1  christos _ACEOF
   6294  1.1  christos 
   6295  1.1  christos fi
   6296  1.1  christos done
   6297  1.1  christos 
   6298  1.1  christos 	    if test $ac_cv_func_sigaction = no ; then
   6299  1.1  christos 
   6300  1.1  christos for ac_func in sigset
   6301  1.1  christos do
   6302  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6303  1.1  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   6304  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   6305  1.1  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   6306  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6307  1.1  christos else
   6308  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6309  1.1  christos /* confdefs.h.  */
   6310  1.1  christos _ACEOF
   6311  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6312  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6313  1.1  christos /* end confdefs.h.  */
   6314  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   6315  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   6316  1.1  christos #define $ac_func innocuous_$ac_func
   6317  1.1  christos 
   6318  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   6319  1.1  christos     which can conflict with char $ac_func (); below.
   6320  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   6321  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   6322  1.1  christos 
   6323  1.1  christos #ifdef __STDC__
   6324  1.1  christos # include <limits.h>
   6325  1.1  christos #else
   6326  1.1  christos # include <assert.h>
   6327  1.1  christos #endif
   6328  1.1  christos 
   6329  1.1  christos #undef $ac_func
   6330  1.1  christos 
   6331  1.1  christos /* Override any GCC internal prototype to avoid an error.
   6332  1.1  christos    Use char because int might match the return type of a GCC
   6333  1.1  christos    builtin and then its argument prototype would still apply.  */
   6334  1.1  christos #ifdef __cplusplus
   6335  1.1  christos extern "C"
   6336  1.1  christos #endif
   6337  1.1  christos char $ac_func ();
   6338  1.1  christos /* The GNU C library defines this for functions which it implements
   6339  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   6340  1.1  christos     something starting with __ and the normal name is an alias.  */
   6341  1.1  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   6342  1.1  christos choke me
   6343  1.1  christos #endif
   6344  1.1  christos 
   6345  1.1  christos int
   6346  1.1  christos main ()
   6347  1.1  christos {
   6348  1.1  christos return $ac_func ();
   6349  1.1  christos   ;
   6350  1.1  christos   return 0;
   6351  1.1  christos }
   6352  1.1  christos _ACEOF
   6353  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   6354  1.1  christos if { (ac_try="$ac_link"
   6355  1.1  christos case "(($ac_try" in
   6356  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6357  1.1  christos   *) ac_try_echo=$ac_try;;
   6358  1.1  christos esac
   6359  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6360  1.1  christos   (eval "$ac_link") 2>conftest.er1
   6361  1.1  christos   ac_status=$?
   6362  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6363  1.1  christos   rm -f conftest.er1
   6364  1.1  christos   cat conftest.err >&5
   6365  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6366  1.1  christos   (exit $ac_status); } && {
   6367  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   6368  1.1  christos 	 test ! -s conftest.err
   6369  1.1  christos        } && test -s conftest$ac_exeext &&
   6370  1.1  christos        $as_test_x conftest$ac_exeext; then
   6371  1.1  christos   eval "$as_ac_var=yes"
   6372  1.1  christos else
   6373  1.1  christos   echo "$as_me: failed program was:" >&5
   6374  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6375  1.1  christos 
   6376  1.1  christos 	eval "$as_ac_var=no"
   6377  1.1  christos fi
   6378  1.1  christos 
   6379  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6380  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   6381  1.1  christos fi
   6382  1.1  christos ac_res=`eval echo '${'$as_ac_var'}'`
   6383  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   6384  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   6385  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   6386  1.1  christos   cat >>confdefs.h <<_ACEOF
   6387  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   6388  1.1  christos _ACEOF
   6389  1.1  christos 
   6390  1.1  christos fi
   6391  1.1  christos done
   6392  1.1  christos 
   6393  1.1  christos 	    fi
   6394  1.1  christos 	    ;;
   6395  1.1  christos     esac
   6396  1.1  christos 
   6397  1.1  christos { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
   6398  1.1  christos echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
   6399  1.1  christos if test "${ac_cv_search_dnet_htoa+set}" = set; then
   6400  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6401  1.1  christos else
   6402  1.1  christos   ac_func_search_save_LIBS=$LIBS
   6403  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6404  1.1  christos /* confdefs.h.  */
   6405  1.1  christos _ACEOF
   6406  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6407  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6408  1.1  christos /* end confdefs.h.  */
   6409  1.1  christos 
   6410  1.1  christos /* Override any GCC internal prototype to avoid an error.
   6411  1.1  christos    Use char because int might match the return type of a GCC
   6412  1.1  christos    builtin and then its argument prototype would still apply.  */
   6413  1.1  christos #ifdef __cplusplus
   6414  1.1  christos extern "C"
   6415  1.1  christos #endif
   6416  1.1  christos char dnet_htoa ();
   6417  1.1  christos int
   6418  1.1  christos main ()
   6419  1.1  christos {
   6420  1.1  christos return dnet_htoa ();
   6421  1.1  christos   ;
   6422  1.1  christos   return 0;
   6423  1.1  christos }
   6424  1.1  christos _ACEOF
   6425  1.1  christos for ac_lib in '' dnet; do
   6426  1.1  christos   if test -z "$ac_lib"; then
   6427  1.1  christos     ac_res="none required"
   6428  1.1  christos   else
   6429  1.1  christos     ac_res=-l$ac_lib
   6430  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6431  1.1  christos   fi
   6432  1.1  christos   rm -f conftest.$ac_objext conftest$ac_exeext
   6433  1.1  christos if { (ac_try="$ac_link"
   6434  1.1  christos case "(($ac_try" in
   6435  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6436  1.1  christos   *) ac_try_echo=$ac_try;;
   6437  1.1  christos esac
   6438  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6439  1.1  christos   (eval "$ac_link") 2>conftest.er1
   6440  1.1  christos   ac_status=$?
   6441  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6442  1.1  christos   rm -f conftest.er1
   6443  1.1  christos   cat conftest.err >&5
   6444  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6445  1.1  christos   (exit $ac_status); } && {
   6446  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   6447  1.1  christos 	 test ! -s conftest.err
   6448  1.1  christos        } && test -s conftest$ac_exeext &&
   6449  1.1  christos        $as_test_x conftest$ac_exeext; then
   6450  1.1  christos   ac_cv_search_dnet_htoa=$ac_res
   6451  1.1  christos else
   6452  1.1  christos   echo "$as_me: failed program was:" >&5
   6453  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6454  1.1  christos 
   6455  1.1  christos 
   6456  1.1  christos fi
   6457  1.1  christos 
   6458  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6459  1.1  christos       conftest$ac_exeext
   6460  1.1  christos   if test "${ac_cv_search_dnet_htoa+set}" = set; then
   6461  1.1  christos   break
   6462  1.1  christos fi
   6463  1.1  christos done
   6464  1.1  christos if test "${ac_cv_search_dnet_htoa+set}" = set; then
   6465  1.1  christos   :
   6466  1.1  christos else
   6467  1.1  christos   ac_cv_search_dnet_htoa=no
   6468  1.1  christos fi
   6469  1.1  christos rm conftest.$ac_ext
   6470  1.1  christos LIBS=$ac_func_search_save_LIBS
   6471  1.1  christos fi
   6472  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
   6473  1.1  christos echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
   6474  1.1  christos ac_res=$ac_cv_search_dnet_htoa
   6475  1.1  christos if test "$ac_res" != no; then
   6476  1.1  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6477  1.1  christos   cat >>confdefs.h <<\_ACEOF
   6478  1.1  christos #define HAVE_DNET_HTOA 1
   6479  1.1  christos _ACEOF
   6480  1.1  christos 
   6481  1.1  christos fi
   6482  1.1  christos 
   6483  1.1  christos 
   6484  1.1  christos 
   6485  1.1  christos { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
   6486  1.1  christos echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
   6487  1.1  christos if test "${ac_cv_lib_rpc_main+set}" = set; then
   6488  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6489  1.1  christos else
   6490  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   6491  1.1  christos LIBS="-lrpc  $LIBS"
   6492  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6493  1.1  christos /* confdefs.h.  */
   6494  1.1  christos _ACEOF
   6495  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6496  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6497  1.1  christos /* end confdefs.h.  */
   6498  1.1  christos 
   6499  1.1  christos 
   6500  1.1  christos int
   6501  1.1  christos main ()
   6502  1.1  christos {
   6503  1.1  christos return main ();
   6504  1.1  christos   ;
   6505  1.1  christos   return 0;
   6506  1.1  christos }
   6507  1.1  christos _ACEOF
   6508  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   6509  1.1  christos if { (ac_try="$ac_link"
   6510  1.1  christos case "(($ac_try" in
   6511  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6512  1.1  christos   *) ac_try_echo=$ac_try;;
   6513  1.1  christos esac
   6514  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6515  1.1  christos   (eval "$ac_link") 2>conftest.er1
   6516  1.1  christos   ac_status=$?
   6517  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6518  1.1  christos   rm -f conftest.er1
   6519  1.1  christos   cat conftest.err >&5
   6520  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6521  1.1  christos   (exit $ac_status); } && {
   6522  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   6523  1.1  christos 	 test ! -s conftest.err
   6524  1.1  christos        } && test -s conftest$ac_exeext &&
   6525  1.1  christos        $as_test_x conftest$ac_exeext; then
   6526  1.1  christos   ac_cv_lib_rpc_main=yes
   6527  1.1  christos else
   6528  1.1  christos   echo "$as_me: failed program was:" >&5
   6529  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6530  1.1  christos 
   6531  1.1  christos 	ac_cv_lib_rpc_main=no
   6532  1.1  christos fi
   6533  1.1  christos 
   6534  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6535  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   6536  1.1  christos LIBS=$ac_check_lib_save_LIBS
   6537  1.1  christos fi
   6538  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
   6539  1.1  christos echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
   6540  1.1  christos if test $ac_cv_lib_rpc_main = yes; then
   6541  1.1  christos   cat >>confdefs.h <<_ACEOF
   6542  1.1  christos #define HAVE_LIBRPC 1
   6543  1.1  christos _ACEOF
   6544  1.1  christos 
   6545  1.1  christos   LIBS="-lrpc $LIBS"
   6546  1.1  christos 
   6547  1.1  christos fi
   6548  1.1  christos 
   6549  1.1  christos { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
   6550  1.1  christos echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
   6551  1.1  christos if test "${ac_cv_search_getrpcbynumber+set}" = set; then
   6552  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6553  1.1  christos else
   6554  1.1  christos   ac_func_search_save_LIBS=$LIBS
   6555  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6556  1.1  christos /* confdefs.h.  */
   6557  1.1  christos _ACEOF
   6558  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6559  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6560  1.1  christos /* end confdefs.h.  */
   6561  1.1  christos 
   6562  1.1  christos /* Override any GCC internal prototype to avoid an error.
   6563  1.1  christos    Use char because int might match the return type of a GCC
   6564  1.1  christos    builtin and then its argument prototype would still apply.  */
   6565  1.1  christos #ifdef __cplusplus
   6566  1.1  christos extern "C"
   6567  1.1  christos #endif
   6568  1.1  christos char getrpcbynumber ();
   6569  1.1  christos int
   6570  1.1  christos main ()
   6571  1.1  christos {
   6572  1.1  christos return getrpcbynumber ();
   6573  1.1  christos   ;
   6574  1.1  christos   return 0;
   6575  1.1  christos }
   6576  1.1  christos _ACEOF
   6577  1.1  christos for ac_lib in '' nsl; do
   6578  1.1  christos   if test -z "$ac_lib"; then
   6579  1.1  christos     ac_res="none required"
   6580  1.1  christos   else
   6581  1.1  christos     ac_res=-l$ac_lib
   6582  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6583  1.1  christos   fi
   6584  1.1  christos   rm -f conftest.$ac_objext conftest$ac_exeext
   6585  1.1  christos if { (ac_try="$ac_link"
   6586  1.1  christos case "(($ac_try" in
   6587  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6588  1.1  christos   *) ac_try_echo=$ac_try;;
   6589  1.1  christos esac
   6590  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6591  1.1  christos   (eval "$ac_link") 2>conftest.er1
   6592  1.1  christos   ac_status=$?
   6593  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6594  1.1  christos   rm -f conftest.er1
   6595  1.1  christos   cat conftest.err >&5
   6596  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6597  1.1  christos   (exit $ac_status); } && {
   6598  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   6599  1.1  christos 	 test ! -s conftest.err
   6600  1.1  christos        } && test -s conftest$ac_exeext &&
   6601  1.1  christos        $as_test_x conftest$ac_exeext; then
   6602  1.1  christos   ac_cv_search_getrpcbynumber=$ac_res
   6603  1.1  christos else
   6604  1.1  christos   echo "$as_me: failed program was:" >&5
   6605  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6606  1.1  christos 
   6607  1.1  christos 
   6608  1.1  christos fi
   6609  1.1  christos 
   6610  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6611  1.1  christos       conftest$ac_exeext
   6612  1.1  christos   if test "${ac_cv_search_getrpcbynumber+set}" = set; then
   6613  1.1  christos   break
   6614  1.1  christos fi
   6615  1.1  christos done
   6616  1.1  christos if test "${ac_cv_search_getrpcbynumber+set}" = set; then
   6617  1.1  christos   :
   6618  1.1  christos else
   6619  1.1  christos   ac_cv_search_getrpcbynumber=no
   6620  1.1  christos fi
   6621  1.1  christos rm conftest.$ac_ext
   6622  1.1  christos LIBS=$ac_func_search_save_LIBS
   6623  1.1  christos fi
   6624  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
   6625  1.1  christos echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
   6626  1.1  christos ac_res=$ac_cv_search_getrpcbynumber
   6627  1.1  christos if test "$ac_res" != no; then
   6628  1.1  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6629  1.1  christos   cat >>confdefs.h <<\_ACEOF
   6630  1.1  christos #define HAVE_GETRPCBYNUMBER 1
   6631  1.1  christos _ACEOF
   6632  1.1  christos 
   6633  1.1  christos fi
   6634  1.1  christos 
   6635  1.1  christos 
   6636  1.1  christos 
   6637  1.1  christos 
   6638  1.1  christos     # Most operating systems have gethostbyname() in the default searched
   6639  1.1  christos     # libraries (i.e. libc):
   6640  1.1  christos     # Some OSes (eg. Solaris) place it in libnsl
   6641  1.1  christos     # Some strange OSes (SINIX) have it in libsocket:
   6642  1.1  christos     { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
   6643  1.1  christos echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
   6644  1.1  christos if test "${ac_cv_search_gethostbyname+set}" = set; then
   6645  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6646  1.1  christos else
   6647  1.1  christos   ac_func_search_save_LIBS=$LIBS
   6648  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6649  1.1  christos /* confdefs.h.  */
   6650  1.1  christos _ACEOF
   6651  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6652  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6653  1.1  christos /* end confdefs.h.  */
   6654  1.1  christos 
   6655  1.1  christos /* Override any GCC internal prototype to avoid an error.
   6656  1.1  christos    Use char because int might match the return type of a GCC
   6657  1.1  christos    builtin and then its argument prototype would still apply.  */
   6658  1.1  christos #ifdef __cplusplus
   6659  1.1  christos extern "C"
   6660  1.1  christos #endif
   6661  1.1  christos char gethostbyname ();
   6662  1.1  christos int
   6663  1.1  christos main ()
   6664  1.1  christos {
   6665  1.1  christos return gethostbyname ();
   6666  1.1  christos   ;
   6667  1.1  christos   return 0;
   6668  1.1  christos }
   6669  1.1  christos _ACEOF
   6670  1.1  christos for ac_lib in '' nsl socket resolv; do
   6671  1.1  christos   if test -z "$ac_lib"; then
   6672  1.1  christos     ac_res="none required"
   6673  1.1  christos   else
   6674  1.1  christos     ac_res=-l$ac_lib
   6675  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6676  1.1  christos   fi
   6677  1.1  christos   rm -f conftest.$ac_objext conftest$ac_exeext
   6678  1.1  christos if { (ac_try="$ac_link"
   6679  1.1  christos case "(($ac_try" in
   6680  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6681  1.1  christos   *) ac_try_echo=$ac_try;;
   6682  1.1  christos esac
   6683  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6684  1.1  christos   (eval "$ac_link") 2>conftest.er1
   6685  1.1  christos   ac_status=$?
   6686  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6687  1.1  christos   rm -f conftest.er1
   6688  1.1  christos   cat conftest.err >&5
   6689  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6690  1.1  christos   (exit $ac_status); } && {
   6691  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   6692  1.1  christos 	 test ! -s conftest.err
   6693  1.1  christos        } && test -s conftest$ac_exeext &&
   6694  1.1  christos        $as_test_x conftest$ac_exeext; then
   6695  1.1  christos   ac_cv_search_gethostbyname=$ac_res
   6696  1.1  christos else
   6697  1.1  christos   echo "$as_me: failed program was:" >&5
   6698  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6699  1.1  christos 
   6700  1.1  christos 
   6701  1.1  christos fi
   6702  1.1  christos 
   6703  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6704  1.1  christos       conftest$ac_exeext
   6705  1.1  christos   if test "${ac_cv_search_gethostbyname+set}" = set; then
   6706  1.1  christos   break
   6707  1.1  christos fi
   6708  1.1  christos done
   6709  1.1  christos if test "${ac_cv_search_gethostbyname+set}" = set; then
   6710  1.1  christos   :
   6711  1.1  christos else
   6712  1.1  christos   ac_cv_search_gethostbyname=no
   6713  1.1  christos fi
   6714  1.1  christos rm conftest.$ac_ext
   6715  1.1  christos LIBS=$ac_func_search_save_LIBS
   6716  1.1  christos fi
   6717  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
   6718  1.1  christos echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
   6719  1.1  christos ac_res=$ac_cv_search_gethostbyname
   6720  1.1  christos if test "$ac_res" != no; then
   6721  1.1  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6722  1.1  christos 
   6723  1.1  christos fi
   6724  1.1  christos 
   6725  1.1  christos     # Unfortunately libsocket sometimes depends on libnsl and
   6726  1.1  christos     # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
   6727  1.1  christos     if test "$ac_cv_search_gethostbyname" = "no"
   6728  1.1  christos     then
   6729  1.1  christos 	{ echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
   6730  1.1  christos echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
   6731  1.1  christos if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
   6732  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6733  1.1  christos else
   6734  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   6735  1.1  christos LIBS="-lsocket -lnsl $LIBS"
   6736  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6737  1.1  christos /* confdefs.h.  */
   6738  1.1  christos _ACEOF
   6739  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6740  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6741  1.1  christos /* end confdefs.h.  */
   6742  1.1  christos 
   6743  1.1  christos /* Override any GCC internal prototype to avoid an error.
   6744  1.1  christos    Use char because int might match the return type of a GCC
   6745  1.1  christos    builtin and then its argument prototype would still apply.  */
   6746  1.1  christos #ifdef __cplusplus
   6747  1.1  christos extern "C"
   6748  1.1  christos #endif
   6749  1.1  christos char gethostbyname ();
   6750  1.1  christos int
   6751  1.1  christos main ()
   6752  1.1  christos {
   6753  1.1  christos return gethostbyname ();
   6754  1.1  christos   ;
   6755  1.1  christos   return 0;
   6756  1.1  christos }
   6757  1.1  christos _ACEOF
   6758  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   6759  1.1  christos if { (ac_try="$ac_link"
   6760  1.1  christos case "(($ac_try" in
   6761  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6762  1.1  christos   *) ac_try_echo=$ac_try;;
   6763  1.1  christos esac
   6764  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6765  1.1  christos   (eval "$ac_link") 2>conftest.er1
   6766  1.1  christos   ac_status=$?
   6767  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6768  1.1  christos   rm -f conftest.er1
   6769  1.1  christos   cat conftest.err >&5
   6770  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6771  1.1  christos   (exit $ac_status); } && {
   6772  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   6773  1.1  christos 	 test ! -s conftest.err
   6774  1.1  christos        } && test -s conftest$ac_exeext &&
   6775  1.1  christos        $as_test_x conftest$ac_exeext; then
   6776  1.1  christos   ac_cv_lib_socket_gethostbyname=yes
   6777  1.1  christos else
   6778  1.1  christos   echo "$as_me: failed program was:" >&5
   6779  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6780  1.1  christos 
   6781  1.1  christos 	ac_cv_lib_socket_gethostbyname=no
   6782  1.1  christos fi
   6783  1.1  christos 
   6784  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6785  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   6786  1.1  christos LIBS=$ac_check_lib_save_LIBS
   6787  1.1  christos fi
   6788  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
   6789  1.1  christos echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
   6790  1.1  christos if test $ac_cv_lib_socket_gethostbyname = yes; then
   6791  1.1  christos   LIBS="-lsocket -lnsl $LIBS"
   6792  1.1  christos fi
   6793  1.1  christos 
   6794  1.1  christos     fi
   6795  1.1  christos     { echo "$as_me:$LINENO: checking for library containing socket" >&5
   6796  1.1  christos echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
   6797  1.1  christos if test "${ac_cv_search_socket+set}" = set; then
   6798  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6799  1.1  christos else
   6800  1.1  christos   ac_func_search_save_LIBS=$LIBS
   6801  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6802  1.1  christos /* confdefs.h.  */
   6803  1.1  christos _ACEOF
   6804  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6805  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6806  1.1  christos /* end confdefs.h.  */
   6807  1.1  christos 
   6808  1.1  christos /* Override any GCC internal prototype to avoid an error.
   6809  1.1  christos    Use char because int might match the return type of a GCC
   6810  1.1  christos    builtin and then its argument prototype would still apply.  */
   6811  1.1  christos #ifdef __cplusplus
   6812  1.1  christos extern "C"
   6813  1.1  christos #endif
   6814  1.1  christos char socket ();
   6815  1.1  christos int
   6816  1.1  christos main ()
   6817  1.1  christos {
   6818  1.1  christos return socket ();
   6819  1.1  christos   ;
   6820  1.1  christos   return 0;
   6821  1.1  christos }
   6822  1.1  christos _ACEOF
   6823  1.1  christos for ac_lib in '' socket; do
   6824  1.1  christos   if test -z "$ac_lib"; then
   6825  1.1  christos     ac_res="none required"
   6826  1.1  christos   else
   6827  1.1  christos     ac_res=-l$ac_lib
   6828  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6829  1.1  christos   fi
   6830  1.1  christos   rm -f conftest.$ac_objext conftest$ac_exeext
   6831  1.1  christos if { (ac_try="$ac_link"
   6832  1.1  christos case "(($ac_try" in
   6833  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6834  1.1  christos   *) ac_try_echo=$ac_try;;
   6835  1.1  christos esac
   6836  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6837  1.1  christos   (eval "$ac_link") 2>conftest.er1
   6838  1.1  christos   ac_status=$?
   6839  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6840  1.1  christos   rm -f conftest.er1
   6841  1.1  christos   cat conftest.err >&5
   6842  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6843  1.1  christos   (exit $ac_status); } && {
   6844  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   6845  1.1  christos 	 test ! -s conftest.err
   6846  1.1  christos        } && test -s conftest$ac_exeext &&
   6847  1.1  christos        $as_test_x conftest$ac_exeext; then
   6848  1.1  christos   ac_cv_search_socket=$ac_res
   6849  1.1  christos else
   6850  1.1  christos   echo "$as_me: failed program was:" >&5
   6851  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6852  1.1  christos 
   6853  1.1  christos 
   6854  1.1  christos fi
   6855  1.1  christos 
   6856  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6857  1.1  christos       conftest$ac_exeext
   6858  1.1  christos   if test "${ac_cv_search_socket+set}" = set; then
   6859  1.1  christos   break
   6860  1.1  christos fi
   6861  1.1  christos done
   6862  1.1  christos if test "${ac_cv_search_socket+set}" = set; then
   6863  1.1  christos   :
   6864  1.1  christos else
   6865  1.1  christos   ac_cv_search_socket=no
   6866  1.1  christos fi
   6867  1.1  christos rm conftest.$ac_ext
   6868  1.1  christos LIBS=$ac_func_search_save_LIBS
   6869  1.1  christos fi
   6870  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
   6871  1.1  christos echo "${ECHO_T}$ac_cv_search_socket" >&6; }
   6872  1.1  christos ac_res=$ac_cv_search_socket
   6873  1.1  christos if test "$ac_res" != no; then
   6874  1.1  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6875  1.1  christos 
   6876  1.1  christos else
   6877  1.1  christos   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
   6878  1.1  christos echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
   6879  1.1  christos if test "${ac_cv_lib_socket_socket+set}" = set; then
   6880  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6881  1.1  christos else
   6882  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   6883  1.1  christos LIBS="-lsocket -lnsl $LIBS"
   6884  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6885  1.1  christos /* confdefs.h.  */
   6886  1.1  christos _ACEOF
   6887  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6888  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6889  1.1  christos /* end confdefs.h.  */
   6890  1.1  christos 
   6891  1.1  christos /* Override any GCC internal prototype to avoid an error.
   6892  1.1  christos    Use char because int might match the return type of a GCC
   6893  1.1  christos    builtin and then its argument prototype would still apply.  */
   6894  1.1  christos #ifdef __cplusplus
   6895  1.1  christos extern "C"
   6896  1.1  christos #endif
   6897  1.1  christos char socket ();
   6898  1.1  christos int
   6899  1.1  christos main ()
   6900  1.1  christos {
   6901  1.1  christos return socket ();
   6902  1.1  christos   ;
   6903  1.1  christos   return 0;
   6904  1.1  christos }
   6905  1.1  christos _ACEOF
   6906  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   6907  1.1  christos if { (ac_try="$ac_link"
   6908  1.1  christos case "(($ac_try" in
   6909  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6910  1.1  christos   *) ac_try_echo=$ac_try;;
   6911  1.1  christos esac
   6912  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6913  1.1  christos   (eval "$ac_link") 2>conftest.er1
   6914  1.1  christos   ac_status=$?
   6915  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6916  1.1  christos   rm -f conftest.er1
   6917  1.1  christos   cat conftest.err >&5
   6918  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6919  1.1  christos   (exit $ac_status); } && {
   6920  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   6921  1.1  christos 	 test ! -s conftest.err
   6922  1.1  christos        } && test -s conftest$ac_exeext &&
   6923  1.1  christos        $as_test_x conftest$ac_exeext; then
   6924  1.1  christos   ac_cv_lib_socket_socket=yes
   6925  1.1  christos else
   6926  1.1  christos   echo "$as_me: failed program was:" >&5
   6927  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6928  1.1  christos 
   6929  1.1  christos 	ac_cv_lib_socket_socket=no
   6930  1.1  christos fi
   6931  1.1  christos 
   6932  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6933  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   6934  1.1  christos LIBS=$ac_check_lib_save_LIBS
   6935  1.1  christos fi
   6936  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
   6937  1.1  christos echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
   6938  1.1  christos if test $ac_cv_lib_socket_socket = yes; then
   6939  1.1  christos   LIBS="-lsocket -lnsl $LIBS"
   6940  1.1  christos fi
   6941  1.1  christos 
   6942  1.1  christos fi
   6943  1.1  christos 
   6944  1.1  christos     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
   6945  1.1  christos     { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
   6946  1.1  christos echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
   6947  1.1  christos if test "${ac_cv_search_putmsg+set}" = set; then
   6948  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6949  1.1  christos else
   6950  1.1  christos   ac_func_search_save_LIBS=$LIBS
   6951  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6952  1.1  christos /* confdefs.h.  */
   6953  1.1  christos _ACEOF
   6954  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6955  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6956  1.1  christos /* end confdefs.h.  */
   6957  1.1  christos 
   6958  1.1  christos /* Override any GCC internal prototype to avoid an error.
   6959  1.1  christos    Use char because int might match the return type of a GCC
   6960  1.1  christos    builtin and then its argument prototype would still apply.  */
   6961  1.1  christos #ifdef __cplusplus
   6962  1.1  christos extern "C"
   6963  1.1  christos #endif
   6964  1.1  christos char putmsg ();
   6965  1.1  christos int
   6966  1.1  christos main ()
   6967  1.1  christos {
   6968  1.1  christos return putmsg ();
   6969  1.1  christos   ;
   6970  1.1  christos   return 0;
   6971  1.1  christos }
   6972  1.1  christos _ACEOF
   6973  1.1  christos for ac_lib in '' str; do
   6974  1.1  christos   if test -z "$ac_lib"; then
   6975  1.1  christos     ac_res="none required"
   6976  1.1  christos   else
   6977  1.1  christos     ac_res=-l$ac_lib
   6978  1.1  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6979  1.1  christos   fi
   6980  1.1  christos   rm -f conftest.$ac_objext conftest$ac_exeext
   6981  1.1  christos if { (ac_try="$ac_link"
   6982  1.1  christos case "(($ac_try" in
   6983  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6984  1.1  christos   *) ac_try_echo=$ac_try;;
   6985  1.1  christos esac
   6986  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6987  1.1  christos   (eval "$ac_link") 2>conftest.er1
   6988  1.1  christos   ac_status=$?
   6989  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6990  1.1  christos   rm -f conftest.er1
   6991  1.1  christos   cat conftest.err >&5
   6992  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6993  1.1  christos   (exit $ac_status); } && {
   6994  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   6995  1.1  christos 	 test ! -s conftest.err
   6996  1.1  christos        } && test -s conftest$ac_exeext &&
   6997  1.1  christos        $as_test_x conftest$ac_exeext; then
   6998  1.1  christos   ac_cv_search_putmsg=$ac_res
   6999  1.1  christos else
   7000  1.1  christos   echo "$as_me: failed program was:" >&5
   7001  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7002  1.1  christos 
   7003  1.1  christos 
   7004  1.1  christos fi
   7005  1.1  christos 
   7006  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7007  1.1  christos       conftest$ac_exeext
   7008  1.1  christos   if test "${ac_cv_search_putmsg+set}" = set; then
   7009  1.1  christos   break
   7010  1.1  christos fi
   7011  1.1  christos done
   7012  1.1  christos if test "${ac_cv_search_putmsg+set}" = set; then
   7013  1.1  christos   :
   7014  1.1  christos else
   7015  1.1  christos   ac_cv_search_putmsg=no
   7016  1.1  christos fi
   7017  1.1  christos rm conftest.$ac_ext
   7018  1.1  christos LIBS=$ac_func_search_save_LIBS
   7019  1.1  christos fi
   7020  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
   7021  1.1  christos echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
   7022  1.1  christos ac_res=$ac_cv_search_putmsg
   7023  1.1  christos if test "$ac_res" != no; then
   7024  1.1  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7025  1.1  christos 
   7026  1.1  christos fi
   7027  1.1  christos 
   7028  1.1  christos 
   7029  1.1  christos 
   7030  1.1  christos                 LBL_LIBS="$LIBS"
   7031  1.1  christos     pfopen=/usr/examples/packetfilter/pfopen.c
   7032  1.1  christos     if test -f $pfopen ; then
   7033  1.1  christos 
   7034  1.1  christos for ac_func in pfopen
   7035  1.1  christos do
   7036  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7037  1.1  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   7038  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   7039  1.1  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   7040  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7041  1.1  christos else
   7042  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7043  1.1  christos /* confdefs.h.  */
   7044  1.1  christos _ACEOF
   7045  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7046  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7047  1.1  christos /* end confdefs.h.  */
   7048  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   7049  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   7050  1.1  christos #define $ac_func innocuous_$ac_func
   7051  1.1  christos 
   7052  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   7053  1.1  christos     which can conflict with char $ac_func (); below.
   7054  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   7055  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   7056  1.1  christos 
   7057  1.1  christos #ifdef __STDC__
   7058  1.1  christos # include <limits.h>
   7059  1.1  christos #else
   7060  1.1  christos # include <assert.h>
   7061  1.1  christos #endif
   7062  1.1  christos 
   7063  1.1  christos #undef $ac_func
   7064  1.1  christos 
   7065  1.1  christos /* Override any GCC internal prototype to avoid an error.
   7066  1.1  christos    Use char because int might match the return type of a GCC
   7067  1.1  christos    builtin and then its argument prototype would still apply.  */
   7068  1.1  christos #ifdef __cplusplus
   7069  1.1  christos extern "C"
   7070  1.1  christos #endif
   7071  1.1  christos char $ac_func ();
   7072  1.1  christos /* The GNU C library defines this for functions which it implements
   7073  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   7074  1.1  christos     something starting with __ and the normal name is an alias.  */
   7075  1.1  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   7076  1.1  christos choke me
   7077  1.1  christos #endif
   7078  1.1  christos 
   7079  1.1  christos int
   7080  1.1  christos main ()
   7081  1.1  christos {
   7082  1.1  christos return $ac_func ();
   7083  1.1  christos   ;
   7084  1.1  christos   return 0;
   7085  1.1  christos }
   7086  1.1  christos _ACEOF
   7087  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   7088  1.1  christos if { (ac_try="$ac_link"
   7089  1.1  christos case "(($ac_try" in
   7090  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7091  1.1  christos   *) ac_try_echo=$ac_try;;
   7092  1.1  christos esac
   7093  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7094  1.1  christos   (eval "$ac_link") 2>conftest.er1
   7095  1.1  christos   ac_status=$?
   7096  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7097  1.1  christos   rm -f conftest.er1
   7098  1.1  christos   cat conftest.err >&5
   7099  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7100  1.1  christos   (exit $ac_status); } && {
   7101  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   7102  1.1  christos 	 test ! -s conftest.err
   7103  1.1  christos        } && test -s conftest$ac_exeext &&
   7104  1.1  christos        $as_test_x conftest$ac_exeext; then
   7105  1.1  christos   eval "$as_ac_var=yes"
   7106  1.1  christos else
   7107  1.1  christos   echo "$as_me: failed program was:" >&5
   7108  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7109  1.1  christos 
   7110  1.1  christos 	eval "$as_ac_var=no"
   7111  1.1  christos fi
   7112  1.1  christos 
   7113  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7114  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   7115  1.1  christos fi
   7116  1.1  christos ac_res=`eval echo '${'$as_ac_var'}'`
   7117  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   7118  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   7119  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   7120  1.1  christos   cat >>confdefs.h <<_ACEOF
   7121  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   7122  1.1  christos _ACEOF
   7123  1.1  christos 
   7124  1.1  christos fi
   7125  1.1  christos done
   7126  1.1  christos 
   7127  1.1  christos 	    if test $ac_cv_func_pfopen = "no" ; then
   7128  1.1  christos 		    { echo "$as_me:$LINENO: result: Using $pfopen" >&5
   7129  1.1  christos echo "${ECHO_T}Using $pfopen" >&6; }
   7130  1.1  christos 		    LIBS="$LIBS $pfopen"
   7131  1.1  christos 	    fi
   7132  1.1  christos     fi
   7133  1.1  christos     { echo "$as_me:$LINENO: checking for local pcap library" >&5
   7134  1.1  christos echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
   7135  1.1  christos     libpcap=FAIL
   7136  1.1  christos     lastdir=FAIL
   7137  1.1  christos     places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
   7138  1.1  christos 	egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
   7139  1.1  christos     for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
   7140  1.1  christos 	    basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
   7141  1.1  christos 	        sed -e 's/-PRE-GIT$//' `
   7142  1.1  christos 	    if test $lastdir = $basedir ; then
   7143  1.1  christos 		    		    continue;
   7144  1.1  christos 	    fi
   7145  1.1  christos 	    lastdir=$dir
   7146  1.1  christos 	    if test -r $dir/libpcap.a ; then
   7147  1.1  christos 		    libpcap=$dir/libpcap.a
   7148  1.1  christos 		    d=$dir
   7149  1.1  christos 		    	    fi
   7150  1.1  christos     done
   7151  1.1  christos     if test $libpcap = FAIL ; then
   7152  1.1  christos 	    { echo "$as_me:$LINENO: result: not found" >&5
   7153  1.1  christos echo "${ECHO_T}not found" >&6; }
   7154  1.1  christos 
   7155  1.1  christos 	    #
   7156  1.1  christos 	    # Look for pcap-config.
   7157  1.1  christos 	    #
   7158  1.3  christos 	    if test -n "$ac_tool_prefix"; then
   7159  1.3  christos   # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
   7160  1.3  christos set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
   7161  1.1  christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7162  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7163  1.1  christos if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
   7164  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7165  1.1  christos else
   7166  1.1  christos   case $PCAP_CONFIG in
   7167  1.1  christos   [\\/]* | ?:[\\/]*)
   7168  1.1  christos   ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
   7169  1.1  christos   ;;
   7170  1.1  christos   *)
   7171  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7172  1.1  christos for as_dir in $PATH
   7173  1.1  christos do
   7174  1.1  christos   IFS=$as_save_IFS
   7175  1.1  christos   test -z "$as_dir" && as_dir=.
   7176  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   7177  1.1  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7178  1.1  christos     ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   7179  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7180  1.1  christos     break 2
   7181  1.1  christos   fi
   7182  1.1  christos done
   7183  1.1  christos done
   7184  1.1  christos IFS=$as_save_IFS
   7185  1.1  christos 
   7186  1.1  christos   ;;
   7187  1.1  christos esac
   7188  1.1  christos fi
   7189  1.1  christos PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
   7190  1.1  christos if test -n "$PCAP_CONFIG"; then
   7191  1.1  christos   { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
   7192  1.1  christos echo "${ECHO_T}$PCAP_CONFIG" >&6; }
   7193  1.1  christos else
   7194  1.1  christos   { echo "$as_me:$LINENO: result: no" >&5
   7195  1.1  christos echo "${ECHO_T}no" >&6; }
   7196  1.1  christos fi
   7197  1.1  christos 
   7198  1.1  christos 
   7199  1.3  christos fi
   7200  1.3  christos if test -z "$ac_cv_path_PCAP_CONFIG"; then
   7201  1.3  christos   ac_pt_PCAP_CONFIG=$PCAP_CONFIG
   7202  1.3  christos   # Extract the first word of "pcap-config", so it can be a program name with args.
   7203  1.3  christos set dummy pcap-config; ac_word=$2
   7204  1.3  christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7205  1.3  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7206  1.3  christos if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
   7207  1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7208  1.3  christos else
   7209  1.3  christos   case $ac_pt_PCAP_CONFIG in
   7210  1.3  christos   [\\/]* | ?:[\\/]*)
   7211  1.3  christos   ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
   7212  1.3  christos   ;;
   7213  1.3  christos   *)
   7214  1.3  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7215  1.3  christos for as_dir in $PATH
   7216  1.3  christos do
   7217  1.3  christos   IFS=$as_save_IFS
   7218  1.3  christos   test -z "$as_dir" && as_dir=.
   7219  1.3  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   7220  1.3  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7221  1.3  christos     ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   7222  1.3  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7223  1.3  christos     break 2
   7224  1.3  christos   fi
   7225  1.3  christos done
   7226  1.3  christos done
   7227  1.3  christos IFS=$as_save_IFS
   7228  1.3  christos 
   7229  1.3  christos   ;;
   7230  1.3  christos esac
   7231  1.3  christos fi
   7232  1.3  christos ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
   7233  1.3  christos if test -n "$ac_pt_PCAP_CONFIG"; then
   7234  1.3  christos   { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
   7235  1.3  christos echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
   7236  1.3  christos else
   7237  1.3  christos   { echo "$as_me:$LINENO: result: no" >&5
   7238  1.3  christos echo "${ECHO_T}no" >&6; }
   7239  1.3  christos fi
   7240  1.3  christos 
   7241  1.3  christos   if test "x$ac_pt_PCAP_CONFIG" = x; then
   7242  1.3  christos     PCAP_CONFIG=""
   7243  1.3  christos   else
   7244  1.3  christos     case $cross_compiling:$ac_tool_warned in
   7245  1.3  christos yes:)
   7246  1.3  christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   7247  1.3  christos whose name does not start with the host triplet.  If you think this
   7248  1.3  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   7249  1.3  christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   7250  1.3  christos whose name does not start with the host triplet.  If you think this
   7251  1.3  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   7252  1.3  christos ac_tool_warned=yes ;;
   7253  1.3  christos esac
   7254  1.3  christos     PCAP_CONFIG=$ac_pt_PCAP_CONFIG
   7255  1.3  christos   fi
   7256  1.3  christos else
   7257  1.3  christos   PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
   7258  1.3  christos fi
   7259  1.3  christos 
   7260  1.1  christos 	    if test -n "$PCAP_CONFIG" ; then
   7261  1.1  christos 		#
   7262  1.1  christos 		# Found - use it to get the include flags for
   7263  1.1  christos 		# libpcap and the flags to link with libpcap.
   7264  1.1  christos 		#
   7265  1.3  christos 		# Please read section 11.6 "Shell Substitutions"
   7266  1.3  christos 		# in the autoconf manual before doing anything
   7267  1.3  christos 		# to this that involves quoting.  Especially note
   7268  1.3  christos 		# the statement "There is just no portable way to use
   7269  1.3  christos 		# double-quoted strings inside double-quoted back-quoted
   7270  1.3  christos 		# expressions (pfew!)."
   7271  1.3  christos 		#
   7272  1.3  christos 		cflags=`"$PCAP_CONFIG" --cflags`
   7273  1.3  christos 		V_INCLS="$cflags $V_INCLS"
   7274  1.3  christos 		libpcap=`"$PCAP_CONFIG" --libs`
   7275  1.1  christos 	    else
   7276  1.1  christos 		#
   7277  1.1  christos 		# Not found; look for pcap.
   7278  1.1  christos 		#
   7279  1.1  christos 		{ echo "$as_me:$LINENO: checking for main in -lpcap" >&5
   7280  1.1  christos echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
   7281  1.1  christos if test "${ac_cv_lib_pcap_main+set}" = set; then
   7282  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7283  1.1  christos else
   7284  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   7285  1.1  christos LIBS="-lpcap  $LIBS"
   7286  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   7287  1.1  christos /* confdefs.h.  */
   7288  1.1  christos _ACEOF
   7289  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7290  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7291  1.1  christos /* end confdefs.h.  */
   7292  1.1  christos 
   7293  1.1  christos 
   7294  1.1  christos int
   7295  1.1  christos main ()
   7296  1.1  christos {
   7297  1.1  christos return main ();
   7298  1.1  christos   ;
   7299  1.1  christos   return 0;
   7300  1.1  christos }
   7301  1.1  christos _ACEOF
   7302  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   7303  1.1  christos if { (ac_try="$ac_link"
   7304  1.1  christos case "(($ac_try" in
   7305  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7306  1.1  christos   *) ac_try_echo=$ac_try;;
   7307  1.1  christos esac
   7308  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7309  1.1  christos   (eval "$ac_link") 2>conftest.er1
   7310  1.1  christos   ac_status=$?
   7311  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7312  1.1  christos   rm -f conftest.er1
   7313  1.1  christos   cat conftest.err >&5
   7314  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7315  1.1  christos   (exit $ac_status); } && {
   7316  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   7317  1.1  christos 	 test ! -s conftest.err
   7318  1.1  christos        } && test -s conftest$ac_exeext &&
   7319  1.1  christos        $as_test_x conftest$ac_exeext; then
   7320  1.1  christos   ac_cv_lib_pcap_main=yes
   7321  1.1  christos else
   7322  1.1  christos   echo "$as_me: failed program was:" >&5
   7323  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7324  1.1  christos 
   7325  1.1  christos 	ac_cv_lib_pcap_main=no
   7326  1.1  christos fi
   7327  1.1  christos 
   7328  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7329  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   7330  1.1  christos LIBS=$ac_check_lib_save_LIBS
   7331  1.1  christos fi
   7332  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
   7333  1.1  christos echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
   7334  1.1  christos if test $ac_cv_lib_pcap_main = yes; then
   7335  1.1  christos   libpcap="-lpcap"
   7336  1.1  christos fi
   7337  1.1  christos 
   7338  1.1  christos 		if test $libpcap = FAIL ; then
   7339  1.1  christos 		    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
   7340  1.1  christos echo "$as_me: error: see the INSTALL doc for more info" >&2;}
   7341  1.1  christos    { (exit 1); exit 1; }; }
   7342  1.1  christos 		fi
   7343  1.1  christos 																																								{ echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
   7344  1.1  christos echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
   7345  1.1  christos 		if test \( ! -r /usr/local/include/pcap.h \) -a \
   7346  1.1  christos 			\( ! -r /usr/include/pcap.h \); then
   7347  1.1  christos 		    if test -r /usr/local/include/pcap/pcap.h; then
   7348  1.1  christos 			d="/usr/local/include/pcap"
   7349  1.1  christos 		    elif test -r /usr/include/pcap/pcap.h; then
   7350  1.1  christos 			d="/usr/include/pcap"
   7351  1.1  christos 		    fi
   7352  1.1  christos 		fi
   7353  1.1  christos 		if test -z "$d" ; then
   7354  1.1  christos 		    { echo "$as_me:$LINENO: result: not found" >&5
   7355  1.1  christos echo "${ECHO_T}not found" >&6; }
   7356  1.1  christos 		else
   7357  1.1  christos 		    V_INCLS="-I$d $V_INCLS"
   7358  1.1  christos 		    { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
   7359  1.1  christos echo "${ECHO_T}found -- -I$d added" >&6; }
   7360  1.1  christos 		fi
   7361  1.1  christos 	    fi
   7362  1.1  christos     else
   7363  1.1  christos 	    V_PCAPDEP=$libpcap
   7364  1.1  christos 	    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
   7365  1.1  christos     	 		egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
   7366  1.1  christos 	    if test -r $d/pcap.h; then
   7367  1.1  christos 		    V_INCLS="-I$d $V_INCLS"
   7368  1.1  christos 	    elif test -r $places/pcap.h; then
   7369  1.1  christos 		    V_INCLS="-I$places $V_INCLS"
   7370  1.1  christos 	    else
   7371  1.1  christos                     { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
   7372  1.1  christos echo "$as_me: error: cannot find pcap.h" >&2;}
   7373  1.1  christos    { (exit see INSTALL); exit see INSTALL; }; }
   7374  1.1  christos  	    fi
   7375  1.1  christos 	    { echo "$as_me:$LINENO: result: $libpcap" >&5
   7376  1.1  christos echo "${ECHO_T}$libpcap" >&6; }
   7377  1.1  christos 	    # Extract the first word of "pcap-config", so it can be a program name with args.
   7378  1.1  christos set dummy pcap-config; ac_word=$2
   7379  1.1  christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
   7380  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   7381  1.1  christos if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
   7382  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7383  1.1  christos else
   7384  1.1  christos   case $PCAP_CONFIG in
   7385  1.1  christos   [\\/]* | ?:[\\/]*)
   7386  1.1  christos   ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
   7387  1.1  christos   ;;
   7388  1.1  christos   *)
   7389  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7390  1.1  christos for as_dir in $d
   7391  1.1  christos do
   7392  1.1  christos   IFS=$as_save_IFS
   7393  1.1  christos   test -z "$as_dir" && as_dir=.
   7394  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   7395  1.1  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   7396  1.1  christos     ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   7397  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   7398  1.1  christos     break 2
   7399  1.1  christos   fi
   7400  1.1  christos done
   7401  1.1  christos done
   7402  1.1  christos IFS=$as_save_IFS
   7403  1.1  christos 
   7404  1.1  christos   ;;
   7405  1.1  christos esac
   7406  1.1  christos fi
   7407  1.1  christos PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
   7408  1.1  christos if test -n "$PCAP_CONFIG"; then
   7409  1.1  christos   { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
   7410  1.1  christos echo "${ECHO_T}$PCAP_CONFIG" >&6; }
   7411  1.1  christos else
   7412  1.1  christos   { echo "$as_me:$LINENO: result: no" >&5
   7413  1.1  christos echo "${ECHO_T}no" >&6; }
   7414  1.1  christos fi
   7415  1.1  christos 
   7416  1.1  christos 
   7417  1.1  christos 	    if test -n "$PCAP_CONFIG"; then
   7418  1.1  christos 		#
   7419  1.1  christos 		# The libpcap directory has a pcap-config script.
   7420  1.1  christos 		# Use it to get any additioal libraries needed
   7421  1.1  christos 		# to link with the libpcap archive library in
   7422  1.3  christos 		# that directory.
   7423  1.3  christos 		#
   7424  1.3  christos 		# Please read section 11.6 "Shell Substitutions"
   7425  1.3  christos 		# in the autoconf manual before doing anything
   7426  1.3  christos 		# to this that involves quoting.  Especially note
   7427  1.3  christos 		# the statement "There is just no portable way to use
   7428  1.3  christos 		# double-quoted strings inside double-quoted back-quoted
   7429  1.3  christos 		# expressions (pfew!)."
   7430  1.1  christos 		#
   7431  1.3  christos 		additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
   7432  1.3  christos 		libpcap="$libpcap $additional_libs"
   7433  1.1  christos 	    fi
   7434  1.1  christos     fi
   7435  1.1  christos     LIBS="$libpcap $LIBS"
   7436  1.1  christos     if ! test -n "$PCAP_CONFIG" ; then
   7437  1.1  christos 	#
   7438  1.1  christos 	# We don't have pcap-config; find out any additional link flags
   7439  1.1  christos 	# we need.  (If we have pcap-config, we assume it tells us what
   7440  1.1  christos 	# we need.)
   7441  1.1  christos 	#
   7442  1.1  christos 	case "$host_os" in
   7443  1.1  christos 
   7444  1.1  christos 	aix*)
   7445  1.1  christos 	    #
   7446  1.1  christos 	    # If libpcap is DLPI-based, we have to use /lib/pse.exp if
   7447  1.1  christos 	    # present, as we use the STREAMS routines.
   7448  1.3  christos 	    #
   7449  1.3  christos 	    # (XXX - true only if we're linking with a static libpcap?)
   7450  1.3  christos 	    #
   7451  1.3  christos 	    pseexe="/lib/pse.exp"
   7452  1.3  christos 	    { echo "$as_me:$LINENO: checking for $pseexe" >&5
   7453  1.3  christos echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
   7454  1.3  christos 	    if test -f $pseexe ; then
   7455  1.3  christos 		    { echo "$as_me:$LINENO: result: yes" >&5
   7456  1.3  christos echo "${ECHO_T}yes" >&6; }
   7457  1.3  christos 		    LIBS="$LIBS -I:$pseexe"
   7458  1.3  christos 	    fi
   7459  1.3  christos 
   7460  1.3  christos 	    #
   7461  1.3  christos 	    # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
   7462  1.3  christos 	    # we use them to load the BPF module.
   7463  1.3  christos 	    #
   7464  1.3  christos 	    # (XXX - true only if we're linking with a static libpcap?)
   7465  1.3  christos 	    #
   7466  1.3  christos 	    LIBS="$LIBS -lodm -lcfg"
   7467  1.3  christos 	    ;;
   7468  1.3  christos 	esac
   7469  1.3  christos     fi
   7470  1.3  christos 
   7471  1.3  christos                                     { echo "$as_me:$LINENO: checking for pcap_loop" >&5
   7472  1.3  christos echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
   7473  1.3  christos if test "${ac_cv_func_pcap_loop+set}" = set; then
   7474  1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7475  1.3  christos else
   7476  1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   7477  1.3  christos /* confdefs.h.  */
   7478  1.3  christos _ACEOF
   7479  1.3  christos cat confdefs.h >>conftest.$ac_ext
   7480  1.3  christos cat >>conftest.$ac_ext <<_ACEOF
   7481  1.3  christos /* end confdefs.h.  */
   7482  1.3  christos /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
   7483  1.3  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   7484  1.3  christos #define pcap_loop innocuous_pcap_loop
   7485  1.3  christos 
   7486  1.3  christos /* System header to define __stub macros and hopefully few prototypes,
   7487  1.3  christos     which can conflict with char pcap_loop (); below.
   7488  1.3  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   7489  1.3  christos     <limits.h> exists even on freestanding compilers.  */
   7490  1.3  christos 
   7491  1.3  christos #ifdef __STDC__
   7492  1.3  christos # include <limits.h>
   7493  1.3  christos #else
   7494  1.3  christos # include <assert.h>
   7495  1.3  christos #endif
   7496  1.3  christos 
   7497  1.3  christos #undef pcap_loop
   7498  1.3  christos 
   7499  1.3  christos /* Override any GCC internal prototype to avoid an error.
   7500  1.3  christos    Use char because int might match the return type of a GCC
   7501  1.3  christos    builtin and then its argument prototype would still apply.  */
   7502  1.3  christos #ifdef __cplusplus
   7503  1.3  christos extern "C"
   7504  1.3  christos #endif
   7505  1.3  christos char pcap_loop ();
   7506  1.3  christos /* The GNU C library defines this for functions which it implements
   7507  1.3  christos     to always fail with ENOSYS.  Some functions are actually named
   7508  1.3  christos     something starting with __ and the normal name is an alias.  */
   7509  1.3  christos #if defined __stub_pcap_loop || defined __stub___pcap_loop
   7510  1.3  christos choke me
   7511  1.3  christos #endif
   7512  1.3  christos 
   7513  1.3  christos int
   7514  1.3  christos main ()
   7515  1.3  christos {
   7516  1.3  christos return pcap_loop ();
   7517  1.3  christos   ;
   7518  1.3  christos   return 0;
   7519  1.3  christos }
   7520  1.3  christos _ACEOF
   7521  1.3  christos rm -f conftest.$ac_objext conftest$ac_exeext
   7522  1.3  christos if { (ac_try="$ac_link"
   7523  1.3  christos case "(($ac_try" in
   7524  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7525  1.3  christos   *) ac_try_echo=$ac_try;;
   7526  1.3  christos esac
   7527  1.3  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7528  1.3  christos   (eval "$ac_link") 2>conftest.er1
   7529  1.3  christos   ac_status=$?
   7530  1.3  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7531  1.3  christos   rm -f conftest.er1
   7532  1.3  christos   cat conftest.err >&5
   7533  1.3  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7534  1.3  christos   (exit $ac_status); } && {
   7535  1.3  christos 	 test -z "$ac_c_werror_flag" ||
   7536  1.3  christos 	 test ! -s conftest.err
   7537  1.3  christos        } && test -s conftest$ac_exeext &&
   7538  1.3  christos        $as_test_x conftest$ac_exeext; then
   7539  1.3  christos   ac_cv_func_pcap_loop=yes
   7540  1.3  christos else
   7541  1.3  christos   echo "$as_me: failed program was:" >&5
   7542  1.3  christos sed 's/^/| /' conftest.$ac_ext >&5
   7543  1.3  christos 
   7544  1.3  christos 	ac_cv_func_pcap_loop=no
   7545  1.3  christos fi
   7546  1.3  christos 
   7547  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7548  1.3  christos       conftest$ac_exeext conftest.$ac_ext
   7549  1.3  christos fi
   7550  1.3  christos { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
   7551  1.3  christos echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
   7552  1.3  christos if test $ac_cv_func_pcap_loop = yes; then
   7553  1.3  christos   :
   7554  1.3  christos else
   7555  1.3  christos 
   7556  1.3  christos 	    { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers (at] lists.tcpdump.org, and include the
   7557  1.3  christos config.log file in your report.  If you have downloaded libpcap from
   7558  1.3  christos tcpdump.org, and built it yourself, please also include the config.log
   7559  1.3  christos file from the libpcap source directory, the Makefile from the libpcap
   7560  1.3  christos source directory, and the output of the make process for libpcap, as
   7561  1.3  christos this could be a problem with the libpcap that was built, and we will
   7562  1.3  christos not be able to determine why this is happening, and thus will not be
   7563  1.3  christos able to fix it, without that information, as we have not been able to
   7564  1.3  christos reproduce this problem ourselves." >&5
   7565  1.3  christos echo "$as_me: error: Report this to tcpdump-workers (at] lists.tcpdump.org, and include the
   7566  1.3  christos config.log file in your report.  If you have downloaded libpcap from
   7567  1.3  christos tcpdump.org, and built it yourself, please also include the config.log
   7568  1.3  christos file from the libpcap source directory, the Makefile from the libpcap
   7569  1.3  christos source directory, and the output of the make process for libpcap, as
   7570  1.3  christos this could be a problem with the libpcap that was built, and we will
   7571  1.3  christos not be able to determine why this is happening, and thus will not be
   7572  1.3  christos able to fix it, without that information, as we have not been able to
   7573  1.3  christos reproduce this problem ourselves." >&2;}
   7574  1.3  christos    { (exit 1); exit 1; }; }
   7575  1.3  christos 
   7576  1.3  christos fi
   7577  1.1  christos 
   7578  1.1  christos 
   7579  1.1  christos                         { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
   7580  1.1  christos echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
   7581  1.1  christos if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
   7582  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7583  1.1  christos else
   7584  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7585  1.1  christos /* confdefs.h.  */
   7586  1.1  christos _ACEOF
   7587  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7588  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7589  1.1  christos /* end confdefs.h.  */
   7590  1.1  christos /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
   7591  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   7592  1.1  christos #define pcap_list_datalinks innocuous_pcap_list_datalinks
   7593  1.1  christos 
   7594  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   7595  1.1  christos     which can conflict with char pcap_list_datalinks (); below.
   7596  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   7597  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   7598  1.1  christos 
   7599  1.1  christos #ifdef __STDC__
   7600  1.1  christos # include <limits.h>
   7601  1.1  christos #else
   7602  1.1  christos # include <assert.h>
   7603  1.1  christos #endif
   7604  1.1  christos 
   7605  1.1  christos #undef pcap_list_datalinks
   7606  1.1  christos 
   7607  1.1  christos /* Override any GCC internal prototype to avoid an error.
   7608  1.1  christos    Use char because int might match the return type of a GCC
   7609  1.1  christos    builtin and then its argument prototype would still apply.  */
   7610  1.1  christos #ifdef __cplusplus
   7611  1.1  christos extern "C"
   7612  1.1  christos #endif
   7613  1.1  christos char pcap_list_datalinks ();
   7614  1.1  christos /* The GNU C library defines this for functions which it implements
   7615  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   7616  1.1  christos     something starting with __ and the normal name is an alias.  */
   7617  1.1  christos #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
   7618  1.1  christos choke me
   7619  1.1  christos #endif
   7620  1.1  christos 
   7621  1.1  christos int
   7622  1.1  christos main ()
   7623  1.1  christos {
   7624  1.1  christos return pcap_list_datalinks ();
   7625  1.1  christos   ;
   7626  1.1  christos   return 0;
   7627  1.1  christos }
   7628  1.1  christos _ACEOF
   7629  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   7630  1.1  christos if { (ac_try="$ac_link"
   7631  1.1  christos case "(($ac_try" in
   7632  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7633  1.1  christos   *) ac_try_echo=$ac_try;;
   7634  1.1  christos esac
   7635  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7636  1.1  christos   (eval "$ac_link") 2>conftest.er1
   7637  1.1  christos   ac_status=$?
   7638  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7639  1.1  christos   rm -f conftest.er1
   7640  1.1  christos   cat conftest.err >&5
   7641  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7642  1.1  christos   (exit $ac_status); } && {
   7643  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   7644  1.1  christos 	 test ! -s conftest.err
   7645  1.1  christos        } && test -s conftest$ac_exeext &&
   7646  1.1  christos        $as_test_x conftest$ac_exeext; then
   7647  1.1  christos   ac_cv_func_pcap_list_datalinks=yes
   7648  1.1  christos else
   7649  1.1  christos   echo "$as_me: failed program was:" >&5
   7650  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7651  1.1  christos 
   7652  1.1  christos 	ac_cv_func_pcap_list_datalinks=no
   7653  1.1  christos fi
   7654  1.1  christos 
   7655  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7656  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   7657  1.1  christos fi
   7658  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
   7659  1.1  christos echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
   7660  1.1  christos if test $ac_cv_func_pcap_list_datalinks = yes; then
   7661  1.1  christos   cat >>confdefs.h <<\_ACEOF
   7662  1.1  christos #define HAVE_PCAP_LIST_DATALINKS 1
   7663  1.1  christos _ACEOF
   7664  1.1  christos 
   7665  1.1  christos else
   7666  1.1  christos 
   7667  1.1  christos 	    case " $LIBOBJS " in
   7668  1.1  christos   *" datalinks.$ac_objext "* ) ;;
   7669  1.1  christos   *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
   7670  1.1  christos  ;;
   7671  1.1  christos esac
   7672  1.1  christos 
   7673  1.1  christos 
   7674  1.1  christos fi
   7675  1.1  christos 
   7676  1.1  christos     { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
   7677  1.1  christos echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
   7678  1.1  christos if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
   7679  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7680  1.1  christos else
   7681  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7682  1.1  christos /* confdefs.h.  */
   7683  1.1  christos _ACEOF
   7684  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7685  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7686  1.1  christos /* end confdefs.h.  */
   7687  1.1  christos /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
   7688  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   7689  1.1  christos #define pcap_set_datalink innocuous_pcap_set_datalink
   7690  1.1  christos 
   7691  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   7692  1.1  christos     which can conflict with char pcap_set_datalink (); below.
   7693  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   7694  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   7695  1.1  christos 
   7696  1.1  christos #ifdef __STDC__
   7697  1.1  christos # include <limits.h>
   7698  1.1  christos #else
   7699  1.1  christos # include <assert.h>
   7700  1.1  christos #endif
   7701  1.1  christos 
   7702  1.1  christos #undef pcap_set_datalink
   7703  1.1  christos 
   7704  1.1  christos /* Override any GCC internal prototype to avoid an error.
   7705  1.1  christos    Use char because int might match the return type of a GCC
   7706  1.1  christos    builtin and then its argument prototype would still apply.  */
   7707  1.1  christos #ifdef __cplusplus
   7708  1.1  christos extern "C"
   7709  1.1  christos #endif
   7710  1.1  christos char pcap_set_datalink ();
   7711  1.1  christos /* The GNU C library defines this for functions which it implements
   7712  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   7713  1.1  christos     something starting with __ and the normal name is an alias.  */
   7714  1.1  christos #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
   7715  1.1  christos choke me
   7716  1.1  christos #endif
   7717  1.1  christos 
   7718  1.1  christos int
   7719  1.1  christos main ()
   7720  1.1  christos {
   7721  1.1  christos return pcap_set_datalink ();
   7722  1.1  christos   ;
   7723  1.1  christos   return 0;
   7724  1.1  christos }
   7725  1.1  christos _ACEOF
   7726  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   7727  1.1  christos if { (ac_try="$ac_link"
   7728  1.1  christos case "(($ac_try" in
   7729  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7730  1.1  christos   *) ac_try_echo=$ac_try;;
   7731  1.1  christos esac
   7732  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7733  1.1  christos   (eval "$ac_link") 2>conftest.er1
   7734  1.1  christos   ac_status=$?
   7735  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7736  1.1  christos   rm -f conftest.er1
   7737  1.1  christos   cat conftest.err >&5
   7738  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7739  1.1  christos   (exit $ac_status); } && {
   7740  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   7741  1.1  christos 	 test ! -s conftest.err
   7742  1.1  christos        } && test -s conftest$ac_exeext &&
   7743  1.1  christos        $as_test_x conftest$ac_exeext; then
   7744  1.1  christos   ac_cv_func_pcap_set_datalink=yes
   7745  1.1  christos else
   7746  1.1  christos   echo "$as_me: failed program was:" >&5
   7747  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7748  1.1  christos 
   7749  1.1  christos 	ac_cv_func_pcap_set_datalink=no
   7750  1.1  christos fi
   7751  1.1  christos 
   7752  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7753  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   7754  1.1  christos fi
   7755  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
   7756  1.1  christos echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
   7757  1.1  christos if test $ac_cv_func_pcap_set_datalink = yes; then
   7758  1.1  christos   cat >>confdefs.h <<\_ACEOF
   7759  1.1  christos #define HAVE_PCAP_SET_DATALINK 1
   7760  1.1  christos _ACEOF
   7761  1.1  christos 
   7762  1.1  christos fi
   7763  1.1  christos 
   7764  1.1  christos     { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
   7765  1.1  christos echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
   7766  1.1  christos if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
   7767  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7768  1.1  christos else
   7769  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7770  1.1  christos /* confdefs.h.  */
   7771  1.1  christos _ACEOF
   7772  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7773  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7774  1.1  christos /* end confdefs.h.  */
   7775  1.1  christos /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
   7776  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   7777  1.1  christos #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
   7778  1.1  christos 
   7779  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   7780  1.1  christos     which can conflict with char pcap_datalink_name_to_val (); below.
   7781  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   7782  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   7783  1.1  christos 
   7784  1.1  christos #ifdef __STDC__
   7785  1.1  christos # include <limits.h>
   7786  1.1  christos #else
   7787  1.1  christos # include <assert.h>
   7788  1.1  christos #endif
   7789  1.1  christos 
   7790  1.1  christos #undef pcap_datalink_name_to_val
   7791  1.1  christos 
   7792  1.1  christos /* Override any GCC internal prototype to avoid an error.
   7793  1.1  christos    Use char because int might match the return type of a GCC
   7794  1.1  christos    builtin and then its argument prototype would still apply.  */
   7795  1.1  christos #ifdef __cplusplus
   7796  1.1  christos extern "C"
   7797  1.1  christos #endif
   7798  1.1  christos char pcap_datalink_name_to_val ();
   7799  1.1  christos /* The GNU C library defines this for functions which it implements
   7800  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   7801  1.1  christos     something starting with __ and the normal name is an alias.  */
   7802  1.1  christos #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
   7803  1.1  christos choke me
   7804  1.1  christos #endif
   7805  1.1  christos 
   7806  1.1  christos int
   7807  1.1  christos main ()
   7808  1.1  christos {
   7809  1.1  christos return pcap_datalink_name_to_val ();
   7810  1.1  christos   ;
   7811  1.1  christos   return 0;
   7812  1.1  christos }
   7813  1.1  christos _ACEOF
   7814  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   7815  1.1  christos if { (ac_try="$ac_link"
   7816  1.1  christos case "(($ac_try" in
   7817  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7818  1.1  christos   *) ac_try_echo=$ac_try;;
   7819  1.1  christos esac
   7820  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7821  1.1  christos   (eval "$ac_link") 2>conftest.er1
   7822  1.1  christos   ac_status=$?
   7823  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7824  1.1  christos   rm -f conftest.er1
   7825  1.1  christos   cat conftest.err >&5
   7826  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7827  1.1  christos   (exit $ac_status); } && {
   7828  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   7829  1.1  christos 	 test ! -s conftest.err
   7830  1.1  christos        } && test -s conftest$ac_exeext &&
   7831  1.1  christos        $as_test_x conftest$ac_exeext; then
   7832  1.1  christos   ac_cv_func_pcap_datalink_name_to_val=yes
   7833  1.1  christos else
   7834  1.1  christos   echo "$as_me: failed program was:" >&5
   7835  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7836  1.1  christos 
   7837  1.1  christos 	ac_cv_func_pcap_datalink_name_to_val=no
   7838  1.1  christos fi
   7839  1.1  christos 
   7840  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7841  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   7842  1.1  christos fi
   7843  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
   7844  1.1  christos echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
   7845  1.1  christos if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
   7846  1.1  christos 
   7847  1.1  christos 	    cat >>confdefs.h <<\_ACEOF
   7848  1.1  christos #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
   7849  1.1  christos _ACEOF
   7850  1.1  christos 
   7851  1.1  christos 	    { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
   7852  1.1  christos echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
   7853  1.1  christos if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
   7854  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7855  1.1  christos else
   7856  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7857  1.1  christos /* confdefs.h.  */
   7858  1.1  christos _ACEOF
   7859  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7860  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7861  1.1  christos /* end confdefs.h.  */
   7862  1.1  christos /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
   7863  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   7864  1.1  christos #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
   7865  1.1  christos 
   7866  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   7867  1.1  christos     which can conflict with char pcap_datalink_val_to_description (); below.
   7868  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   7869  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   7870  1.1  christos 
   7871  1.1  christos #ifdef __STDC__
   7872  1.1  christos # include <limits.h>
   7873  1.1  christos #else
   7874  1.1  christos # include <assert.h>
   7875  1.1  christos #endif
   7876  1.1  christos 
   7877  1.1  christos #undef pcap_datalink_val_to_description
   7878  1.1  christos 
   7879  1.1  christos /* Override any GCC internal prototype to avoid an error.
   7880  1.1  christos    Use char because int might match the return type of a GCC
   7881  1.1  christos    builtin and then its argument prototype would still apply.  */
   7882  1.1  christos #ifdef __cplusplus
   7883  1.1  christos extern "C"
   7884  1.1  christos #endif
   7885  1.1  christos char pcap_datalink_val_to_description ();
   7886  1.1  christos /* The GNU C library defines this for functions which it implements
   7887  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   7888  1.1  christos     something starting with __ and the normal name is an alias.  */
   7889  1.1  christos #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
   7890  1.1  christos choke me
   7891  1.1  christos #endif
   7892  1.1  christos 
   7893  1.1  christos int
   7894  1.1  christos main ()
   7895  1.1  christos {
   7896  1.1  christos return pcap_datalink_val_to_description ();
   7897  1.1  christos   ;
   7898  1.1  christos   return 0;
   7899  1.1  christos }
   7900  1.1  christos _ACEOF
   7901  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   7902  1.1  christos if { (ac_try="$ac_link"
   7903  1.1  christos case "(($ac_try" in
   7904  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7905  1.1  christos   *) ac_try_echo=$ac_try;;
   7906  1.1  christos esac
   7907  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7908  1.1  christos   (eval "$ac_link") 2>conftest.er1
   7909  1.1  christos   ac_status=$?
   7910  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7911  1.1  christos   rm -f conftest.er1
   7912  1.1  christos   cat conftest.err >&5
   7913  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7914  1.1  christos   (exit $ac_status); } && {
   7915  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   7916  1.1  christos 	 test ! -s conftest.err
   7917  1.1  christos        } && test -s conftest$ac_exeext &&
   7918  1.1  christos        $as_test_x conftest$ac_exeext; then
   7919  1.1  christos   ac_cv_func_pcap_datalink_val_to_description=yes
   7920  1.1  christos else
   7921  1.1  christos   echo "$as_me: failed program was:" >&5
   7922  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7923  1.1  christos 
   7924  1.1  christos 	ac_cv_func_pcap_datalink_val_to_description=no
   7925  1.1  christos fi
   7926  1.1  christos 
   7927  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7928  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   7929  1.1  christos fi
   7930  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
   7931  1.1  christos echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
   7932  1.1  christos if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
   7933  1.1  christos   cat >>confdefs.h <<\_ACEOF
   7934  1.1  christos #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
   7935  1.1  christos _ACEOF
   7936  1.1  christos 
   7937  1.1  christos else
   7938  1.1  christos 
   7939  1.1  christos 		    case " $LIBOBJS " in
   7940  1.1  christos   *" dlnames.$ac_objext "* ) ;;
   7941  1.1  christos   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
   7942  1.1  christos  ;;
   7943  1.1  christos esac
   7944  1.1  christos 
   7945  1.1  christos 
   7946  1.1  christos fi
   7947  1.1  christos 
   7948  1.1  christos 
   7949  1.1  christos else
   7950  1.1  christos 
   7951  1.1  christos 	    case " $LIBOBJS " in
   7952  1.1  christos   *" dlnames.$ac_objext "* ) ;;
   7953  1.1  christos   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
   7954  1.1  christos  ;;
   7955  1.1  christos esac
   7956  1.1  christos 
   7957  1.1  christos 
   7958  1.1  christos fi
   7959  1.1  christos 
   7960  1.1  christos 
   7961  1.1  christos 
   7962  1.1  christos for ac_func in pcap_breakloop
   7963  1.1  christos do
   7964  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7965  1.1  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   7966  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   7967  1.1  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   7968  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7969  1.1  christos else
   7970  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7971  1.1  christos /* confdefs.h.  */
   7972  1.1  christos _ACEOF
   7973  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7974  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7975  1.1  christos /* end confdefs.h.  */
   7976  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   7977  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   7978  1.1  christos #define $ac_func innocuous_$ac_func
   7979  1.1  christos 
   7980  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   7981  1.1  christos     which can conflict with char $ac_func (); below.
   7982  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   7983  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   7984  1.1  christos 
   7985  1.1  christos #ifdef __STDC__
   7986  1.1  christos # include <limits.h>
   7987  1.1  christos #else
   7988  1.1  christos # include <assert.h>
   7989  1.1  christos #endif
   7990  1.1  christos 
   7991  1.1  christos #undef $ac_func
   7992  1.1  christos 
   7993  1.1  christos /* Override any GCC internal prototype to avoid an error.
   7994  1.1  christos    Use char because int might match the return type of a GCC
   7995  1.1  christos    builtin and then its argument prototype would still apply.  */
   7996  1.1  christos #ifdef __cplusplus
   7997  1.1  christos extern "C"
   7998  1.1  christos #endif
   7999  1.1  christos char $ac_func ();
   8000  1.1  christos /* The GNU C library defines this for functions which it implements
   8001  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   8002  1.1  christos     something starting with __ and the normal name is an alias.  */
   8003  1.1  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   8004  1.1  christos choke me
   8005  1.1  christos #endif
   8006  1.1  christos 
   8007  1.1  christos int
   8008  1.1  christos main ()
   8009  1.1  christos {
   8010  1.1  christos return $ac_func ();
   8011  1.1  christos   ;
   8012  1.1  christos   return 0;
   8013  1.1  christos }
   8014  1.1  christos _ACEOF
   8015  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8016  1.1  christos if { (ac_try="$ac_link"
   8017  1.1  christos case "(($ac_try" in
   8018  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8019  1.1  christos   *) ac_try_echo=$ac_try;;
   8020  1.1  christos esac
   8021  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8022  1.1  christos   (eval "$ac_link") 2>conftest.er1
   8023  1.1  christos   ac_status=$?
   8024  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8025  1.1  christos   rm -f conftest.er1
   8026  1.1  christos   cat conftest.err >&5
   8027  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8028  1.1  christos   (exit $ac_status); } && {
   8029  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   8030  1.1  christos 	 test ! -s conftest.err
   8031  1.1  christos        } && test -s conftest$ac_exeext &&
   8032  1.1  christos        $as_test_x conftest$ac_exeext; then
   8033  1.1  christos   eval "$as_ac_var=yes"
   8034  1.1  christos else
   8035  1.1  christos   echo "$as_me: failed program was:" >&5
   8036  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8037  1.1  christos 
   8038  1.1  christos 	eval "$as_ac_var=no"
   8039  1.1  christos fi
   8040  1.1  christos 
   8041  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8042  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   8043  1.1  christos fi
   8044  1.1  christos ac_res=`eval echo '${'$as_ac_var'}'`
   8045  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8046  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   8047  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   8048  1.1  christos   cat >>confdefs.h <<_ACEOF
   8049  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8050  1.1  christos _ACEOF
   8051  1.1  christos 
   8052  1.1  christos fi
   8053  1.1  christos done
   8054  1.1  christos 
   8055  1.1  christos 
   8056  1.1  christos                 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
   8057  1.1  christos echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
   8058  1.1  christos if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
   8059  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8060  1.1  christos else
   8061  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8062  1.1  christos /* confdefs.h.  */
   8063  1.1  christos _ACEOF
   8064  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8065  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8066  1.1  christos /* end confdefs.h.  */
   8067  1.1  christos /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
   8068  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8069  1.1  christos #define pcap_dump_ftell innocuous_pcap_dump_ftell
   8070  1.1  christos 
   8071  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   8072  1.1  christos     which can conflict with char pcap_dump_ftell (); below.
   8073  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8074  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   8075  1.1  christos 
   8076  1.1  christos #ifdef __STDC__
   8077  1.1  christos # include <limits.h>
   8078  1.1  christos #else
   8079  1.1  christos # include <assert.h>
   8080  1.1  christos #endif
   8081  1.1  christos 
   8082  1.1  christos #undef pcap_dump_ftell
   8083  1.1  christos 
   8084  1.1  christos /* Override any GCC internal prototype to avoid an error.
   8085  1.1  christos    Use char because int might match the return type of a GCC
   8086  1.1  christos    builtin and then its argument prototype would still apply.  */
   8087  1.1  christos #ifdef __cplusplus
   8088  1.1  christos extern "C"
   8089  1.1  christos #endif
   8090  1.1  christos char pcap_dump_ftell ();
   8091  1.1  christos /* The GNU C library defines this for functions which it implements
   8092  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   8093  1.1  christos     something starting with __ and the normal name is an alias.  */
   8094  1.1  christos #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
   8095  1.1  christos choke me
   8096  1.1  christos #endif
   8097  1.1  christos 
   8098  1.1  christos int
   8099  1.1  christos main ()
   8100  1.1  christos {
   8101  1.1  christos return pcap_dump_ftell ();
   8102  1.1  christos   ;
   8103  1.1  christos   return 0;
   8104  1.1  christos }
   8105  1.1  christos _ACEOF
   8106  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8107  1.1  christos if { (ac_try="$ac_link"
   8108  1.1  christos case "(($ac_try" in
   8109  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8110  1.1  christos   *) ac_try_echo=$ac_try;;
   8111  1.1  christos esac
   8112  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8113  1.1  christos   (eval "$ac_link") 2>conftest.er1
   8114  1.1  christos   ac_status=$?
   8115  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8116  1.1  christos   rm -f conftest.er1
   8117  1.1  christos   cat conftest.err >&5
   8118  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8119  1.1  christos   (exit $ac_status); } && {
   8120  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   8121  1.1  christos 	 test ! -s conftest.err
   8122  1.1  christos        } && test -s conftest$ac_exeext &&
   8123  1.1  christos        $as_test_x conftest$ac_exeext; then
   8124  1.1  christos   ac_cv_func_pcap_dump_ftell=yes
   8125  1.1  christos else
   8126  1.1  christos   echo "$as_me: failed program was:" >&5
   8127  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8128  1.1  christos 
   8129  1.1  christos 	ac_cv_func_pcap_dump_ftell=no
   8130  1.1  christos fi
   8131  1.1  christos 
   8132  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8133  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   8134  1.1  christos fi
   8135  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
   8136  1.1  christos echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
   8137  1.1  christos if test $ac_cv_func_pcap_dump_ftell = yes; then
   8138  1.1  christos   cat >>confdefs.h <<\_ACEOF
   8139  1.1  christos #define HAVE_PCAP_DUMP_FTELL 1
   8140  1.1  christos _ACEOF
   8141  1.1  christos 
   8142  1.1  christos else
   8143  1.1  christos 
   8144  1.1  christos 	    case " $LIBOBJS " in
   8145  1.1  christos   *" pcap_dump_ftell.$ac_objext "* ) ;;
   8146  1.1  christos   *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
   8147  1.1  christos  ;;
   8148  1.1  christos esac
   8149  1.1  christos 
   8150  1.1  christos 
   8151  1.1  christos fi
   8152  1.1  christos 
   8153  1.1  christos 
   8154  1.1  christos 
   8155  1.1  christos #
   8156  1.1  christos # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
   8157  1.1  christos # libraries (e.g., "-lsocket -lnsl" on Solaris).
   8158  1.1  christos #
   8159  1.1  christos # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
   8160  1.1  christos # use AC_CHECK_FUNC which doesn't let us specify the right #includes
   8161  1.1  christos # to make this work on BSD/OS 4.x.  BSD/OS 4.x ships with the BIND8
   8162  1.1  christos # resolver, and the way it defines inet_{ntop,pton} is rather strange;
   8163  1.1  christos # it does not ship with a libc symbol "inet_ntop()", it ships with
   8164  1.1  christos # "_inet_ntop()", and has a #define macro in one of the system headers
   8165  1.1  christos # to rename it.
   8166  1.1  christos #
   8167  1.1  christos { echo "$as_me:$LINENO: checking for inet_ntop" >&5
   8168  1.1  christos echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
   8169  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   8170  1.1  christos /* confdefs.h.  */
   8171  1.1  christos _ACEOF
   8172  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8173  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8174  1.1  christos /* end confdefs.h.  */
   8175  1.1  christos #include <sys/types.h>
   8176  1.1  christos #include <sys/socket.h>
   8177  1.1  christos #include <netinet/in.h>
   8178  1.1  christos #include <arpa/inet.h>
   8179  1.1  christos int
   8180  1.1  christos main ()
   8181  1.1  christos {
   8182  1.1  christos char src[4], dst[128];
   8183  1.1  christos inet_ntop(AF_INET, src, dst, sizeof(dst));
   8184  1.1  christos   ;
   8185  1.1  christos   return 0;
   8186  1.1  christos }
   8187  1.1  christos _ACEOF
   8188  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8189  1.1  christos if { (ac_try="$ac_link"
   8190  1.1  christos case "(($ac_try" in
   8191  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8192  1.1  christos   *) ac_try_echo=$ac_try;;
   8193  1.1  christos esac
   8194  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8195  1.1  christos   (eval "$ac_link") 2>conftest.er1
   8196  1.1  christos   ac_status=$?
   8197  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8198  1.1  christos   rm -f conftest.er1
   8199  1.1  christos   cat conftest.err >&5
   8200  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8201  1.1  christos   (exit $ac_status); } && {
   8202  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   8203  1.1  christos 	 test ! -s conftest.err
   8204  1.1  christos        } && test -s conftest$ac_exeext &&
   8205  1.1  christos        $as_test_x conftest$ac_exeext; then
   8206  1.1  christos   { echo "$as_me:$LINENO: result: yes" >&5
   8207  1.1  christos echo "${ECHO_T}yes" >&6; }
   8208  1.1  christos else
   8209  1.1  christos   echo "$as_me: failed program was:" >&5
   8210  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8211  1.1  christos 
   8212  1.1  christos 	{ echo "$as_me:$LINENO: result: no" >&5
   8213  1.1  christos echo "${ECHO_T}no" >&6; }
   8214  1.1  christos 	case " $LIBOBJS " in
   8215  1.1  christos   *" inet_ntop.$ac_objext "* ) ;;
   8216  1.1  christos   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
   8217  1.1  christos  ;;
   8218  1.1  christos esac
   8219  1.1  christos 
   8220  1.1  christos fi
   8221  1.1  christos 
   8222  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8223  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   8224  1.1  christos { echo "$as_me:$LINENO: checking for inet_pton" >&5
   8225  1.1  christos echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
   8226  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   8227  1.1  christos /* confdefs.h.  */
   8228  1.1  christos _ACEOF
   8229  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8230  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8231  1.1  christos /* end confdefs.h.  */
   8232  1.1  christos #include <sys/types.h>
   8233  1.1  christos #include <sys/socket.h>
   8234  1.1  christos #include <netinet/in.h>
   8235  1.1  christos #include <arpa/inet.h>
   8236  1.1  christos int
   8237  1.1  christos main ()
   8238  1.1  christos {
   8239  1.1  christos char src[128], dst[4];
   8240  1.1  christos inet_pton(AF_INET, src, dst);
   8241  1.1  christos   ;
   8242  1.1  christos   return 0;
   8243  1.1  christos }
   8244  1.1  christos _ACEOF
   8245  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8246  1.1  christos if { (ac_try="$ac_link"
   8247  1.1  christos case "(($ac_try" in
   8248  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8249  1.1  christos   *) ac_try_echo=$ac_try;;
   8250  1.1  christos esac
   8251  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8252  1.1  christos   (eval "$ac_link") 2>conftest.er1
   8253  1.1  christos   ac_status=$?
   8254  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8255  1.1  christos   rm -f conftest.er1
   8256  1.1  christos   cat conftest.err >&5
   8257  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8258  1.1  christos   (exit $ac_status); } && {
   8259  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   8260  1.1  christos 	 test ! -s conftest.err
   8261  1.1  christos        } && test -s conftest$ac_exeext &&
   8262  1.1  christos        $as_test_x conftest$ac_exeext; then
   8263  1.1  christos   { echo "$as_me:$LINENO: result: yes" >&5
   8264  1.1  christos echo "${ECHO_T}yes" >&6; }
   8265  1.1  christos else
   8266  1.1  christos   echo "$as_me: failed program was:" >&5
   8267  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8268  1.1  christos 
   8269  1.1  christos 	{ echo "$as_me:$LINENO: result: no" >&5
   8270  1.1  christos echo "${ECHO_T}no" >&6; }
   8271  1.1  christos 	case " $LIBOBJS " in
   8272  1.1  christos   *" inet_pton.$ac_objext "* ) ;;
   8273  1.1  christos   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
   8274  1.1  christos  ;;
   8275  1.1  christos esac
   8276  1.1  christos 
   8277  1.1  christos fi
   8278  1.1  christos 
   8279  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8280  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   8281  1.1  christos { echo "$as_me:$LINENO: checking for inet_aton" >&5
   8282  1.1  christos echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
   8283  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   8284  1.1  christos /* confdefs.h.  */
   8285  1.1  christos _ACEOF
   8286  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8287  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8288  1.1  christos /* end confdefs.h.  */
   8289  1.1  christos #include <sys/types.h>
   8290  1.1  christos #include <netinet/in.h>
   8291  1.1  christos #include <arpa/inet.h>
   8292  1.1  christos int
   8293  1.1  christos main ()
   8294  1.1  christos {
   8295  1.1  christos char src[128];
   8296  1.1  christos struct in_addr dst;
   8297  1.1  christos inet_aton(src, &dst);
   8298  1.1  christos   ;
   8299  1.1  christos   return 0;
   8300  1.1  christos }
   8301  1.1  christos _ACEOF
   8302  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8303  1.1  christos if { (ac_try="$ac_link"
   8304  1.1  christos case "(($ac_try" in
   8305  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8306  1.1  christos   *) ac_try_echo=$ac_try;;
   8307  1.1  christos esac
   8308  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8309  1.1  christos   (eval "$ac_link") 2>conftest.er1
   8310  1.1  christos   ac_status=$?
   8311  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8312  1.1  christos   rm -f conftest.er1
   8313  1.1  christos   cat conftest.err >&5
   8314  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8315  1.1  christos   (exit $ac_status); } && {
   8316  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   8317  1.1  christos 	 test ! -s conftest.err
   8318  1.1  christos        } && test -s conftest$ac_exeext &&
   8319  1.1  christos        $as_test_x conftest$ac_exeext; then
   8320  1.1  christos   { echo "$as_me:$LINENO: result: yes" >&5
   8321  1.1  christos echo "${ECHO_T}yes" >&6; }
   8322  1.1  christos else
   8323  1.1  christos   echo "$as_me: failed program was:" >&5
   8324  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8325  1.1  christos 
   8326  1.1  christos 	{ echo "$as_me:$LINENO: result: no" >&5
   8327  1.1  christos echo "${ECHO_T}no" >&6; }
   8328  1.1  christos 	case " $LIBOBJS " in
   8329  1.1  christos   *" inet_aton.$ac_objext "* ) ;;
   8330  1.1  christos   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
   8331  1.1  christos  ;;
   8332  1.1  christos esac
   8333  1.1  christos 
   8334  1.1  christos fi
   8335  1.1  christos 
   8336  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8337  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   8338  1.1  christos 
   8339  1.1  christos #
   8340  1.1  christos # Check for these after AC_LBL_LIBPCAP, for the same reason.
   8341  1.1  christos #
   8342  1.1  christos # You are in a twisty little maze of UN*Xes, all different.
   8343  1.1  christos # Some might not have ether_ntohost().
   8344  1.1  christos # Some might have it, but not declare it in any header file.
   8345  1.1  christos # Some might have it, but declare it in <netinet/if_ether.h>.
   8346  1.1  christos # Some might have it, but declare it in <netinet/ether.h>
   8347  1.1  christos # (And some might have it but document it as something declared in
   8348  1.1  christos # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
   8349  1.1  christos #
   8350  1.1  christos # Before you is a C compiler.
   8351  1.1  christos #
   8352  1.1  christos 
   8353  1.1  christos for ac_func in ether_ntohost
   8354  1.1  christos do
   8355  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8356  1.1  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   8357  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   8358  1.1  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   8359  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8360  1.1  christos else
   8361  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8362  1.1  christos /* confdefs.h.  */
   8363  1.1  christos _ACEOF
   8364  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8365  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8366  1.1  christos /* end confdefs.h.  */
   8367  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   8368  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8369  1.1  christos #define $ac_func innocuous_$ac_func
   8370  1.1  christos 
   8371  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   8372  1.1  christos     which can conflict with char $ac_func (); below.
   8373  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8374  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   8375  1.1  christos 
   8376  1.1  christos #ifdef __STDC__
   8377  1.1  christos # include <limits.h>
   8378  1.1  christos #else
   8379  1.1  christos # include <assert.h>
   8380  1.1  christos #endif
   8381  1.1  christos 
   8382  1.1  christos #undef $ac_func
   8383  1.1  christos 
   8384  1.1  christos /* Override any GCC internal prototype to avoid an error.
   8385  1.1  christos    Use char because int might match the return type of a GCC
   8386  1.1  christos    builtin and then its argument prototype would still apply.  */
   8387  1.1  christos #ifdef __cplusplus
   8388  1.1  christos extern "C"
   8389  1.1  christos #endif
   8390  1.1  christos char $ac_func ();
   8391  1.1  christos /* The GNU C library defines this for functions which it implements
   8392  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   8393  1.1  christos     something starting with __ and the normal name is an alias.  */
   8394  1.1  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   8395  1.1  christos choke me
   8396  1.1  christos #endif
   8397  1.1  christos 
   8398  1.1  christos int
   8399  1.1  christos main ()
   8400  1.1  christos {
   8401  1.1  christos return $ac_func ();
   8402  1.1  christos   ;
   8403  1.1  christos   return 0;
   8404  1.1  christos }
   8405  1.1  christos _ACEOF
   8406  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8407  1.1  christos if { (ac_try="$ac_link"
   8408  1.1  christos case "(($ac_try" in
   8409  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8410  1.1  christos   *) ac_try_echo=$ac_try;;
   8411  1.1  christos esac
   8412  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8413  1.1  christos   (eval "$ac_link") 2>conftest.er1
   8414  1.1  christos   ac_status=$?
   8415  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8416  1.1  christos   rm -f conftest.er1
   8417  1.1  christos   cat conftest.err >&5
   8418  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8419  1.1  christos   (exit $ac_status); } && {
   8420  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   8421  1.1  christos 	 test ! -s conftest.err
   8422  1.1  christos        } && test -s conftest$ac_exeext &&
   8423  1.1  christos        $as_test_x conftest$ac_exeext; then
   8424  1.1  christos   eval "$as_ac_var=yes"
   8425  1.1  christos else
   8426  1.1  christos   echo "$as_me: failed program was:" >&5
   8427  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8428  1.1  christos 
   8429  1.1  christos 	eval "$as_ac_var=no"
   8430  1.1  christos fi
   8431  1.1  christos 
   8432  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8433  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   8434  1.1  christos fi
   8435  1.1  christos ac_res=`eval echo '${'$as_ac_var'}'`
   8436  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8437  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   8438  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   8439  1.1  christos   cat >>confdefs.h <<_ACEOF
   8440  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8441  1.1  christos _ACEOF
   8442  1.1  christos 
   8443  1.1  christos     { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
   8444  1.1  christos echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
   8445  1.1  christos if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
   8446  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8447  1.1  christos else
   8448  1.1  christos 
   8449  1.1  christos 	if test "$cross_compiling" = yes; then
   8450  1.1  christos   ac_cv_buggy_ether_ntohost="not while cross-compiling"
   8451  1.1  christos else
   8452  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8453  1.1  christos /* confdefs.h.  */
   8454  1.1  christos _ACEOF
   8455  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8456  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8457  1.1  christos /* end confdefs.h.  */
   8458  1.1  christos 
   8459  1.1  christos 		#include <netdb.h>
   8460  1.1  christos 		#include <sys/types.h>
   8461  1.1  christos 		#include <sys/param.h>
   8462  1.1  christos 		#include <sys/socket.h>
   8463  1.1  christos 
   8464  1.1  christos 		int
   8465  1.1  christos 		main(int argc, char **argv)
   8466  1.1  christos 		{
   8467  1.1  christos 			u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
   8468  1.1  christos 			char name[MAXHOSTNAMELEN];
   8469  1.1  christos 
   8470  1.1  christos 			ether_ntohost(name, (struct ether_addr *)ea);
   8471  1.1  christos 			exit(0);
   8472  1.1  christos 		}
   8473  1.1  christos 
   8474  1.1  christos _ACEOF
   8475  1.1  christos rm -f conftest$ac_exeext
   8476  1.1  christos if { (ac_try="$ac_link"
   8477  1.1  christos case "(($ac_try" in
   8478  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8479  1.1  christos   *) ac_try_echo=$ac_try;;
   8480  1.1  christos esac
   8481  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8482  1.1  christos   (eval "$ac_link") 2>&5
   8483  1.1  christos   ac_status=$?
   8484  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8485  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   8486  1.1  christos   { (case "(($ac_try" in
   8487  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8488  1.1  christos   *) ac_try_echo=$ac_try;;
   8489  1.1  christos esac
   8490  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8491  1.1  christos   (eval "$ac_try") 2>&5
   8492  1.1  christos   ac_status=$?
   8493  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8494  1.1  christos   (exit $ac_status); }; }; then
   8495  1.1  christos   ac_cv_buggy_ether_ntohost=no
   8496  1.1  christos else
   8497  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   8498  1.1  christos echo "$as_me: failed program was:" >&5
   8499  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8500  1.1  christos 
   8501  1.1  christos ( exit $ac_status )
   8502  1.1  christos ac_cv_buggy_ether_ntohost=yes
   8503  1.1  christos fi
   8504  1.1  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   8505  1.1  christos fi
   8506  1.1  christos 
   8507  1.1  christos 
   8508  1.1  christos fi
   8509  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
   8510  1.1  christos echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
   8511  1.1  christos     if test "$ac_cv_buggy_ether_ntohost" = "no"; then
   8512  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   8513  1.1  christos #define USE_ETHER_NTOHOST 1
   8514  1.1  christos _ACEOF
   8515  1.1  christos 
   8516  1.1  christos     fi
   8517  1.1  christos 
   8518  1.1  christos fi
   8519  1.1  christos done
   8520  1.1  christos 
   8521  1.1  christos if test "$ac_cv_func_ether_ntohost" = yes -a \
   8522  1.1  christos     "$ac_cv_buggy_ether_ntohost" = "no"; then
   8523  1.1  christos 	#
   8524  1.1  christos 	# OK, we have ether_ntohost().  Do we have <netinet/if_ether.h>?
   8525  1.1  christos 	#
   8526  1.1  christos 	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
   8527  1.1  christos 		#
   8528  1.1  christos 		# Yes.  Does it declare ether_ntohost()?
   8529  1.1  christos 		#
   8530  1.1  christos 		{ echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
   8531  1.1  christos echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
   8532  1.1  christos if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
   8533  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8534  1.1  christos else
   8535  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8536  1.1  christos /* confdefs.h.  */
   8537  1.1  christos _ACEOF
   8538  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8539  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8540  1.1  christos /* end confdefs.h.  */
   8541  1.1  christos 
   8542  1.1  christos #include <sys/types.h>
   8543  1.1  christos #include <sys/socket.h>
   8544  1.1  christos #include <netinet/in.h>
   8545  1.1  christos #include <arpa/inet.h>
   8546  1.1  christos struct mbuf;
   8547  1.1  christos struct rtentry;
   8548  1.1  christos #include <net/if.h>
   8549  1.1  christos #include <netinet/if_ether.h>
   8550  1.1  christos 
   8551  1.1  christos 
   8552  1.1  christos int
   8553  1.1  christos main ()
   8554  1.1  christos {
   8555  1.1  christos #ifndef ether_ntohost
   8556  1.1  christos   (void) ether_ntohost;
   8557  1.1  christos #endif
   8558  1.1  christos 
   8559  1.1  christos   ;
   8560  1.1  christos   return 0;
   8561  1.1  christos }
   8562  1.1  christos _ACEOF
   8563  1.1  christos rm -f conftest.$ac_objext
   8564  1.1  christos if { (ac_try="$ac_compile"
   8565  1.1  christos case "(($ac_try" in
   8566  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8567  1.1  christos   *) ac_try_echo=$ac_try;;
   8568  1.1  christos esac
   8569  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8570  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   8571  1.1  christos   ac_status=$?
   8572  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8573  1.1  christos   rm -f conftest.er1
   8574  1.1  christos   cat conftest.err >&5
   8575  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8576  1.1  christos   (exit $ac_status); } && {
   8577  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   8578  1.1  christos 	 test ! -s conftest.err
   8579  1.1  christos        } && test -s conftest.$ac_objext; then
   8580  1.1  christos   ac_cv_have_decl_ether_ntohost=yes
   8581  1.1  christos else
   8582  1.1  christos   echo "$as_me: failed program was:" >&5
   8583  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8584  1.1  christos 
   8585  1.1  christos 	ac_cv_have_decl_ether_ntohost=no
   8586  1.1  christos fi
   8587  1.1  christos 
   8588  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8589  1.1  christos fi
   8590  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
   8591  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
   8592  1.1  christos if test $ac_cv_have_decl_ether_ntohost = yes; then
   8593  1.1  christos 
   8594  1.1  christos 
   8595  1.1  christos cat >>confdefs.h <<\_ACEOF
   8596  1.1  christos #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
   8597  1.1  christos _ACEOF
   8598  1.1  christos 
   8599  1.1  christos 
   8600  1.1  christos fi
   8601  1.1  christos 
   8602  1.1  christos 	fi
   8603  1.1  christos 	#
   8604  1.1  christos 	# Did that succeed?
   8605  1.1  christos 	#
   8606  1.1  christos 	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
   8607  1.1  christos 		#
   8608  1.1  christos 		# No, how about <netinet/ether.h>, as on Linux?
   8609  1.1  christos 		#
   8610  1.1  christos 
   8611  1.1  christos for ac_header in netinet/ether.h
   8612  1.1  christos do
   8613  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8614  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8615  1.1  christos   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   8616  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   8617  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8618  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8619  1.1  christos fi
   8620  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   8621  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8622  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   8623  1.1  christos else
   8624  1.1  christos   # Is the header compilable?
   8625  1.1  christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   8626  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   8627  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   8628  1.1  christos /* confdefs.h.  */
   8629  1.1  christos _ACEOF
   8630  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8631  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8632  1.1  christos /* end confdefs.h.  */
   8633  1.1  christos $ac_includes_default
   8634  1.1  christos #include <$ac_header>
   8635  1.1  christos _ACEOF
   8636  1.1  christos rm -f conftest.$ac_objext
   8637  1.1  christos if { (ac_try="$ac_compile"
   8638  1.1  christos case "(($ac_try" in
   8639  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8640  1.1  christos   *) ac_try_echo=$ac_try;;
   8641  1.1  christos esac
   8642  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8643  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   8644  1.1  christos   ac_status=$?
   8645  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8646  1.1  christos   rm -f conftest.er1
   8647  1.1  christos   cat conftest.err >&5
   8648  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8649  1.1  christos   (exit $ac_status); } && {
   8650  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   8651  1.1  christos 	 test ! -s conftest.err
   8652  1.1  christos        } && test -s conftest.$ac_objext; then
   8653  1.1  christos   ac_header_compiler=yes
   8654  1.1  christos else
   8655  1.1  christos   echo "$as_me: failed program was:" >&5
   8656  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8657  1.1  christos 
   8658  1.1  christos 	ac_header_compiler=no
   8659  1.1  christos fi
   8660  1.1  christos 
   8661  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8662  1.1  christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   8663  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6; }
   8664  1.1  christos 
   8665  1.1  christos # Is the header present?
   8666  1.1  christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   8667  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   8668  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   8669  1.1  christos /* confdefs.h.  */
   8670  1.1  christos _ACEOF
   8671  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8672  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8673  1.1  christos /* end confdefs.h.  */
   8674  1.1  christos #include <$ac_header>
   8675  1.1  christos _ACEOF
   8676  1.1  christos if { (ac_try="$ac_cpp conftest.$ac_ext"
   8677  1.1  christos case "(($ac_try" in
   8678  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8679  1.1  christos   *) ac_try_echo=$ac_try;;
   8680  1.1  christos esac
   8681  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8682  1.1  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   8683  1.1  christos   ac_status=$?
   8684  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8685  1.1  christos   rm -f conftest.er1
   8686  1.1  christos   cat conftest.err >&5
   8687  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8688  1.1  christos   (exit $ac_status); } >/dev/null && {
   8689  1.1  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   8690  1.1  christos 	 test ! -s conftest.err
   8691  1.1  christos        }; then
   8692  1.1  christos   ac_header_preproc=yes
   8693  1.1  christos else
   8694  1.1  christos   echo "$as_me: failed program was:" >&5
   8695  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8696  1.1  christos 
   8697  1.1  christos   ac_header_preproc=no
   8698  1.1  christos fi
   8699  1.1  christos 
   8700  1.1  christos rm -f conftest.err conftest.$ac_ext
   8701  1.1  christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   8702  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6; }
   8703  1.1  christos 
   8704  1.1  christos # So?  What about this header?
   8705  1.1  christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   8706  1.1  christos   yes:no: )
   8707  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   8708  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   8709  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   8710  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   8711  1.1  christos     ac_header_preproc=yes
   8712  1.1  christos     ;;
   8713  1.1  christos   no:yes:* )
   8714  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   8715  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   8716  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   8717  1.1  christos echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   8718  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   8719  1.1  christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   8720  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   8721  1.1  christos echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   8722  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   8723  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   8724  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   8725  1.1  christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   8726  1.1  christos 
   8727  1.1  christos     ;;
   8728  1.1  christos esac
   8729  1.1  christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
   8730  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   8731  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   8732  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8733  1.1  christos else
   8734  1.1  christos   eval "$as_ac_Header=\$ac_header_preproc"
   8735  1.1  christos fi
   8736  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   8737  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8738  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   8739  1.1  christos 
   8740  1.1  christos fi
   8741  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8742  1.1  christos   cat >>confdefs.h <<_ACEOF
   8743  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8744  1.1  christos _ACEOF
   8745  1.1  christos 
   8746  1.1  christos fi
   8747  1.1  christos 
   8748  1.1  christos done
   8749  1.1  christos 
   8750  1.1  christos 		if test "$ac_cv_header_netinet_ether_h" = yes; then
   8751  1.1  christos 			#
   8752  1.1  christos 			# We have it - does it declare ether_ntohost()?
   8753  1.1  christos 			# Unset ac_cv_have_decl_ether_ntohost so we don't
   8754  1.1  christos 			# treat the previous failure as a cached value and
   8755  1.1  christos 			# suppress the next test.
   8756  1.1  christos 			#
   8757  1.1  christos 			unset ac_cv_have_decl_ether_ntohost
   8758  1.1  christos 			{ echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
   8759  1.1  christos echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
   8760  1.1  christos if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
   8761  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8762  1.1  christos else
   8763  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8764  1.1  christos /* confdefs.h.  */
   8765  1.1  christos _ACEOF
   8766  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8767  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8768  1.1  christos /* end confdefs.h.  */
   8769  1.1  christos 
   8770  1.1  christos #include <netinet/ether.h>
   8771  1.1  christos 
   8772  1.1  christos 
   8773  1.1  christos int
   8774  1.1  christos main ()
   8775  1.1  christos {
   8776  1.1  christos #ifndef ether_ntohost
   8777  1.1  christos   (void) ether_ntohost;
   8778  1.1  christos #endif
   8779  1.1  christos 
   8780  1.1  christos   ;
   8781  1.1  christos   return 0;
   8782  1.1  christos }
   8783  1.1  christos _ACEOF
   8784  1.1  christos rm -f conftest.$ac_objext
   8785  1.1  christos if { (ac_try="$ac_compile"
   8786  1.1  christos case "(($ac_try" in
   8787  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8788  1.1  christos   *) ac_try_echo=$ac_try;;
   8789  1.1  christos esac
   8790  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8791  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   8792  1.1  christos   ac_status=$?
   8793  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8794  1.1  christos   rm -f conftest.er1
   8795  1.1  christos   cat conftest.err >&5
   8796  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8797  1.1  christos   (exit $ac_status); } && {
   8798  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   8799  1.1  christos 	 test ! -s conftest.err
   8800  1.1  christos        } && test -s conftest.$ac_objext; then
   8801  1.1  christos   ac_cv_have_decl_ether_ntohost=yes
   8802  1.1  christos else
   8803  1.1  christos   echo "$as_me: failed program was:" >&5
   8804  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8805  1.1  christos 
   8806  1.1  christos 	ac_cv_have_decl_ether_ntohost=no
   8807  1.1  christos fi
   8808  1.1  christos 
   8809  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8810  1.1  christos fi
   8811  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
   8812  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
   8813  1.1  christos if test $ac_cv_have_decl_ether_ntohost = yes; then
   8814  1.1  christos 
   8815  1.1  christos 
   8816  1.1  christos cat >>confdefs.h <<\_ACEOF
   8817  1.1  christos #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
   8818  1.1  christos _ACEOF
   8819  1.1  christos 
   8820  1.1  christos 
   8821  1.1  christos fi
   8822  1.1  christos 
   8823  1.1  christos 		fi
   8824  1.1  christos 	fi
   8825  1.1  christos 	#
   8826  1.1  christos 	# Is ether_ntohost() declared?
   8827  1.1  christos 	#
   8828  1.1  christos 	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
   8829  1.1  christos 		#
   8830  1.1  christos 		# No, we'll have to declare it ourselves.
   8831  1.1  christos 		# Do we have "struct ether_addr"?
   8832  1.1  christos 		#
   8833  1.1  christos 		{ echo "$as_me:$LINENO: checking for struct ether_addr" >&5
   8834  1.1  christos echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
   8835  1.1  christos if test "${ac_cv_type_struct_ether_addr+set}" = set; then
   8836  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8837  1.1  christos else
   8838  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8839  1.1  christos /* confdefs.h.  */
   8840  1.1  christos _ACEOF
   8841  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8842  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8843  1.1  christos /* end confdefs.h.  */
   8844  1.1  christos 
   8845  1.3  christos #include <sys/types.h>
   8846  1.3  christos #include <sys/socket.h>
   8847  1.3  christos #include <netinet/in.h>
   8848  1.3  christos #include <arpa/inet.h>
   8849  1.3  christos struct mbuf;
   8850  1.3  christos struct rtentry;
   8851  1.3  christos #include <net/if.h>
   8852  1.3  christos #include <netinet/if_ether.h>
   8853  1.1  christos 
   8854  1.1  christos 
   8855  1.3  christos typedef struct ether_addr ac__type_new_;
   8856  1.1  christos int
   8857  1.1  christos main ()
   8858  1.1  christos {
   8859  1.3  christos if ((ac__type_new_ *) 0)
   8860  1.3  christos   return 0;
   8861  1.3  christos if (sizeof (ac__type_new_))
   8862  1.3  christos   return 0;
   8863  1.1  christos   ;
   8864  1.1  christos   return 0;
   8865  1.1  christos }
   8866  1.1  christos _ACEOF
   8867  1.3  christos rm -f conftest.$ac_objext
   8868  1.3  christos if { (ac_try="$ac_compile"
   8869  1.1  christos case "(($ac_try" in
   8870  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8871  1.1  christos   *) ac_try_echo=$ac_try;;
   8872  1.1  christos esac
   8873  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8874  1.3  christos   (eval "$ac_compile") 2>conftest.er1
   8875  1.1  christos   ac_status=$?
   8876  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8877  1.1  christos   rm -f conftest.er1
   8878  1.1  christos   cat conftest.err >&5
   8879  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8880  1.1  christos   (exit $ac_status); } && {
   8881  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   8882  1.1  christos 	 test ! -s conftest.err
   8883  1.3  christos        } && test -s conftest.$ac_objext; then
   8884  1.3  christos   ac_cv_type_struct_ether_addr=yes
   8885  1.1  christos else
   8886  1.1  christos   echo "$as_me: failed program was:" >&5
   8887  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8888  1.1  christos 
   8889  1.3  christos 	ac_cv_type_struct_ether_addr=no
   8890  1.1  christos fi
   8891  1.1  christos 
   8892  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8893  1.1  christos fi
   8894  1.3  christos { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
   8895  1.3  christos echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
   8896  1.3  christos if test $ac_cv_type_struct_ether_addr = yes; then
   8897  1.3  christos 
   8898  1.3  christos cat >>confdefs.h <<_ACEOF
   8899  1.3  christos #define HAVE_STRUCT_ETHER_ADDR 1
   8900  1.1  christos _ACEOF
   8901  1.1  christos 
   8902  1.3  christos 
   8903  1.1  christos fi
   8904  1.1  christos 
   8905  1.1  christos 
   8906  1.3  christos cat >>confdefs.h <<\_ACEOF
   8907  1.3  christos #define HAVE_DECL_ETHER_NTOHOST 0
   8908  1.3  christos _ACEOF
   8909  1.3  christos 
   8910  1.3  christos 	else
   8911  1.1  christos 
   8912  1.3  christos cat >>confdefs.h <<\_ACEOF
   8913  1.3  christos #define HAVE_DECL_ETHER_NTOHOST 1
   8914  1.3  christos _ACEOF
   8915  1.1  christos 
   8916  1.3  christos 	fi
   8917  1.3  christos fi
   8918  1.1  christos 
   8919  1.3  christos # libdlpi is needed for Solaris 11 and later.
   8920  1.3  christos { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
   8921  1.3  christos echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
   8922  1.3  christos if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
   8923  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8924  1.1  christos else
   8925  1.3  christos   ac_check_lib_save_LIBS=$LIBS
   8926  1.3  christos LIBS="-ldlpi -L/lib $LIBS"
   8927  1.3  christos cat >conftest.$ac_ext <<_ACEOF
   8928  1.1  christos /* confdefs.h.  */
   8929  1.1  christos _ACEOF
   8930  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8931  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8932  1.1  christos /* end confdefs.h.  */
   8933  1.1  christos 
   8934  1.1  christos /* Override any GCC internal prototype to avoid an error.
   8935  1.1  christos    Use char because int might match the return type of a GCC
   8936  1.1  christos    builtin and then its argument prototype would still apply.  */
   8937  1.1  christos #ifdef __cplusplus
   8938  1.1  christos extern "C"
   8939  1.1  christos #endif
   8940  1.3  christos char dlpi_walk ();
   8941  1.1  christos int
   8942  1.1  christos main ()
   8943  1.1  christos {
   8944  1.3  christos return dlpi_walk ();
   8945  1.1  christos   ;
   8946  1.1  christos   return 0;
   8947  1.1  christos }
   8948  1.1  christos _ACEOF
   8949  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8950  1.1  christos if { (ac_try="$ac_link"
   8951  1.1  christos case "(($ac_try" in
   8952  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8953  1.1  christos   *) ac_try_echo=$ac_try;;
   8954  1.1  christos esac
   8955  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8956  1.1  christos   (eval "$ac_link") 2>conftest.er1
   8957  1.1  christos   ac_status=$?
   8958  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8959  1.1  christos   rm -f conftest.er1
   8960  1.1  christos   cat conftest.err >&5
   8961  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8962  1.1  christos   (exit $ac_status); } && {
   8963  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   8964  1.1  christos 	 test ! -s conftest.err
   8965  1.1  christos        } && test -s conftest$ac_exeext &&
   8966  1.1  christos        $as_test_x conftest$ac_exeext; then
   8967  1.3  christos   ac_cv_lib_dlpi_dlpi_walk=yes
   8968  1.1  christos else
   8969  1.1  christos   echo "$as_me: failed program was:" >&5
   8970  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8971  1.1  christos 
   8972  1.3  christos 	ac_cv_lib_dlpi_dlpi_walk=no
   8973  1.1  christos fi
   8974  1.1  christos 
   8975  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8976  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   8977  1.3  christos LIBS=$ac_check_lib_save_LIBS
   8978  1.3  christos fi
   8979  1.3  christos { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
   8980  1.3  christos echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
   8981  1.3  christos if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
   8982  1.3  christos   LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
   8983  1.1  christos fi
   8984  1.1  christos 
   8985  1.1  christos 
   8986  1.3  christos 
   8987  1.3  christos 	{ echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
   8988  1.3  christos echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
   8989  1.3  christos 	if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
   8990  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8991  1.1  christos else
   8992  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8993  1.1  christos /* confdefs.h.  */
   8994  1.1  christos _ACEOF
   8995  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8996  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8997  1.1  christos /* end confdefs.h.  */
   8998  1.1  christos 
   8999  1.3  christos #		include <sys/types.h>
   9000  1.3  christos #		include <sys/socket.h>
   9001  1.1  christos int
   9002  1.1  christos main ()
   9003  1.1  christos {
   9004  1.3  christos u_int i = sizeof(((struct sockaddr *)0)->sa_len)
   9005  1.1  christos   ;
   9006  1.1  christos   return 0;
   9007  1.1  christos }
   9008  1.1  christos _ACEOF
   9009  1.1  christos rm -f conftest.$ac_objext
   9010  1.1  christos if { (ac_try="$ac_compile"
   9011  1.1  christos case "(($ac_try" in
   9012  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9013  1.1  christos   *) ac_try_echo=$ac_try;;
   9014  1.1  christos esac
   9015  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9016  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   9017  1.1  christos   ac_status=$?
   9018  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9019  1.1  christos   rm -f conftest.er1
   9020  1.1  christos   cat conftest.err >&5
   9021  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9022  1.1  christos   (exit $ac_status); } && {
   9023  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   9024  1.1  christos 	 test ! -s conftest.err
   9025  1.1  christos        } && test -s conftest.$ac_objext; then
   9026  1.3  christos   ac_cv_sockaddr_has_sa_len=yes
   9027  1.1  christos else
   9028  1.1  christos   echo "$as_me: failed program was:" >&5
   9029  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9030  1.1  christos 
   9031  1.3  christos 	ac_cv_sockaddr_has_sa_len=no
   9032  1.1  christos fi
   9033  1.1  christos 
   9034  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9035  1.1  christos fi
   9036  1.1  christos 
   9037  1.3  christos 	{ echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
   9038  1.3  christos echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
   9039  1.3  christos 		if test $ac_cv_sockaddr_has_sa_len = yes ; then
   9040  1.3  christos 			cat >>confdefs.h <<\_ACEOF
   9041  1.3  christos #define HAVE_SOCKADDR_SA_LEN 1
   9042  1.1  christos _ACEOF
   9043  1.1  christos 
   9044  1.3  christos 	fi
   9045  1.1  christos 
   9046  1.3  christos if test "$ac_cv_sockaddr_has_sa_len" = no; then
   9047  1.3  christos 	missing_includes=yes
   9048  1.1  christos fi
   9049  1.1  christos 
   9050  1.3  christos #
   9051  1.3  christos # Do we have the new open API?  Check for pcap_create, and assume that,
   9052  1.3  christos # if we do, we also have pcap_activate() and the other new routines
   9053  1.3  christos # introduced in libpcap 1.0.0.
   9054  1.3  christos #
   9055  1.1  christos 
   9056  1.3  christos for ac_func in pcap_create
   9057  1.3  christos do
   9058  1.3  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9059  1.3  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   9060  1.3  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   9061  1.3  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   9062  1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9063  1.3  christos else
   9064  1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   9065  1.1  christos /* confdefs.h.  */
   9066  1.1  christos _ACEOF
   9067  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9068  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9069  1.1  christos /* end confdefs.h.  */
   9070  1.3  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9071  1.3  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9072  1.3  christos #define $ac_func innocuous_$ac_func
   9073  1.1  christos 
   9074  1.3  christos /* System header to define __stub macros and hopefully few prototypes,
   9075  1.3  christos     which can conflict with char $ac_func (); below.
   9076  1.3  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9077  1.3  christos     <limits.h> exists even on freestanding compilers.  */
   9078  1.1  christos 
   9079  1.3  christos #ifdef __STDC__
   9080  1.3  christos # include <limits.h>
   9081  1.3  christos #else
   9082  1.3  christos # include <assert.h>
   9083  1.3  christos #endif
   9084  1.1  christos 
   9085  1.3  christos #undef $ac_func
   9086  1.1  christos 
   9087  1.3  christos /* Override any GCC internal prototype to avoid an error.
   9088  1.3  christos    Use char because int might match the return type of a GCC
   9089  1.3  christos    builtin and then its argument prototype would still apply.  */
   9090  1.3  christos #ifdef __cplusplus
   9091  1.3  christos extern "C"
   9092  1.3  christos #endif
   9093  1.3  christos char $ac_func ();
   9094  1.3  christos /* The GNU C library defines this for functions which it implements
   9095  1.3  christos     to always fail with ENOSYS.  Some functions are actually named
   9096  1.3  christos     something starting with __ and the normal name is an alias.  */
   9097  1.3  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   9098  1.3  christos choke me
   9099  1.3  christos #endif
   9100  1.1  christos 
   9101  1.1  christos int
   9102  1.1  christos main ()
   9103  1.1  christos {
   9104  1.3  christos return $ac_func ();
   9105  1.1  christos   ;
   9106  1.1  christos   return 0;
   9107  1.1  christos }
   9108  1.1  christos _ACEOF
   9109  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9110  1.1  christos if { (ac_try="$ac_link"
   9111  1.1  christos case "(($ac_try" in
   9112  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9113  1.1  christos   *) ac_try_echo=$ac_try;;
   9114  1.1  christos esac
   9115  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9116  1.1  christos   (eval "$ac_link") 2>conftest.er1
   9117  1.1  christos   ac_status=$?
   9118  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9119  1.1  christos   rm -f conftest.er1
   9120  1.1  christos   cat conftest.err >&5
   9121  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9122  1.1  christos   (exit $ac_status); } && {
   9123  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   9124  1.1  christos 	 test ! -s conftest.err
   9125  1.1  christos        } && test -s conftest$ac_exeext &&
   9126  1.1  christos        $as_test_x conftest$ac_exeext; then
   9127  1.3  christos   eval "$as_ac_var=yes"
   9128  1.1  christos else
   9129  1.1  christos   echo "$as_me: failed program was:" >&5
   9130  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9131  1.1  christos 
   9132  1.3  christos 	eval "$as_ac_var=no"
   9133  1.1  christos fi
   9134  1.1  christos 
   9135  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9136  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   9137  1.3  christos fi
   9138  1.3  christos ac_res=`eval echo '${'$as_ac_var'}'`
   9139  1.3  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   9140  1.3  christos echo "${ECHO_T}$ac_res" >&6; }
   9141  1.3  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   9142  1.3  christos   cat >>confdefs.h <<_ACEOF
   9143  1.3  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9144  1.1  christos _ACEOF
   9145  1.1  christos 
   9146  1.3  christos fi
   9147  1.3  christos done
   9148  1.3  christos 
   9149  1.3  christos if test $ac_cv_func_pcap_create = "yes" ; then
   9150  1.1  christos 	#
   9151  1.3  christos 	# OK, do we have pcap_set_tstamp_type?  If so, assume we have
   9152  1.3  christos 	# pcap_list_tstamp_types and pcap_free_tstamp_types as well.
   9153  1.1  christos 	#
   9154  1.3  christos 
   9155  1.3  christos for ac_func in pcap_set_tstamp_type
   9156  1.3  christos do
   9157  1.3  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9158  1.3  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   9159  1.3  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   9160  1.3  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   9161  1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9162  1.3  christos else
   9163  1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   9164  1.1  christos /* confdefs.h.  */
   9165  1.1  christos _ACEOF
   9166  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9167  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9168  1.1  christos /* end confdefs.h.  */
   9169  1.3  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9170  1.3  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9171  1.3  christos #define $ac_func innocuous_$ac_func
   9172  1.3  christos 
   9173  1.3  christos /* System header to define __stub macros and hopefully few prototypes,
   9174  1.3  christos     which can conflict with char $ac_func (); below.
   9175  1.3  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9176  1.3  christos     <limits.h> exists even on freestanding compilers.  */
   9177  1.3  christos 
   9178  1.3  christos #ifdef __STDC__
   9179  1.3  christos # include <limits.h>
   9180  1.3  christos #else
   9181  1.3  christos # include <assert.h>
   9182  1.3  christos #endif
   9183  1.3  christos 
   9184  1.3  christos #undef $ac_func
   9185  1.3  christos 
   9186  1.3  christos /* Override any GCC internal prototype to avoid an error.
   9187  1.3  christos    Use char because int might match the return type of a GCC
   9188  1.3  christos    builtin and then its argument prototype would still apply.  */
   9189  1.3  christos #ifdef __cplusplus
   9190  1.3  christos extern "C"
   9191  1.3  christos #endif
   9192  1.3  christos char $ac_func ();
   9193  1.3  christos /* The GNU C library defines this for functions which it implements
   9194  1.3  christos     to always fail with ENOSYS.  Some functions are actually named
   9195  1.3  christos     something starting with __ and the normal name is an alias.  */
   9196  1.3  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   9197  1.3  christos choke me
   9198  1.3  christos #endif
   9199  1.1  christos 
   9200  1.1  christos int
   9201  1.1  christos main ()
   9202  1.1  christos {
   9203  1.3  christos return $ac_func ();
   9204  1.1  christos   ;
   9205  1.1  christos   return 0;
   9206  1.1  christos }
   9207  1.1  christos _ACEOF
   9208  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9209  1.1  christos if { (ac_try="$ac_link"
   9210  1.1  christos case "(($ac_try" in
   9211  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9212  1.1  christos   *) ac_try_echo=$ac_try;;
   9213  1.1  christos esac
   9214  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9215  1.1  christos   (eval "$ac_link") 2>conftest.er1
   9216  1.1  christos   ac_status=$?
   9217  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9218  1.1  christos   rm -f conftest.er1
   9219  1.1  christos   cat conftest.err >&5
   9220  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9221  1.1  christos   (exit $ac_status); } && {
   9222  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   9223  1.1  christos 	 test ! -s conftest.err
   9224  1.1  christos        } && test -s conftest$ac_exeext &&
   9225  1.1  christos        $as_test_x conftest$ac_exeext; then
   9226  1.3  christos   eval "$as_ac_var=yes"
   9227  1.1  christos else
   9228  1.1  christos   echo "$as_me: failed program was:" >&5
   9229  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9230  1.1  christos 
   9231  1.3  christos 	eval "$as_ac_var=no"
   9232  1.1  christos fi
   9233  1.1  christos 
   9234  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9235  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   9236  1.3  christos fi
   9237  1.3  christos ac_res=`eval echo '${'$as_ac_var'}'`
   9238  1.3  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   9239  1.3  christos echo "${ECHO_T}$ac_res" >&6; }
   9240  1.3  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   9241  1.3  christos   cat >>confdefs.h <<_ACEOF
   9242  1.3  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9243  1.1  christos _ACEOF
   9244  1.1  christos 
   9245  1.1  christos fi
   9246  1.3  christos done
   9247  1.3  christos 
   9248  1.3  christos fi
   9249  1.3  christos 
   9250  1.3  christos 
   9251  1.1  christos 
   9252  1.3  christos 
   9253  1.3  christos for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
   9254  1.1  christos do
   9255  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9256  1.1  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   9257  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   9258  1.1  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   9259  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9260  1.1  christos else
   9261  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9262  1.1  christos /* confdefs.h.  */
   9263  1.1  christos _ACEOF
   9264  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9265  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9266  1.1  christos /* end confdefs.h.  */
   9267  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9268  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9269  1.1  christos #define $ac_func innocuous_$ac_func
   9270  1.1  christos 
   9271  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   9272  1.1  christos     which can conflict with char $ac_func (); below.
   9273  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9274  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   9275  1.1  christos 
   9276  1.1  christos #ifdef __STDC__
   9277  1.1  christos # include <limits.h>
   9278  1.1  christos #else
   9279  1.1  christos # include <assert.h>
   9280  1.1  christos #endif
   9281  1.1  christos 
   9282  1.1  christos #undef $ac_func
   9283  1.1  christos 
   9284  1.1  christos /* Override any GCC internal prototype to avoid an error.
   9285  1.1  christos    Use char because int might match the return type of a GCC
   9286  1.1  christos    builtin and then its argument prototype would still apply.  */
   9287  1.1  christos #ifdef __cplusplus
   9288  1.1  christos extern "C"
   9289  1.1  christos #endif
   9290  1.1  christos char $ac_func ();
   9291  1.1  christos /* The GNU C library defines this for functions which it implements
   9292  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   9293  1.1  christos     something starting with __ and the normal name is an alias.  */
   9294  1.1  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   9295  1.1  christos choke me
   9296  1.1  christos #endif
   9297  1.1  christos 
   9298  1.1  christos int
   9299  1.1  christos main ()
   9300  1.1  christos {
   9301  1.1  christos return $ac_func ();
   9302  1.1  christos   ;
   9303  1.1  christos   return 0;
   9304  1.1  christos }
   9305  1.1  christos _ACEOF
   9306  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9307  1.1  christos if { (ac_try="$ac_link"
   9308  1.1  christos case "(($ac_try" in
   9309  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9310  1.1  christos   *) ac_try_echo=$ac_try;;
   9311  1.1  christos esac
   9312  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9313  1.1  christos   (eval "$ac_link") 2>conftest.er1
   9314  1.1  christos   ac_status=$?
   9315  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9316  1.1  christos   rm -f conftest.er1
   9317  1.1  christos   cat conftest.err >&5
   9318  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9319  1.1  christos   (exit $ac_status); } && {
   9320  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   9321  1.1  christos 	 test ! -s conftest.err
   9322  1.1  christos        } && test -s conftest$ac_exeext &&
   9323  1.1  christos        $as_test_x conftest$ac_exeext; then
   9324  1.1  christos   eval "$as_ac_var=yes"
   9325  1.1  christos else
   9326  1.1  christos   echo "$as_me: failed program was:" >&5
   9327  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9328  1.1  christos 
   9329  1.1  christos 	eval "$as_ac_var=no"
   9330  1.1  christos fi
   9331  1.1  christos 
   9332  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9333  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   9334  1.1  christos fi
   9335  1.1  christos ac_res=`eval echo '${'$as_ac_var'}'`
   9336  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   9337  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   9338  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   9339  1.1  christos   cat >>confdefs.h <<_ACEOF
   9340  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9341  1.1  christos _ACEOF
   9342  1.1  christos 
   9343  1.3  christos fi
   9344  1.3  christos done
   9345  1.3  christos 
   9346  1.3  christos if test $ac_cv_func_pcap_findalldevs = "yes" ; then
   9347  1.3  christos     savedcppflags="$CPPFLAGS"
   9348  1.3  christos     CPPFLAGS="$CPPFLAGS $V_INCLS"
   9349  1.3  christos     { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
   9350  1.3  christos echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
   9351  1.3  christos if test "${ac_cv_type_pcap_if_t+set}" = set; then
   9352  1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9353  1.1  christos else
   9354  1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   9355  1.3  christos /* confdefs.h.  */
   9356  1.3  christos _ACEOF
   9357  1.3  christos cat confdefs.h >>conftest.$ac_ext
   9358  1.3  christos cat >>conftest.$ac_ext <<_ACEOF
   9359  1.3  christos /* end confdefs.h.  */
   9360  1.3  christos #include <pcap.h>
   9361  1.3  christos 
   9362  1.3  christos typedef pcap_if_t ac__type_new_;
   9363  1.3  christos int
   9364  1.3  christos main ()
   9365  1.3  christos {
   9366  1.3  christos if ((ac__type_new_ *) 0)
   9367  1.3  christos   return 0;
   9368  1.3  christos if (sizeof (ac__type_new_))
   9369  1.3  christos   return 0;
   9370  1.3  christos   ;
   9371  1.3  christos   return 0;
   9372  1.3  christos }
   9373  1.3  christos _ACEOF
   9374  1.3  christos rm -f conftest.$ac_objext
   9375  1.3  christos if { (ac_try="$ac_compile"
   9376  1.3  christos case "(($ac_try" in
   9377  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9378  1.3  christos   *) ac_try_echo=$ac_try;;
   9379  1.1  christos esac
   9380  1.3  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9381  1.3  christos   (eval "$ac_compile") 2>conftest.er1
   9382  1.3  christos   ac_status=$?
   9383  1.3  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9384  1.3  christos   rm -f conftest.er1
   9385  1.3  christos   cat conftest.err >&5
   9386  1.3  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9387  1.3  christos   (exit $ac_status); } && {
   9388  1.3  christos 	 test -z "$ac_c_werror_flag" ||
   9389  1.3  christos 	 test ! -s conftest.err
   9390  1.3  christos        } && test -s conftest.$ac_objext; then
   9391  1.3  christos   ac_cv_type_pcap_if_t=yes
   9392  1.3  christos else
   9393  1.3  christos   echo "$as_me: failed program was:" >&5
   9394  1.3  christos sed 's/^/| /' conftest.$ac_ext >&5
   9395  1.1  christos 
   9396  1.3  christos 	ac_cv_type_pcap_if_t=no
   9397  1.1  christos fi
   9398  1.1  christos 
   9399  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9400  1.1  christos fi
   9401  1.3  christos { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
   9402  1.3  christos echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
   9403  1.3  christos if test $ac_cv_type_pcap_if_t = yes; then
   9404  1.1  christos 
   9405  1.3  christos cat >>confdefs.h <<_ACEOF
   9406  1.3  christos #define HAVE_PCAP_IF_T 1
   9407  1.1  christos _ACEOF
   9408  1.1  christos 
   9409  1.1  christos 
   9410  1.3  christos fi
   9411  1.1  christos 
   9412  1.3  christos     CPPFLAGS="$savedcppflags"
   9413  1.1  christos fi
   9414  1.1  christos 
   9415  1.3  christos if test $ac_cv_func_pcap_lib_version = "no" ; then
   9416  1.3  christos     { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
   9417  1.3  christos echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
   9418  1.3  christos     cat >conftest.$ac_ext <<_ACEOF
   9419  1.1  christos /* confdefs.h.  */
   9420  1.1  christos _ACEOF
   9421  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9422  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9423  1.1  christos /* end confdefs.h.  */
   9424  1.3  christos 
   9425  1.3  christos int
   9426  1.3  christos main ()
   9427  1.3  christos {
   9428  1.3  christos 
   9429  1.3  christos 	extern char pcap_version[];
   9430  1.3  christos 
   9431  1.3  christos 	return (int)pcap_version;
   9432  1.3  christos 
   9433  1.3  christos   ;
   9434  1.3  christos   return 0;
   9435  1.3  christos }
   9436  1.1  christos _ACEOF
   9437  1.3  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9438  1.3  christos if { (ac_try="$ac_link"
   9439  1.1  christos case "(($ac_try" in
   9440  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9441  1.1  christos   *) ac_try_echo=$ac_try;;
   9442  1.1  christos esac
   9443  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9444  1.3  christos   (eval "$ac_link") 2>conftest.er1
   9445  1.1  christos   ac_status=$?
   9446  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9447  1.1  christos   rm -f conftest.er1
   9448  1.1  christos   cat conftest.err >&5
   9449  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9450  1.1  christos   (exit $ac_status); } && {
   9451  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   9452  1.1  christos 	 test ! -s conftest.err
   9453  1.3  christos        } && test -s conftest$ac_exeext &&
   9454  1.3  christos        $as_test_x conftest$ac_exeext; then
   9455  1.3  christos   ac_lbl_cv_pcap_version_defined=yes
   9456  1.1  christos else
   9457  1.1  christos   echo "$as_me: failed program was:" >&5
   9458  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9459  1.1  christos 
   9460  1.3  christos 	ac_lbl_cv_pcap_version_defined=no
   9461  1.1  christos fi
   9462  1.1  christos 
   9463  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9464  1.3  christos       conftest$ac_exeext conftest.$ac_ext
   9465  1.3  christos     if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
   9466  1.3  christos     	{ echo "$as_me:$LINENO: result: yes" >&5
   9467  1.3  christos echo "${ECHO_T}yes" >&6; }
   9468  1.3  christos 	cat >>confdefs.h <<\_ACEOF
   9469  1.3  christos #define HAVE_PCAP_VERSION 1
   9470  1.3  christos _ACEOF
   9471  1.1  christos 
   9472  1.3  christos     else
   9473  1.3  christos 	{ echo "$as_me:$LINENO: result: no" >&5
   9474  1.3  christos echo "${ECHO_T}no" >&6; }
   9475  1.3  christos     fi
   9476  1.3  christos fi
   9477  1.3  christos { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
   9478  1.3  christos echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
   9479  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   9480  1.1  christos /* confdefs.h.  */
   9481  1.1  christos _ACEOF
   9482  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9483  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9484  1.1  christos /* end confdefs.h.  */
   9485  1.3  christos 
   9486  1.3  christos int
   9487  1.3  christos main ()
   9488  1.3  christos {
   9489  1.3  christos 
   9490  1.3  christos 	extern int pcap_debug;
   9491  1.3  christos 
   9492  1.3  christos 	return pcap_debug;
   9493  1.3  christos 
   9494  1.3  christos   ;
   9495  1.3  christos   return 0;
   9496  1.3  christos }
   9497  1.1  christos _ACEOF
   9498  1.3  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9499  1.3  christos if { (ac_try="$ac_link"
   9500  1.1  christos case "(($ac_try" in
   9501  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9502  1.1  christos   *) ac_try_echo=$ac_try;;
   9503  1.1  christos esac
   9504  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9505  1.3  christos   (eval "$ac_link") 2>conftest.er1
   9506  1.1  christos   ac_status=$?
   9507  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9508  1.1  christos   rm -f conftest.er1
   9509  1.1  christos   cat conftest.err >&5
   9510  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9511  1.3  christos   (exit $ac_status); } && {
   9512  1.3  christos 	 test -z "$ac_c_werror_flag" ||
   9513  1.1  christos 	 test ! -s conftest.err
   9514  1.3  christos        } && test -s conftest$ac_exeext &&
   9515  1.3  christos        $as_test_x conftest$ac_exeext; then
   9516  1.3  christos   ac_lbl_cv_pcap_debug_defined=yes
   9517  1.1  christos else
   9518  1.1  christos   echo "$as_me: failed program was:" >&5
   9519  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9520  1.1  christos 
   9521  1.3  christos 	ac_lbl_cv_pcap_debug_defined=no
   9522  1.1  christos fi
   9523  1.1  christos 
   9524  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9525  1.3  christos       conftest$ac_exeext conftest.$ac_ext
   9526  1.3  christos if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
   9527  1.3  christos 	{ echo "$as_me:$LINENO: result: yes" >&5
   9528  1.3  christos echo "${ECHO_T}yes" >&6; }
   9529  1.3  christos 	cat >>confdefs.h <<\_ACEOF
   9530  1.3  christos #define HAVE_PCAP_DEBUG 1
   9531  1.1  christos _ACEOF
   9532  1.1  christos 
   9533  1.1  christos else
   9534  1.3  christos 	{ echo "$as_me:$LINENO: result: no" >&5
   9535  1.3  christos echo "${ECHO_T}no" >&6; }
   9536  1.3  christos 	#
   9537  1.3  christos 	# OK, what about "yydebug"?
   9538  1.3  christos 	#
   9539  1.3  christos 	{ echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
   9540  1.3  christos echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
   9541  1.3  christos 	cat >conftest.$ac_ext <<_ACEOF
   9542  1.1  christos /* confdefs.h.  */
   9543  1.1  christos _ACEOF
   9544  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9545  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9546  1.1  christos /* end confdefs.h.  */
   9547  1.3  christos 
   9548  1.3  christos int
   9549  1.3  christos main ()
   9550  1.3  christos {
   9551  1.3  christos 
   9552  1.3  christos 		extern int yydebug;
   9553  1.3  christos 
   9554  1.3  christos 		return yydebug;
   9555  1.3  christos 
   9556  1.3  christos   ;
   9557  1.3  christos   return 0;
   9558  1.3  christos }
   9559  1.1  christos _ACEOF
   9560  1.3  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9561  1.3  christos if { (ac_try="$ac_link"
   9562  1.1  christos case "(($ac_try" in
   9563  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9564  1.1  christos   *) ac_try_echo=$ac_try;;
   9565  1.1  christos esac
   9566  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9567  1.3  christos   (eval "$ac_link") 2>conftest.er1
   9568  1.1  christos   ac_status=$?
   9569  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9570  1.1  christos   rm -f conftest.er1
   9571  1.1  christos   cat conftest.err >&5
   9572  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9573  1.1  christos   (exit $ac_status); } && {
   9574  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   9575  1.1  christos 	 test ! -s conftest.err
   9576  1.3  christos        } && test -s conftest$ac_exeext &&
   9577  1.3  christos        $as_test_x conftest$ac_exeext; then
   9578  1.3  christos   ac_lbl_cv_yydebug_defined=yes
   9579  1.1  christos else
   9580  1.1  christos   echo "$as_me: failed program was:" >&5
   9581  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9582  1.1  christos 
   9583  1.3  christos 	ac_lbl_cv_yydebug_defined=no
   9584  1.1  christos fi
   9585  1.1  christos 
   9586  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9587  1.3  christos       conftest$ac_exeext conftest.$ac_ext
   9588  1.3  christos 	if test "$ac_lbl_cv_yydebug_defined" = yes ; then
   9589  1.3  christos 		{ echo "$as_me:$LINENO: result: yes" >&5
   9590  1.3  christos echo "${ECHO_T}yes" >&6; }
   9591  1.3  christos 		cat >>confdefs.h <<\_ACEOF
   9592  1.3  christos #define HAVE_YYDEBUG 1
   9593  1.3  christos _ACEOF
   9594  1.3  christos 
   9595  1.3  christos 	else
   9596  1.3  christos 		{ echo "$as_me:$LINENO: result: no" >&5
   9597  1.3  christos echo "${ECHO_T}no" >&6; }
   9598  1.3  christos 	fi
   9599  1.3  christos fi
   9600  1.1  christos 
   9601  1.3  christos for ac_func in bpf_dump
   9602  1.3  christos do
   9603  1.3  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9604  1.3  christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
   9605  1.3  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   9606  1.3  christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   9607  1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9608  1.3  christos else
   9609  1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   9610  1.1  christos /* confdefs.h.  */
   9611  1.1  christos _ACEOF
   9612  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9613  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9614  1.1  christos /* end confdefs.h.  */
   9615  1.3  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9616  1.3  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9617  1.3  christos #define $ac_func innocuous_$ac_func
   9618  1.3  christos 
   9619  1.3  christos /* System header to define __stub macros and hopefully few prototypes,
   9620  1.3  christos     which can conflict with char $ac_func (); below.
   9621  1.3  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9622  1.3  christos     <limits.h> exists even on freestanding compilers.  */
   9623  1.3  christos 
   9624  1.3  christos #ifdef __STDC__
   9625  1.3  christos # include <limits.h>
   9626  1.3  christos #else
   9627  1.3  christos # include <assert.h>
   9628  1.3  christos #endif
   9629  1.3  christos 
   9630  1.3  christos #undef $ac_func
   9631  1.3  christos 
   9632  1.3  christos /* Override any GCC internal prototype to avoid an error.
   9633  1.3  christos    Use char because int might match the return type of a GCC
   9634  1.3  christos    builtin and then its argument prototype would still apply.  */
   9635  1.3  christos #ifdef __cplusplus
   9636  1.3  christos extern "C"
   9637  1.3  christos #endif
   9638  1.3  christos char $ac_func ();
   9639  1.3  christos /* The GNU C library defines this for functions which it implements
   9640  1.3  christos     to always fail with ENOSYS.  Some functions are actually named
   9641  1.3  christos     something starting with __ and the normal name is an alias.  */
   9642  1.3  christos #if defined __stub_$ac_func || defined __stub___$ac_func
   9643  1.3  christos choke me
   9644  1.3  christos #endif
   9645  1.3  christos 
   9646  1.3  christos int
   9647  1.3  christos main ()
   9648  1.3  christos {
   9649  1.3  christos return $ac_func ();
   9650  1.3  christos   ;
   9651  1.3  christos   return 0;
   9652  1.3  christos }
   9653  1.1  christos _ACEOF
   9654  1.3  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9655  1.3  christos if { (ac_try="$ac_link"
   9656  1.1  christos case "(($ac_try" in
   9657  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9658  1.1  christos   *) ac_try_echo=$ac_try;;
   9659  1.1  christos esac
   9660  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9661  1.3  christos   (eval "$ac_link") 2>conftest.er1
   9662  1.1  christos   ac_status=$?
   9663  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9664  1.1  christos   rm -f conftest.er1
   9665  1.1  christos   cat conftest.err >&5
   9666  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9667  1.3  christos   (exit $ac_status); } && {
   9668  1.3  christos 	 test -z "$ac_c_werror_flag" ||
   9669  1.1  christos 	 test ! -s conftest.err
   9670  1.3  christos        } && test -s conftest$ac_exeext &&
   9671  1.3  christos        $as_test_x conftest$ac_exeext; then
   9672  1.3  christos   eval "$as_ac_var=yes"
   9673  1.1  christos else
   9674  1.1  christos   echo "$as_me: failed program was:" >&5
   9675  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9676  1.1  christos 
   9677  1.3  christos 	eval "$as_ac_var=no"
   9678  1.1  christos fi
   9679  1.1  christos 
   9680  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9681  1.3  christos       conftest$ac_exeext conftest.$ac_ext
   9682  1.3  christos fi
   9683  1.3  christos ac_res=`eval echo '${'$as_ac_var'}'`
   9684  1.3  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   9685  1.3  christos echo "${ECHO_T}$ac_res" >&6; }
   9686  1.3  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   9687  1.3  christos   cat >>confdefs.h <<_ACEOF
   9688  1.3  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9689  1.3  christos _ACEOF
   9690  1.1  christos 
   9691  1.3  christos else
   9692  1.3  christos   case " $LIBOBJS " in
   9693  1.3  christos   *" $ac_func.$ac_objext "* ) ;;
   9694  1.3  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
   9695  1.3  christos  ;;
   9696  1.3  christos esac
   9697  1.1  christos 
   9698  1.1  christos fi
   9699  1.3  christos done
   9700  1.3  christos 
   9701  1.1  christos 
   9702  1.3  christos V_GROUP=0
   9703  1.3  christos if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
   9704  1.3  christos 	V_GROUP=wheel
   9705  1.1  christos fi
   9706  1.3  christos #
   9707  1.3  christos # Assume V7/BSD convention for man pages (file formats in section 5,
   9708  1.3  christos # miscellaneous info in section 7).
   9709  1.3  christos #
   9710  1.3  christos MAN_FILE_FORMATS=5
   9711  1.3  christos MAN_MISC_INFO=7
   9712  1.3  christos case "$host_os" in
   9713  1.3  christos 
   9714  1.3  christos aix*)
   9715  1.3  christos 
   9716  1.3  christos cat >>confdefs.h <<\_ACEOF
   9717  1.3  christos #define _SUN 1
   9718  1.1  christos _ACEOF
   9719  1.1  christos 
   9720  1.3  christos 	;;
   9721  1.3  christos 
   9722  1.3  christos hpux*)
   9723  1.3  christos 	#
   9724  1.3  christos 	# Use System V conventions for man pages.
   9725  1.3  christos 	#
   9726  1.3  christos 	MAN_FILE_FORMATS=4
   9727  1.3  christos 	MAN_MISC_INFO=5
   9728  1.3  christos 	;;
   9729  1.3  christos 
   9730  1.3  christos irix*)
   9731  1.3  christos 	V_GROUP=sys
   9732  1.3  christos 
   9733  1.3  christos 	#
   9734  1.3  christos 	# Use System V conventions for man pages.
   9735  1.3  christos 	#
   9736  1.3  christos 	MAN_FILE_FORMATS=4
   9737  1.3  christos 	MAN_MISC_INFO=5
   9738  1.3  christos 	;;
   9739  1.3  christos 
   9740  1.3  christos osf*)
   9741  1.3  christos 	V_GROUP=system
   9742  1.3  christos 
   9743  1.3  christos 	#
   9744  1.3  christos 	# Use System V conventions for man pages.
   9745  1.3  christos 	#
   9746  1.3  christos 	MAN_FILE_FORMATS=4
   9747  1.3  christos 	MAN_MISC_INFO=5
   9748  1.3  christos 	;;
   9749  1.3  christos 
   9750  1.3  christos solaris*)
   9751  1.3  christos 	V_GROUP=sys
   9752  1.1  christos 
   9753  1.3  christos 	#
   9754  1.3  christos 	# Use System V conventions for man pages.
   9755  1.3  christos 	#
   9756  1.3  christos 	MAN_FILE_FORMATS=4
   9757  1.3  christos 	MAN_MISC_INFO=5
   9758  1.3  christos 	;;
   9759  1.3  christos esac
   9760  1.1  christos 
   9761  1.3  christos if test -f /dev/bpf0 ; then
   9762  1.3  christos 	V_GROUP=bpf
   9763  1.3  christos fi
   9764  1.1  christos 
   9765  1.1  christos 
   9766  1.1  christos for ac_header in sys/bitypes.h
   9767  1.1  christos do
   9768  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   9769  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   9770  1.1  christos   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   9771  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   9772  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   9773  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9774  1.1  christos fi
   9775  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   9776  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   9777  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   9778  1.1  christos else
   9779  1.1  christos   # Is the header compilable?
   9780  1.1  christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   9781  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   9782  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   9783  1.1  christos /* confdefs.h.  */
   9784  1.1  christos _ACEOF
   9785  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9786  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9787  1.1  christos /* end confdefs.h.  */
   9788  1.1  christos $ac_includes_default
   9789  1.1  christos #include <$ac_header>
   9790  1.1  christos _ACEOF
   9791  1.1  christos rm -f conftest.$ac_objext
   9792  1.1  christos if { (ac_try="$ac_compile"
   9793  1.1  christos case "(($ac_try" in
   9794  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9795  1.1  christos   *) ac_try_echo=$ac_try;;
   9796  1.1  christos esac
   9797  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9798  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   9799  1.1  christos   ac_status=$?
   9800  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9801  1.1  christos   rm -f conftest.er1
   9802  1.1  christos   cat conftest.err >&5
   9803  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9804  1.1  christos   (exit $ac_status); } && {
   9805  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   9806  1.1  christos 	 test ! -s conftest.err
   9807  1.1  christos        } && test -s conftest.$ac_objext; then
   9808  1.1  christos   ac_header_compiler=yes
   9809  1.1  christos else
   9810  1.1  christos   echo "$as_me: failed program was:" >&5
   9811  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9812  1.1  christos 
   9813  1.1  christos 	ac_header_compiler=no
   9814  1.1  christos fi
   9815  1.1  christos 
   9816  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9817  1.1  christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   9818  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6; }
   9819  1.1  christos 
   9820  1.1  christos # Is the header present?
   9821  1.1  christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   9822  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   9823  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   9824  1.1  christos /* confdefs.h.  */
   9825  1.1  christos _ACEOF
   9826  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9827  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9828  1.1  christos /* end confdefs.h.  */
   9829  1.1  christos #include <$ac_header>
   9830  1.1  christos _ACEOF
   9831  1.1  christos if { (ac_try="$ac_cpp conftest.$ac_ext"
   9832  1.1  christos case "(($ac_try" in
   9833  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9834  1.1  christos   *) ac_try_echo=$ac_try;;
   9835  1.1  christos esac
   9836  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9837  1.1  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   9838  1.1  christos   ac_status=$?
   9839  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9840  1.1  christos   rm -f conftest.er1
   9841  1.1  christos   cat conftest.err >&5
   9842  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9843  1.1  christos   (exit $ac_status); } >/dev/null && {
   9844  1.1  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   9845  1.1  christos 	 test ! -s conftest.err
   9846  1.1  christos        }; then
   9847  1.1  christos   ac_header_preproc=yes
   9848  1.1  christos else
   9849  1.1  christos   echo "$as_me: failed program was:" >&5
   9850  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9851  1.1  christos 
   9852  1.1  christos   ac_header_preproc=no
   9853  1.1  christos fi
   9854  1.1  christos 
   9855  1.1  christos rm -f conftest.err conftest.$ac_ext
   9856  1.1  christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   9857  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6; }
   9858  1.1  christos 
   9859  1.1  christos # So?  What about this header?
   9860  1.1  christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   9861  1.1  christos   yes:no: )
   9862  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   9863  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   9864  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   9865  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   9866  1.1  christos     ac_header_preproc=yes
   9867  1.1  christos     ;;
   9868  1.1  christos   no:yes:* )
   9869  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   9870  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   9871  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   9872  1.1  christos echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   9873  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   9874  1.1  christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   9875  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   9876  1.1  christos echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   9877  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   9878  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   9879  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   9880  1.1  christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   9881  1.1  christos 
   9882  1.1  christos     ;;
   9883  1.1  christos esac
   9884  1.1  christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
   9885  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   9886  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   9887  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9888  1.1  christos else
   9889  1.1  christos   eval "$as_ac_Header=\$ac_header_preproc"
   9890  1.1  christos fi
   9891  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   9892  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   9893  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   9894  1.1  christos 
   9895  1.1  christos fi
   9896  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   9897  1.1  christos   cat >>confdefs.h <<_ACEOF
   9898  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   9899  1.1  christos _ACEOF
   9900  1.1  christos 
   9901  1.1  christos fi
   9902  1.1  christos 
   9903  1.1  christos done
   9904  1.1  christos 
   9905  1.1  christos 
   9906  1.1  christos { echo "$as_me:$LINENO: checking for int8_t" >&5
   9907  1.1  christos echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
   9908  1.1  christos if test "${ac_cv_type_int8_t+set}" = set; then
   9909  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9910  1.1  christos else
   9911  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9912  1.1  christos /* confdefs.h.  */
   9913  1.1  christos _ACEOF
   9914  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9915  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9916  1.1  christos /* end confdefs.h.  */
   9917  1.1  christos $ac_includes_default
   9918  1.1  christos #ifdef HAVE_SYS_BITYPES_H
   9919  1.1  christos #include <sys/bitypes.h>
   9920  1.1  christos #endif
   9921  1.1  christos 
   9922  1.1  christos typedef int8_t ac__type_new_;
   9923  1.1  christos int
   9924  1.1  christos main ()
   9925  1.1  christos {
   9926  1.1  christos if ((ac__type_new_ *) 0)
   9927  1.1  christos   return 0;
   9928  1.1  christos if (sizeof (ac__type_new_))
   9929  1.1  christos   return 0;
   9930  1.1  christos   ;
   9931  1.1  christos   return 0;
   9932  1.1  christos }
   9933  1.1  christos _ACEOF
   9934  1.1  christos rm -f conftest.$ac_objext
   9935  1.1  christos if { (ac_try="$ac_compile"
   9936  1.1  christos case "(($ac_try" in
   9937  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9938  1.1  christos   *) ac_try_echo=$ac_try;;
   9939  1.1  christos esac
   9940  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9941  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   9942  1.1  christos   ac_status=$?
   9943  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9944  1.1  christos   rm -f conftest.er1
   9945  1.1  christos   cat conftest.err >&5
   9946  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9947  1.1  christos   (exit $ac_status); } && {
   9948  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   9949  1.1  christos 	 test ! -s conftest.err
   9950  1.1  christos        } && test -s conftest.$ac_objext; then
   9951  1.1  christos   ac_cv_type_int8_t=yes
   9952  1.1  christos else
   9953  1.1  christos   echo "$as_me: failed program was:" >&5
   9954  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9955  1.1  christos 
   9956  1.1  christos 	ac_cv_type_int8_t=no
   9957  1.1  christos fi
   9958  1.1  christos 
   9959  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9960  1.1  christos fi
   9961  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
   9962  1.1  christos echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
   9963  1.1  christos if test $ac_cv_type_int8_t = yes; then
   9964  1.1  christos   :
   9965  1.1  christos else
   9966  1.1  christos 
   9967  1.1  christos cat >>confdefs.h <<\_ACEOF
   9968  1.1  christos #define int8_t signed char
   9969  1.1  christos _ACEOF
   9970  1.1  christos 
   9971  1.1  christos fi
   9972  1.1  christos 
   9973  1.1  christos { echo "$as_me:$LINENO: checking for u_int8_t" >&5
   9974  1.1  christos echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
   9975  1.1  christos if test "${ac_cv_type_u_int8_t+set}" = set; then
   9976  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9977  1.1  christos else
   9978  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9979  1.1  christos /* confdefs.h.  */
   9980  1.1  christos _ACEOF
   9981  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9982  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9983  1.1  christos /* end confdefs.h.  */
   9984  1.1  christos $ac_includes_default
   9985  1.1  christos #ifdef HAVE_SYS_BITYPES_H
   9986  1.1  christos #include <sys/bitypes.h>
   9987  1.1  christos #endif
   9988  1.1  christos 
   9989  1.1  christos typedef u_int8_t ac__type_new_;
   9990  1.1  christos int
   9991  1.1  christos main ()
   9992  1.1  christos {
   9993  1.1  christos if ((ac__type_new_ *) 0)
   9994  1.1  christos   return 0;
   9995  1.1  christos if (sizeof (ac__type_new_))
   9996  1.1  christos   return 0;
   9997  1.1  christos   ;
   9998  1.1  christos   return 0;
   9999  1.1  christos }
   10000  1.1  christos _ACEOF
   10001  1.1  christos rm -f conftest.$ac_objext
   10002  1.1  christos if { (ac_try="$ac_compile"
   10003  1.1  christos case "(($ac_try" in
   10004  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10005  1.1  christos   *) ac_try_echo=$ac_try;;
   10006  1.1  christos esac
   10007  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10008  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   10009  1.1  christos   ac_status=$?
   10010  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   10011  1.1  christos   rm -f conftest.er1
   10012  1.1  christos   cat conftest.err >&5
   10013  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10014  1.1  christos   (exit $ac_status); } && {
   10015  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   10016  1.1  christos 	 test ! -s conftest.err
   10017  1.1  christos        } && test -s conftest.$ac_objext; then
   10018  1.1  christos   ac_cv_type_u_int8_t=yes
   10019  1.1  christos else
   10020  1.1  christos   echo "$as_me: failed program was:" >&5
   10021  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   10022  1.1  christos 
   10023  1.1  christos 	ac_cv_type_u_int8_t=no
   10024  1.1  christos fi
   10025  1.1  christos 
   10026  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10027  1.1  christos fi
   10028  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
   10029  1.1  christos echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
   10030  1.1  christos if test $ac_cv_type_u_int8_t = yes; then
   10031  1.1  christos   :
   10032  1.1  christos else
   10033  1.1  christos 
   10034  1.1  christos cat >>confdefs.h <<\_ACEOF
   10035  1.1  christos #define u_int8_t unsigned char
   10036  1.1  christos _ACEOF
   10037  1.1  christos 
   10038  1.1  christos fi
   10039  1.1  christos 
   10040  1.1  christos { echo "$as_me:$LINENO: checking for int16_t" >&5
   10041  1.1  christos echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
   10042  1.1  christos if test "${ac_cv_type_int16_t+set}" = set; then
   10043  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10044  1.1  christos else
   10045  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10046  1.1  christos /* confdefs.h.  */
   10047  1.1  christos _ACEOF
   10048  1.1  christos cat confdefs.h >>conftest.$ac_ext
   10049  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   10050  1.1  christos /* end confdefs.h.  */
   10051  1.1  christos $ac_includes_default
   10052  1.1  christos typedef int16_t ac__type_new_;
   10053  1.1  christos int
   10054  1.1  christos main ()
   10055  1.1  christos {
   10056  1.1  christos if ((ac__type_new_ *) 0)
   10057  1.1  christos   return 0;
   10058  1.1  christos if (sizeof (ac__type_new_))
   10059  1.1  christos   return 0;
   10060  1.1  christos   ;
   10061  1.1  christos   return 0;
   10062  1.1  christos }
   10063  1.1  christos _ACEOF
   10064  1.1  christos rm -f conftest.$ac_objext
   10065  1.1  christos if { (ac_try="$ac_compile"
   10066  1.1  christos case "(($ac_try" in
   10067  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10068  1.1  christos   *) ac_try_echo=$ac_try;;
   10069  1.1  christos esac
   10070  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10071  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   10072  1.1  christos   ac_status=$?
   10073  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   10074  1.1  christos   rm -f conftest.er1
   10075  1.1  christos   cat conftest.err >&5
   10076  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10077  1.1  christos   (exit $ac_status); } && {
   10078  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   10079  1.1  christos 	 test ! -s conftest.err
   10080  1.1  christos        } && test -s conftest.$ac_objext; then
   10081  1.1  christos   ac_cv_type_int16_t=yes
   10082  1.1  christos else
   10083  1.1  christos   echo "$as_me: failed program was:" >&5
   10084  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   10085  1.1  christos 
   10086  1.1  christos 	ac_cv_type_int16_t=no
   10087  1.1  christos fi
   10088  1.1  christos 
   10089  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10090  1.1  christos fi
   10091  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
   10092  1.1  christos echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
   10093  1.1  christos if test $ac_cv_type_int16_t = yes; then
   10094  1.1  christos   :
   10095  1.1  christos else
   10096  1.1  christos 
   10097  1.1  christos cat >>confdefs.h <<\_ACEOF
   10098  1.1  christos #define int16_t short
   10099  1.1  christos _ACEOF
   10100  1.1  christos 
   10101  1.1  christos 	$ac_includes_default
   10102  1.1  christos #ifdef HAVE_SYS_BITYPES_H
   10103  1.1  christos #include <sys/bitypes.h>
   10104  1.1  christos #endif
   10105  1.1  christos fi
   10106  1.1  christos 
   10107  1.1  christos { echo "$as_me:$LINENO: checking for u_int16_t" >&5
   10108  1.1  christos echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
   10109  1.1  christos if test "${ac_cv_type_u_int16_t+set}" = set; then
   10110  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10111  1.1  christos else
   10112  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10113  1.1  christos /* confdefs.h.  */
   10114  1.1  christos _ACEOF
   10115  1.1  christos cat confdefs.h >>conftest.$ac_ext
   10116  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   10117  1.1  christos /* end confdefs.h.  */
   10118  1.1  christos $ac_includes_default
   10119  1.1  christos #ifdef HAVE_SYS_BITYPES_H
   10120  1.1  christos #include <sys/bitypes.h>
   10121  1.1  christos #endif
   10122  1.1  christos 
   10123  1.1  christos typedef u_int16_t ac__type_new_;
   10124  1.1  christos int
   10125  1.1  christos main ()
   10126  1.1  christos {
   10127  1.1  christos if ((ac__type_new_ *) 0)
   10128  1.1  christos   return 0;
   10129  1.1  christos if (sizeof (ac__type_new_))
   10130  1.1  christos   return 0;
   10131  1.1  christos   ;
   10132  1.1  christos   return 0;
   10133  1.1  christos }
   10134  1.1  christos _ACEOF
   10135  1.1  christos rm -f conftest.$ac_objext
   10136  1.1  christos if { (ac_try="$ac_compile"
   10137  1.1  christos case "(($ac_try" in
   10138  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10139  1.1  christos   *) ac_try_echo=$ac_try;;
   10140  1.1  christos esac
   10141  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10142  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   10143  1.1  christos   ac_status=$?
   10144  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   10145  1.1  christos   rm -f conftest.er1
   10146  1.1  christos   cat conftest.err >&5
   10147  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10148  1.1  christos   (exit $ac_status); } && {
   10149  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   10150  1.1  christos 	 test ! -s conftest.err
   10151  1.1  christos        } && test -s conftest.$ac_objext; then
   10152  1.1  christos   ac_cv_type_u_int16_t=yes
   10153  1.1  christos else
   10154  1.1  christos   echo "$as_me: failed program was:" >&5
   10155  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   10156  1.1  christos 
   10157  1.1  christos 	ac_cv_type_u_int16_t=no
   10158  1.1  christos fi
   10159  1.1  christos 
   10160  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10161  1.1  christos fi
   10162  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
   10163  1.1  christos echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
   10164  1.1  christos if test $ac_cv_type_u_int16_t = yes; then
   10165  1.1  christos   :
   10166  1.1  christos else
   10167  1.1  christos 
   10168  1.1  christos cat >>confdefs.h <<\_ACEOF
   10169  1.1  christos #define u_int16_t unsigned short
   10170  1.1  christos _ACEOF
   10171  1.1  christos 
   10172  1.1  christos fi
   10173  1.1  christos 
   10174  1.1  christos { echo "$as_me:$LINENO: checking for int32_t" >&5
   10175  1.1  christos echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
   10176  1.1  christos if test "${ac_cv_type_int32_t+set}" = set; then
   10177  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10178  1.1  christos else
   10179  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10180  1.1  christos /* confdefs.h.  */
   10181  1.1  christos _ACEOF
   10182  1.1  christos cat confdefs.h >>conftest.$ac_ext
   10183  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   10184  1.1  christos /* end confdefs.h.  */
   10185  1.1  christos $ac_includes_default
   10186  1.1  christos #ifdef HAVE_SYS_BITYPES_H
   10187  1.1  christos #include <sys/bitypes.h>
   10188  1.1  christos #endif
   10189  1.1  christos 
   10190  1.1  christos typedef int32_t ac__type_new_;
   10191  1.1  christos int
   10192  1.1  christos main ()
   10193  1.1  christos {
   10194  1.1  christos if ((ac__type_new_ *) 0)
   10195  1.1  christos   return 0;
   10196  1.1  christos if (sizeof (ac__type_new_))
   10197  1.1  christos   return 0;
   10198  1.1  christos   ;
   10199  1.1  christos   return 0;
   10200  1.1  christos }
   10201  1.1  christos _ACEOF
   10202  1.1  christos rm -f conftest.$ac_objext
   10203  1.1  christos if { (ac_try="$ac_compile"
   10204  1.1  christos case "(($ac_try" in
   10205  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10206  1.1  christos   *) ac_try_echo=$ac_try;;
   10207  1.1  christos esac
   10208  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10209  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   10210  1.1  christos   ac_status=$?
   10211  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   10212  1.1  christos   rm -f conftest.er1
   10213  1.1  christos   cat conftest.err >&5
   10214  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10215  1.1  christos   (exit $ac_status); } && {
   10216  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   10217  1.1  christos 	 test ! -s conftest.err
   10218  1.1  christos        } && test -s conftest.$ac_objext; then
   10219  1.1  christos   ac_cv_type_int32_t=yes
   10220  1.1  christos else
   10221  1.1  christos   echo "$as_me: failed program was:" >&5
   10222  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   10223  1.1  christos 
   10224  1.1  christos 	ac_cv_type_int32_t=no
   10225  1.1  christos fi
   10226  1.1  christos 
   10227  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10228  1.1  christos fi
   10229  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
   10230  1.1  christos echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
   10231  1.1  christos if test $ac_cv_type_int32_t = yes; then
   10232  1.1  christos   :
   10233  1.1  christos else
   10234  1.1  christos 
   10235  1.1  christos cat >>confdefs.h <<\_ACEOF
   10236  1.1  christos #define int32_t int
   10237  1.1  christos _ACEOF
   10238  1.1  christos 
   10239  1.1  christos fi
   10240  1.1  christos 
   10241  1.1  christos { echo "$as_me:$LINENO: checking for u_int32_t" >&5
   10242  1.1  christos echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
   10243  1.1  christos if test "${ac_cv_type_u_int32_t+set}" = set; then
   10244  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10245  1.1  christos else
   10246  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10247  1.1  christos /* confdefs.h.  */
   10248  1.1  christos _ACEOF
   10249  1.1  christos cat confdefs.h >>conftest.$ac_ext
   10250  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   10251  1.1  christos /* end confdefs.h.  */
   10252  1.1  christos $ac_includes_default
   10253  1.1  christos #ifdef HAVE_SYS_BITYPES_H
   10254  1.1  christos #include <sys/bitypes.h>
   10255  1.1  christos #endif
   10256  1.1  christos 
   10257  1.1  christos typedef u_int32_t ac__type_new_;
   10258  1.1  christos int
   10259  1.1  christos main ()
   10260  1.1  christos {
   10261  1.1  christos if ((ac__type_new_ *) 0)
   10262  1.1  christos   return 0;
   10263  1.1  christos if (sizeof (ac__type_new_))
   10264  1.1  christos   return 0;
   10265  1.1  christos   ;
   10266  1.1  christos   return 0;
   10267  1.1  christos }
   10268  1.1  christos _ACEOF
   10269  1.1  christos rm -f conftest.$ac_objext
   10270  1.1  christos if { (ac_try="$ac_compile"
   10271  1.1  christos case "(($ac_try" in
   10272  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10273  1.1  christos   *) ac_try_echo=$ac_try;;
   10274  1.1  christos esac
   10275  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10276  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   10277  1.1  christos   ac_status=$?
   10278  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   10279  1.1  christos   rm -f conftest.er1
   10280  1.1  christos   cat conftest.err >&5
   10281  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10282  1.1  christos   (exit $ac_status); } && {
   10283  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   10284  1.1  christos 	 test ! -s conftest.err
   10285  1.1  christos        } && test -s conftest.$ac_objext; then
   10286  1.1  christos   ac_cv_type_u_int32_t=yes
   10287  1.1  christos else
   10288  1.1  christos   echo "$as_me: failed program was:" >&5
   10289  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   10290  1.1  christos 
   10291  1.1  christos 	ac_cv_type_u_int32_t=no
   10292  1.1  christos fi
   10293  1.1  christos 
   10294  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10295  1.1  christos fi
   10296  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
   10297  1.1  christos echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
   10298  1.1  christos if test $ac_cv_type_u_int32_t = yes; then
   10299  1.1  christos   :
   10300  1.1  christos else
   10301  1.1  christos 
   10302  1.1  christos cat >>confdefs.h <<\_ACEOF
   10303  1.1  christos #define u_int32_t unsigned int
   10304  1.1  christos _ACEOF
   10305  1.1  christos 
   10306  1.1  christos fi
   10307  1.1  christos 
   10308  1.1  christos { echo "$as_me:$LINENO: checking for int64_t" >&5
   10309  1.1  christos echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
   10310  1.1  christos if test "${ac_cv_type_int64_t+set}" = set; then
   10311  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10312  1.1  christos else
   10313  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10314  1.1  christos /* confdefs.h.  */
   10315  1.1  christos _ACEOF
   10316  1.1  christos cat confdefs.h >>conftest.$ac_ext
   10317  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   10318  1.1  christos /* end confdefs.h.  */
   10319  1.1  christos $ac_includes_default
   10320  1.1  christos #ifdef HAVE_SYS_BITYPES_H
   10321  1.1  christos #include <sys/bitypes.h>
   10322  1.1  christos #endif
   10323  1.1  christos 
   10324  1.1  christos typedef int64_t ac__type_new_;
   10325  1.1  christos int
   10326  1.1  christos main ()
   10327  1.1  christos {
   10328  1.1  christos if ((ac__type_new_ *) 0)
   10329  1.1  christos   return 0;
   10330  1.1  christos if (sizeof (ac__type_new_))
   10331  1.1  christos   return 0;
   10332  1.1  christos   ;
   10333  1.1  christos   return 0;
   10334  1.1  christos }
   10335  1.1  christos _ACEOF
   10336  1.1  christos rm -f conftest.$ac_objext
   10337  1.1  christos if { (ac_try="$ac_compile"
   10338  1.1  christos case "(($ac_try" in
   10339  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10340  1.1  christos   *) ac_try_echo=$ac_try;;
   10341  1.1  christos esac
   10342  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10343  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   10344  1.1  christos   ac_status=$?
   10345  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   10346  1.1  christos   rm -f conftest.er1
   10347  1.1  christos   cat conftest.err >&5
   10348  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10349  1.1  christos   (exit $ac_status); } && {
   10350  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   10351  1.1  christos 	 test ! -s conftest.err
   10352  1.1  christos        } && test -s conftest.$ac_objext; then
   10353  1.1  christos   ac_cv_type_int64_t=yes
   10354  1.1  christos else
   10355  1.1  christos   echo "$as_me: failed program was:" >&5
   10356  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   10357  1.1  christos 
   10358  1.1  christos 	ac_cv_type_int64_t=no
   10359  1.1  christos fi
   10360  1.1  christos 
   10361  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10362  1.1  christos fi
   10363  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
   10364  1.1  christos echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
   10365  1.1  christos if test $ac_cv_type_int64_t = yes; then
   10366  1.1  christos   :
   10367  1.1  christos else
   10368  1.1  christos 
   10369  1.1  christos cat >>confdefs.h <<\_ACEOF
   10370  1.1  christos #define int64_t long long
   10371  1.1  christos _ACEOF
   10372  1.1  christos 
   10373  1.1  christos fi
   10374  1.1  christos 
   10375  1.1  christos { echo "$as_me:$LINENO: checking for u_int64_t" >&5
   10376  1.1  christos echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
   10377  1.1  christos if test "${ac_cv_type_u_int64_t+set}" = set; then
   10378  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10379  1.1  christos else
   10380  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10381  1.1  christos /* confdefs.h.  */
   10382  1.1  christos _ACEOF
   10383  1.1  christos cat confdefs.h >>conftest.$ac_ext
   10384  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   10385  1.1  christos /* end confdefs.h.  */
   10386  1.1  christos $ac_includes_default
   10387  1.1  christos #ifdef HAVE_SYS_BITYPES_H
   10388  1.1  christos #include <sys/bitypes.h>
   10389  1.1  christos #endif
   10390  1.1  christos 
   10391  1.1  christos typedef u_int64_t ac__type_new_;
   10392  1.1  christos int
   10393  1.1  christos main ()
   10394  1.1  christos {
   10395  1.1  christos if ((ac__type_new_ *) 0)
   10396  1.1  christos   return 0;
   10397  1.1  christos if (sizeof (ac__type_new_))
   10398  1.1  christos   return 0;
   10399  1.1  christos   ;
   10400  1.1  christos   return 0;
   10401  1.1  christos }
   10402  1.1  christos _ACEOF
   10403  1.1  christos rm -f conftest.$ac_objext
   10404  1.1  christos if { (ac_try="$ac_compile"
   10405  1.1  christos case "(($ac_try" in
   10406  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10407  1.1  christos   *) ac_try_echo=$ac_try;;
   10408  1.1  christos esac
   10409  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10410  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   10411  1.1  christos   ac_status=$?
   10412  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   10413  1.1  christos   rm -f conftest.er1
   10414  1.1  christos   cat conftest.err >&5
   10415  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10416  1.1  christos   (exit $ac_status); } && {
   10417  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   10418  1.1  christos 	 test ! -s conftest.err
   10419  1.1  christos        } && test -s conftest.$ac_objext; then
   10420  1.1  christos   ac_cv_type_u_int64_t=yes
   10421  1.1  christos else
   10422  1.1  christos   echo "$as_me: failed program was:" >&5
   10423  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   10424  1.1  christos 
   10425  1.1  christos 	ac_cv_type_u_int64_t=no
   10426  1.1  christos fi
   10427  1.1  christos 
   10428  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10429  1.1  christos fi
   10430  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
   10431  1.1  christos echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
   10432  1.1  christos if test $ac_cv_type_u_int64_t = yes; then
   10433  1.1  christos   :
   10434  1.1  christos else
   10435  1.1  christos 
   10436  1.1  christos cat >>confdefs.h <<\_ACEOF
   10437  1.1  christos #define u_int64_t unsigned long long
   10438  1.1  christos _ACEOF
   10439  1.1  christos 
   10440  1.1  christos fi
   10441  1.1  christos 
   10442  1.1  christos 
   10443  1.1  christos #
   10444  1.1  christos # We can't just check for <inttypes.h> - some systems have one that
   10445  1.1  christos # doesn't define all the PRI[doxu]64 macros.
   10446  1.1  christos #
   10447  1.1  christos 
   10448  1.1  christos for ac_header in inttypes.h
   10449  1.1  christos do
   10450  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10451  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10452  1.1  christos   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10453  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10454  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10455  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10456  1.1  christos fi
   10457  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   10458  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10459  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   10460  1.1  christos else
   10461  1.1  christos   # Is the header compilable?
   10462  1.1  christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   10463  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   10464  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   10465  1.1  christos /* confdefs.h.  */
   10466  1.1  christos _ACEOF
   10467  1.1  christos cat confdefs.h >>conftest.$ac_ext
   10468  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   10469  1.1  christos /* end confdefs.h.  */
   10470  1.1  christos $ac_includes_default
   10471  1.1  christos #include <$ac_header>
   10472  1.1  christos _ACEOF
   10473  1.1  christos rm -f conftest.$ac_objext
   10474  1.1  christos if { (ac_try="$ac_compile"
   10475  1.1  christos case "(($ac_try" in
   10476  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10477  1.1  christos   *) ac_try_echo=$ac_try;;
   10478  1.1  christos esac
   10479  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10480  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   10481  1.1  christos   ac_status=$?
   10482  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   10483  1.1  christos   rm -f conftest.er1
   10484  1.1  christos   cat conftest.err >&5
   10485  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10486  1.1  christos   (exit $ac_status); } && {
   10487  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   10488  1.1  christos 	 test ! -s conftest.err
   10489  1.1  christos        } && test -s conftest.$ac_objext; then
   10490  1.1  christos   ac_header_compiler=yes
   10491  1.1  christos else
   10492  1.1  christos   echo "$as_me: failed program was:" >&5
   10493  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   10494  1.1  christos 
   10495  1.1  christos 	ac_header_compiler=no
   10496  1.1  christos fi
   10497  1.1  christos 
   10498  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10499  1.1  christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10500  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6; }
   10501  1.1  christos 
   10502  1.1  christos # Is the header present?
   10503  1.1  christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   10504  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   10505  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   10506  1.1  christos /* confdefs.h.  */
   10507  1.1  christos _ACEOF
   10508  1.1  christos cat confdefs.h >>conftest.$ac_ext
   10509  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   10510  1.1  christos /* end confdefs.h.  */
   10511  1.1  christos #include <$ac_header>
   10512  1.1  christos _ACEOF
   10513  1.1  christos if { (ac_try="$ac_cpp conftest.$ac_ext"
   10514  1.1  christos case "(($ac_try" in
   10515  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10516  1.1  christos   *) ac_try_echo=$ac_try;;
   10517  1.1  christos esac
   10518  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10519  1.1  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10520  1.1  christos   ac_status=$?
   10521  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   10522  1.1  christos   rm -f conftest.er1
   10523  1.1  christos   cat conftest.err >&5
   10524  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10525  1.1  christos   (exit $ac_status); } >/dev/null && {
   10526  1.1  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   10527  1.1  christos 	 test ! -s conftest.err
   10528  1.1  christos        }; then
   10529  1.1  christos   ac_header_preproc=yes
   10530  1.1  christos else
   10531  1.1  christos   echo "$as_me: failed program was:" >&5
   10532  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   10533  1.1  christos 
   10534  1.1  christos   ac_header_preproc=no
   10535  1.1  christos fi
   10536  1.1  christos 
   10537  1.1  christos rm -f conftest.err conftest.$ac_ext
   10538  1.1  christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10539  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6; }
   10540  1.1  christos 
   10541  1.1  christos # So?  What about this header?
   10542  1.1  christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   10543  1.1  christos   yes:no: )
   10544  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   10545  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10546  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   10547  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   10548  1.1  christos     ac_header_preproc=yes
   10549  1.1  christos     ;;
   10550  1.1  christos   no:yes:* )
   10551  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10552  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10553  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   10554  1.1  christos echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   10555  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   10556  1.1  christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   10557  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   10558  1.1  christos echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   10559  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10560  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   10561  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   10562  1.1  christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   10563  1.1  christos 
   10564  1.1  christos     ;;
   10565  1.1  christos esac
   10566  1.1  christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10567  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10568  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10569  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10570  1.1  christos else
   10571  1.1  christos   eval "$as_ac_Header=\$ac_header_preproc"
   10572  1.1  christos fi
   10573  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   10574  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10575  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   10576  1.1  christos 
   10577  1.1  christos fi
   10578  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10579  1.1  christos   cat >>confdefs.h <<_ACEOF
   10580  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10581  1.1  christos _ACEOF
   10582  1.1  christos 
   10583  1.1  christos     #
   10584  1.1  christos     # OK, we have inttypes.h, but does it define those macros?
   10585  1.1  christos     #
   10586  1.1  christos     { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
   10587  1.1  christos echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
   10588  1.1  christos     cat >conftest.$ac_ext <<_ACEOF
   10589  1.1  christos 
   10590  1.1  christos 	/* confdefs.h.  */
   10591  1.1  christos _ACEOF
   10592  1.1  christos cat confdefs.h >>conftest.$ac_ext
   10593  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   10594  1.1  christos /* end confdefs.h.  */
   10595  1.1  christos 
   10596  1.1  christos 	    #include <inttypes.h>
   10597  1.1  christos 	    #include <stdio.h>
   10598  1.1  christos 	    #include <sys/types.h>
   10599  1.1  christos 	    #ifdef HAVE_SYS_BITYPES_H
   10600  1.1  christos 	    #include <sys/bitypes.h>
   10601  1.1  christos 	    #endif
   10602  1.1  christos 
   10603  1.1  christos 	    main()
   10604  1.1  christos 	    {
   10605  1.1  christos 	      printf("%" PRId64 "\n", (u_int64_t)1);
   10606  1.1  christos 	      printf("%" PRIo64 "\n", (u_int64_t)1);
   10607  1.1  christos 	      printf("%" PRIx64 "\n", (u_int64_t)1);
   10608  1.1  christos 	      printf("%" PRIu64 "\n", (u_int64_t)1);
   10609  1.1  christos 	    }
   10610  1.1  christos 
   10611  1.1  christos 
   10612  1.1  christos _ACEOF
   10613  1.1  christos rm -f conftest.$ac_objext
   10614  1.1  christos if { (ac_try="$ac_compile"
   10615  1.1  christos case "(($ac_try" in
   10616  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10617  1.1  christos   *) ac_try_echo=$ac_try;;
   10618  1.1  christos esac
   10619  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10620  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   10621  1.1  christos   ac_status=$?
   10622  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   10623  1.1  christos   rm -f conftest.er1
   10624  1.1  christos   cat conftest.err >&5
   10625  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10626  1.1  christos   (exit $ac_status); } && {
   10627  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   10628  1.1  christos 	 test ! -s conftest.err
   10629  1.1  christos        } && test -s conftest.$ac_objext; then
   10630  1.1  christos 
   10631  1.1  christos 	{ echo "$as_me:$LINENO: result: yes" >&5
   10632  1.1  christos echo "${ECHO_T}yes" >&6; }
   10633  1.1  christos 	ac_lbl_inttypes_h_defines_formats=yes
   10634  1.1  christos 
   10635  1.1  christos else
   10636  1.1  christos   echo "$as_me: failed program was:" >&5
   10637  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   10638  1.1  christos 
   10639  1.1  christos 
   10640  1.1  christos 	{ echo "$as_me:$LINENO: result: no" >&5
   10641  1.1  christos echo "${ECHO_T}no" >&6; }
   10642  1.1  christos 	ac_lbl_inttypes_h_defines_formats=no
   10643  1.1  christos 
   10644  1.1  christos fi
   10645  1.1  christos 
   10646  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10647  1.1  christos 
   10648  1.1  christos else
   10649  1.1  christos 
   10650  1.1  christos     #
   10651  1.1  christos     # We don't have inttypes.h, so it obviously can't define those
   10652  1.1  christos     # macros.
   10653  1.1  christos     #
   10654  1.1  christos     ac_lbl_inttypes_h_defines_formats=no
   10655  1.1  christos 
   10656  1.1  christos fi
   10657  1.1  christos 
   10658  1.1  christos done
   10659  1.1  christos 
   10660  1.1  christos if test "$ac_lbl_inttypes_h_defines_formats" = no; then
   10661  1.1  christos 
   10662  1.1  christos     { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
   10663  1.1  christos echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
   10664  1.1  christos     if test "$cross_compiling" = yes; then
   10665  1.1  christos   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
   10666  1.1  christos See \`config.log' for more details." >&5
   10667  1.1  christos echo "$as_me: error: cannot run test program while cross compiling
   10668  1.1  christos See \`config.log' for more details." >&2;}
   10669  1.1  christos    { (exit 1); exit 1; }; }
   10670  1.1  christos else
   10671  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10672  1.1  christos 
   10673  1.1  christos 	/* confdefs.h.  */
   10674  1.1  christos _ACEOF
   10675  1.1  christos cat confdefs.h >>conftest.$ac_ext
   10676  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   10677  1.1  christos /* end confdefs.h.  */
   10678  1.1  christos 
   10679  1.1  christos #	    ifdef HAVE_INTTYPES_H
   10680  1.1  christos 	    #include <inttypes.h>
   10681  1.1  christos #	    endif
   10682  1.1  christos #	    ifdef HAVE_SYS_BITYPES_H
   10683  1.1  christos             #include <sys/bitypes.h>
   10684  1.1  christos #	    endif
   10685  1.1  christos 	    #include <stdio.h>
   10686  1.1  christos 	    #include <sys/types.h>
   10687  1.1  christos 
   10688  1.1  christos 	    main()
   10689  1.1  christos 	    {
   10690  1.1  christos 	      u_int64_t t = 1;
   10691  1.1  christos 	      char strbuf[16+1];
   10692  1.1  christos 	      sprintf(strbuf, "%016lx", t << 32);
   10693  1.1  christos 	      if (strcmp(strbuf, "0000000100000000") == 0)
   10694  1.1  christos 		exit(0);
   10695  1.1  christos 	      else
   10696  1.1  christos 		exit(1);
   10697  1.1  christos 	    }
   10698  1.1  christos 
   10699  1.1  christos 
   10700  1.1  christos _ACEOF
   10701  1.1  christos rm -f conftest$ac_exeext
   10702  1.1  christos if { (ac_try="$ac_link"
   10703  1.1  christos case "(($ac_try" in
   10704  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10705  1.1  christos   *) ac_try_echo=$ac_try;;
   10706  1.1  christos esac
   10707  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10708  1.1  christos   (eval "$ac_link") 2>&5
   10709  1.1  christos   ac_status=$?
   10710  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10711  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   10712  1.1  christos   { (case "(($ac_try" in
   10713  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10714  1.1  christos   *) ac_try_echo=$ac_try;;
   10715  1.1  christos esac
   10716  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10717  1.1  christos   (eval "$ac_try") 2>&5
   10718  1.1  christos   ac_status=$?
   10719  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10720  1.1  christos   (exit $ac_status); }; }; then
   10721  1.1  christos 
   10722  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10723  1.1  christos #define PRId64 "ld"
   10724  1.1  christos _ACEOF
   10725  1.1  christos 
   10726  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10727  1.1  christos #define PRIo64 "lo"
   10728  1.1  christos _ACEOF
   10729  1.1  christos 
   10730  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10731  1.1  christos #define PRIx64 "lx"
   10732  1.1  christos _ACEOF
   10733  1.1  christos 
   10734  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10735  1.1  christos #define PRIu64 "lu"
   10736  1.1  christos _ACEOF
   10737  1.1  christos 
   10738  1.1  christos 	{ echo "$as_me:$LINENO: result: yes" >&5
   10739  1.1  christos echo "${ECHO_T}yes" >&6; }
   10740  1.1  christos 
   10741  1.1  christos else
   10742  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   10743  1.1  christos echo "$as_me: failed program was:" >&5
   10744  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   10745  1.1  christos 
   10746  1.1  christos ( exit $ac_status )
   10747  1.1  christos 
   10748  1.1  christos 	{ echo "$as_me:$LINENO: result: no" >&5
   10749  1.1  christos echo "${ECHO_T}no" >&6; }
   10750  1.1  christos 
   10751  1.1  christos 
   10752  1.1  christos     { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
   10753  1.1  christos echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
   10754  1.1  christos     if test "$cross_compiling" = yes; then
   10755  1.1  christos   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
   10756  1.1  christos See \`config.log' for more details." >&5
   10757  1.1  christos echo "$as_me: error: cannot run test program while cross compiling
   10758  1.1  christos See \`config.log' for more details." >&2;}
   10759  1.1  christos    { (exit 1); exit 1; }; }
   10760  1.1  christos else
   10761  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10762  1.1  christos 
   10763  1.1  christos 	/* confdefs.h.  */
   10764  1.1  christos _ACEOF
   10765  1.1  christos cat confdefs.h >>conftest.$ac_ext
   10766  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   10767  1.1  christos /* end confdefs.h.  */
   10768  1.1  christos 
   10769  1.1  christos #	    ifdef HAVE_INTTYPES_H
   10770  1.1  christos 	    #include <inttypes.h>
   10771  1.1  christos #	    endif
   10772  1.1  christos #	    ifdef HAVE_SYS_BITYPES_H
   10773  1.1  christos             #include <sys/bitypes.h>
   10774  1.1  christos #	    endif
   10775  1.1  christos 	    #include <stdio.h>
   10776  1.1  christos 	    #include <sys/types.h>
   10777  1.1  christos 
   10778  1.1  christos 	    main()
   10779  1.1  christos 	    {
   10780  1.1  christos 	      u_int64_t t = 1;
   10781  1.1  christos 	      char strbuf[16+1];
   10782  1.1  christos 	      sprintf(strbuf, "%016llx", t << 32);
   10783  1.1  christos 	      if (strcmp(strbuf, "0000000100000000") == 0)
   10784  1.1  christos 		exit(0);
   10785  1.1  christos 	      else
   10786  1.1  christos 		exit(1);
   10787  1.1  christos 	    }
   10788  1.1  christos 
   10789  1.1  christos 
   10790  1.1  christos _ACEOF
   10791  1.1  christos rm -f conftest$ac_exeext
   10792  1.1  christos if { (ac_try="$ac_link"
   10793  1.1  christos case "(($ac_try" in
   10794  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10795  1.1  christos   *) ac_try_echo=$ac_try;;
   10796  1.1  christos esac
   10797  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10798  1.1  christos   (eval "$ac_link") 2>&5
   10799  1.1  christos   ac_status=$?
   10800  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10801  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   10802  1.1  christos   { (case "(($ac_try" in
   10803  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10804  1.1  christos   *) ac_try_echo=$ac_try;;
   10805  1.1  christos esac
   10806  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10807  1.1  christos   (eval "$ac_try") 2>&5
   10808  1.1  christos   ac_status=$?
   10809  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10810  1.1  christos   (exit $ac_status); }; }; then
   10811  1.1  christos 
   10812  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10813  1.1  christos #define PRId64 "lld"
   10814  1.1  christos _ACEOF
   10815  1.1  christos 
   10816  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10817  1.1  christos #define PRIo64 "llo"
   10818  1.1  christos _ACEOF
   10819  1.1  christos 
   10820  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10821  1.1  christos #define PRIx64 "llx"
   10822  1.1  christos _ACEOF
   10823  1.1  christos 
   10824  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10825  1.1  christos #define PRIu64 "llu"
   10826  1.1  christos _ACEOF
   10827  1.1  christos 
   10828  1.1  christos 	{ echo "$as_me:$LINENO: result: yes" >&5
   10829  1.1  christos echo "${ECHO_T}yes" >&6; }
   10830  1.1  christos 
   10831  1.1  christos else
   10832  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   10833  1.1  christos echo "$as_me: failed program was:" >&5
   10834  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   10835  1.1  christos 
   10836  1.1  christos ( exit $ac_status )
   10837  1.1  christos 
   10838  1.1  christos 	{ echo "$as_me:$LINENO: result: no" >&5
   10839  1.1  christos echo "${ECHO_T}no" >&6; }
   10840  1.1  christos 
   10841  1.1  christos 
   10842  1.1  christos     { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
   10843  1.1  christos echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
   10844  1.1  christos     if test "$cross_compiling" = yes; then
   10845  1.1  christos   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
   10846  1.1  christos See \`config.log' for more details." >&5
   10847  1.1  christos echo "$as_me: error: cannot run test program while cross compiling
   10848  1.1  christos See \`config.log' for more details." >&2;}
   10849  1.1  christos    { (exit 1); exit 1; }; }
   10850  1.1  christos else
   10851  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10852  1.1  christos 
   10853  1.1  christos 	/* confdefs.h.  */
   10854  1.1  christos _ACEOF
   10855  1.1  christos cat confdefs.h >>conftest.$ac_ext
   10856  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   10857  1.1  christos /* end confdefs.h.  */
   10858  1.1  christos 
   10859  1.1  christos #	    ifdef HAVE_INTTYPES_H
   10860  1.1  christos 	    #include <inttypes.h>
   10861  1.1  christos #	    endif
   10862  1.1  christos #	    ifdef HAVE_SYS_BITYPES_H
   10863  1.1  christos             #include <sys/bitypes.h>
   10864  1.1  christos #	    endif
   10865  1.1  christos 	    #include <stdio.h>
   10866  1.1  christos 	    #include <sys/types.h>
   10867  1.1  christos 
   10868  1.1  christos 	    main()
   10869  1.1  christos 	    {
   10870  1.1  christos 	      u_int64_t t = 1;
   10871  1.1  christos 	      char strbuf[16+1];
   10872  1.1  christos 	      sprintf(strbuf, "%016Lx", t << 32);
   10873  1.1  christos 	      if (strcmp(strbuf, "0000000100000000") == 0)
   10874  1.1  christos 		exit(0);
   10875  1.1  christos 	      else
   10876  1.1  christos 		exit(1);
   10877  1.1  christos 	    }
   10878  1.1  christos 
   10879  1.1  christos 
   10880  1.1  christos _ACEOF
   10881  1.1  christos rm -f conftest$ac_exeext
   10882  1.1  christos if { (ac_try="$ac_link"
   10883  1.1  christos case "(($ac_try" in
   10884  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10885  1.1  christos   *) ac_try_echo=$ac_try;;
   10886  1.1  christos esac
   10887  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10888  1.1  christos   (eval "$ac_link") 2>&5
   10889  1.1  christos   ac_status=$?
   10890  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10891  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   10892  1.1  christos   { (case "(($ac_try" in
   10893  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10894  1.1  christos   *) ac_try_echo=$ac_try;;
   10895  1.1  christos esac
   10896  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10897  1.1  christos   (eval "$ac_try") 2>&5
   10898  1.1  christos   ac_status=$?
   10899  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10900  1.1  christos   (exit $ac_status); }; }; then
   10901  1.1  christos 
   10902  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10903  1.1  christos #define PRId64 "Ld"
   10904  1.1  christos _ACEOF
   10905  1.1  christos 
   10906  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10907  1.1  christos #define PRIo64 "Lo"
   10908  1.1  christos _ACEOF
   10909  1.1  christos 
   10910  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10911  1.1  christos #define PRIx64 "Lx"
   10912  1.1  christos _ACEOF
   10913  1.1  christos 
   10914  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10915  1.1  christos #define PRIu64 "Lu"
   10916  1.1  christos _ACEOF
   10917  1.1  christos 
   10918  1.1  christos 	{ echo "$as_me:$LINENO: result: yes" >&5
   10919  1.1  christos echo "${ECHO_T}yes" >&6; }
   10920  1.1  christos 
   10921  1.1  christos else
   10922  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   10923  1.1  christos echo "$as_me: failed program was:" >&5
   10924  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   10925  1.1  christos 
   10926  1.1  christos ( exit $ac_status )
   10927  1.1  christos 
   10928  1.1  christos 	{ echo "$as_me:$LINENO: result: no" >&5
   10929  1.1  christos echo "${ECHO_T}no" >&6; }
   10930  1.1  christos 
   10931  1.1  christos 
   10932  1.1  christos     { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
   10933  1.1  christos echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
   10934  1.1  christos     if test "$cross_compiling" = yes; then
   10935  1.1  christos   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
   10936  1.1  christos See \`config.log' for more details." >&5
   10937  1.1  christos echo "$as_me: error: cannot run test program while cross compiling
   10938  1.1  christos See \`config.log' for more details." >&2;}
   10939  1.1  christos    { (exit 1); exit 1; }; }
   10940  1.1  christos else
   10941  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   10942  1.1  christos 
   10943  1.1  christos 	/* confdefs.h.  */
   10944  1.1  christos _ACEOF
   10945  1.1  christos cat confdefs.h >>conftest.$ac_ext
   10946  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   10947  1.1  christos /* end confdefs.h.  */
   10948  1.1  christos 
   10949  1.1  christos #	    ifdef HAVE_INTTYPES_H
   10950  1.1  christos 	    #include <inttypes.h>
   10951  1.1  christos #	    endif
   10952  1.1  christos #	    ifdef HAVE_SYS_BITYPES_H
   10953  1.1  christos             #include <sys/bitypes.h>
   10954  1.1  christos #	    endif
   10955  1.1  christos 	    #include <stdio.h>
   10956  1.1  christos 	    #include <sys/types.h>
   10957  1.1  christos 
   10958  1.1  christos 	    main()
   10959  1.1  christos 	    {
   10960  1.1  christos 	      u_int64_t t = 1;
   10961  1.1  christos 	      char strbuf[16+1];
   10962  1.1  christos 	      sprintf(strbuf, "%016qx", t << 32);
   10963  1.1  christos 	      if (strcmp(strbuf, "0000000100000000") == 0)
   10964  1.1  christos 		exit(0);
   10965  1.1  christos 	      else
   10966  1.1  christos 		exit(1);
   10967  1.1  christos 	    }
   10968  1.1  christos 
   10969  1.1  christos 
   10970  1.1  christos _ACEOF
   10971  1.1  christos rm -f conftest$ac_exeext
   10972  1.1  christos if { (ac_try="$ac_link"
   10973  1.1  christos case "(($ac_try" in
   10974  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10975  1.1  christos   *) ac_try_echo=$ac_try;;
   10976  1.1  christos esac
   10977  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10978  1.1  christos   (eval "$ac_link") 2>&5
   10979  1.1  christos   ac_status=$?
   10980  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10981  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   10982  1.1  christos   { (case "(($ac_try" in
   10983  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10984  1.1  christos   *) ac_try_echo=$ac_try;;
   10985  1.1  christos esac
   10986  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10987  1.1  christos   (eval "$ac_try") 2>&5
   10988  1.1  christos   ac_status=$?
   10989  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10990  1.1  christos   (exit $ac_status); }; }; then
   10991  1.1  christos 
   10992  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10993  1.1  christos #define PRId64 "qd"
   10994  1.1  christos _ACEOF
   10995  1.1  christos 
   10996  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   10997  1.1  christos #define PRIo64 "qo"
   10998  1.1  christos _ACEOF
   10999  1.1  christos 
   11000  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   11001  1.1  christos #define PRIx64 "qx"
   11002  1.1  christos _ACEOF
   11003  1.1  christos 
   11004  1.1  christos 	cat >>confdefs.h <<\_ACEOF
   11005  1.1  christos #define PRIu64 "qu"
   11006  1.1  christos _ACEOF
   11007  1.1  christos 
   11008  1.1  christos 	{ echo "$as_me:$LINENO: result: yes" >&5
   11009  1.1  christos echo "${ECHO_T}yes" >&6; }
   11010  1.1  christos 
   11011  1.1  christos else
   11012  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   11013  1.1  christos echo "$as_me: failed program was:" >&5
   11014  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   11015  1.1  christos 
   11016  1.1  christos ( exit $ac_status )
   11017  1.1  christos 
   11018  1.1  christos 	{ echo "$as_me:$LINENO: result: no" >&5
   11019  1.1  christos echo "${ECHO_T}no" >&6; }
   11020  1.1  christos 
   11021  1.1  christos 	          { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
   11022  1.1  christos echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
   11023  1.1  christos    { (exit 1); exit 1; }; }
   11024  1.1  christos 
   11025  1.1  christos 
   11026  1.1  christos fi
   11027  1.1  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   11028  1.1  christos fi
   11029  1.1  christos 
   11030  1.1  christos 
   11031  1.1  christos 
   11032  1.1  christos 
   11033  1.1  christos 
   11034  1.1  christos fi
   11035  1.1  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   11036  1.1  christos fi
   11037  1.1  christos 
   11038  1.1  christos 
   11039  1.1  christos 
   11040  1.1  christos 
   11041  1.1  christos 
   11042  1.1  christos fi
   11043  1.1  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   11044  1.1  christos fi
   11045  1.1  christos 
   11046  1.1  christos 
   11047  1.1  christos 
   11048  1.1  christos 
   11049  1.1  christos 
   11050  1.1  christos fi
   11051  1.1  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   11052  1.1  christos fi
   11053  1.1  christos 
   11054  1.1  christos 
   11055  1.1  christos 
   11056  1.1  christos fi
   11057  1.1  christos 
   11058  1.3  christos #
   11059  1.3  christos # Check for some headers introduced in later versions of libpcap
   11060  1.3  christos # and used by some printers.
   11061  1.3  christos #
   11062  1.3  christos # Those headers use the {u_}intN_t types, so we must do this after
   11063  1.3  christos # we check for what's needed to get them defined.
   11064  1.3  christos #
   11065  1.3  christos savedcppflags="$CPPFLAGS"
   11066  1.3  christos CPPFLAGS="$CPPFLAGS $V_INCLS"
   11067  1.3  christos 
   11068  1.3  christos for ac_header in pcap/bluetooth.h
   11069  1.3  christos do
   11070  1.3  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11071  1.3  christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11072  1.3  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11073  1.3  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11074  1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11075  1.3  christos else
   11076  1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   11077  1.3  christos /* confdefs.h.  */
   11078  1.3  christos _ACEOF
   11079  1.3  christos cat confdefs.h >>conftest.$ac_ext
   11080  1.3  christos cat >>conftest.$ac_ext <<_ACEOF
   11081  1.3  christos /* end confdefs.h.  */
   11082  1.3  christos #include <tcpdump-stdinc.h>
   11083  1.3  christos 
   11084  1.3  christos #include <$ac_header>
   11085  1.3  christos _ACEOF
   11086  1.3  christos rm -f conftest.$ac_objext
   11087  1.3  christos if { (ac_try="$ac_compile"
   11088  1.3  christos case "(($ac_try" in
   11089  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11090  1.3  christos   *) ac_try_echo=$ac_try;;
   11091  1.3  christos esac
   11092  1.3  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11093  1.3  christos   (eval "$ac_compile") 2>conftest.er1
   11094  1.3  christos   ac_status=$?
   11095  1.3  christos   grep -v '^ *+' conftest.er1 >conftest.err
   11096  1.3  christos   rm -f conftest.er1
   11097  1.3  christos   cat conftest.err >&5
   11098  1.3  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11099  1.3  christos   (exit $ac_status); } && {
   11100  1.3  christos 	 test -z "$ac_c_werror_flag" ||
   11101  1.3  christos 	 test ! -s conftest.err
   11102  1.3  christos        } && test -s conftest.$ac_objext; then
   11103  1.3  christos   eval "$as_ac_Header=yes"
   11104  1.3  christos else
   11105  1.3  christos   echo "$as_me: failed program was:" >&5
   11106  1.3  christos sed 's/^/| /' conftest.$ac_ext >&5
   11107  1.3  christos 
   11108  1.3  christos 	eval "$as_ac_Header=no"
   11109  1.3  christos fi
   11110  1.3  christos 
   11111  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11112  1.3  christos fi
   11113  1.3  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   11114  1.3  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11115  1.3  christos echo "${ECHO_T}$ac_res" >&6; }
   11116  1.3  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11117  1.3  christos   cat >>confdefs.h <<_ACEOF
   11118  1.3  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11119  1.3  christos _ACEOF
   11120  1.3  christos 
   11121  1.3  christos fi
   11122  1.3  christos 
   11123  1.3  christos done
   11124  1.3  christos 
   11125  1.3  christos 
   11126  1.3  christos for ac_header in pcap/usb.h
   11127  1.3  christos do
   11128  1.3  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11129  1.3  christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11130  1.3  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11131  1.3  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11132  1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11133  1.3  christos else
   11134  1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   11135  1.3  christos /* confdefs.h.  */
   11136  1.3  christos _ACEOF
   11137  1.3  christos cat confdefs.h >>conftest.$ac_ext
   11138  1.3  christos cat >>conftest.$ac_ext <<_ACEOF
   11139  1.3  christos /* end confdefs.h.  */
   11140  1.3  christos #include <tcpdump-stdinc.h>
   11141  1.3  christos 
   11142  1.3  christos #include <$ac_header>
   11143  1.3  christos _ACEOF
   11144  1.3  christos rm -f conftest.$ac_objext
   11145  1.3  christos if { (ac_try="$ac_compile"
   11146  1.3  christos case "(($ac_try" in
   11147  1.3  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11148  1.3  christos   *) ac_try_echo=$ac_try;;
   11149  1.3  christos esac
   11150  1.3  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11151  1.3  christos   (eval "$ac_compile") 2>conftest.er1
   11152  1.3  christos   ac_status=$?
   11153  1.3  christos   grep -v '^ *+' conftest.er1 >conftest.err
   11154  1.3  christos   rm -f conftest.er1
   11155  1.3  christos   cat conftest.err >&5
   11156  1.3  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11157  1.3  christos   (exit $ac_status); } && {
   11158  1.3  christos 	 test -z "$ac_c_werror_flag" ||
   11159  1.3  christos 	 test ! -s conftest.err
   11160  1.3  christos        } && test -s conftest.$ac_objext; then
   11161  1.3  christos   eval "$as_ac_Header=yes"
   11162  1.3  christos else
   11163  1.3  christos   echo "$as_me: failed program was:" >&5
   11164  1.3  christos sed 's/^/| /' conftest.$ac_ext >&5
   11165  1.3  christos 
   11166  1.3  christos 	eval "$as_ac_Header=no"
   11167  1.3  christos fi
   11168  1.3  christos 
   11169  1.3  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11170  1.3  christos fi
   11171  1.3  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   11172  1.3  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11173  1.3  christos echo "${ECHO_T}$ac_res" >&6; }
   11174  1.3  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11175  1.3  christos   cat >>confdefs.h <<_ACEOF
   11176  1.3  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11177  1.3  christos _ACEOF
   11178  1.3  christos 
   11179  1.3  christos fi
   11180  1.3  christos 
   11181  1.3  christos done
   11182  1.3  christos 
   11183  1.3  christos CPPFLAGS="$savedcppflags"
   11184  1.3  christos 
   11185  1.1  christos if test -n "$ac_tool_prefix"; then
   11186  1.1  christos   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   11187  1.1  christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   11188  1.1  christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
   11189  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   11190  1.1  christos if test "${ac_cv_prog_RANLIB+set}" = set; then
   11191  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11192  1.1  christos else
   11193  1.1  christos   if test -n "$RANLIB"; then
   11194  1.1  christos   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   11195  1.1  christos else
   11196  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11197  1.1  christos for as_dir in $PATH
   11198  1.1  christos do
   11199  1.1  christos   IFS=$as_save_IFS
   11200  1.1  christos   test -z "$as_dir" && as_dir=.
   11201  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   11202  1.1  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   11203  1.1  christos     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   11204  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   11205  1.1  christos     break 2
   11206  1.1  christos   fi
   11207  1.1  christos done
   11208  1.1  christos done
   11209  1.1  christos IFS=$as_save_IFS
   11210  1.1  christos 
   11211  1.1  christos fi
   11212  1.1  christos fi
   11213  1.1  christos RANLIB=$ac_cv_prog_RANLIB
   11214  1.1  christos if test -n "$RANLIB"; then
   11215  1.1  christos   { echo "$as_me:$LINENO: result: $RANLIB" >&5
   11216  1.1  christos echo "${ECHO_T}$RANLIB" >&6; }
   11217  1.1  christos else
   11218  1.1  christos   { echo "$as_me:$LINENO: result: no" >&5
   11219  1.1  christos echo "${ECHO_T}no" >&6; }
   11220  1.1  christos fi
   11221  1.1  christos 
   11222  1.1  christos 
   11223  1.1  christos fi
   11224  1.1  christos if test -z "$ac_cv_prog_RANLIB"; then
   11225  1.1  christos   ac_ct_RANLIB=$RANLIB
   11226  1.1  christos   # Extract the first word of "ranlib", so it can be a program name with args.
   11227  1.1  christos set dummy ranlib; ac_word=$2
   11228  1.1  christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
   11229  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   11230  1.1  christos if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   11231  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11232  1.1  christos else
   11233  1.1  christos   if test -n "$ac_ct_RANLIB"; then
   11234  1.1  christos   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   11235  1.1  christos else
   11236  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11237  1.1  christos for as_dir in $PATH
   11238  1.1  christos do
   11239  1.1  christos   IFS=$as_save_IFS
   11240  1.1  christos   test -z "$as_dir" && as_dir=.
   11241  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   11242  1.1  christos   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   11243  1.1  christos     ac_cv_prog_ac_ct_RANLIB="ranlib"
   11244  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   11245  1.1  christos     break 2
   11246  1.1  christos   fi
   11247  1.1  christos done
   11248  1.1  christos done
   11249  1.1  christos IFS=$as_save_IFS
   11250  1.1  christos 
   11251  1.1  christos fi
   11252  1.1  christos fi
   11253  1.1  christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   11254  1.1  christos if test -n "$ac_ct_RANLIB"; then
   11255  1.1  christos   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   11256  1.1  christos echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
   11257  1.1  christos else
   11258  1.1  christos   { echo "$as_me:$LINENO: result: no" >&5
   11259  1.1  christos echo "${ECHO_T}no" >&6; }
   11260  1.1  christos fi
   11261  1.1  christos 
   11262  1.1  christos   if test "x$ac_ct_RANLIB" = x; then
   11263  1.1  christos     RANLIB=":"
   11264  1.1  christos   else
   11265  1.1  christos     case $cross_compiling:$ac_tool_warned in
   11266  1.1  christos yes:)
   11267  1.1  christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   11268  1.1  christos whose name does not start with the host triplet.  If you think this
   11269  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   11270  1.1  christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   11271  1.1  christos whose name does not start with the host triplet.  If you think this
   11272  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   11273  1.1  christos ac_tool_warned=yes ;;
   11274  1.1  christos esac
   11275  1.1  christos     RANLIB=$ac_ct_RANLIB
   11276  1.1  christos   fi
   11277  1.1  christos else
   11278  1.1  christos   RANLIB="$ac_cv_prog_RANLIB"
   11279  1.1  christos fi
   11280  1.1  christos 
   11281  1.1  christos 
   11282  1.1  christos rm -f os-proto.h
   11283  1.1  christos     if test "${LBL_CFLAGS+set}" = set; then
   11284  1.1  christos 	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
   11285  1.1  christos     fi
   11286  1.1  christos     if test -f .devel ; then
   11287  1.1  christos 	    if test "$GCC" = yes ; then
   11288  1.1  christos 		    if test "${LBL_CFLAGS+set}" != set; then
   11289  1.1  christos 			    if test "$ac_cv_prog_cc_g" = yes ; then
   11290  1.1  christos 				    V_CCOPT="-g $V_CCOPT"
   11291  1.1  christos 			    fi
   11292  1.1  christos 			    V_CCOPT="$V_CCOPT -Wall"
   11293  1.1  christos 			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
   11294  1.1  christos 				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
   11295  1.1  christos 			    fi
   11296  1.1  christos 		    fi
   11297  1.1  christos 	    else
   11298  1.1  christos 		    case "$host_os" in
   11299  1.1  christos 
   11300  1.1  christos 		    irix6*)
   11301  1.1  christos 			    V_CCOPT="$V_CCOPT -n32"
   11302  1.1  christos 			    ;;
   11303  1.1  christos 
   11304  1.1  christos 		    *)
   11305  1.1  christos 			    ;;
   11306  1.1  christos 		    esac
   11307  1.1  christos 	    fi
   11308  1.1  christos 	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
   11309  1.1  christos 	    name="lbl/os-$os.h"
   11310  1.1  christos 	    if test -f $name ; then
   11311  1.1  christos 		    ln -s $name os-proto.h
   11312  1.1  christos 
   11313  1.1  christos cat >>confdefs.h <<\_ACEOF
   11314  1.1  christos #define HAVE_OS_PROTO_H 1
   11315  1.1  christos _ACEOF
   11316  1.1  christos 
   11317  1.1  christos 	    else
   11318  1.1  christos 		    { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
   11319  1.1  christos echo "$as_me: WARNING: can't find $name" >&2;}
   11320  1.1  christos 	    fi
   11321  1.1  christos     fi
   11322  1.1  christos 
   11323  1.1  christos { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
   11324  1.1  christos echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
   11325  1.1  christos     if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
   11326  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11327  1.1  christos else
   11328  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11329  1.1  christos /* confdefs.h.  */
   11330  1.1  christos _ACEOF
   11331  1.1  christos cat confdefs.h >>conftest.$ac_ext
   11332  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   11333  1.1  christos /* end confdefs.h.  */
   11334  1.1  christos 
   11335  1.1  christos #	include <sys/types.h>
   11336  1.1  christos #	include <sys/socket.h>
   11337  1.1  christos int
   11338  1.1  christos main ()
   11339  1.1  christos {
   11340  1.1  christos u_int i = sizeof(((struct sockaddr *)0)->sa_len)
   11341  1.1  christos   ;
   11342  1.1  christos   return 0;
   11343  1.1  christos }
   11344  1.1  christos _ACEOF
   11345  1.1  christos rm -f conftest.$ac_objext
   11346  1.1  christos if { (ac_try="$ac_compile"
   11347  1.1  christos case "(($ac_try" in
   11348  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11349  1.1  christos   *) ac_try_echo=$ac_try;;
   11350  1.1  christos esac
   11351  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11352  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   11353  1.1  christos   ac_status=$?
   11354  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   11355  1.1  christos   rm -f conftest.er1
   11356  1.1  christos   cat conftest.err >&5
   11357  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11358  1.1  christos   (exit $ac_status); } && {
   11359  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   11360  1.1  christos 	 test ! -s conftest.err
   11361  1.1  christos        } && test -s conftest.$ac_objext; then
   11362  1.1  christos   ac_cv_lbl_sockaddr_has_sa_len=yes
   11363  1.1  christos else
   11364  1.1  christos   echo "$as_me: failed program was:" >&5
   11365  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   11366  1.1  christos 
   11367  1.1  christos 	ac_cv_lbl_sockaddr_has_sa_len=no
   11368  1.1  christos fi
   11369  1.1  christos 
   11370  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11371  1.1  christos fi
   11372  1.1  christos 
   11373  1.1  christos     { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
   11374  1.1  christos echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
   11375  1.1  christos     if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
   11376  1.1  christos 
   11377  1.1  christos cat >>confdefs.h <<\_ACEOF
   11378  1.1  christos #define HAVE_SOCKADDR_SA_LEN 1
   11379  1.1  christos _ACEOF
   11380  1.1  christos 
   11381  1.1  christos     fi
   11382  1.1  christos 
   11383  1.1  christos { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
   11384  1.1  christos echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
   11385  1.1  christos     if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
   11386  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11387  1.1  christos else
   11388  1.1  christos   case "$host_cpu" in
   11389  1.1  christos 
   11390  1.1  christos 	#
   11391  1.1  christos 	# These are CPU types where:
   11392  1.1  christos 	#
   11393  1.1  christos 	#	the CPU faults on an unaligned access, but at least some
   11394  1.1  christos 	#	OSes that support that CPU catch the fault and simulate
   11395  1.1  christos 	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
   11396  1.1  christos 	#	the simulation is slow, so we don't want to use it;
   11397  1.1  christos 	#
   11398  1.1  christos 	#	the CPU, I infer (from the old
   11399  1.1  christos 	#
   11400  1.1  christos 	# XXX: should also check that they don't do weird things (like on arm)
   11401  1.1  christos 	#
   11402  1.1  christos 	#	comment) doesn't fault on unaligned accesses, but doesn't
   11403  1.1  christos 	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
   11404  1.1  christos 	#
   11405  1.1  christos 	#	for whatever reason, the test program doesn't work
   11406  1.1  christos 	#	(this has been claimed to be the case for several of those
   11407  1.1  christos 	#	CPUs - I don't know what the problem is; the problem
   11408  1.1  christos 	#	was reported as "the test program dumps core" for SuperH,
   11409  1.1  christos 	#	but that's what the test program is *supposed* to do -
   11410  1.1  christos 	#	it dumps core before it writes anything, so the test
   11411  1.1  christos 	#	for an empty output file should find an empty output
   11412  1.1  christos 	#	file and conclude that unaligned accesses don't work).
   11413  1.1  christos 	#
   11414  1.1  christos 	# This run-time test won't work if you're cross-compiling, so
   11415  1.1  christos 	# in order to support cross-compiling for a particular CPU,
   11416  1.1  christos 	# we have to wire in the list of CPU types anyway, as far as
   11417  1.1  christos 	# I know, so perhaps we should just have a set of CPUs on
   11418  1.1  christos 	# which we know it doesn't work, a set of CPUs on which we
   11419  1.1  christos 	# know it does work, and have the script just fail on other
   11420  1.1  christos 	# cpu types and update it when such a failure occurs.
   11421  1.1  christos 	#
   11422  1.1  christos 	alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
   11423  1.1  christos 		ac_cv_lbl_unaligned_fail=yes
   11424  1.1  christos 		;;
   11425  1.1  christos 
   11426  1.1  christos 	*)
   11427  1.1  christos 		cat >conftest.c <<EOF
   11428  1.1  christos #		include <sys/types.h>
   11429  1.1  christos #		include <sys/wait.h>
   11430  1.1  christos #		include <stdio.h>
   11431  1.1  christos 		unsigned char a[5] = { 1, 2, 3, 4, 5 };
   11432  1.1  christos 		main() {
   11433  1.1  christos 		unsigned int i;
   11434  1.1  christos 		pid_t pid;
   11435  1.1  christos 		int status;
   11436  1.1  christos 		/* avoid "core dumped" message */
   11437  1.1  christos 		pid = fork();
   11438  1.1  christos 		if (pid <  0)
   11439  1.1  christos 			exit(2);
   11440  1.1  christos 		if (pid > 0) {
   11441  1.1  christos 			/* parent */
   11442  1.1  christos 			pid = waitpid(pid, &status, 0);
   11443  1.1  christos 			if (pid < 0)
   11444  1.1  christos 				exit(3);
   11445  1.1  christos 			exit(!WIFEXITED(status));
   11446  1.1  christos 		}
   11447  1.1  christos 		/* child */
   11448  1.1  christos 		i = *(unsigned int *)&a[1];
   11449  1.1  christos 		printf("%d\n", i);
   11450  1.1  christos 		exit(0);
   11451  1.1  christos 		}
   11452  1.1  christos EOF
   11453  1.1  christos 		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
   11454  1.1  christos 		    conftest.c $LIBS >/dev/null 2>&1
   11455  1.1  christos 		if test ! -x conftest ; then
   11456  1.1  christos 						ac_cv_lbl_unaligned_fail=yes
   11457  1.1  christos 		else
   11458  1.1  christos 			./conftest >conftest.out
   11459  1.1  christos 			if test ! -s conftest.out ; then
   11460  1.1  christos 				ac_cv_lbl_unaligned_fail=yes
   11461  1.1  christos 			else
   11462  1.1  christos 				ac_cv_lbl_unaligned_fail=no
   11463  1.1  christos 			fi
   11464  1.1  christos 		fi
   11465  1.1  christos 		rm -f -r conftest* core core.conftest
   11466  1.1  christos 		;;
   11467  1.1  christos 	esac
   11468  1.1  christos fi
   11469  1.1  christos 
   11470  1.1  christos     { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
   11471  1.1  christos echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
   11472  1.1  christos     if test $ac_cv_lbl_unaligned_fail = yes ; then
   11473  1.1  christos 
   11474  1.1  christos cat >>confdefs.h <<\_ACEOF
   11475  1.1  christos #define LBL_ALIGN 1
   11476  1.1  christos _ACEOF
   11477  1.1  christos 
   11478  1.1  christos     fi
   11479  1.1  christos 
   11480  1.1  christos 
   11481  1.1  christos 	{ echo "$as_me:$LINENO: checking for h_errno" >&5
   11482  1.1  christos echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
   11483  1.1  christos 	if test "${ac_cv_var_h_errno+set}" = set; then
   11484  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11485  1.1  christos else
   11486  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   11487  1.1  christos /* confdefs.h.  */
   11488  1.1  christos _ACEOF
   11489  1.1  christos cat confdefs.h >>conftest.$ac_ext
   11490  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   11491  1.1  christos /* end confdefs.h.  */
   11492  1.1  christos 
   11493  1.1  christos #		include <sys/types.h>
   11494  1.1  christos #		include <netdb.h>
   11495  1.1  christos int
   11496  1.1  christos main ()
   11497  1.1  christos {
   11498  1.1  christos int foo = h_errno;
   11499  1.1  christos   ;
   11500  1.1  christos   return 0;
   11501  1.1  christos }
   11502  1.1  christos _ACEOF
   11503  1.1  christos rm -f conftest.$ac_objext
   11504  1.1  christos if { (ac_try="$ac_compile"
   11505  1.1  christos case "(($ac_try" in
   11506  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11507  1.1  christos   *) ac_try_echo=$ac_try;;
   11508  1.1  christos esac
   11509  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11510  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   11511  1.1  christos   ac_status=$?
   11512  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   11513  1.1  christos   rm -f conftest.er1
   11514  1.1  christos   cat conftest.err >&5
   11515  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11516  1.1  christos   (exit $ac_status); } && {
   11517  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   11518  1.1  christos 	 test ! -s conftest.err
   11519  1.1  christos        } && test -s conftest.$ac_objext; then
   11520  1.1  christos   ac_cv_var_h_errno=yes
   11521  1.1  christos else
   11522  1.1  christos   echo "$as_me: failed program was:" >&5
   11523  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   11524  1.1  christos 
   11525  1.1  christos 	ac_cv_var_h_errno=no
   11526  1.1  christos fi
   11527  1.1  christos 
   11528  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11529  1.1  christos fi
   11530  1.1  christos 
   11531  1.1  christos 	{ echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
   11532  1.1  christos echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
   11533  1.1  christos 	if test "$ac_cv_var_h_errno" = "yes"; then
   11534  1.1  christos 		cat >>confdefs.h <<\_ACEOF
   11535  1.1  christos #define HAVE_H_ERRNO 1
   11536  1.1  christos _ACEOF
   11537  1.1  christos 
   11538  1.1  christos 	fi
   11539  1.1  christos 
   11540  1.1  christos 
   11541  1.1  christos # Check for SSLeay
   11542  1.1  christos { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
   11543  1.1  christos echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
   11544  1.1  christos # Specify location for both includes and libraries.
   11545  1.1  christos want_libcrypto=youmama
   11546  1.1  christos 
   11547  1.1  christos # Check whether --with-crypto was given.
   11548  1.1  christos if test "${with_crypto+set}" = set; then
   11549  1.1  christos   withval=$with_crypto;
   11550  1.1  christos 	if test $withval = no
   11551  1.1  christos 	then
   11552  1.1  christos 		want_libcrypto=no
   11553  1.1  christos 		{ echo "$as_me:$LINENO: result: no" >&5
   11554  1.1  christos echo "${ECHO_T}no" >&6; }
   11555  1.1  christos 	elif test $withval = yes
   11556  1.1  christos 	then
   11557  1.1  christos 		want_libcrypto=yes
   11558  1.1  christos 		{ echo "$as_me:$LINENO: result: yes" >&5
   11559  1.1  christos echo "${ECHO_T}yes" >&6; }
   11560  1.1  christos 	else
   11561  1.1  christos 		want_libcrypto=yes
   11562  1.1  christos 		{ echo "$as_me:$LINENO: result: yes" >&5
   11563  1.1  christos echo "${ECHO_T}yes" >&6; }
   11564  1.1  christos 		crypto_dir=$withval
   11565  1.1  christos 	fi
   11566  1.1  christos 
   11567  1.1  christos else
   11568  1.1  christos 
   11569  1.1  christos 	#
   11570  1.1  christos 	# Use libcrypto if it's present, otherwise don't.
   11571  1.1  christos 	#
   11572  1.1  christos 	want_libcrypto=ifavailable
   11573  1.1  christos 	{ echo "$as_me:$LINENO: result: yes, if available" >&5
   11574  1.1  christos echo "${ECHO_T}yes, if available" >&6; }
   11575  1.1  christos 
   11576  1.1  christos fi
   11577  1.1  christos 
   11578  1.1  christos if test "$want_libcrypto" != "no"; then
   11579  1.1  christos 	ac_cv_ssleay_path=no
   11580  1.1  christos 	incdir=no
   11581  1.1  christos 	if test "x$crypto_dir" = x; then
   11582  1.1  christos 		#
   11583  1.1  christos 		# Location not specified; check the default locations.
   11584  1.1  christos 		#
   11585  1.1  christos 		{ echo "$as_me:$LINENO: checking where SSLeay is located" >&5
   11586  1.1  christos echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
   11587  1.1  christos 		dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
   11588  1.1  christos 		if test "x${host_alias}" != x; then
   11589  1.1  christos 			dirs="/usr/${host_alias} $dirs"
   11590  1.1  christos 		fi
   11591  1.1  christos 		for dir in $dirs; do
   11592  1.1  christos 
   11593  1.1  christos 	#
   11594  1.1  christos 	# Find the last component of $libdir; it's not necessarily
   11595  1.1  christos 	# "lib" - it might be "lib64" on, for example, x86-64
   11596  1.1  christos 	# Linux systems.
   11597  1.1  christos 	#
   11598  1.1  christos 	# We assume the directory in which we're looking for
   11599  1.1  christos 	# libcrypto has a subdirectory with that as its name.
   11600  1.1  christos 	#
   11601  1.1  christos 	tmplib=`echo "$libdir" | sed 's,.*/,,'`
   11602  1.1  christos 
   11603  1.1  christos 	#
   11604  1.1  christos 	# XXX - is there a better way to check if a given library is
   11605  1.1  christos 	# in a given directory than checking each of the possible
   11606  1.1  christos 	# shared library suffixes?
   11607  1.1  christos 	#
   11608  1.1  christos 	# Are there any other suffixes we need to look for?  Do we
   11609  1.1  christos 	# have to worry about ".so.{version}"?
   11610  1.1  christos 	#
   11611  1.1  christos 	# Or should we just look for "libcrypto.*"?
   11612  1.1  christos 	#
   11613  1.1  christos 	if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a" -o \
   11614  1.1  christos 		          	    -f "$dir/$tmplib/libcrypto.so" -o \
   11615  1.1  christos 		          	    -f "$dir/$tmplib/libcrypto.sl" -o \
   11616  1.1  christos 			  	    -f "$dir/$tmplib/libcrypto.dylib" \); then
   11617  1.1  christos 		ac_cv_ssleay_path="$dir"
   11618  1.1  christos 	fi
   11619  1.1  christos 
   11620  1.1  christos 	#
   11621  1.1  christos 	# Make sure we have the headers as well.
   11622  1.1  christos 	#
   11623  1.1  christos 	if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
   11624  1.1  christos 		incdir="-I$dir/include"
   11625  1.1  christos 	fi
   11626  1.1  christos 
   11627  1.1  christos 
   11628  1.1  christos 			if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
   11629  1.1  christos 				break;
   11630  1.1  christos 			else
   11631  1.1  christos 				ac_cv_ssleay_path=no
   11632  1.1  christos 				incdir=no
   11633  1.1  christos 			fi
   11634  1.1  christos 		done
   11635  1.1  christos 		if test "$ac_cv_ssleay_path" != no; then
   11636  1.1  christos 			{ echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
   11637  1.1  christos echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
   11638  1.1  christos 		fi
   11639  1.1  christos 	else
   11640  1.1  christos 		{ echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
   11641  1.1  christos echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
   11642  1.1  christos 
   11643  1.1  christos 	#
   11644  1.1  christos 	# Find the last component of $libdir; it's not necessarily
   11645  1.1  christos 	# "lib" - it might be "lib64" on, for example, x86-64
   11646  1.1  christos 	# Linux systems.
   11647  1.1  christos 	#
   11648  1.1  christos 	# We assume the directory in which we're looking for
   11649  1.1  christos 	# libcrypto has a subdirectory with that as its name.
   11650  1.1  christos 	#
   11651  1.1  christos 	tmplib=`echo "$libdir" | sed 's,.*/,,'`
   11652  1.1  christos 
   11653  1.1  christos 	#
   11654  1.1  christos 	# XXX - is there a better way to check if a given library is
   11655  1.1  christos 	# in a given directory than checking each of the possible
   11656  1.1  christos 	# shared library suffixes?
   11657  1.1  christos 	#
   11658  1.1  christos 	# Are there any other suffixes we need to look for?  Do we
   11659  1.1  christos 	# have to worry about ".so.{version}"?
   11660  1.1  christos 	#
   11661  1.1  christos 	# Or should we just look for "libcrypto.*"?
   11662  1.1  christos 	#
   11663  1.1  christos 	if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
   11664  1.1  christos 		          	    -f "$crypto_dir/$tmplib/libcrypto.so" -o \
   11665  1.1  christos 		          	    -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
   11666  1.1  christos 			  	    -f "$crypto_dir/$tmplib/libcrypto.dylib" \); then
   11667  1.1  christos 		ac_cv_ssleay_path="$crypto_dir"
   11668  1.1  christos 	fi
   11669  1.1  christos 
   11670  1.1  christos 	#
   11671  1.1  christos 	# Make sure we have the headers as well.
   11672  1.1  christos 	#
   11673  1.1  christos 	if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
   11674  1.1  christos 		incdir="-I$crypto_dir/include"
   11675  1.1  christos 	fi
   11676  1.1  christos 
   11677  1.1  christos 		if test "$ac_cv_ssleay_path" != no; then
   11678  1.1  christos 			{ echo "$as_me:$LINENO: result: found" >&5
   11679  1.1  christos echo "${ECHO_T}found" >&6; }
   11680  1.1  christos 		fi
   11681  1.1  christos 	fi
   11682  1.1  christos 	if test "$ac_cv_ssleay_path" != no; then
   11683  1.1  christos 		V_INCLS="$V_INCLS $incdir"
   11684  1.1  christos 		if test "$dir" != "/usr"; then
   11685  1.1  christos 			LDFLAGS="-L$dir/lib $LDFLAGS"
   11686  1.1  christos 		fi
   11687  1.1  christos 		if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
   11688  1.1  christos 			LIBS="$LIBS -lRSAglue"
   11689  1.1  christos 		fi
   11690  1.1  christos 		if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
   11691  1.1  christos 			LIBS="$LIBS -lrsaref"
   11692  1.1  christos 		fi
   11693  1.1  christos 
   11694  1.1  christos { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
   11695  1.1  christos echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
   11696  1.1  christos if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
   11697  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11698  1.1  christos else
   11699  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   11700  1.1  christos LIBS="-lcrypto  $LIBS"
   11701  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   11702  1.1  christos /* confdefs.h.  */
   11703  1.1  christos _ACEOF
   11704  1.1  christos cat confdefs.h >>conftest.$ac_ext
   11705  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   11706  1.1  christos /* end confdefs.h.  */
   11707  1.1  christos 
   11708  1.1  christos /* Override any GCC internal prototype to avoid an error.
   11709  1.1  christos    Use char because int might match the return type of a GCC
   11710  1.1  christos    builtin and then its argument prototype would still apply.  */
   11711  1.1  christos #ifdef __cplusplus
   11712  1.1  christos extern "C"
   11713  1.1  christos #endif
   11714  1.1  christos char DES_cbc_encrypt ();
   11715  1.1  christos int
   11716  1.1  christos main ()
   11717  1.1  christos {
   11718  1.1  christos return DES_cbc_encrypt ();
   11719  1.1  christos   ;
   11720  1.1  christos   return 0;
   11721  1.1  christos }
   11722  1.1  christos _ACEOF
   11723  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   11724  1.1  christos if { (ac_try="$ac_link"
   11725  1.1  christos case "(($ac_try" in
   11726  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11727  1.1  christos   *) ac_try_echo=$ac_try;;
   11728  1.1  christos esac
   11729  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11730  1.1  christos   (eval "$ac_link") 2>conftest.er1
   11731  1.1  christos   ac_status=$?
   11732  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   11733  1.1  christos   rm -f conftest.er1
   11734  1.1  christos   cat conftest.err >&5
   11735  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11736  1.1  christos   (exit $ac_status); } && {
   11737  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   11738  1.1  christos 	 test ! -s conftest.err
   11739  1.1  christos        } && test -s conftest$ac_exeext &&
   11740  1.1  christos        $as_test_x conftest$ac_exeext; then
   11741  1.1  christos   ac_cv_lib_crypto_DES_cbc_encrypt=yes
   11742  1.1  christos else
   11743  1.1  christos   echo "$as_me: failed program was:" >&5
   11744  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   11745  1.1  christos 
   11746  1.1  christos 	ac_cv_lib_crypto_DES_cbc_encrypt=no
   11747  1.1  christos fi
   11748  1.1  christos 
   11749  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11750  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   11751  1.1  christos LIBS=$ac_check_lib_save_LIBS
   11752  1.1  christos fi
   11753  1.1  christos { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
   11754  1.1  christos echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
   11755  1.1  christos if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
   11756  1.1  christos   cat >>confdefs.h <<_ACEOF
   11757  1.1  christos #define HAVE_LIBCRYPTO 1
   11758  1.1  christos _ACEOF
   11759  1.1  christos 
   11760  1.1  christos   LIBS="-lcrypto $LIBS"
   11761  1.1  christos 
   11762  1.1  christos fi
   11763  1.1  christos 
   11764  1.1  christos 
   11765  1.3  christos 		savedcppflags="$CPPFLAGS"
   11766  1.1  christos 		CPPFLAGS="$CPPFLAGS $V_INCLS"
   11767  1.1  christos 
   11768  1.1  christos for ac_header in openssl/evp.h
   11769  1.1  christos do
   11770  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11771  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11772  1.1  christos   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11773  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11774  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11775  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11776  1.1  christos fi
   11777  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   11778  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11779  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   11780  1.1  christos else
   11781  1.1  christos   # Is the header compilable?
   11782  1.1  christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   11783  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   11784  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   11785  1.1  christos /* confdefs.h.  */
   11786  1.1  christos _ACEOF
   11787  1.1  christos cat confdefs.h >>conftest.$ac_ext
   11788  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   11789  1.1  christos /* end confdefs.h.  */
   11790  1.1  christos $ac_includes_default
   11791  1.1  christos #include <$ac_header>
   11792  1.1  christos _ACEOF
   11793  1.1  christos rm -f conftest.$ac_objext
   11794  1.1  christos if { (ac_try="$ac_compile"
   11795  1.1  christos case "(($ac_try" in
   11796  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11797  1.1  christos   *) ac_try_echo=$ac_try;;
   11798  1.1  christos esac
   11799  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11800  1.1  christos   (eval "$ac_compile") 2>conftest.er1
   11801  1.1  christos   ac_status=$?
   11802  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   11803  1.1  christos   rm -f conftest.er1
   11804  1.1  christos   cat conftest.err >&5
   11805  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11806  1.1  christos   (exit $ac_status); } && {
   11807  1.1  christos 	 test -z "$ac_c_werror_flag" ||
   11808  1.1  christos 	 test ! -s conftest.err
   11809  1.1  christos        } && test -s conftest.$ac_objext; then
   11810  1.1  christos   ac_header_compiler=yes
   11811  1.1  christos else
   11812  1.1  christos   echo "$as_me: failed program was:" >&5
   11813  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   11814  1.1  christos 
   11815  1.1  christos 	ac_header_compiler=no
   11816  1.1  christos fi
   11817  1.1  christos 
   11818  1.1  christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11819  1.1  christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   11820  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6; }
   11821  1.1  christos 
   11822  1.1  christos # Is the header present?
   11823  1.1  christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   11824  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   11825  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   11826  1.1  christos /* confdefs.h.  */
   11827  1.1  christos _ACEOF
   11828  1.1  christos cat confdefs.h >>conftest.$ac_ext
   11829  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   11830  1.1  christos /* end confdefs.h.  */
   11831  1.1  christos #include <$ac_header>
   11832  1.1  christos _ACEOF
   11833  1.1  christos if { (ac_try="$ac_cpp conftest.$ac_ext"
   11834  1.1  christos case "(($ac_try" in
   11835  1.1  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11836  1.1  christos   *) ac_try_echo=$ac_try;;
   11837  1.1  christos esac
   11838  1.1  christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11839  1.1  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   11840  1.1  christos   ac_status=$?
   11841  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   11842  1.1  christos   rm -f conftest.er1
   11843  1.1  christos   cat conftest.err >&5
   11844  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11845  1.1  christos   (exit $ac_status); } >/dev/null && {
   11846  1.1  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   11847  1.1  christos 	 test ! -s conftest.err
   11848  1.1  christos        }; then
   11849  1.1  christos   ac_header_preproc=yes
   11850  1.1  christos else
   11851  1.1  christos   echo "$as_me: failed program was:" >&5
   11852  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   11853  1.1  christos 
   11854  1.1  christos   ac_header_preproc=no
   11855  1.1  christos fi
   11856  1.1  christos 
   11857  1.1  christos rm -f conftest.err conftest.$ac_ext
   11858  1.1  christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   11859  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6; }
   11860  1.1  christos 
   11861  1.1  christos # So?  What about this header?
   11862  1.1  christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   11863  1.1  christos   yes:no: )
   11864  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   11865  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   11866  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   11867  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   11868  1.1  christos     ac_header_preproc=yes
   11869  1.1  christos     ;;
   11870  1.1  christos   no:yes:* )
   11871  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   11872  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   11873  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   11874  1.1  christos echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   11875  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   11876  1.1  christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   11877  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   11878  1.1  christos echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   11879  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   11880  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   11881  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   11882  1.1  christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   11883  1.1  christos 
   11884  1.1  christos     ;;
   11885  1.1  christos esac
   11886  1.1  christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
   11887  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   11888  1.1  christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   11889  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11890  1.1  christos else
   11891  1.1  christos   eval "$as_ac_Header=\$ac_header_preproc"
   11892  1.1  christos fi
   11893  1.1  christos ac_res=`eval echo '${'$as_ac_Header'}'`
   11894  1.1  christos 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11895  1.1  christos echo "${ECHO_T}$ac_res" >&6; }
   11896  1.1  christos 
   11897  1.1  christos fi
   11898  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11899  1.1  christos   cat >>confdefs.h <<_ACEOF
   11900  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11901  1.1  christos _ACEOF
   11902  1.1  christos 
   11903  1.1  christos fi
   11904  1.1  christos 
   11905  1.1  christos done
   11906  1.1  christos 
   11907  1.3  christos 		CPPFLAGS="$savedcppflags"
   11908  1.1  christos 	else
   11909  1.1  christos 		#
   11910  1.1  christos 		# Not found.  Did the user explicitly ask for it?
   11911  1.1  christos 		#
   11912  1.1  christos 		{ echo "$as_me:$LINENO: result: not found" >&5
   11913  1.1  christos echo "${ECHO_T}not found" >&6; }
   11914  1.1  christos 		if test "$want_libcrypto" = yes; then
   11915  1.1  christos 			{ { echo "$as_me:$LINENO: error: SSLeay not found" >&5
   11916  1.1  christos echo "$as_me: error: SSLeay not found" >&2;}
   11917  1.1  christos    { (exit 1); exit 1; }; }
   11918  1.1  christos 		fi
   11919  1.1  christos 	fi
   11920  1.1  christos fi
   11921  1.1  christos 
   11922  1.1  christos if test "$missing_includes" = "yes"; then
   11923  1.3  christos 	CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
   11924  1.3  christos 	V_INCLS="$V_INCLS -I$srcdir/missing"
   11925  1.1  christos fi
   11926  1.1  christos 
   11927  1.1  christos 
   11928  1.1  christos 
   11929  1.1  christos 
   11930  1.1  christos 
   11931  1.1  christos 
   11932  1.1  christos 
   11933  1.1  christos 
   11934  1.1  christos 
   11935  1.1  christos 
   11936  1.1  christos # Find a good install program.  We prefer a C program (faster),
   11937  1.1  christos # so one script is as good as another.  But avoid the broken or
   11938  1.1  christos # incompatible versions:
   11939  1.1  christos # SysV /etc/install, /usr/sbin/install
   11940  1.1  christos # SunOS /usr/etc/install
   11941  1.1  christos # IRIX /sbin/install
   11942  1.1  christos # AIX /bin/install
   11943  1.1  christos # AmigaOS /C/install, which installs bootblocks on floppy discs
   11944  1.1  christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   11945  1.1  christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   11946  1.1  christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   11947  1.1  christos # OS/2's system install, which has a completely different semantic
   11948  1.1  christos # ./install, which can be erroneously created by make from ./install.sh.
   11949  1.1  christos { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   11950  1.1  christos echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
   11951  1.1  christos if test -z "$INSTALL"; then
   11952  1.1  christos if test "${ac_cv_path_install+set}" = set; then
   11953  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   11954  1.1  christos else
   11955  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11956  1.1  christos for as_dir in $PATH
   11957  1.1  christos do
   11958  1.1  christos   IFS=$as_save_IFS
   11959  1.1  christos   test -z "$as_dir" && as_dir=.
   11960  1.1  christos   # Account for people who put trailing slashes in PATH elements.
   11961  1.1  christos case $as_dir/ in
   11962  1.1  christos   ./ | .// | /cC/* | \
   11963  1.1  christos   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   11964  1.1  christos   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   11965  1.1  christos   /usr/ucb/* ) ;;
   11966  1.1  christos   *)
   11967  1.1  christos     # OSF1 and SCO ODT 3.0 have their own names for install.
   11968  1.1  christos     # Don't use installbsd from OSF since it installs stuff as root
   11969  1.1  christos     # by default.
   11970  1.1  christos     for ac_prog in ginstall scoinst install; do
   11971  1.1  christos       for ac_exec_ext in '' $ac_executable_extensions; do
   11972  1.1  christos 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   11973  1.1  christos 	  if test $ac_prog = install &&
   11974  1.1  christos 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11975  1.1  christos 	    # AIX install.  It has an incompatible calling convention.
   11976  1.1  christos 	    :
   11977  1.1  christos 	  elif test $ac_prog = install &&
   11978  1.1  christos 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11979  1.1  christos 	    # program-specific install script used by HP pwplus--don't use.
   11980  1.1  christos 	    :
   11981  1.1  christos 	  else
   11982  1.1  christos 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   11983  1.1  christos 	    break 3
   11984  1.1  christos 	  fi
   11985  1.1  christos 	fi
   11986  1.1  christos       done
   11987  1.1  christos     done
   11988  1.1  christos     ;;
   11989  1.1  christos esac
   11990  1.1  christos done
   11991  1.1  christos IFS=$as_save_IFS
   11992  1.1  christos 
   11993  1.1  christos 
   11994  1.1  christos fi
   11995  1.1  christos   if test "${ac_cv_path_install+set}" = set; then
   11996  1.1  christos     INSTALL=$ac_cv_path_install
   11997  1.1  christos   else
   11998  1.1  christos     # As a last resort, use the slow shell script.  Don't cache a
   11999  1.1  christos     # value for INSTALL within a source directory, because that will
   12000  1.1  christos     # break other packages using the cache if that directory is
   12001  1.1  christos     # removed, or if the value is a relative name.
   12002  1.1  christos     INSTALL=$ac_install_sh
   12003  1.1  christos   fi
   12004  1.1  christos fi
   12005  1.1  christos { echo "$as_me:$LINENO: result: $INSTALL" >&5
   12006  1.1  christos echo "${ECHO_T}$INSTALL" >&6; }
   12007  1.1  christos 
   12008  1.1  christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   12009  1.1  christos # It thinks the first close brace ends the variable substitution.
   12010  1.1  christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   12011  1.1  christos 
   12012  1.1  christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   12013  1.1  christos 
   12014  1.1  christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   12015  1.1  christos 
   12016  1.1  christos 
   12017  1.1  christos ac_config_headers="$ac_config_headers config.h"
   12018  1.1  christos 
   12019  1.1  christos 
   12020  1.1  christos ac_config_commands="$ac_config_commands default-1"
   12021  1.1  christos 
   12022  1.1  christos ac_config_files="$ac_config_files Makefile tcpdump.1"
   12023  1.1  christos 
   12024  1.1  christos cat >confcache <<\_ACEOF
   12025  1.1  christos # This file is a shell script that caches the results of configure
   12026  1.1  christos # tests run on this system so they can be shared between configure
   12027  1.1  christos # scripts and configure runs, see configure's option --config-cache.
   12028  1.1  christos # It is not useful on other systems.  If it contains results you don't
   12029  1.1  christos # want to keep, you may remove or edit it.
   12030  1.1  christos #
   12031  1.1  christos # config.status only pays attention to the cache file if you give it
   12032  1.1  christos # the --recheck option to rerun configure.
   12033  1.1  christos #
   12034  1.1  christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
   12035  1.1  christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
   12036  1.1  christos # following values.
   12037  1.1  christos 
   12038  1.1  christos _ACEOF
   12039  1.1  christos 
   12040  1.1  christos # The following way of writing the cache mishandles newlines in values,
   12041  1.1  christos # but we know of no workaround that is simple, portable, and efficient.
   12042  1.1  christos # So, we kill variables containing newlines.
   12043  1.1  christos # Ultrix sh set writes to stderr and can't be redirected directly,
   12044  1.1  christos # and sets the high bit in the cache file unless we assign to the vars.
   12045  1.1  christos (
   12046  1.1  christos   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   12047  1.1  christos     eval ac_val=\$$ac_var
   12048  1.1  christos     case $ac_val in #(
   12049  1.1  christos     *${as_nl}*)
   12050  1.1  christos       case $ac_var in #(
   12051  1.1  christos       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   12052  1.1  christos echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   12053  1.1  christos       esac
   12054  1.1  christos       case $ac_var in #(
   12055  1.1  christos       _ | IFS | as_nl) ;; #(
   12056  1.1  christos       *) $as_unset $ac_var ;;
   12057  1.1  christos       esac ;;
   12058  1.1  christos     esac
   12059  1.1  christos   done
   12060  1.1  christos 
   12061  1.1  christos   (set) 2>&1 |
   12062  1.1  christos     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   12063  1.1  christos     *${as_nl}ac_space=\ *)
   12064  1.1  christos       # `set' does not quote correctly, so add quotes (double-quote
   12065  1.1  christos       # substitution turns \\\\ into \\, and sed turns \\ into \).
   12066  1.1  christos       sed -n \
   12067  1.1  christos 	"s/'/'\\\\''/g;
   12068  1.1  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   12069  1.1  christos       ;; #(
   12070  1.1  christos     *)
   12071  1.1  christos       # `set' quotes correctly as required by POSIX, so do not add quotes.
   12072  1.1  christos       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   12073  1.1  christos       ;;
   12074  1.1  christos     esac |
   12075  1.1  christos     sort
   12076  1.1  christos ) |
   12077  1.1  christos   sed '
   12078  1.1  christos      /^ac_cv_env_/b end
   12079  1.1  christos      t clear
   12080  1.1  christos      :clear
   12081  1.1  christos      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   12082  1.1  christos      t end
   12083  1.1  christos      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   12084  1.1  christos      :end' >>confcache
   12085  1.1  christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   12086  1.1  christos   if test -w "$cache_file"; then
   12087  1.1  christos     test "x$cache_file" != "x/dev/null" &&
   12088  1.1  christos       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
   12089  1.1  christos echo "$as_me: updating cache $cache_file" >&6;}
   12090  1.1  christos     cat confcache >$cache_file
   12091  1.1  christos   else
   12092  1.1  christos     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
   12093  1.1  christos echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   12094  1.1  christos   fi
   12095  1.1  christos fi
   12096  1.1  christos rm -f confcache
   12097  1.1  christos 
   12098  1.1  christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
   12099  1.1  christos # Let make expand exec_prefix.
   12100  1.1  christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   12101  1.1  christos 
   12102  1.1  christos DEFS=-DHAVE_CONFIG_H
   12103  1.1  christos 
   12104  1.1  christos ac_libobjs=
   12105  1.1  christos ac_ltlibobjs=
   12106  1.1  christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   12107  1.1  christos   # 1. Remove the extension, and $U if already installed.
   12108  1.1  christos   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   12109  1.1  christos   ac_i=`echo "$ac_i" | sed "$ac_script"`
   12110  1.1  christos   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   12111  1.1  christos   #    will be set to the directory where LIBOBJS objects are built.
   12112  1.1  christos   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   12113  1.1  christos   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
   12114  1.1  christos done
   12115  1.1  christos LIBOBJS=$ac_libobjs
   12116  1.1  christos 
   12117  1.1  christos LTLIBOBJS=$ac_ltlibobjs
   12118  1.1  christos 
   12119  1.1  christos 
   12120  1.1  christos 
   12121  1.1  christos : ${CONFIG_STATUS=./config.status}
   12122  1.1  christos ac_clean_files_save=$ac_clean_files
   12123  1.1  christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   12124  1.1  christos { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   12125  1.1  christos echo "$as_me: creating $CONFIG_STATUS" >&6;}
   12126  1.1  christos cat >$CONFIG_STATUS <<_ACEOF
   12127  1.1  christos #! $SHELL
   12128  1.1  christos # Generated by $as_me.
   12129  1.1  christos # Run this file to recreate the current configuration.
   12130  1.1  christos # Compiler output produced by configure, useful for debugging
   12131  1.1  christos # configure, is in config.log if it exists.
   12132  1.1  christos 
   12133  1.1  christos debug=false
   12134  1.1  christos ac_cs_recheck=false
   12135  1.1  christos ac_cs_silent=false
   12136  1.1  christos SHELL=\${CONFIG_SHELL-$SHELL}
   12137  1.1  christos _ACEOF
   12138  1.1  christos 
   12139  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   12140  1.1  christos ## --------------------- ##
   12141  1.1  christos ## M4sh Initialization.  ##
   12142  1.1  christos ## --------------------- ##
   12143  1.1  christos 
   12144  1.1  christos # Be more Bourne compatible
   12145  1.1  christos DUALCASE=1; export DUALCASE # for MKS sh
   12146  1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   12147  1.1  christos   emulate sh
   12148  1.1  christos   NULLCMD=:
   12149  1.1  christos   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   12150  1.1  christos   # is contrary to our usage.  Disable this feature.
   12151  1.1  christos   alias -g '${1+"$@"}'='"$@"'
   12152  1.1  christos   setopt NO_GLOB_SUBST
   12153  1.1  christos else
   12154  1.1  christos   case `(set -o) 2>/dev/null` in
   12155  1.1  christos   *posix*) set -o posix ;;
   12156  1.1  christos esac
   12157  1.1  christos 
   12158  1.1  christos fi
   12159  1.1  christos 
   12160  1.1  christos 
   12161  1.1  christos 
   12162  1.1  christos 
   12163  1.1  christos # PATH needs CR
   12164  1.1  christos # Avoid depending upon Character Ranges.
   12165  1.1  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   12166  1.1  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   12167  1.1  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   12168  1.1  christos as_cr_digits='0123456789'
   12169  1.1  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
   12170  1.1  christos 
   12171  1.1  christos # The user is always right.
   12172  1.1  christos if test "${PATH_SEPARATOR+set}" != set; then
   12173  1.1  christos   echo "#! /bin/sh" >conf$$.sh
   12174  1.1  christos   echo  "exit 0"   >>conf$$.sh
   12175  1.1  christos   chmod +x conf$$.sh
   12176  1.1  christos   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   12177  1.1  christos     PATH_SEPARATOR=';'
   12178  1.1  christos   else
   12179  1.1  christos     PATH_SEPARATOR=:
   12180  1.1  christos   fi
   12181  1.1  christos   rm -f conf$$.sh
   12182  1.1  christos fi
   12183  1.1  christos 
   12184  1.1  christos # Support unset when possible.
   12185  1.1  christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   12186  1.1  christos   as_unset=unset
   12187  1.1  christos else
   12188  1.1  christos   as_unset=false
   12189  1.1  christos fi
   12190  1.1  christos 
   12191  1.1  christos 
   12192  1.1  christos # IFS
   12193  1.1  christos # We need space, tab and new line, in precisely that order.  Quoting is
   12194  1.1  christos # there to prevent editors from complaining about space-tab.
   12195  1.1  christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   12196  1.1  christos # splitting by setting IFS to empty value.)
   12197  1.1  christos as_nl='
   12198  1.1  christos '
   12199  1.1  christos IFS=" ""	$as_nl"
   12200  1.1  christos 
   12201  1.1  christos # Find who we are.  Look in the path if we contain no directory separator.
   12202  1.1  christos case $0 in
   12203  1.1  christos   *[\\/]* ) as_myself=$0 ;;
   12204  1.1  christos   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12205  1.1  christos for as_dir in $PATH
   12206  1.1  christos do
   12207  1.1  christos   IFS=$as_save_IFS
   12208  1.1  christos   test -z "$as_dir" && as_dir=.
   12209  1.1  christos   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   12210  1.1  christos done
   12211  1.1  christos IFS=$as_save_IFS
   12212  1.1  christos 
   12213  1.1  christos      ;;
   12214  1.1  christos esac
   12215  1.1  christos # We did not find ourselves, most probably we were run as `sh COMMAND'
   12216  1.1  christos # in which case we are not to be found in the path.
   12217  1.1  christos if test "x$as_myself" = x; then
   12218  1.1  christos   as_myself=$0
   12219  1.1  christos fi
   12220  1.1  christos if test ! -f "$as_myself"; then
   12221  1.1  christos   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   12222  1.1  christos   { (exit 1); exit 1; }
   12223  1.1  christos fi
   12224  1.1  christos 
   12225  1.1  christos # Work around bugs in pre-3.0 UWIN ksh.
   12226  1.1  christos for as_var in ENV MAIL MAILPATH
   12227  1.1  christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   12228  1.1  christos done
   12229  1.1  christos PS1='$ '
   12230  1.1  christos PS2='> '
   12231  1.1  christos PS4='+ '
   12232  1.1  christos 
   12233  1.1  christos # NLS nuisances.
   12234  1.1  christos for as_var in \
   12235  1.1  christos   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   12236  1.1  christos   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   12237  1.1  christos   LC_TELEPHONE LC_TIME
   12238  1.1  christos do
   12239  1.1  christos   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   12240  1.1  christos     eval $as_var=C; export $as_var
   12241  1.1  christos   else
   12242  1.1  christos     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   12243  1.1  christos   fi
   12244  1.1  christos done
   12245  1.1  christos 
   12246  1.1  christos # Required to use basename.
   12247  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1 &&
   12248  1.1  christos    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   12249  1.1  christos   as_expr=expr
   12250  1.1  christos else
   12251  1.1  christos   as_expr=false
   12252  1.1  christos fi
   12253  1.1  christos 
   12254  1.1  christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   12255  1.1  christos   as_basename=basename
   12256  1.1  christos else
   12257  1.1  christos   as_basename=false
   12258  1.1  christos fi
   12259  1.1  christos 
   12260  1.1  christos 
   12261  1.1  christos # Name of the executable.
   12262  1.1  christos as_me=`$as_basename -- "$0" ||
   12263  1.1  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   12264  1.1  christos 	 X"$0" : 'X\(//\)$' \| \
   12265  1.1  christos 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   12266  1.1  christos echo X/"$0" |
   12267  1.1  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{
   12268  1.1  christos 	    s//\1/
   12269  1.1  christos 	    q
   12270  1.1  christos 	  }
   12271  1.1  christos 	  /^X\/\(\/\/\)$/{
   12272  1.1  christos 	    s//\1/
   12273  1.1  christos 	    q
   12274  1.1  christos 	  }
   12275  1.1  christos 	  /^X\/\(\/\).*/{
   12276  1.1  christos 	    s//\1/
   12277  1.1  christos 	    q
   12278  1.1  christos 	  }
   12279  1.1  christos 	  s/.*/./; q'`
   12280  1.1  christos 
   12281  1.1  christos # CDPATH.
   12282  1.1  christos $as_unset CDPATH
   12283  1.1  christos 
   12284  1.1  christos 
   12285  1.1  christos 
   12286  1.1  christos   as_lineno_1=$LINENO
   12287  1.1  christos   as_lineno_2=$LINENO
   12288  1.1  christos   test "x$as_lineno_1" != "x$as_lineno_2" &&
   12289  1.1  christos   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   12290  1.1  christos 
   12291  1.1  christos   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   12292  1.1  christos   # uniformly replaced by the line number.  The first 'sed' inserts a
   12293  1.1  christos   # line-number line after each line using $LINENO; the second 'sed'
   12294  1.1  christos   # does the real work.  The second script uses 'N' to pair each
   12295  1.1  christos   # line-number line with the line containing $LINENO, and appends
   12296  1.1  christos   # trailing '-' during substitution so that $LINENO is not a special
   12297  1.1  christos   # case at line end.
   12298  1.1  christos   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   12299  1.1  christos   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   12300  1.1  christos   # E. McMahon (1931-1989) for sed's syntax.  :-)
   12301  1.1  christos   sed -n '
   12302  1.1  christos     p
   12303  1.1  christos     /[$]LINENO/=
   12304  1.1  christos   ' <$as_myself |
   12305  1.1  christos     sed '
   12306  1.1  christos       s/[$]LINENO.*/&-/
   12307  1.1  christos       t lineno
   12308  1.1  christos       b
   12309  1.1  christos       :lineno
   12310  1.1  christos       N
   12311  1.1  christos       :loop
   12312  1.1  christos       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   12313  1.1  christos       t loop
   12314  1.1  christos       s/-\n.*//
   12315  1.1  christos     ' >$as_me.lineno &&
   12316  1.1  christos   chmod +x "$as_me.lineno" ||
   12317  1.1  christos     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   12318  1.1  christos    { (exit 1); exit 1; }; }
   12319  1.1  christos 
   12320  1.1  christos   # Don't try to exec as it changes $[0], causing all sort of problems
   12321  1.1  christos   # (the dirname of $[0] is not the place where we might find the
   12322  1.1  christos   # original and so on.  Autoconf is especially sensitive to this).
   12323  1.1  christos   . "./$as_me.lineno"
   12324  1.1  christos   # Exit status is that of the last command.
   12325  1.1  christos   exit
   12326  1.1  christos }
   12327  1.1  christos 
   12328  1.1  christos 
   12329  1.1  christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   12330  1.1  christos   as_dirname=dirname
   12331  1.1  christos else
   12332  1.1  christos   as_dirname=false
   12333  1.1  christos fi
   12334  1.1  christos 
   12335  1.1  christos ECHO_C= ECHO_N= ECHO_T=
   12336  1.1  christos case `echo -n x` in
   12337  1.1  christos -n*)
   12338  1.1  christos   case `echo 'x\c'` in
   12339  1.1  christos   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   12340  1.1  christos   *)   ECHO_C='\c';;
   12341  1.1  christos   esac;;
   12342  1.1  christos *)
   12343  1.1  christos   ECHO_N='-n';;
   12344  1.1  christos esac
   12345  1.1  christos 
   12346  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1 &&
   12347  1.1  christos    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   12348  1.1  christos   as_expr=expr
   12349  1.1  christos else
   12350  1.1  christos   as_expr=false
   12351  1.1  christos fi
   12352  1.1  christos 
   12353  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   12354  1.1  christos if test -d conf$$.dir; then
   12355  1.1  christos   rm -f conf$$.dir/conf$$.file
   12356  1.1  christos else
   12357  1.1  christos   rm -f conf$$.dir
   12358  1.1  christos   mkdir conf$$.dir
   12359  1.1  christos fi
   12360  1.1  christos echo >conf$$.file
   12361  1.1  christos if ln -s conf$$.file conf$$ 2>/dev/null; then
   12362  1.1  christos   as_ln_s='ln -s'
   12363  1.1  christos   # ... but there are two gotchas:
   12364  1.1  christos   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   12365  1.1  christos   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   12366  1.1  christos   # In both cases, we have to default to `cp -p'.
   12367  1.1  christos   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   12368  1.1  christos     as_ln_s='cp -p'
   12369  1.1  christos elif ln conf$$.file conf$$ 2>/dev/null; then
   12370  1.1  christos   as_ln_s=ln
   12371  1.1  christos else
   12372  1.1  christos   as_ln_s='cp -p'
   12373  1.1  christos fi
   12374  1.1  christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   12375  1.1  christos rmdir conf$$.dir 2>/dev/null
   12376  1.1  christos 
   12377  1.1  christos if mkdir -p . 2>/dev/null; then
   12378  1.1  christos   as_mkdir_p=:
   12379  1.1  christos else
   12380  1.1  christos   test -d ./-p && rmdir ./-p
   12381  1.1  christos   as_mkdir_p=false
   12382  1.1  christos fi
   12383  1.1  christos 
   12384  1.1  christos if test -x / >/dev/null 2>&1; then
   12385  1.1  christos   as_test_x='test -x'
   12386  1.1  christos else
   12387  1.1  christos   if ls -dL / >/dev/null 2>&1; then
   12388  1.1  christos     as_ls_L_option=L
   12389  1.1  christos   else
   12390  1.1  christos     as_ls_L_option=
   12391  1.1  christos   fi
   12392  1.1  christos   as_test_x='
   12393  1.1  christos     eval sh -c '\''
   12394  1.1  christos       if test -d "$1"; then
   12395  1.1  christos         test -d "$1/.";
   12396  1.1  christos       else
   12397  1.1  christos 	case $1 in
   12398  1.1  christos         -*)set "./$1";;
   12399  1.1  christos 	esac;
   12400  1.1  christos 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   12401  1.1  christos 	???[sx]*):;;*)false;;esac;fi
   12402  1.1  christos     '\'' sh
   12403  1.1  christos   '
   12404  1.1  christos fi
   12405  1.1  christos as_executable_p=$as_test_x
   12406  1.1  christos 
   12407  1.1  christos # Sed expression to map a string onto a valid CPP name.
   12408  1.1  christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   12409  1.1  christos 
   12410  1.1  christos # Sed expression to map a string onto a valid variable name.
   12411  1.1  christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   12412  1.1  christos 
   12413  1.1  christos 
   12414  1.1  christos exec 6>&1
   12415  1.1  christos 
   12416  1.1  christos # Save the log message, to keep $[0] and so on meaningful, and to
   12417  1.1  christos # report actual input values of CONFIG_FILES etc. instead of their
   12418  1.1  christos # values after options handling.
   12419  1.1  christos ac_log="
   12420  1.1  christos This file was extended by $as_me, which was
   12421  1.1  christos generated by GNU Autoconf 2.61.  Invocation command line was
   12422  1.1  christos 
   12423  1.1  christos   CONFIG_FILES    = $CONFIG_FILES
   12424  1.1  christos   CONFIG_HEADERS  = $CONFIG_HEADERS
   12425  1.1  christos   CONFIG_LINKS    = $CONFIG_LINKS
   12426  1.1  christos   CONFIG_COMMANDS = $CONFIG_COMMANDS
   12427  1.1  christos   $ $0 $@
   12428  1.1  christos 
   12429  1.1  christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
   12430  1.1  christos "
   12431  1.1  christos 
   12432  1.1  christos _ACEOF
   12433  1.1  christos 
   12434  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   12435  1.1  christos # Files that config.status was made for.
   12436  1.1  christos config_files="$ac_config_files"
   12437  1.1  christos config_headers="$ac_config_headers"
   12438  1.1  christos config_commands="$ac_config_commands"
   12439  1.1  christos 
   12440  1.1  christos _ACEOF
   12441  1.1  christos 
   12442  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   12443  1.1  christos ac_cs_usage="\
   12444  1.1  christos \`$as_me' instantiates files from templates according to the
   12445  1.1  christos current configuration.
   12446  1.1  christos 
   12447  1.1  christos Usage: $0 [OPTIONS] [FILE]...
   12448  1.1  christos 
   12449  1.1  christos   -h, --help       print this help, then exit
   12450  1.1  christos   -V, --version    print version number and configuration settings, then exit
   12451  1.1  christos   -q, --quiet      do not print progress messages
   12452  1.1  christos   -d, --debug      don't remove temporary files
   12453  1.1  christos       --recheck    update $as_me by reconfiguring in the same conditions
   12454  1.1  christos   --file=FILE[:TEMPLATE]
   12455  1.1  christos 		   instantiate the configuration file FILE
   12456  1.1  christos   --header=FILE[:TEMPLATE]
   12457  1.1  christos 		   instantiate the configuration header FILE
   12458  1.1  christos 
   12459  1.1  christos Configuration files:
   12460  1.1  christos $config_files
   12461  1.1  christos 
   12462  1.1  christos Configuration headers:
   12463  1.1  christos $config_headers
   12464  1.1  christos 
   12465  1.1  christos Configuration commands:
   12466  1.1  christos $config_commands
   12467  1.1  christos 
   12468  1.1  christos Report bugs to <bug-autoconf (at] gnu.org>."
   12469  1.1  christos 
   12470  1.1  christos _ACEOF
   12471  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   12472  1.1  christos ac_cs_version="\\
   12473  1.1  christos config.status
   12474  1.1  christos configured by $0, generated by GNU Autoconf 2.61,
   12475  1.1  christos   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   12476  1.1  christos 
   12477  1.1  christos Copyright (C) 2006 Free Software Foundation, Inc.
   12478  1.1  christos This config.status script is free software; the Free Software Foundation
   12479  1.1  christos gives unlimited permission to copy, distribute and modify it."
   12480  1.1  christos 
   12481  1.1  christos ac_pwd='$ac_pwd'
   12482  1.1  christos srcdir='$srcdir'
   12483  1.1  christos INSTALL='$INSTALL'
   12484  1.1  christos _ACEOF
   12485  1.1  christos 
   12486  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   12487  1.1  christos # If no file are specified by the user, then we need to provide default
   12488  1.1  christos # value.  By we need to know if files were specified by the user.
   12489  1.1  christos ac_need_defaults=:
   12490  1.1  christos while test $# != 0
   12491  1.1  christos do
   12492  1.1  christos   case $1 in
   12493  1.1  christos   --*=*)
   12494  1.1  christos     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   12495  1.1  christos     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   12496  1.1  christos     ac_shift=:
   12497  1.1  christos     ;;
   12498  1.1  christos   *)
   12499  1.1  christos     ac_option=$1
   12500  1.1  christos     ac_optarg=$2
   12501  1.1  christos     ac_shift=shift
   12502  1.1  christos     ;;
   12503  1.1  christos   esac
   12504  1.1  christos 
   12505  1.1  christos   case $ac_option in
   12506  1.1  christos   # Handling of the options.
   12507  1.1  christos   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   12508  1.1  christos     ac_cs_recheck=: ;;
   12509  1.1  christos   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   12510  1.1  christos     echo "$ac_cs_version"; exit ;;
   12511  1.1  christos   --debug | --debu | --deb | --de | --d | -d )
   12512  1.1  christos     debug=: ;;
   12513  1.1  christos   --file | --fil | --fi | --f )
   12514  1.1  christos     $ac_shift
   12515  1.1  christos     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
   12516  1.1  christos     ac_need_defaults=false;;
   12517  1.1  christos   --header | --heade | --head | --hea )
   12518  1.1  christos     $ac_shift
   12519  1.1  christos     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
   12520  1.1  christos     ac_need_defaults=false;;
   12521  1.1  christos   --he | --h)
   12522  1.1  christos     # Conflict between --help and --header
   12523  1.1  christos     { echo "$as_me: error: ambiguous option: $1
   12524  1.1  christos Try \`$0 --help' for more information." >&2
   12525  1.1  christos    { (exit 1); exit 1; }; };;
   12526  1.1  christos   --help | --hel | -h )
   12527  1.1  christos     echo "$ac_cs_usage"; exit ;;
   12528  1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   12529  1.1  christos   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   12530  1.1  christos     ac_cs_silent=: ;;
   12531  1.1  christos 
   12532  1.1  christos   # This is an error.
   12533  1.1  christos   -*) { echo "$as_me: error: unrecognized option: $1
   12534  1.1  christos Try \`$0 --help' for more information." >&2
   12535  1.1  christos    { (exit 1); exit 1; }; } ;;
   12536  1.1  christos 
   12537  1.1  christos   *) ac_config_targets="$ac_config_targets $1"
   12538  1.1  christos      ac_need_defaults=false ;;
   12539  1.1  christos 
   12540  1.1  christos   esac
   12541  1.1  christos   shift
   12542  1.1  christos done
   12543  1.1  christos 
   12544  1.1  christos ac_configure_extra_args=
   12545  1.1  christos 
   12546  1.1  christos if $ac_cs_silent; then
   12547  1.1  christos   exec 6>/dev/null
   12548  1.1  christos   ac_configure_extra_args="$ac_configure_extra_args --silent"
   12549  1.1  christos fi
   12550  1.1  christos 
   12551  1.1  christos _ACEOF
   12552  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   12553  1.1  christos if \$ac_cs_recheck; then
   12554  1.1  christos   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
   12555  1.1  christos   CONFIG_SHELL=$SHELL
   12556  1.1  christos   export CONFIG_SHELL
   12557  1.1  christos   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   12558  1.1  christos fi
   12559  1.1  christos 
   12560  1.1  christos _ACEOF
   12561  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   12562  1.1  christos exec 5>>config.log
   12563  1.1  christos {
   12564  1.1  christos   echo
   12565  1.1  christos   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   12566  1.1  christos ## Running $as_me. ##
   12567  1.1  christos _ASBOX
   12568  1.1  christos   echo "$ac_log"
   12569  1.1  christos } >&5
   12570  1.1  christos 
   12571  1.1  christos _ACEOF
   12572  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   12573  1.1  christos #
   12574  1.1  christos # INIT-COMMANDS
   12575  1.1  christos #
   12576  1.1  christos 
   12577  1.1  christos 
   12578  1.1  christos _ACEOF
   12579  1.1  christos 
   12580  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   12581  1.1  christos 
   12582  1.1  christos # Handling of arguments.
   12583  1.1  christos for ac_config_target in $ac_config_targets
   12584  1.1  christos do
   12585  1.1  christos   case $ac_config_target in
   12586  1.1  christos     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   12587  1.1  christos     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
   12588  1.1  christos     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   12589  1.1  christos     "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
   12590  1.1  christos 
   12591  1.1  christos   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   12592  1.1  christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   12593  1.1  christos    { (exit 1); exit 1; }; };;
   12594  1.1  christos   esac
   12595  1.1  christos done
   12596  1.1  christos 
   12597  1.1  christos 
   12598  1.1  christos # If the user did not use the arguments to specify the items to instantiate,
   12599  1.1  christos # then the envvar interface is used.  Set only those that are not.
   12600  1.1  christos # We use the long form for the default assignment because of an extremely
   12601  1.1  christos # bizarre bug on SunOS 4.1.3.
   12602  1.1  christos if $ac_need_defaults; then
   12603  1.1  christos   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   12604  1.1  christos   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   12605  1.1  christos   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   12606  1.1  christos fi
   12607  1.1  christos 
   12608  1.1  christos # Have a temporary directory for convenience.  Make it in the build tree
   12609  1.1  christos # simply because there is no reason against having it here, and in addition,
   12610  1.1  christos # creating and moving files from /tmp can sometimes cause problems.
   12611  1.1  christos # Hook for its removal unless debugging.
   12612  1.1  christos # Note that there is a small window in which the directory will not be cleaned:
   12613  1.1  christos # after its creation but before its name has been assigned to `$tmp'.
   12614  1.1  christos $debug ||
   12615  1.1  christos {
   12616  1.1  christos   tmp=
   12617  1.1  christos   trap 'exit_status=$?
   12618  1.1  christos   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   12619  1.1  christos ' 0
   12620  1.1  christos   trap '{ (exit 1); exit 1; }' 1 2 13 15
   12621  1.1  christos }
   12622  1.1  christos # Create a (secure) tmp directory for tmp files.
   12623  1.1  christos 
   12624  1.1  christos {
   12625  1.1  christos   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   12626  1.1  christos   test -n "$tmp" && test -d "$tmp"
   12627  1.1  christos }  ||
   12628  1.1  christos {
   12629  1.1  christos   tmp=./conf$$-$RANDOM
   12630  1.1  christos   (umask 077 && mkdir "$tmp")
   12631  1.1  christos } ||
   12632  1.1  christos {
   12633  1.1  christos    echo "$me: cannot create a temporary directory in ." >&2
   12634  1.1  christos    { (exit 1); exit 1; }
   12635  1.1  christos }
   12636  1.1  christos 
   12637  1.1  christos #
   12638  1.1  christos # Set up the sed scripts for CONFIG_FILES section.
   12639  1.1  christos #
   12640  1.1  christos 
   12641  1.1  christos # No need to generate the scripts if there are no CONFIG_FILES.
   12642  1.1  christos # This happens for instance when ./config.status config.h
   12643  1.1  christos if test -n "$CONFIG_FILES"; then
   12644  1.1  christos 
   12645  1.1  christos _ACEOF
   12646  1.1  christos 
   12647  1.1  christos 
   12648  1.1  christos 
   12649  1.1  christos ac_delim='%!_!# '
   12650  1.1  christos for ac_last_try in false false false false false :; do
   12651  1.1  christos   cat >conf$$subs.sed <<_ACEOF
   12652  1.1  christos SHELL!$SHELL$ac_delim
   12653  1.1  christos PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
   12654  1.1  christos PACKAGE_NAME!$PACKAGE_NAME$ac_delim
   12655  1.1  christos PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
   12656  1.1  christos PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
   12657  1.1  christos PACKAGE_STRING!$PACKAGE_STRING$ac_delim
   12658  1.1  christos PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
   12659  1.1  christos exec_prefix!$exec_prefix$ac_delim
   12660  1.1  christos prefix!$prefix$ac_delim
   12661  1.1  christos program_transform_name!$program_transform_name$ac_delim
   12662  1.1  christos bindir!$bindir$ac_delim
   12663  1.1  christos sbindir!$sbindir$ac_delim
   12664  1.1  christos libexecdir!$libexecdir$ac_delim
   12665  1.1  christos datarootdir!$datarootdir$ac_delim
   12666  1.1  christos datadir!$datadir$ac_delim
   12667  1.1  christos sysconfdir!$sysconfdir$ac_delim
   12668  1.1  christos sharedstatedir!$sharedstatedir$ac_delim
   12669  1.1  christos localstatedir!$localstatedir$ac_delim
   12670  1.1  christos includedir!$includedir$ac_delim
   12671  1.1  christos oldincludedir!$oldincludedir$ac_delim
   12672  1.1  christos docdir!$docdir$ac_delim
   12673  1.1  christos infodir!$infodir$ac_delim
   12674  1.1  christos htmldir!$htmldir$ac_delim
   12675  1.1  christos dvidir!$dvidir$ac_delim
   12676  1.1  christos pdfdir!$pdfdir$ac_delim
   12677  1.1  christos psdir!$psdir$ac_delim
   12678  1.1  christos libdir!$libdir$ac_delim
   12679  1.1  christos localedir!$localedir$ac_delim
   12680  1.1  christos mandir!$mandir$ac_delim
   12681  1.1  christos DEFS!$DEFS$ac_delim
   12682  1.1  christos ECHO_C!$ECHO_C$ac_delim
   12683  1.1  christos ECHO_N!$ECHO_N$ac_delim
   12684  1.1  christos ECHO_T!$ECHO_T$ac_delim
   12685  1.1  christos LIBS!$LIBS$ac_delim
   12686  1.1  christos build_alias!$build_alias$ac_delim
   12687  1.1  christos host_alias!$host_alias$ac_delim
   12688  1.1  christos target_alias!$target_alias$ac_delim
   12689  1.1  christos build!$build$ac_delim
   12690  1.1  christos build_cpu!$build_cpu$ac_delim
   12691  1.1  christos build_vendor!$build_vendor$ac_delim
   12692  1.1  christos build_os!$build_os$ac_delim
   12693  1.1  christos host!$host$ac_delim
   12694  1.1  christos host_cpu!$host_cpu$ac_delim
   12695  1.1  christos host_vendor!$host_vendor$ac_delim
   12696  1.1  christos host_os!$host_os$ac_delim
   12697  1.1  christos SHLICC2!$SHLICC2$ac_delim
   12698  1.1  christos CC!$CC$ac_delim
   12699  1.1  christos CFLAGS!$CFLAGS$ac_delim
   12700  1.1  christos LDFLAGS!$LDFLAGS$ac_delim
   12701  1.1  christos CPPFLAGS!$CPPFLAGS$ac_delim
   12702  1.1  christos ac_ct_CC!$ac_ct_CC$ac_delim
   12703  1.1  christos EXEEXT!$EXEEXT$ac_delim
   12704  1.1  christos OBJEXT!$OBJEXT$ac_delim
   12705  1.1  christos CPP!$CPP$ac_delim
   12706  1.1  christos GREP!$GREP$ac_delim
   12707  1.1  christos EGREP!$EGREP$ac_delim
   12708  1.1  christos LIBOBJS!$LIBOBJS$ac_delim
   12709  1.1  christos PCAP_CONFIG!$PCAP_CONFIG$ac_delim
   12710  1.1  christos RANLIB!$RANLIB$ac_delim
   12711  1.1  christos V_CCOPT!$V_CCOPT$ac_delim
   12712  1.1  christos V_DEFS!$V_DEFS$ac_delim
   12713  1.1  christos V_GROUP!$V_GROUP$ac_delim
   12714  1.1  christos V_INCLS!$V_INCLS$ac_delim
   12715  1.1  christos V_PCAPDEP!$V_PCAPDEP$ac_delim
   12716  1.1  christos LOCALSRC!$LOCALSRC$ac_delim
   12717  1.1  christos MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
   12718  1.1  christos MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
   12719  1.1  christos INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
   12720  1.1  christos INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
   12721  1.1  christos INSTALL_DATA!$INSTALL_DATA$ac_delim
   12722  1.1  christos LTLIBOBJS!$LTLIBOBJS$ac_delim
   12723  1.1  christos _ACEOF
   12724  1.1  christos 
   12725  1.1  christos   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
   12726  1.1  christos     break
   12727  1.1  christos   elif $ac_last_try; then
   12728  1.1  christos     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   12729  1.1  christos echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   12730  1.1  christos    { (exit 1); exit 1; }; }
   12731  1.1  christos   else
   12732  1.1  christos     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   12733  1.1  christos   fi
   12734  1.1  christos done
   12735  1.1  christos 
   12736  1.1  christos ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   12737  1.1  christos if test -n "$ac_eof"; then
   12738  1.1  christos   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   12739  1.1  christos   ac_eof=`expr $ac_eof + 1`
   12740  1.1  christos fi
   12741  1.1  christos 
   12742  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   12743  1.1  christos cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
   12744  1.1  christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
   12745  1.1  christos _ACEOF
   12746  1.1  christos sed '
   12747  1.1  christos s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   12748  1.1  christos s/^/s,@/; s/!/@,|#_!!_#|/
   12749  1.1  christos :n
   12750  1.1  christos t n
   12751  1.1  christos s/'"$ac_delim"'$/,g/; t
   12752  1.1  christos s/$/\\/; p
   12753  1.1  christos N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   12754  1.1  christos ' >>$CONFIG_STATUS <conf$$subs.sed
   12755  1.1  christos rm -f conf$$subs.sed
   12756  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   12757  1.1  christos :end
   12758  1.1  christos s/|#_!!_#|//g
   12759  1.1  christos CEOF$ac_eof
   12760  1.1  christos _ACEOF
   12761  1.1  christos 
   12762  1.1  christos 
   12763  1.1  christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
   12764  1.1  christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   12765  1.1  christos # trailing colons and then remove the whole line if VPATH becomes empty
   12766  1.1  christos # (actually we leave an empty line to preserve line numbers).
   12767  1.1  christos if test "x$srcdir" = x.; then
   12768  1.1  christos   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   12769  1.1  christos s/:*\$(srcdir):*/:/
   12770  1.1  christos s/:*\${srcdir}:*/:/
   12771  1.1  christos s/:*@srcdir@:*/:/
   12772  1.1  christos s/^\([^=]*=[	 ]*\):*/\1/
   12773  1.1  christos s/:*$//
   12774  1.1  christos s/^[^=]*=[	 ]*$//
   12775  1.1  christos }'
   12776  1.1  christos fi
   12777  1.1  christos 
   12778  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   12779  1.1  christos fi # test -n "$CONFIG_FILES"
   12780  1.1  christos 
   12781  1.1  christos 
   12782  1.1  christos for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
   12783  1.1  christos do
   12784  1.1  christos   case $ac_tag in
   12785  1.1  christos   :[FHLC]) ac_mode=$ac_tag; continue;;
   12786  1.1  christos   esac
   12787  1.1  christos   case $ac_mode$ac_tag in
   12788  1.1  christos   :[FHL]*:*);;
   12789  1.1  christos   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
   12790  1.1  christos echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   12791  1.1  christos    { (exit 1); exit 1; }; };;
   12792  1.1  christos   :[FH]-) ac_tag=-:-;;
   12793  1.1  christos   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   12794  1.1  christos   esac
   12795  1.1  christos   ac_save_IFS=$IFS
   12796  1.1  christos   IFS=:
   12797  1.1  christos   set x $ac_tag
   12798  1.1  christos   IFS=$ac_save_IFS
   12799  1.1  christos   shift
   12800  1.1  christos   ac_file=$1
   12801  1.1  christos   shift
   12802  1.1  christos 
   12803  1.1  christos   case $ac_mode in
   12804  1.1  christos   :L) ac_source=$1;;
   12805  1.1  christos   :[FH])
   12806  1.1  christos     ac_file_inputs=
   12807  1.1  christos     for ac_f
   12808  1.1  christos     do
   12809  1.1  christos       case $ac_f in
   12810  1.1  christos       -) ac_f="$tmp/stdin";;
   12811  1.1  christos       *) # Look for the file first in the build tree, then in the source tree
   12812  1.1  christos 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   12813  1.1  christos 	 # because $ac_f cannot contain `:'.
   12814  1.1  christos 	 test -f "$ac_f" ||
   12815  1.1  christos 	   case $ac_f in
   12816  1.1  christos 	   [\\/$]*) false;;
   12817  1.1  christos 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   12818  1.1  christos 	   esac ||
   12819  1.1  christos 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
   12820  1.1  christos echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   12821  1.1  christos    { (exit 1); exit 1; }; };;
   12822  1.1  christos       esac
   12823  1.1  christos       ac_file_inputs="$ac_file_inputs $ac_f"
   12824  1.1  christos     done
   12825  1.1  christos 
   12826  1.1  christos     # Let's still pretend it is `configure' which instantiates (i.e., don't
   12827  1.1  christos     # use $as_me), people would be surprised to read:
   12828  1.1  christos     #    /* config.h.  Generated by config.status.  */
   12829  1.1  christos     configure_input="Generated from "`IFS=:
   12830  1.1  christos 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
   12831  1.1  christos     if test x"$ac_file" != x-; then
   12832  1.1  christos       configure_input="$ac_file.  $configure_input"
   12833  1.1  christos       { echo "$as_me:$LINENO: creating $ac_file" >&5
   12834  1.1  christos echo "$as_me: creating $ac_file" >&6;}
   12835  1.1  christos     fi
   12836  1.1  christos 
   12837  1.1  christos     case $ac_tag in
   12838  1.1  christos     *:-:* | *:-) cat >"$tmp/stdin";;
   12839  1.1  christos     esac
   12840  1.1  christos     ;;
   12841  1.1  christos   esac
   12842  1.1  christos 
   12843  1.1  christos   ac_dir=`$as_dirname -- "$ac_file" ||
   12844  1.1  christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   12845  1.1  christos 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   12846  1.1  christos 	 X"$ac_file" : 'X\(//\)$' \| \
   12847  1.1  christos 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   12848  1.1  christos echo X"$ac_file" |
   12849  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   12850  1.1  christos 	    s//\1/
   12851  1.1  christos 	    q
   12852  1.1  christos 	  }
   12853  1.1  christos 	  /^X\(\/\/\)[^/].*/{
   12854  1.1  christos 	    s//\1/
   12855  1.1  christos 	    q
   12856  1.1  christos 	  }
   12857  1.1  christos 	  /^X\(\/\/\)$/{
   12858  1.1  christos 	    s//\1/
   12859  1.1  christos 	    q
   12860  1.1  christos 	  }
   12861  1.1  christos 	  /^X\(\/\).*/{
   12862  1.1  christos 	    s//\1/
   12863  1.1  christos 	    q
   12864  1.1  christos 	  }
   12865  1.1  christos 	  s/.*/./; q'`
   12866  1.1  christos   { as_dir="$ac_dir"
   12867  1.1  christos   case $as_dir in #(
   12868  1.1  christos   -*) as_dir=./$as_dir;;
   12869  1.1  christos   esac
   12870  1.1  christos   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   12871  1.1  christos     as_dirs=
   12872  1.1  christos     while :; do
   12873  1.1  christos       case $as_dir in #(
   12874  1.1  christos       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
   12875  1.1  christos       *) as_qdir=$as_dir;;
   12876  1.1  christos       esac
   12877  1.1  christos       as_dirs="'$as_qdir' $as_dirs"
   12878  1.1  christos       as_dir=`$as_dirname -- "$as_dir" ||
   12879  1.1  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   12880  1.1  christos 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   12881  1.1  christos 	 X"$as_dir" : 'X\(//\)$' \| \
   12882  1.1  christos 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   12883  1.1  christos echo X"$as_dir" |
   12884  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   12885  1.1  christos 	    s//\1/
   12886  1.1  christos 	    q
   12887  1.1  christos 	  }
   12888  1.1  christos 	  /^X\(\/\/\)[^/].*/{
   12889  1.1  christos 	    s//\1/
   12890  1.1  christos 	    q
   12891  1.1  christos 	  }
   12892  1.1  christos 	  /^X\(\/\/\)$/{
   12893  1.1  christos 	    s//\1/
   12894  1.1  christos 	    q
   12895  1.1  christos 	  }
   12896  1.1  christos 	  /^X\(\/\).*/{
   12897  1.1  christos 	    s//\1/
   12898  1.1  christos 	    q
   12899  1.1  christos 	  }
   12900  1.1  christos 	  s/.*/./; q'`
   12901  1.1  christos       test -d "$as_dir" && break
   12902  1.1  christos     done
   12903  1.1  christos     test -z "$as_dirs" || eval "mkdir $as_dirs"
   12904  1.1  christos   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   12905  1.1  christos echo "$as_me: error: cannot create directory $as_dir" >&2;}
   12906  1.1  christos    { (exit 1); exit 1; }; }; }
   12907  1.1  christos   ac_builddir=.
   12908  1.1  christos 
   12909  1.1  christos case "$ac_dir" in
   12910  1.1  christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   12911  1.1  christos *)
   12912  1.1  christos   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   12913  1.1  christos   # A ".." for each directory in $ac_dir_suffix.
   12914  1.1  christos   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   12915  1.1  christos   case $ac_top_builddir_sub in
   12916  1.1  christos   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   12917  1.1  christos   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   12918  1.1  christos   esac ;;
   12919  1.1  christos esac
   12920  1.1  christos ac_abs_top_builddir=$ac_pwd
   12921  1.1  christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
   12922  1.1  christos # for backward compatibility:
   12923  1.1  christos ac_top_builddir=$ac_top_build_prefix
   12924  1.1  christos 
   12925  1.1  christos case $srcdir in
   12926  1.1  christos   .)  # We are building in place.
   12927  1.1  christos     ac_srcdir=.
   12928  1.1  christos     ac_top_srcdir=$ac_top_builddir_sub
   12929  1.1  christos     ac_abs_top_srcdir=$ac_pwd ;;
   12930  1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   12931  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   12932  1.1  christos     ac_top_srcdir=$srcdir
   12933  1.1  christos     ac_abs_top_srcdir=$srcdir ;;
   12934  1.1  christos   *) # Relative name.
   12935  1.1  christos     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   12936  1.1  christos     ac_top_srcdir=$ac_top_build_prefix$srcdir
   12937  1.1  christos     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   12938  1.1  christos esac
   12939  1.1  christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   12940  1.1  christos 
   12941  1.1  christos 
   12942  1.1  christos   case $ac_mode in
   12943  1.1  christos   :F)
   12944  1.1  christos   #
   12945  1.1  christos   # CONFIG_FILE
   12946  1.1  christos   #
   12947  1.1  christos 
   12948  1.1  christos   case $INSTALL in
   12949  1.1  christos   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   12950  1.1  christos   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   12951  1.1  christos   esac
   12952  1.1  christos _ACEOF
   12953  1.1  christos 
   12954  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   12955  1.1  christos # If the template does not know about datarootdir, expand it.
   12956  1.1  christos # FIXME: This hack should be removed a few years after 2.60.
   12957  1.1  christos ac_datarootdir_hack=; ac_datarootdir_seen=
   12958  1.1  christos 
   12959  1.1  christos case `sed -n '/datarootdir/ {
   12960  1.1  christos   p
   12961  1.1  christos   q
   12962  1.1  christos }
   12963  1.1  christos /@datadir@/p
   12964  1.1  christos /@docdir@/p
   12965  1.1  christos /@infodir@/p
   12966  1.1  christos /@localedir@/p
   12967  1.1  christos /@mandir@/p
   12968  1.1  christos ' $ac_file_inputs` in
   12969  1.1  christos *datarootdir*) ac_datarootdir_seen=yes;;
   12970  1.1  christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   12971  1.1  christos   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   12972  1.1  christos echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   12973  1.1  christos _ACEOF
   12974  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   12975  1.1  christos   ac_datarootdir_hack='
   12976  1.1  christos   s&@datadir@&$datadir&g
   12977  1.1  christos   s&@docdir@&$docdir&g
   12978  1.1  christos   s&@infodir@&$infodir&g
   12979  1.1  christos   s&@localedir@&$localedir&g
   12980  1.1  christos   s&@mandir@&$mandir&g
   12981  1.1  christos     s&\\\${datarootdir}&$datarootdir&g' ;;
   12982  1.1  christos esac
   12983  1.1  christos _ACEOF
   12984  1.1  christos 
   12985  1.1  christos # Neutralize VPATH when `$srcdir' = `.'.
   12986  1.1  christos # Shell code in configure.ac might set extrasub.
   12987  1.1  christos # FIXME: do we really want to maintain this feature?
   12988  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   12989  1.1  christos   sed "$ac_vpsub
   12990  1.1  christos $extrasub
   12991  1.1  christos _ACEOF
   12992  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   12993  1.1  christos :t
   12994  1.1  christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   12995  1.1  christos s&@configure_input@&$configure_input&;t t
   12996  1.1  christos s&@top_builddir@&$ac_top_builddir_sub&;t t
   12997  1.1  christos s&@srcdir@&$ac_srcdir&;t t
   12998  1.1  christos s&@abs_srcdir@&$ac_abs_srcdir&;t t
   12999  1.1  christos s&@top_srcdir@&$ac_top_srcdir&;t t
   13000  1.1  christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   13001  1.1  christos s&@builddir@&$ac_builddir&;t t
   13002  1.1  christos s&@abs_builddir@&$ac_abs_builddir&;t t
   13003  1.1  christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   13004  1.1  christos s&@INSTALL@&$ac_INSTALL&;t t
   13005  1.1  christos $ac_datarootdir_hack
   13006  1.1  christos " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
   13007  1.1  christos 
   13008  1.1  christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   13009  1.1  christos   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   13010  1.1  christos   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   13011  1.1  christos   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   13012  1.1  christos which seems to be undefined.  Please make sure it is defined." >&5
   13013  1.1  christos echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   13014  1.1  christos which seems to be undefined.  Please make sure it is defined." >&2;}
   13015  1.1  christos 
   13016  1.1  christos   rm -f "$tmp/stdin"
   13017  1.1  christos   case $ac_file in
   13018  1.1  christos   -) cat "$tmp/out"; rm -f "$tmp/out";;
   13019  1.1  christos   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
   13020  1.1  christos   esac
   13021  1.1  christos  ;;
   13022  1.1  christos   :H)
   13023  1.1  christos   #
   13024  1.1  christos   # CONFIG_HEADER
   13025  1.1  christos   #
   13026  1.1  christos _ACEOF
   13027  1.1  christos 
   13028  1.1  christos # Transform confdefs.h into a sed script `conftest.defines', that
   13029  1.1  christos # substitutes the proper values into config.h.in to produce config.h.
   13030  1.1  christos rm -f conftest.defines conftest.tail
   13031  1.1  christos # First, append a space to every undef/define line, to ease matching.
   13032  1.1  christos echo 's/$/ /' >conftest.defines
   13033  1.1  christos # Then, protect against being on the right side of a sed subst, or in
   13034  1.1  christos # an unquoted here document, in config.status.  If some macros were
   13035  1.1  christos # called several times there might be several #defines for the same
   13036  1.1  christos # symbol, which is useless.  But do not sort them, since the last
   13037  1.1  christos # AC_DEFINE must be honored.
   13038  1.1  christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   13039  1.1  christos # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
   13040  1.1  christos # NAME is the cpp macro being defined, VALUE is the value it is being given.
   13041  1.1  christos # PARAMS is the parameter list in the macro definition--in most cases, it's
   13042  1.1  christos # just an empty string.
   13043  1.1  christos ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
   13044  1.1  christos ac_dB='\\)[	 (].*,\\1define\\2'
   13045  1.1  christos ac_dC=' '
   13046  1.1  christos ac_dD=' ,'
   13047  1.1  christos 
   13048  1.1  christos uniq confdefs.h |
   13049  1.1  christos   sed -n '
   13050  1.1  christos 	t rset
   13051  1.1  christos 	:rset
   13052  1.1  christos 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
   13053  1.1  christos 	t ok
   13054  1.1  christos 	d
   13055  1.1  christos 	:ok
   13056  1.1  christos 	s/[\\&,]/\\&/g
   13057  1.1  christos 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
   13058  1.1  christos 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
   13059  1.1  christos   ' >>conftest.defines
   13060  1.1  christos 
   13061  1.1  christos # Remove the space that was appended to ease matching.
   13062  1.1  christos # Then replace #undef with comments.  This is necessary, for
   13063  1.1  christos # example, in the case of _POSIX_SOURCE, which is predefined and required
   13064  1.1  christos # on some systems where configure will not decide to define it.
   13065  1.1  christos # (The regexp can be short, since the line contains either #define or #undef.)
   13066  1.1  christos echo 's/ $//
   13067  1.1  christos s,^[	 #]*u.*,/* & */,' >>conftest.defines
   13068  1.1  christos 
   13069  1.1  christos # Break up conftest.defines:
   13070  1.1  christos ac_max_sed_lines=50
   13071  1.1  christos 
   13072  1.1  christos # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
   13073  1.1  christos # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
   13074  1.1  christos # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
   13075  1.1  christos # et cetera.
   13076  1.1  christos ac_in='$ac_file_inputs'
   13077  1.1  christos ac_out='"$tmp/out1"'
   13078  1.1  christos ac_nxt='"$tmp/out2"'
   13079  1.1  christos 
   13080  1.1  christos while :
   13081  1.1  christos do
   13082  1.1  christos   # Write a here document:
   13083  1.1  christos     cat >>$CONFIG_STATUS <<_ACEOF
   13084  1.1  christos     # First, check the format of the line:
   13085  1.1  christos     cat >"\$tmp/defines.sed" <<\\CEOF
   13086  1.1  christos /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
   13087  1.1  christos /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
   13088  1.1  christos b
   13089  1.1  christos :def
   13090  1.1  christos _ACEOF
   13091  1.1  christos   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
   13092  1.1  christos   echo 'CEOF
   13093  1.1  christos     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
   13094  1.1  christos   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
   13095  1.1  christos   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
   13096  1.1  christos   grep . conftest.tail >/dev/null || break
   13097  1.1  christos   rm -f conftest.defines
   13098  1.1  christos   mv conftest.tail conftest.defines
   13099  1.1  christos done
   13100  1.1  christos rm -f conftest.defines conftest.tail
   13101  1.1  christos 
   13102  1.1  christos echo "ac_result=$ac_in" >>$CONFIG_STATUS
   13103  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   13104  1.1  christos   if test x"$ac_file" != x-; then
   13105  1.1  christos     echo "/* $configure_input  */" >"$tmp/config.h"
   13106  1.1  christos     cat "$ac_result" >>"$tmp/config.h"
   13107  1.1  christos     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
   13108  1.1  christos       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
   13109  1.1  christos echo "$as_me: $ac_file is unchanged" >&6;}
   13110  1.1  christos     else
   13111  1.1  christos       rm -f $ac_file
   13112  1.1  christos       mv "$tmp/config.h" $ac_file
   13113  1.1  christos     fi
   13114  1.1  christos   else
   13115  1.1  christos     echo "/* $configure_input  */"
   13116  1.1  christos     cat "$ac_result"
   13117  1.1  christos   fi
   13118  1.1  christos   rm -f "$tmp/out12"
   13119  1.1  christos  ;;
   13120  1.1  christos 
   13121  1.1  christos   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
   13122  1.1  christos echo "$as_me: executing $ac_file commands" >&6;}
   13123  1.1  christos  ;;
   13124  1.1  christos   esac
   13125  1.1  christos 
   13126  1.1  christos 
   13127  1.1  christos   case $ac_file$ac_mode in
   13128  1.1  christos     "default-1":C) if test -f .devel; then
   13129  1.1  christos 	echo timestamp > stamp-h
   13130  1.1  christos 	cat Makefile-devel-adds >> Makefile
   13131  1.1  christos 	make depend
   13132  1.1  christos fi ;;
   13133  1.1  christos 
   13134  1.1  christos   esac
   13135  1.1  christos done # for ac_tag
   13136  1.1  christos 
   13137  1.1  christos 
   13138  1.1  christos { (exit 0); exit 0; }
   13139  1.1  christos _ACEOF
   13140  1.1  christos chmod +x $CONFIG_STATUS
   13141  1.1  christos ac_clean_files=$ac_clean_files_save
   13142  1.1  christos 
   13143  1.1  christos 
   13144  1.1  christos # configure is writing to config.log, and then calls config.status.
   13145  1.1  christos # config.status does its own redirection, appending to config.log.
   13146  1.1  christos # Unfortunately, on DOS this fails, as config.log is still kept open
   13147  1.1  christos # by configure, so config.status won't be able to write to it; its
   13148  1.1  christos # output is simply discarded.  So we exec the FD to /dev/null,
   13149  1.1  christos # effectively closing config.log, so it can be properly (re)opened and
   13150  1.1  christos # appended to by config.status.  When coming back to configure, we
   13151  1.1  christos # need to make the FD available again.
   13152  1.1  christos if test "$no_create" != yes; then
   13153  1.1  christos   ac_cs_success=:
   13154  1.1  christos   ac_config_status_args=
   13155  1.1  christos   test "$silent" = yes &&
   13156  1.1  christos     ac_config_status_args="$ac_config_status_args --quiet"
   13157  1.1  christos   exec 5>/dev/null
   13158  1.1  christos   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   13159  1.1  christos   exec 5>>config.log
   13160  1.1  christos   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   13161  1.1  christos   # would make configure fail if this is the last instruction.
   13162  1.1  christos   $ac_cs_success || { (exit 1); exit 1; }
   13163  1.1  christos fi
   13164  1.1  christos 
   13165  1.1  christos exit 0
   13166