Home | History | Annotate | Line # | Download | only in compat
      1    1.1        tv #! /bin/sh
      2    1.1        tv # Guess values for system-dependent variables and create Makefiles.
      3  1.108  christos # Generated by GNU Autoconf 2.72 for libnbcompat noversion.
      4    1.1        tv #
      5   1.41      salo # Report bugs to <lib-bug-people (at] NetBSD.org>.
      6    1.1        tv #
      7   1.84  christos #
      8  1.108  christos # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
      9  1.108  christos # Inc.
     10   1.84  christos #
     11   1.84  christos #
     12    1.1        tv # This configure script is free software; the Free Software Foundation
     13    1.1        tv # gives unlimited permission to copy, distribute and modify it.
     14   1.84  christos ## -------------------- ##
     15   1.84  christos ## M4sh Initialization. ##
     16   1.84  christos ## -------------------- ##
     17   1.84  christos 
     18   1.84  christos # Be more Bourne compatible
     19   1.84  christos DUALCASE=1; export DUALCASE # for MKS sh
     20  1.108  christos if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
     21  1.108  christos then :
     22   1.84  christos   emulate sh
     23   1.84  christos   NULLCMD=:
     24   1.84  christos   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     25   1.84  christos   # is contrary to our usage.  Disable this feature.
     26   1.84  christos   alias -g '${1+"$@"}'='"$@"'
     27   1.84  christos   setopt NO_GLOB_SUBST
     28  1.108  christos else case e in #(
     29  1.108  christos   e) case `(set -o) 2>/dev/null` in #(
     30   1.84  christos   *posix*) :
     31   1.84  christos     set -o posix ;; #(
     32   1.84  christos   *) :
     33   1.84  christos      ;;
     34  1.108  christos esac ;;
     35   1.84  christos esac
     36   1.84  christos fi
     37   1.84  christos 
     38   1.84  christos 
     39  1.108  christos 
     40  1.108  christos # Reset variables that may have inherited troublesome values from
     41  1.108  christos # the environment.
     42  1.108  christos 
     43  1.108  christos # IFS needs to be set, to space, tab, and newline, in precisely that order.
     44  1.108  christos # (If _AS_PATH_WALK were called with IFS unset, it would have the
     45  1.108  christos # side effect of setting IFS to empty, thus disabling word splitting.)
     46  1.108  christos # Quoting is to prevent editors from complaining about space-tab.
     47   1.84  christos as_nl='
     48   1.84  christos '
     49   1.84  christos export as_nl
     50  1.108  christos IFS=" ""	$as_nl"
     51  1.108  christos 
     52  1.108  christos PS1='$ '
     53  1.108  christos PS2='> '
     54  1.108  christos PS4='+ '
     55  1.108  christos 
     56  1.108  christos # Ensure predictable behavior from utilities with locale-dependent output.
     57  1.108  christos LC_ALL=C
     58  1.108  christos export LC_ALL
     59  1.108  christos LANGUAGE=C
     60  1.108  christos export LANGUAGE
     61  1.108  christos 
     62  1.108  christos # We cannot yet rely on "unset" to work, but we need these variables
     63  1.108  christos # to be unset--not just set to an empty or harmless value--now, to
     64  1.108  christos # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
     65  1.108  christos # also avoids known problems related to "unset" and subshell syntax
     66  1.108  christos # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
     67  1.108  christos for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
     68  1.108  christos do eval test \${$as_var+y} \
     69  1.108  christos   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     70  1.108  christos done
     71  1.108  christos 
     72  1.108  christos # Ensure that fds 0, 1, and 2 are open.
     73  1.108  christos if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
     74  1.108  christos if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
     75  1.108  christos if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
     76   1.84  christos 
     77   1.84  christos # The user is always right.
     78  1.108  christos if ${PATH_SEPARATOR+false} :; then
     79   1.84  christos   PATH_SEPARATOR=:
     80   1.84  christos   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     81   1.84  christos     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     82   1.84  christos       PATH_SEPARATOR=';'
     83   1.84  christos   }
     84   1.84  christos fi
     85   1.74  christos 
     86   1.74  christos 
     87   1.84  christos # Find who we are.  Look in the path if we contain no directory separator.
     88   1.84  christos as_myself=
     89   1.84  christos case $0 in #((
     90   1.84  christos   *[\\/]* ) as_myself=$0 ;;
     91   1.84  christos   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     92   1.84  christos for as_dir in $PATH
     93   1.84  christos do
     94   1.84  christos   IFS=$as_save_IFS
     95  1.108  christos   case $as_dir in #(((
     96  1.108  christos     '') as_dir=./ ;;
     97  1.108  christos     */) ;;
     98  1.108  christos     *) as_dir=$as_dir/ ;;
     99  1.108  christos   esac
    100  1.108  christos     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
    101   1.84  christos   done
    102   1.84  christos IFS=$as_save_IFS
    103   1.84  christos 
    104   1.84  christos      ;;
    105   1.84  christos esac
    106  1.108  christos # We did not find ourselves, most probably we were run as 'sh COMMAND'
    107   1.84  christos # in which case we are not to be found in the path.
    108   1.84  christos if test "x$as_myself" = x; then
    109   1.84  christos   as_myself=$0
    110   1.84  christos fi
    111   1.84  christos if test ! -f "$as_myself"; then
    112  1.108  christos   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113   1.84  christos   exit 1
    114   1.84  christos fi
    115   1.84  christos 
    116   1.65  christos 
    117   1.84  christos # Use a proper internal environment variable to ensure we don't fall
    118   1.84  christos   # into an infinite loop, continuously re-executing ourselves.
    119   1.84  christos   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    120   1.84  christos     _as_can_reexec=no; export _as_can_reexec;
    121   1.84  christos     # We cannot yet assume a decent shell, so we have to provide a
    122   1.84  christos # neutralization value for shells without unset; and this also
    123   1.84  christos # works around shells that cannot unset nonexistent variables.
    124   1.84  christos # Preserve -v and -x to the replacement shell.
    125   1.84  christos BASH_ENV=/dev/null
    126   1.84  christos ENV=/dev/null
    127   1.84  christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    128   1.84  christos case $- in # ((((
    129   1.84  christos   *v*x* | *x*v* ) as_opts=-vx ;;
    130   1.84  christos   *v* ) as_opts=-v ;;
    131   1.84  christos   *x* ) as_opts=-x ;;
    132   1.84  christos   * ) as_opts= ;;
    133   1.84  christos esac
    134   1.84  christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    135   1.84  christos # Admittedly, this is quite paranoid, since all the known shells bail
    136  1.108  christos # out after a failed 'exec'.
    137  1.108  christos printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    138  1.108  christos exit 255
    139   1.84  christos   fi
    140   1.84  christos   # We don't want this to propagate to other subprocesses.
    141   1.84  christos           { _as_can_reexec=; unset _as_can_reexec;}
    142   1.84  christos if test "x$CONFIG_SHELL" = x; then
    143  1.108  christos   as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
    144  1.108  christos then :
    145   1.65  christos   emulate sh
    146   1.65  christos   NULLCMD=:
    147   1.84  christos   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    148   1.84  christos   # is contrary to our usage.  Disable this feature.
    149   1.84  christos   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    150   1.84  christos   setopt NO_GLOB_SUBST
    151  1.108  christos else case e in #(
    152  1.108  christos   e) case \`(set -o) 2>/dev/null\` in #(
    153   1.84  christos   *posix*) :
    154   1.84  christos     set -o posix ;; #(
    155   1.84  christos   *) :
    156   1.84  christos      ;;
    157  1.108  christos esac ;;
    158   1.84  christos esac
    159   1.84  christos fi
    160   1.84  christos "
    161   1.84  christos   as_required="as_fn_return () { (exit \$1); }
    162   1.84  christos as_fn_success () { as_fn_return 0; }
    163   1.84  christos as_fn_failure () { as_fn_return 1; }
    164   1.84  christos as_fn_ret_success () { return 0; }
    165   1.84  christos as_fn_ret_failure () { return 1; }
    166   1.84  christos 
    167   1.84  christos exitcode=0
    168   1.84  christos as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    169   1.84  christos as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    170   1.84  christos as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    171   1.84  christos as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    172  1.108  christos if ( set x; as_fn_ret_success y && test x = \"\$1\" )
    173  1.108  christos then :
    174   1.84  christos 
    175  1.108  christos else case e in #(
    176  1.108  christos   e) exitcode=1; echo positional parameters were not saved. ;;
    177  1.108  christos esac
    178   1.84  christos fi
    179   1.84  christos test x\$exitcode = x0 || exit 1
    180  1.108  christos blah=\$(echo \$(echo blah))
    181  1.108  christos test x\"\$blah\" = xblah || exit 1
    182   1.84  christos test -x / || exit 1"
    183   1.84  christos   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    184   1.84  christos   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    185   1.84  christos   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    186   1.84  christos   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    187   1.84  christos test \$(( 1 + 1 )) = 2 || exit 1"
    188  1.108  christos   if (eval "$as_required") 2>/dev/null
    189  1.108  christos then :
    190   1.84  christos   as_have_required=yes
    191  1.108  christos else case e in #(
    192  1.108  christos   e) as_have_required=no ;;
    193  1.108  christos esac
    194   1.84  christos fi
    195  1.108  christos   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
    196  1.108  christos then :
    197   1.84  christos 
    198  1.108  christos else case e in #(
    199  1.108  christos   e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    200   1.84  christos as_found=false
    201   1.84  christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    202   1.84  christos do
    203   1.84  christos   IFS=$as_save_IFS
    204  1.108  christos   case $as_dir in #(((
    205  1.108  christos     '') as_dir=./ ;;
    206  1.108  christos     */) ;;
    207  1.108  christos     *) as_dir=$as_dir/ ;;
    208  1.108  christos   esac
    209   1.84  christos   as_found=:
    210   1.84  christos   case $as_dir in #(
    211   1.84  christos 	 /*)
    212   1.84  christos 	   for as_base in sh bash ksh sh5; do
    213   1.84  christos 	     # Try only shells that exist, to save several forks.
    214  1.108  christos 	     as_shell=$as_dir$as_base
    215   1.84  christos 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    216  1.108  christos 		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    217  1.108  christos then :
    218   1.84  christos   CONFIG_SHELL=$as_shell as_have_required=yes
    219  1.108  christos 		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
    220  1.108  christos then :
    221   1.84  christos   break 2
    222   1.84  christos fi
    223   1.84  christos fi
    224   1.84  christos 	   done;;
    225   1.84  christos        esac
    226   1.84  christos   as_found=false
    227   1.84  christos done
    228  1.108  christos IFS=$as_save_IFS
    229  1.108  christos if $as_found
    230  1.108  christos then :
    231  1.108  christos 
    232  1.108  christos else case e in #(
    233  1.108  christos   e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    234  1.108  christos 	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    235  1.108  christos then :
    236   1.84  christos   CONFIG_SHELL=$SHELL as_have_required=yes
    237  1.108  christos fi ;;
    238  1.108  christos esac
    239  1.108  christos fi
    240   1.84  christos 
    241   1.84  christos 
    242  1.108  christos       if test "x$CONFIG_SHELL" != x
    243  1.108  christos then :
    244   1.84  christos   export CONFIG_SHELL
    245   1.84  christos              # We cannot yet assume a decent shell, so we have to provide a
    246   1.84  christos # neutralization value for shells without unset; and this also
    247   1.84  christos # works around shells that cannot unset nonexistent variables.
    248   1.84  christos # Preserve -v and -x to the replacement shell.
    249   1.84  christos BASH_ENV=/dev/null
    250   1.84  christos ENV=/dev/null
    251   1.84  christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    252   1.84  christos case $- in # ((((
    253   1.84  christos   *v*x* | *x*v* ) as_opts=-vx ;;
    254   1.84  christos   *v* ) as_opts=-v ;;
    255   1.84  christos   *x* ) as_opts=-x ;;
    256   1.84  christos   * ) as_opts= ;;
    257   1.84  christos esac
    258   1.84  christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    259   1.84  christos # Admittedly, this is quite paranoid, since all the known shells bail
    260  1.108  christos # out after a failed 'exec'.
    261  1.108  christos printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    262   1.84  christos exit 255
    263   1.65  christos fi
    264   1.61  christos 
    265  1.108  christos     if test x$as_have_required = xno
    266  1.108  christos then :
    267  1.108  christos   printf "%s\n" "$0: This script requires a shell more modern than all"
    268  1.108  christos   printf "%s\n" "$0: the shells that I found on your system."
    269  1.108  christos   if test ${ZSH_VERSION+y} ; then
    270  1.108  christos     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    271  1.108  christos     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
    272   1.84  christos   else
    273  1.108  christos     printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
    274   1.84  christos $0: lib-bug-people (at] NetBSD.org about your system, including
    275   1.84  christos $0: any error possibly output before this message. Then
    276   1.84  christos $0: install a modern shell, or manually run the script
    277   1.84  christos $0: under such a shell if you do have one."
    278   1.84  christos   fi
    279   1.84  christos   exit 1
    280  1.108  christos fi ;;
    281  1.108  christos esac
    282   1.84  christos fi
    283   1.84  christos fi
    284   1.84  christos SHELL=${CONFIG_SHELL-/bin/sh}
    285   1.84  christos export SHELL
    286   1.84  christos # Unset more variables known to interfere with behavior of common tools.
    287   1.84  christos CLICOLOR_FORCE= GREP_OPTIONS=
    288   1.84  christos unset CLICOLOR_FORCE GREP_OPTIONS
    289   1.84  christos 
    290   1.84  christos ## --------------------- ##
    291   1.84  christos ## M4sh Shell Functions. ##
    292   1.84  christos ## --------------------- ##
    293   1.84  christos # as_fn_unset VAR
    294   1.84  christos # ---------------
    295   1.84  christos # Portably unset VAR.
    296   1.84  christos as_fn_unset ()
    297   1.84  christos {
    298   1.84  christos   { eval $1=; unset $1;}
    299   1.84  christos }
    300   1.84  christos as_unset=as_fn_unset
    301   1.84  christos 
    302  1.108  christos 
    303   1.84  christos # as_fn_set_status STATUS
    304   1.84  christos # -----------------------
    305   1.84  christos # Set $? to STATUS, without forking.
    306   1.84  christos as_fn_set_status ()
    307   1.84  christos {
    308   1.84  christos   return $1
    309   1.84  christos } # as_fn_set_status
    310   1.84  christos 
    311   1.84  christos # as_fn_exit STATUS
    312   1.84  christos # -----------------
    313   1.84  christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    314   1.84  christos as_fn_exit ()
    315   1.84  christos {
    316   1.84  christos   set +e
    317   1.84  christos   as_fn_set_status $1
    318   1.84  christos   exit $1
    319   1.84  christos } # as_fn_exit
    320   1.84  christos 
    321   1.84  christos # as_fn_mkdir_p
    322   1.84  christos # -------------
    323   1.84  christos # Create "$as_dir" as a directory, including parents if necessary.
    324   1.84  christos as_fn_mkdir_p ()
    325   1.84  christos {
    326   1.84  christos 
    327   1.84  christos   case $as_dir in #(
    328   1.84  christos   -*) as_dir=./$as_dir;;
    329   1.84  christos   esac
    330   1.84  christos   test -d "$as_dir" || eval $as_mkdir_p || {
    331   1.84  christos     as_dirs=
    332   1.84  christos     while :; do
    333   1.84  christos       case $as_dir in #(
    334  1.108  christos       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    335   1.84  christos       *) as_qdir=$as_dir;;
    336   1.84  christos       esac
    337   1.84  christos       as_dirs="'$as_qdir' $as_dirs"
    338   1.84  christos       as_dir=`$as_dirname -- "$as_dir" ||
    339   1.84  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    340   1.84  christos 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    341   1.84  christos 	 X"$as_dir" : 'X\(//\)$' \| \
    342   1.84  christos 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    343  1.108  christos printf "%s\n" X"$as_dir" |
    344   1.84  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    345   1.84  christos 	    s//\1/
    346   1.84  christos 	    q
    347   1.84  christos 	  }
    348   1.84  christos 	  /^X\(\/\/\)[^/].*/{
    349   1.84  christos 	    s//\1/
    350   1.84  christos 	    q
    351   1.84  christos 	  }
    352   1.84  christos 	  /^X\(\/\/\)$/{
    353   1.84  christos 	    s//\1/
    354   1.84  christos 	    q
    355   1.84  christos 	  }
    356   1.84  christos 	  /^X\(\/\).*/{
    357   1.84  christos 	    s//\1/
    358   1.84  christos 	    q
    359   1.84  christos 	  }
    360   1.84  christos 	  s/.*/./; q'`
    361   1.84  christos       test -d "$as_dir" && break
    362   1.84  christos     done
    363   1.84  christos     test -z "$as_dirs" || eval "mkdir $as_dirs"
    364   1.84  christos   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    365   1.84  christos 
    366   1.84  christos 
    367   1.84  christos } # as_fn_mkdir_p
    368   1.84  christos 
    369   1.84  christos # as_fn_executable_p FILE
    370   1.84  christos # -----------------------
    371   1.84  christos # Test if FILE is an executable regular file.
    372   1.84  christos as_fn_executable_p ()
    373   1.84  christos {
    374   1.84  christos   test -f "$1" && test -x "$1"
    375   1.84  christos } # as_fn_executable_p
    376   1.84  christos # as_fn_append VAR VALUE
    377   1.84  christos # ----------------------
    378   1.84  christos # Append the text in VALUE to the end of the definition contained in VAR. Take
    379   1.84  christos # advantage of any shell optimizations that allow amortized linear growth over
    380   1.84  christos # repeated appends, instead of the typical quadratic growth present in naive
    381   1.84  christos # implementations.
    382  1.108  christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
    383  1.108  christos then :
    384   1.84  christos   eval 'as_fn_append ()
    385   1.84  christos   {
    386   1.84  christos     eval $1+=\$2
    387   1.84  christos   }'
    388  1.108  christos else case e in #(
    389  1.108  christos   e) as_fn_append ()
    390   1.84  christos   {
    391   1.84  christos     eval $1=\$$1\$2
    392  1.108  christos   } ;;
    393  1.108  christos esac
    394   1.84  christos fi # as_fn_append
    395   1.84  christos 
    396   1.84  christos # as_fn_arith ARG...
    397   1.84  christos # ------------------
    398   1.84  christos # Perform arithmetic evaluation on the ARGs, and store the result in the
    399   1.84  christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
    400   1.84  christos # must be portable across $(()) and expr.
    401  1.108  christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
    402  1.108  christos then :
    403   1.84  christos   eval 'as_fn_arith ()
    404   1.84  christos   {
    405   1.84  christos     as_val=$(( $* ))
    406   1.84  christos   }'
    407  1.108  christos else case e in #(
    408  1.108  christos   e) as_fn_arith ()
    409   1.84  christos   {
    410   1.84  christos     as_val=`expr "$@" || test $? -eq 1`
    411  1.108  christos   } ;;
    412  1.108  christos esac
    413   1.84  christos fi # as_fn_arith
    414   1.84  christos 
    415   1.84  christos 
    416   1.84  christos # as_fn_error STATUS ERROR [LINENO LOG_FD]
    417   1.84  christos # ----------------------------------------
    418   1.84  christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    419   1.84  christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    420   1.84  christos # script with STATUS, using 1 if that was 0.
    421   1.84  christos as_fn_error ()
    422   1.84  christos {
    423   1.84  christos   as_status=$1; test $as_status -eq 0 && as_status=1
    424   1.84  christos   if test "$4"; then
    425   1.84  christos     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    426  1.108  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    427   1.84  christos   fi
    428  1.108  christos   printf "%s\n" "$as_me: error: $2" >&2
    429   1.84  christos   as_fn_exit $as_status
    430   1.84  christos } # as_fn_error
    431   1.61  christos 
    432   1.84  christos if expr a : '\(a\)' >/dev/null 2>&1 &&
    433   1.84  christos    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    434    1.1        tv   as_expr=expr
    435    1.1        tv else
    436    1.1        tv   as_expr=false
    437    1.1        tv fi
    438    1.1        tv 
    439   1.84  christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    440   1.84  christos   as_basename=basename
    441   1.84  christos else
    442   1.84  christos   as_basename=false
    443   1.84  christos fi
    444   1.84  christos 
    445   1.84  christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    446   1.84  christos   as_dirname=dirname
    447   1.84  christos else
    448   1.84  christos   as_dirname=false
    449   1.84  christos fi
    450   1.84  christos 
    451   1.84  christos as_me=`$as_basename -- "$0" ||
    452   1.84  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    453   1.84  christos 	 X"$0" : 'X\(//\)$' \| \
    454   1.84  christos 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    455  1.108  christos printf "%s\n" X/"$0" |
    456   1.84  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{
    457   1.84  christos 	    s//\1/
    458   1.84  christos 	    q
    459   1.84  christos 	  }
    460   1.84  christos 	  /^X\/\(\/\/\)$/{
    461   1.84  christos 	    s//\1/
    462   1.84  christos 	    q
    463   1.84  christos 	  }
    464   1.84  christos 	  /^X\/\(\/\).*/{
    465   1.84  christos 	    s//\1/
    466   1.84  christos 	    q
    467   1.84  christos 	  }
    468   1.84  christos 	  s/.*/./; q'`
    469   1.84  christos 
    470   1.84  christos # Avoid depending upon Character Ranges.
    471   1.84  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    472   1.84  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    473   1.84  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    474   1.84  christos as_cr_digits='0123456789'
    475   1.84  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
    476   1.84  christos 
    477   1.84  christos 
    478   1.84  christos   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    479   1.84  christos   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    480   1.84  christos   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    481   1.84  christos   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    482   1.84  christos   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    483   1.84  christos   sed -n '
    484   1.84  christos     p
    485   1.84  christos     /[$]LINENO/=
    486   1.84  christos   ' <$as_myself |
    487   1.84  christos     sed '
    488  1.108  christos       t clear
    489  1.108  christos       :clear
    490   1.84  christos       s/[$]LINENO.*/&-/
    491   1.84  christos       t lineno
    492   1.84  christos       b
    493   1.84  christos       :lineno
    494   1.84  christos       N
    495   1.84  christos       :loop
    496   1.84  christos       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    497   1.84  christos       t loop
    498   1.84  christos       s/-\n.*//
    499   1.84  christos     ' >$as_me.lineno &&
    500   1.84  christos   chmod +x "$as_me.lineno" ||
    501  1.108  christos     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    502   1.84  christos 
    503   1.84  christos   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    504   1.84  christos   # already done that, so ensure we don't try to do so again and fall
    505   1.84  christos   # in an infinite loop.  This has already happened in practice.
    506   1.84  christos   _as_can_reexec=no; export _as_can_reexec
    507   1.84  christos   # Don't try to exec as it changes $[0], causing all sort of problems
    508   1.84  christos   # (the dirname of $[0] is not the place where we might find the
    509   1.84  christos   # original and so on.  Autoconf is especially sensitive to this).
    510   1.84  christos   . "./$as_me.lineno"
    511   1.84  christos   # Exit status is that of the last command.
    512   1.84  christos   exit
    513   1.84  christos }
    514   1.84  christos 
    515  1.108  christos 
    516  1.108  christos # Determine whether it's possible to make 'echo' print without a newline.
    517  1.108  christos # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
    518  1.108  christos # for compatibility with existing Makefiles.
    519   1.84  christos ECHO_C= ECHO_N= ECHO_T=
    520   1.84  christos case `echo -n x` in #(((((
    521   1.84  christos -n*)
    522   1.84  christos   case `echo 'xy\c'` in
    523   1.84  christos   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    524   1.84  christos   xy)  ECHO_C='\c';;
    525   1.84  christos   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    526   1.84  christos        ECHO_T='	';;
    527   1.84  christos   esac;;
    528   1.84  christos *)
    529   1.84  christos   ECHO_N='-n';;
    530   1.84  christos esac
    531   1.84  christos 
    532  1.108  christos # For backward compatibility with old third-party macros, we provide
    533  1.108  christos # the shell variables $as_echo and $as_echo_n.  New code should use
    534  1.108  christos # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
    535  1.108  christos as_echo='printf %s\n'
    536  1.108  christos as_echo_n='printf %s'
    537  1.108  christos 
    538    1.1        tv rm -f conf$$ conf$$.exe conf$$.file
    539   1.84  christos if test -d conf$$.dir; then
    540   1.84  christos   rm -f conf$$.dir/conf$$.file
    541   1.84  christos else
    542   1.84  christos   rm -f conf$$.dir
    543   1.84  christos   mkdir conf$$.dir 2>/dev/null
    544   1.84  christos fi
    545   1.84  christos if (echo >conf$$.file) 2>/dev/null; then
    546   1.84  christos   if ln -s conf$$.file conf$$ 2>/dev/null; then
    547   1.84  christos     as_ln_s='ln -s'
    548   1.84  christos     # ... but there are two gotchas:
    549  1.108  christos     # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
    550  1.108  christos     # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
    551  1.108  christos     # In both cases, we have to default to 'cp -pR'.
    552   1.84  christos     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    553   1.84  christos       as_ln_s='cp -pR'
    554   1.84  christos   elif ln conf$$.file conf$$ 2>/dev/null; then
    555   1.84  christos     as_ln_s=ln
    556   1.76     pooka   else
    557   1.84  christos     as_ln_s='cp -pR'
    558   1.66   tsutsui   fi
    559    1.1        tv else
    560   1.84  christos   as_ln_s='cp -pR'
    561    1.1        tv fi
    562   1.84  christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    563   1.84  christos rmdir conf$$.dir 2>/dev/null
    564   1.63       apb 
    565   1.84  christos if mkdir -p . 2>/dev/null; then
    566   1.84  christos   as_mkdir_p='mkdir -p "$as_dir"'
    567   1.61  christos else
    568   1.84  christos   test -d ./-p && rmdir ./-p
    569   1.84  christos   as_mkdir_p=false
    570   1.61  christos fi
    571   1.65  christos 
    572   1.84  christos as_test_x='test -x'
    573   1.84  christos as_executable_p=as_fn_executable_p
    574   1.84  christos 
    575   1.84  christos # Sed expression to map a string onto a valid CPP name.
    576  1.108  christos as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
    577  1.108  christos as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
    578   1.84  christos 
    579   1.84  christos # Sed expression to map a string onto a valid variable name.
    580  1.108  christos as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
    581  1.108  christos as_tr_sh="eval sed '$as_sed_sh'" # deprecated
    582   1.74  christos 
    583   1.74  christos 
    584   1.84  christos test -n "$DJDIR" || exec 7<&0 </dev/null
    585   1.84  christos exec 6>&1
    586    1.1        tv 
    587    1.1        tv # Name of the host.
    588   1.84  christos # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    589    1.1        tv # so uname gets run too.
    590    1.1        tv ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    591    1.1        tv 
    592    1.1        tv #
    593    1.1        tv # Initializations.
    594    1.1        tv #
    595    1.1        tv ac_default_prefix=/usr/local
    596   1.84  christos ac_clean_files=
    597   1.84  christos ac_config_libobj_dir=.
    598   1.84  christos LIBOBJS=
    599    1.1        tv cross_compiling=no
    600    1.1        tv subdirs=
    601   1.84  christos MFLAGS=
    602   1.84  christos MAKEFLAGS=
    603    1.1        tv 
    604   1.84  christos # Identity of this package.
    605   1.84  christos PACKAGE_NAME='libnbcompat'
    606   1.84  christos PACKAGE_TARNAME='libnbcompat'
    607   1.84  christos PACKAGE_VERSION='noversion'
    608   1.84  christos PACKAGE_STRING='libnbcompat noversion'
    609   1.84  christos PACKAGE_BUGREPORT='lib-bug-people (at] NetBSD.org'
    610   1.84  christos PACKAGE_URL=''
    611    1.1        tv 
    612    1.1        tv # Factoring default headers for most tests.
    613    1.1        tv ac_includes_default="\
    614  1.108  christos #include <stddef.h>
    615  1.108  christos #ifdef HAVE_STDIO_H
    616  1.108  christos # include <stdio.h>
    617    1.1        tv #endif
    618  1.108  christos #ifdef HAVE_STDLIB_H
    619    1.1        tv # include <stdlib.h>
    620    1.1        tv #endif
    621   1.84  christos #ifdef HAVE_STRING_H
    622    1.1        tv # include <string.h>
    623    1.1        tv #endif
    624   1.84  christos #ifdef HAVE_INTTYPES_H
    625    1.1        tv # include <inttypes.h>
    626    1.1        tv #endif
    627   1.84  christos #ifdef HAVE_STDINT_H
    628   1.84  christos # include <stdint.h>
    629   1.84  christos #endif
    630  1.108  christos #ifdef HAVE_STRINGS_H
    631  1.108  christos # include <strings.h>
    632  1.108  christos #endif
    633  1.108  christos #ifdef HAVE_SYS_TYPES_H
    634  1.108  christos # include <sys/types.h>
    635  1.108  christos #endif
    636  1.108  christos #ifdef HAVE_SYS_STAT_H
    637  1.108  christos # include <sys/stat.h>
    638  1.108  christos #endif
    639   1.84  christos #ifdef HAVE_UNISTD_H
    640    1.1        tv # include <unistd.h>
    641    1.1        tv #endif"
    642    1.1        tv 
    643  1.108  christos ac_header_c_list=
    644   1.84  christos ac_subst_vars='LTLIBOBJS
    645   1.84  christos LIBOBJS
    646  1.102     lukem CC_WNO_STRINGOP_TRUNCATION
    647  1.102     lukem CC_WNO_STRINGOP_OVERFLOW
    648  1.103     lukem CC_WNO_RETURN_LOCAL_ADDR
    649  1.102     lukem CC_WNO_MAYBE_UNINITIALIZED
    650  1.103     lukem CC_WNO_IMPLICIT_FALLTHROUGH
    651  1.102     lukem CC_WNO_FORMAT_TRUNCATION
    652  1.103     lukem CC_WNO_FORMAT_OVERFLOW
    653  1.103     lukem CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER
    654  1.103     lukem CC_WNO_CAST_FUNCTION_TYPE
    655  1.103     lukem CC_WNO_ADDRESS_OF_PACKED_MEMBER
    656  1.102     lukem CC_NO_CPP_PRECOMP
    657   1.84  christos ALLOCA
    658   1.84  christos EGREP
    659   1.84  christos GREP
    660  1.108  christos BSHELL
    661   1.84  christos CPP
    662   1.84  christos OBJEXT
    663   1.84  christos EXEEXT
    664   1.84  christos ac_ct_CC
    665   1.84  christos CPPFLAGS
    666   1.84  christos LDFLAGS
    667   1.84  christos CFLAGS
    668   1.84  christos CC
    669   1.84  christos target_alias
    670   1.84  christos host_alias
    671   1.84  christos build_alias
    672   1.84  christos LIBS
    673   1.84  christos ECHO_T
    674   1.84  christos ECHO_N
    675   1.84  christos ECHO_C
    676   1.84  christos DEFS
    677   1.84  christos mandir
    678   1.84  christos localedir
    679   1.84  christos libdir
    680   1.84  christos psdir
    681   1.84  christos pdfdir
    682   1.84  christos dvidir
    683   1.84  christos htmldir
    684   1.84  christos infodir
    685   1.84  christos docdir
    686   1.84  christos oldincludedir
    687   1.84  christos includedir
    688  1.108  christos runstatedir
    689   1.84  christos localstatedir
    690   1.84  christos sharedstatedir
    691   1.84  christos sysconfdir
    692   1.84  christos datadir
    693   1.84  christos datarootdir
    694   1.84  christos libexecdir
    695   1.84  christos sbindir
    696   1.84  christos bindir
    697   1.84  christos program_transform_name
    698   1.84  christos prefix
    699   1.84  christos exec_prefix
    700   1.84  christos PACKAGE_URL
    701   1.84  christos PACKAGE_BUGREPORT
    702   1.84  christos PACKAGE_STRING
    703   1.84  christos PACKAGE_VERSION
    704   1.84  christos PACKAGE_TARNAME
    705   1.84  christos PACKAGE_NAME
    706   1.84  christos PATH_SEPARATOR
    707   1.84  christos SHELL'
    708   1.84  christos ac_subst_files=''
    709   1.84  christos ac_user_opts='
    710   1.84  christos enable_option_checking
    711   1.84  christos '
    712   1.84  christos       ac_precious_vars='build_alias
    713   1.84  christos host_alias
    714   1.84  christos target_alias
    715   1.84  christos CC
    716   1.84  christos CFLAGS
    717   1.84  christos LDFLAGS
    718   1.84  christos LIBS
    719   1.84  christos CPPFLAGS
    720   1.84  christos CPP'
    721   1.84  christos 
    722   1.84  christos 
    723    1.1        tv # Initialize some variables set by options.
    724    1.1        tv ac_init_help=
    725    1.1        tv ac_init_version=false
    726   1.84  christos ac_unrecognized_opts=
    727   1.84  christos ac_unrecognized_sep=
    728    1.1        tv # The variables have the same names as the options, with
    729    1.1        tv # dashes changed to underlines.
    730    1.1        tv cache_file=/dev/null
    731    1.1        tv exec_prefix=NONE
    732    1.1        tv no_create=
    733    1.1        tv no_recursion=
    734    1.1        tv prefix=NONE
    735    1.1        tv program_prefix=NONE
    736    1.1        tv program_suffix=NONE
    737    1.1        tv program_transform_name=s,x,x,
    738    1.1        tv silent=
    739    1.1        tv site=
    740    1.1        tv srcdir=
    741    1.1        tv verbose=
    742    1.1        tv x_includes=NONE
    743    1.1        tv x_libraries=NONE
    744    1.1        tv 
    745    1.1        tv # Installation directory options.
    746    1.1        tv # These are left unexpanded so users can "make install exec_prefix=/foo"
    747    1.1        tv # and all the variables that are supposed to be based on exec_prefix
    748    1.1        tv # by default will actually change.
    749    1.1        tv # Use braces instead of parens because sh, perl, etc. also accept them.
    750   1.84  christos # (The list follows the same order as the GNU Coding Standards.)
    751    1.1        tv bindir='${exec_prefix}/bin'
    752    1.1        tv sbindir='${exec_prefix}/sbin'
    753    1.1        tv libexecdir='${exec_prefix}/libexec'
    754   1.84  christos datarootdir='${prefix}/share'
    755   1.84  christos datadir='${datarootdir}'
    756    1.1        tv sysconfdir='${prefix}/etc'
    757    1.1        tv sharedstatedir='${prefix}/com'
    758    1.1        tv localstatedir='${prefix}/var'
    759  1.108  christos runstatedir='${localstatedir}/run'
    760    1.1        tv includedir='${prefix}/include'
    761    1.1        tv oldincludedir='/usr/include'
    762   1.84  christos docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    763   1.84  christos infodir='${datarootdir}/info'
    764   1.84  christos htmldir='${docdir}'
    765   1.84  christos dvidir='${docdir}'
    766   1.84  christos pdfdir='${docdir}'
    767   1.84  christos psdir='${docdir}'
    768   1.84  christos libdir='${exec_prefix}/lib'
    769   1.84  christos localedir='${datarootdir}/locale'
    770   1.84  christos mandir='${datarootdir}/man'
    771   1.63       apb 
    772    1.1        tv ac_prev=
    773   1.84  christos ac_dashdash=
    774    1.1        tv for ac_option
    775    1.1        tv do
    776    1.1        tv   # If the previous option needs an argument, assign it.
    777    1.1        tv   if test -n "$ac_prev"; then
    778   1.84  christos     eval $ac_prev=\$ac_option
    779    1.1        tv     ac_prev=
    780    1.1        tv     continue
    781    1.1        tv   fi
    782    1.1        tv 
    783   1.84  christos   case $ac_option in
    784   1.84  christos   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    785   1.84  christos   *=)   ac_optarg= ;;
    786   1.84  christos   *)    ac_optarg=yes ;;
    787   1.84  christos   esac
    788    1.1        tv 
    789   1.84  christos   case $ac_dashdash$ac_option in
    790   1.84  christos   --)
    791   1.84  christos     ac_dashdash=yes ;;
    792    1.1        tv 
    793    1.1        tv   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    794    1.1        tv     ac_prev=bindir ;;
    795    1.1        tv   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    796    1.1        tv     bindir=$ac_optarg ;;
    797    1.1        tv 
    798    1.1        tv   -build | --build | --buil | --bui | --bu)
    799    1.1        tv     ac_prev=build_alias ;;
    800    1.1        tv   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    801    1.1        tv     build_alias=$ac_optarg ;;
    802    1.1        tv 
    803    1.1        tv   -cache-file | --cache-file | --cache-fil | --cache-fi \
    804    1.1        tv   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    805    1.1        tv     ac_prev=cache_file ;;
    806    1.1        tv   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    807    1.1        tv   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    808    1.1        tv     cache_file=$ac_optarg ;;
    809    1.1        tv 
    810    1.1        tv   --config-cache | -C)
    811    1.1        tv     cache_file=config.cache ;;
    812    1.1        tv 
    813   1.84  christos   -datadir | --datadir | --datadi | --datad)
    814    1.1        tv     ac_prev=datadir ;;
    815   1.84  christos   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    816    1.1        tv     datadir=$ac_optarg ;;
    817    1.1        tv 
    818   1.84  christos   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    819   1.84  christos   | --dataroo | --dataro | --datar)
    820   1.84  christos     ac_prev=datarootdir ;;
    821   1.84  christos   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    822   1.84  christos   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    823   1.84  christos     datarootdir=$ac_optarg ;;
    824   1.84  christos 
    825    1.1        tv   -disable-* | --disable-*)
    826   1.84  christos     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    827    1.1        tv     # Reject names that are not valid shell variable names.
    828   1.84  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    829  1.108  christos       as_fn_error $? "invalid feature name: '$ac_useropt'"
    830   1.84  christos     ac_useropt_orig=$ac_useropt
    831  1.108  christos     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    832   1.84  christos     case $ac_user_opts in
    833   1.84  christos       *"
    834   1.84  christos "enable_$ac_useropt"
    835   1.84  christos "*) ;;
    836   1.84  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    837   1.84  christos 	 ac_unrecognized_sep=', ';;
    838   1.84  christos     esac
    839   1.84  christos     eval enable_$ac_useropt=no ;;
    840   1.84  christos 
    841   1.84  christos   -docdir | --docdir | --docdi | --doc | --do)
    842   1.84  christos     ac_prev=docdir ;;
    843   1.84  christos   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    844   1.84  christos     docdir=$ac_optarg ;;
    845   1.84  christos 
    846   1.84  christos   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    847   1.84  christos     ac_prev=dvidir ;;
    848   1.84  christos   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    849   1.84  christos     dvidir=$ac_optarg ;;
    850    1.1        tv 
    851    1.1        tv   -enable-* | --enable-*)
    852   1.84  christos     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    853    1.1        tv     # Reject names that are not valid shell variable names.
    854   1.84  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    855  1.108  christos       as_fn_error $? "invalid feature name: '$ac_useropt'"
    856   1.84  christos     ac_useropt_orig=$ac_useropt
    857  1.108  christos     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    858   1.84  christos     case $ac_user_opts in
    859   1.84  christos       *"
    860   1.84  christos "enable_$ac_useropt"
    861   1.84  christos "*) ;;
    862   1.84  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    863   1.84  christos 	 ac_unrecognized_sep=', ';;
    864   1.66   tsutsui     esac
    865   1.84  christos     eval enable_$ac_useropt=\$ac_optarg ;;
    866    1.1        tv 
    867    1.1        tv   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    868    1.1        tv   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    869    1.1        tv   | --exec | --exe | --ex)
    870    1.1        tv     ac_prev=exec_prefix ;;
    871    1.1        tv   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    872    1.1        tv   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    873    1.1        tv   | --exec=* | --exe=* | --ex=*)
    874    1.1        tv     exec_prefix=$ac_optarg ;;
    875    1.1        tv 
    876    1.1        tv   -gas | --gas | --ga | --g)
    877    1.1        tv     # Obsolete; use --with-gas.
    878    1.1        tv     with_gas=yes ;;
    879    1.1        tv 
    880    1.1        tv   -help | --help | --hel | --he | -h)
    881    1.1        tv     ac_init_help=long ;;
    882    1.1        tv   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    883    1.1        tv     ac_init_help=recursive ;;
    884    1.1        tv   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    885    1.1        tv     ac_init_help=short ;;
    886    1.1        tv 
    887    1.1        tv   -host | --host | --hos | --ho)
    888    1.1        tv     ac_prev=host_alias ;;
    889    1.1        tv   -host=* | --host=* | --hos=* | --ho=*)
    890    1.1        tv     host_alias=$ac_optarg ;;
    891    1.1        tv 
    892   1.84  christos   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    893   1.84  christos     ac_prev=htmldir ;;
    894   1.84  christos   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    895   1.84  christos   | --ht=*)
    896   1.84  christos     htmldir=$ac_optarg ;;
    897   1.84  christos 
    898    1.1        tv   -includedir | --includedir | --includedi | --included | --include \
    899    1.1        tv   | --includ | --inclu | --incl | --inc)
    900    1.1        tv     ac_prev=includedir ;;
    901    1.1        tv   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    902    1.1        tv   | --includ=* | --inclu=* | --incl=* | --inc=*)
    903    1.1        tv     includedir=$ac_optarg ;;
    904    1.1        tv 
    905    1.1        tv   -infodir | --infodir | --infodi | --infod | --info | --inf)
    906    1.1        tv     ac_prev=infodir ;;
    907    1.1        tv   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    908    1.1        tv     infodir=$ac_optarg ;;
    909    1.1        tv 
    910    1.1        tv   -libdir | --libdir | --libdi | --libd)
    911    1.1        tv     ac_prev=libdir ;;
    912    1.1        tv   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    913    1.1        tv     libdir=$ac_optarg ;;
    914    1.1        tv 
    915    1.1        tv   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    916    1.1        tv   | --libexe | --libex | --libe)
    917    1.1        tv     ac_prev=libexecdir ;;
    918    1.1        tv   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    919    1.1        tv   | --libexe=* | --libex=* | --libe=*)
    920    1.1        tv     libexecdir=$ac_optarg ;;
    921    1.1        tv 
    922   1.84  christos   -localedir | --localedir | --localedi | --localed | --locale)
    923   1.84  christos     ac_prev=localedir ;;
    924   1.84  christos   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    925   1.84  christos     localedir=$ac_optarg ;;
    926   1.84  christos 
    927    1.1        tv   -localstatedir | --localstatedir | --localstatedi | --localstated \
    928   1.84  christos   | --localstate | --localstat | --localsta | --localst | --locals)
    929    1.1        tv     ac_prev=localstatedir ;;
    930    1.1        tv   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    931   1.84  christos   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    932    1.1        tv     localstatedir=$ac_optarg ;;
    933    1.1        tv 
    934    1.1        tv   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    935    1.1        tv     ac_prev=mandir ;;
    936    1.1        tv   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    937    1.1        tv     mandir=$ac_optarg ;;
    938    1.1        tv 
    939    1.1        tv   -nfp | --nfp | --nf)
    940    1.1        tv     # Obsolete; use --without-fp.
    941    1.1        tv     with_fp=no ;;
    942    1.1        tv 
    943    1.1        tv   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    944   1.84  christos   | --no-cr | --no-c | -n)
    945    1.1        tv     no_create=yes ;;
    946    1.1        tv 
    947    1.1        tv   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    948    1.1        tv   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    949    1.1        tv     no_recursion=yes ;;
    950    1.1        tv 
    951    1.1        tv   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    952    1.1        tv   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    953    1.1        tv   | --oldin | --oldi | --old | --ol | --o)
    954    1.1        tv     ac_prev=oldincludedir ;;
    955    1.1        tv   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    956    1.1        tv   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    957    1.1        tv   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    958    1.1        tv     oldincludedir=$ac_optarg ;;
    959    1.1        tv 
    960    1.1        tv   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    961    1.1        tv     ac_prev=prefix ;;
    962    1.1        tv   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    963    1.1        tv     prefix=$ac_optarg ;;
    964    1.1        tv 
    965    1.1        tv   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    966    1.1        tv   | --program-pre | --program-pr | --program-p)
    967    1.1        tv     ac_prev=program_prefix ;;
    968    1.1        tv   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    969    1.1        tv   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    970    1.1        tv     program_prefix=$ac_optarg ;;
    971    1.1        tv 
    972    1.1        tv   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    973    1.1        tv   | --program-suf | --program-su | --program-s)
    974    1.1        tv     ac_prev=program_suffix ;;
    975    1.1        tv   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    976    1.1        tv   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    977    1.1        tv     program_suffix=$ac_optarg ;;
    978    1.1        tv 
    979    1.1        tv   -program-transform-name | --program-transform-name \
    980    1.1        tv   | --program-transform-nam | --program-transform-na \
    981    1.1        tv   | --program-transform-n | --program-transform- \
    982    1.1        tv   | --program-transform | --program-transfor \
    983    1.1        tv   | --program-transfo | --program-transf \
    984    1.1        tv   | --program-trans | --program-tran \
    985    1.1        tv   | --progr-tra | --program-tr | --program-t)
    986    1.1        tv     ac_prev=program_transform_name ;;
    987    1.1        tv   -program-transform-name=* | --program-transform-name=* \
    988    1.1        tv   | --program-transform-nam=* | --program-transform-na=* \
    989    1.1        tv   | --program-transform-n=* | --program-transform-=* \
    990    1.1        tv   | --program-transform=* | --program-transfor=* \
    991    1.1        tv   | --program-transfo=* | --program-transf=* \
    992    1.1        tv   | --program-trans=* | --program-tran=* \
    993    1.1        tv   | --progr-tra=* | --program-tr=* | --program-t=*)
    994    1.1        tv     program_transform_name=$ac_optarg ;;
    995    1.1        tv 
    996   1.84  christos   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    997   1.84  christos     ac_prev=pdfdir ;;
    998   1.84  christos   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    999   1.84  christos     pdfdir=$ac_optarg ;;
   1000   1.84  christos 
   1001   1.84  christos   -psdir | --psdir | --psdi | --psd | --ps)
   1002   1.84  christos     ac_prev=psdir ;;
   1003   1.84  christos   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1004   1.84  christos     psdir=$ac_optarg ;;
   1005   1.84  christos 
   1006    1.1        tv   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1007    1.1        tv   | -silent | --silent | --silen | --sile | --sil)
   1008    1.1        tv     silent=yes ;;
   1009    1.1        tv 
   1010  1.108  christos   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1011  1.108  christos   | --runstate | --runstat | --runsta | --runst | --runs \
   1012  1.108  christos   | --run | --ru | --r)
   1013  1.108  christos     ac_prev=runstatedir ;;
   1014  1.108  christos   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1015  1.108  christos   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1016  1.108  christos   | --run=* | --ru=* | --r=*)
   1017  1.108  christos     runstatedir=$ac_optarg ;;
   1018  1.108  christos 
   1019    1.1        tv   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1020    1.1        tv     ac_prev=sbindir ;;
   1021    1.1        tv   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1022    1.1        tv   | --sbi=* | --sb=*)
   1023    1.1        tv     sbindir=$ac_optarg ;;
   1024    1.1        tv 
   1025    1.1        tv   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1026    1.1        tv   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1027    1.1        tv   | --sharedst | --shareds | --shared | --share | --shar \
   1028    1.1        tv   | --sha | --sh)
   1029    1.1        tv     ac_prev=sharedstatedir ;;
   1030    1.1        tv   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1031    1.1        tv   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1032    1.1        tv   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1033    1.1        tv   | --sha=* | --sh=*)
   1034    1.1        tv     sharedstatedir=$ac_optarg ;;
   1035    1.1        tv 
   1036    1.1        tv   -site | --site | --sit)
   1037    1.1        tv     ac_prev=site ;;
   1038    1.1        tv   -site=* | --site=* | --sit=*)
   1039    1.1        tv     site=$ac_optarg ;;
   1040    1.1        tv 
   1041    1.1        tv   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1042    1.1        tv     ac_prev=srcdir ;;
   1043    1.1        tv   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1044    1.1        tv     srcdir=$ac_optarg ;;
   1045    1.1        tv 
   1046    1.1        tv   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1047    1.1        tv   | --syscon | --sysco | --sysc | --sys | --sy)
   1048    1.1        tv     ac_prev=sysconfdir ;;
   1049    1.1        tv   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1050    1.1        tv   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1051    1.1        tv     sysconfdir=$ac_optarg ;;
   1052    1.1        tv 
   1053    1.1        tv   -target | --target | --targe | --targ | --tar | --ta | --t)
   1054    1.1        tv     ac_prev=target_alias ;;
   1055    1.1        tv   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1056    1.1        tv     target_alias=$ac_optarg ;;
   1057    1.1        tv 
   1058    1.1        tv   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1059    1.1        tv     verbose=yes ;;
   1060    1.1        tv 
   1061    1.1        tv   -version | --version | --versio | --versi | --vers | -V)
   1062    1.1        tv     ac_init_version=: ;;
   1063    1.1        tv 
   1064    1.1        tv   -with-* | --with-*)
   1065   1.84  christos     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1066    1.1        tv     # Reject names that are not valid shell variable names.
   1067   1.84  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1068  1.108  christos       as_fn_error $? "invalid package name: '$ac_useropt'"
   1069   1.84  christos     ac_useropt_orig=$ac_useropt
   1070  1.108  christos     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1071   1.84  christos     case $ac_user_opts in
   1072   1.84  christos       *"
   1073   1.84  christos "with_$ac_useropt"
   1074   1.84  christos "*) ;;
   1075   1.84  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1076   1.84  christos 	 ac_unrecognized_sep=', ';;
   1077   1.66   tsutsui     esac
   1078   1.84  christos     eval with_$ac_useropt=\$ac_optarg ;;
   1079    1.1        tv 
   1080    1.1        tv   -without-* | --without-*)
   1081   1.84  christos     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1082    1.1        tv     # Reject names that are not valid shell variable names.
   1083   1.84  christos     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1084  1.108  christos       as_fn_error $? "invalid package name: '$ac_useropt'"
   1085   1.84  christos     ac_useropt_orig=$ac_useropt
   1086  1.108  christos     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1087   1.84  christos     case $ac_user_opts in
   1088   1.84  christos       *"
   1089   1.84  christos "with_$ac_useropt"
   1090   1.84  christos "*) ;;
   1091   1.84  christos       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1092   1.84  christos 	 ac_unrecognized_sep=', ';;
   1093   1.84  christos     esac
   1094   1.84  christos     eval with_$ac_useropt=no ;;
   1095    1.1        tv 
   1096    1.1        tv   --x)
   1097    1.1        tv     # Obsolete; use --with-x.
   1098    1.1        tv     with_x=yes ;;
   1099    1.1        tv 
   1100    1.1        tv   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1101    1.1        tv   | --x-incl | --x-inc | --x-in | --x-i)
   1102    1.1        tv     ac_prev=x_includes ;;
   1103    1.1        tv   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1104    1.1        tv   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1105    1.1        tv     x_includes=$ac_optarg ;;
   1106    1.1        tv 
   1107    1.1        tv   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1108    1.1        tv   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1109    1.1        tv     ac_prev=x_libraries ;;
   1110    1.1        tv   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1111    1.1        tv   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1112    1.1        tv     x_libraries=$ac_optarg ;;
   1113    1.1        tv 
   1114  1.108  christos   -*) as_fn_error $? "unrecognized option: '$ac_option'
   1115  1.108  christos Try '$0 --help' for more information"
   1116    1.1        tv     ;;
   1117    1.1        tv 
   1118    1.1        tv   *=*)
   1119    1.1        tv     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1120    1.1        tv     # Reject names that are not valid shell variable names.
   1121   1.84  christos     case $ac_envvar in #(
   1122   1.84  christos       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1123  1.108  christos       as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
   1124   1.84  christos     esac
   1125   1.84  christos     eval $ac_envvar=\$ac_optarg
   1126    1.1        tv     export $ac_envvar ;;
   1127    1.1        tv 
   1128    1.1        tv   *)
   1129    1.1        tv     # FIXME: should be removed in autoconf 3.0.
   1130  1.108  christos     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
   1131    1.1        tv     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1132  1.108  christos       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
   1133   1.84  christos     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1134    1.1        tv     ;;
   1135    1.1        tv 
   1136    1.1        tv   esac
   1137    1.1        tv done
   1138    1.1        tv 
   1139    1.1        tv if test -n "$ac_prev"; then
   1140    1.1        tv   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1141   1.84  christos   as_fn_error $? "missing argument to $ac_option"
   1142   1.84  christos fi
   1143   1.84  christos 
   1144   1.84  christos if test -n "$ac_unrecognized_opts"; then
   1145   1.84  christos   case $enable_option_checking in
   1146   1.84  christos     no) ;;
   1147   1.84  christos     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1148  1.108  christos     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1149   1.84  christos   esac
   1150   1.74  christos fi
   1151   1.74  christos 
   1152   1.84  christos # Check all directory arguments for consistency.
   1153   1.84  christos for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1154   1.84  christos 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1155   1.84  christos 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1156  1.108  christos 		libdir localedir mandir runstatedir
   1157   1.76     pooka do
   1158   1.84  christos   eval ac_val=\$$ac_var
   1159   1.84  christos   # Remove trailing slashes.
   1160   1.76     pooka   case $ac_val in
   1161   1.84  christos     */ )
   1162   1.84  christos       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1163   1.84  christos       eval $ac_var=\$ac_val;;
   1164   1.74  christos   esac
   1165   1.84  christos   # Be sure to have absolute directory names.
   1166    1.1        tv   case $ac_val in
   1167   1.84  christos     [\\/$]* | ?:[\\/]* )  continue;;
   1168   1.84  christos     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1169    1.1        tv   esac
   1170   1.84  christos   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1171    1.1        tv done
   1172    1.1        tv 
   1173  1.108  christos # There might be people who depend on the old broken behavior: '$host'
   1174    1.1        tv # used to hold the argument of --host etc.
   1175   1.84  christos # FIXME: To remove some day.
   1176    1.1        tv build=$build_alias
   1177    1.1        tv host=$host_alias
   1178    1.1        tv target=$target_alias
   1179    1.1        tv 
   1180   1.84  christos # FIXME: To remove some day.
   1181    1.1        tv if test "x$host_alias" != x; then
   1182    1.1        tv   if test "x$build_alias" = x; then
   1183    1.1        tv     cross_compiling=maybe
   1184    1.1        tv   elif test "x$build_alias" != "x$host_alias"; then
   1185    1.1        tv     cross_compiling=yes
   1186    1.1        tv   fi
   1187    1.1        tv fi
   1188    1.1        tv 
   1189    1.1        tv ac_tool_prefix=
   1190    1.1        tv test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1191    1.1        tv 
   1192    1.1        tv test "$silent" = yes && exec 6>/dev/null
   1193    1.1        tv 
   1194   1.84  christos 
   1195   1.84  christos ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1196   1.84  christos ac_ls_di=`ls -di .` &&
   1197   1.84  christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1198   1.84  christos   as_fn_error $? "working directory cannot be determined"
   1199   1.84  christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1200   1.84  christos   as_fn_error $? "pwd does not report name of working directory"
   1201   1.84  christos 
   1202   1.84  christos 
   1203    1.1        tv # Find the source files, if location was not specified.
   1204    1.1        tv if test -z "$srcdir"; then
   1205    1.1        tv   ac_srcdir_defaulted=yes
   1206   1.84  christos   # Try the directory containing this script, then the parent directory.
   1207   1.84  christos   ac_confdir=`$as_dirname -- "$as_myself" ||
   1208   1.84  christos $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1209   1.84  christos 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1210   1.84  christos 	 X"$as_myself" : 'X\(//\)$' \| \
   1211   1.84  christos 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1212  1.108  christos printf "%s\n" X"$as_myself" |
   1213   1.84  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1214   1.84  christos 	    s//\1/
   1215   1.84  christos 	    q
   1216   1.84  christos 	  }
   1217   1.84  christos 	  /^X\(\/\/\)[^/].*/{
   1218   1.84  christos 	    s//\1/
   1219   1.84  christos 	    q
   1220   1.84  christos 	  }
   1221   1.84  christos 	  /^X\(\/\/\)$/{
   1222   1.84  christos 	    s//\1/
   1223   1.84  christos 	    q
   1224   1.84  christos 	  }
   1225   1.84  christos 	  /^X\(\/\).*/{
   1226   1.84  christos 	    s//\1/
   1227   1.84  christos 	    q
   1228   1.84  christos 	  }
   1229   1.84  christos 	  s/.*/./; q'`
   1230    1.1        tv   srcdir=$ac_confdir
   1231   1.84  christos   if test ! -r "$srcdir/$ac_unique_file"; then
   1232    1.1        tv     srcdir=..
   1233    1.1        tv   fi
   1234    1.1        tv else
   1235    1.1        tv   ac_srcdir_defaulted=no
   1236    1.1        tv fi
   1237   1.84  christos if test ! -r "$srcdir/$ac_unique_file"; then
   1238   1.84  christos   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1239   1.84  christos   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1240   1.84  christos fi
   1241  1.108  christos ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
   1242   1.84  christos ac_abs_confdir=`(
   1243   1.84  christos 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1244   1.84  christos 	pwd)`
   1245   1.84  christos # When building in place, set srcdir=.
   1246   1.84  christos if test "$ac_abs_confdir" = "$ac_pwd"; then
   1247   1.84  christos   srcdir=.
   1248   1.84  christos fi
   1249   1.84  christos # Remove unnecessary trailing slashes from srcdir.
   1250   1.84  christos # Double slashes in file names in object file debugging info
   1251   1.84  christos # mess up M-x gdb in Emacs.
   1252   1.84  christos case $srcdir in
   1253   1.84  christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1254   1.84  christos esac
   1255   1.84  christos for ac_var in $ac_precious_vars; do
   1256   1.84  christos   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1257   1.84  christos   eval ac_env_${ac_var}_value=\$${ac_var}
   1258   1.84  christos   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1259   1.84  christos   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1260   1.84  christos done
   1261    1.1        tv 
   1262    1.1        tv #
   1263    1.1        tv # Report the --help message.
   1264    1.1        tv #
   1265    1.1        tv if test "$ac_init_help" = "long"; then
   1266    1.1        tv   # Omit some internal or obsolete options to make the list less imposing.
   1267    1.1        tv   # This message is too long to be a string in the A/UX 3.1 sh.
   1268   1.84  christos   cat <<_ACEOF
   1269  1.108  christos 'configure' configures libnbcompat noversion to adapt to many kinds of systems.
   1270    1.1        tv 
   1271    1.1        tv Usage: $0 [OPTION]... [VAR=VALUE]...
   1272    1.1        tv 
   1273    1.1        tv To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1274    1.1        tv VAR=VALUE.  See below for descriptions of some of the useful variables.
   1275    1.1        tv 
   1276    1.1        tv Defaults for the options are specified in brackets.
   1277    1.1        tv 
   1278    1.1        tv Configuration:
   1279    1.1        tv   -h, --help              display this help and exit
   1280    1.1        tv       --help=short        display options specific to this package
   1281    1.1        tv       --help=recursive    display the short help of all the included packages
   1282    1.1        tv   -V, --version           display version information and exit
   1283  1.108  christos   -q, --quiet, --silent   do not print 'checking ...' messages
   1284    1.1        tv       --cache-file=FILE   cache test results in FILE [disabled]
   1285  1.108  christos   -C, --config-cache      alias for '--cache-file=config.cache'
   1286    1.1        tv   -n, --no-create         do not create output files
   1287  1.108  christos       --srcdir=DIR        find the sources in DIR [configure dir or '..']
   1288    1.1        tv 
   1289    1.1        tv Installation directories:
   1290    1.1        tv   --prefix=PREFIX         install architecture-independent files in PREFIX
   1291   1.66   tsutsui                           [$ac_default_prefix]
   1292    1.1        tv   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1293   1.66   tsutsui                           [PREFIX]
   1294    1.1        tv 
   1295  1.108  christos By default, 'make install' will install all the files in
   1296  1.108  christos '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
   1297  1.108  christos an installation prefix other than '$ac_default_prefix' using '--prefix',
   1298  1.108  christos for instance '--prefix=\$HOME'.
   1299    1.1        tv 
   1300    1.1        tv For better control, use the options below.
   1301    1.1        tv 
   1302    1.1        tv Fine tuning of the installation directories:
   1303   1.84  christos   --bindir=DIR            user executables [EPREFIX/bin]
   1304   1.84  christos   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1305   1.84  christos   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1306   1.84  christos   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1307   1.84  christos   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1308   1.84  christos   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1309  1.108  christos   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1310   1.84  christos   --libdir=DIR            object code libraries [EPREFIX/lib]
   1311   1.84  christos   --includedir=DIR        C header files [PREFIX/include]
   1312   1.84  christos   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1313   1.84  christos   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1314   1.84  christos   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1315   1.84  christos   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1316   1.84  christos   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1317   1.84  christos   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1318   1.84  christos   --docdir=DIR            documentation root [DATAROOTDIR/doc/libnbcompat]
   1319   1.84  christos   --htmldir=DIR           html documentation [DOCDIR]
   1320   1.84  christos   --dvidir=DIR            dvi documentation [DOCDIR]
   1321   1.84  christos   --pdfdir=DIR            pdf documentation [DOCDIR]
   1322   1.84  christos   --psdir=DIR             ps documentation [DOCDIR]
   1323   1.84  christos _ACEOF
   1324    1.1        tv 
   1325   1.84  christos   cat <<\_ACEOF
   1326   1.84  christos _ACEOF
   1327    1.1        tv fi
   1328    1.1        tv 
   1329    1.1        tv if test -n "$ac_init_help"; then
   1330    1.1        tv   case $ac_init_help in
   1331    1.1        tv      short | recursive ) echo "Configuration of libnbcompat noversion:";;
   1332    1.1        tv    esac
   1333   1.84  christos   cat <<\_ACEOF
   1334    1.1        tv 
   1335    1.1        tv Some influential environment variables:
   1336    1.1        tv   CC          C compiler command
   1337    1.1        tv   CFLAGS      C compiler flags
   1338    1.1        tv   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1339    1.1        tv               nonstandard directory <lib dir>
   1340   1.84  christos   LIBS        libraries to pass to the linker, e.g. -l<library>
   1341   1.84  christos   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1342   1.84  christos               you have headers in a nonstandard directory <include dir>
   1343    1.1        tv   CPP         C preprocessor
   1344    1.1        tv 
   1345  1.108  christos Use these variables to override the choices made by 'configure' or to help
   1346    1.1        tv it to find libraries and programs with nonstandard names/locations.
   1347    1.1        tv 
   1348   1.41      salo Report bugs to <lib-bug-people@NetBSD.org>.
   1349   1.84  christos _ACEOF
   1350   1.84  christos ac_status=$?
   1351    1.1        tv fi
   1352    1.1        tv 
   1353    1.1        tv if test "$ac_init_help" = "recursive"; then
   1354    1.1        tv   # If there are subdirs, report their specific --help.
   1355   1.84  christos   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1356   1.84  christos     test -d "$ac_dir" ||
   1357   1.84  christos       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1358   1.84  christos       continue
   1359   1.84  christos     ac_builddir=.
   1360   1.84  christos 
   1361   1.84  christos case "$ac_dir" in
   1362   1.84  christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1363   1.84  christos *)
   1364  1.108  christos   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   1365   1.84  christos   # A ".." for each directory in $ac_dir_suffix.
   1366  1.108  christos   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1367   1.84  christos   case $ac_top_builddir_sub in
   1368   1.84  christos   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1369   1.84  christos   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1370   1.84  christos   esac ;;
   1371   1.84  christos esac
   1372   1.84  christos ac_abs_top_builddir=$ac_pwd
   1373   1.84  christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1374   1.84  christos # for backward compatibility:
   1375   1.84  christos ac_top_builddir=$ac_top_build_prefix
   1376   1.84  christos 
   1377   1.84  christos case $srcdir in
   1378   1.84  christos   .)  # We are building in place.
   1379   1.84  christos     ac_srcdir=.
   1380   1.84  christos     ac_top_srcdir=$ac_top_builddir_sub
   1381   1.84  christos     ac_abs_top_srcdir=$ac_pwd ;;
   1382   1.84  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   1383   1.84  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   1384   1.84  christos     ac_top_srcdir=$srcdir
   1385   1.84  christos     ac_abs_top_srcdir=$srcdir ;;
   1386   1.84  christos   *) # Relative name.
   1387   1.84  christos     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1388   1.84  christos     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1389   1.84  christos     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1390   1.84  christos esac
   1391   1.84  christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1392    1.1        tv 
   1393   1.84  christos     cd "$ac_dir" || { ac_status=$?; continue; }
   1394  1.108  christos     # Check for configure.gnu first; this name is used for a wrapper for
   1395  1.108  christos     # Metaconfig's "Configure" on case-insensitive file systems.
   1396   1.84  christos     if test -f "$ac_srcdir/configure.gnu"; then
   1397   1.84  christos       echo &&
   1398   1.84  christos       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1399   1.84  christos     elif test -f "$ac_srcdir/configure"; then
   1400   1.84  christos       echo &&
   1401   1.84  christos       $SHELL "$ac_srcdir/configure" --help=recursive
   1402   1.65  christos     else
   1403  1.108  christos       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1404   1.84  christos     fi || ac_status=$?
   1405   1.84  christos     cd "$ac_pwd" || { ac_status=$?; break; }
   1406   1.65  christos   done
   1407    1.1        tv fi
   1408    1.1        tv 
   1409   1.84  christos test -n "$ac_init_help" && exit $ac_status
   1410    1.1        tv if $ac_init_version; then
   1411   1.84  christos   cat <<\_ACEOF
   1412    1.1        tv libnbcompat configure noversion
   1413  1.108  christos generated by GNU Autoconf 2.72
   1414    1.1        tv 
   1415  1.108  christos Copyright (C) 2023 Free Software Foundation, Inc.
   1416    1.1        tv This configure script is free software; the Free Software Foundation
   1417    1.1        tv gives unlimited permission to copy, distribute and modify it.
   1418   1.84  christos _ACEOF
   1419   1.84  christos   exit
   1420    1.1        tv fi
   1421    1.1        tv 
   1422   1.84  christos ## ------------------------ ##
   1423   1.84  christos ## Autoconf initialization. ##
   1424   1.84  christos ## ------------------------ ##
   1425   1.84  christos 
   1426   1.84  christos # ac_fn_c_try_compile LINENO
   1427   1.84  christos # --------------------------
   1428   1.84  christos # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1429   1.84  christos ac_fn_c_try_compile ()
   1430   1.84  christos {
   1431   1.84  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1432  1.108  christos   rm -f conftest.$ac_objext conftest.beam
   1433   1.84  christos   if { { ac_try="$ac_compile"
   1434   1.84  christos case "(($ac_try" in
   1435   1.84  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1436   1.84  christos   *) ac_try_echo=$ac_try;;
   1437   1.84  christos esac
   1438   1.84  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1439  1.108  christos printf "%s\n" "$ac_try_echo"; } >&5
   1440   1.84  christos   (eval "$ac_compile") 2>conftest.err
   1441   1.84  christos   ac_status=$?
   1442   1.84  christos   if test -s conftest.err; then
   1443   1.84  christos     grep -v '^ *+' conftest.err >conftest.er1
   1444   1.84  christos     cat conftest.er1 >&5
   1445   1.84  christos     mv -f conftest.er1 conftest.err
   1446   1.84  christos   fi
   1447  1.108  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1448   1.84  christos   test $ac_status = 0; } && {
   1449   1.84  christos 	 test -z "$ac_c_werror_flag" ||
   1450   1.84  christos 	 test ! -s conftest.err
   1451  1.108  christos        } && test -s conftest.$ac_objext
   1452  1.108  christos then :
   1453   1.84  christos   ac_retval=0
   1454  1.108  christos else case e in #(
   1455  1.108  christos   e) printf "%s\n" "$as_me: failed program was:" >&5
   1456   1.84  christos sed 's/^/| /' conftest.$ac_ext >&5
   1457   1.84  christos 
   1458  1.108  christos 	ac_retval=1 ;;
   1459  1.108  christos esac
   1460   1.84  christos fi
   1461   1.84  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1462   1.84  christos   as_fn_set_status $ac_retval
   1463   1.84  christos 
   1464   1.84  christos } # ac_fn_c_try_compile
   1465   1.84  christos 
   1466   1.84  christos # ac_fn_c_try_cpp LINENO
   1467   1.84  christos # ----------------------
   1468   1.84  christos # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1469   1.84  christos ac_fn_c_try_cpp ()
   1470   1.84  christos {
   1471   1.84  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1472   1.84  christos   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1473   1.84  christos case "(($ac_try" in
   1474   1.84  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1475   1.84  christos   *) ac_try_echo=$ac_try;;
   1476   1.84  christos esac
   1477   1.84  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1478  1.108  christos printf "%s\n" "$ac_try_echo"; } >&5
   1479   1.84  christos   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1480   1.84  christos   ac_status=$?
   1481   1.84  christos   if test -s conftest.err; then
   1482   1.84  christos     grep -v '^ *+' conftest.err >conftest.er1
   1483   1.84  christos     cat conftest.er1 >&5
   1484   1.84  christos     mv -f conftest.er1 conftest.err
   1485   1.84  christos   fi
   1486  1.108  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1487   1.84  christos   test $ac_status = 0; } > conftest.i && {
   1488   1.84  christos 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1489   1.84  christos 	 test ! -s conftest.err
   1490  1.108  christos        }
   1491  1.108  christos then :
   1492   1.84  christos   ac_retval=0
   1493  1.108  christos else case e in #(
   1494  1.108  christos   e) printf "%s\n" "$as_me: failed program was:" >&5
   1495   1.84  christos sed 's/^/| /' conftest.$ac_ext >&5
   1496   1.84  christos 
   1497  1.108  christos     ac_retval=1 ;;
   1498  1.108  christos esac
   1499   1.84  christos fi
   1500   1.84  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1501   1.84  christos   as_fn_set_status $ac_retval
   1502   1.84  christos 
   1503   1.84  christos } # ac_fn_c_try_cpp
   1504   1.84  christos 
   1505  1.108  christos # ac_fn_c_try_link LINENO
   1506  1.108  christos # -----------------------
   1507  1.108  christos # Try to link conftest.$ac_ext, and return whether this succeeded.
   1508  1.108  christos ac_fn_c_try_link ()
   1509  1.108  christos {
   1510  1.108  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1511  1.108  christos   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
   1512  1.108  christos   if { { ac_try="$ac_link"
   1513  1.108  christos case "(($ac_try" in
   1514  1.108  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1515  1.108  christos   *) ac_try_echo=$ac_try;;
   1516  1.108  christos esac
   1517  1.108  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1518  1.108  christos printf "%s\n" "$ac_try_echo"; } >&5
   1519  1.108  christos   (eval "$ac_link") 2>conftest.err
   1520  1.108  christos   ac_status=$?
   1521  1.108  christos   if test -s conftest.err; then
   1522  1.108  christos     grep -v '^ *+' conftest.err >conftest.er1
   1523  1.108  christos     cat conftest.er1 >&5
   1524  1.108  christos     mv -f conftest.er1 conftest.err
   1525  1.108  christos   fi
   1526  1.108  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1527  1.108  christos   test $ac_status = 0; } && {
   1528  1.108  christos 	 test -z "$ac_c_werror_flag" ||
   1529  1.108  christos 	 test ! -s conftest.err
   1530  1.108  christos        } && test -s conftest$ac_exeext && {
   1531  1.108  christos 	 test "$cross_compiling" = yes ||
   1532  1.108  christos 	 test -x conftest$ac_exeext
   1533  1.108  christos        }
   1534  1.108  christos then :
   1535  1.108  christos   ac_retval=0
   1536  1.108  christos else case e in #(
   1537  1.108  christos   e) printf "%s\n" "$as_me: failed program was:" >&5
   1538  1.108  christos sed 's/^/| /' conftest.$ac_ext >&5
   1539  1.108  christos 
   1540  1.108  christos 	ac_retval=1 ;;
   1541  1.108  christos esac
   1542  1.108  christos fi
   1543  1.108  christos   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1544  1.108  christos   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1545  1.108  christos   # interfere with the next link command; also delete a directory that is
   1546  1.108  christos   # left behind by Apple's compiler.  We do this before executing the actions.
   1547  1.108  christos   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1548  1.108  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1549  1.108  christos   as_fn_set_status $ac_retval
   1550  1.108  christos 
   1551  1.108  christos } # ac_fn_c_try_link
   1552  1.108  christos 
   1553   1.84  christos # ac_fn_c_try_run LINENO
   1554   1.84  christos # ----------------------
   1555  1.108  christos # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
   1556  1.108  christos # executables *can* be run.
   1557   1.84  christos ac_fn_c_try_run ()
   1558   1.84  christos {
   1559   1.84  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1560   1.84  christos   if { { ac_try="$ac_link"
   1561   1.84  christos case "(($ac_try" in
   1562   1.84  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1563   1.84  christos   *) ac_try_echo=$ac_try;;
   1564   1.84  christos esac
   1565   1.84  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1566  1.108  christos printf "%s\n" "$ac_try_echo"; } >&5
   1567   1.84  christos   (eval "$ac_link") 2>&5
   1568   1.84  christos   ac_status=$?
   1569  1.108  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1570   1.84  christos   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1571   1.84  christos   { { case "(($ac_try" in
   1572   1.84  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1573   1.84  christos   *) ac_try_echo=$ac_try;;
   1574   1.84  christos esac
   1575   1.84  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1576  1.108  christos printf "%s\n" "$ac_try_echo"; } >&5
   1577   1.84  christos   (eval "$ac_try") 2>&5
   1578   1.84  christos   ac_status=$?
   1579  1.108  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1580  1.108  christos   test $ac_status = 0; }; }
   1581  1.108  christos then :
   1582   1.84  christos   ac_retval=0
   1583  1.108  christos else case e in #(
   1584  1.108  christos   e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
   1585  1.108  christos        printf "%s\n" "$as_me: failed program was:" >&5
   1586   1.84  christos sed 's/^/| /' conftest.$ac_ext >&5
   1587   1.84  christos 
   1588  1.108  christos        ac_retval=$ac_status ;;
   1589  1.108  christos esac
   1590   1.84  christos fi
   1591   1.84  christos   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1592   1.84  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1593   1.84  christos   as_fn_set_status $ac_retval
   1594   1.84  christos 
   1595   1.84  christos } # ac_fn_c_try_run
   1596   1.84  christos 
   1597   1.84  christos # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1598   1.84  christos # -------------------------------------------------------
   1599   1.84  christos # Tests whether HEADER exists and can be compiled using the include files in
   1600   1.84  christos # INCLUDES, setting the cache variable VAR accordingly.
   1601   1.84  christos ac_fn_c_check_header_compile ()
   1602   1.84  christos {
   1603   1.84  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1604  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1605  1.108  christos printf %s "checking for $2... " >&6; }
   1606  1.108  christos if eval test \${$3+y}
   1607  1.108  christos then :
   1608  1.108  christos   printf %s "(cached) " >&6
   1609  1.108  christos else case e in #(
   1610  1.108  christos   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1611   1.84  christos /* end confdefs.h.  */
   1612   1.84  christos $4
   1613   1.84  christos #include <$2>
   1614   1.84  christos _ACEOF
   1615  1.108  christos if ac_fn_c_try_compile "$LINENO"
   1616  1.108  christos then :
   1617   1.84  christos   eval "$3=yes"
   1618  1.108  christos else case e in #(
   1619  1.108  christos   e) eval "$3=no" ;;
   1620  1.108  christos esac
   1621   1.84  christos fi
   1622  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   1623  1.108  christos esac
   1624   1.84  christos fi
   1625   1.84  christos eval ac_res=\$$3
   1626  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1627  1.108  christos printf "%s\n" "$ac_res" >&6; }
   1628   1.84  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1629   1.84  christos 
   1630   1.84  christos } # ac_fn_c_check_header_compile
   1631   1.84  christos 
   1632   1.84  christos # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   1633   1.84  christos # -------------------------------------------
   1634   1.84  christos # Tests whether TYPE exists after having included INCLUDES, setting cache
   1635   1.84  christos # variable VAR accordingly.
   1636   1.84  christos ac_fn_c_check_type ()
   1637   1.84  christos {
   1638   1.84  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1639  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1640  1.108  christos printf %s "checking for $2... " >&6; }
   1641  1.108  christos if eval test \${$3+y}
   1642  1.108  christos then :
   1643  1.108  christos   printf %s "(cached) " >&6
   1644  1.108  christos else case e in #(
   1645  1.108  christos   e) eval "$3=no"
   1646   1.84  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1647   1.84  christos /* end confdefs.h.  */
   1648   1.84  christos $4
   1649   1.84  christos int
   1650  1.108  christos main (void)
   1651   1.84  christos {
   1652   1.84  christos if (sizeof ($2))
   1653   1.84  christos 	 return 0;
   1654   1.84  christos   ;
   1655   1.84  christos   return 0;
   1656   1.84  christos }
   1657   1.84  christos _ACEOF
   1658  1.108  christos if ac_fn_c_try_compile "$LINENO"
   1659  1.108  christos then :
   1660   1.84  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1661   1.84  christos /* end confdefs.h.  */
   1662   1.84  christos $4
   1663   1.84  christos int
   1664  1.108  christos main (void)
   1665   1.74  christos {
   1666   1.84  christos if (sizeof (($2)))
   1667   1.84  christos 	    return 0;
   1668   1.84  christos   ;
   1669   1.84  christos   return 0;
   1670   1.84  christos }
   1671   1.84  christos _ACEOF
   1672  1.108  christos if ac_fn_c_try_compile "$LINENO"
   1673  1.108  christos then :
   1674   1.84  christos 
   1675  1.108  christos else case e in #(
   1676  1.108  christos   e) eval "$3=yes" ;;
   1677  1.108  christos esac
   1678   1.84  christos fi
   1679  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1680   1.84  christos fi
   1681  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   1682  1.108  christos esac
   1683   1.84  christos fi
   1684   1.84  christos eval ac_res=\$$3
   1685  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1686  1.108  christos printf "%s\n" "$ac_res" >&6; }
   1687   1.84  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1688   1.84  christos 
   1689   1.84  christos } # ac_fn_c_check_type
   1690   1.74  christos 
   1691   1.84  christos # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   1692   1.84  christos # ----------------------------------------------------
   1693   1.84  christos # Tries to find if the field MEMBER exists in type AGGR, after including
   1694   1.84  christos # INCLUDES, setting cache variable VAR accordingly.
   1695   1.84  christos ac_fn_c_check_member ()
   1696   1.84  christos {
   1697   1.84  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1698  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   1699  1.108  christos printf %s "checking for $2.$3... " >&6; }
   1700  1.108  christos if eval test \${$4+y}
   1701  1.108  christos then :
   1702  1.108  christos   printf %s "(cached) " >&6
   1703  1.108  christos else case e in #(
   1704  1.108  christos   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1705   1.84  christos /* end confdefs.h.  */
   1706   1.84  christos $5
   1707   1.84  christos int
   1708  1.108  christos main (void)
   1709   1.84  christos {
   1710   1.84  christos static $2 ac_aggr;
   1711   1.84  christos if (ac_aggr.$3)
   1712   1.84  christos return 0;
   1713   1.84  christos   ;
   1714   1.84  christos   return 0;
   1715   1.84  christos }
   1716   1.84  christos _ACEOF
   1717  1.108  christos if ac_fn_c_try_compile "$LINENO"
   1718  1.108  christos then :
   1719   1.84  christos   eval "$4=yes"
   1720  1.108  christos else case e in #(
   1721  1.108  christos   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1722   1.84  christos /* end confdefs.h.  */
   1723   1.84  christos $5
   1724   1.84  christos int
   1725  1.108  christos main (void)
   1726   1.84  christos {
   1727   1.84  christos static $2 ac_aggr;
   1728   1.84  christos if (sizeof ac_aggr.$3)
   1729   1.84  christos return 0;
   1730   1.84  christos   ;
   1731   1.84  christos   return 0;
   1732   1.84  christos }
   1733   1.84  christos _ACEOF
   1734  1.108  christos if ac_fn_c_try_compile "$LINENO"
   1735  1.108  christos then :
   1736   1.84  christos   eval "$4=yes"
   1737  1.108  christos else case e in #(
   1738  1.108  christos   e) eval "$4=no" ;;
   1739  1.108  christos esac
   1740   1.84  christos fi
   1741  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   1742  1.108  christos esac
   1743   1.84  christos fi
   1744  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   1745  1.108  christos esac
   1746   1.84  christos fi
   1747   1.84  christos eval ac_res=\$$4
   1748  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1749  1.108  christos printf "%s\n" "$ac_res" >&6; }
   1750   1.84  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1751   1.74  christos 
   1752   1.84  christos } # ac_fn_c_check_member
   1753    1.1        tv 
   1754  1.108  christos # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
   1755  1.108  christos # ------------------------------------------------------------------
   1756   1.84  christos # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1757  1.108  christos # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
   1758  1.108  christos ac_fn_check_decl ()
   1759   1.84  christos {
   1760   1.84  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1761   1.84  christos   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1762  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1763  1.108  christos printf %s "checking whether $as_decl_name is declared... " >&6; }
   1764  1.108  christos if eval test \${$3+y}
   1765  1.108  christos then :
   1766  1.108  christos   printf %s "(cached) " >&6
   1767  1.108  christos else case e in #(
   1768  1.108  christos   e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1769  1.108  christos   eval ac_save_FLAGS=\$$6
   1770  1.108  christos   as_fn_append $6 " $5"
   1771   1.84  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1772   1.84  christos /* end confdefs.h.  */
   1773   1.84  christos $4
   1774   1.84  christos int
   1775  1.108  christos main (void)
   1776   1.84  christos {
   1777   1.84  christos #ifndef $as_decl_name
   1778   1.84  christos #ifdef __cplusplus
   1779   1.84  christos   (void) $as_decl_use;
   1780   1.84  christos #else
   1781   1.84  christos   (void) $as_decl_name;
   1782   1.84  christos #endif
   1783   1.84  christos #endif
   1784    1.1        tv 
   1785   1.84  christos   ;
   1786   1.84  christos   return 0;
   1787   1.84  christos }
   1788   1.84  christos _ACEOF
   1789  1.108  christos if ac_fn_c_try_compile "$LINENO"
   1790  1.108  christos then :
   1791   1.84  christos   eval "$3=yes"
   1792  1.108  christos else case e in #(
   1793  1.108  christos   e) eval "$3=no" ;;
   1794  1.108  christos esac
   1795   1.84  christos fi
   1796  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1797  1.108  christos   eval $6=\$ac_save_FLAGS
   1798  1.108  christos  ;;
   1799  1.108  christos esac
   1800   1.84  christos fi
   1801   1.84  christos eval ac_res=\$$3
   1802  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1803  1.108  christos printf "%s\n" "$ac_res" >&6; }
   1804   1.84  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1805    1.1        tv 
   1806  1.108  christos } # ac_fn_check_decl
   1807    1.1        tv 
   1808   1.84  christos # ac_fn_c_check_func LINENO FUNC VAR
   1809   1.84  christos # ----------------------------------
   1810   1.84  christos # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1811   1.84  christos ac_fn_c_check_func ()
   1812   1.84  christos {
   1813   1.84  christos   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1814  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1815  1.108  christos printf %s "checking for $2... " >&6; }
   1816  1.108  christos if eval test \${$3+y}
   1817  1.108  christos then :
   1818  1.108  christos   printf %s "(cached) " >&6
   1819  1.108  christos else case e in #(
   1820  1.108  christos   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1821   1.84  christos /* end confdefs.h.  */
   1822   1.84  christos /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1823   1.84  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1824   1.84  christos #define $2 innocuous_$2
   1825   1.84  christos 
   1826   1.84  christos /* System header to define __stub macros and hopefully few prototypes,
   1827  1.108  christos    which can conflict with char $2 (void); below.  */
   1828   1.84  christos 
   1829  1.108  christos #include <limits.h>
   1830   1.84  christos #undef $2
   1831   1.84  christos 
   1832   1.84  christos /* Override any GCC internal prototype to avoid an error.
   1833   1.84  christos    Use char because int might match the return type of a GCC
   1834   1.84  christos    builtin and then its argument prototype would still apply.  */
   1835   1.84  christos #ifdef __cplusplus
   1836   1.84  christos extern "C"
   1837   1.84  christos #endif
   1838  1.108  christos char $2 (void);
   1839   1.84  christos /* The GNU C library defines this for functions which it implements
   1840   1.84  christos     to always fail with ENOSYS.  Some functions are actually named
   1841   1.84  christos     something starting with __ and the normal name is an alias.  */
   1842   1.84  christos #if defined __stub_$2 || defined __stub___$2
   1843   1.84  christos choke me
   1844   1.84  christos #endif
   1845   1.84  christos 
   1846   1.84  christos int
   1847  1.108  christos main (void)
   1848   1.84  christos {
   1849   1.84  christos return $2 ();
   1850   1.84  christos   ;
   1851   1.84  christos   return 0;
   1852   1.84  christos }
   1853   1.84  christos _ACEOF
   1854  1.108  christos if ac_fn_c_try_link "$LINENO"
   1855  1.108  christos then :
   1856   1.84  christos   eval "$3=yes"
   1857  1.108  christos else case e in #(
   1858  1.108  christos   e) eval "$3=no" ;;
   1859  1.108  christos esac
   1860   1.84  christos fi
   1861  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   1862  1.108  christos     conftest$ac_exeext conftest.$ac_ext ;;
   1863  1.108  christos esac
   1864   1.84  christos fi
   1865   1.84  christos eval ac_res=\$$3
   1866  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1867  1.108  christos printf "%s\n" "$ac_res" >&6; }
   1868   1.84  christos   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1869   1.84  christos 
   1870   1.84  christos } # ac_fn_c_check_func
   1871  1.108  christos ac_configure_args_raw=
   1872  1.108  christos for ac_arg
   1873  1.108  christos do
   1874  1.108  christos   case $ac_arg in
   1875  1.108  christos   *\'*)
   1876  1.108  christos     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1877  1.108  christos   esac
   1878  1.108  christos   as_fn_append ac_configure_args_raw " '$ac_arg'"
   1879  1.108  christos done
   1880  1.108  christos 
   1881  1.108  christos case $ac_configure_args_raw in
   1882  1.108  christos   *$as_nl*)
   1883  1.108  christos     ac_safe_unquote= ;;
   1884  1.108  christos   *)
   1885  1.108  christos     ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
   1886  1.108  christos     ac_unsafe_a="$ac_unsafe_z#~"
   1887  1.108  christos     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
   1888  1.108  christos     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
   1889  1.108  christos esac
   1890  1.108  christos 
   1891   1.84  christos cat >config.log <<_ACEOF
   1892   1.84  christos This file contains any messages produced by compilers while
   1893   1.84  christos running configure, to aid debugging if configure makes a mistake.
   1894   1.84  christos 
   1895   1.84  christos It was created by libnbcompat $as_me noversion, which was
   1896  1.108  christos generated by GNU Autoconf 2.72.  Invocation command line was
   1897   1.84  christos 
   1898  1.108  christos   $ $0$ac_configure_args_raw
   1899   1.84  christos 
   1900   1.84  christos _ACEOF
   1901   1.84  christos exec 5>>config.log
   1902   1.84  christos {
   1903   1.84  christos cat <<_ASUNAME
   1904   1.84  christos ## --------- ##
   1905   1.84  christos ## Platform. ##
   1906   1.84  christos ## --------- ##
   1907   1.84  christos 
   1908   1.84  christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1909   1.84  christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1910   1.84  christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1911   1.84  christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1912   1.84  christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1913   1.84  christos 
   1914   1.84  christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1915   1.84  christos /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1916   1.84  christos 
   1917   1.84  christos /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1918   1.84  christos /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1919   1.84  christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1920   1.84  christos /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1921   1.84  christos /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1922   1.84  christos /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1923   1.84  christos /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1924   1.84  christos 
   1925   1.84  christos _ASUNAME
   1926   1.84  christos 
   1927   1.84  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1928   1.84  christos for as_dir in $PATH
   1929   1.84  christos do
   1930   1.84  christos   IFS=$as_save_IFS
   1931  1.108  christos   case $as_dir in #(((
   1932  1.108  christos     '') as_dir=./ ;;
   1933  1.108  christos     */) ;;
   1934  1.108  christos     *) as_dir=$as_dir/ ;;
   1935  1.108  christos   esac
   1936  1.108  christos     printf "%s\n" "PATH: $as_dir"
   1937   1.84  christos   done
   1938   1.84  christos IFS=$as_save_IFS
   1939   1.84  christos 
   1940   1.84  christos } >&5
   1941   1.84  christos 
   1942   1.84  christos cat >&5 <<_ACEOF
   1943   1.84  christos 
   1944   1.84  christos 
   1945   1.84  christos ## ----------- ##
   1946   1.84  christos ## Core tests. ##
   1947   1.84  christos ## ----------- ##
   1948   1.84  christos 
   1949   1.84  christos _ACEOF
   1950   1.66   tsutsui 
   1951    1.1        tv 
   1952   1.76     pooka # Keep a trace of the command line.
   1953   1.76     pooka # Strip out --no-create and --no-recursion so they do not pile up.
   1954   1.84  christos # Strip out --silent because we don't want to record it for future runs.
   1955   1.76     pooka # Also quote any args containing shell meta-characters.
   1956   1.84  christos # Make two passes to allow for proper duplicate-argument suppression.
   1957   1.76     pooka ac_configure_args=
   1958   1.84  christos ac_configure_args0=
   1959   1.84  christos ac_configure_args1=
   1960   1.84  christos ac_must_keep_next=false
   1961   1.84  christos for ac_pass in 1 2
   1962   1.76     pooka do
   1963   1.84  christos   for ac_arg
   1964   1.84  christos   do
   1965   1.84  christos     case $ac_arg in
   1966   1.84  christos     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1967   1.84  christos     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1968   1.84  christos     | -silent | --silent | --silen | --sile | --sil)
   1969   1.84  christos       continue ;;
   1970   1.84  christos     *\'*)
   1971  1.108  christos       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1972   1.84  christos     esac
   1973   1.84  christos     case $ac_pass in
   1974   1.84  christos     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   1975   1.84  christos     2)
   1976   1.84  christos       as_fn_append ac_configure_args1 " '$ac_arg'"
   1977   1.84  christos       if test $ac_must_keep_next = true; then
   1978   1.84  christos 	ac_must_keep_next=false # Got value, back to normal.
   1979   1.84  christos       else
   1980   1.84  christos 	case $ac_arg in
   1981   1.84  christos 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1982   1.84  christos 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1983   1.84  christos 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1984   1.84  christos 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1985   1.84  christos 	    case "$ac_configure_args0 " in
   1986   1.84  christos 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1987   1.84  christos 	    esac
   1988   1.84  christos 	    ;;
   1989   1.84  christos 	  -* ) ac_must_keep_next=true ;;
   1990   1.84  christos 	esac
   1991   1.84  christos       fi
   1992   1.84  christos       as_fn_append ac_configure_args " '$ac_arg'"
   1993   1.84  christos       ;;
   1994   1.84  christos     esac
   1995   1.84  christos   done
   1996    1.1        tv done
   1997   1.84  christos { ac_configure_args0=; unset ac_configure_args0;}
   1998   1.84  christos { ac_configure_args1=; unset ac_configure_args1;}
   1999    1.1        tv 
   2000    1.1        tv # When interrupted or exit'd, cleanup temporary files, and complete
   2001    1.1        tv # config.log.  We remove comments because anyway the quotes in there
   2002    1.1        tv # would cause problems or look ugly.
   2003   1.84  christos # WARNING: Use '\'' to represent an apostrophe within the trap.
   2004   1.84  christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2005    1.1        tv trap 'exit_status=$?
   2006  1.108  christos   # Sanitize IFS.
   2007  1.108  christos   IFS=" ""	$as_nl"
   2008    1.1        tv   # Save into config.log some information that might help in debugging.
   2009   1.84  christos   {
   2010   1.84  christos     echo
   2011   1.84  christos 
   2012  1.108  christos     printf "%s\n" "## ---------------- ##
   2013   1.84  christos ## Cache variables. ##
   2014   1.84  christos ## ---------------- ##"
   2015   1.84  christos     echo
   2016   1.84  christos     # The following way of writing the cache mishandles newlines in values,
   2017   1.84  christos (
   2018   1.84  christos   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2019   1.84  christos     eval ac_val=\$$ac_var
   2020   1.84  christos     case $ac_val in #(
   2021   1.84  christos     *${as_nl}*)
   2022   1.84  christos       case $ac_var in #(
   2023  1.108  christos       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2024  1.108  christos printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2025   1.84  christos       esac
   2026   1.84  christos       case $ac_var in #(
   2027   1.84  christos       _ | IFS | as_nl) ;; #(
   2028   1.84  christos       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2029   1.84  christos       *) { eval $ac_var=; unset $ac_var;} ;;
   2030   1.84  christos       esac ;;
   2031   1.84  christos     esac
   2032   1.84  christos   done
   2033    1.1        tv   (set) 2>&1 |
   2034   1.84  christos     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2035   1.84  christos     *${as_nl}ac_space=\ *)
   2036    1.1        tv       sed -n \
   2037   1.84  christos 	"s/'\''/'\''\\\\'\'''\''/g;
   2038   1.84  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2039   1.84  christos       ;; #(
   2040    1.1        tv     *)
   2041   1.84  christos       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2042    1.1        tv       ;;
   2043   1.84  christos     esac |
   2044   1.84  christos     sort
   2045   1.84  christos )
   2046   1.84  christos     echo
   2047   1.84  christos 
   2048  1.108  christos     printf "%s\n" "## ----------------- ##
   2049   1.84  christos ## Output variables. ##
   2050   1.84  christos ## ----------------- ##"
   2051   1.84  christos     echo
   2052   1.84  christos     for ac_var in $ac_subst_vars
   2053   1.84  christos     do
   2054   1.84  christos       eval ac_val=\$$ac_var
   2055   1.84  christos       case $ac_val in
   2056  1.108  christos       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2057   1.84  christos       esac
   2058  1.108  christos       printf "%s\n" "$ac_var='\''$ac_val'\''"
   2059   1.84  christos     done | sort
   2060   1.84  christos     echo
   2061   1.84  christos 
   2062   1.84  christos     if test -n "$ac_subst_files"; then
   2063  1.108  christos       printf "%s\n" "## ------------------- ##
   2064   1.84  christos ## File substitutions. ##
   2065   1.84  christos ## ------------------- ##"
   2066   1.84  christos       echo
   2067   1.84  christos       for ac_var in $ac_subst_files
   2068   1.84  christos       do
   2069   1.84  christos 	eval ac_val=\$$ac_var
   2070   1.84  christos 	case $ac_val in
   2071  1.108  christos 	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2072   1.84  christos 	esac
   2073  1.108  christos 	printf "%s\n" "$ac_var='\''$ac_val'\''"
   2074   1.84  christos       done | sort
   2075   1.84  christos       echo
   2076   1.84  christos     fi
   2077   1.84  christos 
   2078   1.84  christos     if test -s confdefs.h; then
   2079  1.108  christos       printf "%s\n" "## ----------- ##
   2080   1.84  christos ## confdefs.h. ##
   2081   1.84  christos ## ----------- ##"
   2082   1.84  christos       echo
   2083   1.84  christos       cat confdefs.h
   2084   1.84  christos       echo
   2085   1.84  christos     fi
   2086   1.84  christos     test "$ac_signal" != 0 &&
   2087  1.108  christos       printf "%s\n" "$as_me: caught signal $ac_signal"
   2088  1.108  christos     printf "%s\n" "$as_me: exit $exit_status"
   2089   1.84  christos   } >&5
   2090   1.84  christos   rm -f core *.core core.conftest.* &&
   2091   1.84  christos     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2092    1.1        tv     exit $exit_status
   2093   1.84  christos ' 0
   2094    1.1        tv for ac_signal in 1 2 13 15; do
   2095   1.84  christos   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2096    1.1        tv done
   2097    1.1        tv ac_signal=0
   2098    1.1        tv 
   2099    1.1        tv # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2100   1.84  christos rm -f -r conftest* confdefs.h
   2101   1.84  christos 
   2102  1.108  christos printf "%s\n" "/* confdefs.h */" > confdefs.h
   2103   1.84  christos 
   2104   1.84  christos # Predefined preprocessor variables.
   2105   1.84  christos 
   2106  1.108  christos printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
   2107   1.84  christos 
   2108  1.108  christos printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
   2109   1.84  christos 
   2110  1.108  christos printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
   2111   1.84  christos 
   2112  1.108  christos printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
   2113   1.84  christos 
   2114  1.108  christos printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
   2115   1.84  christos 
   2116  1.108  christos printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
   2117   1.84  christos 
   2118    1.1        tv 
   2119    1.1        tv # Let the site file select an alternate cache file if it wants to.
   2120   1.84  christos # Prefer an explicitly selected file to automatically selected ones.
   2121   1.84  christos if test -n "$CONFIG_SITE"; then
   2122  1.108  christos   ac_site_files="$CONFIG_SITE"
   2123   1.84  christos elif test "x$prefix" != xNONE; then
   2124  1.108  christos   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
   2125   1.84  christos else
   2126  1.108  christos   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   2127    1.1        tv fi
   2128  1.108  christos 
   2129  1.108  christos for ac_site_file in $ac_site_files
   2130   1.84  christos do
   2131  1.108  christos   case $ac_site_file in #(
   2132  1.108  christos   */*) :
   2133  1.108  christos      ;; #(
   2134  1.108  christos   *) :
   2135  1.108  christos     ac_site_file=./$ac_site_file ;;
   2136  1.108  christos esac
   2137  1.108  christos   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
   2138  1.108  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2139  1.108  christos printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
   2140   1.84  christos     sed 's/^/| /' "$ac_site_file" >&5
   2141   1.84  christos     . "$ac_site_file" \
   2142  1.108  christos       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   2143  1.108  christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   2144   1.84  christos as_fn_error $? "failed to load site script $ac_site_file
   2145  1.108  christos See 'config.log' for more details" "$LINENO" 5; }
   2146    1.1        tv   fi
   2147    1.1        tv done
   2148    1.1        tv 
   2149    1.1        tv if test -r "$cache_file"; then
   2150   1.84  christos   # Some versions of bash will fail to source /dev/null (special files
   2151   1.84  christos   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2152   1.84  christos   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2153  1.108  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2154  1.108  christos printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
   2155    1.1        tv     case $cache_file in
   2156   1.84  christos       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2157   1.84  christos       *)                      . "./$cache_file";;
   2158    1.1        tv     esac
   2159    1.1        tv   fi
   2160    1.1        tv else
   2161  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2162  1.108  christos printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
   2163    1.1        tv   >$cache_file
   2164    1.1        tv fi
   2165    1.1        tv 
   2166  1.108  christos # Test code for whether the C compiler supports C89 (global declarations)
   2167  1.108  christos ac_c_conftest_c89_globals='
   2168  1.108  christos /* Does the compiler advertise C89 conformance?
   2169  1.108  christos    Do not test the value of __STDC__, because some compilers set it to 0
   2170  1.108  christos    while being otherwise adequately conformant. */
   2171  1.108  christos #if !defined __STDC__
   2172  1.108  christos # error "Compiler does not advertise C89 conformance"
   2173  1.108  christos #endif
   2174  1.108  christos 
   2175  1.108  christos #include <stddef.h>
   2176  1.108  christos #include <stdarg.h>
   2177  1.108  christos struct stat;
   2178  1.108  christos /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
   2179  1.108  christos struct buf { int x; };
   2180  1.108  christos struct buf * (*rcsopen) (struct buf *, struct stat *, int);
   2181  1.108  christos static char *e (char **p, int i)
   2182  1.108  christos {
   2183  1.108  christos   return p[i];
   2184  1.108  christos }
   2185  1.108  christos static char *f (char * (*g) (char **, int), char **p, ...)
   2186  1.108  christos {
   2187  1.108  christos   char *s;
   2188  1.108  christos   va_list v;
   2189  1.108  christos   va_start (v,p);
   2190  1.108  christos   s = g (p, va_arg (v,int));
   2191  1.108  christos   va_end (v);
   2192  1.108  christos   return s;
   2193  1.108  christos }
   2194  1.108  christos 
   2195  1.108  christos /* C89 style stringification. */
   2196  1.108  christos #define noexpand_stringify(a) #a
   2197  1.108  christos const char *stringified = noexpand_stringify(arbitrary+token=sequence);
   2198  1.108  christos 
   2199  1.108  christos /* C89 style token pasting.  Exercises some of the corner cases that
   2200  1.108  christos    e.g. old MSVC gets wrong, but not very hard. */
   2201  1.108  christos #define noexpand_concat(a,b) a##b
   2202  1.108  christos #define expand_concat(a,b) noexpand_concat(a,b)
   2203  1.108  christos extern int vA;
   2204  1.108  christos extern int vbee;
   2205  1.108  christos #define aye A
   2206  1.108  christos #define bee B
   2207  1.108  christos int *pvA = &expand_concat(v,aye);
   2208  1.108  christos int *pvbee = &noexpand_concat(v,bee);
   2209  1.108  christos 
   2210  1.108  christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2211  1.108  christos    function prototypes and stuff, but not \xHH hex character constants.
   2212  1.108  christos    These do not provoke an error unfortunately, instead are silently treated
   2213  1.108  christos    as an "x".  The following induces an error, until -std is added to get
   2214  1.108  christos    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   2215  1.108  christos    array size at least.  It is necessary to write \x00 == 0 to get something
   2216  1.108  christos    that is true only with -std.  */
   2217  1.108  christos int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
   2218  1.108  christos 
   2219  1.108  christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2220  1.108  christos    inside strings and character constants.  */
   2221  1.108  christos #define FOO(x) '\''x'\''
   2222  1.108  christos int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
   2223  1.108  christos 
   2224  1.108  christos int test (int i, double x);
   2225  1.108  christos struct s1 {int (*f) (int a);};
   2226  1.108  christos struct s2 {int (*f) (double a);};
   2227  1.108  christos int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
   2228  1.108  christos                int, int);'
   2229  1.108  christos 
   2230  1.108  christos # Test code for whether the C compiler supports C89 (body of main).
   2231  1.108  christos ac_c_conftest_c89_main='
   2232  1.108  christos ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
   2233  1.108  christos '
   2234  1.108  christos 
   2235  1.108  christos # Test code for whether the C compiler supports C99 (global declarations)
   2236  1.108  christos ac_c_conftest_c99_globals='
   2237  1.108  christos /* Does the compiler advertise C99 conformance? */
   2238  1.108  christos #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
   2239  1.108  christos # error "Compiler does not advertise C99 conformance"
   2240  1.108  christos #endif
   2241  1.108  christos 
   2242  1.108  christos // See if C++-style comments work.
   2243  1.108  christos 
   2244  1.108  christos #include <stdbool.h>
   2245  1.108  christos extern int puts (const char *);
   2246  1.108  christos extern int printf (const char *, ...);
   2247  1.108  christos extern int dprintf (int, const char *, ...);
   2248  1.108  christos extern void *malloc (size_t);
   2249  1.108  christos extern void free (void *);
   2250  1.108  christos 
   2251  1.108  christos // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   2252  1.108  christos // dprintf is used instead of fprintf to avoid needing to declare
   2253  1.108  christos // FILE and stderr.
   2254  1.108  christos #define debug(...) dprintf (2, __VA_ARGS__)
   2255  1.108  christos #define showlist(...) puts (#__VA_ARGS__)
   2256  1.108  christos #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   2257  1.108  christos static void
   2258  1.108  christos test_varargs_macros (void)
   2259  1.108  christos {
   2260  1.108  christos   int x = 1234;
   2261  1.108  christos   int y = 5678;
   2262  1.108  christos   debug ("Flag");
   2263  1.108  christos   debug ("X = %d\n", x);
   2264  1.108  christos   showlist (The first, second, and third items.);
   2265  1.108  christos   report (x>y, "x is %d but y is %d", x, y);
   2266  1.108  christos }
   2267  1.108  christos 
   2268  1.108  christos // Check long long types.
   2269  1.108  christos #define BIG64 18446744073709551615ull
   2270  1.108  christos #define BIG32 4294967295ul
   2271  1.108  christos #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   2272  1.108  christos #if !BIG_OK
   2273  1.108  christos   #error "your preprocessor is broken"
   2274  1.108  christos #endif
   2275  1.108  christos #if BIG_OK
   2276  1.108  christos #else
   2277  1.108  christos   #error "your preprocessor is broken"
   2278  1.108  christos #endif
   2279  1.108  christos static long long int bignum = -9223372036854775807LL;
   2280  1.108  christos static unsigned long long int ubignum = BIG64;
   2281  1.108  christos 
   2282  1.108  christos struct incomplete_array
   2283  1.108  christos {
   2284  1.108  christos   int datasize;
   2285  1.108  christos   double data[];
   2286  1.108  christos };
   2287  1.108  christos 
   2288  1.108  christos struct named_init {
   2289  1.108  christos   int number;
   2290  1.108  christos   const wchar_t *name;
   2291  1.108  christos   double average;
   2292  1.108  christos };
   2293  1.108  christos 
   2294  1.108  christos typedef const char *ccp;
   2295  1.108  christos 
   2296  1.108  christos static inline int
   2297  1.108  christos test_restrict (ccp restrict text)
   2298  1.108  christos {
   2299  1.108  christos   // Iterate through items via the restricted pointer.
   2300  1.108  christos   // Also check for declarations in for loops.
   2301  1.108  christos   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
   2302  1.108  christos     continue;
   2303  1.108  christos   return 0;
   2304  1.108  christos }
   2305  1.108  christos 
   2306  1.108  christos // Check varargs and va_copy.
   2307  1.108  christos static bool
   2308  1.108  christos test_varargs (const char *format, ...)
   2309  1.108  christos {
   2310  1.108  christos   va_list args;
   2311  1.108  christos   va_start (args, format);
   2312  1.108  christos   va_list args_copy;
   2313  1.108  christos   va_copy (args_copy, args);
   2314  1.108  christos 
   2315  1.108  christos   const char *str = "";
   2316  1.108  christos   int number = 0;
   2317  1.108  christos   float fnumber = 0;
   2318  1.108  christos 
   2319  1.108  christos   while (*format)
   2320  1.108  christos     {
   2321  1.108  christos       switch (*format++)
   2322  1.108  christos 	{
   2323  1.108  christos 	case '\''s'\'': // string
   2324  1.108  christos 	  str = va_arg (args_copy, const char *);
   2325  1.108  christos 	  break;
   2326  1.108  christos 	case '\''d'\'': // int
   2327  1.108  christos 	  number = va_arg (args_copy, int);
   2328  1.108  christos 	  break;
   2329  1.108  christos 	case '\''f'\'': // float
   2330  1.108  christos 	  fnumber = va_arg (args_copy, double);
   2331  1.108  christos 	  break;
   2332  1.108  christos 	default:
   2333  1.108  christos 	  break;
   2334  1.108  christos 	}
   2335  1.108  christos     }
   2336  1.108  christos   va_end (args_copy);
   2337  1.108  christos   va_end (args);
   2338  1.108  christos 
   2339  1.108  christos   return *str && number && fnumber;
   2340  1.108  christos }
   2341  1.108  christos '
   2342  1.108  christos 
   2343  1.108  christos # Test code for whether the C compiler supports C99 (body of main).
   2344  1.108  christos ac_c_conftest_c99_main='
   2345  1.108  christos   // Check bool.
   2346  1.108  christos   _Bool success = false;
   2347  1.108  christos   success |= (argc != 0);
   2348  1.108  christos 
   2349  1.108  christos   // Check restrict.
   2350  1.108  christos   if (test_restrict ("String literal") == 0)
   2351  1.108  christos     success = true;
   2352  1.108  christos   char *restrict newvar = "Another string";
   2353  1.108  christos 
   2354  1.108  christos   // Check varargs.
   2355  1.108  christos   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
   2356  1.108  christos   test_varargs_macros ();
   2357  1.108  christos 
   2358  1.108  christos   // Check flexible array members.
   2359  1.108  christos   struct incomplete_array *ia =
   2360  1.108  christos     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   2361  1.108  christos   ia->datasize = 10;
   2362  1.108  christos   for (int i = 0; i < ia->datasize; ++i)
   2363  1.108  christos     ia->data[i] = i * 1.234;
   2364  1.108  christos   // Work around memory leak warnings.
   2365  1.108  christos   free (ia);
   2366  1.108  christos 
   2367  1.108  christos   // Check named initializers.
   2368  1.108  christos   struct named_init ni = {
   2369  1.108  christos     .number = 34,
   2370  1.108  christos     .name = L"Test wide string",
   2371  1.108  christos     .average = 543.34343,
   2372  1.108  christos   };
   2373  1.108  christos 
   2374  1.108  christos   ni.number = 58;
   2375  1.108  christos 
   2376  1.108  christos   int dynamic_array[ni.number];
   2377  1.108  christos   dynamic_array[0] = argv[0][0];
   2378  1.108  christos   dynamic_array[ni.number - 1] = 543;
   2379  1.108  christos 
   2380  1.108  christos   // work around unused variable warnings
   2381  1.108  christos   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
   2382  1.108  christos 	 || dynamic_array[ni.number - 1] != 543);
   2383  1.108  christos '
   2384  1.108  christos 
   2385  1.108  christos # Test code for whether the C compiler supports C11 (global declarations)
   2386  1.108  christos ac_c_conftest_c11_globals='
   2387  1.108  christos /* Does the compiler advertise C11 conformance? */
   2388  1.108  christos #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
   2389  1.108  christos # error "Compiler does not advertise C11 conformance"
   2390  1.108  christos #endif
   2391  1.108  christos 
   2392  1.108  christos // Check _Alignas.
   2393  1.108  christos char _Alignas (double) aligned_as_double;
   2394  1.108  christos char _Alignas (0) no_special_alignment;
   2395  1.108  christos extern char aligned_as_int;
   2396  1.108  christos char _Alignas (0) _Alignas (int) aligned_as_int;
   2397  1.108  christos 
   2398  1.108  christos // Check _Alignof.
   2399  1.108  christos enum
   2400  1.108  christos {
   2401  1.108  christos   int_alignment = _Alignof (int),
   2402  1.108  christos   int_array_alignment = _Alignof (int[100]),
   2403  1.108  christos   char_alignment = _Alignof (char)
   2404  1.108  christos };
   2405  1.108  christos _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
   2406  1.108  christos 
   2407  1.108  christos // Check _Noreturn.
   2408  1.108  christos int _Noreturn does_not_return (void) { for (;;) continue; }
   2409  1.108  christos 
   2410  1.108  christos // Check _Static_assert.
   2411  1.108  christos struct test_static_assert
   2412  1.108  christos {
   2413  1.108  christos   int x;
   2414  1.108  christos   _Static_assert (sizeof (int) <= sizeof (long int),
   2415  1.108  christos                   "_Static_assert does not work in struct");
   2416  1.108  christos   long int y;
   2417  1.108  christos };
   2418  1.108  christos 
   2419  1.108  christos // Check UTF-8 literals.
   2420  1.108  christos #define u8 syntax error!
   2421  1.108  christos char const utf8_literal[] = u8"happens to be ASCII" "another string";
   2422  1.108  christos 
   2423  1.108  christos // Check duplicate typedefs.
   2424  1.108  christos typedef long *long_ptr;
   2425  1.108  christos typedef long int *long_ptr;
   2426  1.108  christos typedef long_ptr long_ptr;
   2427  1.108  christos 
   2428  1.108  christos // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
   2429  1.108  christos struct anonymous
   2430  1.108  christos {
   2431  1.108  christos   union {
   2432  1.108  christos     struct { int i; int j; };
   2433  1.108  christos     struct { int k; long int l; } w;
   2434  1.108  christos   };
   2435  1.108  christos   int m;
   2436  1.108  christos } v1;
   2437  1.108  christos '
   2438  1.108  christos 
   2439  1.108  christos # Test code for whether the C compiler supports C11 (body of main).
   2440  1.108  christos ac_c_conftest_c11_main='
   2441  1.108  christos   _Static_assert ((offsetof (struct anonymous, i)
   2442  1.108  christos 		   == offsetof (struct anonymous, w.k)),
   2443  1.108  christos 		  "Anonymous union alignment botch");
   2444  1.108  christos   v1.i = 2;
   2445  1.108  christos   v1.w.k = 5;
   2446  1.108  christos   ok |= v1.i != 5;
   2447  1.108  christos '
   2448  1.108  christos 
   2449  1.108  christos # Test code for whether the C compiler supports C11 (complete).
   2450  1.108  christos ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
   2451  1.108  christos ${ac_c_conftest_c99_globals}
   2452  1.108  christos ${ac_c_conftest_c11_globals}
   2453  1.108  christos 
   2454  1.108  christos int
   2455  1.108  christos main (int argc, char **argv)
   2456  1.108  christos {
   2457  1.108  christos   int ok = 0;
   2458  1.108  christos   ${ac_c_conftest_c89_main}
   2459  1.108  christos   ${ac_c_conftest_c99_main}
   2460  1.108  christos   ${ac_c_conftest_c11_main}
   2461  1.108  christos   return ok;
   2462  1.108  christos }
   2463  1.108  christos "
   2464  1.108  christos 
   2465  1.108  christos # Test code for whether the C compiler supports C99 (complete).
   2466  1.108  christos ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
   2467  1.108  christos ${ac_c_conftest_c99_globals}
   2468  1.108  christos 
   2469  1.108  christos int
   2470  1.108  christos main (int argc, char **argv)
   2471  1.108  christos {
   2472  1.108  christos   int ok = 0;
   2473  1.108  christos   ${ac_c_conftest_c89_main}
   2474  1.108  christos   ${ac_c_conftest_c99_main}
   2475  1.108  christos   return ok;
   2476  1.108  christos }
   2477  1.108  christos "
   2478  1.108  christos 
   2479  1.108  christos # Test code for whether the C compiler supports C89 (complete).
   2480  1.108  christos ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
   2481  1.108  christos 
   2482  1.108  christos int
   2483  1.108  christos main (int argc, char **argv)
   2484  1.108  christos {
   2485  1.108  christos   int ok = 0;
   2486  1.108  christos   ${ac_c_conftest_c89_main}
   2487  1.108  christos   return ok;
   2488  1.108  christos }
   2489  1.108  christos "
   2490  1.108  christos 
   2491  1.108  christos as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
   2492  1.108  christos as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
   2493  1.108  christos as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
   2494  1.108  christos as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
   2495  1.108  christos as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
   2496  1.108  christos as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
   2497  1.108  christos as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
   2498  1.108  christos as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
   2499  1.108  christos as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
   2500    1.1        tv # Check that the precious variables saved in the cache have kept the same
   2501    1.1        tv # value.
   2502    1.1        tv ac_cache_corrupted=false
   2503   1.84  christos for ac_var in $ac_precious_vars; do
   2504    1.1        tv   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2505    1.1        tv   eval ac_new_set=\$ac_env_${ac_var}_set
   2506   1.84  christos   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2507   1.84  christos   eval ac_new_val=\$ac_env_${ac_var}_value
   2508    1.1        tv   case $ac_old_set,$ac_new_set in
   2509    1.1        tv     set,)
   2510  1.108  christos       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
   2511  1.108  christos printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
   2512    1.1        tv       ac_cache_corrupted=: ;;
   2513    1.1        tv     ,set)
   2514  1.108  christos       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
   2515  1.108  christos printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
   2516    1.1        tv       ac_cache_corrupted=: ;;
   2517    1.1        tv     ,);;
   2518    1.1        tv     *)
   2519    1.1        tv       if test "x$ac_old_val" != "x$ac_new_val"; then
   2520   1.84  christos 	# differences in whitespace do not lead to failure.
   2521   1.84  christos 	ac_old_val_w=`echo x $ac_old_val`
   2522   1.84  christos 	ac_new_val_w=`echo x $ac_new_val`
   2523   1.84  christos 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2524  1.108  christos 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
   2525  1.108  christos printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
   2526   1.84  christos 	  ac_cache_corrupted=:
   2527   1.84  christos 	else
   2528  1.108  christos 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
   2529  1.108  christos printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
   2530   1.84  christos 	  eval $ac_var=\$ac_old_val
   2531   1.84  christos 	fi
   2532  1.108  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
   2533  1.108  christos printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
   2534  1.108  christos 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
   2535  1.108  christos printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
   2536    1.1        tv       fi;;
   2537    1.1        tv   esac
   2538   1.84  christos   # Pass precious variables to config.status.
   2539    1.1        tv   if test "$ac_new_set" = set; then
   2540    1.1        tv     case $ac_new_val in
   2541  1.108  christos     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2542   1.84  christos     *) ac_arg=$ac_var=$ac_new_val ;;
   2543   1.84  christos     esac
   2544   1.84  christos     case " $ac_configure_args " in
   2545   1.84  christos       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2546   1.84  christos       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2547    1.1        tv     esac
   2548    1.1        tv   fi
   2549    1.1        tv done
   2550    1.1        tv if $ac_cache_corrupted; then
   2551  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   2552  1.108  christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   2553  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2554  1.108  christos printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
   2555  1.108  christos   as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
   2556  1.108  christos 	    and start over" "$LINENO" 5
   2557   1.84  christos fi
   2558   1.84  christos ## -------------------- ##
   2559   1.84  christos ## Main body of script. ##
   2560   1.84  christos ## -------------------- ##
   2561    1.1        tv 
   2562    1.1        tv ac_ext=c
   2563    1.1        tv ac_cpp='$CPP $CPPFLAGS'
   2564    1.1        tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2565    1.1        tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2566    1.1        tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2567    1.1        tv 
   2568    1.1        tv 
   2569   1.63       apb ac_config_headers="$ac_config_headers nbtool_config.h"
   2570    1.1        tv 
   2571   1.63       apb ac_config_files="$ac_config_files defs.mk"
   2572    1.1        tv 
   2573   1.84  christos 
   2574  1.101     lukem 
   2575  1.101     lukem 
   2576  1.102     lukem 
   2577  1.102     lukem 
   2578   1.57       wiz # Autoheader header and footer
   2579   1.57       wiz 
   2580   1.84  christos 
   2581   1.84  christos 
   2582   1.84  christos 
   2583   1.20     bjh21 
   2584  1.108  christos 
   2585  1.108  christos 
   2586  1.108  christos 
   2587  1.108  christos 
   2588  1.108  christos 
   2589  1.108  christos 
   2590  1.108  christos 
   2591  1.108  christos 
   2592  1.108  christos 
   2593    1.1        tv ac_ext=c
   2594    1.1        tv ac_cpp='$CPP $CPPFLAGS'
   2595    1.1        tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2596    1.1        tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2597    1.1        tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2598    1.1        tv if test -n "$ac_tool_prefix"; then
   2599    1.1        tv   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2600    1.1        tv set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2601  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2602  1.108  christos printf %s "checking for $ac_word... " >&6; }
   2603  1.108  christos if test ${ac_cv_prog_CC+y}
   2604  1.108  christos then :
   2605  1.108  christos   printf %s "(cached) " >&6
   2606  1.108  christos else case e in #(
   2607  1.108  christos   e) if test -n "$CC"; then
   2608    1.1        tv   ac_cv_prog_CC="$CC" # Let the user override the test.
   2609    1.1        tv else
   2610   1.84  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2611   1.84  christos for as_dir in $PATH
   2612   1.84  christos do
   2613   1.84  christos   IFS=$as_save_IFS
   2614  1.108  christos   case $as_dir in #(((
   2615  1.108  christos     '') as_dir=./ ;;
   2616  1.108  christos     */) ;;
   2617  1.108  christos     *) as_dir=$as_dir/ ;;
   2618  1.108  christos   esac
   2619   1.84  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2620  1.108  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2621   1.84  christos     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2622  1.108  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2623   1.84  christos     break 2
   2624   1.84  christos   fi
   2625    1.1        tv done
   2626   1.84  christos   done
   2627   1.84  christos IFS=$as_save_IFS
   2628    1.1        tv 
   2629  1.108  christos fi ;;
   2630  1.108  christos esac
   2631    1.1        tv fi
   2632    1.1        tv CC=$ac_cv_prog_CC
   2633    1.1        tv if test -n "$CC"; then
   2634  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2635  1.108  christos printf "%s\n" "$CC" >&6; }
   2636    1.1        tv else
   2637  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2638  1.108  christos printf "%s\n" "no" >&6; }
   2639    1.1        tv fi
   2640    1.1        tv 
   2641   1.84  christos 
   2642    1.1        tv fi
   2643    1.1        tv if test -z "$ac_cv_prog_CC"; then
   2644    1.1        tv   ac_ct_CC=$CC
   2645    1.1        tv   # Extract the first word of "gcc", so it can be a program name with args.
   2646    1.1        tv set dummy gcc; ac_word=$2
   2647  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2648  1.108  christos printf %s "checking for $ac_word... " >&6; }
   2649  1.108  christos if test ${ac_cv_prog_ac_ct_CC+y}
   2650  1.108  christos then :
   2651  1.108  christos   printf %s "(cached) " >&6
   2652  1.108  christos else case e in #(
   2653  1.108  christos   e) if test -n "$ac_ct_CC"; then
   2654    1.1        tv   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2655    1.1        tv else
   2656   1.84  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2657   1.84  christos for as_dir in $PATH
   2658   1.84  christos do
   2659   1.84  christos   IFS=$as_save_IFS
   2660  1.108  christos   case $as_dir in #(((
   2661  1.108  christos     '') as_dir=./ ;;
   2662  1.108  christos     */) ;;
   2663  1.108  christos     *) as_dir=$as_dir/ ;;
   2664  1.108  christos   esac
   2665   1.84  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2666  1.108  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2667   1.84  christos     ac_cv_prog_ac_ct_CC="gcc"
   2668  1.108  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2669   1.84  christos     break 2
   2670   1.84  christos   fi
   2671    1.1        tv done
   2672   1.84  christos   done
   2673   1.84  christos IFS=$as_save_IFS
   2674    1.1        tv 
   2675  1.108  christos fi ;;
   2676  1.108  christos esac
   2677    1.1        tv fi
   2678    1.1        tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2679    1.1        tv if test -n "$ac_ct_CC"; then
   2680  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2681  1.108  christos printf "%s\n" "$ac_ct_CC" >&6; }
   2682    1.1        tv else
   2683  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2684  1.108  christos printf "%s\n" "no" >&6; }
   2685    1.1        tv fi
   2686    1.1        tv 
   2687   1.84  christos   if test "x$ac_ct_CC" = x; then
   2688   1.84  christos     CC=""
   2689   1.84  christos   else
   2690   1.84  christos     case $cross_compiling:$ac_tool_warned in
   2691   1.84  christos yes:)
   2692  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2693  1.108  christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2694   1.84  christos ac_tool_warned=yes ;;
   2695   1.84  christos esac
   2696   1.84  christos     CC=$ac_ct_CC
   2697   1.84  christos   fi
   2698    1.1        tv else
   2699    1.1        tv   CC="$ac_cv_prog_CC"
   2700    1.1        tv fi
   2701    1.1        tv 
   2702    1.1        tv if test -z "$CC"; then
   2703   1.84  christos           if test -n "$ac_tool_prefix"; then
   2704   1.84  christos     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2705    1.1        tv set dummy ${ac_tool_prefix}cc; ac_word=$2
   2706  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2707  1.108  christos printf %s "checking for $ac_word... " >&6; }
   2708  1.108  christos if test ${ac_cv_prog_CC+y}
   2709  1.108  christos then :
   2710  1.108  christos   printf %s "(cached) " >&6
   2711  1.108  christos else case e in #(
   2712  1.108  christos   e) if test -n "$CC"; then
   2713    1.1        tv   ac_cv_prog_CC="$CC" # Let the user override the test.
   2714    1.1        tv else
   2715   1.84  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2716   1.84  christos for as_dir in $PATH
   2717   1.84  christos do
   2718   1.84  christos   IFS=$as_save_IFS
   2719  1.108  christos   case $as_dir in #(((
   2720  1.108  christos     '') as_dir=./ ;;
   2721  1.108  christos     */) ;;
   2722  1.108  christos     *) as_dir=$as_dir/ ;;
   2723  1.108  christos   esac
   2724   1.84  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2725  1.108  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2726   1.84  christos     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2727  1.108  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2728   1.84  christos     break 2
   2729   1.84  christos   fi
   2730   1.65  christos done
   2731   1.84  christos   done
   2732   1.84  christos IFS=$as_save_IFS
   2733    1.1        tv 
   2734  1.108  christos fi ;;
   2735  1.108  christos esac
   2736    1.1        tv fi
   2737    1.1        tv CC=$ac_cv_prog_CC
   2738    1.1        tv if test -n "$CC"; then
   2739  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2740  1.108  christos printf "%s\n" "$CC" >&6; }
   2741   1.76     pooka else
   2742  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2743  1.108  christos printf "%s\n" "no" >&6; }
   2744   1.76     pooka fi
   2745   1.76     pooka 
   2746    1.1        tv 
   2747   1.84  christos   fi
   2748    1.1        tv fi
   2749    1.1        tv if test -z "$CC"; then
   2750    1.1        tv   # Extract the first word of "cc", so it can be a program name with args.
   2751    1.1        tv set dummy cc; ac_word=$2
   2752  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2753  1.108  christos printf %s "checking for $ac_word... " >&6; }
   2754  1.108  christos if test ${ac_cv_prog_CC+y}
   2755  1.108  christos then :
   2756  1.108  christos   printf %s "(cached) " >&6
   2757  1.108  christos else case e in #(
   2758  1.108  christos   e) if test -n "$CC"; then
   2759    1.1        tv   ac_cv_prog_CC="$CC" # Let the user override the test.
   2760    1.1        tv else
   2761    1.1        tv   ac_prog_rejected=no
   2762   1.84  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2763   1.84  christos for as_dir in $PATH
   2764   1.84  christos do
   2765   1.84  christos   IFS=$as_save_IFS
   2766  1.108  christos   case $as_dir in #(((
   2767  1.108  christos     '') as_dir=./ ;;
   2768  1.108  christos     */) ;;
   2769  1.108  christos     *) as_dir=$as_dir/ ;;
   2770  1.108  christos   esac
   2771   1.84  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2772  1.108  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2773  1.108  christos     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2774   1.84  christos        ac_prog_rejected=yes
   2775   1.84  christos        continue
   2776   1.84  christos      fi
   2777   1.84  christos     ac_cv_prog_CC="cc"
   2778  1.108  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2779   1.84  christos     break 2
   2780   1.84  christos   fi
   2781   1.65  christos done
   2782   1.84  christos   done
   2783   1.84  christos IFS=$as_save_IFS
   2784    1.1        tv 
   2785    1.1        tv if test $ac_prog_rejected = yes; then
   2786    1.1        tv   # We found a bogon in the path, so make sure we never use it.
   2787    1.1        tv   set dummy $ac_cv_prog_CC
   2788    1.1        tv   shift
   2789    1.1        tv   if test $# != 0; then
   2790    1.1        tv     # We chose a different compiler from the bogus one.
   2791    1.1        tv     # However, it has the same basename, so the bogon will be chosen
   2792    1.1        tv     # first if we set CC to just the basename; use the full file name.
   2793    1.1        tv     shift
   2794  1.108  christos     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
   2795    1.1        tv   fi
   2796    1.1        tv fi
   2797  1.108  christos fi ;;
   2798  1.108  christos esac
   2799    1.1        tv fi
   2800    1.1        tv CC=$ac_cv_prog_CC
   2801    1.1        tv if test -n "$CC"; then
   2802  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2803  1.108  christos printf "%s\n" "$CC" >&6; }
   2804    1.1        tv else
   2805  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2806  1.108  christos printf "%s\n" "no" >&6; }
   2807    1.1        tv fi
   2808    1.1        tv 
   2809   1.84  christos 
   2810    1.1        tv fi
   2811    1.1        tv if test -z "$CC"; then
   2812    1.1        tv   if test -n "$ac_tool_prefix"; then
   2813   1.84  christos   for ac_prog in cl.exe
   2814    1.1        tv   do
   2815    1.1        tv     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2816    1.1        tv set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2817  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2818  1.108  christos printf %s "checking for $ac_word... " >&6; }
   2819  1.108  christos if test ${ac_cv_prog_CC+y}
   2820  1.108  christos then :
   2821  1.108  christos   printf %s "(cached) " >&6
   2822  1.108  christos else case e in #(
   2823  1.108  christos   e) if test -n "$CC"; then
   2824    1.1        tv   ac_cv_prog_CC="$CC" # Let the user override the test.
   2825    1.1        tv else
   2826   1.84  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2827   1.84  christos for as_dir in $PATH
   2828   1.84  christos do
   2829   1.84  christos   IFS=$as_save_IFS
   2830  1.108  christos   case $as_dir in #(((
   2831  1.108  christos     '') as_dir=./ ;;
   2832  1.108  christos     */) ;;
   2833  1.108  christos     *) as_dir=$as_dir/ ;;
   2834  1.108  christos   esac
   2835   1.84  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2836  1.108  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2837   1.84  christos     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2838  1.108  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2839   1.84  christos     break 2
   2840   1.84  christos   fi
   2841    1.1        tv done
   2842   1.84  christos   done
   2843   1.84  christos IFS=$as_save_IFS
   2844    1.1        tv 
   2845  1.108  christos fi ;;
   2846  1.108  christos esac
   2847    1.1        tv fi
   2848    1.1        tv CC=$ac_cv_prog_CC
   2849    1.1        tv if test -n "$CC"; then
   2850  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2851  1.108  christos printf "%s\n" "$CC" >&6; }
   2852    1.1        tv else
   2853  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2854  1.108  christos printf "%s\n" "no" >&6; }
   2855    1.1        tv fi
   2856    1.1        tv 
   2857   1.84  christos 
   2858    1.1        tv     test -n "$CC" && break
   2859    1.1        tv   done
   2860    1.1        tv fi
   2861    1.1        tv if test -z "$CC"; then
   2862    1.1        tv   ac_ct_CC=$CC
   2863   1.84  christos   for ac_prog in cl.exe
   2864    1.1        tv do
   2865    1.1        tv   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2866    1.1        tv set dummy $ac_prog; ac_word=$2
   2867  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2868  1.108  christos printf %s "checking for $ac_word... " >&6; }
   2869  1.108  christos if test ${ac_cv_prog_ac_ct_CC+y}
   2870  1.108  christos then :
   2871  1.108  christos   printf %s "(cached) " >&6
   2872  1.108  christos else case e in #(
   2873  1.108  christos   e) if test -n "$ac_ct_CC"; then
   2874    1.1        tv   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2875    1.1        tv else
   2876   1.84  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2877   1.84  christos for as_dir in $PATH
   2878   1.84  christos do
   2879   1.84  christos   IFS=$as_save_IFS
   2880  1.108  christos   case $as_dir in #(((
   2881  1.108  christos     '') as_dir=./ ;;
   2882  1.108  christos     */) ;;
   2883  1.108  christos     *) as_dir=$as_dir/ ;;
   2884  1.108  christos   esac
   2885   1.84  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2886  1.108  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2887   1.84  christos     ac_cv_prog_ac_ct_CC="$ac_prog"
   2888  1.108  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2889   1.84  christos     break 2
   2890   1.84  christos   fi
   2891    1.1        tv done
   2892   1.84  christos   done
   2893   1.84  christos IFS=$as_save_IFS
   2894    1.1        tv 
   2895  1.108  christos fi ;;
   2896  1.108  christos esac
   2897    1.1        tv fi
   2898    1.1        tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2899    1.1        tv if test -n "$ac_ct_CC"; then
   2900  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2901  1.108  christos printf "%s\n" "$ac_ct_CC" >&6; }
   2902    1.1        tv else
   2903  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2904  1.108  christos printf "%s\n" "no" >&6; }
   2905    1.1        tv fi
   2906    1.1        tv 
   2907   1.84  christos 
   2908    1.1        tv   test -n "$ac_ct_CC" && break
   2909    1.1        tv done
   2910    1.1        tv 
   2911   1.84  christos   if test "x$ac_ct_CC" = x; then
   2912   1.84  christos     CC=""
   2913   1.84  christos   else
   2914   1.84  christos     case $cross_compiling:$ac_tool_warned in
   2915   1.84  christos yes:)
   2916  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2917  1.108  christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2918  1.108  christos ac_tool_warned=yes ;;
   2919  1.108  christos esac
   2920  1.108  christos     CC=$ac_ct_CC
   2921  1.108  christos   fi
   2922  1.108  christos fi
   2923  1.108  christos 
   2924  1.108  christos fi
   2925  1.108  christos if test -z "$CC"; then
   2926  1.108  christos   if test -n "$ac_tool_prefix"; then
   2927  1.108  christos   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   2928  1.108  christos set dummy ${ac_tool_prefix}clang; ac_word=$2
   2929  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2930  1.108  christos printf %s "checking for $ac_word... " >&6; }
   2931  1.108  christos if test ${ac_cv_prog_CC+y}
   2932  1.108  christos then :
   2933  1.108  christos   printf %s "(cached) " >&6
   2934  1.108  christos else case e in #(
   2935  1.108  christos   e) if test -n "$CC"; then
   2936  1.108  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   2937  1.108  christos else
   2938  1.108  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2939  1.108  christos for as_dir in $PATH
   2940  1.108  christos do
   2941  1.108  christos   IFS=$as_save_IFS
   2942  1.108  christos   case $as_dir in #(((
   2943  1.108  christos     '') as_dir=./ ;;
   2944  1.108  christos     */) ;;
   2945  1.108  christos     *) as_dir=$as_dir/ ;;
   2946  1.108  christos   esac
   2947  1.108  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2948  1.108  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2949  1.108  christos     ac_cv_prog_CC="${ac_tool_prefix}clang"
   2950  1.108  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2951  1.108  christos     break 2
   2952  1.108  christos   fi
   2953  1.108  christos done
   2954  1.108  christos   done
   2955  1.108  christos IFS=$as_save_IFS
   2956  1.108  christos 
   2957  1.108  christos fi ;;
   2958  1.108  christos esac
   2959  1.108  christos fi
   2960  1.108  christos CC=$ac_cv_prog_CC
   2961  1.108  christos if test -n "$CC"; then
   2962  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2963  1.108  christos printf "%s\n" "$CC" >&6; }
   2964  1.108  christos else
   2965  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2966  1.108  christos printf "%s\n" "no" >&6; }
   2967  1.108  christos fi
   2968  1.108  christos 
   2969  1.108  christos 
   2970  1.108  christos fi
   2971  1.108  christos if test -z "$ac_cv_prog_CC"; then
   2972  1.108  christos   ac_ct_CC=$CC
   2973  1.108  christos   # Extract the first word of "clang", so it can be a program name with args.
   2974  1.108  christos set dummy clang; ac_word=$2
   2975  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2976  1.108  christos printf %s "checking for $ac_word... " >&6; }
   2977  1.108  christos if test ${ac_cv_prog_ac_ct_CC+y}
   2978  1.108  christos then :
   2979  1.108  christos   printf %s "(cached) " >&6
   2980  1.108  christos else case e in #(
   2981  1.108  christos   e) if test -n "$ac_ct_CC"; then
   2982  1.108  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2983  1.108  christos else
   2984  1.108  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2985  1.108  christos for as_dir in $PATH
   2986  1.108  christos do
   2987  1.108  christos   IFS=$as_save_IFS
   2988  1.108  christos   case $as_dir in #(((
   2989  1.108  christos     '') as_dir=./ ;;
   2990  1.108  christos     */) ;;
   2991  1.108  christos     *) as_dir=$as_dir/ ;;
   2992  1.108  christos   esac
   2993  1.108  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   2994  1.108  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2995  1.108  christos     ac_cv_prog_ac_ct_CC="clang"
   2996  1.108  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2997  1.108  christos     break 2
   2998  1.108  christos   fi
   2999  1.108  christos done
   3000  1.108  christos   done
   3001  1.108  christos IFS=$as_save_IFS
   3002  1.108  christos 
   3003  1.108  christos fi ;;
   3004  1.108  christos esac
   3005  1.108  christos fi
   3006  1.108  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3007  1.108  christos if test -n "$ac_ct_CC"; then
   3008  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3009  1.108  christos printf "%s\n" "$ac_ct_CC" >&6; }
   3010  1.108  christos else
   3011  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3012  1.108  christos printf "%s\n" "no" >&6; }
   3013  1.108  christos fi
   3014  1.108  christos 
   3015  1.108  christos   if test "x$ac_ct_CC" = x; then
   3016  1.108  christos     CC=""
   3017  1.108  christos   else
   3018  1.108  christos     case $cross_compiling:$ac_tool_warned in
   3019  1.108  christos yes:)
   3020  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3021  1.108  christos printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3022   1.84  christos ac_tool_warned=yes ;;
   3023   1.84  christos esac
   3024   1.84  christos     CC=$ac_ct_CC
   3025   1.84  christos   fi
   3026  1.108  christos else
   3027  1.108  christos   CC="$ac_cv_prog_CC"
   3028    1.1        tv fi
   3029    1.1        tv 
   3030    1.1        tv fi
   3031    1.1        tv 
   3032   1.84  christos 
   3033  1.108  christos test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3034  1.108  christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3035   1.84  christos as_fn_error $? "no acceptable C compiler found in \$PATH
   3036  1.108  christos See 'config.log' for more details" "$LINENO" 5; }
   3037    1.1        tv 
   3038    1.1        tv # Provide some information about the compiler.
   3039  1.108  christos printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3040   1.84  christos set X $ac_compile
   3041   1.84  christos ac_compiler=$2
   3042  1.108  christos for ac_option in --version -v -V -qversion -version; do
   3043   1.84  christos   { { ac_try="$ac_compiler $ac_option >&5"
   3044   1.84  christos case "(($ac_try" in
   3045   1.84  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3046   1.84  christos   *) ac_try_echo=$ac_try;;
   3047   1.84  christos esac
   3048   1.84  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3049  1.108  christos printf "%s\n" "$ac_try_echo"; } >&5
   3050   1.84  christos   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3051   1.76     pooka   ac_status=$?
   3052   1.84  christos   if test -s conftest.err; then
   3053   1.84  christos     sed '10a\
   3054   1.84  christos ... rest of stderr output deleted ...
   3055   1.84  christos          10q' conftest.err >conftest.er1
   3056   1.84  christos     cat conftest.er1 >&5
   3057   1.84  christos   fi
   3058   1.84  christos   rm -f conftest.er1 conftest.err
   3059  1.108  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3060   1.84  christos   test $ac_status = 0; }
   3061   1.84  christos done
   3062    1.1        tv 
   3063   1.84  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3064   1.84  christos /* end confdefs.h.  */
   3065    1.1        tv 
   3066    1.1        tv int
   3067  1.108  christos main (void)
   3068    1.1        tv {
   3069    1.1        tv 
   3070    1.1        tv   ;
   3071    1.1        tv   return 0;
   3072    1.1        tv }
   3073    1.1        tv _ACEOF
   3074    1.1        tv ac_clean_files_save=$ac_clean_files
   3075   1.84  christos ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3076    1.1        tv # Try to create an executable without -o first, disregard a.out.
   3077    1.1        tv # It will help us diagnose broken compilers, and finding out an intuition
   3078    1.1        tv # of exeext.
   3079  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3080  1.108  christos printf %s "checking whether the C compiler works... " >&6; }
   3081  1.108  christos ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3082   1.84  christos 
   3083   1.84  christos # The possible output files:
   3084   1.84  christos ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3085   1.84  christos 
   3086   1.84  christos ac_rmfiles=
   3087   1.84  christos for ac_file in $ac_files
   3088   1.84  christos do
   3089   1.84  christos   case $ac_file in
   3090   1.84  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3091   1.84  christos     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3092   1.84  christos   esac
   3093   1.84  christos done
   3094   1.84  christos rm -f $ac_rmfiles
   3095   1.84  christos 
   3096   1.84  christos if { { ac_try="$ac_link_default"
   3097   1.84  christos case "(($ac_try" in
   3098   1.84  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3099   1.84  christos   *) ac_try_echo=$ac_try;;
   3100   1.84  christos esac
   3101   1.84  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3102  1.108  christos printf "%s\n" "$ac_try_echo"; } >&5
   3103   1.84  christos   (eval "$ac_link_default") 2>&5
   3104   1.84  christos   ac_status=$?
   3105  1.108  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3106  1.108  christos   test $ac_status = 0; }
   3107  1.108  christos then :
   3108  1.108  christos   # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
   3109  1.108  christos # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
   3110   1.84  christos # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3111   1.84  christos # so that the user can short-circuit this test for compilers unknown to
   3112   1.84  christos # Autoconf.
   3113   1.84  christos for ac_file in $ac_files ''
   3114   1.84  christos do
   3115   1.84  christos   test -f "$ac_file" || continue
   3116   1.74  christos   case $ac_file in
   3117   1.84  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3118   1.84  christos 	;;
   3119   1.84  christos     [ab].out )
   3120   1.84  christos 	# We found the default executable, but exeext='' is most
   3121   1.84  christos 	# certainly right.
   3122   1.84  christos 	break;;
   3123   1.84  christos     *.* )
   3124  1.108  christos 	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
   3125   1.84  christos 	then :; else
   3126   1.84  christos 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3127   1.84  christos 	fi
   3128   1.84  christos 	# We set ac_cv_exeext here because the later test for it is not
   3129  1.108  christos 	# safe: cross compilers may not add the suffix if given an '-o'
   3130   1.84  christos 	# argument, so we may need to know it at that point already.
   3131   1.84  christos 	# Even if this section looks crufty: it has the advantage of
   3132   1.84  christos 	# actually working.
   3133   1.84  christos 	break;;
   3134   1.84  christos     * )
   3135   1.84  christos 	break;;
   3136    1.1        tv   esac
   3137    1.1        tv done
   3138   1.84  christos test "$ac_cv_exeext" = no && ac_cv_exeext=
   3139   1.84  christos 
   3140  1.108  christos else case e in #(
   3141  1.108  christos   e) ac_file='' ;;
   3142  1.108  christos esac
   3143    1.1        tv fi
   3144  1.108  christos if test -z "$ac_file"
   3145  1.108  christos then :
   3146  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3147  1.108  christos printf "%s\n" "no" >&6; }
   3148  1.108  christos printf "%s\n" "$as_me: failed program was:" >&5
   3149   1.84  christos sed 's/^/| /' conftest.$ac_ext >&5
   3150    1.1        tv 
   3151  1.108  christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3152  1.108  christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3153   1.84  christos as_fn_error 77 "C compiler cannot create executables
   3154  1.108  christos See 'config.log' for more details" "$LINENO" 5; }
   3155  1.108  christos else case e in #(
   3156  1.108  christos   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3157  1.108  christos printf "%s\n" "yes" >&6; } ;;
   3158  1.108  christos esac
   3159   1.84  christos fi
   3160  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3161  1.108  christos printf %s "checking for C compiler default output file name... " >&6; }
   3162  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3163  1.108  christos printf "%s\n" "$ac_file" >&6; }
   3164   1.76     pooka ac_exeext=$ac_cv_exeext
   3165    1.1        tv 
   3166   1.84  christos rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3167    1.1        tv ac_clean_files=$ac_clean_files_save
   3168  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3169  1.108  christos printf %s "checking for suffix of executables... " >&6; }
   3170   1.84  christos if { { ac_try="$ac_link"
   3171   1.84  christos case "(($ac_try" in
   3172   1.84  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3173   1.84  christos   *) ac_try_echo=$ac_try;;
   3174   1.84  christos esac
   3175   1.84  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3176  1.108  christos printf "%s\n" "$ac_try_echo"; } >&5
   3177   1.84  christos   (eval "$ac_link") 2>&5
   3178    1.1        tv   ac_status=$?
   3179  1.108  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3180  1.108  christos   test $ac_status = 0; }
   3181  1.108  christos then :
   3182  1.108  christos   # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
   3183  1.108  christos # catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
   3184  1.108  christos # work properly (i.e., refer to 'conftest.exe'), while it won't with
   3185  1.108  christos # 'rm'.
   3186   1.84  christos for ac_file in conftest.exe conftest conftest.*; do
   3187   1.84  christos   test -f "$ac_file" || continue
   3188    1.1        tv   case $ac_file in
   3189   1.84  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3190    1.1        tv     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3191   1.84  christos 	  break;;
   3192    1.1        tv     * ) break;;
   3193    1.1        tv   esac
   3194    1.1        tv done
   3195  1.108  christos else case e in #(
   3196  1.108  christos   e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3197  1.108  christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3198   1.84  christos as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3199  1.108  christos See 'config.log' for more details" "$LINENO" 5; } ;;
   3200  1.108  christos esac
   3201   1.84  christos fi
   3202   1.84  christos rm -f conftest conftest$ac_cv_exeext
   3203  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3204  1.108  christos printf "%s\n" "$ac_cv_exeext" >&6; }
   3205    1.1        tv 
   3206    1.1        tv rm -f conftest.$ac_ext
   3207    1.1        tv EXEEXT=$ac_cv_exeext
   3208    1.1        tv ac_exeext=$EXEEXT
   3209   1.84  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3210   1.84  christos /* end confdefs.h.  */
   3211   1.84  christos #include <stdio.h>
   3212    1.1        tv int
   3213  1.108  christos main (void)
   3214    1.1        tv {
   3215   1.84  christos FILE *f = fopen ("conftest.out", "w");
   3216  1.108  christos  if (!f)
   3217  1.108  christos   return 1;
   3218   1.84  christos  return ferror (f) || fclose (f) != 0;
   3219    1.1        tv 
   3220    1.1        tv   ;
   3221    1.1        tv   return 0;
   3222    1.1        tv }
   3223    1.1        tv _ACEOF
   3224   1.84  christos ac_clean_files="$ac_clean_files conftest.out"
   3225   1.84  christos # Check that the compiler produces executables we can run.  If not, either
   3226   1.84  christos # the compiler is broken, or we cross compile.
   3227  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3228  1.108  christos printf %s "checking whether we are cross compiling... " >&6; }
   3229   1.84  christos if test "$cross_compiling" != yes; then
   3230   1.84  christos   { { ac_try="$ac_link"
   3231   1.84  christos case "(($ac_try" in
   3232   1.84  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3233   1.84  christos   *) ac_try_echo=$ac_try;;
   3234   1.84  christos esac
   3235   1.84  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3236  1.108  christos printf "%s\n" "$ac_try_echo"; } >&5
   3237   1.84  christos   (eval "$ac_link") 2>&5
   3238   1.84  christos   ac_status=$?
   3239  1.108  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3240   1.84  christos   test $ac_status = 0; }
   3241   1.84  christos   if { ac_try='./conftest$ac_cv_exeext'
   3242   1.84  christos   { { case "(($ac_try" in
   3243   1.84  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3244   1.84  christos   *) ac_try_echo=$ac_try;;
   3245   1.84  christos esac
   3246   1.84  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3247  1.108  christos printf "%s\n" "$ac_try_echo"; } >&5
   3248   1.84  christos   (eval "$ac_try") 2>&5
   3249    1.1        tv   ac_status=$?
   3250  1.108  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3251   1.84  christos   test $ac_status = 0; }; }; then
   3252   1.84  christos     cross_compiling=no
   3253   1.84  christos   else
   3254   1.84  christos     if test "$cross_compiling" = maybe; then
   3255   1.84  christos 	cross_compiling=yes
   3256   1.84  christos     else
   3257  1.108  christos 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3258  1.108  christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3259  1.108  christos as_fn_error 77 "cannot run C compiled programs.
   3260  1.108  christos If you meant to cross compile, use '--host'.
   3261  1.108  christos See 'config.log' for more details" "$LINENO" 5; }
   3262   1.84  christos     fi
   3263   1.84  christos   fi
   3264   1.84  christos fi
   3265  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3266  1.108  christos printf "%s\n" "$cross_compiling" >&6; }
   3267   1.84  christos 
   3268  1.108  christos rm -f conftest.$ac_ext conftest$ac_cv_exeext \
   3269  1.108  christos   conftest.o conftest.obj conftest.out
   3270   1.84  christos ac_clean_files=$ac_clean_files_save
   3271  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3272  1.108  christos printf %s "checking for suffix of object files... " >&6; }
   3273  1.108  christos if test ${ac_cv_objext+y}
   3274  1.108  christos then :
   3275  1.108  christos   printf %s "(cached) " >&6
   3276  1.108  christos else case e in #(
   3277  1.108  christos   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3278   1.84  christos /* end confdefs.h.  */
   3279   1.74  christos 
   3280   1.84  christos int
   3281  1.108  christos main (void)
   3282   1.84  christos {
   3283   1.84  christos 
   3284   1.84  christos   ;
   3285   1.84  christos   return 0;
   3286   1.84  christos }
   3287   1.84  christos _ACEOF
   3288   1.84  christos rm -f conftest.o conftest.obj
   3289   1.84  christos if { { ac_try="$ac_compile"
   3290   1.84  christos case "(($ac_try" in
   3291   1.84  christos   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3292   1.84  christos   *) ac_try_echo=$ac_try;;
   3293   1.84  christos esac
   3294   1.84  christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3295  1.108  christos printf "%s\n" "$ac_try_echo"; } >&5
   3296   1.84  christos   (eval "$ac_compile") 2>&5
   3297   1.84  christos   ac_status=$?
   3298  1.108  christos   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3299  1.108  christos   test $ac_status = 0; }
   3300  1.108  christos then :
   3301   1.84  christos   for ac_file in conftest.o conftest.obj conftest.*; do
   3302   1.84  christos   test -f "$ac_file" || continue;
   3303   1.84  christos   case $ac_file in
   3304   1.84  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3305   1.84  christos     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3306   1.84  christos        break;;
   3307   1.84  christos   esac
   3308   1.84  christos done
   3309  1.108  christos else case e in #(
   3310  1.108  christos   e) printf "%s\n" "$as_me: failed program was:" >&5
   3311   1.84  christos sed 's/^/| /' conftest.$ac_ext >&5
   3312   1.84  christos 
   3313  1.108  christos { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3314  1.108  christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3315   1.84  christos as_fn_error $? "cannot compute suffix of object files: cannot compile
   3316  1.108  christos See 'config.log' for more details" "$LINENO" 5; } ;;
   3317  1.108  christos esac
   3318   1.84  christos fi
   3319  1.108  christos rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
   3320  1.108  christos esac
   3321    1.1        tv fi
   3322  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3323  1.108  christos printf "%s\n" "$ac_cv_objext" >&6; }
   3324    1.1        tv OBJEXT=$ac_cv_objext
   3325    1.1        tv ac_objext=$OBJEXT
   3326  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
   3327  1.108  christos printf %s "checking whether the compiler supports GNU C... " >&6; }
   3328  1.108  christos if test ${ac_cv_c_compiler_gnu+y}
   3329  1.108  christos then :
   3330  1.108  christos   printf %s "(cached) " >&6
   3331  1.108  christos else case e in #(
   3332  1.108  christos   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3333   1.84  christos /* end confdefs.h.  */
   3334    1.1        tv 
   3335    1.1        tv int
   3336  1.108  christos main (void)
   3337    1.1        tv {
   3338    1.1        tv #ifndef __GNUC__
   3339    1.1        tv        choke me
   3340    1.1        tv #endif
   3341    1.1        tv 
   3342    1.1        tv   ;
   3343    1.1        tv   return 0;
   3344    1.1        tv }
   3345    1.1        tv _ACEOF
   3346  1.108  christos if ac_fn_c_try_compile "$LINENO"
   3347  1.108  christos then :
   3348    1.1        tv   ac_compiler_gnu=yes
   3349  1.108  christos else case e in #(
   3350  1.108  christos   e) ac_compiler_gnu=no ;;
   3351  1.108  christos esac
   3352    1.1        tv fi
   3353  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3354    1.1        tv ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3355  1.108  christos  ;;
   3356  1.108  christos esac
   3357  1.108  christos fi
   3358  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3359  1.108  christos printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
   3360  1.108  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3361    1.1        tv 
   3362   1.84  christos if test $ac_compiler_gnu = yes; then
   3363   1.84  christos   GCC=yes
   3364   1.84  christos else
   3365   1.84  christos   GCC=
   3366   1.84  christos fi
   3367  1.108  christos ac_test_CFLAGS=${CFLAGS+y}
   3368    1.1        tv ac_save_CFLAGS=$CFLAGS
   3369  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3370  1.108  christos printf %s "checking whether $CC accepts -g... " >&6; }
   3371  1.108  christos if test ${ac_cv_prog_cc_g+y}
   3372  1.108  christos then :
   3373  1.108  christos   printf %s "(cached) " >&6
   3374  1.108  christos else case e in #(
   3375  1.108  christos   e) ac_save_c_werror_flag=$ac_c_werror_flag
   3376   1.84  christos    ac_c_werror_flag=yes
   3377   1.84  christos    ac_cv_prog_cc_g=no
   3378   1.84  christos    CFLAGS="-g"
   3379   1.84  christos    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3380   1.84  christos /* end confdefs.h.  */
   3381    1.1        tv 
   3382    1.1        tv int
   3383  1.108  christos main (void)
   3384    1.1        tv {
   3385    1.1        tv 
   3386    1.1        tv   ;
   3387    1.1        tv   return 0;
   3388    1.1        tv }
   3389    1.1        tv _ACEOF
   3390  1.108  christos if ac_fn_c_try_compile "$LINENO"
   3391  1.108  christos then :
   3392    1.1        tv   ac_cv_prog_cc_g=yes
   3393  1.108  christos else case e in #(
   3394  1.108  christos   e) CFLAGS=""
   3395   1.84  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3396   1.84  christos /* end confdefs.h.  */
   3397   1.84  christos 
   3398   1.84  christos int
   3399  1.108  christos main (void)
   3400   1.84  christos {
   3401   1.84  christos 
   3402   1.84  christos   ;
   3403   1.84  christos   return 0;
   3404   1.84  christos }
   3405   1.84  christos _ACEOF
   3406  1.108  christos if ac_fn_c_try_compile "$LINENO"
   3407  1.108  christos then :
   3408   1.84  christos 
   3409  1.108  christos else case e in #(
   3410  1.108  christos   e) ac_c_werror_flag=$ac_save_c_werror_flag
   3411   1.84  christos 	 CFLAGS="-g"
   3412   1.84  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3413   1.84  christos /* end confdefs.h.  */
   3414   1.84  christos 
   3415   1.84  christos int
   3416  1.108  christos main (void)
   3417   1.84  christos {
   3418   1.84  christos 
   3419   1.84  christos   ;
   3420   1.84  christos   return 0;
   3421   1.84  christos }
   3422   1.84  christos _ACEOF
   3423  1.108  christos if ac_fn_c_try_compile "$LINENO"
   3424  1.108  christos then :
   3425   1.84  christos   ac_cv_prog_cc_g=yes
   3426   1.84  christos fi
   3427  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   3428  1.108  christos esac
   3429   1.66   tsutsui fi
   3430  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   3431  1.108  christos esac
   3432   1.66   tsutsui fi
   3433  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3434  1.108  christos    ac_c_werror_flag=$ac_save_c_werror_flag ;;
   3435  1.108  christos esac
   3436   1.84  christos fi
   3437  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3438  1.108  christos printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
   3439  1.108  christos if test $ac_test_CFLAGS; then
   3440   1.66   tsutsui   CFLAGS=$ac_save_CFLAGS
   3441   1.66   tsutsui elif test $ac_cv_prog_cc_g = yes; then
   3442   1.66   tsutsui   if test "$GCC" = yes; then
   3443   1.66   tsutsui     CFLAGS="-g -O2"
   3444   1.66   tsutsui   else
   3445   1.66   tsutsui     CFLAGS="-g"
   3446   1.66   tsutsui   fi
   3447   1.66   tsutsui else
   3448   1.66   tsutsui   if test "$GCC" = yes; then
   3449   1.66   tsutsui     CFLAGS="-O2"
   3450   1.66   tsutsui   else
   3451   1.66   tsutsui     CFLAGS=
   3452   1.66   tsutsui   fi
   3453   1.66   tsutsui fi
   3454  1.108  christos ac_prog_cc_stdc=no
   3455  1.108  christos if test x$ac_prog_cc_stdc = xno
   3456  1.108  christos then :
   3457  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   3458  1.108  christos printf %s "checking for $CC option to enable C11 features... " >&6; }
   3459  1.108  christos if test ${ac_cv_prog_cc_c11+y}
   3460  1.108  christos then :
   3461  1.108  christos   printf %s "(cached) " >&6
   3462  1.108  christos else case e in #(
   3463  1.108  christos   e) ac_cv_prog_cc_c11=no
   3464   1.84  christos ac_save_CC=$CC
   3465   1.84  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3466   1.84  christos /* end confdefs.h.  */
   3467  1.108  christos $ac_c_conftest_c11_program
   3468    1.1        tv _ACEOF
   3469  1.108  christos for ac_arg in '' -std=gnu11
   3470   1.84  christos do
   3471   1.84  christos   CC="$ac_save_CC $ac_arg"
   3472  1.108  christos   if ac_fn_c_try_compile "$LINENO"
   3473  1.108  christos then :
   3474  1.108  christos   ac_cv_prog_cc_c11=$ac_arg
   3475   1.65  christos fi
   3476  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam
   3477  1.108  christos   test "x$ac_cv_prog_cc_c11" != "xno" && break
   3478   1.66   tsutsui done
   3479   1.84  christos rm -f conftest.$ac_ext
   3480  1.108  christos CC=$ac_save_CC ;;
   3481  1.108  christos esac
   3482  1.108  christos fi
   3483   1.84  christos 
   3484  1.108  christos if test "x$ac_cv_prog_cc_c11" = xno
   3485  1.108  christos then :
   3486  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3487  1.108  christos printf "%s\n" "unsupported" >&6; }
   3488  1.108  christos else case e in #(
   3489  1.108  christos   e) if test "x$ac_cv_prog_cc_c11" = x
   3490  1.108  christos then :
   3491  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3492  1.108  christos printf "%s\n" "none needed" >&6; }
   3493  1.108  christos else case e in #(
   3494  1.108  christos   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   3495  1.108  christos printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
   3496  1.108  christos      CC="$CC $ac_cv_prog_cc_c11" ;;
   3497  1.108  christos esac
   3498  1.108  christos fi
   3499  1.108  christos   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   3500  1.108  christos   ac_prog_cc_stdc=c11 ;;
   3501  1.108  christos esac
   3502  1.108  christos fi
   3503  1.108  christos fi
   3504  1.108  christos if test x$ac_prog_cc_stdc = xno
   3505  1.108  christos then :
   3506  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   3507  1.108  christos printf %s "checking for $CC option to enable C99 features... " >&6; }
   3508  1.108  christos if test ${ac_cv_prog_cc_c99+y}
   3509  1.108  christos then :
   3510  1.108  christos   printf %s "(cached) " >&6
   3511  1.108  christos else case e in #(
   3512  1.108  christos   e) ac_cv_prog_cc_c99=no
   3513  1.108  christos ac_save_CC=$CC
   3514  1.108  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3515  1.108  christos /* end confdefs.h.  */
   3516  1.108  christos $ac_c_conftest_c99_program
   3517  1.108  christos _ACEOF
   3518  1.108  christos for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
   3519  1.108  christos do
   3520  1.108  christos   CC="$ac_save_CC $ac_arg"
   3521  1.108  christos   if ac_fn_c_try_compile "$LINENO"
   3522  1.108  christos then :
   3523  1.108  christos   ac_cv_prog_cc_c99=$ac_arg
   3524    1.1        tv fi
   3525  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam
   3526  1.108  christos   test "x$ac_cv_prog_cc_c99" != "xno" && break
   3527  1.108  christos done
   3528  1.108  christos rm -f conftest.$ac_ext
   3529  1.108  christos CC=$ac_save_CC ;;
   3530   1.84  christos esac
   3531  1.108  christos fi
   3532  1.108  christos 
   3533  1.108  christos if test "x$ac_cv_prog_cc_c99" = xno
   3534  1.108  christos then :
   3535  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3536  1.108  christos printf "%s\n" "unsupported" >&6; }
   3537  1.108  christos else case e in #(
   3538  1.108  christos   e) if test "x$ac_cv_prog_cc_c99" = x
   3539  1.108  christos then :
   3540  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3541  1.108  christos printf "%s\n" "none needed" >&6; }
   3542  1.108  christos else case e in #(
   3543  1.108  christos   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   3544  1.108  christos printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
   3545  1.108  christos      CC="$CC $ac_cv_prog_cc_c99" ;;
   3546  1.108  christos esac
   3547  1.108  christos fi
   3548  1.108  christos   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   3549  1.108  christos   ac_prog_cc_stdc=c99 ;;
   3550  1.108  christos esac
   3551  1.108  christos fi
   3552  1.108  christos fi
   3553  1.108  christos if test x$ac_prog_cc_stdc = xno
   3554  1.108  christos then :
   3555  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   3556  1.108  christos printf %s "checking for $CC option to enable C89 features... " >&6; }
   3557  1.108  christos if test ${ac_cv_prog_cc_c89+y}
   3558  1.108  christos then :
   3559  1.108  christos   printf %s "(cached) " >&6
   3560  1.108  christos else case e in #(
   3561  1.108  christos   e) ac_cv_prog_cc_c89=no
   3562  1.108  christos ac_save_CC=$CC
   3563  1.108  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3564  1.108  christos /* end confdefs.h.  */
   3565  1.108  christos $ac_c_conftest_c89_program
   3566  1.108  christos _ACEOF
   3567  1.108  christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3568  1.108  christos do
   3569  1.108  christos   CC="$ac_save_CC $ac_arg"
   3570  1.108  christos   if ac_fn_c_try_compile "$LINENO"
   3571  1.108  christos then :
   3572  1.108  christos   ac_cv_prog_cc_c89=$ac_arg
   3573  1.108  christos fi
   3574  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam
   3575  1.108  christos   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3576  1.108  christos done
   3577  1.108  christos rm -f conftest.$ac_ext
   3578  1.108  christos CC=$ac_save_CC ;;
   3579  1.108  christos esac
   3580  1.108  christos fi
   3581  1.108  christos 
   3582  1.108  christos if test "x$ac_cv_prog_cc_c89" = xno
   3583  1.108  christos then :
   3584  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3585  1.108  christos printf "%s\n" "unsupported" >&6; }
   3586  1.108  christos else case e in #(
   3587  1.108  christos   e) if test "x$ac_cv_prog_cc_c89" = x
   3588  1.108  christos then :
   3589  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3590  1.108  christos printf "%s\n" "none needed" >&6; }
   3591  1.108  christos else case e in #(
   3592  1.108  christos   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3593  1.108  christos printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
   3594  1.108  christos      CC="$CC $ac_cv_prog_cc_c89" ;;
   3595  1.108  christos esac
   3596  1.108  christos fi
   3597  1.108  christos   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   3598  1.108  christos   ac_prog_cc_stdc=c89 ;;
   3599  1.108  christos esac
   3600  1.108  christos fi
   3601   1.65  christos fi
   3602   1.84  christos 
   3603    1.1        tv ac_ext=c
   3604    1.1        tv ac_cpp='$CPP $CPPFLAGS'
   3605    1.1        tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3606    1.1        tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3607    1.1        tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3608    1.1        tv 
   3609   1.84  christos 
   3610    1.1        tv ac_ext=c
   3611    1.1        tv ac_cpp='$CPP $CPPFLAGS'
   3612    1.1        tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3613    1.1        tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3614    1.1        tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3615  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3616  1.108  christos printf %s "checking how to run the C preprocessor... " >&6; }
   3617    1.1        tv # On Suns, sometimes $CPP names a directory.
   3618    1.1        tv if test -n "$CPP" && test -d "$CPP"; then
   3619    1.1        tv   CPP=
   3620    1.1        tv fi
   3621    1.1        tv if test -z "$CPP"; then
   3622  1.108  christos   if test ${ac_cv_prog_CPP+y}
   3623  1.108  christos then :
   3624  1.108  christos   printf %s "(cached) " >&6
   3625  1.108  christos else case e in #(
   3626  1.108  christos   e)     # Double quotes because $CC needs to be expanded
   3627  1.108  christos     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
   3628    1.1        tv     do
   3629    1.1        tv       ac_preproc_ok=false
   3630    1.1        tv for ac_c_preproc_warn_flag in '' yes
   3631    1.1        tv do
   3632    1.1        tv   # Use a header file that comes with gcc, so configuring glibc
   3633    1.1        tv   # with a fresh cross-compiler works.
   3634    1.1        tv   # On the NeXT, cc -E runs the code through the compiler's parser,
   3635    1.1        tv   # not just through cpp. "Syntax error" is here to catch this case.
   3636   1.84  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3637   1.84  christos /* end confdefs.h.  */
   3638  1.108  christos #include <limits.h>
   3639   1.84  christos 		     Syntax error
   3640   1.48       jmc _ACEOF
   3641  1.108  christos if ac_fn_c_try_cpp "$LINENO"
   3642  1.108  christos then :
   3643   1.84  christos 
   3644  1.108  christos else case e in #(
   3645  1.108  christos   e) # Broken: fails on valid input.
   3646  1.108  christos continue ;;
   3647  1.108  christos esac
   3648    1.1        tv fi
   3649   1.84  christos rm -f conftest.err conftest.i conftest.$ac_ext
   3650    1.1        tv 
   3651   1.84  christos   # OK, works on sane cases.  Now check whether nonexistent headers
   3652    1.1        tv   # can be detected and how.
   3653   1.84  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3654   1.84  christos /* end confdefs.h.  */
   3655    1.1        tv #include <ac_nonexistent.h>
   3656    1.1        tv _ACEOF
   3657  1.108  christos if ac_fn_c_try_cpp "$LINENO"
   3658  1.108  christos then :
   3659    1.1        tv   # Broken: success on invalid input.
   3660    1.1        tv continue
   3661  1.108  christos else case e in #(
   3662  1.108  christos   e) # Passes both tests.
   3663    1.1        tv ac_preproc_ok=:
   3664  1.108  christos break ;;
   3665  1.108  christos esac
   3666    1.1        tv fi
   3667   1.84  christos rm -f conftest.err conftest.i conftest.$ac_ext
   3668    1.1        tv 
   3669    1.1        tv done
   3670  1.108  christos # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3671   1.84  christos rm -f conftest.i conftest.err conftest.$ac_ext
   3672  1.108  christos if $ac_preproc_ok
   3673  1.108  christos then :
   3674    1.1        tv   break
   3675    1.1        tv fi
   3676    1.1        tv 
   3677    1.1        tv     done
   3678    1.1        tv     ac_cv_prog_CPP=$CPP
   3679  1.108  christos    ;;
   3680  1.108  christos esac
   3681    1.1        tv fi
   3682    1.1        tv   CPP=$ac_cv_prog_CPP
   3683    1.1        tv else
   3684    1.1        tv   ac_cv_prog_CPP=$CPP
   3685    1.1        tv fi
   3686  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3687  1.108  christos printf "%s\n" "$CPP" >&6; }
   3688    1.1        tv ac_preproc_ok=false
   3689    1.1        tv for ac_c_preproc_warn_flag in '' yes
   3690    1.1        tv do
   3691    1.1        tv   # Use a header file that comes with gcc, so configuring glibc
   3692    1.1        tv   # with a fresh cross-compiler works.
   3693    1.1        tv   # On the NeXT, cc -E runs the code through the compiler's parser,
   3694    1.1        tv   # not just through cpp. "Syntax error" is here to catch this case.
   3695   1.84  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3696   1.84  christos /* end confdefs.h.  */
   3697  1.108  christos #include <limits.h>
   3698   1.84  christos 		     Syntax error
   3699   1.53    dogcow _ACEOF
   3700  1.108  christos if ac_fn_c_try_cpp "$LINENO"
   3701  1.108  christos then :
   3702   1.84  christos 
   3703  1.108  christos else case e in #(
   3704  1.108  christos   e) # Broken: fails on valid input.
   3705  1.108  christos continue ;;
   3706  1.108  christos esac
   3707    1.1        tv fi
   3708   1.84  christos rm -f conftest.err conftest.i conftest.$ac_ext
   3709    1.1        tv 
   3710   1.84  christos   # OK, works on sane cases.  Now check whether nonexistent headers
   3711    1.1        tv   # can be detected and how.
   3712   1.84  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3713   1.84  christos /* end confdefs.h.  */
   3714    1.1        tv #include <ac_nonexistent.h>
   3715    1.1        tv _ACEOF
   3716  1.108  christos if ac_fn_c_try_cpp "$LINENO"
   3717  1.108  christos then :
   3718   1.45       jmc   # Broken: success on invalid input.
   3719   1.45       jmc continue
   3720  1.108  christos else case e in #(
   3721  1.108  christos   e) # Passes both tests.
   3722   1.45       jmc ac_preproc_ok=:
   3723  1.108  christos break ;;
   3724  1.108  christos esac
   3725   1.45       jmc fi
   3726   1.84  christos rm -f conftest.err conftest.i conftest.$ac_ext
   3727   1.45       jmc 
   3728   1.45       jmc done
   3729  1.108  christos # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3730   1.84  christos rm -f conftest.i conftest.err conftest.$ac_ext
   3731  1.108  christos if $ac_preproc_ok
   3732  1.108  christos then :
   3733   1.84  christos 
   3734  1.108  christos else case e in #(
   3735  1.108  christos   e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   3736  1.108  christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   3737   1.84  christos as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3738  1.108  christos See 'config.log' for more details" "$LINENO" 5; } ;;
   3739  1.108  christos esac
   3740   1.45       jmc fi
   3741   1.45       jmc 
   3742   1.45       jmc ac_ext=c
   3743   1.45       jmc ac_cpp='$CPP $CPPFLAGS'
   3744   1.45       jmc ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3745   1.45       jmc ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3746   1.45       jmc ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3747   1.45       jmc 
   3748   1.84  christos 
   3749  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
   3750  1.108  christos printf %s "checking for egrep -e... " >&6; }
   3751  1.108  christos if test ${ac_cv_path_EGREP_TRADITIONAL+y}
   3752  1.108  christos then :
   3753  1.108  christos   printf %s "(cached) " >&6
   3754  1.108  christos else case e in #(
   3755  1.108  christos   e) if test -z "$EGREP_TRADITIONAL"; then
   3756  1.108  christos   ac_path_EGREP_TRADITIONAL_found=false
   3757   1.84  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   3758   1.84  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3759   1.84  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3760   1.84  christos do
   3761   1.84  christos   IFS=$as_save_IFS
   3762  1.108  christos   case $as_dir in #(((
   3763  1.108  christos     '') as_dir=./ ;;
   3764  1.108  christos     */) ;;
   3765  1.108  christos     *) as_dir=$as_dir/ ;;
   3766  1.108  christos   esac
   3767  1.108  christos     for ac_prog in grep ggrep
   3768  1.108  christos    do
   3769   1.84  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3770  1.108  christos       ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
   3771  1.108  christos       as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
   3772  1.108  christos # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
   3773  1.108  christos   # Check for GNU $ac_path_EGREP_TRADITIONAL
   3774  1.108  christos case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
   3775   1.84  christos *GNU*)
   3776  1.108  christos   ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
   3777  1.108  christos #(
   3778   1.84  christos *)
   3779   1.84  christos   ac_count=0
   3780  1.108  christos   printf %s 0123456789 >"conftest.in"
   3781   1.84  christos   while :
   3782   1.84  christos   do
   3783   1.84  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3784   1.84  christos     mv "conftest.tmp" "conftest.in"
   3785   1.84  christos     cp "conftest.in" "conftest.nl"
   3786  1.108  christos     printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
   3787  1.108  christos     "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3788   1.84  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3789   1.84  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3790  1.108  christos     if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
   3791   1.84  christos       # Best one so far, save it but keep looking for a better one
   3792  1.108  christos       ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
   3793  1.108  christos       ac_path_EGREP_TRADITIONAL_max=$ac_count
   3794   1.84  christos     fi
   3795   1.84  christos     # 10*(2^10) chars as input seems more than enough
   3796   1.84  christos     test $ac_count -gt 10 && break
   3797   1.84  christos   done
   3798   1.84  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3799   1.84  christos esac
   3800   1.84  christos 
   3801  1.108  christos       $ac_path_EGREP_TRADITIONAL_found && break 3
   3802   1.84  christos     done
   3803   1.84  christos   done
   3804   1.84  christos   done
   3805   1.84  christos IFS=$as_save_IFS
   3806  1.108  christos   if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
   3807  1.108  christos     :
   3808   1.84  christos   fi
   3809   1.84  christos else
   3810  1.108  christos   ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
   3811   1.84  christos fi
   3812   1.84  christos 
   3813  1.108  christos     if test "$ac_cv_path_EGREP_TRADITIONAL"
   3814  1.108  christos then :
   3815  1.108  christos   ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
   3816  1.108  christos else case e in #(
   3817  1.108  christos   e) if test -z "$EGREP_TRADITIONAL"; then
   3818  1.108  christos   ac_path_EGREP_TRADITIONAL_found=false
   3819   1.84  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   3820   1.84  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3821   1.84  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3822   1.84  christos do
   3823   1.84  christos   IFS=$as_save_IFS
   3824  1.108  christos   case $as_dir in #(((
   3825  1.108  christos     '') as_dir=./ ;;
   3826  1.108  christos     */) ;;
   3827  1.108  christos     *) as_dir=$as_dir/ ;;
   3828  1.108  christos   esac
   3829  1.108  christos     for ac_prog in egrep
   3830  1.108  christos    do
   3831   1.84  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3832  1.108  christos       ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
   3833  1.108  christos       as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
   3834  1.108  christos # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
   3835  1.108  christos   # Check for GNU $ac_path_EGREP_TRADITIONAL
   3836  1.108  christos case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
   3837   1.84  christos *GNU*)
   3838  1.108  christos   ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
   3839  1.108  christos #(
   3840   1.84  christos *)
   3841   1.84  christos   ac_count=0
   3842  1.108  christos   printf %s 0123456789 >"conftest.in"
   3843   1.84  christos   while :
   3844   1.84  christos   do
   3845   1.84  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3846   1.84  christos     mv "conftest.tmp" "conftest.in"
   3847   1.84  christos     cp "conftest.in" "conftest.nl"
   3848  1.108  christos     printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
   3849  1.108  christos     "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3850   1.84  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3851   1.84  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3852  1.108  christos     if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
   3853   1.84  christos       # Best one so far, save it but keep looking for a better one
   3854  1.108  christos       ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
   3855  1.108  christos       ac_path_EGREP_TRADITIONAL_max=$ac_count
   3856   1.84  christos     fi
   3857   1.84  christos     # 10*(2^10) chars as input seems more than enough
   3858   1.84  christos     test $ac_count -gt 10 && break
   3859   1.84  christos   done
   3860   1.84  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3861   1.84  christos esac
   3862   1.84  christos 
   3863  1.108  christos       $ac_path_EGREP_TRADITIONAL_found && break 3
   3864   1.84  christos     done
   3865   1.84  christos   done
   3866   1.84  christos   done
   3867   1.84  christos IFS=$as_save_IFS
   3868  1.108  christos   if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
   3869   1.84  christos     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3870   1.84  christos   fi
   3871   1.84  christos else
   3872  1.108  christos   ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
   3873   1.84  christos fi
   3874  1.108  christos  ;;
   3875  1.108  christos esac
   3876  1.108  christos fi ;;
   3877  1.108  christos esac
   3878   1.84  christos fi
   3879  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
   3880  1.108  christos printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
   3881  1.108  christos  EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
   3882   1.84  christos 
   3883  1.108  christos                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetBSD" >&5
   3884  1.108  christos printf %s "checking for NetBSD... " >&6; }
   3885   1.84  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3886   1.84  christos /* end confdefs.h.  */
   3887   1.45       jmc #ifdef __NetBSD__
   3888   1.45       jmc 	yes
   3889   1.45       jmc 	#endif
   3890   1.45       jmc 
   3891   1.45       jmc _ACEOF
   3892   1.45       jmc if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3893  1.108  christos   $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
   3894  1.108  christos then :
   3895  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3896  1.108  christos printf "%s\n" "yes" >&6; }
   3897   1.84  christos 
   3898  1.108  christos printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
   3899   1.84  christos 
   3900   1.74  christos 
   3901  1.108  christos printf "%s\n" "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
   3902   1.74  christos 
   3903   1.54       wiz 
   3904  1.108  christos printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
   3905   1.45       jmc 
   3906  1.108  christos else case e in #(
   3907  1.108  christos   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3908  1.108  christos printf "%s\n" "no" >&6; } ;;
   3909  1.108  christos esac
   3910   1.45       jmc fi
   3911  1.108  christos rm -rf conftest*
   3912   1.45       jmc 
   3913   1.84  christos 
   3914   1.45       jmc # Extract the first word of "sh", so it can be a program name with args.
   3915   1.45       jmc set dummy sh; ac_word=$2
   3916  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3917  1.108  christos printf %s "checking for $ac_word... " >&6; }
   3918  1.108  christos if test ${ac_cv_path_BSHELL+y}
   3919  1.108  christos then :
   3920  1.108  christos   printf %s "(cached) " >&6
   3921  1.108  christos else case e in #(
   3922  1.108  christos   e) case $BSHELL in
   3923   1.45       jmc   [\\/]* | ?:[\\/]*)
   3924   1.45       jmc   ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
   3925   1.45       jmc   ;;
   3926   1.45       jmc   *)
   3927   1.84  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3928   1.84  christos for as_dir in $PATH
   3929   1.84  christos do
   3930   1.84  christos   IFS=$as_save_IFS
   3931  1.108  christos   case $as_dir in #(((
   3932  1.108  christos     '') as_dir=./ ;;
   3933  1.108  christos     */) ;;
   3934  1.108  christos     *) as_dir=$as_dir/ ;;
   3935  1.108  christos   esac
   3936   1.84  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   3937  1.108  christos   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3938  1.108  christos     ac_cv_path_BSHELL="$as_dir$ac_word$ac_exec_ext"
   3939  1.108  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3940   1.84  christos     break 2
   3941   1.84  christos   fi
   3942   1.65  christos done
   3943   1.84  christos   done
   3944   1.84  christos IFS=$as_save_IFS
   3945   1.45       jmc 
   3946   1.45       jmc   ;;
   3947  1.108  christos esac ;;
   3948   1.45       jmc esac
   3949   1.45       jmc fi
   3950   1.45       jmc BSHELL=$ac_cv_path_BSHELL
   3951   1.45       jmc if test -n "$BSHELL"; then
   3952  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BSHELL" >&5
   3953  1.108  christos printf "%s\n" "$BSHELL" >&6; }
   3954   1.45       jmc else
   3955  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3956  1.108  christos printf "%s\n" "no" >&6; }
   3957   1.45       jmc fi
   3958   1.45       jmc 
   3959   1.84  christos 
   3960   1.45       jmc if test x"$BSHELL" = x; then
   3961   1.84  christos 	as_fn_error $? "sh must be somewhere on \$PATH" "$LINENO" 5
   3962   1.45       jmc fi
   3963   1.54       wiz 
   3964  1.108  christos printf "%s\n" "#define PATH_BSHELL \"$BSHELL\"" >>confdefs.h
   3965   1.84  christos 
   3966   1.76     pooka 
   3967  1.108  christos ac_header= ac_cache=
   3968  1.108  christos for ac_item in $ac_header_c_list
   3969  1.108  christos do
   3970  1.108  christos   if test $ac_cache; then
   3971  1.108  christos     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
   3972  1.108  christos     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
   3973  1.108  christos       printf "%s\n" "#define $ac_item 1" >> confdefs.h
   3974  1.108  christos     fi
   3975  1.108  christos     ac_header= ac_cache=
   3976  1.108  christos   elif test $ac_header; then
   3977  1.108  christos     ac_cache=$ac_item
   3978  1.108  christos   else
   3979  1.108  christos     ac_header=$ac_item
   3980  1.108  christos   fi
   3981  1.108  christos done
   3982   1.84  christos 
   3983    1.6        tv 
   3984    1.6        tv 
   3985    1.6        tv 
   3986   1.84  christos 
   3987   1.84  christos 
   3988    1.6        tv 
   3989    1.6        tv 
   3990  1.108  christos if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
   3991  1.108  christos then :
   3992    1.6        tv 
   3993  1.108  christos printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
   3994   1.84  christos 
   3995   1.74  christos fi
   3996  1.108  christos  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   3997  1.108  christos printf %s "checking whether byte ordering is bigendian... " >&6; }
   3998  1.108  christos if test ${ac_cv_c_bigendian+y}
   3999  1.108  christos then :
   4000  1.108  christos   printf %s "(cached) " >&6
   4001  1.108  christos else case e in #(
   4002  1.108  christos   e) ac_cv_c_bigendian=unknown
   4003   1.84  christos     # See if we're dealing with a universal compiler.
   4004   1.84  christos     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4005   1.84  christos /* end confdefs.h.  */
   4006   1.84  christos #ifndef __APPLE_CC__
   4007   1.84  christos 	       not a universal capable compiler
   4008   1.84  christos 	     #endif
   4009   1.84  christos 	     typedef int dummy;
   4010   1.84  christos 
   4011   1.84  christos _ACEOF
   4012  1.108  christos if ac_fn_c_try_compile "$LINENO"
   4013  1.108  christos then :
   4014   1.84  christos 
   4015   1.84  christos 	# Check for potential -arch flags.  It is not universal unless
   4016   1.84  christos 	# there are at least two -arch flags with different values.
   4017   1.84  christos 	ac_arch=
   4018   1.84  christos 	ac_prev=
   4019   1.84  christos 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   4020   1.84  christos 	 if test -n "$ac_prev"; then
   4021   1.84  christos 	   case $ac_word in
   4022   1.84  christos 	     i?86 | x86_64 | ppc | ppc64)
   4023   1.84  christos 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   4024   1.84  christos 		 ac_arch=$ac_word
   4025   1.84  christos 	       else
   4026   1.84  christos 		 ac_cv_c_bigendian=universal
   4027   1.84  christos 		 break
   4028   1.84  christos 	       fi
   4029   1.84  christos 	       ;;
   4030   1.84  christos 	   esac
   4031   1.84  christos 	   ac_prev=
   4032   1.84  christos 	 elif test "x$ac_word" = "x-arch"; then
   4033   1.84  christos 	   ac_prev=arch
   4034   1.84  christos 	 fi
   4035   1.84  christos        done
   4036   1.84  christos fi
   4037  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4038   1.84  christos     if test $ac_cv_c_bigendian = unknown; then
   4039   1.84  christos       # See if sys/param.h defines the BYTE_ORDER macro.
   4040   1.84  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4041   1.84  christos /* end confdefs.h.  */
   4042   1.76     pooka #include <sys/types.h>
   4043   1.84  christos 	     #include <sys/param.h>
   4044   1.76     pooka 
   4045   1.76     pooka int
   4046  1.108  christos main (void)
   4047   1.76     pooka {
   4048  1.108  christos #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
   4049  1.108  christos 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
   4050   1.84  christos 		     && LITTLE_ENDIAN)
   4051   1.84  christos 	      bogus endian macros
   4052   1.84  christos 	     #endif
   4053   1.76     pooka 
   4054   1.76     pooka   ;
   4055   1.76     pooka   return 0;
   4056   1.76     pooka }
   4057   1.76     pooka _ACEOF
   4058  1.108  christos if ac_fn_c_try_compile "$LINENO"
   4059  1.108  christos then :
   4060   1.84  christos   # It does; now see whether it defined to BIG_ENDIAN or not.
   4061   1.84  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4062   1.84  christos /* end confdefs.h.  */
   4063   1.84  christos #include <sys/types.h>
   4064   1.84  christos 		#include <sys/param.h>
   4065   1.76     pooka 
   4066   1.76     pooka int
   4067  1.108  christos main (void)
   4068   1.76     pooka {
   4069   1.84  christos #if BYTE_ORDER != BIG_ENDIAN
   4070   1.84  christos 		 not big endian
   4071   1.84  christos 		#endif
   4072   1.76     pooka 
   4073   1.76     pooka   ;
   4074   1.76     pooka   return 0;
   4075   1.76     pooka }
   4076   1.76     pooka _ACEOF
   4077  1.108  christos if ac_fn_c_try_compile "$LINENO"
   4078  1.108  christos then :
   4079   1.84  christos   ac_cv_c_bigendian=yes
   4080  1.108  christos else case e in #(
   4081  1.108  christos   e) ac_cv_c_bigendian=no ;;
   4082  1.108  christos esac
   4083   1.76     pooka fi
   4084  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4085   1.76     pooka fi
   4086  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4087   1.84  christos     fi
   4088   1.84  christos     if test $ac_cv_c_bigendian = unknown; then
   4089   1.84  christos       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   4090   1.84  christos       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4091   1.84  christos /* end confdefs.h.  */
   4092   1.84  christos #include <limits.h>
   4093   1.76     pooka 
   4094   1.76     pooka int
   4095  1.108  christos main (void)
   4096   1.76     pooka {
   4097   1.84  christos #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   4098   1.84  christos 	      bogus endian macros
   4099   1.84  christos 	     #endif
   4100   1.76     pooka 
   4101   1.76     pooka   ;
   4102   1.76     pooka   return 0;
   4103   1.76     pooka }
   4104   1.76     pooka _ACEOF
   4105  1.108  christos if ac_fn_c_try_compile "$LINENO"
   4106  1.108  christos then :
   4107   1.84  christos   # It does; now see whether it defined to _BIG_ENDIAN or not.
   4108   1.84  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4109   1.84  christos /* end confdefs.h.  */
   4110   1.84  christos #include <limits.h>
   4111   1.76     pooka 
   4112   1.76     pooka int
   4113  1.108  christos main (void)
   4114   1.76     pooka {
   4115   1.84  christos #ifndef _BIG_ENDIAN
   4116   1.84  christos 		 not big endian
   4117   1.84  christos 		#endif
   4118   1.84  christos 
   4119   1.76     pooka   ;
   4120   1.76     pooka   return 0;
   4121   1.76     pooka }
   4122   1.76     pooka _ACEOF
   4123  1.108  christos if ac_fn_c_try_compile "$LINENO"
   4124  1.108  christos then :
   4125   1.84  christos   ac_cv_c_bigendian=yes
   4126  1.108  christos else case e in #(
   4127  1.108  christos   e) ac_cv_c_bigendian=no ;;
   4128  1.108  christos esac
   4129   1.76     pooka fi
   4130  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4131   1.76     pooka fi
   4132  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4133   1.84  christos     fi
   4134   1.84  christos     if test $ac_cv_c_bigendian = unknown; then
   4135   1.84  christos       # Compile a test program.
   4136  1.108  christos       if test "$cross_compiling" = yes
   4137  1.108  christos then :
   4138   1.84  christos   # Try to guess by grepping values from an object file.
   4139   1.84  christos 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4140   1.84  christos /* end confdefs.h.  */
   4141  1.108  christos unsigned short int ascii_mm[] =
   4142   1.84  christos 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   4143  1.108  christos 		unsigned short int ascii_ii[] =
   4144   1.84  christos 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   4145   1.84  christos 		int use_ascii (int i) {
   4146   1.84  christos 		  return ascii_mm[i] + ascii_ii[i];
   4147   1.84  christos 		}
   4148  1.108  christos 		unsigned short int ebcdic_ii[] =
   4149   1.84  christos 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   4150  1.108  christos 		unsigned short int ebcdic_mm[] =
   4151   1.84  christos 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   4152   1.84  christos 		int use_ebcdic (int i) {
   4153   1.84  christos 		  return ebcdic_mm[i] + ebcdic_ii[i];
   4154   1.84  christos 		}
   4155  1.108  christos 		int
   4156  1.108  christos 		main (int argc, char **argv)
   4157  1.108  christos 		{
   4158  1.108  christos 		  /* Intimidate the compiler so that it does not
   4159  1.108  christos 		     optimize the arrays away.  */
   4160  1.108  christos 		  char *p = argv[0];
   4161  1.108  christos 		  ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
   4162  1.108  christos 		  ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
   4163  1.108  christos 		  return use_ascii (argc) == use_ebcdic (*p);
   4164  1.108  christos 		}
   4165   1.76     pooka _ACEOF
   4166  1.108  christos if ac_fn_c_try_link "$LINENO"
   4167  1.108  christos then :
   4168  1.108  christos   if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
   4169   1.84  christos 	      ac_cv_c_bigendian=yes
   4170   1.84  christos 	    fi
   4171  1.108  christos 	    if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
   4172   1.84  christos 	      if test "$ac_cv_c_bigendian" = unknown; then
   4173   1.84  christos 		ac_cv_c_bigendian=no
   4174   1.84  christos 	      else
   4175   1.84  christos 		# finding both strings is unlikely to happen, but who knows?
   4176   1.84  christos 		ac_cv_c_bigendian=unknown
   4177   1.84  christos 	      fi
   4178   1.84  christos 	    fi
   4179   1.76     pooka fi
   4180  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4181  1.108  christos     conftest$ac_exeext conftest.$ac_ext
   4182  1.108  christos else case e in #(
   4183  1.108  christos   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4184   1.84  christos /* end confdefs.h.  */
   4185   1.84  christos $ac_includes_default
   4186   1.76     pooka int
   4187  1.108  christos main (void)
   4188   1.76     pooka {
   4189   1.84  christos 
   4190   1.84  christos 	     /* Are we little or big endian?  From Harbison&Steele.  */
   4191   1.84  christos 	     union
   4192   1.84  christos 	     {
   4193   1.84  christos 	       long int l;
   4194   1.84  christos 	       char c[sizeof (long int)];
   4195   1.84  christos 	     } u;
   4196   1.84  christos 	     u.l = 1;
   4197   1.84  christos 	     return u.c[sizeof (long int) - 1] == 1;
   4198   1.76     pooka 
   4199   1.76     pooka   ;
   4200   1.76     pooka   return 0;
   4201   1.76     pooka }
   4202   1.76     pooka _ACEOF
   4203  1.108  christos if ac_fn_c_try_run "$LINENO"
   4204  1.108  christos then :
   4205   1.84  christos   ac_cv_c_bigendian=no
   4206  1.108  christos else case e in #(
   4207  1.108  christos   e) ac_cv_c_bigendian=yes ;;
   4208  1.108  christos esac
   4209   1.76     pooka fi
   4210   1.84  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4211  1.108  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   4212  1.108  christos esac
   4213   1.76     pooka fi
   4214   1.76     pooka 
   4215  1.108  christos     fi ;;
   4216  1.108  christos esac
   4217   1.76     pooka fi
   4218  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   4219  1.108  christos printf "%s\n" "$ac_cv_c_bigendian" >&6; }
   4220   1.84  christos  case $ac_cv_c_bigendian in #(
   4221   1.84  christos    yes)
   4222  1.108  christos      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
   4223   1.84  christos ;; #(
   4224   1.84  christos    no)
   4225   1.84  christos       ;; #(
   4226   1.84  christos    universal)
   4227   1.84  christos 
   4228  1.108  christos printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   4229   1.84  christos 
   4230   1.84  christos      ;; #(
   4231   1.84  christos    *)
   4232   1.84  christos      as_fn_error $? "unknown endianness
   4233   1.84  christos  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   4234   1.84  christos  esac
   4235   1.84  christos 
   4236  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4237  1.108  christos printf %s "checking for grep that handles long lines and -e... " >&6; }
   4238  1.108  christos if test ${ac_cv_path_GREP+y}
   4239  1.108  christos then :
   4240  1.108  christos   printf %s "(cached) " >&6
   4241  1.108  christos else case e in #(
   4242  1.108  christos   e) if test -z "$GREP"; then
   4243  1.108  christos   ac_path_GREP_found=false
   4244  1.108  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   4245  1.108  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4246  1.108  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4247  1.108  christos do
   4248  1.108  christos   IFS=$as_save_IFS
   4249  1.108  christos   case $as_dir in #(((
   4250  1.108  christos     '') as_dir=./ ;;
   4251  1.108  christos     */) ;;
   4252  1.108  christos     *) as_dir=$as_dir/ ;;
   4253  1.108  christos   esac
   4254  1.108  christos     for ac_prog in grep ggrep
   4255  1.108  christos    do
   4256  1.108  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4257  1.108  christos       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
   4258  1.108  christos       as_fn_executable_p "$ac_path_GREP" || continue
   4259  1.108  christos # Check for GNU ac_path_GREP and select it if it is found.
   4260  1.108  christos   # Check for GNU $ac_path_GREP
   4261  1.108  christos case `"$ac_path_GREP" --version 2>&1` in #(
   4262  1.108  christos *GNU*)
   4263  1.108  christos   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4264  1.108  christos #(
   4265  1.108  christos *)
   4266  1.108  christos   ac_count=0
   4267  1.108  christos   printf %s 0123456789 >"conftest.in"
   4268  1.108  christos   while :
   4269  1.108  christos   do
   4270  1.108  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4271  1.108  christos     mv "conftest.tmp" "conftest.in"
   4272  1.108  christos     cp "conftest.in" "conftest.nl"
   4273  1.108  christos     printf "%s\n" 'GREP' >> "conftest.nl"
   4274  1.108  christos     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4275  1.108  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4276  1.108  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4277  1.108  christos     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4278  1.108  christos       # Best one so far, save it but keep looking for a better one
   4279  1.108  christos       ac_cv_path_GREP="$ac_path_GREP"
   4280  1.108  christos       ac_path_GREP_max=$ac_count
   4281  1.108  christos     fi
   4282  1.108  christos     # 10*(2^10) chars as input seems more than enough
   4283  1.108  christos     test $ac_count -gt 10 && break
   4284  1.108  christos   done
   4285  1.108  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4286  1.108  christos esac
   4287   1.76     pooka 
   4288  1.108  christos       $ac_path_GREP_found && break 3
   4289  1.108  christos     done
   4290  1.108  christos   done
   4291  1.108  christos   done
   4292  1.108  christos IFS=$as_save_IFS
   4293  1.108  christos   if test -z "$ac_cv_path_GREP"; then
   4294  1.108  christos     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4295  1.108  christos   fi
   4296   1.76     pooka else
   4297  1.108  christos   ac_cv_path_GREP=$GREP
   4298  1.108  christos fi
   4299  1.108  christos  ;;
   4300  1.108  christos esac
   4301   1.76     pooka fi
   4302  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4303  1.108  christos printf "%s\n" "$ac_cv_path_GREP" >&6; }
   4304  1.108  christos  GREP="$ac_cv_path_GREP"
   4305   1.76     pooka 
   4306   1.76     pooka 
   4307  1.108  christos # Autoupdate added the next two lines to ensure that your configure
   4308  1.108  christos # script's behavior did not change.  They are probably safe to remove.
   4309   1.76     pooka 
   4310  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4311  1.108  christos printf %s "checking for egrep... " >&6; }
   4312  1.108  christos if test ${ac_cv_path_EGREP+y}
   4313  1.108  christos then :
   4314  1.108  christos   printf %s "(cached) " >&6
   4315  1.108  christos else case e in #(
   4316  1.108  christos   e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4317  1.108  christos    then ac_cv_path_EGREP="$GREP -E"
   4318  1.108  christos    else
   4319  1.108  christos      if test -z "$EGREP"; then
   4320  1.108  christos   ac_path_EGREP_found=false
   4321  1.108  christos   # Loop through the user's path and test for each of PROGNAME-LIST
   4322  1.108  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4323  1.108  christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4324  1.108  christos do
   4325  1.108  christos   IFS=$as_save_IFS
   4326  1.108  christos   case $as_dir in #(((
   4327  1.108  christos     '') as_dir=./ ;;
   4328  1.108  christos     */) ;;
   4329  1.108  christos     *) as_dir=$as_dir/ ;;
   4330  1.108  christos   esac
   4331  1.108  christos     for ac_prog in egrep
   4332  1.108  christos    do
   4333  1.108  christos     for ac_exec_ext in '' $ac_executable_extensions; do
   4334  1.108  christos       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
   4335  1.108  christos       as_fn_executable_p "$ac_path_EGREP" || continue
   4336  1.108  christos # Check for GNU ac_path_EGREP and select it if it is found.
   4337  1.108  christos   # Check for GNU $ac_path_EGREP
   4338  1.108  christos case `"$ac_path_EGREP" --version 2>&1` in #(
   4339  1.108  christos *GNU*)
   4340  1.108  christos   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4341  1.108  christos #(
   4342  1.108  christos *)
   4343  1.108  christos   ac_count=0
   4344  1.108  christos   printf %s 0123456789 >"conftest.in"
   4345  1.108  christos   while :
   4346  1.108  christos   do
   4347  1.108  christos     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4348  1.108  christos     mv "conftest.tmp" "conftest.in"
   4349  1.108  christos     cp "conftest.in" "conftest.nl"
   4350  1.108  christos     printf "%s\n" 'EGREP' >> "conftest.nl"
   4351  1.108  christos     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4352  1.108  christos     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4353  1.108  christos     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4354  1.108  christos     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4355  1.108  christos       # Best one so far, save it but keep looking for a better one
   4356  1.108  christos       ac_cv_path_EGREP="$ac_path_EGREP"
   4357  1.108  christos       ac_path_EGREP_max=$ac_count
   4358  1.108  christos     fi
   4359  1.108  christos     # 10*(2^10) chars as input seems more than enough
   4360  1.108  christos     test $ac_count -gt 10 && break
   4361  1.108  christos   done
   4362  1.108  christos   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4363  1.108  christos esac
   4364   1.76     pooka 
   4365  1.108  christos       $ac_path_EGREP_found && break 3
   4366  1.108  christos     done
   4367  1.108  christos   done
   4368  1.108  christos   done
   4369  1.108  christos IFS=$as_save_IFS
   4370  1.108  christos   if test -z "$ac_cv_path_EGREP"; then
   4371  1.108  christos     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4372  1.108  christos   fi
   4373   1.76     pooka else
   4374  1.108  christos   ac_cv_path_EGREP=$EGREP
   4375   1.76     pooka fi
   4376   1.84  christos 
   4377  1.108  christos    fi ;;
   4378  1.108  christos esac
   4379   1.76     pooka fi
   4380  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4381  1.108  christos printf "%s\n" "$ac_cv_path_EGREP" >&6; }
   4382  1.108  christos  EGREP="$ac_cv_path_EGREP"
   4383   1.76     pooka 
   4384  1.108  christos          EGREP_TRADITIONAL=$EGREP
   4385  1.108  christos  ac_cv_path_EGREP_TRADITIONAL=$EGREP
   4386   1.76     pooka 
   4387   1.76     pooka 
   4388   1.76     pooka 
   4389   1.84  christos # Confirm existence of zlib.  (This is available as a default install
   4390   1.84  christos # option on many OS's; this could be added as a reachover build in the
   4391   1.84  christos # future.)
   4392  1.108  christos ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
   4393  1.108  christos if test "x$ac_cv_header_zlib_h" = xyes
   4394  1.108  christos then :
   4395   1.76     pooka 
   4396  1.108  christos else case e in #(
   4397  1.108  christos   e) as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5 ;;
   4398  1.108  christos esac
   4399   1.76     pooka fi
   4400   1.76     pooka 
   4401  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
   4402  1.108  christos printf %s "checking for gzdopen in -lz... " >&6; }
   4403  1.108  christos if test ${ac_cv_lib_z_gzdopen+y}
   4404  1.108  christos then :
   4405  1.108  christos   printf %s "(cached) " >&6
   4406  1.108  christos else case e in #(
   4407  1.108  christos   e) ac_check_lib_save_LIBS=$LIBS
   4408   1.84  christos LIBS="-lz  $LIBS"
   4409   1.84  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4410   1.84  christos /* end confdefs.h.  */
   4411   1.76     pooka 
   4412   1.84  christos /* Override any GCC internal prototype to avoid an error.
   4413   1.84  christos    Use char because int might match the return type of a GCC
   4414  1.108  christos    builtin and then its argument prototype would still apply.
   4415  1.108  christos    The 'extern "C"' is for builds by C++ compilers;
   4416  1.108  christos    although this is not generally supported in C code supporting it here
   4417  1.108  christos    has little cost and some practical benefit (sr 110532).  */
   4418   1.84  christos #ifdef __cplusplus
   4419   1.84  christos extern "C"
   4420   1.84  christos #endif
   4421  1.108  christos char gzdopen (void);
   4422   1.76     pooka int
   4423  1.108  christos main (void)
   4424   1.76     pooka {
   4425   1.84  christos return gzdopen ();
   4426   1.76     pooka   ;
   4427   1.76     pooka   return 0;
   4428   1.76     pooka }
   4429   1.76     pooka _ACEOF
   4430  1.108  christos if ac_fn_c_try_link "$LINENO"
   4431  1.108  christos then :
   4432   1.84  christos   ac_cv_lib_z_gzdopen=yes
   4433  1.108  christos else case e in #(
   4434  1.108  christos   e) ac_cv_lib_z_gzdopen=no ;;
   4435  1.108  christos esac
   4436   1.76     pooka fi
   4437  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4438   1.84  christos     conftest$ac_exeext conftest.$ac_ext
   4439  1.108  christos LIBS=$ac_check_lib_save_LIBS ;;
   4440  1.108  christos esac
   4441   1.76     pooka fi
   4442  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
   4443  1.108  christos printf "%s\n" "$ac_cv_lib_z_gzdopen" >&6; }
   4444  1.108  christos if test "x$ac_cv_lib_z_gzdopen" = xyes
   4445  1.108  christos then :
   4446  1.108  christos   printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
   4447   1.76     pooka 
   4448   1.84  christos   LIBS="-lz $LIBS"
   4449   1.76     pooka 
   4450  1.108  christos else case e in #(
   4451  1.108  christos   e) as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5 ;;
   4452  1.108  christos esac
   4453   1.76     pooka fi
   4454   1.76     pooka 
   4455   1.76     pooka 
   4456   1.84  christos # Make sure certain required headers are available.
   4457   1.84  christos # These are not necessarily required by the code, but they are not
   4458   1.84  christos # currently conditionalized.
   4459  1.108  christos        for ac_header in sys/ioctl.h sys/mman.h sys/param.h sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h termios.h unistd.h
   4460   1.84  christos do :
   4461  1.108  christos   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
   4462  1.108  christos ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   4463  1.108  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"
   4464  1.108  christos then :
   4465   1.84  christos   cat >>confdefs.h <<_ACEOF
   4466  1.108  christos #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
   4467   1.84  christos _ACEOF
   4468   1.76     pooka 
   4469  1.108  christos else case e in #(
   4470  1.108  christos   e) as_fn_error $? "standard system header file not found" "$LINENO" 5 ;;
   4471  1.108  christos esac
   4472   1.76     pooka fi
   4473   1.76     pooka 
   4474   1.84  christos done
   4475   1.76     pooka 
   4476   1.84  christos # Find headers that may not be available.
   4477   1.84  christos ac_header_dirent=no
   4478   1.84  christos for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   4479  1.108  christos   as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
   4480  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
   4481  1.108  christos printf %s "checking for $ac_hdr that defines DIR... " >&6; }
   4482  1.108  christos if eval test \${$as_ac_Header+y}
   4483  1.108  christos then :
   4484  1.108  christos   printf %s "(cached) " >&6
   4485  1.108  christos else case e in #(
   4486  1.108  christos   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4487   1.84  christos /* end confdefs.h.  */
   4488   1.84  christos #include <sys/types.h>
   4489   1.84  christos #include <$ac_hdr>
   4490   1.76     pooka 
   4491   1.76     pooka int
   4492  1.108  christos main (void)
   4493   1.76     pooka {
   4494   1.84  christos if ((DIR *) 0)
   4495   1.84  christos return 0;
   4496   1.76     pooka   ;
   4497   1.76     pooka   return 0;
   4498   1.76     pooka }
   4499   1.76     pooka _ACEOF
   4500  1.108  christos if ac_fn_c_try_compile "$LINENO"
   4501  1.108  christos then :
   4502   1.84  christos   eval "$as_ac_Header=yes"
   4503  1.108  christos else case e in #(
   4504  1.108  christos   e) eval "$as_ac_Header=no" ;;
   4505  1.108  christos esac
   4506   1.76     pooka fi
   4507  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   4508  1.108  christos esac
   4509   1.76     pooka fi
   4510   1.84  christos eval ac_res=\$$as_ac_Header
   4511  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   4512  1.108  christos printf "%s\n" "$ac_res" >&6; }
   4513  1.108  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"
   4514  1.108  christos then :
   4515   1.84  christos   cat >>confdefs.h <<_ACEOF
   4516  1.108  christos #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
   4517   1.84  christos _ACEOF
   4518   1.74  christos 
   4519   1.84  christos ac_header_dirent=$ac_hdr; break
   4520   1.76     pooka fi
   4521   1.66   tsutsui 
   4522   1.84  christos done
   4523   1.84  christos # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   4524   1.84  christos if test $ac_header_dirent = dirent.h; then
   4525  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
   4526  1.108  christos printf %s "checking for library containing opendir... " >&6; }
   4527  1.108  christos if test ${ac_cv_search_opendir+y}
   4528  1.108  christos then :
   4529  1.108  christos   printf %s "(cached) " >&6
   4530  1.108  christos else case e in #(
   4531  1.108  christos   e) ac_func_search_save_LIBS=$LIBS
   4532   1.84  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4533   1.84  christos /* end confdefs.h.  */
   4534   1.76     pooka 
   4535   1.84  christos /* Override any GCC internal prototype to avoid an error.
   4536   1.84  christos    Use char because int might match the return type of a GCC
   4537  1.108  christos    builtin and then its argument prototype would still apply.
   4538  1.108  christos    The 'extern "C"' is for builds by C++ compilers;
   4539  1.108  christos    although this is not generally supported in C code supporting it here
   4540  1.108  christos    has little cost and some practical benefit (sr 110532).  */
   4541   1.84  christos #ifdef __cplusplus
   4542   1.84  christos extern "C"
   4543   1.84  christos #endif
   4544  1.108  christos char opendir (void);
   4545   1.76     pooka int
   4546  1.108  christos main (void)
   4547   1.76     pooka {
   4548   1.84  christos return opendir ();
   4549   1.76     pooka   ;
   4550   1.76     pooka   return 0;
   4551   1.76     pooka }
   4552    1.6        tv _ACEOF
   4553  1.108  christos for ac_lib in '' dir
   4554  1.108  christos do
   4555   1.84  christos   if test -z "$ac_lib"; then
   4556   1.84  christos     ac_res="none required"
   4557   1.84  christos   else
   4558   1.84  christos     ac_res=-l$ac_lib
   4559   1.84  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   4560   1.84  christos   fi
   4561  1.108  christos   if ac_fn_c_try_link "$LINENO"
   4562  1.108  christos then :
   4563   1.84  christos   ac_cv_search_opendir=$ac_res
   4564   1.84  christos fi
   4565  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4566   1.84  christos     conftest$ac_exeext
   4567  1.108  christos   if test ${ac_cv_search_opendir+y}
   4568  1.108  christos then :
   4569   1.84  christos   break
   4570   1.84  christos fi
   4571   1.84  christos done
   4572  1.108  christos if test ${ac_cv_search_opendir+y}
   4573  1.108  christos then :
   4574   1.84  christos 
   4575  1.108  christos else case e in #(
   4576  1.108  christos   e) ac_cv_search_opendir=no ;;
   4577  1.108  christos esac
   4578   1.76     pooka fi
   4579   1.84  christos rm conftest.$ac_ext
   4580  1.108  christos LIBS=$ac_func_search_save_LIBS ;;
   4581  1.108  christos esac
   4582    1.6        tv fi
   4583  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
   4584  1.108  christos printf "%s\n" "$ac_cv_search_opendir" >&6; }
   4585   1.84  christos ac_res=$ac_cv_search_opendir
   4586  1.108  christos if test "$ac_res" != no
   4587  1.108  christos then :
   4588   1.84  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   4589    1.6        tv 
   4590   1.84  christos fi
   4591   1.38     fredb 
   4592   1.76     pooka else
   4593  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
   4594  1.108  christos printf %s "checking for library containing opendir... " >&6; }
   4595  1.108  christos if test ${ac_cv_search_opendir+y}
   4596  1.108  christos then :
   4597  1.108  christos   printf %s "(cached) " >&6
   4598  1.108  christos else case e in #(
   4599  1.108  christos   e) ac_func_search_save_LIBS=$LIBS
   4600   1.84  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4601   1.84  christos /* end confdefs.h.  */
   4602   1.80       apb 
   4603   1.84  christos /* Override any GCC internal prototype to avoid an error.
   4604   1.84  christos    Use char because int might match the return type of a GCC
   4605  1.108  christos    builtin and then its argument prototype would still apply.
   4606  1.108  christos    The 'extern "C"' is for builds by C++ compilers;
   4607  1.108  christos    although this is not generally supported in C code supporting it here
   4608  1.108  christos    has little cost and some practical benefit (sr 110532).  */
   4609   1.84  christos #ifdef __cplusplus
   4610   1.84  christos extern "C"
   4611   1.84  christos #endif
   4612  1.108  christos char opendir (void);
   4613   1.80       apb int
   4614  1.108  christos main (void)
   4615   1.80       apb {
   4616   1.84  christos return opendir ();
   4617   1.80       apb   ;
   4618   1.80       apb   return 0;
   4619   1.80       apb }
   4620   1.80       apb _ACEOF
   4621  1.108  christos for ac_lib in '' x
   4622  1.108  christos do
   4623   1.84  christos   if test -z "$ac_lib"; then
   4624   1.84  christos     ac_res="none required"
   4625   1.84  christos   else
   4626   1.84  christos     ac_res=-l$ac_lib
   4627   1.84  christos     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   4628   1.84  christos   fi
   4629  1.108  christos   if ac_fn_c_try_link "$LINENO"
   4630  1.108  christos then :
   4631   1.84  christos   ac_cv_search_opendir=$ac_res
   4632   1.84  christos fi
   4633  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4634   1.84  christos     conftest$ac_exeext
   4635  1.108  christos   if test ${ac_cv_search_opendir+y}
   4636  1.108  christos then :
   4637   1.84  christos   break
   4638   1.84  christos fi
   4639   1.84  christos done
   4640  1.108  christos if test ${ac_cv_search_opendir+y}
   4641  1.108  christos then :
   4642   1.84  christos 
   4643  1.108  christos else case e in #(
   4644  1.108  christos   e) ac_cv_search_opendir=no ;;
   4645  1.108  christos esac
   4646   1.80       apb fi
   4647   1.84  christos rm conftest.$ac_ext
   4648  1.108  christos LIBS=$ac_func_search_save_LIBS ;;
   4649  1.108  christos esac
   4650   1.84  christos fi
   4651  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
   4652  1.108  christos printf "%s\n" "$ac_cv_search_opendir" >&6; }
   4653   1.84  christos ac_res=$ac_cv_search_opendir
   4654  1.108  christos if test "$ac_res" != no
   4655  1.108  christos then :
   4656   1.84  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   4657   1.84  christos 
   4658   1.80       apb fi
   4659   1.80       apb 
   4660   1.84  christos fi
   4661   1.80       apb 
   4662  1.108  christos ac_fn_c_check_header_compile "$LINENO" "sys/mtio.h" "ac_cv_header_sys_mtio_h" "$ac_includes_default"
   4663  1.108  christos if test "x$ac_cv_header_sys_mtio_h" = xyes
   4664  1.108  christos then :
   4665  1.108  christos   printf "%s\n" "#define HAVE_SYS_MTIO_H 1" >>confdefs.h
   4666  1.108  christos 
   4667  1.108  christos fi
   4668  1.108  christos ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
   4669  1.108  christos if test "x$ac_cv_header_sys_sysmacros_h" = xyes
   4670  1.108  christos then :
   4671  1.108  christos   printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
   4672  1.108  christos 
   4673  1.108  christos fi
   4674  1.108  christos ac_fn_c_check_header_compile "$LINENO" "sys/syslimits.h" "ac_cv_header_sys_syslimits_h" "$ac_includes_default"
   4675  1.108  christos if test "x$ac_cv_header_sys_syslimits_h" = xyes
   4676  1.108  christos then :
   4677  1.108  christos   printf "%s\n" "#define HAVE_SYS_SYSLIMITS_H 1" >>confdefs.h
   4678  1.108  christos 
   4679  1.108  christos fi
   4680  1.108  christos ac_fn_c_check_header_compile "$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default"
   4681  1.108  christos if test "x$ac_cv_header_stdio_ext_h" = xyes
   4682  1.108  christos then :
   4683  1.108  christos   printf "%s\n" "#define HAVE_STDIO_EXT_H 1" >>confdefs.h
   4684  1.108  christos 
   4685  1.108  christos fi
   4686  1.108  christos ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
   4687  1.108  christos if test "x$ac_cv_header_getopt_h" = xyes
   4688  1.108  christos then :
   4689  1.108  christos   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
   4690  1.108  christos 
   4691  1.108  christos fi
   4692  1.108  christos ac_fn_c_check_header_compile "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
   4693  1.108  christos if test "x$ac_cv_header_features_h" = xyes
   4694  1.108  christos then :
   4695  1.108  christos   printf "%s\n" "#define HAVE_FEATURES_H 1" >>confdefs.h
   4696  1.108  christos 
   4697  1.108  christos fi
   4698  1.108  christos ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
   4699  1.108  christos if test "x$ac_cv_header_malloc_h" = xyes
   4700  1.108  christos then :
   4701  1.108  christos   printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
   4702  1.108  christos 
   4703  1.108  christos fi
   4704  1.108  christos ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
   4705  1.108  christos if test "x$ac_cv_header_sys_poll_h" = xyes
   4706  1.108  christos then :
   4707  1.108  christos   printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
   4708  1.108  christos 
   4709  1.108  christos fi
   4710  1.108  christos ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
   4711  1.108  christos if test "x$ac_cv_header_pthread_h" = xyes
   4712  1.108  christos then :
   4713  1.108  christos   printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
   4714  1.108  christos 
   4715  1.108  christos fi
   4716  1.108  christos ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
   4717  1.108  christos if test "x$ac_cv_header_stddef_h" = xyes
   4718  1.108  christos then :
   4719  1.108  christos   printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
   4720   1.80       apb 
   4721   1.80       apb fi
   4722  1.108  christos ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
   4723  1.108  christos if test "x$ac_cv_header_sys_uio_h" = xyes
   4724  1.108  christos then :
   4725  1.108  christos   printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
   4726   1.45       jmc 
   4727  1.108  christos fi
   4728   1.84  christos 
   4729  1.108  christos        for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h sys/endian.h sys/featuretest.h err.h inttypes.h libgen.h paths.h libgen.h stdint.h util.h resolv.h arpa/nameser.h
   4730   1.84  christos do :
   4731  1.108  christos   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
   4732  1.108  christos ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   4733  1.108  christos if eval test \"x\$"$as_ac_Header"\" = x"yes"
   4734  1.108  christos then :
   4735   1.84  christos   cat >>confdefs.h <<_ACEOF
   4736  1.108  christos #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
   4737   1.84  christos _ACEOF
   4738   1.84  christos 
   4739  1.108  christos else case e in #(
   4740  1.108  christos   e) test -f include/$ac_header || touch include/$ac_header ;;
   4741  1.108  christos esac
   4742   1.84  christos fi
   4743    1.7        tv 
   4744   1.84  christos done
   4745  1.108  christos        for ac_header in rpc/types.h
   4746   1.84  christos do :
   4747  1.108  christos   ac_fn_c_check_header_compile "$LINENO" "rpc/types.h" "ac_cv_header_rpc_types_h" "$ac_includes_default"
   4748  1.108  christos if test "x$ac_cv_header_rpc_types_h" = xyes
   4749  1.108  christos then :
   4750  1.108  christos   printf "%s\n" "#define HAVE_RPC_TYPES_H 1" >>confdefs.h
   4751   1.96   hannken 
   4752  1.108  christos else case e in #(
   4753  1.108  christos   e) echo '#include "nbtool_config.h"' >include/$ac_header.new
   4754   1.96   hannken 	echo '#include "'$srcdir/../../common/include/$ac_header'"' \
   4755   1.96   hannken 		>>include/$ac_header.new
   4756   1.96   hannken 	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
   4757   1.96   hannken 		rm -f include/$ac_header.new
   4758   1.96   hannken 	else
   4759   1.96   hannken 		mv -f include/$ac_header.new include/$ac_header
   4760  1.108  christos 	fi ;;
   4761  1.108  christos esac
   4762   1.96   hannken fi
   4763   1.96   hannken 
   4764   1.96   hannken done
   4765  1.108  christos        for ac_header in netconfig.h
   4766   1.96   hannken do :
   4767  1.108  christos   ac_fn_c_check_header_compile "$LINENO" "netconfig.h" "ac_cv_header_netconfig_h" "$ac_includes_default"
   4768  1.108  christos if test "x$ac_cv_header_netconfig_h" = xyes
   4769  1.108  christos then :
   4770  1.108  christos   printf "%s\n" "#define HAVE_NETCONFIG_H 1" >>confdefs.h
   4771   1.84  christos 
   4772  1.108  christos else case e in #(
   4773  1.108  christos   e) echo '#include "nbtool_config.h"' >include/$ac_header.new
   4774   1.84  christos 	echo '#include "'$srcdir/../../include/$ac_header'"' \
   4775   1.84  christos 		>>include/$ac_header.new
   4776   1.84  christos 	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
   4777   1.84  christos 		rm -f include/$ac_header.new
   4778   1.84  christos 	else
   4779   1.84  christos 		mv -f include/$ac_header.new include/$ac_header
   4780  1.108  christos 	fi ;;
   4781  1.108  christos esac
   4782   1.76     pooka fi
   4783   1.35   thorpej 
   4784   1.84  christos done
   4785   1.84  christos 
   4786   1.84  christos # Typedefs.
   4787   1.84  christos ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   4788  1.108  christos if test "x$ac_cv_type_size_t" = xyes
   4789  1.108  christos then :
   4790    1.9        tv 
   4791  1.108  christos else case e in #(
   4792  1.108  christos   e)
   4793  1.108  christos printf "%s\n" "#define size_t unsigned int" >>confdefs.h
   4794  1.108  christos  ;;
   4795  1.108  christos esac
   4796   1.63       apb fi
   4797   1.65  christos 
   4798   1.84  christos ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
   4799  1.108  christos if test "x$ac_cv_type_id_t" = xyes
   4800  1.108  christos then :
   4801   1.84  christos 
   4802  1.108  christos printf "%s\n" "#define HAVE_ID_T 1" >>confdefs.h
   4803   1.76     pooka 
   4804   1.63       apb 
   4805   1.84  christos fi
   4806   1.84  christos ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
   4807  1.108  christos if test "x$ac_cv_type_long_long" = xyes
   4808  1.108  christos then :
   4809   1.63       apb 
   4810  1.108  christos printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
   4811   1.84  christos 
   4812   1.84  christos 
   4813   1.63       apb fi
   4814   1.84  christos ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
   4815  1.108  christos if test "x$ac_cv_type_u_long" = xyes
   4816  1.108  christos then :
   4817   1.84  christos 
   4818  1.108  christos printf "%s\n" "#define HAVE_U_LONG 1" >>confdefs.h
   4819   1.84  christos 
   4820   1.84  christos 
   4821   1.76     pooka fi
   4822   1.84  christos ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
   4823  1.108  christos if test "x$ac_cv_type_u_char" = xyes
   4824  1.108  christos then :
   4825   1.74  christos 
   4826  1.108  christos printf "%s\n" "#define HAVE_U_CHAR 1" >>confdefs.h
   4827   1.65  christos 
   4828   1.65  christos 
   4829   1.74  christos fi
   4830   1.84  christos ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default"
   4831  1.108  christos if test "x$ac_cv_type_u_short" = xyes
   4832  1.108  christos then :
   4833   1.84  christos 
   4834  1.108  christos printf "%s\n" "#define HAVE_U_SHORT 1" >>confdefs.h
   4835   1.63       apb 
   4836   1.74  christos 
   4837   1.84  christos fi
   4838   1.84  christos ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
   4839  1.108  christos if test "x$ac_cv_type_u_int" = xyes
   4840  1.108  christos then :
   4841   1.74  christos 
   4842  1.108  christos printf "%s\n" "#define HAVE_U_INT 1" >>confdefs.h
   4843   1.84  christos 
   4844   1.84  christos 
   4845   1.76     pooka fi
   4846   1.84  christos ac_fn_c_check_type "$LINENO" "u_quad_t" "ac_cv_type_u_quad_t" "$ac_includes_default"
   4847  1.108  christos if test "x$ac_cv_type_u_quad_t" = xyes
   4848  1.108  christos then :
   4849   1.65  christos 
   4850  1.108  christos printf "%s\n" "#define HAVE_U_QUAD_T 1" >>confdefs.h
   4851   1.53    dogcow 
   4852   1.40    atatat 
   4853   1.40    atatat fi
   4854   1.63       apb 
   4855   1.95     kamil ac_fn_c_check_type "$LINENO" "uchar_t" "ac_cv_type_uchar_t" "$ac_includes_default"
   4856  1.108  christos if test "x$ac_cv_type_uchar_t" = xyes
   4857  1.108  christos then :
   4858   1.95     kamil 
   4859  1.108  christos printf "%s\n" "#define HAVE_UCHAR_T 1" >>confdefs.h
   4860   1.95     kamil 
   4861   1.95     kamil 
   4862   1.95     kamil fi
   4863   1.95     kamil ac_fn_c_check_type "$LINENO" "ushort_t" "ac_cv_type_ushort_t" "$ac_includes_default"
   4864  1.108  christos if test "x$ac_cv_type_ushort_t" = xyes
   4865  1.108  christos then :
   4866   1.95     kamil 
   4867  1.108  christos printf "%s\n" "#define HAVE_USHORT_T 1" >>confdefs.h
   4868   1.95     kamil 
   4869   1.95     kamil 
   4870   1.95     kamil fi
   4871   1.95     kamil ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
   4872  1.108  christos if test "x$ac_cv_type_uint_t" = xyes
   4873  1.108  christos then :
   4874   1.95     kamil 
   4875  1.108  christos printf "%s\n" "#define HAVE_UINT_T 1" >>confdefs.h
   4876   1.95     kamil 
   4877   1.95     kamil 
   4878   1.95     kamil fi
   4879   1.95     kamil ac_fn_c_check_type "$LINENO" "ulong_t" "ac_cv_type_ulong_t" "$ac_includes_default"
   4880  1.108  christos if test "x$ac_cv_type_ulong_t" = xyes
   4881  1.108  christos then :
   4882   1.95     kamil 
   4883  1.108  christos printf "%s\n" "#define HAVE_ULONG_T 1" >>confdefs.h
   4884   1.95     kamil 
   4885   1.95     kamil 
   4886   1.95     kamil fi
   4887   1.95     kamil 
   4888   1.84  christos ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
   4889   1.84  christos #ifdef HAVE_RPC_TYPES_H
   4890   1.84  christos #include <rpc/types.h>
   4891   1.84  christos #endif
   4892   1.84  christos #include <sys/socket.h>
   4893   1.84  christos "
   4894  1.108  christos if test "x$ac_cv_type_socklen_t" = xyes
   4895  1.108  christos then :
   4896   1.65  christos 
   4897  1.108  christos printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
   4898   1.65  christos 
   4899   1.63       apb fi
   4900   1.65  christos 
   4901   1.65  christos 
   4902  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for enum uio_rw" >&5
   4903  1.108  christos printf %s "checking for enum uio_rw... " >&6; }
   4904   1.94     kamil cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4905   1.94     kamil /* end confdefs.h.  */
   4906   1.94     kamil 
   4907   1.94     kamil #include <sys/types.h>
   4908   1.94     kamil #ifdef HAVE_SYS_UIO_H
   4909   1.94     kamil #include <sys/uio.h>
   4910   1.94     kamil #endif
   4911   1.94     kamil int
   4912  1.108  christos main (void)
   4913   1.94     kamil {
   4914   1.94     kamil enum uio_rw rw;
   4915   1.94     kamil   ;
   4916   1.94     kamil   return 0;
   4917   1.94     kamil }
   4918   1.94     kamil _ACEOF
   4919  1.108  christos if ac_fn_c_try_compile "$LINENO"
   4920  1.108  christos then :
   4921  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4922  1.108  christos printf "%s\n" "yes" >&6; }
   4923  1.108  christos 
   4924  1.108  christos printf "%s\n" "#define HAVE_ENUM_UIO_RW 1" >>confdefs.h
   4925  1.108  christos 
   4926  1.108  christos else case e in #(
   4927  1.108  christos   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4928  1.108  christos printf "%s\n" "no" >&6; } ;;
   4929  1.108  christos esac
   4930   1.94     kamil fi
   4931  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4932   1.94     kamil 
   4933  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for enum uio_seg" >&5
   4934  1.108  christos printf %s "checking for enum uio_seg... " >&6; }
   4935   1.94     kamil cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4936   1.94     kamil /* end confdefs.h.  */
   4937   1.94     kamil 
   4938   1.94     kamil #include <sys/types.h>
   4939   1.94     kamil #ifdef HAVE_SYS_UIO_H
   4940   1.94     kamil #include <sys/uio.h>
   4941   1.94     kamil #endif
   4942   1.94     kamil int
   4943  1.108  christos main (void)
   4944   1.94     kamil {
   4945   1.94     kamil enum uio_seg seg;
   4946   1.94     kamil   ;
   4947   1.94     kamil   return 0;
   4948   1.94     kamil }
   4949   1.94     kamil _ACEOF
   4950  1.108  christos if ac_fn_c_try_compile "$LINENO"
   4951  1.108  christos then :
   4952  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4953  1.108  christos printf "%s\n" "yes" >&6; }
   4954  1.108  christos 
   4955  1.108  christos printf "%s\n" "#define HAVE_ENUM_UIO_SEG 1" >>confdefs.h
   4956  1.108  christos 
   4957  1.108  christos else case e in #(
   4958  1.108  christos   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4959  1.108  christos printf "%s\n" "no" >&6; } ;;
   4960  1.108  christos esac
   4961   1.94     kamil fi
   4962  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4963   1.94     kamil 
   4964   1.60       apb 
   4965   1.84  christos 	ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
   4966  1.108  christos if test "x$ac_cv_type_uint8_t" = xyes
   4967  1.108  christos then :
   4968   1.81  christos 
   4969  1.108  christos else case e in #(
   4970  1.108  christos   e)
   4971   1.84  christos 		ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
   4972  1.108  christos if test "x$ac_cv_type_u_int8_t" = xyes
   4973  1.108  christos then :
   4974   1.81  christos 
   4975  1.108  christos printf "%s\n" "#define uint8_t u_int8_t" >>confdefs.h
   4976   1.81  christos 
   4977  1.108  christos else case e in #(
   4978  1.108  christos   e) as_fn_error $? "cannot find a suitable type for uint8_t" "$LINENO" 5 ;;
   4979  1.108  christos esac
   4980   1.81  christos fi
   4981   1.84  christos 
   4982  1.108  christos 	 ;;
   4983  1.108  christos esac
   4984   1.81  christos fi
   4985   1.81  christos 
   4986   1.84  christos 	ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
   4987  1.108  christos if test "x$ac_cv_type_u_int8_t" = xyes
   4988  1.108  christos then :
   4989   1.81  christos 
   4990  1.108  christos else case e in #(
   4991  1.108  christos   e)
   4992   1.84  christos 		ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
   4993  1.108  christos if test "x$ac_cv_type_uint8_t" = xyes
   4994  1.108  christos then :
   4995   1.81  christos 
   4996  1.108  christos printf "%s\n" "#define u_int8_t uint8_t" >>confdefs.h
   4997   1.81  christos 
   4998  1.108  christos else case e in #(
   4999  1.108  christos   e) as_fn_error $? "cannot find a suitable type for u_int8_t" "$LINENO" 5 ;;
   5000  1.108  christos esac
   5001   1.81  christos fi
   5002   1.84  christos 
   5003  1.108  christos 	 ;;
   5004  1.108  christos esac
   5005   1.81  christos fi
   5006   1.81  christos 
   5007  1.107      hans 	ac_fn_c_check_type "$LINENO" "__uint8_t" "ac_cv_type___uint8_t" "$ac_includes_default"
   5008  1.108  christos if test "x$ac_cv_type___uint8_t" = xyes
   5009  1.108  christos then :
   5010  1.107      hans 
   5011  1.108  christos else case e in #(
   5012  1.108  christos   e)
   5013  1.107      hans 		ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
   5014  1.108  christos if test "x$ac_cv_type_uint8_t" = xyes
   5015  1.108  christos then :
   5016  1.107      hans 
   5017  1.108  christos printf "%s\n" "#define __uint8_t uint8_t" >>confdefs.h
   5018  1.107      hans 
   5019  1.108  christos else case e in #(
   5020  1.108  christos   e) ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
   5021  1.108  christos if test "x$ac_cv_type_u_int8_t" = xyes
   5022  1.108  christos then :
   5023  1.107      hans 
   5024  1.108  christos printf "%s\n" "#define uint8_t u_int8_t" >>confdefs.h
   5025  1.107      hans 
   5026  1.108  christos else case e in #(
   5027  1.108  christos   e) as_fn_error $? "cannot find a suitable type for __uint8_t" "$LINENO" 5 ;;
   5028  1.108  christos esac
   5029  1.107      hans fi
   5030  1.108  christos  ;;
   5031  1.108  christos esac
   5032  1.107      hans fi
   5033  1.107      hans 
   5034  1.108  christos 	 ;;
   5035  1.108  christos esac
   5036  1.107      hans fi
   5037  1.107      hans 
   5038  1.107      hans 	ac_fn_c_check_type "$LINENO" "__int8_t" "ac_cv_type___int8_t" "$ac_includes_default"
   5039  1.108  christos if test "x$ac_cv_type___int8_t" = xyes
   5040  1.108  christos then :
   5041  1.107      hans 
   5042  1.108  christos else case e in #(
   5043  1.108  christos   e)
   5044  1.107      hans 		ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
   5045  1.108  christos if test "x$ac_cv_type_int8_t" = xyes
   5046  1.108  christos then :
   5047  1.107      hans 
   5048  1.108  christos printf "%s\n" "#define __int8_t int8_t" >>confdefs.h
   5049  1.107      hans 
   5050  1.108  christos else case e in #(
   5051  1.108  christos   e) as_fn_error $? "cannot find a suitable type for __int8_t" "$LINENO" 5 ;;
   5052  1.108  christos esac
   5053  1.107      hans fi
   5054  1.107      hans 
   5055  1.108  christos 	 ;;
   5056  1.108  christos esac
   5057  1.107      hans fi
   5058  1.107      hans 
   5059   1.81  christos 
   5060   1.84  christos 	ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
   5061  1.108  christos if test "x$ac_cv_type_uint16_t" = xyes
   5062  1.108  christos then :
   5063   1.81  christos 
   5064  1.108  christos else case e in #(
   5065  1.108  christos   e)
   5066   1.84  christos 		ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
   5067  1.108  christos if test "x$ac_cv_type_u_int16_t" = xyes
   5068  1.108  christos then :
   5069   1.81  christos 
   5070  1.108  christos printf "%s\n" "#define uint16_t u_int16_t" >>confdefs.h
   5071   1.81  christos 
   5072  1.108  christos else case e in #(
   5073  1.108  christos   e) as_fn_error $? "cannot find a suitable type for uint16_t" "$LINENO" 5 ;;
   5074  1.108  christos esac
   5075   1.81  christos fi
   5076   1.84  christos 
   5077  1.108  christos 	 ;;
   5078  1.108  christos esac
   5079   1.81  christos fi
   5080   1.81  christos 
   5081   1.84  christos 	ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
   5082  1.108  christos if test "x$ac_cv_type_u_int16_t" = xyes
   5083  1.108  christos then :
   5084   1.81  christos 
   5085  1.108  christos else case e in #(
   5086  1.108  christos   e)
   5087   1.84  christos 		ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
   5088  1.108  christos if test "x$ac_cv_type_uint16_t" = xyes
   5089  1.108  christos then :
   5090   1.81  christos 
   5091  1.108  christos printf "%s\n" "#define u_int16_t uint16_t" >>confdefs.h
   5092   1.81  christos 
   5093  1.108  christos else case e in #(
   5094  1.108  christos   e) as_fn_error $? "cannot find a suitable type for u_int16_t" "$LINENO" 5 ;;
   5095  1.108  christos esac
   5096   1.81  christos fi
   5097   1.84  christos 
   5098  1.108  christos 	 ;;
   5099  1.108  christos esac
   5100   1.81  christos fi
   5101   1.81  christos 
   5102  1.107      hans 	ac_fn_c_check_type "$LINENO" "__uint16_t" "ac_cv_type___uint16_t" "$ac_includes_default"
   5103  1.108  christos if test "x$ac_cv_type___uint16_t" = xyes
   5104  1.108  christos then :
   5105  1.107      hans 
   5106  1.108  christos else case e in #(
   5107  1.108  christos   e)
   5108  1.107      hans 		ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
   5109  1.108  christos if test "x$ac_cv_type_uint16_t" = xyes
   5110  1.108  christos then :
   5111  1.107      hans 
   5112  1.108  christos printf "%s\n" "#define __uint16_t uint16_t" >>confdefs.h
   5113  1.107      hans 
   5114  1.108  christos else case e in #(
   5115  1.108  christos   e) ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
   5116  1.108  christos if test "x$ac_cv_type_u_int16_t" = xyes
   5117  1.108  christos then :
   5118  1.107      hans 
   5119  1.108  christos printf "%s\n" "#define uint16_t u_int16_t" >>confdefs.h
   5120  1.107      hans 
   5121  1.108  christos else case e in #(
   5122  1.108  christos   e) as_fn_error $? "cannot find a suitable type for __uint16_t" "$LINENO" 5 ;;
   5123  1.108  christos esac
   5124  1.107      hans fi
   5125  1.108  christos  ;;
   5126  1.108  christos esac
   5127  1.107      hans fi
   5128  1.107      hans 
   5129  1.108  christos 	 ;;
   5130  1.108  christos esac
   5131  1.107      hans fi
   5132  1.107      hans 
   5133  1.107      hans 	ac_fn_c_check_type "$LINENO" "__int16_t" "ac_cv_type___int16_t" "$ac_includes_default"
   5134  1.108  christos if test "x$ac_cv_type___int16_t" = xyes
   5135  1.108  christos then :
   5136  1.107      hans 
   5137  1.108  christos else case e in #(
   5138  1.108  christos   e)
   5139  1.107      hans 		ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
   5140  1.108  christos if test "x$ac_cv_type_int16_t" = xyes
   5141  1.108  christos then :
   5142  1.107      hans 
   5143  1.108  christos printf "%s\n" "#define __int16_t int16_t" >>confdefs.h
   5144  1.107      hans 
   5145  1.108  christos else case e in #(
   5146  1.108  christos   e) as_fn_error $? "cannot find a suitable type for __int16_t" "$LINENO" 5 ;;
   5147  1.108  christos esac
   5148  1.107      hans fi
   5149  1.107      hans 
   5150  1.108  christos 	 ;;
   5151  1.108  christos esac
   5152  1.107      hans fi
   5153  1.107      hans 
   5154   1.81  christos 
   5155   1.84  christos 	ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
   5156  1.108  christos if test "x$ac_cv_type_uint32_t" = xyes
   5157  1.108  christos then :
   5158   1.53    dogcow 
   5159  1.108  christos else case e in #(
   5160  1.108  christos   e)
   5161   1.84  christos 		ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
   5162  1.108  christos if test "x$ac_cv_type_u_int32_t" = xyes
   5163  1.108  christos then :
   5164   1.84  christos 
   5165  1.108  christos printf "%s\n" "#define uint32_t u_int32_t" >>confdefs.h
   5166   1.65  christos 
   5167  1.108  christos else case e in #(
   5168  1.108  christos   e) as_fn_error $? "cannot find a suitable type for uint32_t" "$LINENO" 5 ;;
   5169  1.108  christos esac
   5170   1.40    atatat fi
   5171   1.84  christos 
   5172  1.108  christos 	 ;;
   5173  1.108  christos esac
   5174   1.74  christos fi
   5175   1.61  christos 
   5176   1.84  christos 	ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
   5177  1.108  christos if test "x$ac_cv_type_u_int32_t" = xyes
   5178  1.108  christos then :
   5179    1.7        tv 
   5180  1.108  christos else case e in #(
   5181  1.108  christos   e)
   5182   1.84  christos 		ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
   5183  1.108  christos if test "x$ac_cv_type_uint32_t" = xyes
   5184  1.108  christos then :
   5185   1.60       apb 
   5186  1.108  christos printf "%s\n" "#define u_int32_t uint32_t" >>confdefs.h
   5187   1.63       apb 
   5188  1.108  christos else case e in #(
   5189  1.108  christos   e) as_fn_error $? "cannot find a suitable type for u_int32_t" "$LINENO" 5 ;;
   5190  1.108  christos esac
   5191    1.7        tv fi
   5192   1.84  christos 
   5193  1.108  christos 	 ;;
   5194  1.108  christos esac
   5195    1.7        tv fi
   5196    1.7        tv 
   5197  1.107      hans 	ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
   5198  1.108  christos if test "x$ac_cv_type___uint32_t" = xyes
   5199  1.108  christos then :
   5200  1.107      hans 
   5201  1.108  christos else case e in #(
   5202  1.108  christos   e)
   5203  1.107      hans 		ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
   5204  1.108  christos if test "x$ac_cv_type_uint32_t" = xyes
   5205  1.108  christos then :
   5206  1.107      hans 
   5207  1.108  christos printf "%s\n" "#define __uint32_t uint32_t" >>confdefs.h
   5208  1.107      hans 
   5209  1.108  christos else case e in #(
   5210  1.108  christos   e) ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
   5211  1.108  christos if test "x$ac_cv_type_u_int32_t" = xyes
   5212  1.108  christos then :
   5213  1.107      hans 
   5214  1.108  christos printf "%s\n" "#define uint32_t u_int32_t" >>confdefs.h
   5215  1.107      hans 
   5216  1.108  christos else case e in #(
   5217  1.108  christos   e) as_fn_error $? "cannot find a suitable type for __uint32_t" "$LINENO" 5 ;;
   5218  1.108  christos esac
   5219  1.107      hans fi
   5220  1.108  christos  ;;
   5221  1.108  christos esac
   5222  1.107      hans fi
   5223  1.107      hans 
   5224  1.108  christos 	 ;;
   5225  1.108  christos esac
   5226  1.107      hans fi
   5227  1.107      hans 
   5228  1.107      hans 	ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
   5229  1.108  christos if test "x$ac_cv_type___int32_t" = xyes
   5230  1.108  christos then :
   5231  1.107      hans 
   5232  1.108  christos else case e in #(
   5233  1.108  christos   e)
   5234  1.107      hans 		ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
   5235  1.108  christos if test "x$ac_cv_type_int32_t" = xyes
   5236  1.108  christos then :
   5237  1.107      hans 
   5238  1.108  christos printf "%s\n" "#define __int32_t int32_t" >>confdefs.h
   5239  1.107      hans 
   5240  1.108  christos else case e in #(
   5241  1.108  christos   e) as_fn_error $? "cannot find a suitable type for __int32_t" "$LINENO" 5 ;;
   5242  1.108  christos esac
   5243  1.107      hans fi
   5244  1.107      hans 
   5245  1.108  christos 	 ;;
   5246  1.108  christos esac
   5247  1.107      hans fi
   5248  1.107      hans 
   5249   1.84  christos 
   5250   1.84  christos 	ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
   5251  1.108  christos if test "x$ac_cv_type_uint64_t" = xyes
   5252  1.108  christos then :
   5253   1.63       apb 
   5254  1.108  christos else case e in #(
   5255  1.108  christos   e)
   5256   1.84  christos 		ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
   5257  1.108  christos if test "x$ac_cv_type_u_int64_t" = xyes
   5258  1.108  christos then :
   5259   1.65  christos 
   5260  1.108  christos printf "%s\n" "#define uint64_t u_int64_t" >>confdefs.h
   5261   1.63       apb 
   5262  1.108  christos else case e in #(
   5263  1.108  christos   e) as_fn_error $? "cannot find a suitable type for uint64_t" "$LINENO" 5 ;;
   5264  1.108  christos esac
   5265   1.53    dogcow fi
   5266   1.84  christos 
   5267  1.108  christos 	 ;;
   5268  1.108  christos esac
   5269   1.61  christos fi
   5270   1.65  christos 
   5271   1.84  christos 	ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
   5272  1.108  christos if test "x$ac_cv_type_u_int64_t" = xyes
   5273  1.108  christos then :
   5274   1.53    dogcow 
   5275  1.108  christos else case e in #(
   5276  1.108  christos   e)
   5277   1.84  christos 		ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
   5278  1.108  christos if test "x$ac_cv_type_uint64_t" = xyes
   5279  1.108  christos then :
   5280   1.65  christos 
   5281  1.108  christos printf "%s\n" "#define u_int64_t uint64_t" >>confdefs.h
   5282   1.53    dogcow 
   5283  1.108  christos else case e in #(
   5284  1.108  christos   e) as_fn_error $? "cannot find a suitable type for u_int64_t" "$LINENO" 5 ;;
   5285  1.108  christos esac
   5286    1.7        tv fi
   5287   1.84  christos 
   5288  1.108  christos 	 ;;
   5289  1.108  christos esac
   5290    1.7        tv fi
   5291   1.65  christos 
   5292  1.107      hans 	ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
   5293  1.108  christos if test "x$ac_cv_type___uint64_t" = xyes
   5294  1.108  christos then :
   5295  1.107      hans 
   5296  1.108  christos else case e in #(
   5297  1.108  christos   e)
   5298  1.107      hans 		ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
   5299  1.108  christos if test "x$ac_cv_type_uint64_t" = xyes
   5300  1.108  christos then :
   5301  1.107      hans 
   5302  1.108  christos printf "%s\n" "#define __uint64_t uint64_t" >>confdefs.h
   5303  1.107      hans 
   5304  1.108  christos else case e in #(
   5305  1.108  christos   e) ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
   5306  1.108  christos if test "x$ac_cv_type_u_int64_t" = xyes
   5307  1.108  christos then :
   5308  1.107      hans 
   5309  1.108  christos printf "%s\n" "#define uint64_t u_int64_t" >>confdefs.h
   5310  1.107      hans 
   5311  1.108  christos else case e in #(
   5312  1.108  christos   e) as_fn_error $? "cannot find a suitable type for __uint64_t" "$LINENO" 5 ;;
   5313  1.108  christos esac
   5314  1.107      hans fi
   5315  1.108  christos  ;;
   5316  1.108  christos esac
   5317  1.107      hans fi
   5318  1.107      hans 
   5319  1.108  christos 	 ;;
   5320  1.108  christos esac
   5321  1.107      hans fi
   5322  1.107      hans 
   5323  1.107      hans 	ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
   5324  1.108  christos if test "x$ac_cv_type___int64_t" = xyes
   5325  1.108  christos then :
   5326  1.107      hans 
   5327  1.108  christos else case e in #(
   5328  1.108  christos   e)
   5329  1.107      hans 		ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
   5330  1.108  christos if test "x$ac_cv_type_int64_t" = xyes
   5331  1.108  christos then :
   5332  1.107      hans 
   5333  1.108  christos printf "%s\n" "#define __int64_t int64_t" >>confdefs.h
   5334  1.107      hans 
   5335  1.108  christos else case e in #(
   5336  1.108  christos   e) as_fn_error $? "cannot find a suitable type for __int64_t" "$LINENO" 5 ;;
   5337  1.108  christos esac
   5338  1.107      hans fi
   5339  1.107      hans 
   5340  1.108  christos 	 ;;
   5341  1.108  christos esac
   5342  1.107      hans fi
   5343  1.107      hans 
   5344    1.7        tv 
   5345   1.84  christos 
   5346   1.84  christos # Struct members.
   5347   1.84  christos ac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" "#include <sys/types.h>
   5348   1.84  christos #include <dirent.h>
   5349   1.84  christos "
   5350  1.108  christos if test "x$ac_cv_member_DIR_dd_fd" = xyes
   5351  1.108  christos then :
   5352   1.84  christos 
   5353  1.108  christos printf "%s\n" "#define HAVE_DIR_DD_FD 1" >>confdefs.h
   5354   1.84  christos 
   5355   1.61  christos 
   5356   1.76     pooka fi
   5357   1.84  christos ac_fn_c_check_member "$LINENO" "DIR" "__dd_fd" "ac_cv_member_DIR___dd_fd" "#include <sys/types.h>
   5358   1.84  christos #include <dirent.h>
   5359   1.84  christos "
   5360  1.108  christos if test "x$ac_cv_member_DIR___dd_fd" = xyes
   5361  1.108  christos then :
   5362   1.84  christos 
   5363  1.108  christos printf "%s\n" "#define HAVE_DIR___DD_FD 1" >>confdefs.h
   5364   1.61  christos 
   5365    1.7        tv 
   5366    1.7        tv fi
   5367   1.84  christos ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#include <sys/types.h>
   5368   1.84  christos #include <dirent.h>
   5369   1.84  christos "
   5370  1.108  christos if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes
   5371  1.108  christos then :
   5372   1.61  christos 
   5373  1.108  christos printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
   5374    1.7        tv 
   5375    1.7        tv 
   5376   1.76     pooka fi
   5377    1.4        tv 
   5378   1.84  christos ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "#include <sys/stat.h>
   5379   1.84  christos "
   5380  1.108  christos if test "x$ac_cv_member_struct_stat_st_flags" = xyes
   5381  1.108  christos then :
   5382    1.4        tv 
   5383  1.108  christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h
   5384   1.84  christos 
   5385   1.84  christos 
   5386    1.4        tv fi
   5387   1.84  christos ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "#include <sys/stat.h>
   5388   1.84  christos "
   5389  1.108  christos if test "x$ac_cv_member_struct_stat_st_gen" = xyes
   5390  1.108  christos then :
   5391   1.84  christos 
   5392  1.108  christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_GEN 1" >>confdefs.h
   5393   1.84  christos 
   5394   1.84  christos 
   5395    1.4        tv fi
   5396   1.84  christos ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "#include <sys/stat.h>
   5397   1.84  christos "
   5398  1.108  christos if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes
   5399  1.108  christos then :
   5400   1.61  christos 
   5401  1.108  christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
   5402   1.74  christos 
   5403   1.74  christos 
   5404   1.76     pooka fi
   5405   1.84  christos ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/stat.h>
   5406   1.84  christos "
   5407  1.108  christos if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
   5408  1.108  christos then :
   5409   1.84  christos 
   5410  1.108  christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
   5411   1.84  christos 
   5412    1.4        tv 
   5413   1.84  christos fi
   5414   1.84  christos ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "#include <sys/stat.h>
   5415   1.84  christos "
   5416  1.108  christos if test "x$ac_cv_member_struct_stat_st_atim" = xyes
   5417  1.108  christos then :
   5418   1.63       apb 
   5419  1.108  christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
   5420   1.84  christos 
   5421   1.84  christos 
   5422   1.19     bjh21 fi
   5423   1.84  christos ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
   5424   1.84  christos "
   5425  1.108  christos if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes
   5426  1.108  christos then :
   5427   1.84  christos 
   5428  1.108  christos printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h
   5429   1.84  christos 
   5430   1.84  christos 
   5431   1.19     bjh21 fi
   5432   1.63       apb 
   5433   1.84  christos ac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "#include <sys/statvfs.h>
   5434   1.84  christos "
   5435  1.108  christos if test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes
   5436  1.108  christos then :
   5437   1.84  christos 
   5438  1.108  christos printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_IOSIZE 1" >>confdefs.h
   5439   1.19     bjh21 
   5440   1.19     bjh21 
   5441   1.76     pooka fi
   5442   1.63       apb 
   5443   1.84  christos ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
   5444   1.84  christos "
   5445  1.108  christos if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
   5446  1.108  christos then :
   5447   1.19     bjh21 
   5448  1.108  christos printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
   5449   1.84  christos 
   5450   1.84  christos 
   5451   1.19     bjh21 fi
   5452   1.76     pooka 
   5453   1.74  christos 
   5454   1.84  christos # Global variable decls.
   5455  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
   5456  1.108  christos printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
   5457  1.108  christos if test ${ac_cv_c_undeclared_builtin_options+y}
   5458  1.108  christos then :
   5459  1.108  christos   printf %s "(cached) " >&6
   5460  1.108  christos else case e in #(
   5461  1.108  christos   e) ac_save_CFLAGS=$CFLAGS
   5462  1.108  christos    ac_cv_c_undeclared_builtin_options='cannot detect'
   5463  1.108  christos    for ac_arg in '' -fno-builtin; do
   5464  1.108  christos      CFLAGS="$ac_save_CFLAGS $ac_arg"
   5465  1.108  christos      # This test program should *not* compile successfully.
   5466  1.108  christos      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5467  1.108  christos /* end confdefs.h.  */
   5468  1.108  christos 
   5469  1.108  christos int
   5470  1.108  christos main (void)
   5471  1.108  christos {
   5472  1.108  christos (void) strchr;
   5473  1.108  christos   ;
   5474  1.108  christos   return 0;
   5475  1.108  christos }
   5476  1.108  christos _ACEOF
   5477  1.108  christos if ac_fn_c_try_compile "$LINENO"
   5478  1.108  christos then :
   5479  1.108  christos 
   5480  1.108  christos else case e in #(
   5481  1.108  christos   e) # This test program should compile successfully.
   5482  1.108  christos         # No library function is consistently available on
   5483  1.108  christos         # freestanding implementations, so test against a dummy
   5484  1.108  christos         # declaration.  Include always-available headers on the
   5485  1.108  christos         # off chance that they somehow elicit warnings.
   5486  1.108  christos         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5487  1.108  christos /* end confdefs.h.  */
   5488  1.108  christos #include <float.h>
   5489  1.108  christos #include <limits.h>
   5490  1.108  christos #include <stdarg.h>
   5491  1.108  christos #include <stddef.h>
   5492  1.108  christos extern void ac_decl (int, char *);
   5493  1.108  christos 
   5494  1.108  christos int
   5495  1.108  christos main (void)
   5496  1.108  christos {
   5497  1.108  christos (void) ac_decl (0, (char *) 0);
   5498  1.108  christos   (void) ac_decl;
   5499  1.108  christos 
   5500  1.108  christos   ;
   5501  1.108  christos   return 0;
   5502  1.108  christos }
   5503  1.108  christos _ACEOF
   5504  1.108  christos if ac_fn_c_try_compile "$LINENO"
   5505  1.108  christos then :
   5506  1.108  christos   if test x"$ac_arg" = x
   5507  1.108  christos then :
   5508  1.108  christos   ac_cv_c_undeclared_builtin_options='none needed'
   5509  1.108  christos else case e in #(
   5510  1.108  christos   e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
   5511  1.108  christos esac
   5512  1.108  christos fi
   5513  1.108  christos           break
   5514  1.108  christos fi
   5515  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   5516  1.108  christos esac
   5517  1.108  christos fi
   5518  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5519  1.108  christos     done
   5520  1.108  christos     CFLAGS=$ac_save_CFLAGS
   5521  1.108  christos    ;;
   5522  1.108  christos esac
   5523  1.108  christos fi
   5524  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
   5525  1.108  christos printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
   5526  1.108  christos   case $ac_cv_c_undeclared_builtin_options in #(
   5527  1.108  christos   'cannot detect') :
   5528  1.108  christos     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
   5529  1.108  christos printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
   5530  1.108  christos as_fn_error $? "cannot make $CC report undeclared builtins
   5531  1.108  christos See 'config.log' for more details" "$LINENO" 5; } ;; #(
   5532  1.108  christos   'none needed') :
   5533  1.108  christos     ac_c_undeclared_builtin_options='' ;; #(
   5534  1.108  christos   *) :
   5535  1.108  christos     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
   5536  1.108  christos esac
   5537  1.108  christos 
   5538  1.108  christos ac_fn_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "
   5539   1.86  christos #include <stdio.h>
   5540   1.86  christos 
   5541  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5542  1.108  christos if test "x$ac_cv_have_decl_asprintf" = xyes
   5543  1.108  christos then :
   5544   1.86  christos   ac_have_decl=1
   5545  1.108  christos else case e in #(
   5546  1.108  christos   e) ac_have_decl=0 ;;
   5547  1.108  christos esac
   5548   1.86  christos fi
   5549  1.108  christos printf "%s\n" "#define HAVE_DECL_ASPRINTF $ac_have_decl" >>confdefs.h
   5550  1.108  christos ac_fn_check_decl "$LINENO" "asnprintf" "ac_cv_have_decl_asnprintf" "
   5551   1.88     sevan #include <stdio.h>
   5552   1.88     sevan 
   5553  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5554  1.108  christos if test "x$ac_cv_have_decl_asnprintf" = xyes
   5555  1.108  christos then :
   5556   1.88     sevan   ac_have_decl=1
   5557  1.108  christos else case e in #(
   5558  1.108  christos   e) ac_have_decl=0 ;;
   5559  1.108  christos esac
   5560   1.88     sevan fi
   5561  1.108  christos printf "%s\n" "#define HAVE_DECL_ASNPRINTF $ac_have_decl" >>confdefs.h
   5562  1.108  christos ac_fn_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "
   5563   1.86  christos #include <stdio.h>
   5564   1.86  christos 
   5565  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5566  1.108  christos if test "x$ac_cv_have_decl_vasprintf" = xyes
   5567  1.108  christos then :
   5568   1.86  christos   ac_have_decl=1
   5569  1.108  christos else case e in #(
   5570  1.108  christos   e) ac_have_decl=0 ;;
   5571  1.108  christos esac
   5572   1.86  christos fi
   5573  1.108  christos printf "%s\n" "#define HAVE_DECL_VASPRINTF $ac_have_decl" >>confdefs.h
   5574  1.108  christos ac_fn_check_decl "$LINENO" "vasnprintf" "ac_cv_have_decl_vasnprintf" "
   5575   1.86  christos #include <stdio.h>
   5576   1.86  christos 
   5577  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5578  1.108  christos if test "x$ac_cv_have_decl_vasnprintf" = xyes
   5579  1.108  christos then :
   5580   1.86  christos   ac_have_decl=1
   5581  1.108  christos else case e in #(
   5582  1.108  christos   e) ac_have_decl=0 ;;
   5583  1.108  christos esac
   5584   1.86  christos fi
   5585  1.108  christos printf "%s\n" "#define HAVE_DECL_VASNPRINTF $ac_have_decl" >>confdefs.h
   5586  1.108  christos ac_fn_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
   5587   1.86  christos #include <stdio.h>
   5588   1.86  christos 
   5589  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5590  1.108  christos if test "x$ac_cv_have_decl_vsnprintf" = xyes
   5591  1.108  christos then :
   5592   1.86  christos   ac_have_decl=1
   5593  1.108  christos else case e in #(
   5594  1.108  christos   e) ac_have_decl=0 ;;
   5595  1.108  christos esac
   5596   1.86  christos fi
   5597  1.108  christos printf "%s\n" "#define HAVE_DECL_VSNPRINTF $ac_have_decl" >>confdefs.h
   5598  1.108  christos ac_fn_check_decl "$LINENO" "fgetln" "ac_cv_have_decl_fgetln" "
   5599   1.86  christos #include <stdio.h>
   5600   1.86  christos 
   5601  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5602  1.108  christos if test "x$ac_cv_have_decl_fgetln" = xyes
   5603  1.108  christos then :
   5604   1.86  christos   ac_have_decl=1
   5605  1.108  christos else case e in #(
   5606  1.108  christos   e) ac_have_decl=0 ;;
   5607  1.108  christos esac
   5608   1.86  christos fi
   5609  1.108  christos printf "%s\n" "#define HAVE_DECL_FGETLN $ac_have_decl" >>confdefs.h
   5610  1.108  christos ac_fn_check_decl "$LINENO" "fparseln" "ac_cv_have_decl_fparseln" "
   5611   1.86  christos #include <stdio.h>
   5612   1.86  christos 
   5613  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5614  1.108  christos if test "x$ac_cv_have_decl_fparseln" = xyes
   5615  1.108  christos then :
   5616   1.86  christos   ac_have_decl=1
   5617  1.108  christos else case e in #(
   5618  1.108  christos   e) ac_have_decl=0 ;;
   5619  1.108  christos esac
   5620   1.86  christos fi
   5621  1.108  christos printf "%s\n" "#define HAVE_DECL_FPARSELN $ac_have_decl" >>confdefs.h
   5622  1.108  christos ac_fn_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "
   5623   1.87  christos #include <stdio.h>
   5624   1.87  christos 
   5625  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5626  1.108  christos if test "x$ac_cv_have_decl_fpurge" = xyes
   5627  1.108  christos then :
   5628   1.87  christos   ac_have_decl=1
   5629  1.108  christos else case e in #(
   5630  1.108  christos   e) ac_have_decl=0 ;;
   5631  1.108  christos esac
   5632   1.87  christos fi
   5633  1.108  christos printf "%s\n" "#define HAVE_DECL_FPURGE $ac_have_decl" >>confdefs.h
   5634  1.108  christos ac_fn_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "
   5635   1.87  christos #include <stdio.h>
   5636   1.87  christos 
   5637  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5638  1.108  christos if test "x$ac_cv_have_decl_getdelim" = xyes
   5639  1.108  christos then :
   5640   1.87  christos   ac_have_decl=1
   5641  1.108  christos else case e in #(
   5642  1.108  christos   e) ac_have_decl=0 ;;
   5643  1.108  christos esac
   5644   1.87  christos fi
   5645  1.108  christos printf "%s\n" "#define HAVE_DECL_GETDELIM $ac_have_decl" >>confdefs.h
   5646  1.108  christos ac_fn_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "
   5647   1.86  christos #include <stdio.h>
   5648   1.86  christos 
   5649  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5650  1.108  christos if test "x$ac_cv_have_decl_getline" = xyes
   5651  1.108  christos then :
   5652   1.86  christos   ac_have_decl=1
   5653  1.108  christos else case e in #(
   5654  1.108  christos   e) ac_have_decl=0 ;;
   5655  1.108  christos esac
   5656   1.86  christos fi
   5657  1.108  christos printf "%s\n" "#define HAVE_DECL_GETLINE $ac_have_decl" >>confdefs.h
   5658  1.108  christos ac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "
   5659   1.86  christos #include <stdio.h>
   5660   1.86  christos 
   5661  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5662  1.108  christos if test "x$ac_cv_have_decl_snprintf" = xyes
   5663  1.108  christos then :
   5664   1.86  christos   ac_have_decl=1
   5665  1.108  christos else case e in #(
   5666  1.108  christos   e) ac_have_decl=0 ;;
   5667  1.108  christos esac
   5668   1.86  christos fi
   5669  1.108  christos printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h
   5670  1.109  christos ac_fn_check_decl "$LINENO" "vsyslog" "ac_cv_have_decl_vsyslog" "
   5671  1.109  christos #include <stdio.h>
   5672  1.109  christos 
   5673  1.109  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5674  1.109  christos if test "x$ac_cv_have_decl_vsyslog" = xyes
   5675  1.109  christos then :
   5676  1.109  christos   ac_have_decl=1
   5677  1.109  christos else case e in #(
   5678  1.109  christos   e) ac_have_decl=0 ;;
   5679  1.109  christos esac
   5680  1.109  christos fi
   5681  1.109  christos printf "%s\n" "#define HAVE_DECL_VSYSLOG $ac_have_decl" >>confdefs.h
   5682   1.86  christos 
   5683   1.86  christos 
   5684  1.108  christos ac_fn_check_decl "$LINENO" "atoll" "ac_cv_have_decl_atoll" "
   5685  1.108  christos #include <stdlib.h>
   5686   1.86  christos 
   5687  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5688  1.108  christos if test "x$ac_cv_have_decl_atoll" = xyes
   5689  1.108  christos then :
   5690  1.108  christos   ac_have_decl=1
   5691  1.108  christos else case e in #(
   5692  1.108  christos   e) ac_have_decl=0 ;;
   5693  1.108  christos esac
   5694  1.108  christos fi
   5695  1.108  christos printf "%s\n" "#define HAVE_DECL_ATOLL $ac_have_decl" >>confdefs.h
   5696  1.108  christos ac_fn_check_decl "$LINENO" "getsubopt" "ac_cv_have_decl_getsubopt" "
   5697   1.86  christos #include <stdlib.h>
   5698   1.86  christos 
   5699  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5700  1.108  christos if test "x$ac_cv_have_decl_getsubopt" = xyes
   5701  1.108  christos then :
   5702   1.86  christos   ac_have_decl=1
   5703  1.108  christos else case e in #(
   5704  1.108  christos   e) ac_have_decl=0 ;;
   5705  1.108  christos esac
   5706   1.86  christos fi
   5707  1.108  christos printf "%s\n" "#define HAVE_DECL_GETSUBOPT $ac_have_decl" >>confdefs.h
   5708  1.108  christos ac_fn_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "
   5709  1.108  christos #include <stdlib.h>
   5710   1.86  christos 
   5711  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5712  1.108  christos if test "x$ac_cv_have_decl_getprogname" = xyes
   5713  1.108  christos then :
   5714  1.108  christos   ac_have_decl=1
   5715  1.108  christos else case e in #(
   5716  1.108  christos   e) ac_have_decl=0 ;;
   5717  1.108  christos esac
   5718  1.108  christos fi
   5719  1.108  christos printf "%s\n" "#define HAVE_DECL_GETPROGNAME $ac_have_decl" >>confdefs.h
   5720  1.108  christos ac_fn_check_decl "$LINENO" "heapsort" "ac_cv_have_decl_heapsort" "
   5721   1.86  christos #include <stdlib.h>
   5722   1.86  christos 
   5723  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5724  1.108  christos if test "x$ac_cv_have_decl_heapsort" = xyes
   5725  1.108  christos then :
   5726   1.86  christos   ac_have_decl=1
   5727  1.108  christos else case e in #(
   5728  1.108  christos   e) ac_have_decl=0 ;;
   5729  1.108  christos esac
   5730   1.86  christos fi
   5731  1.108  christos printf "%s\n" "#define HAVE_DECL_HEAPSORT $ac_have_decl" >>confdefs.h
   5732  1.108  christos ac_fn_check_decl "$LINENO" "mkdtemp" "ac_cv_have_decl_mkdtemp" "
   5733   1.86  christos #include <stdlib.h>
   5734   1.86  christos 
   5735  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5736  1.108  christos if test "x$ac_cv_have_decl_mkdtemp" = xyes
   5737  1.108  christos then :
   5738   1.86  christos   ac_have_decl=1
   5739  1.108  christos else case e in #(
   5740  1.108  christos   e) ac_have_decl=0 ;;
   5741  1.108  christos esac
   5742   1.86  christos fi
   5743  1.108  christos printf "%s\n" "#define HAVE_DECL_MKDTEMP $ac_have_decl" >>confdefs.h
   5744  1.108  christos ac_fn_check_decl "$LINENO" "mkstemp" "ac_cv_have_decl_mkstemp" "
   5745   1.86  christos #include <stdlib.h>
   5746   1.86  christos 
   5747  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5748  1.108  christos if test "x$ac_cv_have_decl_mkstemp" = xyes
   5749  1.108  christos then :
   5750   1.86  christos   ac_have_decl=1
   5751  1.108  christos else case e in #(
   5752  1.108  christos   e) ac_have_decl=0 ;;
   5753  1.108  christos esac
   5754   1.86  christos fi
   5755  1.108  christos printf "%s\n" "#define HAVE_DECL_MKSTEMP $ac_have_decl" >>confdefs.h
   5756  1.108  christos ac_fn_check_decl "$LINENO" "mkstemps" "ac_cv_have_decl_mkstemps" "
   5757   1.86  christos #include <stdlib.h>
   5758   1.86  christos 
   5759  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5760  1.108  christos if test "x$ac_cv_have_decl_mkstemps" = xyes
   5761  1.108  christos then :
   5762   1.86  christos   ac_have_decl=1
   5763  1.108  christos else case e in #(
   5764  1.108  christos   e) ac_have_decl=0 ;;
   5765  1.108  christos esac
   5766   1.86  christos fi
   5767  1.108  christos printf "%s\n" "#define HAVE_DECL_MKSTEMPS $ac_have_decl" >>confdefs.h
   5768  1.108  christos ac_fn_check_decl "$LINENO" "reallocarr" "ac_cv_have_decl_reallocarr" "
   5769   1.99  christos #include <stdlib.h>
   5770   1.99  christos 
   5771  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5772  1.108  christos if test "x$ac_cv_have_decl_reallocarr" = xyes
   5773  1.108  christos then :
   5774   1.99  christos   ac_have_decl=1
   5775  1.108  christos else case e in #(
   5776  1.108  christos   e) ac_have_decl=0 ;;
   5777  1.108  christos esac
   5778   1.99  christos fi
   5779  1.108  christos printf "%s\n" "#define HAVE_DECL_REALLOCARR $ac_have_decl" >>confdefs.h
   5780  1.108  christos ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "
   5781   1.93  christos #include <stdlib.h>
   5782   1.93  christos 
   5783  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5784  1.108  christos if test "x$ac_cv_have_decl_reallocarray" = xyes
   5785  1.108  christos then :
   5786   1.93  christos   ac_have_decl=1
   5787  1.108  christos else case e in #(
   5788  1.108  christos   e) ac_have_decl=0 ;;
   5789  1.108  christos esac
   5790   1.93  christos fi
   5791  1.108  christos printf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h
   5792  1.108  christos ac_fn_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "
   5793   1.86  christos #include <stdlib.h>
   5794   1.86  christos 
   5795  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5796  1.108  christos if test "x$ac_cv_have_decl_setenv" = xyes
   5797  1.108  christos then :
   5798   1.86  christos   ac_have_decl=1
   5799  1.108  christos else case e in #(
   5800  1.108  christos   e) ac_have_decl=0 ;;
   5801  1.108  christos esac
   5802   1.86  christos fi
   5803  1.108  christos printf "%s\n" "#define HAVE_DECL_SETENV $ac_have_decl" >>confdefs.h
   5804  1.108  christos ac_fn_check_decl "$LINENO" "strtonum" "ac_cv_have_decl_strtonum" "
   5805   1.86  christos #include <stdlib.h>
   5806   1.86  christos 
   5807  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5808  1.108  christos if test "x$ac_cv_have_decl_strtonum" = xyes
   5809  1.108  christos then :
   5810   1.86  christos   ac_have_decl=1
   5811  1.108  christos else case e in #(
   5812  1.108  christos   e) ac_have_decl=0 ;;
   5813  1.108  christos esac
   5814   1.86  christos fi
   5815  1.108  christos printf "%s\n" "#define HAVE_DECL_STRTONUM $ac_have_decl" >>confdefs.h
   5816  1.108  christos ac_fn_check_decl "$LINENO" "strtoi" "ac_cv_have_decl_strtoi" "
   5817   1.86  christos #include <stdlib.h>
   5818   1.86  christos 
   5819  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5820  1.108  christos if test "x$ac_cv_have_decl_strtoi" = xyes
   5821  1.108  christos then :
   5822   1.86  christos   ac_have_decl=1
   5823  1.108  christos else case e in #(
   5824  1.108  christos   e) ac_have_decl=0 ;;
   5825  1.108  christos esac
   5826   1.86  christos fi
   5827  1.108  christos printf "%s\n" "#define HAVE_DECL_STRTOI $ac_have_decl" >>confdefs.h
   5828  1.108  christos ac_fn_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "
   5829   1.86  christos #include <stdlib.h>
   5830   1.86  christos 
   5831  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5832  1.108  christos if test "x$ac_cv_have_decl_strtoll" = xyes
   5833  1.108  christos then :
   5834   1.86  christos   ac_have_decl=1
   5835  1.108  christos else case e in #(
   5836  1.108  christos   e) ac_have_decl=0 ;;
   5837  1.108  christos esac
   5838   1.86  christos fi
   5839  1.108  christos printf "%s\n" "#define HAVE_DECL_STRTOLL $ac_have_decl" >>confdefs.h
   5840  1.108  christos ac_fn_check_decl "$LINENO" "strtou" "ac_cv_have_decl_strtou" "
   5841   1.86  christos #include <stdlib.h>
   5842   1.86  christos 
   5843  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5844  1.108  christos if test "x$ac_cv_have_decl_strtou" = xyes
   5845  1.108  christos then :
   5846   1.86  christos   ac_have_decl=1
   5847  1.108  christos else case e in #(
   5848  1.108  christos   e) ac_have_decl=0 ;;
   5849  1.108  christos esac
   5850   1.86  christos fi
   5851  1.108  christos printf "%s\n" "#define HAVE_DECL_STRTOU $ac_have_decl" >>confdefs.h
   5852  1.108  christos ac_fn_check_decl "$LINENO" "setprogname" "ac_cv_have_decl_setprogname" "
   5853  1.106       kre #include <stdlib.h>
   5854  1.106       kre 
   5855  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5856  1.108  christos if test "x$ac_cv_have_decl_setprogname" = xyes
   5857  1.108  christos then :
   5858  1.106       kre   ac_have_decl=1
   5859  1.108  christos else case e in #(
   5860  1.108  christos   e) ac_have_decl=0 ;;
   5861  1.108  christos esac
   5862  1.106       kre fi
   5863  1.108  christos printf "%s\n" "#define HAVE_DECL_SETPROGNAME $ac_have_decl" >>confdefs.h
   5864  1.108  christos ac_fn_check_decl "$LINENO" "shquote" "ac_cv_have_decl_shquote" "
   5865   1.86  christos #include <stdlib.h>
   5866   1.86  christos 
   5867  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5868  1.108  christos if test "x$ac_cv_have_decl_shquote" = xyes
   5869  1.108  christos then :
   5870   1.86  christos   ac_have_decl=1
   5871  1.108  christos else case e in #(
   5872  1.108  christos   e) ac_have_decl=0 ;;
   5873  1.108  christos esac
   5874   1.86  christos fi
   5875  1.108  christos printf "%s\n" "#define HAVE_DECL_SHQUOTE $ac_have_decl" >>confdefs.h
   5876   1.86  christos 
   5877   1.86  christos 
   5878  1.108  christos ac_fn_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "
   5879   1.86  christos #include <libgen.h>
   5880   1.86  christos 
   5881  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5882  1.108  christos if test "x$ac_cv_have_decl_basename" = xyes
   5883  1.108  christos then :
   5884   1.86  christos   ac_have_decl=1
   5885  1.108  christos else case e in #(
   5886  1.108  christos   e) ac_have_decl=0 ;;
   5887  1.108  christos esac
   5888   1.86  christos fi
   5889  1.108  christos printf "%s\n" "#define HAVE_DECL_BASENAME $ac_have_decl" >>confdefs.h
   5890  1.108  christos ac_fn_check_decl "$LINENO" "dirname" "ac_cv_have_decl_dirname" "
   5891   1.86  christos #include <libgen.h>
   5892   1.86  christos 
   5893  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5894  1.108  christos if test "x$ac_cv_have_decl_dirname" = xyes
   5895  1.108  christos then :
   5896   1.86  christos   ac_have_decl=1
   5897  1.108  christos else case e in #(
   5898  1.108  christos   e) ac_have_decl=0 ;;
   5899  1.108  christos esac
   5900   1.86  christos fi
   5901  1.108  christos printf "%s\n" "#define HAVE_DECL_DIRNAME $ac_have_decl" >>confdefs.h
   5902   1.86  christos 
   5903   1.86  christos 
   5904  1.108  christos ac_fn_check_decl "$LINENO" "raise_default_signal" "ac_cv_have_decl_raise_default_signal" "
   5905   1.86  christos #include <util.h>
   5906   1.86  christos 
   5907  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5908  1.108  christos if test "x$ac_cv_have_decl_raise_default_signal" = xyes
   5909  1.108  christos then :
   5910   1.86  christos   ac_have_decl=1
   5911  1.108  christos else case e in #(
   5912  1.108  christos   e) ac_have_decl=0 ;;
   5913  1.108  christos esac
   5914   1.86  christos fi
   5915  1.108  christos printf "%s\n" "#define HAVE_DECL_RAISE_DEFAULT_SIGNAL $ac_have_decl" >>confdefs.h
   5916   1.86  christos 
   5917   1.86  christos 
   5918  1.108  christos ac_fn_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "
   5919   1.86  christos #include <unistd.h>
   5920   1.86  christos 
   5921  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5922  1.108  christos if test "x$ac_cv_have_decl_issetugid" = xyes
   5923  1.108  christos then :
   5924   1.86  christos   ac_have_decl=1
   5925  1.108  christos else case e in #(
   5926  1.108  christos   e) ac_have_decl=0 ;;
   5927  1.108  christos esac
   5928   1.86  christos fi
   5929  1.108  christos printf "%s\n" "#define HAVE_DECL_ISSETUGID $ac_have_decl" >>confdefs.h
   5930  1.108  christos ac_fn_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
   5931   1.86  christos #include <unistd.h>
   5932   1.86  christos 
   5933  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5934  1.108  christos if test "x$ac_cv_have_decl_pread" = xyes
   5935  1.108  christos then :
   5936   1.86  christos   ac_have_decl=1
   5937  1.108  christos else case e in #(
   5938  1.108  christos   e) ac_have_decl=0 ;;
   5939  1.108  christos esac
   5940   1.86  christos fi
   5941  1.108  christos printf "%s\n" "#define HAVE_DECL_PREAD $ac_have_decl" >>confdefs.h
   5942  1.108  christos ac_fn_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
   5943   1.86  christos #include <unistd.h>
   5944   1.86  christos 
   5945  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5946  1.108  christos if test "x$ac_cv_have_decl_pwrite" = xyes
   5947  1.108  christos then :
   5948   1.86  christos   ac_have_decl=1
   5949  1.108  christos else case e in #(
   5950  1.108  christos   e) ac_have_decl=0 ;;
   5951  1.108  christos esac
   5952   1.86  christos fi
   5953  1.108  christos printf "%s\n" "#define HAVE_DECL_PWRITE $ac_have_decl" >>confdefs.h
   5954   1.86  christos 
   5955   1.86  christos 
   5956  1.108  christos ac_fn_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "
   5957   1.86  christos #include <unistd.h>
   5958   1.86  christos #include <string.h>
   5959   1.86  christos 
   5960  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5961  1.108  christos if test "x$ac_cv_have_decl_strmode" = xyes
   5962  1.108  christos then :
   5963   1.86  christos   ac_have_decl=1
   5964  1.108  christos else case e in #(
   5965  1.108  christos   e) ac_have_decl=0 ;;
   5966  1.108  christos esac
   5967   1.86  christos fi
   5968  1.108  christos printf "%s\n" "#define HAVE_DECL_STRMODE $ac_have_decl" >>confdefs.h
   5969   1.86  christos 
   5970   1.86  christos 
   5971  1.108  christos ac_fn_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "
   5972   1.86  christos #include <ctype.h>
   5973   1.86  christos 
   5974  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5975  1.108  christos if test "x$ac_cv_have_decl_isblank" = xyes
   5976  1.108  christos then :
   5977   1.86  christos   ac_have_decl=1
   5978  1.108  christos else case e in #(
   5979  1.108  christos   e) ac_have_decl=0 ;;
   5980  1.108  christos esac
   5981   1.86  christos fi
   5982  1.108  christos printf "%s\n" "#define HAVE_DECL_ISBLANK $ac_have_decl" >>confdefs.h
   5983   1.86  christos 
   5984   1.86  christos 
   5985   1.86  christos 
   5986  1.108  christos ac_fn_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "
   5987   1.84  christos #include <stdio.h>
   5988   1.84  christos #include <stdlib.h>
   5989   1.84  christos #include <unistd.h>
   5990   1.84  christos #ifdef HAVE_GETOPT_H
   5991   1.84  christos #include <getopt.h>
   5992   1.84  christos #endif
   5993   1.84  christos 
   5994  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   5995  1.108  christos if test "x$ac_cv_have_decl_optind" = xyes
   5996  1.108  christos then :
   5997   1.84  christos   ac_have_decl=1
   5998  1.108  christos else case e in #(
   5999  1.108  christos   e) ac_have_decl=0 ;;
   6000  1.108  christos esac
   6001   1.19     bjh21 fi
   6002  1.108  christos printf "%s\n" "#define HAVE_DECL_OPTIND $ac_have_decl" >>confdefs.h
   6003  1.108  christos ac_fn_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "
   6004   1.84  christos #include <stdio.h>
   6005   1.84  christos #include <stdlib.h>
   6006   1.84  christos #include <unistd.h>
   6007   1.84  christos #ifdef HAVE_GETOPT_H
   6008   1.84  christos #include <getopt.h>
   6009   1.76     pooka #endif
   6010   1.19     bjh21 
   6011  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6012  1.108  christos if test "x$ac_cv_have_decl_optreset" = xyes
   6013  1.108  christos then :
   6014   1.84  christos   ac_have_decl=1
   6015  1.108  christos else case e in #(
   6016  1.108  christos   e) ac_have_decl=0 ;;
   6017  1.108  christos esac
   6018   1.84  christos fi
   6019  1.108  christos printf "%s\n" "#define HAVE_DECL_OPTRESET $ac_have_decl" >>confdefs.h
   6020   1.84  christos 
   6021  1.108  christos ac_fn_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "#include <signal.h>
   6022  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6023  1.108  christos if test "x$ac_cv_have_decl_sys_signame" = xyes
   6024  1.108  christos then :
   6025   1.84  christos   ac_have_decl=1
   6026  1.108  christos else case e in #(
   6027  1.108  christos   e) ac_have_decl=0 ;;
   6028  1.108  christos esac
   6029   1.63       apb fi
   6030  1.108  christos printf "%s\n" "#define HAVE_DECL_SYS_SIGNAME $ac_have_decl" >>confdefs.h
   6031   1.63       apb 
   6032   1.61  christos 
   6033   1.84  christos # Library functions (where a .h check isn't enough).
   6034   1.84  christos # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   6035   1.84  christos # for constant arguments.  Useless!
   6036  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
   6037  1.108  christos printf %s "checking for working alloca.h... " >&6; }
   6038  1.108  christos if test ${ac_cv_working_alloca_h+y}
   6039  1.108  christos then :
   6040  1.108  christos   printf %s "(cached) " >&6
   6041  1.108  christos else case e in #(
   6042  1.108  christos   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6043   1.84  christos /* end confdefs.h.  */
   6044   1.84  christos #include <alloca.h>
   6045   1.76     pooka int
   6046  1.108  christos main (void)
   6047   1.76     pooka {
   6048   1.84  christos char *p = (char *) alloca (2 * sizeof (int));
   6049   1.84  christos 			  if (p) return 0;
   6050   1.76     pooka   ;
   6051   1.76     pooka   return 0;
   6052   1.76     pooka }
   6053   1.19     bjh21 _ACEOF
   6054  1.108  christos if ac_fn_c_try_link "$LINENO"
   6055  1.108  christos then :
   6056   1.84  christos   ac_cv_working_alloca_h=yes
   6057  1.108  christos else case e in #(
   6058  1.108  christos   e) ac_cv_working_alloca_h=no ;;
   6059  1.108  christos esac
   6060   1.76     pooka fi
   6061  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6062  1.108  christos     conftest$ac_exeext conftest.$ac_ext ;;
   6063  1.108  christos esac
   6064   1.19     bjh21 fi
   6065  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
   6066  1.108  christos printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
   6067   1.84  christos if test $ac_cv_working_alloca_h = yes; then
   6068   1.63       apb 
   6069  1.108  christos printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
   6070   1.63       apb 
   6071   1.84  christos fi
   6072   1.19     bjh21 
   6073  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
   6074  1.108  christos printf %s "checking for alloca... " >&6; }
   6075  1.108  christos if test ${ac_cv_func_alloca_works+y}
   6076  1.108  christos then :
   6077  1.108  christos   printf %s "(cached) " >&6
   6078  1.108  christos else case e in #(
   6079  1.108  christos   e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
   6080  1.108  christos if test "$ac_cv_func_alloca_works" != yes
   6081  1.108  christos then :
   6082   1.84  christos   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6083   1.84  christos /* end confdefs.h.  */
   6084  1.108  christos #include <stdlib.h>
   6085  1.108  christos #include <stddef.h>
   6086  1.108  christos #ifndef alloca
   6087  1.108  christos # ifdef __GNUC__
   6088  1.108  christos #  define alloca __builtin_alloca
   6089  1.108  christos # elif defined _MSC_VER
   6090   1.84  christos #  include <malloc.h>
   6091   1.84  christos #  define alloca _alloca
   6092   1.84  christos # else
   6093  1.108  christos #  ifdef  __cplusplus
   6094  1.108  christos extern "C"
   6095  1.108  christos #  endif
   6096   1.84  christos void *alloca (size_t);
   6097   1.84  christos # endif
   6098   1.84  christos #endif
   6099   1.76     pooka 
   6100   1.76     pooka int
   6101  1.108  christos main (void)
   6102   1.76     pooka {
   6103   1.84  christos char *p = (char *) alloca (1);
   6104   1.84  christos 				    if (p) return 0;
   6105   1.76     pooka   ;
   6106   1.76     pooka   return 0;
   6107   1.76     pooka }
   6108   1.74  christos _ACEOF
   6109  1.108  christos if ac_fn_c_try_link "$LINENO"
   6110  1.108  christos then :
   6111   1.84  christos   ac_cv_func_alloca_works=yes
   6112   1.76     pooka fi
   6113  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6114   1.84  christos     conftest$ac_exeext conftest.$ac_ext
   6115  1.108  christos fi ;;
   6116  1.108  christos esac
   6117   1.19     bjh21 fi
   6118  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
   6119  1.108  christos printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
   6120   1.19     bjh21 
   6121   1.84  christos if test $ac_cv_func_alloca_works = yes; then
   6122   1.84  christos 
   6123  1.108  christos printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
   6124   1.19     bjh21 
   6125   1.76     pooka else
   6126   1.84  christos   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   6127   1.84  christos # that cause trouble.  Some versions do not even contain alloca or
   6128   1.84  christos # contain a buggy version.  If you still want to use their alloca,
   6129   1.84  christos # use ar to extract alloca.o from them instead of compiling alloca.c.
   6130   1.84  christos 
   6131   1.84  christos ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
   6132   1.84  christos 
   6133  1.108  christos printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
   6134   1.19     bjh21 
   6135   1.84  christos 
   6136  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
   6137  1.108  christos printf %s "checking stack direction for C alloca... " >&6; }
   6138  1.108  christos if test ${ac_cv_c_stack_direction+y}
   6139  1.108  christos then :
   6140  1.108  christos   printf %s "(cached) " >&6
   6141  1.108  christos else case e in #(
   6142  1.108  christos   e) if test "$cross_compiling" = yes
   6143  1.108  christos then :
   6144   1.84  christos   ac_cv_c_stack_direction=0
   6145  1.108  christos else case e in #(
   6146  1.108  christos   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6147   1.84  christos /* end confdefs.h.  */
   6148   1.84  christos $ac_includes_default
   6149   1.84  christos int
   6150   1.84  christos find_stack_direction (int *addr, int depth)
   6151   1.84  christos {
   6152   1.84  christos   int dir, dummy = 0;
   6153   1.84  christos   if (! addr)
   6154   1.84  christos     addr = &dummy;
   6155   1.84  christos   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
   6156   1.84  christos   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
   6157   1.84  christos   return dir + dummy;
   6158   1.84  christos }
   6159   1.61  christos 
   6160   1.76     pooka int
   6161   1.84  christos main (int argc, char **argv)
   6162   1.76     pooka {
   6163   1.84  christos   return find_stack_direction (0, argc + !argv + 20) < 0;
   6164   1.76     pooka }
   6165   1.76     pooka _ACEOF
   6166  1.108  christos if ac_fn_c_try_run "$LINENO"
   6167  1.108  christos then :
   6168   1.84  christos   ac_cv_c_stack_direction=1
   6169  1.108  christos else case e in #(
   6170  1.108  christos   e) ac_cv_c_stack_direction=-1 ;;
   6171  1.108  christos esac
   6172   1.76     pooka fi
   6173   1.84  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6174  1.108  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   6175  1.108  christos esac
   6176  1.108  christos fi
   6177  1.108  christos  ;;
   6178  1.108  christos esac
   6179  1.108  christos fi
   6180  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
   6181  1.108  christos printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
   6182  1.108  christos printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
   6183  1.108  christos 
   6184  1.108  christos 
   6185  1.108  christos fi
   6186  1.108  christos 
   6187  1.108  christos ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
   6188  1.108  christos if test "x$ac_cv_func_atoll" = xyes
   6189  1.108  christos then :
   6190  1.108  christos   printf "%s\n" "#define HAVE_ATOLL 1" >>confdefs.h
   6191  1.108  christos 
   6192  1.108  christos fi
   6193  1.108  christos ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
   6194  1.108  christos if test "x$ac_cv_func_asprintf" = xyes
   6195  1.108  christos then :
   6196  1.108  christos   printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
   6197  1.108  christos 
   6198  1.108  christos fi
   6199  1.108  christos ac_fn_c_check_func "$LINENO" "asnprintf" "ac_cv_func_asnprintf"
   6200  1.108  christos if test "x$ac_cv_func_asnprintf" = xyes
   6201  1.108  christos then :
   6202  1.108  christos   printf "%s\n" "#define HAVE_ASNPRINTF 1" >>confdefs.h
   6203  1.108  christos 
   6204  1.108  christos fi
   6205  1.108  christos ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
   6206  1.108  christos if test "x$ac_cv_func_basename" = xyes
   6207  1.108  christos then :
   6208  1.108  christos   printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
   6209  1.108  christos 
   6210  1.108  christos fi
   6211  1.108  christos ac_fn_c_check_func "$LINENO" "devname" "ac_cv_func_devname"
   6212  1.108  christos if test "x$ac_cv_func_devname" = xyes
   6213  1.108  christos then :
   6214  1.108  christos   printf "%s\n" "#define HAVE_DEVNAME 1" >>confdefs.h
   6215  1.108  christos 
   6216  1.108  christos fi
   6217  1.108  christos ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
   6218  1.108  christos if test "x$ac_cv_func_dirfd" = xyes
   6219  1.108  christos then :
   6220  1.108  christos   printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
   6221  1.108  christos 
   6222  1.108  christos fi
   6223  1.108  christos ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
   6224  1.108  christos if test "x$ac_cv_func_dirname" = xyes
   6225  1.108  christos then :
   6226  1.108  christos   printf "%s\n" "#define HAVE_DIRNAME 1" >>confdefs.h
   6227  1.108  christos 
   6228  1.108  christos fi
   6229  1.108  christos ac_fn_c_check_func "$LINENO" "dispatch_semaphore_create" "ac_cv_func_dispatch_semaphore_create"
   6230  1.108  christos if test "x$ac_cv_func_dispatch_semaphore_create" = xyes
   6231  1.108  christos then :
   6232  1.108  christos   printf "%s\n" "#define HAVE_DISPATCH_SEMAPHORE_CREATE 1" >>confdefs.h
   6233  1.108  christos 
   6234  1.108  christos fi
   6235  1.108  christos ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
   6236  1.108  christos if test "x$ac_cv_func_dprintf" = xyes
   6237  1.108  christos then :
   6238  1.108  christos   printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h
   6239  1.108  christos 
   6240  1.108  christos fi
   6241  1.108  christos ac_fn_c_check_func "$LINENO" "esetfunc" "ac_cv_func_esetfunc"
   6242  1.108  christos if test "x$ac_cv_func_esetfunc" = xyes
   6243  1.108  christos then :
   6244  1.108  christos   printf "%s\n" "#define HAVE_ESETFUNC 1" >>confdefs.h
   6245  1.108  christos 
   6246  1.108  christos fi
   6247  1.108  christos ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
   6248  1.108  christos if test "x$ac_cv_func_fgetln" = xyes
   6249  1.108  christos then :
   6250  1.108  christos   printf "%s\n" "#define HAVE_FGETLN 1" >>confdefs.h
   6251  1.108  christos 
   6252  1.108  christos fi
   6253  1.108  christos ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
   6254  1.108  christos if test "x$ac_cv_func_flock" = xyes
   6255  1.108  christos then :
   6256  1.108  christos   printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
   6257  1.108  christos 
   6258  1.108  christos fi
   6259  1.108  christos ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge"
   6260  1.108  christos if test "x$ac_cv_func_fpurge" = xyes
   6261  1.108  christos then :
   6262  1.108  christos   printf "%s\n" "#define HAVE_FPURGE 1" >>confdefs.h
   6263  1.108  christos 
   6264  1.108  christos fi
   6265  1.108  christos ac_fn_c_check_func "$LINENO" "__fpurge" "ac_cv_func___fpurge"
   6266  1.108  christos if test "x$ac_cv_func___fpurge" = xyes
   6267  1.108  christos then :
   6268  1.108  christos   printf "%s\n" "#define HAVE___FPURGE 1" >>confdefs.h
   6269  1.108  christos 
   6270  1.108  christos fi
   6271  1.108  christos ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
   6272  1.108  christos if test "x$ac_cv_func_futimes" = xyes
   6273  1.108  christos then :
   6274  1.108  christos   printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
   6275  1.108  christos 
   6276  1.108  christos fi
   6277  1.108  christos ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
   6278  1.108  christos if test "x$ac_cv_func_getline" = xyes
   6279  1.108  christos then :
   6280  1.108  christos   printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
   6281  1.108  christos 
   6282  1.108  christos fi
   6283  1.108  christos ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
   6284  1.108  christos if test "x$ac_cv_func_getopt" = xyes
   6285  1.108  christos then :
   6286  1.108  christos   printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
   6287  1.108  christos 
   6288  1.108  christos fi
   6289  1.108  christos ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
   6290  1.108  christos if test "x$ac_cv_func_getopt_long" = xyes
   6291  1.108  christos then :
   6292  1.108  christos   printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
   6293  1.108  christos 
   6294  1.108  christos fi
   6295  1.108  christos ac_fn_c_check_func "$LINENO" "group_from_gid" "ac_cv_func_group_from_gid"
   6296  1.108  christos if test "x$ac_cv_func_group_from_gid" = xyes
   6297  1.108  christos then :
   6298  1.108  christos   printf "%s\n" "#define HAVE_GROUP_FROM_GID 1" >>confdefs.h
   6299  1.108  christos 
   6300  1.108  christos fi
   6301  1.108  christos ac_fn_c_check_func "$LINENO" "gid_from_group" "ac_cv_func_gid_from_group"
   6302  1.108  christos if test "x$ac_cv_func_gid_from_group" = xyes
   6303  1.108  christos then :
   6304  1.108  christos   printf "%s\n" "#define HAVE_GID_FROM_GROUP 1" >>confdefs.h
   6305  1.108  christos 
   6306  1.108  christos fi
   6307  1.108  christos ac_fn_c_check_func "$LINENO" "heapsort" "ac_cv_func_heapsort"
   6308  1.108  christos if test "x$ac_cv_func_heapsort" = xyes
   6309  1.108  christos then :
   6310  1.108  christos   printf "%s\n" "#define HAVE_HEAPSORT 1" >>confdefs.h
   6311  1.108  christos 
   6312  1.108  christos fi
   6313  1.108  christos ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
   6314  1.108  christos if test "x$ac_cv_func_isblank" = xyes
   6315  1.108  christos then :
   6316  1.108  christos   printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h
   6317  1.108  christos 
   6318  1.108  christos fi
   6319  1.108  christos ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
   6320  1.108  christos if test "x$ac_cv_func_issetugid" = xyes
   6321  1.108  christos then :
   6322  1.108  christos   printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h
   6323  1.108  christos 
   6324  1.108  christos fi
   6325  1.108  christos ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
   6326  1.108  christos if test "x$ac_cv_func_lchflags" = xyes
   6327  1.108  christos then :
   6328  1.108  christos   printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h
   6329  1.108  christos 
   6330  1.108  christos fi
   6331  1.108  christos ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
   6332  1.108  christos if test "x$ac_cv_func_lchmod" = xyes
   6333  1.108  christos then :
   6334  1.108  christos   printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
   6335  1.108  christos 
   6336  1.108  christos fi
   6337  1.108  christos ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
   6338  1.108  christos if test "x$ac_cv_func_lchown" = xyes
   6339  1.108  christos then :
   6340  1.108  christos   printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
   6341  1.108  christos 
   6342  1.108  christos fi
   6343  1.108  christos ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"
   6344  1.108  christos if test "x$ac_cv_func_lutimes" = xyes
   6345  1.108  christos then :
   6346  1.108  christos   printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
   6347  1.108  christos 
   6348  1.108  christos fi
   6349  1.108  christos ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
   6350  1.108  christos if test "x$ac_cv_func_mkstemp" = xyes
   6351  1.108  christos then :
   6352  1.108  christos   printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
   6353  1.108  christos 
   6354  1.108  christos fi
   6355  1.108  christos ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
   6356  1.108  christos if test "x$ac_cv_func_mkstemps" = xyes
   6357  1.108  christos then :
   6358  1.108  christos   printf "%s\n" "#define HAVE_MKSTEMPS 1" >>confdefs.h
   6359  1.108  christos 
   6360  1.108  christos fi
   6361  1.108  christos ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
   6362  1.108  christos if test "x$ac_cv_func_mkdtemp" = xyes
   6363  1.108  christos then :
   6364  1.108  christos   printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
   6365  1.108  christos 
   6366  1.108  christos fi
   6367  1.108  christos ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
   6368  1.108  christos if test "x$ac_cv_func_poll" = xyes
   6369  1.108  christos then :
   6370  1.108  christos   printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
   6371  1.108  christos 
   6372  1.108  christos fi
   6373  1.108  christos ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
   6374  1.108  christos if test "x$ac_cv_func_posix_spawn" = xyes
   6375  1.108  christos then :
   6376  1.108  christos   printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
   6377  1.108  christos 
   6378  1.108  christos fi
   6379  1.108  christos ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
   6380  1.108  christos if test "x$ac_cv_func_pread" = xyes
   6381  1.108  christos then :
   6382  1.108  christos   printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
   6383  1.108  christos 
   6384  1.108  christos fi
   6385  1.108  christos ac_fn_c_check_func "$LINENO" "putc_unlocked" "ac_cv_func_putc_unlocked"
   6386  1.108  christos if test "x$ac_cv_func_putc_unlocked" = xyes
   6387  1.108  christos then :
   6388  1.108  christos   printf "%s\n" "#define HAVE_PUTC_UNLOCKED 1" >>confdefs.h
   6389  1.108  christos 
   6390  1.108  christos fi
   6391  1.108  christos ac_fn_c_check_func "$LINENO" "pwcache_userdb" "ac_cv_func_pwcache_userdb"
   6392  1.108  christos if test "x$ac_cv_func_pwcache_userdb" = xyes
   6393  1.108  christos then :
   6394  1.108  christos   printf "%s\n" "#define HAVE_PWCACHE_USERDB 1" >>confdefs.h
   6395  1.108  christos 
   6396  1.108  christos fi
   6397  1.108  christos ac_fn_c_check_func "$LINENO" "pwcache_groupdb" "ac_cv_func_pwcache_groupdb"
   6398  1.108  christos if test "x$ac_cv_func_pwcache_groupdb" = xyes
   6399  1.108  christos then :
   6400  1.108  christos   printf "%s\n" "#define HAVE_PWCACHE_GROUPDB 1" >>confdefs.h
   6401  1.108  christos 
   6402  1.108  christos fi
   6403  1.108  christos ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
   6404  1.108  christos if test "x$ac_cv_func_pwrite" = xyes
   6405  1.108  christos then :
   6406  1.108  christos   printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
   6407  1.108  christos 
   6408  1.108  christos fi
   6409  1.108  christos ac_fn_c_check_func "$LINENO" "raise_default_signal" "ac_cv_func_raise_default_signal"
   6410  1.108  christos if test "x$ac_cv_func_raise_default_signal" = xyes
   6411  1.108  christos then :
   6412  1.108  christos   printf "%s\n" "#define HAVE_RAISE_DEFAULT_SIGNAL 1" >>confdefs.h
   6413  1.108  christos 
   6414  1.108  christos fi
   6415  1.108  christos ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
   6416  1.108  christos if test "x$ac_cv_func_random" = xyes
   6417  1.108  christos then :
   6418  1.108  christos   printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
   6419  1.108  christos 
   6420  1.108  christos fi
   6421  1.108  christos ac_fn_c_check_func "$LINENO" "reallocarr" "ac_cv_func_reallocarr"
   6422  1.108  christos if test "x$ac_cv_func_reallocarr" = xyes
   6423  1.108  christos then :
   6424  1.108  christos   printf "%s\n" "#define HAVE_REALLOCARR 1" >>confdefs.h
   6425  1.108  christos 
   6426  1.108  christos fi
   6427  1.108  christos ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
   6428  1.108  christos if test "x$ac_cv_func_reallocarray" = xyes
   6429  1.108  christos then :
   6430  1.108  christos   printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
   6431  1.108  christos 
   6432  1.108  christos fi
   6433  1.108  christos ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
   6434  1.108  christos if test "x$ac_cv_func_setenv" = xyes
   6435  1.108  christos then :
   6436  1.108  christos   printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
   6437  1.108  christos 
   6438  1.108  christos fi
   6439  1.108  christos ac_fn_c_check_func "$LINENO" "setgroupent" "ac_cv_func_setgroupent"
   6440  1.108  christos if test "x$ac_cv_func_setgroupent" = xyes
   6441  1.108  christos then :
   6442  1.108  christos   printf "%s\n" "#define HAVE_SETGROUPENT 1" >>confdefs.h
   6443  1.108  christos 
   6444  1.108  christos fi
   6445  1.108  christos ac_fn_c_check_func "$LINENO" "setprogname" "ac_cv_func_setprogname"
   6446  1.108  christos if test "x$ac_cv_func_setprogname" = xyes
   6447  1.108  christos then :
   6448  1.108  christos   printf "%s\n" "#define HAVE_SETPROGNAME 1" >>confdefs.h
   6449  1.108  christos 
   6450  1.108  christos fi
   6451  1.108  christos ac_fn_c_check_func "$LINENO" "setpassent" "ac_cv_func_setpassent"
   6452  1.108  christos if test "x$ac_cv_func_setpassent" = xyes
   6453  1.108  christos then :
   6454  1.108  christos   printf "%s\n" "#define HAVE_SETPASSENT 1" >>confdefs.h
   6455  1.108  christos 
   6456  1.108  christos fi
   6457  1.108  christos ac_fn_c_check_func "$LINENO" "snprintb_m" "ac_cv_func_snprintb_m"
   6458  1.108  christos if test "x$ac_cv_func_snprintb_m" = xyes
   6459  1.108  christos then :
   6460  1.108  christos   printf "%s\n" "#define HAVE_SNPRINTB_M 1" >>confdefs.h
   6461  1.108  christos 
   6462   1.63       apb fi
   6463  1.108  christos ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
   6464  1.108  christos if test "x$ac_cv_func_snprintf" = xyes
   6465  1.108  christos then :
   6466  1.108  christos   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
   6467   1.61  christos 
   6468   1.84  christos fi
   6469  1.108  christos ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
   6470  1.108  christos if test "x$ac_cv_func_strlcat" = xyes
   6471  1.108  christos then :
   6472  1.108  christos   printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
   6473  1.108  christos 
   6474  1.108  christos fi
   6475  1.108  christos ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
   6476  1.108  christos if test "x$ac_cv_func_strlcpy" = xyes
   6477  1.108  christos then :
   6478  1.108  christos   printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
   6479  1.108  christos 
   6480  1.108  christos fi
   6481  1.108  christos ac_fn_c_check_func "$LINENO" "strmode" "ac_cv_func_strmode"
   6482  1.108  christos if test "x$ac_cv_func_strmode" = xyes
   6483  1.108  christos then :
   6484  1.108  christos   printf "%s\n" "#define HAVE_STRMODE 1" >>confdefs.h
   6485  1.108  christos 
   6486  1.108  christos fi
   6487  1.108  christos ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
   6488  1.108  christos if test "x$ac_cv_func_strcasecmp" = xyes
   6489  1.108  christos then :
   6490  1.108  christos   printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
   6491  1.108  christos 
   6492  1.108  christos fi
   6493  1.108  christos ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
   6494  1.108  christos if test "x$ac_cv_func_strncasecmp" = xyes
   6495  1.108  christos then :
   6496  1.108  christos   printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
   6497  1.108  christos 
   6498  1.108  christos fi
   6499  1.108  christos ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
   6500  1.108  christos if test "x$ac_cv_func_strcasestr" = xyes
   6501  1.108  christos then :
   6502  1.108  christos   printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
   6503  1.108  christos 
   6504  1.108  christos fi
   6505  1.108  christos ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
   6506  1.108  christos if test "x$ac_cv_func_strndup" = xyes
   6507  1.108  christos then :
   6508  1.108  christos   printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
   6509  1.108  christos 
   6510  1.108  christos fi
   6511  1.108  christos ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
   6512  1.108  christos if test "x$ac_cv_func_strnlen" = xyes
   6513  1.108  christos then :
   6514  1.108  christos   printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
   6515  1.108  christos 
   6516  1.108  christos fi
   6517  1.108  christos ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
   6518  1.108  christos if test "x$ac_cv_func_strsep" = xyes
   6519  1.108  christos then :
   6520  1.108  christos   printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
   6521  1.108  christos 
   6522  1.108  christos fi
   6523  1.108  christos ac_fn_c_check_func "$LINENO" "strsuftoll" "ac_cv_func_strsuftoll"
   6524  1.108  christos if test "x$ac_cv_func_strsuftoll" = xyes
   6525  1.108  christos then :
   6526  1.108  christos   printf "%s\n" "#define HAVE_STRSUFTOLL 1" >>confdefs.h
   6527  1.108  christos 
   6528  1.108  christos fi
   6529  1.108  christos ac_fn_c_check_func "$LINENO" "strtoi" "ac_cv_func_strtoi"
   6530  1.108  christos if test "x$ac_cv_func_strtoi" = xyes
   6531  1.108  christos then :
   6532  1.108  christos   printf "%s\n" "#define HAVE_STRTOI 1" >>confdefs.h
   6533  1.108  christos 
   6534  1.108  christos fi
   6535  1.108  christos ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
   6536  1.108  christos if test "x$ac_cv_func_strtoll" = xyes
   6537  1.108  christos then :
   6538  1.108  christos   printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
   6539  1.108  christos 
   6540  1.108  christos fi
   6541  1.108  christos ac_fn_c_check_func "$LINENO" "strtou" "ac_cv_func_strtou"
   6542  1.108  christos if test "x$ac_cv_func_strtou" = xyes
   6543  1.108  christos then :
   6544  1.108  christos   printf "%s\n" "#define HAVE_STRTOU 1" >>confdefs.h
   6545  1.108  christos 
   6546  1.108  christos fi
   6547  1.108  christos ac_fn_c_check_func "$LINENO" "strtonum" "ac_cv_func_strtonum"
   6548  1.108  christos if test "x$ac_cv_func_strtonum" = xyes
   6549  1.108  christos then :
   6550  1.108  christos   printf "%s\n" "#define HAVE_STRTONUM 1" >>confdefs.h
   6551  1.108  christos 
   6552  1.108  christos fi
   6553  1.108  christos ac_fn_c_check_func "$LINENO" "user_from_uid" "ac_cv_func_user_from_uid"
   6554  1.108  christos if test "x$ac_cv_func_user_from_uid" = xyes
   6555  1.108  christos then :
   6556  1.108  christos   printf "%s\n" "#define HAVE_USER_FROM_UID 1" >>confdefs.h
   6557  1.108  christos 
   6558  1.108  christos fi
   6559  1.108  christos ac_fn_c_check_func "$LINENO" "uid_from_user" "ac_cv_func_uid_from_user"
   6560  1.108  christos if test "x$ac_cv_func_uid_from_user" = xyes
   6561  1.108  christos then :
   6562  1.108  christos   printf "%s\n" "#define HAVE_UID_FROM_USER 1" >>confdefs.h
   6563   1.61  christos 
   6564  1.108  christos fi
   6565  1.108  christos ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
   6566  1.108  christos if test "x$ac_cv_func_vasprintf" = xyes
   6567  1.108  christos then :
   6568  1.108  christos   printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
   6569   1.76     pooka 
   6570   1.63       apb fi
   6571  1.108  christos ac_fn_c_check_func "$LINENO" "vasnprintf" "ac_cv_func_vasnprintf"
   6572  1.108  christos if test "x$ac_cv_func_vasnprintf" = xyes
   6573  1.108  christos then :
   6574  1.108  christos   printf "%s\n" "#define HAVE_VASNPRINTF 1" >>confdefs.h
   6575   1.76     pooka 
   6576  1.108  christos fi
   6577  1.108  christos ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
   6578  1.108  christos if test "x$ac_cv_func_vsnprintf" = xyes
   6579  1.108  christos then :
   6580  1.108  christos   printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
   6581   1.61  christos 
   6582   1.76     pooka fi
   6583   1.84  christos 
   6584   1.45       jmc 
   6585  1.108  christos ac_fn_check_decl "$LINENO" "user_from_uid" "ac_cv_have_decl_user_from_uid" "
   6586   1.84  christos #include <pwd.h>
   6587   1.45       jmc 
   6588  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6589  1.108  christos if test "x$ac_cv_have_decl_user_from_uid" = xyes
   6590  1.108  christos then :
   6591   1.84  christos   ac_have_decl=1
   6592  1.108  christos else case e in #(
   6593  1.108  christos   e) ac_have_decl=0 ;;
   6594  1.108  christos esac
   6595   1.76     pooka fi
   6596  1.108  christos printf "%s\n" "#define HAVE_DECL_USER_FROM_UID $ac_have_decl" >>confdefs.h
   6597  1.108  christos ac_fn_check_decl "$LINENO" "uid_from_user" "ac_cv_have_decl_uid_from_user" "
   6598   1.84  christos #include <pwd.h>
   6599   1.76     pooka 
   6600  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6601  1.108  christos if test "x$ac_cv_have_decl_uid_from_user" = xyes
   6602  1.108  christos then :
   6603   1.84  christos   ac_have_decl=1
   6604  1.108  christos else case e in #(
   6605  1.108  christos   e) ac_have_decl=0 ;;
   6606  1.108  christos esac
   6607   1.55       wiz fi
   6608  1.108  christos printf "%s\n" "#define HAVE_DECL_UID_FROM_USER $ac_have_decl" >>confdefs.h
   6609  1.108  christos ac_fn_check_decl "$LINENO" "pwcache_userdb" "ac_cv_have_decl_pwcache_userdb" "
   6610   1.84  christos #include <pwd.h>
   6611   1.55       wiz 
   6612  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6613  1.108  christos if test "x$ac_cv_have_decl_pwcache_userdb" = xyes
   6614  1.108  christos then :
   6615   1.84  christos   ac_have_decl=1
   6616  1.108  christos else case e in #(
   6617  1.108  christos   e) ac_have_decl=0 ;;
   6618  1.108  christos esac
   6619   1.55       wiz fi
   6620  1.108  christos printf "%s\n" "#define HAVE_DECL_PWCACHE_USERDB $ac_have_decl" >>confdefs.h
   6621   1.55       wiz 
   6622  1.108  christos ac_fn_check_decl "$LINENO" "group_from_gid" "ac_cv_have_decl_group_from_gid" "
   6623   1.84  christos #include <grp.h>
   6624   1.76     pooka 
   6625  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6626  1.108  christos if test "x$ac_cv_have_decl_group_from_gid" = xyes
   6627  1.108  christos then :
   6628   1.84  christos   ac_have_decl=1
   6629  1.108  christos else case e in #(
   6630  1.108  christos   e) ac_have_decl=0 ;;
   6631  1.108  christos esac
   6632   1.48       jmc fi
   6633  1.108  christos printf "%s\n" "#define HAVE_DECL_GROUP_FROM_GID $ac_have_decl" >>confdefs.h
   6634  1.108  christos ac_fn_check_decl "$LINENO" "gid_from_group" "ac_cv_have_decl_gid_from_group" "
   6635   1.84  christos #include <grp.h>
   6636   1.53    dogcow 
   6637  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6638  1.108  christos if test "x$ac_cv_have_decl_gid_from_group" = xyes
   6639  1.108  christos then :
   6640   1.84  christos   ac_have_decl=1
   6641  1.108  christos else case e in #(
   6642  1.108  christos   e) ac_have_decl=0 ;;
   6643  1.108  christos esac
   6644   1.76     pooka fi
   6645  1.108  christos printf "%s\n" "#define HAVE_DECL_GID_FROM_GROUP $ac_have_decl" >>confdefs.h
   6646  1.108  christos ac_fn_check_decl "$LINENO" "pwcache_groupdb" "ac_cv_have_decl_pwcache_groupdb" "
   6647   1.84  christos #include <grp.h>
   6648   1.53    dogcow 
   6649  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6650  1.108  christos if test "x$ac_cv_have_decl_pwcache_groupdb" = xyes
   6651  1.108  christos then :
   6652   1.84  christos   ac_have_decl=1
   6653  1.108  christos else case e in #(
   6654  1.108  christos   e) ac_have_decl=0 ;;
   6655  1.108  christos esac
   6656   1.53    dogcow fi
   6657  1.108  christos printf "%s\n" "#define HAVE_DECL_PWCACHE_GROUPDB $ac_have_decl" >>confdefs.h
   6658   1.61  christos 
   6659  1.108  christos ac_fn_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "
   6660  1.108  christos #include <string.h>
   6661   1.53    dogcow 
   6662  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6663  1.108  christos if test "x$ac_cv_have_decl_strcasecmp" = xyes
   6664  1.108  christos then :
   6665  1.108  christos   ac_have_decl=1
   6666  1.108  christos else case e in #(
   6667  1.108  christos   e) ac_have_decl=0 ;;
   6668  1.108  christos esac
   6669  1.108  christos fi
   6670  1.108  christos printf "%s\n" "#define HAVE_DECL_STRCASECMP $ac_have_decl" >>confdefs.h
   6671  1.108  christos ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "
   6672   1.91  christos #include <string.h>
   6673   1.91  christos 
   6674  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6675  1.108  christos if test "x$ac_cv_have_decl_strncasecmp" = xyes
   6676  1.108  christos then :
   6677   1.91  christos   ac_have_decl=1
   6678  1.108  christos else case e in #(
   6679  1.108  christos   e) ac_have_decl=0 ;;
   6680  1.108  christos esac
   6681   1.91  christos fi
   6682  1.108  christos printf "%s\n" "#define HAVE_DECL_STRNCASECMP $ac_have_decl" >>confdefs.h
   6683  1.108  christos ac_fn_check_decl "$LINENO" "strcasestr" "ac_cv_have_decl_strcasestr" "
   6684   1.92  christos #include <string.h>
   6685   1.92  christos 
   6686  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6687  1.108  christos if test "x$ac_cv_have_decl_strcasestr" = xyes
   6688  1.108  christos then :
   6689   1.92  christos   ac_have_decl=1
   6690  1.108  christos else case e in #(
   6691  1.108  christos   e) ac_have_decl=0 ;;
   6692  1.108  christos esac
   6693   1.92  christos fi
   6694  1.108  christos printf "%s\n" "#define HAVE_DECL_STRCASESTR $ac_have_decl" >>confdefs.h
   6695  1.108  christos ac_fn_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
   6696   1.85  christos #include <string.h>
   6697   1.85  christos 
   6698  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6699  1.108  christos if test "x$ac_cv_have_decl_strlcpy" = xyes
   6700  1.108  christos then :
   6701   1.85  christos   ac_have_decl=1
   6702  1.108  christos else case e in #(
   6703  1.108  christos   e) ac_have_decl=0 ;;
   6704  1.108  christos esac
   6705   1.85  christos fi
   6706  1.108  christos printf "%s\n" "#define HAVE_DECL_STRLCPY $ac_have_decl" >>confdefs.h
   6707  1.108  christos ac_fn_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "
   6708   1.85  christos #include <string.h>
   6709   1.85  christos 
   6710  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6711  1.108  christos if test "x$ac_cv_have_decl_strlcat" = xyes
   6712  1.108  christos then :
   6713   1.85  christos   ac_have_decl=1
   6714  1.108  christos else case e in #(
   6715  1.108  christos   e) ac_have_decl=0 ;;
   6716  1.108  christos esac
   6717   1.85  christos fi
   6718  1.108  christos printf "%s\n" "#define HAVE_DECL_STRLCAT $ac_have_decl" >>confdefs.h
   6719  1.108  christos ac_fn_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "
   6720   1.85  christos #include <string.h>
   6721   1.85  christos 
   6722  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6723  1.108  christos if test "x$ac_cv_have_decl_strndup" = xyes
   6724  1.108  christos then :
   6725   1.84  christos   ac_have_decl=1
   6726  1.108  christos else case e in #(
   6727  1.108  christos   e) ac_have_decl=0 ;;
   6728  1.108  christos esac
   6729   1.63       apb fi
   6730  1.108  christos printf "%s\n" "#define HAVE_DECL_STRNDUP $ac_have_decl" >>confdefs.h
   6731  1.108  christos ac_fn_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "
   6732   1.85  christos #include <string.h>
   6733   1.85  christos 
   6734  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6735  1.108  christos if test "x$ac_cv_have_decl_strnlen" = xyes
   6736  1.108  christos then :
   6737   1.84  christos   ac_have_decl=1
   6738  1.108  christos else case e in #(
   6739  1.108  christos   e) ac_have_decl=0 ;;
   6740  1.108  christos esac
   6741   1.74  christos fi
   6742  1.108  christos printf "%s\n" "#define HAVE_DECL_STRNLEN $ac_have_decl" >>confdefs.h
   6743  1.108  christos ac_fn_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
   6744   1.86  christos #include <string.h>
   6745   1.86  christos 
   6746  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6747  1.108  christos if test "x$ac_cv_have_decl_strsep" = xyes
   6748  1.108  christos then :
   6749   1.86  christos   ac_have_decl=1
   6750  1.108  christos else case e in #(
   6751  1.108  christos   e) ac_have_decl=0 ;;
   6752  1.108  christos esac
   6753   1.86  christos fi
   6754  1.108  christos printf "%s\n" "#define HAVE_DECL_STRSEP $ac_have_decl" >>confdefs.h
   6755   1.86  christos 
   6756  1.108  christos ac_fn_check_decl "$LINENO" "strsuftoll" "ac_cv_have_decl_strsuftoll" "#include <stdlib.h>
   6757  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6758  1.108  christos if test "x$ac_cv_have_decl_strsuftoll" = xyes
   6759  1.108  christos then :
   6760   1.84  christos   ac_have_decl=1
   6761  1.108  christos else case e in #(
   6762  1.108  christos   e) ac_have_decl=0 ;;
   6763  1.108  christos esac
   6764   1.84  christos fi
   6765  1.108  christos printf "%s\n" "#define HAVE_DECL_STRSUFTOLL $ac_have_decl" >>confdefs.h
   6766  1.108  christos ac_fn_check_decl "$LINENO" "mi_vector_hash" "ac_cv_have_decl_mi_vector_hash" "#include <stdlib.h>
   6767  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6768  1.108  christos if test "x$ac_cv_have_decl_mi_vector_hash" = xyes
   6769  1.108  christos then :
   6770   1.85  christos   ac_have_decl=1
   6771  1.108  christos else case e in #(
   6772  1.108  christos   e) ac_have_decl=0 ;;
   6773  1.108  christos esac
   6774   1.85  christos fi
   6775  1.108  christos printf "%s\n" "#define HAVE_DECL_MI_VECTOR_HASH $ac_have_decl" >>confdefs.h
   6776   1.85  christos 
   6777  1.108  christos ac_fn_check_decl "$LINENO" "lchflags" "ac_cv_have_decl_lchflags" "
   6778   1.84  christos #include <sys/stat.h>
   6779   1.84  christos #include <unistd.h>
   6780   1.61  christos 
   6781  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6782  1.108  christos if test "x$ac_cv_have_decl_lchflags" = xyes
   6783  1.108  christos then :
   6784   1.84  christos   ac_have_decl=1
   6785  1.108  christos else case e in #(
   6786  1.108  christos   e) ac_have_decl=0 ;;
   6787  1.108  christos esac
   6788   1.76     pooka fi
   6789  1.108  christos printf "%s\n" "#define HAVE_DECL_LCHFLAGS $ac_have_decl" >>confdefs.h
   6790  1.108  christos ac_fn_check_decl "$LINENO" "lchmod" "ac_cv_have_decl_lchmod" "
   6791   1.84  christos #include <sys/stat.h>
   6792   1.84  christos #include <unistd.h>
   6793   1.53    dogcow 
   6794  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6795  1.108  christos if test "x$ac_cv_have_decl_lchmod" = xyes
   6796  1.108  christos then :
   6797   1.84  christos   ac_have_decl=1
   6798  1.108  christos else case e in #(
   6799  1.108  christos   e) ac_have_decl=0 ;;
   6800  1.108  christos esac
   6801   1.53    dogcow fi
   6802  1.108  christos printf "%s\n" "#define HAVE_DECL_LCHMOD $ac_have_decl" >>confdefs.h
   6803  1.108  christos ac_fn_check_decl "$LINENO" "lchown" "ac_cv_have_decl_lchown" "
   6804   1.84  christos #include <sys/stat.h>
   6805   1.84  christos #include <unistd.h>
   6806   1.61  christos 
   6807  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6808  1.108  christos if test "x$ac_cv_have_decl_lchown" = xyes
   6809  1.108  christos then :
   6810   1.84  christos   ac_have_decl=1
   6811  1.108  christos else case e in #(
   6812  1.108  christos   e) ac_have_decl=0 ;;
   6813  1.108  christos esac
   6814   1.76     pooka fi
   6815  1.108  christos printf "%s\n" "#define HAVE_DECL_LCHOWN $ac_have_decl" >>confdefs.h
   6816   1.84  christos 
   6817   1.84  christos 
   6818  1.108  christos ac_fn_check_decl "$LINENO" "err" "ac_cv_have_decl_err" "
   6819   1.85  christos #ifdef HAVE_ERR_H
   6820   1.85  christos #include <err.h>
   6821   1.85  christos #endif
   6822   1.85  christos 
   6823  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6824  1.108  christos if test "x$ac_cv_have_decl_err" = xyes
   6825  1.108  christos then :
   6826   1.85  christos   ac_have_decl=1
   6827  1.108  christos else case e in #(
   6828  1.108  christos   e) ac_have_decl=0 ;;
   6829  1.108  christos esac
   6830   1.85  christos fi
   6831  1.108  christos printf "%s\n" "#define HAVE_DECL_ERR $ac_have_decl" >>confdefs.h
   6832  1.108  christos ac_fn_check_decl "$LINENO" "errc" "ac_cv_have_decl_errc" "
   6833   1.84  christos #ifdef HAVE_ERR_H
   6834   1.84  christos #include <err.h>
   6835   1.84  christos #endif
   6836   1.61  christos 
   6837  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6838  1.108  christos if test "x$ac_cv_have_decl_errc" = xyes
   6839  1.108  christos then :
   6840   1.84  christos   ac_have_decl=1
   6841  1.108  christos else case e in #(
   6842  1.108  christos   e) ac_have_decl=0 ;;
   6843  1.108  christos esac
   6844   1.76     pooka fi
   6845  1.108  christos printf "%s\n" "#define HAVE_DECL_ERRC $ac_have_decl" >>confdefs.h
   6846  1.108  christos ac_fn_check_decl "$LINENO" "errx" "ac_cv_have_decl_errx" "
   6847   1.85  christos #ifdef HAVE_ERR_H
   6848   1.85  christos #include <err.h>
   6849   1.85  christos #endif
   6850   1.85  christos 
   6851  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6852  1.108  christos if test "x$ac_cv_have_decl_errx" = xyes
   6853  1.108  christos then :
   6854   1.85  christos   ac_have_decl=1
   6855  1.108  christos else case e in #(
   6856  1.108  christos   e) ac_have_decl=0 ;;
   6857  1.108  christos esac
   6858   1.85  christos fi
   6859  1.108  christos printf "%s\n" "#define HAVE_DECL_ERRX $ac_have_decl" >>confdefs.h
   6860  1.108  christos ac_fn_check_decl "$LINENO" "verrc" "ac_cv_have_decl_verrc" "
   6861   1.84  christos #ifdef HAVE_ERR_H
   6862   1.84  christos #include <err.h>
   6863   1.76     pooka #endif
   6864   1.53    dogcow 
   6865  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6866  1.108  christos if test "x$ac_cv_have_decl_verrc" = xyes
   6867  1.108  christos then :
   6868   1.84  christos   ac_have_decl=1
   6869  1.108  christos else case e in #(
   6870  1.108  christos   e) ac_have_decl=0 ;;
   6871  1.108  christos esac
   6872   1.53    dogcow fi
   6873  1.108  christos printf "%s\n" "#define HAVE_DECL_VERRC $ac_have_decl" >>confdefs.h
   6874  1.108  christos ac_fn_check_decl "$LINENO" "verrx" "ac_cv_have_decl_verrx" "
   6875   1.85  christos #ifdef HAVE_ERR_H
   6876   1.85  christos #include <err.h>
   6877   1.85  christos #endif
   6878   1.85  christos 
   6879  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6880  1.108  christos if test "x$ac_cv_have_decl_verrx" = xyes
   6881  1.108  christos then :
   6882   1.85  christos   ac_have_decl=1
   6883  1.108  christos else case e in #(
   6884  1.108  christos   e) ac_have_decl=0 ;;
   6885  1.108  christos esac
   6886   1.85  christos fi
   6887  1.108  christos printf "%s\n" "#define HAVE_DECL_VERRX $ac_have_decl" >>confdefs.h
   6888  1.108  christos ac_fn_check_decl "$LINENO" "warn" "ac_cv_have_decl_warn" "
   6889   1.85  christos #ifdef HAVE_ERR_H
   6890   1.85  christos #include <err.h>
   6891   1.85  christos #endif
   6892   1.85  christos 
   6893  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6894  1.108  christos if test "x$ac_cv_have_decl_warn" = xyes
   6895  1.108  christos then :
   6896   1.85  christos   ac_have_decl=1
   6897  1.108  christos else case e in #(
   6898  1.108  christos   e) ac_have_decl=0 ;;
   6899  1.108  christos esac
   6900   1.85  christos fi
   6901  1.108  christos printf "%s\n" "#define HAVE_DECL_WARN $ac_have_decl" >>confdefs.h
   6902  1.108  christos ac_fn_check_decl "$LINENO" "warnc" "ac_cv_have_decl_warnc" "
   6903   1.84  christos #ifdef HAVE_ERR_H
   6904   1.84  christos #include <err.h>
   6905   1.84  christos #endif
   6906   1.53    dogcow 
   6907  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6908  1.108  christos if test "x$ac_cv_have_decl_warnc" = xyes
   6909  1.108  christos then :
   6910   1.84  christos   ac_have_decl=1
   6911  1.108  christos else case e in #(
   6912  1.108  christos   e) ac_have_decl=0 ;;
   6913  1.108  christos esac
   6914   1.53    dogcow fi
   6915  1.108  christos printf "%s\n" "#define HAVE_DECL_WARNC $ac_have_decl" >>confdefs.h
   6916  1.108  christos ac_fn_check_decl "$LINENO" "warnx" "ac_cv_have_decl_warnx" "
   6917   1.85  christos #ifdef HAVE_ERR_H
   6918   1.85  christos #include <err.h>
   6919   1.85  christos #endif
   6920   1.85  christos 
   6921  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6922  1.108  christos if test "x$ac_cv_have_decl_warnx" = xyes
   6923  1.108  christos then :
   6924   1.85  christos   ac_have_decl=1
   6925  1.108  christos else case e in #(
   6926  1.108  christos   e) ac_have_decl=0 ;;
   6927  1.108  christos esac
   6928   1.85  christos fi
   6929  1.108  christos printf "%s\n" "#define HAVE_DECL_WARNX $ac_have_decl" >>confdefs.h
   6930  1.108  christos ac_fn_check_decl "$LINENO" "vwarnc" "ac_cv_have_decl_vwarnc" "
   6931   1.84  christos #ifdef HAVE_ERR_H
   6932   1.84  christos #include <err.h>
   6933   1.76     pooka #endif
   6934   1.53    dogcow 
   6935  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6936  1.108  christos if test "x$ac_cv_have_decl_vwarnc" = xyes
   6937  1.108  christos then :
   6938   1.84  christos   ac_have_decl=1
   6939  1.108  christos else case e in #(
   6940  1.108  christos   e) ac_have_decl=0 ;;
   6941  1.108  christos esac
   6942   1.76     pooka fi
   6943  1.108  christos printf "%s\n" "#define HAVE_DECL_VWARNC $ac_have_decl" >>confdefs.h
   6944  1.108  christos ac_fn_check_decl "$LINENO" "vwarnx" "ac_cv_have_decl_vwarnx" "
   6945   1.85  christos #ifdef HAVE_ERR_H
   6946   1.85  christos #include <err.h>
   6947   1.85  christos #endif
   6948   1.85  christos 
   6949  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6950  1.108  christos if test "x$ac_cv_have_decl_vwarnx" = xyes
   6951  1.108  christos then :
   6952   1.85  christos   ac_have_decl=1
   6953  1.108  christos else case e in #(
   6954  1.108  christos   e) ac_have_decl=0 ;;
   6955  1.108  christos esac
   6956   1.85  christos fi
   6957  1.108  christos printf "%s\n" "#define HAVE_DECL_VWARNX $ac_have_decl" >>confdefs.h
   6958   1.84  christos 
   6959   1.53    dogcow 
   6960  1.108  christos ac_fn_check_decl "$LINENO" "htobe16" "ac_cv_have_decl_htobe16" "#include <sys/types.h>
   6961  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6962  1.108  christos if test "x$ac_cv_have_decl_htobe16" = xyes
   6963  1.108  christos then :
   6964   1.84  christos   ac_have_decl=1
   6965  1.108  christos else case e in #(
   6966  1.108  christos   e) ac_have_decl=0 ;;
   6967  1.108  christos esac
   6968   1.84  christos fi
   6969  1.108  christos printf "%s\n" "#define HAVE_DECL_HTOBE16 $ac_have_decl" >>confdefs.h
   6970  1.108  christos ac_fn_check_decl "$LINENO" "htobe32" "ac_cv_have_decl_htobe32" "#include <sys/types.h>
   6971  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6972  1.108  christos if test "x$ac_cv_have_decl_htobe32" = xyes
   6973  1.108  christos then :
   6974   1.84  christos   ac_have_decl=1
   6975  1.108  christos else case e in #(
   6976  1.108  christos   e) ac_have_decl=0 ;;
   6977  1.108  christos esac
   6978   1.74  christos fi
   6979  1.108  christos printf "%s\n" "#define HAVE_DECL_HTOBE32 $ac_have_decl" >>confdefs.h
   6980  1.108  christos ac_fn_check_decl "$LINENO" "htobe64" "ac_cv_have_decl_htobe64" "#include <sys/types.h>
   6981  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6982  1.108  christos if test "x$ac_cv_have_decl_htobe64" = xyes
   6983  1.108  christos then :
   6984   1.84  christos   ac_have_decl=1
   6985  1.108  christos else case e in #(
   6986  1.108  christos   e) ac_have_decl=0 ;;
   6987  1.108  christos esac
   6988   1.84  christos fi
   6989  1.108  christos printf "%s\n" "#define HAVE_DECL_HTOBE64 $ac_have_decl" >>confdefs.h
   6990  1.108  christos ac_fn_check_decl "$LINENO" "htole16" "ac_cv_have_decl_htole16" "#include <sys/types.h>
   6991  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   6992  1.108  christos if test "x$ac_cv_have_decl_htole16" = xyes
   6993  1.108  christos then :
   6994   1.84  christos   ac_have_decl=1
   6995  1.108  christos else case e in #(
   6996  1.108  christos   e) ac_have_decl=0 ;;
   6997  1.108  christos esac
   6998   1.84  christos fi
   6999  1.108  christos printf "%s\n" "#define HAVE_DECL_HTOLE16 $ac_have_decl" >>confdefs.h
   7000  1.108  christos ac_fn_check_decl "$LINENO" "htole32" "ac_cv_have_decl_htole32" "#include <sys/types.h>
   7001  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7002  1.108  christos if test "x$ac_cv_have_decl_htole32" = xyes
   7003  1.108  christos then :
   7004   1.84  christos   ac_have_decl=1
   7005  1.108  christos else case e in #(
   7006  1.108  christos   e) ac_have_decl=0 ;;
   7007  1.108  christos esac
   7008   1.76     pooka fi
   7009  1.108  christos printf "%s\n" "#define HAVE_DECL_HTOLE32 $ac_have_decl" >>confdefs.h
   7010  1.108  christos ac_fn_check_decl "$LINENO" "htole64" "ac_cv_have_decl_htole64" "#include <sys/types.h>
   7011  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7012  1.108  christos if test "x$ac_cv_have_decl_htole64" = xyes
   7013  1.108  christos then :
   7014   1.84  christos   ac_have_decl=1
   7015  1.108  christos else case e in #(
   7016  1.108  christos   e) ac_have_decl=0 ;;
   7017  1.108  christos esac
   7018   1.53    dogcow fi
   7019  1.108  christos printf "%s\n" "#define HAVE_DECL_HTOLE64 $ac_have_decl" >>confdefs.h
   7020  1.108  christos ac_fn_check_decl "$LINENO" "be16toh" "ac_cv_have_decl_be16toh" "#include <sys/types.h>
   7021  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7022  1.108  christos if test "x$ac_cv_have_decl_be16toh" = xyes
   7023  1.108  christos then :
   7024   1.84  christos   ac_have_decl=1
   7025  1.108  christos else case e in #(
   7026  1.108  christos   e) ac_have_decl=0 ;;
   7027  1.108  christos esac
   7028   1.84  christos fi
   7029  1.108  christos printf "%s\n" "#define HAVE_DECL_BE16TOH $ac_have_decl" >>confdefs.h
   7030  1.108  christos ac_fn_check_decl "$LINENO" "be32toh" "ac_cv_have_decl_be32toh" "#include <sys/types.h>
   7031  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7032  1.108  christos if test "x$ac_cv_have_decl_be32toh" = xyes
   7033  1.108  christos then :
   7034   1.84  christos   ac_have_decl=1
   7035  1.108  christos else case e in #(
   7036  1.108  christos   e) ac_have_decl=0 ;;
   7037  1.108  christos esac
   7038   1.84  christos fi
   7039  1.108  christos printf "%s\n" "#define HAVE_DECL_BE32TOH $ac_have_decl" >>confdefs.h
   7040  1.108  christos ac_fn_check_decl "$LINENO" "be64toh" "ac_cv_have_decl_be64toh" "#include <sys/types.h>
   7041  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7042  1.108  christos if test "x$ac_cv_have_decl_be64toh" = xyes
   7043  1.108  christos then :
   7044   1.84  christos   ac_have_decl=1
   7045  1.108  christos else case e in #(
   7046  1.108  christos   e) ac_have_decl=0 ;;
   7047  1.108  christos esac
   7048   1.53    dogcow fi
   7049  1.108  christos printf "%s\n" "#define HAVE_DECL_BE64TOH $ac_have_decl" >>confdefs.h
   7050  1.108  christos ac_fn_check_decl "$LINENO" "le16toh" "ac_cv_have_decl_le16toh" "#include <sys/types.h>
   7051  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7052  1.108  christos if test "x$ac_cv_have_decl_le16toh" = xyes
   7053  1.108  christos then :
   7054   1.84  christos   ac_have_decl=1
   7055  1.108  christos else case e in #(
   7056  1.108  christos   e) ac_have_decl=0 ;;
   7057  1.108  christos esac
   7058   1.84  christos fi
   7059  1.108  christos printf "%s\n" "#define HAVE_DECL_LE16TOH $ac_have_decl" >>confdefs.h
   7060  1.108  christos ac_fn_check_decl "$LINENO" "le32toh" "ac_cv_have_decl_le32toh" "#include <sys/types.h>
   7061  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7062  1.108  christos if test "x$ac_cv_have_decl_le32toh" = xyes
   7063  1.108  christos then :
   7064   1.84  christos   ac_have_decl=1
   7065  1.108  christos else case e in #(
   7066  1.108  christos   e) ac_have_decl=0 ;;
   7067  1.108  christos esac
   7068   1.84  christos fi
   7069  1.108  christos printf "%s\n" "#define HAVE_DECL_LE32TOH $ac_have_decl" >>confdefs.h
   7070  1.108  christos ac_fn_check_decl "$LINENO" "le64toh" "ac_cv_have_decl_le64toh" "#include <sys/types.h>
   7071  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7072  1.108  christos if test "x$ac_cv_have_decl_le64toh" = xyes
   7073  1.108  christos then :
   7074   1.84  christos   ac_have_decl=1
   7075  1.108  christos else case e in #(
   7076  1.108  christos   e) ac_have_decl=0 ;;
   7077  1.108  christos esac
   7078   1.53    dogcow fi
   7079  1.108  christos printf "%s\n" "#define HAVE_DECL_LE64TOH $ac_have_decl" >>confdefs.h
   7080   1.84  christos 
   7081   1.53    dogcow 
   7082  1.108  christos ac_fn_check_decl "$LINENO" "bswap16" "ac_cv_have_decl_bswap16" "#include <machine/bswap.h>
   7083  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7084  1.108  christos if test "x$ac_cv_have_decl_bswap16" = xyes
   7085  1.108  christos then :
   7086   1.84  christos   ac_have_decl=1
   7087  1.108  christos else case e in #(
   7088  1.108  christos   e) ac_have_decl=0 ;;
   7089  1.108  christos esac
   7090   1.84  christos fi
   7091  1.108  christos printf "%s\n" "#define HAVE_DECL_BSWAP16 $ac_have_decl" >>confdefs.h
   7092  1.108  christos ac_fn_check_decl "$LINENO" "bswap32" "ac_cv_have_decl_bswap32" "#include <machine/bswap.h>
   7093  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7094  1.108  christos if test "x$ac_cv_have_decl_bswap32" = xyes
   7095  1.108  christos then :
   7096   1.84  christos   ac_have_decl=1
   7097  1.108  christos else case e in #(
   7098  1.108  christos   e) ac_have_decl=0 ;;
   7099  1.108  christos esac
   7100   1.74  christos fi
   7101  1.108  christos printf "%s\n" "#define HAVE_DECL_BSWAP32 $ac_have_decl" >>confdefs.h
   7102  1.108  christos ac_fn_check_decl "$LINENO" "bswap64" "ac_cv_have_decl_bswap64" "#include <machine/bswap.h>
   7103  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7104  1.108  christos if test "x$ac_cv_have_decl_bswap64" = xyes
   7105  1.108  christos then :
   7106   1.84  christos   ac_have_decl=1
   7107  1.108  christos else case e in #(
   7108  1.108  christos   e) ac_have_decl=0 ;;
   7109  1.108  christos esac
   7110   1.74  christos fi
   7111  1.108  christos printf "%s\n" "#define HAVE_DECL_BSWAP64 $ac_have_decl" >>confdefs.h
   7112   1.84  christos 
   7113   1.61  christos 
   7114  1.108  christos ac_fn_check_decl "$LINENO" "be16enc" "ac_cv_have_decl_be16enc" "#include <sys/endian.h>
   7115  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7116  1.108  christos if test "x$ac_cv_have_decl_be16enc" = xyes
   7117  1.108  christos then :
   7118   1.84  christos   ac_have_decl=1
   7119  1.108  christos else case e in #(
   7120  1.108  christos   e) ac_have_decl=0 ;;
   7121  1.108  christos esac
   7122   1.84  christos fi
   7123  1.108  christos printf "%s\n" "#define HAVE_DECL_BE16ENC $ac_have_decl" >>confdefs.h
   7124  1.108  christos ac_fn_check_decl "$LINENO" "le16enc" "ac_cv_have_decl_le16enc" "#include <sys/endian.h>
   7125  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7126  1.108  christos if test "x$ac_cv_have_decl_le16enc" = xyes
   7127  1.108  christos then :
   7128   1.84  christos   ac_have_decl=1
   7129  1.108  christos else case e in #(
   7130  1.108  christos   e) ac_have_decl=0 ;;
   7131  1.108  christos esac
   7132   1.74  christos fi
   7133  1.108  christos printf "%s\n" "#define HAVE_DECL_LE16ENC $ac_have_decl" >>confdefs.h
   7134  1.108  christos ac_fn_check_decl "$LINENO" "be16dec" "ac_cv_have_decl_be16dec" "#include <sys/endian.h>
   7135  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7136  1.108  christos if test "x$ac_cv_have_decl_be16dec" = xyes
   7137  1.108  christos then :
   7138   1.84  christos   ac_have_decl=1
   7139  1.108  christos else case e in #(
   7140  1.108  christos   e) ac_have_decl=0 ;;
   7141  1.108  christos esac
   7142   1.84  christos fi
   7143  1.108  christos printf "%s\n" "#define HAVE_DECL_BE16DEC $ac_have_decl" >>confdefs.h
   7144  1.108  christos ac_fn_check_decl "$LINENO" "le16dec" "ac_cv_have_decl_le16dec" "#include <sys/endian.h>
   7145  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7146  1.108  christos if test "x$ac_cv_have_decl_le16dec" = xyes
   7147  1.108  christos then :
   7148   1.84  christos   ac_have_decl=1
   7149  1.108  christos else case e in #(
   7150  1.108  christos   e) ac_have_decl=0 ;;
   7151  1.108  christos esac
   7152   1.84  christos fi
   7153  1.108  christos printf "%s\n" "#define HAVE_DECL_LE16DEC $ac_have_decl" >>confdefs.h
   7154  1.108  christos ac_fn_check_decl "$LINENO" "be32enc" "ac_cv_have_decl_be32enc" "#include <sys/endian.h>
   7155  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7156  1.108  christos if test "x$ac_cv_have_decl_be32enc" = xyes
   7157  1.108  christos then :
   7158   1.84  christos   ac_have_decl=1
   7159  1.108  christos else case e in #(
   7160  1.108  christos   e) ac_have_decl=0 ;;
   7161  1.108  christos esac
   7162   1.74  christos fi
   7163  1.108  christos printf "%s\n" "#define HAVE_DECL_BE32ENC $ac_have_decl" >>confdefs.h
   7164  1.108  christos ac_fn_check_decl "$LINENO" "le32enc" "ac_cv_have_decl_le32enc" "#include <sys/endian.h>
   7165  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7166  1.108  christos if test "x$ac_cv_have_decl_le32enc" = xyes
   7167  1.108  christos then :
   7168   1.84  christos   ac_have_decl=1
   7169  1.108  christos else case e in #(
   7170  1.108  christos   e) ac_have_decl=0 ;;
   7171  1.108  christos esac
   7172   1.54       wiz fi
   7173  1.108  christos printf "%s\n" "#define HAVE_DECL_LE32ENC $ac_have_decl" >>confdefs.h
   7174  1.108  christos ac_fn_check_decl "$LINENO" "be32dec" "ac_cv_have_decl_be32dec" "#include <sys/endian.h>
   7175  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7176  1.108  christos if test "x$ac_cv_have_decl_be32dec" = xyes
   7177  1.108  christos then :
   7178   1.84  christos   ac_have_decl=1
   7179  1.108  christos else case e in #(
   7180  1.108  christos   e) ac_have_decl=0 ;;
   7181  1.108  christos esac
   7182   1.84  christos fi
   7183  1.108  christos printf "%s\n" "#define HAVE_DECL_BE32DEC $ac_have_decl" >>confdefs.h
   7184  1.108  christos ac_fn_check_decl "$LINENO" "le32dec" "ac_cv_have_decl_le32dec" "#include <sys/endian.h>
   7185  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7186  1.108  christos if test "x$ac_cv_have_decl_le32dec" = xyes
   7187  1.108  christos then :
   7188   1.84  christos   ac_have_decl=1
   7189  1.108  christos else case e in #(
   7190  1.108  christos   e) ac_have_decl=0 ;;
   7191  1.108  christos esac
   7192   1.76     pooka fi
   7193  1.108  christos printf "%s\n" "#define HAVE_DECL_LE32DEC $ac_have_decl" >>confdefs.h
   7194  1.108  christos ac_fn_check_decl "$LINENO" "be64enc" "ac_cv_have_decl_be64enc" "#include <sys/endian.h>
   7195  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7196  1.108  christos if test "x$ac_cv_have_decl_be64enc" = xyes
   7197  1.108  christos then :
   7198   1.84  christos   ac_have_decl=1
   7199  1.108  christos else case e in #(
   7200  1.108  christos   e) ac_have_decl=0 ;;
   7201  1.108  christos esac
   7202   1.54       wiz fi
   7203  1.108  christos printf "%s\n" "#define HAVE_DECL_BE64ENC $ac_have_decl" >>confdefs.h
   7204  1.108  christos ac_fn_check_decl "$LINENO" "le64enc" "ac_cv_have_decl_le64enc" "#include <sys/endian.h>
   7205  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7206  1.108  christos if test "x$ac_cv_have_decl_le64enc" = xyes
   7207  1.108  christos then :
   7208   1.84  christos   ac_have_decl=1
   7209  1.108  christos else case e in #(
   7210  1.108  christos   e) ac_have_decl=0 ;;
   7211  1.108  christos esac
   7212   1.74  christos fi
   7213  1.108  christos printf "%s\n" "#define HAVE_DECL_LE64ENC $ac_have_decl" >>confdefs.h
   7214  1.108  christos ac_fn_check_decl "$LINENO" "be64dec" "ac_cv_have_decl_be64dec" "#include <sys/endian.h>
   7215  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7216  1.108  christos if test "x$ac_cv_have_decl_be64dec" = xyes
   7217  1.108  christos then :
   7218   1.84  christos   ac_have_decl=1
   7219  1.108  christos else case e in #(
   7220  1.108  christos   e) ac_have_decl=0 ;;
   7221  1.108  christos esac
   7222   1.84  christos fi
   7223  1.108  christos printf "%s\n" "#define HAVE_DECL_BE64DEC $ac_have_decl" >>confdefs.h
   7224  1.108  christos ac_fn_check_decl "$LINENO" "le64dec" "ac_cv_have_decl_le64dec" "#include <sys/endian.h>
   7225  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7226  1.108  christos if test "x$ac_cv_have_decl_le64dec" = xyes
   7227  1.108  christos then :
   7228   1.84  christos   ac_have_decl=1
   7229  1.108  christos else case e in #(
   7230  1.108  christos   e) ac_have_decl=0 ;;
   7231  1.108  christos esac
   7232   1.74  christos fi
   7233  1.108  christos printf "%s\n" "#define HAVE_DECL_LE64DEC $ac_have_decl" >>confdefs.h
   7234   1.84  christos 
   7235   1.74  christos 
   7236  1.108  christos ac_fn_check_decl "$LINENO" "fstatvfs" "ac_cv_have_decl_fstatvfs" "#include <sys/statvfs.h>
   7237  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7238  1.108  christos if test "x$ac_cv_have_decl_fstatvfs" = xyes
   7239  1.108  christos then :
   7240   1.84  christos   ac_have_decl=1
   7241  1.108  christos else case e in #(
   7242  1.108  christos   e) ac_have_decl=0 ;;
   7243  1.108  christos esac
   7244   1.84  christos fi
   7245  1.108  christos printf "%s\n" "#define HAVE_DECL_FSTATVFS $ac_have_decl" >>confdefs.h
   7246   1.54       wiz 
   7247   1.54       wiz 
   7248  1.108  christos ac_fn_check_decl "$LINENO" "setgroupent" "ac_cv_have_decl_setgroupent" "
   7249   1.76     pooka #include <sys/types.h>
   7250   1.76     pooka #include <grp.h>
   7251   1.76     pooka #include <pwd.h>
   7252   1.45       jmc 
   7253  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7254  1.108  christos if test "x$ac_cv_have_decl_setgroupent" = xyes
   7255  1.108  christos then :
   7256   1.84  christos   ac_have_decl=1
   7257  1.108  christos else case e in #(
   7258  1.108  christos   e) ac_have_decl=0 ;;
   7259  1.108  christos esac
   7260    1.1        tv fi
   7261  1.108  christos printf "%s\n" "#define HAVE_DECL_SETGROUPENT $ac_have_decl" >>confdefs.h
   7262  1.108  christos ac_fn_check_decl "$LINENO" "setpassent" "ac_cv_have_decl_setpassent" "
   7263   1.33   thorpej #include <sys/types.h>
   7264    1.8        tv #include <grp.h>
   7265    1.8        tv #include <pwd.h>
   7266    1.8        tv 
   7267  1.108  christos " "$ac_c_undeclared_builtin_options" "CFLAGS"
   7268  1.108  christos if test "x$ac_cv_have_decl_setpassent" = xyes
   7269  1.108  christos then :
   7270   1.84  christos   ac_have_decl=1
   7271  1.108  christos else case e in #(
   7272  1.108  christos   e) ac_have_decl=0 ;;
   7273  1.108  christos esac
   7274    1.8        tv fi
   7275  1.108  christos printf "%s\n" "#define HAVE_DECL_SETPASSENT $ac_have_decl" >>confdefs.h
   7276   1.76     pooka 
   7277    1.8        tv 
   7278    1.4        tv # regcomp() and regexec() are also names of functions in the old V8
   7279    1.4        tv # regexp package.  To avoid them, we need to find out who has regfree().
   7280    1.4        tv 
   7281  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regfree in -lregex" >&5
   7282  1.108  christos printf %s "checking for regfree in -lregex... " >&6; }
   7283  1.108  christos if test ${ac_cv_lib_regex_regfree+y}
   7284  1.108  christos then :
   7285  1.108  christos   printf %s "(cached) " >&6
   7286  1.108  christos else case e in #(
   7287  1.108  christos   e) ac_check_lib_save_LIBS=$LIBS
   7288    1.4        tv LIBS="-lregex  $LIBS"
   7289   1.84  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7290   1.84  christos /* end confdefs.h.  */
   7291    1.4        tv 
   7292   1.84  christos /* Override any GCC internal prototype to avoid an error.
   7293   1.84  christos    Use char because int might match the return type of a GCC
   7294  1.108  christos    builtin and then its argument prototype would still apply.
   7295  1.108  christos    The 'extern "C"' is for builds by C++ compilers;
   7296  1.108  christos    although this is not generally supported in C code supporting it here
   7297  1.108  christos    has little cost and some practical benefit (sr 110532).  */
   7298    1.4        tv #ifdef __cplusplus
   7299    1.4        tv extern "C"
   7300    1.4        tv #endif
   7301  1.108  christos char regfree (void);
   7302    1.4        tv int
   7303  1.108  christos main (void)
   7304    1.4        tv {
   7305   1.84  christos return regfree ();
   7306    1.4        tv   ;
   7307    1.4        tv   return 0;
   7308    1.4        tv }
   7309    1.4        tv _ACEOF
   7310  1.108  christos if ac_fn_c_try_link "$LINENO"
   7311  1.108  christos then :
   7312    1.4        tv   ac_cv_lib_regex_regfree=yes
   7313  1.108  christos else case e in #(
   7314  1.108  christos   e) ac_cv_lib_regex_regfree=no ;;
   7315  1.108  christos esac
   7316    1.4        tv fi
   7317  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7318   1.84  christos     conftest$ac_exeext conftest.$ac_ext
   7319  1.108  christos LIBS=$ac_check_lib_save_LIBS ;;
   7320  1.108  christos esac
   7321    1.4        tv fi
   7322  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regfree" >&5
   7323  1.108  christos printf "%s\n" "$ac_cv_lib_regex_regfree" >&6; }
   7324  1.108  christos if test "x$ac_cv_lib_regex_regfree" = xyes
   7325  1.108  christos then :
   7326  1.108  christos   printf "%s\n" "#define HAVE_LIBREGEX 1" >>confdefs.h
   7327    1.4        tv 
   7328    1.4        tv   LIBS="-lregex $LIBS"
   7329    1.4        tv 
   7330    1.4        tv fi
   7331    1.4        tv 
   7332  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
   7333  1.108  christos printf %s "checking for library containing regfree... " >&6; }
   7334  1.108  christos if test ${ac_cv_search_regfree+y}
   7335  1.108  christos then :
   7336  1.108  christos   printf %s "(cached) " >&6
   7337  1.108  christos else case e in #(
   7338  1.108  christos   e) ac_func_search_save_LIBS=$LIBS
   7339   1.84  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7340   1.84  christos /* end confdefs.h.  */
   7341    1.1        tv 
   7342   1.84  christos /* Override any GCC internal prototype to avoid an error.
   7343   1.84  christos    Use char because int might match the return type of a GCC
   7344  1.108  christos    builtin and then its argument prototype would still apply.
   7345  1.108  christos    The 'extern "C"' is for builds by C++ compilers;
   7346  1.108  christos    although this is not generally supported in C code supporting it here
   7347  1.108  christos    has little cost and some practical benefit (sr 110532).  */
   7348    1.1        tv #ifdef __cplusplus
   7349    1.1        tv extern "C"
   7350    1.1        tv #endif
   7351  1.108  christos char regfree (void);
   7352    1.1        tv int
   7353  1.108  christos main (void)
   7354    1.1        tv {
   7355   1.84  christos return regfree ();
   7356    1.1        tv   ;
   7357    1.1        tv   return 0;
   7358    1.1        tv }
   7359    1.1        tv _ACEOF
   7360  1.108  christos for ac_lib in '' rx posix
   7361  1.108  christos do
   7362   1.84  christos   if test -z "$ac_lib"; then
   7363   1.84  christos     ac_res="none required"
   7364   1.84  christos   else
   7365   1.84  christos     ac_res=-l$ac_lib
   7366   1.66   tsutsui     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7367   1.84  christos   fi
   7368  1.108  christos   if ac_fn_c_try_link "$LINENO"
   7369  1.108  christos then :
   7370   1.84  christos   ac_cv_search_regfree=$ac_res
   7371   1.84  christos fi
   7372  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7373   1.84  christos     conftest$ac_exeext
   7374  1.108  christos   if test ${ac_cv_search_regfree+y}
   7375  1.108  christos then :
   7376   1.84  christos   break
   7377   1.84  christos fi
   7378   1.84  christos done
   7379  1.108  christos if test ${ac_cv_search_regfree+y}
   7380  1.108  christos then :
   7381    1.1        tv 
   7382  1.108  christos else case e in #(
   7383  1.108  christos   e) ac_cv_search_regfree=no ;;
   7384  1.108  christos esac
   7385    1.1        tv fi
   7386   1.84  christos rm conftest.$ac_ext
   7387  1.108  christos LIBS=$ac_func_search_save_LIBS ;;
   7388  1.108  christos esac
   7389    1.1        tv fi
   7390  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
   7391  1.108  christos printf "%s\n" "$ac_cv_search_regfree" >&6; }
   7392   1.84  christos ac_res=$ac_cv_search_regfree
   7393  1.108  christos if test "$ac_res" != no
   7394  1.108  christos then :
   7395   1.84  christos   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7396    1.1        tv 
   7397    1.1        tv fi
   7398    1.1        tv 
   7399   1.84  christos 
   7400  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
   7401  1.108  christos printf %s "checking for clock_gettime in -lrt... " >&6; }
   7402  1.108  christos if test ${ac_cv_lib_rt_clock_gettime+y}
   7403  1.108  christos then :
   7404  1.108  christos   printf %s "(cached) " >&6
   7405  1.108  christos else case e in #(
   7406  1.108  christos   e) ac_check_lib_save_LIBS=$LIBS
   7407   1.78  jmcneill LIBS="-lrt  $LIBS"
   7408   1.84  christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7409   1.84  christos /* end confdefs.h.  */
   7410   1.78  jmcneill 
   7411   1.84  christos /* Override any GCC internal prototype to avoid an error.
   7412   1.84  christos    Use char because int might match the return type of a GCC
   7413  1.108  christos    builtin and then its argument prototype would still apply.
   7414  1.108  christos    The 'extern "C"' is for builds by C++ compilers;
   7415  1.108  christos    although this is not generally supported in C code supporting it here
   7416  1.108  christos    has little cost and some practical benefit (sr 110532).  */
   7417   1.78  jmcneill #ifdef __cplusplus
   7418   1.78  jmcneill extern "C"
   7419   1.78  jmcneill #endif
   7420  1.108  christos char clock_gettime (void);
   7421   1.78  jmcneill int
   7422  1.108  christos main (void)
   7423   1.78  jmcneill {
   7424   1.84  christos return clock_gettime ();
   7425   1.78  jmcneill   ;
   7426   1.78  jmcneill   return 0;
   7427   1.78  jmcneill }
   7428   1.78  jmcneill _ACEOF
   7429  1.108  christos if ac_fn_c_try_link "$LINENO"
   7430  1.108  christos then :
   7431   1.78  jmcneill   ac_cv_lib_rt_clock_gettime=yes
   7432  1.108  christos else case e in #(
   7433  1.108  christos   e) ac_cv_lib_rt_clock_gettime=no ;;
   7434  1.108  christos esac
   7435   1.78  jmcneill fi
   7436  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7437   1.84  christos     conftest$ac_exeext conftest.$ac_ext
   7438  1.108  christos LIBS=$ac_check_lib_save_LIBS ;;
   7439  1.108  christos esac
   7440   1.78  jmcneill fi
   7441  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
   7442  1.108  christos printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
   7443  1.108  christos if test "x$ac_cv_lib_rt_clock_gettime" = xyes
   7444  1.108  christos then :
   7445  1.108  christos   printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
   7446   1.78  jmcneill 
   7447   1.78  jmcneill   LIBS="-lrt $LIBS"
   7448   1.78  jmcneill 
   7449   1.78  jmcneill fi
   7450   1.78  jmcneill 
   7451   1.84  christos 
   7452  1.108  christos 
   7453  1.108  christos   for ac_func in fparseln
   7454   1.84  christos do :
   7455   1.84  christos   ac_fn_c_check_func "$LINENO" "fparseln" "ac_cv_func_fparseln"
   7456  1.108  christos if test "x$ac_cv_func_fparseln" = xyes
   7457  1.108  christos then :
   7458  1.108  christos   printf "%s\n" "#define HAVE_FPARSELN 1" >>confdefs.h
   7459  1.108  christos 
   7460  1.108  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fparseln seems to work" >&5
   7461  1.108  christos printf %s "checking if fparseln seems to work... " >&6; }
   7462  1.108  christos     if test "$cross_compiling" = yes
   7463  1.108  christos then :
   7464  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking farseln" >&5
   7465  1.108  christos printf "%s\n" "$as_me: WARNING: cross compiling: not checking farseln" >&2;}
   7466   1.84  christos 
   7467  1.108  christos else case e in #(
   7468  1.108  christos   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7469   1.84  christos /* end confdefs.h.  */
   7470   1.68   tnozaki 
   7471   1.68   tnozaki #define _NETBSD_SOURCE
   7472   1.68   tnozaki #include <stdio.h>
   7473   1.68   tnozaki #include <stdlib.h>
   7474   1.68   tnozaki #define CONFTEST	"conftest.fparseln"
   7475   1.68   tnozaki #define COMMENT		'#'
   7476   1.68   tnozaki int
   7477   1.68   tnozaki main(void)
   7478   1.68   tnozaki {
   7479   1.68   tnozaki 	static const char delim[3] = { '\0', '\0', COMMENT };
   7480   1.68   tnozaki 	FILE *fp;
   7481   1.68   tnozaki 	char *ptr;
   7482   1.68   tnozaki 	fp = fopen(CONFTEST, "w+");
   7483   1.68   tnozaki 	if (fp != NULL) {
   7484   1.68   tnozaki 		unlink(CONFTEST);
   7485   1.68   tnozaki 		ungetc(COMMENT, fp);
   7486   1.68   tnozaki 		ptr = fparseln(fp, NULL, NULL, delim,
   7487   1.68   tnozaki 		    FPARSELN_UNESCALL);
   7488   1.68   tnozaki 		fclose(fp);
   7489   1.68   tnozaki 		if (ptr == NULL)
   7490   1.68   tnozaki 			exit(0);
   7491   1.68   tnozaki 	}
   7492   1.68   tnozaki 	exit(1);
   7493   1.68   tnozaki }
   7494   1.68   tnozaki 
   7495   1.68   tnozaki _ACEOF
   7496  1.108  christos if ac_fn_c_try_run "$LINENO"
   7497  1.108  christos then :
   7498  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7499  1.108  christos printf "%s\n" "yes" >&6; }
   7500  1.108  christos else case e in #(
   7501  1.108  christos   e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7502  1.108  christos printf "%s\n" "no" >&6; }
   7503   1.68   tnozaki 
   7504  1.108  christos printf "%s\n" "#define BROKEN_FPARSELN 1" >>confdefs.h
   7505  1.108  christos  ;;
   7506  1.108  christos esac
   7507   1.68   tnozaki fi
   7508   1.84  christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7509  1.108  christos   conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
   7510  1.108  christos esac
   7511   1.68   tnozaki fi
   7512   1.68   tnozaki 
   7513   1.84  christos 
   7514   1.68   tnozaki fi
   7515  1.108  christos 
   7516   1.68   tnozaki done
   7517   1.68   tnozaki 
   7518   1.84  christos 
   7519  1.104     lukem nb_cv_check_cc_flags=
   7520  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
   7521  1.108  christos printf %s "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
   7522  1.108  christos if test ${ax_cv_check_cflags___Werror_unknown_warning_option+y}
   7523  1.108  christos then :
   7524  1.108  christos   printf %s "(cached) " >&6
   7525  1.108  christos else case e in #(
   7526  1.108  christos   e)
   7527  1.102     lukem   ax_check_save_flags=$CFLAGS
   7528  1.102     lukem   CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
   7529  1.102     lukem   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7530  1.102     lukem /* end confdefs.h.  */
   7531  1.102     lukem 
   7532  1.102     lukem int
   7533  1.108  christos main (void)
   7534  1.102     lukem {
   7535  1.102     lukem 
   7536  1.102     lukem   ;
   7537  1.102     lukem   return 0;
   7538  1.102     lukem }
   7539  1.102     lukem _ACEOF
   7540  1.108  christos if ac_fn_c_try_compile "$LINENO"
   7541  1.108  christos then :
   7542  1.102     lukem   ax_cv_check_cflags___Werror_unknown_warning_option=yes
   7543  1.108  christos else case e in #(
   7544  1.108  christos   e) ax_cv_check_cflags___Werror_unknown_warning_option=no ;;
   7545  1.108  christos esac
   7546  1.102     lukem fi
   7547  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7548  1.108  christos   CFLAGS=$ax_check_save_flags ;;
   7549  1.108  christos esac
   7550  1.102     lukem fi
   7551  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
   7552  1.108  christos printf "%s\n" "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
   7553  1.108  christos if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes
   7554  1.108  christos then :
   7555  1.104     lukem   nb_cv_check_cc_flags=-Werror=unknown-warning-option
   7556  1.108  christos else case e in #(
   7557  1.108  christos   e) : ;;
   7558  1.108  christos esac
   7559  1.102     lukem fi
   7560  1.102     lukem 
   7561  1.102     lukem 
   7562  1.108  christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-no-cpp-precomp" | sed "$as_sed_sh"`
   7563  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-cpp-precomp" >&5
   7564  1.108  christos printf %s "checking whether C compiler accepts -no-cpp-precomp... " >&6; }
   7565  1.108  christos if eval test \${$as_CACHEVAR+y}
   7566  1.108  christos then :
   7567  1.108  christos   printf %s "(cached) " >&6
   7568  1.108  christos else case e in #(
   7569  1.108  christos   e)
   7570  1.102     lukem   ax_check_save_flags=$CFLAGS
   7571  1.104     lukem   CFLAGS="$CFLAGS $nb_cv_check_cc_flags -no-cpp-precomp"
   7572  1.102     lukem   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7573  1.102     lukem /* end confdefs.h.  */
   7574  1.102     lukem 
   7575  1.102     lukem int
   7576  1.108  christos main (void)
   7577  1.102     lukem {
   7578  1.102     lukem 
   7579  1.102     lukem   ;
   7580  1.102     lukem   return 0;
   7581  1.102     lukem }
   7582  1.102     lukem _ACEOF
   7583  1.108  christos if ac_fn_c_try_compile "$LINENO"
   7584  1.108  christos then :
   7585  1.102     lukem   eval "$as_CACHEVAR=yes"
   7586  1.108  christos else case e in #(
   7587  1.108  christos   e) eval "$as_CACHEVAR=no" ;;
   7588  1.108  christos esac
   7589  1.102     lukem fi
   7590  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7591  1.108  christos   CFLAGS=$ax_check_save_flags ;;
   7592  1.108  christos esac
   7593  1.102     lukem fi
   7594  1.102     lukem eval ac_res=\$$as_CACHEVAR
   7595  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7596  1.108  christos printf "%s\n" "$ac_res" >&6; }
   7597  1.108  christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
   7598  1.108  christos then :
   7599  1.102     lukem   CC_NO_CPP_PRECOMP=-no-cpp-precomp
   7600  1.108  christos else case e in #(
   7601  1.108  christos   e) : ;;
   7602  1.108  christos esac
   7603  1.102     lukem fi
   7604  1.102     lukem 
   7605  1.102     lukem 
   7606  1.102     lukem 
   7607  1.102     lukem 
   7608  1.108  christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Waddress-of-packed-member" | sed "$as_sed_sh"`
   7609  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress-of-packed-member" >&5
   7610  1.108  christos printf %s "checking whether C compiler accepts -Waddress-of-packed-member... " >&6; }
   7611  1.108  christos if eval test \${$as_CACHEVAR+y}
   7612  1.108  christos then :
   7613  1.108  christos   printf %s "(cached) " >&6
   7614  1.108  christos else case e in #(
   7615  1.108  christos   e)
   7616  1.103     lukem   ax_check_save_flags=$CFLAGS
   7617  1.104     lukem   CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Waddress-of-packed-member"
   7618  1.103     lukem   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7619  1.103     lukem /* end confdefs.h.  */
   7620  1.103     lukem 
   7621  1.103     lukem int
   7622  1.108  christos main (void)
   7623  1.103     lukem {
   7624  1.103     lukem 
   7625  1.103     lukem   ;
   7626  1.103     lukem   return 0;
   7627  1.103     lukem }
   7628  1.103     lukem _ACEOF
   7629  1.108  christos if ac_fn_c_try_compile "$LINENO"
   7630  1.108  christos then :
   7631  1.103     lukem   eval "$as_CACHEVAR=yes"
   7632  1.108  christos else case e in #(
   7633  1.108  christos   e) eval "$as_CACHEVAR=no" ;;
   7634  1.108  christos esac
   7635  1.103     lukem fi
   7636  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7637  1.108  christos   CFLAGS=$ax_check_save_flags ;;
   7638  1.108  christos esac
   7639  1.103     lukem fi
   7640  1.103     lukem eval ac_res=\$$as_CACHEVAR
   7641  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7642  1.108  christos printf "%s\n" "$ac_res" >&6; }
   7643  1.108  christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
   7644  1.108  christos then :
   7645  1.103     lukem   CC_WNO_ADDRESS_OF_PACKED_MEMBER=-Wno-address-of-packed-member
   7646  1.108  christos else case e in #(
   7647  1.108  christos   e) : ;;
   7648  1.108  christos esac
   7649  1.103     lukem fi
   7650  1.103     lukem 
   7651  1.103     lukem 
   7652  1.103     lukem 
   7653  1.108  christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wcast-function-type" | sed "$as_sed_sh"`
   7654  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-function-type" >&5
   7655  1.108  christos printf %s "checking whether C compiler accepts -Wcast-function-type... " >&6; }
   7656  1.108  christos if eval test \${$as_CACHEVAR+y}
   7657  1.108  christos then :
   7658  1.108  christos   printf %s "(cached) " >&6
   7659  1.108  christos else case e in #(
   7660  1.108  christos   e)
   7661  1.103     lukem   ax_check_save_flags=$CFLAGS
   7662  1.104     lukem   CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wcast-function-type"
   7663  1.103     lukem   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7664  1.103     lukem /* end confdefs.h.  */
   7665  1.103     lukem 
   7666  1.103     lukem int
   7667  1.108  christos main (void)
   7668  1.103     lukem {
   7669  1.103     lukem 
   7670  1.103     lukem   ;
   7671  1.103     lukem   return 0;
   7672  1.103     lukem }
   7673  1.103     lukem _ACEOF
   7674  1.108  christos if ac_fn_c_try_compile "$LINENO"
   7675  1.108  christos then :
   7676  1.103     lukem   eval "$as_CACHEVAR=yes"
   7677  1.108  christos else case e in #(
   7678  1.108  christos   e) eval "$as_CACHEVAR=no" ;;
   7679  1.108  christos esac
   7680  1.103     lukem fi
   7681  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7682  1.108  christos   CFLAGS=$ax_check_save_flags ;;
   7683  1.108  christos esac
   7684  1.103     lukem fi
   7685  1.103     lukem eval ac_res=\$$as_CACHEVAR
   7686  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7687  1.108  christos printf "%s\n" "$ac_res" >&6; }
   7688  1.108  christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
   7689  1.108  christos then :
   7690  1.103     lukem   CC_WNO_CAST_FUNCTION_TYPE=-Wno-cast-function-type
   7691  1.108  christos else case e in #(
   7692  1.108  christos   e) : ;;
   7693  1.108  christos esac
   7694  1.103     lukem fi
   7695  1.103     lukem 
   7696  1.103     lukem 
   7697  1.103     lukem 
   7698  1.108  christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Werror=address-of-packed-member" | sed "$as_sed_sh"`
   7699  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=address-of-packed-member" >&5
   7700  1.108  christos printf %s "checking whether C compiler accepts -Werror=address-of-packed-member... " >&6; }
   7701  1.108  christos if eval test \${$as_CACHEVAR+y}
   7702  1.108  christos then :
   7703  1.108  christos   printf %s "(cached) " >&6
   7704  1.108  christos else case e in #(
   7705  1.108  christos   e)
   7706  1.103     lukem   ax_check_save_flags=$CFLAGS
   7707  1.104     lukem   CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Werror=address-of-packed-member"
   7708  1.103     lukem   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7709  1.103     lukem /* end confdefs.h.  */
   7710  1.103     lukem 
   7711  1.103     lukem int
   7712  1.108  christos main (void)
   7713  1.103     lukem {
   7714  1.103     lukem 
   7715  1.103     lukem   ;
   7716  1.103     lukem   return 0;
   7717  1.103     lukem }
   7718  1.103     lukem _ACEOF
   7719  1.108  christos if ac_fn_c_try_compile "$LINENO"
   7720  1.108  christos then :
   7721  1.103     lukem   eval "$as_CACHEVAR=yes"
   7722  1.108  christos else case e in #(
   7723  1.108  christos   e) eval "$as_CACHEVAR=no" ;;
   7724  1.108  christos esac
   7725  1.103     lukem fi
   7726  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7727  1.108  christos   CFLAGS=$ax_check_save_flags ;;
   7728  1.108  christos esac
   7729  1.103     lukem fi
   7730  1.103     lukem eval ac_res=\$$as_CACHEVAR
   7731  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7732  1.108  christos printf "%s\n" "$ac_res" >&6; }
   7733  1.108  christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
   7734  1.108  christos then :
   7735  1.103     lukem   CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER=-Wno-error=address-of-packed-member
   7736  1.108  christos else case e in #(
   7737  1.108  christos   e) : ;;
   7738  1.108  christos esac
   7739  1.103     lukem fi
   7740  1.103     lukem 
   7741  1.103     lukem 
   7742  1.103     lukem 
   7743  1.108  christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wformat-overflow" | sed "$as_sed_sh"`
   7744  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-overflow" >&5
   7745  1.108  christos printf %s "checking whether C compiler accepts -Wformat-overflow... " >&6; }
   7746  1.108  christos if eval test \${$as_CACHEVAR+y}
   7747  1.108  christos then :
   7748  1.108  christos   printf %s "(cached) " >&6
   7749  1.108  christos else case e in #(
   7750  1.108  christos   e)
   7751  1.103     lukem   ax_check_save_flags=$CFLAGS
   7752  1.104     lukem   CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wformat-overflow"
   7753  1.103     lukem   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7754  1.103     lukem /* end confdefs.h.  */
   7755  1.103     lukem 
   7756  1.103     lukem int
   7757  1.108  christos main (void)
   7758  1.103     lukem {
   7759  1.103     lukem 
   7760  1.103     lukem   ;
   7761  1.103     lukem   return 0;
   7762  1.103     lukem }
   7763  1.103     lukem _ACEOF
   7764  1.108  christos if ac_fn_c_try_compile "$LINENO"
   7765  1.108  christos then :
   7766  1.103     lukem   eval "$as_CACHEVAR=yes"
   7767  1.108  christos else case e in #(
   7768  1.108  christos   e) eval "$as_CACHEVAR=no" ;;
   7769  1.108  christos esac
   7770  1.103     lukem fi
   7771  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7772  1.108  christos   CFLAGS=$ax_check_save_flags ;;
   7773  1.108  christos esac
   7774  1.103     lukem fi
   7775  1.103     lukem eval ac_res=\$$as_CACHEVAR
   7776  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7777  1.108  christos printf "%s\n" "$ac_res" >&6; }
   7778  1.108  christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
   7779  1.108  christos then :
   7780  1.103     lukem   CC_WNO_FORMAT_OVERFLOW=-Wno-format-overflow
   7781  1.108  christos else case e in #(
   7782  1.108  christos   e) : ;;
   7783  1.108  christos esac
   7784  1.103     lukem fi
   7785  1.103     lukem 
   7786  1.103     lukem 
   7787  1.103     lukem 
   7788  1.108  christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wformat-truncation" | sed "$as_sed_sh"`
   7789  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5
   7790  1.108  christos printf %s "checking whether C compiler accepts -Wformat-truncation... " >&6; }
   7791  1.108  christos if eval test \${$as_CACHEVAR+y}
   7792  1.108  christos then :
   7793  1.108  christos   printf %s "(cached) " >&6
   7794  1.108  christos else case e in #(
   7795  1.108  christos   e)
   7796  1.102     lukem   ax_check_save_flags=$CFLAGS
   7797  1.104     lukem   CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wformat-truncation"
   7798  1.102     lukem   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7799  1.102     lukem /* end confdefs.h.  */
   7800  1.102     lukem 
   7801  1.102     lukem int
   7802  1.108  christos main (void)
   7803  1.102     lukem {
   7804  1.102     lukem 
   7805  1.102     lukem   ;
   7806  1.102     lukem   return 0;
   7807  1.102     lukem }
   7808  1.102     lukem _ACEOF
   7809  1.108  christos if ac_fn_c_try_compile "$LINENO"
   7810  1.108  christos then :
   7811  1.102     lukem   eval "$as_CACHEVAR=yes"
   7812  1.108  christos else case e in #(
   7813  1.108  christos   e) eval "$as_CACHEVAR=no" ;;
   7814  1.108  christos esac
   7815  1.102     lukem fi
   7816  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7817  1.108  christos   CFLAGS=$ax_check_save_flags ;;
   7818  1.108  christos esac
   7819  1.102     lukem fi
   7820  1.102     lukem eval ac_res=\$$as_CACHEVAR
   7821  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7822  1.108  christos printf "%s\n" "$ac_res" >&6; }
   7823  1.108  christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
   7824  1.108  christos then :
   7825  1.102     lukem   CC_WNO_FORMAT_TRUNCATION=-Wno-format-truncation
   7826  1.108  christos else case e in #(
   7827  1.108  christos   e) : ;;
   7828  1.108  christos esac
   7829  1.102     lukem fi
   7830  1.102     lukem 
   7831  1.102     lukem 
   7832  1.102     lukem 
   7833  1.108  christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wimplicit-fallthrough" | sed "$as_sed_sh"`
   7834  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wimplicit-fallthrough" >&5
   7835  1.108  christos printf %s "checking whether C compiler accepts -Wimplicit-fallthrough... " >&6; }
   7836  1.108  christos if eval test \${$as_CACHEVAR+y}
   7837  1.108  christos then :
   7838  1.108  christos   printf %s "(cached) " >&6
   7839  1.108  christos else case e in #(
   7840  1.108  christos   e)
   7841  1.103     lukem   ax_check_save_flags=$CFLAGS
   7842  1.104     lukem   CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wimplicit-fallthrough"
   7843  1.103     lukem   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7844  1.103     lukem /* end confdefs.h.  */
   7845  1.103     lukem 
   7846  1.103     lukem int
   7847  1.108  christos main (void)
   7848  1.103     lukem {
   7849  1.103     lukem 
   7850  1.103     lukem   ;
   7851  1.103     lukem   return 0;
   7852  1.103     lukem }
   7853  1.103     lukem _ACEOF
   7854  1.108  christos if ac_fn_c_try_compile "$LINENO"
   7855  1.108  christos then :
   7856  1.103     lukem   eval "$as_CACHEVAR=yes"
   7857  1.108  christos else case e in #(
   7858  1.108  christos   e) eval "$as_CACHEVAR=no" ;;
   7859  1.108  christos esac
   7860  1.103     lukem fi
   7861  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7862  1.108  christos   CFLAGS=$ax_check_save_flags ;;
   7863  1.108  christos esac
   7864  1.103     lukem fi
   7865  1.103     lukem eval ac_res=\$$as_CACHEVAR
   7866  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7867  1.108  christos printf "%s\n" "$ac_res" >&6; }
   7868  1.108  christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
   7869  1.108  christos then :
   7870  1.103     lukem   CC_WNO_IMPLICIT_FALLTHROUGH=-Wno-implicit-fallthrough
   7871  1.108  christos else case e in #(
   7872  1.108  christos   e) : ;;
   7873  1.108  christos esac
   7874  1.103     lukem fi
   7875  1.103     lukem 
   7876  1.103     lukem 
   7877  1.103     lukem 
   7878  1.108  christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wmaybe-uninitialized" | sed "$as_sed_sh"`
   7879  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmaybe-uninitialized" >&5
   7880  1.108  christos printf %s "checking whether C compiler accepts -Wmaybe-uninitialized... " >&6; }
   7881  1.108  christos if eval test \${$as_CACHEVAR+y}
   7882  1.108  christos then :
   7883  1.108  christos   printf %s "(cached) " >&6
   7884  1.108  christos else case e in #(
   7885  1.108  christos   e)
   7886  1.102     lukem   ax_check_save_flags=$CFLAGS
   7887  1.104     lukem   CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wmaybe-uninitialized"
   7888  1.102     lukem   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7889  1.102     lukem /* end confdefs.h.  */
   7890  1.102     lukem 
   7891  1.102     lukem int
   7892  1.108  christos main (void)
   7893  1.102     lukem {
   7894  1.102     lukem 
   7895  1.102     lukem   ;
   7896  1.102     lukem   return 0;
   7897  1.102     lukem }
   7898  1.102     lukem _ACEOF
   7899  1.108  christos if ac_fn_c_try_compile "$LINENO"
   7900  1.108  christos then :
   7901  1.102     lukem   eval "$as_CACHEVAR=yes"
   7902  1.108  christos else case e in #(
   7903  1.108  christos   e) eval "$as_CACHEVAR=no" ;;
   7904  1.108  christos esac
   7905  1.102     lukem fi
   7906  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7907  1.108  christos   CFLAGS=$ax_check_save_flags ;;
   7908  1.108  christos esac
   7909  1.102     lukem fi
   7910  1.102     lukem eval ac_res=\$$as_CACHEVAR
   7911  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7912  1.108  christos printf "%s\n" "$ac_res" >&6; }
   7913  1.108  christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
   7914  1.108  christos then :
   7915  1.102     lukem   CC_WNO_MAYBE_UNINITIALIZED=-Wno-maybe-uninitialized
   7916  1.108  christos else case e in #(
   7917  1.108  christos   e) : ;;
   7918  1.108  christos esac
   7919  1.102     lukem fi
   7920  1.102     lukem 
   7921  1.102     lukem 
   7922  1.102     lukem 
   7923  1.108  christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wreturn-local-addr" | sed "$as_sed_sh"`
   7924  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wreturn-local-addr" >&5
   7925  1.108  christos printf %s "checking whether C compiler accepts -Wreturn-local-addr... " >&6; }
   7926  1.108  christos if eval test \${$as_CACHEVAR+y}
   7927  1.108  christos then :
   7928  1.108  christos   printf %s "(cached) " >&6
   7929  1.108  christos else case e in #(
   7930  1.108  christos   e)
   7931  1.103     lukem   ax_check_save_flags=$CFLAGS
   7932  1.104     lukem   CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wreturn-local-addr"
   7933  1.103     lukem   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7934  1.103     lukem /* end confdefs.h.  */
   7935  1.103     lukem 
   7936  1.103     lukem int
   7937  1.108  christos main (void)
   7938  1.103     lukem {
   7939  1.103     lukem 
   7940  1.103     lukem   ;
   7941  1.103     lukem   return 0;
   7942  1.103     lukem }
   7943  1.103     lukem _ACEOF
   7944  1.108  christos if ac_fn_c_try_compile "$LINENO"
   7945  1.108  christos then :
   7946  1.103     lukem   eval "$as_CACHEVAR=yes"
   7947  1.108  christos else case e in #(
   7948  1.108  christos   e) eval "$as_CACHEVAR=no" ;;
   7949  1.108  christos esac
   7950  1.103     lukem fi
   7951  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7952  1.108  christos   CFLAGS=$ax_check_save_flags ;;
   7953  1.108  christos esac
   7954  1.103     lukem fi
   7955  1.103     lukem eval ac_res=\$$as_CACHEVAR
   7956  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7957  1.108  christos printf "%s\n" "$ac_res" >&6; }
   7958  1.108  christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
   7959  1.108  christos then :
   7960  1.103     lukem   CC_WNO_RETURN_LOCAL_ADDR=-Wno-return-local-addr
   7961  1.108  christos else case e in #(
   7962  1.108  christos   e) : ;;
   7963  1.108  christos esac
   7964  1.103     lukem fi
   7965  1.103     lukem 
   7966  1.103     lukem 
   7967  1.103     lukem 
   7968  1.108  christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wstringop-overflow" | sed "$as_sed_sh"`
   7969  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-overflow" >&5
   7970  1.108  christos printf %s "checking whether C compiler accepts -Wstringop-overflow... " >&6; }
   7971  1.108  christos if eval test \${$as_CACHEVAR+y}
   7972  1.108  christos then :
   7973  1.108  christos   printf %s "(cached) " >&6
   7974  1.108  christos else case e in #(
   7975  1.108  christos   e)
   7976  1.102     lukem   ax_check_save_flags=$CFLAGS
   7977  1.104     lukem   CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wstringop-overflow"
   7978  1.102     lukem   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7979  1.102     lukem /* end confdefs.h.  */
   7980  1.102     lukem 
   7981  1.102     lukem int
   7982  1.108  christos main (void)
   7983  1.102     lukem {
   7984  1.102     lukem 
   7985  1.102     lukem   ;
   7986  1.102     lukem   return 0;
   7987  1.102     lukem }
   7988  1.102     lukem _ACEOF
   7989  1.108  christos if ac_fn_c_try_compile "$LINENO"
   7990  1.108  christos then :
   7991  1.102     lukem   eval "$as_CACHEVAR=yes"
   7992  1.108  christos else case e in #(
   7993  1.108  christos   e) eval "$as_CACHEVAR=no" ;;
   7994  1.108  christos esac
   7995  1.102     lukem fi
   7996  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7997  1.108  christos   CFLAGS=$ax_check_save_flags ;;
   7998  1.108  christos esac
   7999  1.102     lukem fi
   8000  1.102     lukem eval ac_res=\$$as_CACHEVAR
   8001  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   8002  1.108  christos printf "%s\n" "$ac_res" >&6; }
   8003  1.108  christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
   8004  1.108  christos then :
   8005  1.102     lukem   CC_WNO_STRINGOP_OVERFLOW=-Wno-stringop-overflow
   8006  1.108  christos else case e in #(
   8007  1.108  christos   e) : ;;
   8008  1.108  christos esac
   8009  1.102     lukem fi
   8010  1.102     lukem 
   8011  1.102     lukem 
   8012  1.102     lukem 
   8013  1.108  christos as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$nb_cv_check_cc_flags_-Wstringop-truncation" | sed "$as_sed_sh"`
   8014  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-truncation" >&5
   8015  1.108  christos printf %s "checking whether C compiler accepts -Wstringop-truncation... " >&6; }
   8016  1.108  christos if eval test \${$as_CACHEVAR+y}
   8017  1.108  christos then :
   8018  1.108  christos   printf %s "(cached) " >&6
   8019  1.108  christos else case e in #(
   8020  1.108  christos   e)
   8021  1.102     lukem   ax_check_save_flags=$CFLAGS
   8022  1.104     lukem   CFLAGS="$CFLAGS $nb_cv_check_cc_flags -Wstringop-truncation"
   8023  1.102     lukem   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8024  1.102     lukem /* end confdefs.h.  */
   8025  1.102     lukem 
   8026  1.102     lukem int
   8027  1.108  christos main (void)
   8028  1.102     lukem {
   8029  1.102     lukem 
   8030  1.102     lukem   ;
   8031  1.102     lukem   return 0;
   8032  1.102     lukem }
   8033  1.102     lukem _ACEOF
   8034  1.108  christos if ac_fn_c_try_compile "$LINENO"
   8035  1.108  christos then :
   8036  1.102     lukem   eval "$as_CACHEVAR=yes"
   8037  1.108  christos else case e in #(
   8038  1.108  christos   e) eval "$as_CACHEVAR=no" ;;
   8039  1.108  christos esac
   8040  1.102     lukem fi
   8041  1.108  christos rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8042  1.108  christos   CFLAGS=$ax_check_save_flags ;;
   8043  1.108  christos esac
   8044  1.102     lukem fi
   8045  1.102     lukem eval ac_res=\$$as_CACHEVAR
   8046  1.108  christos 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   8047  1.108  christos printf "%s\n" "$ac_res" >&6; }
   8048  1.108  christos if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
   8049  1.108  christos then :
   8050  1.102     lukem   CC_WNO_STRINGOP_TRUNCATION=-Wno-stringop-truncation
   8051  1.108  christos else case e in #(
   8052  1.108  christos   e) : ;;
   8053  1.108  christos esac
   8054  1.102     lukem fi
   8055  1.102     lukem 
   8056  1.102     lukem 
   8057  1.102     lukem 
   8058  1.102     lukem 
   8059    1.1        tv cat >confcache <<\_ACEOF
   8060    1.1        tv # This file is a shell script that caches the results of configure
   8061    1.1        tv # tests run on this system so they can be shared between configure
   8062    1.1        tv # scripts and configure runs, see configure's option --config-cache.
   8063    1.1        tv # It is not useful on other systems.  If it contains results you don't
   8064    1.1        tv # want to keep, you may remove or edit it.
   8065    1.1        tv #
   8066    1.1        tv # config.status only pays attention to the cache file if you give it
   8067    1.1        tv # the --recheck option to rerun configure.
   8068    1.1        tv #
   8069  1.108  christos # 'ac_cv_env_foo' variables (set or unset) will be overridden when
   8070  1.108  christos # loading this file, other *unset* 'ac_cv_foo' will be assigned the
   8071    1.1        tv # following values.
   8072    1.1        tv 
   8073    1.1        tv _ACEOF
   8074    1.1        tv 
   8075    1.1        tv # The following way of writing the cache mishandles newlines in values,
   8076    1.1        tv # but we know of no workaround that is simple, portable, and efficient.
   8077   1.84  christos # So, we kill variables containing newlines.
   8078   1.84  christos # Ultrix sh set writes to stderr and can't be redirected directly,
   8079   1.84  christos # and sets the high bit in the cache file unless we assign to the vars.
   8080   1.84  christos (
   8081   1.84  christos   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   8082   1.84  christos     eval ac_val=\$$ac_var
   8083   1.84  christos     case $ac_val in #(
   8084   1.84  christos     *${as_nl}*)
   8085   1.84  christos       case $ac_var in #(
   8086  1.108  christos       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   8087  1.108  christos printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   8088   1.84  christos       esac
   8089   1.84  christos       case $ac_var in #(
   8090   1.84  christos       _ | IFS | as_nl) ;; #(
   8091   1.84  christos       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   8092   1.84  christos       *) { eval $ac_var=; unset $ac_var;} ;;
   8093   1.84  christos       esac ;;
   8094   1.84  christos     esac
   8095   1.84  christos   done
   8096   1.84  christos 
   8097   1.65  christos   (set) 2>&1 |
   8098   1.84  christos     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   8099   1.84  christos     *${as_nl}ac_space=\ *)
   8100  1.108  christos       # 'set' does not quote correctly, so add quotes: double-quote
   8101   1.84  christos       # substitution turns \\\\ into \\, and sed turns \\ into \.
   8102   1.65  christos       sed -n \
   8103   1.84  christos 	"s/'/'\\\\''/g;
   8104   1.84  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   8105   1.84  christos       ;; #(
   8106   1.65  christos     *)
   8107  1.108  christos       # 'set' quotes correctly as required by POSIX, so do not add quotes.
   8108   1.84  christos       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   8109   1.65  christos       ;;
   8110   1.84  christos     esac |
   8111   1.84  christos     sort
   8112   1.84  christos ) |
   8113   1.65  christos   sed '
   8114   1.84  christos      /^ac_cv_env_/b end
   8115   1.65  christos      t clear
   8116   1.84  christos      :clear
   8117  1.108  christos      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
   8118   1.65  christos      t end
   8119   1.84  christos      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   8120   1.84  christos      :end' >>confcache
   8121   1.84  christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   8122   1.84  christos   if test -w "$cache_file"; then
   8123   1.84  christos     if test "x$cache_file" != "x/dev/null"; then
   8124  1.108  christos       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   8125  1.108  christos printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
   8126   1.84  christos       if test ! -f "$cache_file" || test -h "$cache_file"; then
   8127   1.84  christos 	cat confcache >"$cache_file"
   8128   1.84  christos       else
   8129   1.84  christos         case $cache_file in #(
   8130   1.84  christos         */* | ?:*)
   8131   1.84  christos 	  mv -f confcache "$cache_file"$$ &&
   8132   1.84  christos 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   8133   1.84  christos         *)
   8134   1.84  christos 	  mv -f confcache "$cache_file" ;;
   8135   1.84  christos 	esac
   8136   1.84  christos       fi
   8137   1.84  christos     fi
   8138   1.65  christos   else
   8139  1.108  christos     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   8140  1.108  christos printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
   8141   1.65  christos   fi
   8142   1.65  christos fi
   8143   1.66   tsutsui rm -f confcache
   8144   1.65  christos 
   8145   1.66   tsutsui test "x$prefix" = xNONE && prefix=$ac_default_prefix
   8146   1.66   tsutsui # Let make expand exec_prefix.
   8147   1.66   tsutsui test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   8148   1.65  christos 
   8149   1.84  christos DEFS=-DHAVE_CONFIG_H
   8150   1.84  christos 
   8151   1.84  christos ac_libobjs=
   8152   1.84  christos ac_ltlibobjs=
   8153   1.84  christos U=
   8154   1.84  christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   8155   1.84  christos   # 1. Remove the extension, and $U if already installed.
   8156   1.84  christos   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   8157  1.108  christos   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
   8158   1.84  christos   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   8159   1.84  christos   #    will be set to the directory where LIBOBJS objects are built.
   8160   1.84  christos   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   8161   1.84  christos   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   8162   1.84  christos done
   8163   1.84  christos LIBOBJS=$ac_libobjs
   8164   1.84  christos 
   8165   1.84  christos LTLIBOBJS=$ac_ltlibobjs
   8166   1.84  christos 
   8167   1.84  christos 
   8168   1.76     pooka 
   8169   1.74  christos 
   8170   1.84  christos : "${CONFIG_STATUS=./config.status}"
   8171   1.84  christos ac_write_fail=0
   8172   1.66   tsutsui ac_clean_files_save=$ac_clean_files
   8173   1.66   tsutsui ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   8174  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   8175  1.108  christos printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
   8176   1.84  christos as_write_fail=0
   8177   1.84  christos cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   8178   1.66   tsutsui #! $SHELL
   8179   1.84  christos # Generated by $as_me.
   8180   1.66   tsutsui # Run this file to recreate the current configuration.
   8181   1.66   tsutsui # Compiler output produced by configure, useful for debugging
   8182   1.66   tsutsui # configure, is in config.log if it exists.
   8183   1.65  christos 
   8184   1.66   tsutsui debug=false
   8185   1.84  christos ac_cs_recheck=false
   8186   1.84  christos ac_cs_silent=false
   8187   1.84  christos 
   8188   1.76     pooka SHELL=\${CONFIG_SHELL-$SHELL}
   8189   1.84  christos export SHELL
   8190   1.84  christos _ASEOF
   8191   1.84  christos cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   8192   1.84  christos ## -------------------- ##
   8193   1.84  christos ## M4sh Initialization. ##
   8194   1.84  christos ## -------------------- ##
   8195   1.84  christos 
   8196   1.84  christos # Be more Bourne compatible
   8197   1.84  christos DUALCASE=1; export DUALCASE # for MKS sh
   8198  1.108  christos if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
   8199  1.108  christos then :
   8200   1.84  christos   emulate sh
   8201   1.84  christos   NULLCMD=:
   8202   1.84  christos   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   8203   1.84  christos   # is contrary to our usage.  Disable this feature.
   8204   1.84  christos   alias -g '${1+"$@"}'='"$@"'
   8205   1.84  christos   setopt NO_GLOB_SUBST
   8206  1.108  christos else case e in #(
   8207  1.108  christos   e) case `(set -o) 2>/dev/null` in #(
   8208   1.84  christos   *posix*) :
   8209   1.84  christos     set -o posix ;; #(
   8210   1.84  christos   *) :
   8211   1.84  christos      ;;
   8212  1.108  christos esac ;;
   8213   1.84  christos esac
   8214   1.84  christos fi
   8215   1.84  christos 
   8216   1.76     pooka 
   8217  1.108  christos 
   8218  1.108  christos # Reset variables that may have inherited troublesome values from
   8219  1.108  christos # the environment.
   8220  1.108  christos 
   8221  1.108  christos # IFS needs to be set, to space, tab, and newline, in precisely that order.
   8222  1.108  christos # (If _AS_PATH_WALK were called with IFS unset, it would have the
   8223  1.108  christos # side effect of setting IFS to empty, thus disabling word splitting.)
   8224  1.108  christos # Quoting is to prevent editors from complaining about space-tab.
   8225   1.84  christos as_nl='
   8226   1.84  christos '
   8227   1.84  christos export as_nl
   8228  1.108  christos IFS=" ""	$as_nl"
   8229  1.108  christos 
   8230  1.108  christos PS1='$ '
   8231  1.108  christos PS2='> '
   8232  1.108  christos PS4='+ '
   8233  1.108  christos 
   8234  1.108  christos # Ensure predictable behavior from utilities with locale-dependent output.
   8235  1.108  christos LC_ALL=C
   8236  1.108  christos export LC_ALL
   8237  1.108  christos LANGUAGE=C
   8238  1.108  christos export LANGUAGE
   8239  1.108  christos 
   8240  1.108  christos # We cannot yet rely on "unset" to work, but we need these variables
   8241  1.108  christos # to be unset--not just set to an empty or harmless value--now, to
   8242  1.108  christos # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
   8243  1.108  christos # also avoids known problems related to "unset" and subshell syntax
   8244  1.108  christos # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
   8245  1.108  christos for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
   8246  1.108  christos do eval test \${$as_var+y} \
   8247  1.108  christos   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   8248  1.108  christos done
   8249  1.108  christos 
   8250  1.108  christos # Ensure that fds 0, 1, and 2 are open.
   8251  1.108  christos if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
   8252  1.108  christos if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
   8253  1.108  christos if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
   8254   1.74  christos 
   8255   1.84  christos # The user is always right.
   8256  1.108  christos if ${PATH_SEPARATOR+false} :; then
   8257   1.84  christos   PATH_SEPARATOR=:
   8258   1.84  christos   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   8259   1.84  christos     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   8260   1.84  christos       PATH_SEPARATOR=';'
   8261   1.84  christos   }
   8262   1.74  christos fi
   8263   1.65  christos 
   8264   1.74  christos 
   8265   1.84  christos # Find who we are.  Look in the path if we contain no directory separator.
   8266   1.84  christos as_myself=
   8267   1.84  christos case $0 in #((
   8268   1.84  christos   *[\\/]* ) as_myself=$0 ;;
   8269   1.84  christos   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8270   1.84  christos for as_dir in $PATH
   8271   1.84  christos do
   8272   1.84  christos   IFS=$as_save_IFS
   8273  1.108  christos   case $as_dir in #(((
   8274  1.108  christos     '') as_dir=./ ;;
   8275  1.108  christos     */) ;;
   8276  1.108  christos     *) as_dir=$as_dir/ ;;
   8277  1.108  christos   esac
   8278  1.108  christos     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
   8279   1.84  christos   done
   8280   1.84  christos IFS=$as_save_IFS
   8281   1.84  christos 
   8282   1.84  christos      ;;
   8283   1.84  christos esac
   8284  1.108  christos # We did not find ourselves, most probably we were run as 'sh COMMAND'
   8285   1.84  christos # in which case we are not to be found in the path.
   8286   1.84  christos if test "x$as_myself" = x; then
   8287   1.84  christos   as_myself=$0
   8288   1.84  christos fi
   8289   1.84  christos if test ! -f "$as_myself"; then
   8290  1.108  christos   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   8291   1.84  christos   exit 1
   8292   1.84  christos fi
   8293   1.84  christos 
   8294   1.84  christos 
   8295   1.84  christos 
   8296   1.84  christos # as_fn_error STATUS ERROR [LINENO LOG_FD]
   8297   1.84  christos # ----------------------------------------
   8298   1.84  christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   8299   1.84  christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   8300   1.84  christos # script with STATUS, using 1 if that was 0.
   8301   1.84  christos as_fn_error ()
   8302   1.84  christos {
   8303   1.84  christos   as_status=$1; test $as_status -eq 0 && as_status=1
   8304   1.84  christos   if test "$4"; then
   8305   1.84  christos     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   8306  1.108  christos     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   8307   1.84  christos   fi
   8308  1.108  christos   printf "%s\n" "$as_me: error: $2" >&2
   8309   1.84  christos   as_fn_exit $as_status
   8310   1.84  christos } # as_fn_error
   8311   1.84  christos 
   8312   1.84  christos 
   8313   1.84  christos # as_fn_set_status STATUS
   8314   1.84  christos # -----------------------
   8315   1.84  christos # Set $? to STATUS, without forking.
   8316   1.84  christos as_fn_set_status ()
   8317   1.84  christos {
   8318   1.84  christos   return $1
   8319   1.84  christos } # as_fn_set_status
   8320   1.84  christos 
   8321   1.84  christos # as_fn_exit STATUS
   8322   1.84  christos # -----------------
   8323   1.84  christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   8324   1.84  christos as_fn_exit ()
   8325   1.84  christos {
   8326   1.84  christos   set +e
   8327   1.84  christos   as_fn_set_status $1
   8328   1.84  christos   exit $1
   8329   1.84  christos } # as_fn_exit
   8330   1.84  christos 
   8331   1.84  christos # as_fn_unset VAR
   8332   1.84  christos # ---------------
   8333   1.84  christos # Portably unset VAR.
   8334   1.84  christos as_fn_unset ()
   8335   1.84  christos {
   8336   1.84  christos   { eval $1=; unset $1;}
   8337   1.84  christos }
   8338   1.84  christos as_unset=as_fn_unset
   8339  1.108  christos 
   8340   1.84  christos # as_fn_append VAR VALUE
   8341   1.84  christos # ----------------------
   8342   1.84  christos # Append the text in VALUE to the end of the definition contained in VAR. Take
   8343   1.84  christos # advantage of any shell optimizations that allow amortized linear growth over
   8344   1.84  christos # repeated appends, instead of the typical quadratic growth present in naive
   8345   1.84  christos # implementations.
   8346  1.108  christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
   8347  1.108  christos then :
   8348   1.84  christos   eval 'as_fn_append ()
   8349   1.84  christos   {
   8350   1.84  christos     eval $1+=\$2
   8351   1.84  christos   }'
   8352  1.108  christos else case e in #(
   8353  1.108  christos   e) as_fn_append ()
   8354   1.84  christos   {
   8355   1.84  christos     eval $1=\$$1\$2
   8356  1.108  christos   } ;;
   8357  1.108  christos esac
   8358   1.84  christos fi # as_fn_append
   8359   1.84  christos 
   8360   1.84  christos # as_fn_arith ARG...
   8361   1.84  christos # ------------------
   8362   1.84  christos # Perform arithmetic evaluation on the ARGs, and store the result in the
   8363   1.84  christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
   8364   1.84  christos # must be portable across $(()) and expr.
   8365  1.108  christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
   8366  1.108  christos then :
   8367   1.84  christos   eval 'as_fn_arith ()
   8368   1.84  christos   {
   8369   1.84  christos     as_val=$(( $* ))
   8370   1.84  christos   }'
   8371  1.108  christos else case e in #(
   8372  1.108  christos   e) as_fn_arith ()
   8373   1.84  christos   {
   8374   1.84  christos     as_val=`expr "$@" || test $? -eq 1`
   8375  1.108  christos   } ;;
   8376  1.108  christos esac
   8377   1.84  christos fi # as_fn_arith
   8378   1.84  christos 
   8379   1.84  christos 
   8380   1.84  christos if expr a : '\(a\)' >/dev/null 2>&1 &&
   8381   1.84  christos    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   8382    1.1        tv   as_expr=expr
   8383    1.1        tv else
   8384    1.1        tv   as_expr=false
   8385    1.1        tv fi
   8386    1.1        tv 
   8387   1.84  christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   8388   1.84  christos   as_basename=basename
   8389   1.84  christos else
   8390   1.84  christos   as_basename=false
   8391   1.84  christos fi
   8392   1.84  christos 
   8393   1.84  christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   8394   1.84  christos   as_dirname=dirname
   8395   1.84  christos else
   8396   1.84  christos   as_dirname=false
   8397   1.84  christos fi
   8398   1.84  christos 
   8399   1.84  christos as_me=`$as_basename -- "$0" ||
   8400   1.84  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   8401   1.84  christos 	 X"$0" : 'X\(//\)$' \| \
   8402   1.84  christos 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   8403  1.108  christos printf "%s\n" X/"$0" |
   8404   1.84  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{
   8405   1.84  christos 	    s//\1/
   8406   1.84  christos 	    q
   8407   1.84  christos 	  }
   8408   1.84  christos 	  /^X\/\(\/\/\)$/{
   8409   1.84  christos 	    s//\1/
   8410   1.84  christos 	    q
   8411   1.84  christos 	  }
   8412   1.84  christos 	  /^X\/\(\/\).*/{
   8413   1.84  christos 	    s//\1/
   8414   1.84  christos 	    q
   8415   1.84  christos 	  }
   8416   1.84  christos 	  s/.*/./; q'`
   8417   1.84  christos 
   8418   1.84  christos # Avoid depending upon Character Ranges.
   8419   1.84  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   8420   1.84  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   8421   1.84  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   8422   1.84  christos as_cr_digits='0123456789'
   8423   1.84  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
   8424   1.84  christos 
   8425  1.108  christos 
   8426  1.108  christos # Determine whether it's possible to make 'echo' print without a newline.
   8427  1.108  christos # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
   8428  1.108  christos # for compatibility with existing Makefiles.
   8429   1.84  christos ECHO_C= ECHO_N= ECHO_T=
   8430   1.84  christos case `echo -n x` in #(((((
   8431   1.84  christos -n*)
   8432   1.84  christos   case `echo 'xy\c'` in
   8433   1.84  christos   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   8434   1.84  christos   xy)  ECHO_C='\c';;
   8435   1.84  christos   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   8436   1.84  christos        ECHO_T='	';;
   8437   1.84  christos   esac;;
   8438   1.84  christos *)
   8439   1.84  christos   ECHO_N='-n';;
   8440   1.84  christos esac
   8441   1.84  christos 
   8442  1.108  christos # For backward compatibility with old third-party macros, we provide
   8443  1.108  christos # the shell variables $as_echo and $as_echo_n.  New code should use
   8444  1.108  christos # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
   8445  1.108  christos as_echo='printf %s\n'
   8446  1.108  christos as_echo_n='printf %s'
   8447  1.108  christos 
   8448    1.1        tv rm -f conf$$ conf$$.exe conf$$.file
   8449   1.84  christos if test -d conf$$.dir; then
   8450   1.84  christos   rm -f conf$$.dir/conf$$.file
   8451   1.84  christos else
   8452   1.84  christos   rm -f conf$$.dir
   8453   1.84  christos   mkdir conf$$.dir 2>/dev/null
   8454   1.84  christos fi
   8455   1.84  christos if (echo >conf$$.file) 2>/dev/null; then
   8456   1.84  christos   if ln -s conf$$.file conf$$ 2>/dev/null; then
   8457   1.84  christos     as_ln_s='ln -s'
   8458   1.84  christos     # ... but there are two gotchas:
   8459  1.108  christos     # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
   8460  1.108  christos     # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
   8461  1.108  christos     # In both cases, we have to default to 'cp -pR'.
   8462   1.84  christos     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   8463   1.84  christos       as_ln_s='cp -pR'
   8464   1.84  christos   elif ln conf$$.file conf$$ 2>/dev/null; then
   8465   1.84  christos     as_ln_s=ln
   8466   1.76     pooka   else
   8467   1.84  christos     as_ln_s='cp -pR'
   8468   1.66   tsutsui   fi
   8469    1.1        tv else
   8470   1.84  christos   as_ln_s='cp -pR'
   8471    1.1        tv fi
   8472   1.84  christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   8473   1.84  christos rmdir conf$$.dir 2>/dev/null
   8474   1.84  christos 
   8475   1.84  christos 
   8476   1.84  christos # as_fn_mkdir_p
   8477   1.84  christos # -------------
   8478   1.84  christos # Create "$as_dir" as a directory, including parents if necessary.
   8479   1.84  christos as_fn_mkdir_p ()
   8480   1.84  christos {
   8481   1.84  christos 
   8482   1.84  christos   case $as_dir in #(
   8483   1.84  christos   -*) as_dir=./$as_dir;;
   8484   1.84  christos   esac
   8485   1.84  christos   test -d "$as_dir" || eval $as_mkdir_p || {
   8486   1.84  christos     as_dirs=
   8487   1.84  christos     while :; do
   8488   1.84  christos       case $as_dir in #(
   8489  1.108  christos       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   8490   1.84  christos       *) as_qdir=$as_dir;;
   8491   1.84  christos       esac
   8492   1.84  christos       as_dirs="'$as_qdir' $as_dirs"
   8493   1.84  christos       as_dir=`$as_dirname -- "$as_dir" ||
   8494   1.84  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   8495   1.84  christos 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   8496   1.84  christos 	 X"$as_dir" : 'X\(//\)$' \| \
   8497   1.84  christos 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   8498  1.108  christos printf "%s\n" X"$as_dir" |
   8499   1.84  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   8500   1.84  christos 	    s//\1/
   8501   1.84  christos 	    q
   8502   1.84  christos 	  }
   8503   1.84  christos 	  /^X\(\/\/\)[^/].*/{
   8504   1.84  christos 	    s//\1/
   8505   1.84  christos 	    q
   8506   1.84  christos 	  }
   8507   1.84  christos 	  /^X\(\/\/\)$/{
   8508   1.84  christos 	    s//\1/
   8509   1.84  christos 	    q
   8510   1.84  christos 	  }
   8511   1.84  christos 	  /^X\(\/\).*/{
   8512   1.84  christos 	    s//\1/
   8513   1.84  christos 	    q
   8514   1.84  christos 	  }
   8515   1.84  christos 	  s/.*/./; q'`
   8516   1.84  christos       test -d "$as_dir" && break
   8517   1.84  christos     done
   8518   1.84  christos     test -z "$as_dirs" || eval "mkdir $as_dirs"
   8519   1.84  christos   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   8520    1.1        tv 
   8521   1.63       apb 
   8522   1.84  christos } # as_fn_mkdir_p
   8523   1.84  christos if mkdir -p . 2>/dev/null; then
   8524   1.84  christos   as_mkdir_p='mkdir -p "$as_dir"'
   8525   1.61  christos else
   8526   1.84  christos   test -d ./-p && rmdir ./-p
   8527   1.84  christos   as_mkdir_p=false
   8528   1.61  christos fi
   8529   1.61  christos 
   8530    1.1        tv 
   8531   1.84  christos # as_fn_executable_p FILE
   8532   1.84  christos # -----------------------
   8533   1.84  christos # Test if FILE is an executable regular file.
   8534   1.84  christos as_fn_executable_p ()
   8535   1.84  christos {
   8536   1.84  christos   test -f "$1" && test -x "$1"
   8537   1.84  christos } # as_fn_executable_p
   8538   1.84  christos as_test_x='test -x'
   8539   1.84  christos as_executable_p=as_fn_executable_p
   8540   1.84  christos 
   8541   1.84  christos # Sed expression to map a string onto a valid CPP name.
   8542  1.108  christos as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
   8543  1.108  christos as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
   8544   1.84  christos 
   8545   1.84  christos # Sed expression to map a string onto a valid variable name.
   8546  1.108  christos as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
   8547  1.108  christos as_tr_sh="eval sed '$as_sed_sh'" # deprecated
   8548    1.1        tv 
   8549    1.1        tv 
   8550    1.1        tv exec 6>&1
   8551   1.84  christos ## ----------------------------------- ##
   8552   1.84  christos ## Main body of $CONFIG_STATUS script. ##
   8553   1.84  christos ## ----------------------------------- ##
   8554   1.84  christos _ASEOF
   8555   1.84  christos test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   8556   1.84  christos 
   8557   1.84  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8558   1.84  christos # Save the log message, to keep $0 and so on meaningful, and to
   8559   1.84  christos # report actual input values of CONFIG_FILES etc. instead of their
   8560   1.84  christos # values after options handling.
   8561   1.84  christos ac_log="
   8562   1.84  christos This file was extended by libnbcompat $as_me noversion, which was
   8563  1.108  christos generated by GNU Autoconf 2.72.  Invocation command line was
   8564   1.84  christos 
   8565   1.84  christos   CONFIG_FILES    = $CONFIG_FILES
   8566   1.84  christos   CONFIG_HEADERS  = $CONFIG_HEADERS
   8567   1.84  christos   CONFIG_LINKS    = $CONFIG_LINKS
   8568   1.84  christos   CONFIG_COMMANDS = $CONFIG_COMMANDS
   8569   1.84  christos   $ $0 $@
   8570   1.84  christos 
   8571   1.84  christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
   8572   1.84  christos "
   8573    1.1        tv 
   8574   1.66   tsutsui _ACEOF
   8575    1.1        tv 
   8576   1.84  christos case $ac_config_files in *"
   8577   1.84  christos "*) set x $ac_config_files; shift; ac_config_files=$*;;
   8578   1.84  christos esac
   8579    1.1        tv 
   8580   1.84  christos case $ac_config_headers in *"
   8581   1.84  christos "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   8582   1.84  christos esac
   8583    1.1        tv 
   8584    1.1        tv 
   8585   1.84  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8586   1.84  christos # Files that config.status was made for.
   8587   1.84  christos config_files="$ac_config_files"
   8588   1.84  christos config_headers="$ac_config_headers"
   8589    1.1        tv 
   8590   1.84  christos _ACEOF
   8591    1.1        tv 
   8592   1.84  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8593    1.1        tv ac_cs_usage="\
   8594  1.108  christos '$as_me' instantiates files and other configuration actions
   8595   1.84  christos from templates according to the current configuration.  Unless the files
   8596   1.84  christos and actions are specified as TAGs, all are instantiated by default.
   8597    1.1        tv 
   8598   1.84  christos Usage: $0 [OPTION]... [TAG]...
   8599    1.1        tv 
   8600    1.1        tv   -h, --help       print this help, then exit
   8601   1.84  christos   -V, --version    print version number and configuration settings, then exit
   8602   1.84  christos       --config     print configuration, then exit
   8603   1.84  christos   -q, --quiet, --silent
   8604   1.84  christos                    do not print progress messages
   8605    1.1        tv   -d, --debug      don't remove temporary files
   8606    1.1        tv       --recheck    update $as_me by reconfiguring in the same conditions
   8607   1.84  christos       --file=FILE[:TEMPLATE]
   8608   1.66   tsutsui                    instantiate the configuration file FILE
   8609   1.84  christos       --header=FILE[:TEMPLATE]
   8610   1.66   tsutsui                    instantiate the configuration header FILE
   8611    1.1        tv 
   8612    1.1        tv Configuration files:
   8613    1.1        tv $config_files
   8614    1.1        tv 
   8615    1.1        tv Configuration headers:
   8616    1.1        tv $config_headers
   8617    1.1        tv 
   8618   1.84  christos Report bugs to <lib-bug-people (at] NetBSD.org>."
   8619    1.1        tv 
   8620   1.84  christos _ACEOF
   8621  1.108  christos ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
   8622  1.108  christos ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
   8623   1.84  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8624  1.108  christos ac_cs_config='$ac_cs_config_escaped'
   8625    1.1        tv ac_cs_version="\\
   8626    1.1        tv libnbcompat config.status noversion
   8627  1.108  christos configured by $0, generated by GNU Autoconf 2.72,
   8628   1.84  christos   with options \\"\$ac_cs_config\\"
   8629    1.1        tv 
   8630  1.108  christos Copyright (C) 2023 Free Software Foundation, Inc.
   8631    1.1        tv This config.status script is free software; the Free Software Foundation
   8632    1.1        tv gives unlimited permission to copy, distribute and modify it."
   8633    1.1        tv 
   8634   1.84  christos ac_pwd='$ac_pwd'
   8635   1.84  christos srcdir='$srcdir'
   8636   1.84  christos test -n "\$AWK" || AWK=awk
   8637   1.84  christos _ACEOF
   8638   1.84  christos 
   8639   1.84  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8640   1.84  christos # The default lists apply if the user does not specify any file.
   8641    1.1        tv ac_need_defaults=:
   8642    1.1        tv while test $# != 0
   8643    1.1        tv do
   8644    1.1        tv   case $1 in
   8645   1.84  christos   --*=?*)
   8646   1.84  christos     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   8647   1.84  christos     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   8648   1.84  christos     ac_shift=:
   8649   1.84  christos     ;;
   8650   1.84  christos   --*=)
   8651   1.84  christos     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   8652   1.84  christos     ac_optarg=
   8653   1.84  christos     ac_shift=:
   8654   1.84  christos     ;;
   8655   1.84  christos   *)
   8656   1.84  christos     ac_option=$1
   8657   1.84  christos     ac_optarg=$2
   8658   1.84  christos     ac_shift=shift
   8659    1.1        tv     ;;
   8660    1.1        tv   esac
   8661    1.1        tv 
   8662   1.84  christos   case $ac_option in
   8663    1.1        tv   # Handling of the options.
   8664    1.1        tv   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   8665   1.84  christos     ac_cs_recheck=: ;;
   8666   1.84  christos   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   8667  1.108  christos     printf "%s\n" "$ac_cs_version"; exit ;;
   8668   1.84  christos   --config | --confi | --conf | --con | --co | --c )
   8669  1.108  christos     printf "%s\n" "$ac_cs_config"; exit ;;
   8670   1.84  christos   --debug | --debu | --deb | --de | --d | -d )
   8671    1.1        tv     debug=: ;;
   8672    1.1        tv   --file | --fil | --fi | --f )
   8673   1.84  christos     $ac_shift
   8674   1.84  christos     case $ac_optarg in
   8675  1.108  christos     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   8676   1.84  christos     '') as_fn_error $? "missing file argument" ;;
   8677   1.84  christos     esac
   8678   1.84  christos     as_fn_append CONFIG_FILES " '$ac_optarg'"
   8679    1.1        tv     ac_need_defaults=false;;
   8680    1.1        tv   --header | --heade | --head | --hea )
   8681   1.84  christos     $ac_shift
   8682   1.84  christos     case $ac_optarg in
   8683  1.108  christos     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   8684   1.84  christos     esac
   8685   1.84  christos     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   8686    1.1        tv     ac_need_defaults=false;;
   8687   1.84  christos   --he | --h)
   8688   1.84  christos     # Conflict between --help and --header
   8689  1.108  christos     as_fn_error $? "ambiguous option: '$1'
   8690  1.108  christos Try '$0 --help' for more information.";;
   8691   1.84  christos   --help | --hel | -h )
   8692  1.108  christos     printf "%s\n" "$ac_cs_usage"; exit ;;
   8693   1.84  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   8694   1.84  christos   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   8695   1.84  christos     ac_cs_silent=: ;;
   8696    1.1        tv 
   8697    1.1        tv   # This is an error.
   8698  1.108  christos   -*) as_fn_error $? "unrecognized option: '$1'
   8699  1.108  christos Try '$0 --help' for more information." ;;
   8700    1.1        tv 
   8701   1.84  christos   *) as_fn_append ac_config_targets " $1"
   8702   1.84  christos      ac_need_defaults=false ;;
   8703    1.1        tv 
   8704    1.1        tv   esac
   8705    1.1        tv   shift
   8706    1.1        tv done
   8707    1.1        tv 
   8708   1.84  christos ac_configure_extra_args=
   8709   1.84  christos 
   8710   1.84  christos if $ac_cs_silent; then
   8711   1.84  christos   exec 6>/dev/null
   8712   1.84  christos   ac_configure_extra_args="$ac_configure_extra_args --silent"
   8713   1.84  christos fi
   8714   1.74  christos 
   8715   1.84  christos _ACEOF
   8716   1.84  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8717   1.84  christos if \$ac_cs_recheck; then
   8718   1.84  christos   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   8719   1.84  christos   shift
   8720  1.108  christos   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
   8721   1.84  christos   CONFIG_SHELL='$SHELL'
   8722   1.84  christos   export CONFIG_SHELL
   8723   1.84  christos   exec "\$@"
   8724   1.84  christos fi
   8725    1.1        tv 
   8726   1.84  christos _ACEOF
   8727   1.84  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8728   1.84  christos exec 5>>config.log
   8729   1.84  christos {
   8730   1.84  christos   echo
   8731   1.84  christos   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   8732   1.84  christos ## Running $as_me. ##
   8733   1.84  christos _ASBOX
   8734  1.108  christos   printf "%s\n" "$ac_log"
   8735   1.84  christos } >&5
   8736    1.1        tv 
   8737    1.1        tv _ACEOF
   8738   1.84  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8739   1.84  christos _ACEOF
   8740   1.84  christos 
   8741   1.84  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8742    1.1        tv 
   8743   1.84  christos # Handling of arguments.
   8744    1.1        tv for ac_config_target in $ac_config_targets
   8745    1.1        tv do
   8746   1.84  christos   case $ac_config_target in
   8747   1.84  christos     "nbtool_config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
   8748   1.84  christos     "defs.mk") CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
   8749   1.84  christos 
   8750  1.108  christos   *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
   8751    1.1        tv   esac
   8752    1.1        tv done
   8753    1.1        tv 
   8754   1.84  christos 
   8755    1.1        tv # If the user did not use the arguments to specify the items to instantiate,
   8756    1.1        tv # then the envvar interface is used.  Set only those that are not.
   8757    1.1        tv # We use the long form for the default assignment because of an extremely
   8758    1.1        tv # bizarre bug on SunOS 4.1.3.
   8759    1.1        tv if $ac_need_defaults; then
   8760  1.108  christos   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
   8761  1.108  christos   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
   8762    1.1        tv fi
   8763    1.1        tv 
   8764   1.84  christos # Have a temporary directory for convenience.  Make it in the build tree
   8765   1.84  christos # simply because there is no reason against having it here, and in addition,
   8766   1.84  christos # creating and moving files from /tmp can sometimes cause problems.
   8767   1.84  christos # Hook for its removal unless debugging.
   8768   1.84  christos # Note that there is a small window in which the directory will not be cleaned:
   8769  1.108  christos # after its creation but before its name has been assigned to '$tmp'.
   8770    1.1        tv $debug ||
   8771    1.1        tv {
   8772   1.84  christos   tmp= ac_tmp=
   8773   1.84  christos   trap 'exit_status=$?
   8774   1.84  christos   : "${ac_tmp:=$tmp}"
   8775   1.84  christos   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   8776   1.84  christos ' 0
   8777   1.84  christos   trap 'as_fn_exit 1' 1 2 13 15
   8778    1.1        tv }
   8779   1.84  christos # Create a (secure) tmp directory for tmp files.
   8780   1.76     pooka 
   8781    1.1        tv {
   8782   1.84  christos   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   8783   1.84  christos   test -d "$tmp"
   8784    1.1        tv }  ||
   8785    1.1        tv {
   8786   1.84  christos   tmp=./conf$$-$RANDOM
   8787   1.84  christos   (umask 077 && mkdir "$tmp")
   8788   1.84  christos } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   8789   1.84  christos ac_tmp=$tmp
   8790    1.1        tv 
   8791   1.84  christos # Set up the scripts for CONFIG_FILES section.
   8792   1.84  christos # No need to generate them if there are no CONFIG_FILES.
   8793  1.108  christos # This happens for instance with './config.status config.h'.
   8794   1.84  christos if test -n "$CONFIG_FILES"; then
   8795   1.66   tsutsui 
   8796   1.66   tsutsui 
   8797   1.84  christos ac_cr=`echo X | tr X '\015'`
   8798   1.84  christos # On cygwin, bash can eat \r inside `` if the user requested igncr.
   8799   1.84  christos # But we know of no other shell where ac_cr would be empty at this
   8800   1.84  christos # point, so we can use a bashism as a fallback.
   8801   1.84  christos if test "x$ac_cr" = x; then
   8802   1.84  christos   eval ac_cr=\$\'\\r\'
   8803   1.84  christos fi
   8804   1.84  christos ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   8805   1.84  christos if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   8806   1.84  christos   ac_cs_awk_cr='\\r'
   8807   1.84  christos else
   8808   1.84  christos   ac_cs_awk_cr=$ac_cr
   8809   1.84  christos fi
   8810    1.1        tv 
   8811   1.84  christos echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   8812   1.84  christos _ACEOF
   8813   1.65  christos 
   8814   1.65  christos 
   8815   1.84  christos {
   8816   1.84  christos   echo "cat >conf$$subs.awk <<_ACEOF" &&
   8817   1.84  christos   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   8818   1.84  christos   echo "_ACEOF"
   8819   1.84  christos } >conf$$subs.sh ||
   8820   1.84  christos   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   8821   1.84  christos ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   8822   1.84  christos ac_delim='%!_!# '
   8823   1.84  christos for ac_last_try in false false false false false :; do
   8824   1.84  christos   . ./conf$$subs.sh ||
   8825   1.84  christos     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   8826   1.65  christos 
   8827   1.84  christos   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   8828   1.84  christos   if test $ac_delim_n = $ac_delim_num; then
   8829   1.84  christos     break
   8830   1.84  christos   elif $ac_last_try; then
   8831   1.84  christos     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   8832   1.65  christos   else
   8833   1.84  christos     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   8834    1.1        tv   fi
   8835   1.84  christos done
   8836   1.84  christos rm -f conf$$subs.sh
   8837   1.65  christos 
   8838   1.84  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8839   1.84  christos cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   8840   1.84  christos _ACEOF
   8841   1.84  christos sed -n '
   8842   1.84  christos h
   8843   1.84  christos s/^/S["/; s/!.*/"]=/
   8844   1.84  christos p
   8845   1.84  christos g
   8846   1.84  christos s/^[^!]*!//
   8847   1.84  christos :repl
   8848   1.84  christos t repl
   8849   1.84  christos s/'"$ac_delim"'$//
   8850   1.84  christos t delim
   8851   1.84  christos :nl
   8852   1.84  christos h
   8853   1.84  christos s/\(.\{148\}\)..*/\1/
   8854   1.84  christos t more1
   8855   1.84  christos s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   8856   1.84  christos p
   8857   1.84  christos n
   8858   1.84  christos b repl
   8859   1.84  christos :more1
   8860   1.84  christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   8861   1.84  christos p
   8862   1.84  christos g
   8863   1.84  christos s/.\{148\}//
   8864   1.84  christos t nl
   8865   1.84  christos :delim
   8866   1.84  christos h
   8867   1.84  christos s/\(.\{148\}\)..*/\1/
   8868   1.84  christos t more2
   8869   1.84  christos s/["\\]/\\&/g; s/^/"/; s/$/"/
   8870   1.84  christos p
   8871   1.84  christos b
   8872   1.84  christos :more2
   8873   1.84  christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   8874   1.84  christos p
   8875   1.84  christos g
   8876   1.84  christos s/.\{148\}//
   8877   1.84  christos t delim
   8878   1.84  christos ' <conf$$subs.awk | sed '
   8879   1.84  christos /^[^""]/{
   8880   1.84  christos   N
   8881   1.84  christos   s/\n//
   8882   1.84  christos }
   8883   1.84  christos ' >>$CONFIG_STATUS || ac_write_fail=1
   8884   1.84  christos rm -f conf$$subs.awk
   8885   1.84  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   8886   1.84  christos _ACAWK
   8887   1.84  christos cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   8888   1.84  christos   for (key in S) S_is_set[key] = 1
   8889   1.84  christos   FS = ""
   8890   1.84  christos 
   8891   1.84  christos }
   8892   1.84  christos {
   8893   1.84  christos   line = $ 0
   8894   1.84  christos   nfields = split(line, field, "@")
   8895   1.84  christos   substed = 0
   8896   1.84  christos   len = length(field[1])
   8897   1.84  christos   for (i = 2; i < nfields; i++) {
   8898   1.84  christos     key = field[i]
   8899   1.84  christos     keylen = length(key)
   8900   1.84  christos     if (S_is_set[key]) {
   8901   1.84  christos       value = S[key]
   8902   1.84  christos       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   8903   1.84  christos       len += length(value) + length(field[++i])
   8904   1.84  christos       substed = 1
   8905   1.84  christos     } else
   8906   1.84  christos       len += 1 + keylen
   8907   1.84  christos   }
   8908   1.84  christos 
   8909   1.84  christos   print line
   8910   1.84  christos }
   8911   1.84  christos 
   8912   1.84  christos _ACAWK
   8913   1.84  christos _ACEOF
   8914   1.84  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8915   1.84  christos if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   8916   1.84  christos   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   8917   1.84  christos else
   8918   1.84  christos   cat
   8919   1.84  christos fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   8920   1.84  christos   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   8921   1.84  christos _ACEOF
   8922   1.84  christos 
   8923   1.84  christos # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   8924   1.84  christos # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   8925   1.84  christos # trailing colons and then remove the whole line if VPATH becomes empty
   8926   1.84  christos # (actually we leave an empty line to preserve line numbers).
   8927   1.84  christos if test "x$srcdir" = x.; then
   8928   1.84  christos   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   8929   1.84  christos h
   8930   1.84  christos s///
   8931   1.84  christos s/^/:/
   8932   1.84  christos s/[	 ]*$/:/
   8933   1.84  christos s/:\$(srcdir):/:/g
   8934   1.84  christos s/:\${srcdir}:/:/g
   8935   1.84  christos s/:@srcdir@:/:/g
   8936   1.84  christos s/^:*//
   8937   1.84  christos s/:*$//
   8938   1.84  christos x
   8939   1.84  christos s/\(=[	 ]*\).*/\1/
   8940   1.84  christos G
   8941   1.84  christos s/\n//
   8942   1.84  christos s/^[^=]*=[	 ]*$//
   8943   1.84  christos }'
   8944   1.84  christos fi
   8945   1.84  christos 
   8946   1.84  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   8947   1.84  christos fi # test -n "$CONFIG_FILES"
   8948   1.74  christos 
   8949   1.84  christos # Set up the scripts for CONFIG_HEADERS section.
   8950   1.84  christos # No need to generate them if there are no CONFIG_HEADERS.
   8951  1.108  christos # This happens for instance with './config.status Makefile'.
   8952   1.84  christos if test -n "$CONFIG_HEADERS"; then
   8953   1.84  christos cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   8954   1.84  christos BEGIN {
   8955   1.84  christos _ACEOF
   8956   1.84  christos 
   8957  1.108  christos # Transform confdefs.h into an awk script 'defines.awk', embedded as
   8958   1.84  christos # here-document in config.status, that substitutes the proper values into
   8959   1.84  christos # config.h.in to produce config.h.
   8960   1.84  christos 
   8961   1.84  christos # Create a delimiter string that does not exist in confdefs.h, to ease
   8962   1.84  christos # handling of long lines.
   8963   1.84  christos ac_delim='%!_!# '
   8964   1.84  christos for ac_last_try in false false :; do
   8965   1.84  christos   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   8966   1.84  christos   if test -z "$ac_tt"; then
   8967   1.84  christos     break
   8968   1.84  christos   elif $ac_last_try; then
   8969   1.84  christos     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   8970   1.66   tsutsui   else
   8971   1.84  christos     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   8972   1.66   tsutsui   fi
   8973   1.66   tsutsui done
   8974   1.66   tsutsui 
   8975   1.84  christos # For the awk script, D is an array of macro values keyed by name,
   8976   1.84  christos # likewise P contains macro parameters if any.  Preserve backslash
   8977   1.84  christos # newline sequences.
   8978   1.84  christos 
   8979   1.84  christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   8980   1.84  christos sed -n '
   8981   1.84  christos s/.\{148\}/&'"$ac_delim"'/g
   8982   1.84  christos t rset
   8983   1.84  christos :rset
   8984   1.84  christos s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   8985   1.84  christos t def
   8986   1.84  christos d
   8987   1.84  christos :def
   8988   1.84  christos s/\\$//
   8989   1.84  christos t bsnl
   8990   1.84  christos s/["\\]/\\&/g
   8991   1.84  christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   8992   1.84  christos D["\1"]=" \3"/p
   8993   1.84  christos s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   8994   1.84  christos d
   8995   1.84  christos :bsnl
   8996   1.84  christos s/["\\]/\\&/g
   8997   1.84  christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   8998   1.84  christos D["\1"]=" \3\\\\\\n"\\/p
   8999   1.84  christos t cont
   9000   1.84  christos s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   9001   1.84  christos t cont
   9002   1.84  christos d
   9003   1.84  christos :cont
   9004   1.84  christos n
   9005   1.84  christos s/.\{148\}/&'"$ac_delim"'/g
   9006   1.84  christos t clear
   9007   1.84  christos :clear
   9008   1.84  christos s/\\$//
   9009   1.84  christos t bsnlc
   9010   1.84  christos s/["\\]/\\&/g; s/^/"/; s/$/"/p
   9011   1.84  christos d
   9012   1.84  christos :bsnlc
   9013   1.84  christos s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   9014   1.84  christos b cont
   9015   1.84  christos ' <confdefs.h | sed '
   9016   1.84  christos s/'"$ac_delim"'/"\\\
   9017   1.84  christos "/g' >>$CONFIG_STATUS || ac_write_fail=1
   9018   1.84  christos 
   9019   1.84  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9020   1.84  christos   for (key in D) D_is_set[key] = 1
   9021   1.84  christos   FS = ""
   9022   1.84  christos }
   9023   1.84  christos /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   9024   1.84  christos   line = \$ 0
   9025   1.84  christos   split(line, arg, " ")
   9026   1.84  christos   if (arg[1] == "#") {
   9027   1.84  christos     defundef = arg[2]
   9028   1.84  christos     mac1 = arg[3]
   9029   1.84  christos   } else {
   9030   1.84  christos     defundef = substr(arg[1], 2)
   9031   1.84  christos     mac1 = arg[2]
   9032   1.84  christos   }
   9033   1.84  christos   split(mac1, mac2, "(") #)
   9034   1.84  christos   macro = mac2[1]
   9035   1.84  christos   prefix = substr(line, 1, index(line, defundef) - 1)
   9036   1.84  christos   if (D_is_set[macro]) {
   9037   1.84  christos     # Preserve the white space surrounding the "#".
   9038   1.84  christos     print prefix "define", macro P[macro] D[macro]
   9039   1.84  christos     next
   9040   1.84  christos   } else {
   9041   1.84  christos     # Replace #undef with comments.  This is necessary, for example,
   9042   1.84  christos     # in the case of _POSIX_SOURCE, which is predefined and required
   9043   1.84  christos     # on some systems where configure will not decide to define it.
   9044   1.84  christos     if (defundef == "undef") {
   9045   1.84  christos       print "/*", prefix defundef, macro, "*/"
   9046   1.84  christos       next
   9047   1.84  christos     }
   9048   1.84  christos   }
   9049   1.84  christos }
   9050   1.84  christos { print }
   9051   1.84  christos _ACAWK
   9052   1.84  christos _ACEOF
   9053   1.84  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9054   1.84  christos   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   9055   1.84  christos fi # test -n "$CONFIG_HEADERS"
   9056   1.66   tsutsui 
   9057    1.1        tv 
   9058   1.84  christos eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
   9059   1.84  christos shift
   9060   1.84  christos for ac_tag
   9061   1.84  christos do
   9062   1.84  christos   case $ac_tag in
   9063   1.84  christos   :[FHLC]) ac_mode=$ac_tag; continue;;
   9064   1.84  christos   esac
   9065   1.84  christos   case $ac_mode$ac_tag in
   9066   1.84  christos   :[FHL]*:*);;
   9067  1.108  christos   :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
   9068   1.84  christos   :[FH]-) ac_tag=-:-;;
   9069   1.84  christos   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   9070   1.74  christos   esac
   9071   1.84  christos   ac_save_IFS=$IFS
   9072   1.84  christos   IFS=:
   9073   1.84  christos   set x $ac_tag
   9074   1.84  christos   IFS=$ac_save_IFS
   9075   1.84  christos   shift
   9076   1.84  christos   ac_file=$1
   9077   1.84  christos   shift
   9078   1.84  christos 
   9079   1.84  christos   case $ac_mode in
   9080   1.84  christos   :L) ac_source=$1;;
   9081   1.84  christos   :[FH])
   9082   1.84  christos     ac_file_inputs=
   9083   1.84  christos     for ac_f
   9084   1.84  christos     do
   9085   1.84  christos       case $ac_f in
   9086   1.84  christos       -) ac_f="$ac_tmp/stdin";;
   9087   1.84  christos       *) # Look for the file first in the build tree, then in the source tree
   9088   1.84  christos 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   9089  1.108  christos 	 # because $ac_f cannot contain ':'.
   9090   1.84  christos 	 test -f "$ac_f" ||
   9091   1.84  christos 	   case $ac_f in
   9092   1.84  christos 	   [\\/$]*) false;;
   9093   1.84  christos 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   9094   1.84  christos 	   esac ||
   9095  1.108  christos 	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
   9096   1.84  christos       esac
   9097  1.108  christos       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   9098   1.84  christos       as_fn_append ac_file_inputs " '$ac_f'"
   9099   1.84  christos     done
   9100   1.74  christos 
   9101  1.108  christos     # Let's still pretend it is 'configure' which instantiates (i.e., don't
   9102   1.84  christos     # use $as_me), people would be surprised to read:
   9103   1.84  christos     #    /* config.h.  Generated by config.status.  */
   9104   1.84  christos     configure_input='Generated from '`
   9105  1.108  christos 	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   9106   1.84  christos 	`' by configure.'
   9107   1.84  christos     if test x"$ac_file" != x-; then
   9108   1.84  christos       configure_input="$ac_file.  $configure_input"
   9109  1.108  christos       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   9110  1.108  christos printf "%s\n" "$as_me: creating $ac_file" >&6;}
   9111   1.84  christos     fi
   9112   1.84  christos     # Neutralize special characters interpreted by sed in replacement strings.
   9113   1.84  christos     case $configure_input in #(
   9114   1.84  christos     *\&* | *\|* | *\\* )
   9115  1.108  christos        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
   9116   1.84  christos        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   9117   1.84  christos     *) ac_sed_conf_input=$configure_input;;
   9118   1.84  christos     esac
   9119   1.76     pooka 
   9120   1.84  christos     case $ac_tag in
   9121   1.84  christos     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   9122   1.84  christos       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   9123   1.84  christos     esac
   9124   1.66   tsutsui     ;;
   9125   1.66   tsutsui   esac
   9126   1.66   tsutsui 
   9127   1.84  christos   ac_dir=`$as_dirname -- "$ac_file" ||
   9128   1.84  christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   9129   1.84  christos 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   9130   1.84  christos 	 X"$ac_file" : 'X\(//\)$' \| \
   9131   1.84  christos 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   9132  1.108  christos printf "%s\n" X"$ac_file" |
   9133   1.84  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   9134   1.84  christos 	    s//\1/
   9135   1.84  christos 	    q
   9136   1.84  christos 	  }
   9137   1.84  christos 	  /^X\(\/\/\)[^/].*/{
   9138   1.84  christos 	    s//\1/
   9139   1.84  christos 	    q
   9140   1.84  christos 	  }
   9141   1.84  christos 	  /^X\(\/\/\)$/{
   9142   1.84  christos 	    s//\1/
   9143   1.84  christos 	    q
   9144   1.84  christos 	  }
   9145   1.84  christos 	  /^X\(\/\).*/{
   9146   1.84  christos 	    s//\1/
   9147   1.84  christos 	    q
   9148   1.84  christos 	  }
   9149   1.84  christos 	  s/.*/./; q'`
   9150   1.84  christos   as_dir="$ac_dir"; as_fn_mkdir_p
   9151   1.84  christos   ac_builddir=.
   9152   1.84  christos 
   9153   1.84  christos case "$ac_dir" in
   9154   1.84  christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   9155   1.84  christos *)
   9156  1.108  christos   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   9157   1.84  christos   # A ".." for each directory in $ac_dir_suffix.
   9158  1.108  christos   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   9159   1.84  christos   case $ac_top_builddir_sub in
   9160   1.84  christos   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   9161   1.84  christos   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   9162   1.84  christos   esac ;;
   9163   1.84  christos esac
   9164   1.84  christos ac_abs_top_builddir=$ac_pwd
   9165   1.84  christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
   9166   1.84  christos # for backward compatibility:
   9167   1.84  christos ac_top_builddir=$ac_top_build_prefix
   9168   1.84  christos 
   9169   1.84  christos case $srcdir in
   9170   1.84  christos   .)  # We are building in place.
   9171   1.84  christos     ac_srcdir=.
   9172   1.84  christos     ac_top_srcdir=$ac_top_builddir_sub
   9173   1.84  christos     ac_abs_top_srcdir=$ac_pwd ;;
   9174   1.84  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   9175   1.84  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   9176   1.84  christos     ac_top_srcdir=$srcdir
   9177   1.84  christos     ac_abs_top_srcdir=$srcdir ;;
   9178   1.84  christos   *) # Relative name.
   9179   1.84  christos     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   9180   1.84  christos     ac_top_srcdir=$ac_top_build_prefix$srcdir
   9181   1.84  christos     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   9182   1.84  christos esac
   9183   1.84  christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   9184   1.84  christos 
   9185   1.84  christos 
   9186   1.84  christos   case $ac_mode in
   9187   1.84  christos   :F)
   9188   1.84  christos   #
   9189   1.84  christos   # CONFIG_FILE
   9190   1.84  christos   #
   9191   1.84  christos 
   9192   1.84  christos _ACEOF
   9193   1.84  christos 
   9194   1.84  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9195   1.84  christos # If the template does not know about datarootdir, expand it.
   9196   1.84  christos # FIXME: This hack should be removed a few years after 2.60.
   9197   1.84  christos ac_datarootdir_hack=; ac_datarootdir_seen=
   9198   1.84  christos ac_sed_dataroot='
   9199   1.84  christos /datarootdir/ {
   9200   1.84  christos   p
   9201   1.84  christos   q
   9202   1.84  christos }
   9203   1.84  christos /@datadir@/p
   9204   1.84  christos /@docdir@/p
   9205   1.84  christos /@infodir@/p
   9206   1.84  christos /@localedir@/p
   9207   1.84  christos /@mandir@/p'
   9208   1.84  christos case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   9209   1.84  christos *datarootdir*) ac_datarootdir_seen=yes;;
   9210   1.84  christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   9211  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   9212  1.108  christos printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   9213   1.84  christos _ACEOF
   9214   1.84  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9215   1.84  christos   ac_datarootdir_hack='
   9216   1.84  christos   s&@datadir@&$datadir&g
   9217   1.84  christos   s&@docdir@&$docdir&g
   9218   1.84  christos   s&@infodir@&$infodir&g
   9219   1.84  christos   s&@localedir@&$localedir&g
   9220   1.84  christos   s&@mandir@&$mandir&g
   9221   1.84  christos   s&\\\${datarootdir}&$datarootdir&g' ;;
   9222   1.84  christos esac
   9223   1.84  christos _ACEOF
   9224   1.84  christos 
   9225  1.108  christos # Neutralize VPATH when '$srcdir' = '.'.
   9226   1.84  christos # Shell code in configure.ac might set extrasub.
   9227   1.84  christos # FIXME: do we really want to maintain this feature?
   9228   1.84  christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   9229   1.84  christos ac_sed_extra="$ac_vpsub
   9230   1.84  christos $extrasub
   9231   1.84  christos _ACEOF
   9232   1.84  christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   9233   1.84  christos :t
   9234   1.84  christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   9235   1.84  christos s|@configure_input@|$ac_sed_conf_input|;t t
   9236   1.84  christos s&@top_builddir@&$ac_top_builddir_sub&;t t
   9237   1.84  christos s&@top_build_prefix@&$ac_top_build_prefix&;t t
   9238   1.84  christos s&@srcdir@&$ac_srcdir&;t t
   9239   1.84  christos s&@abs_srcdir@&$ac_abs_srcdir&;t t
   9240   1.84  christos s&@top_srcdir@&$ac_top_srcdir&;t t
   9241   1.84  christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   9242   1.84  christos s&@builddir@&$ac_builddir&;t t
   9243   1.84  christos s&@abs_builddir@&$ac_abs_builddir&;t t
   9244   1.84  christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   9245   1.84  christos $ac_datarootdir_hack
   9246   1.84  christos "
   9247   1.84  christos eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   9248   1.84  christos   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   9249   1.84  christos 
   9250   1.84  christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   9251   1.84  christos   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   9252   1.84  christos   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   9253   1.84  christos       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   9254  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
   9255   1.84  christos which seems to be undefined.  Please make sure it is defined" >&5
   9256  1.108  christos printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
   9257   1.84  christos which seems to be undefined.  Please make sure it is defined" >&2;}
   9258   1.84  christos 
   9259   1.84  christos   rm -f "$ac_tmp/stdin"
   9260   1.84  christos   case $ac_file in
   9261   1.84  christos   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   9262   1.84  christos   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   9263   1.84  christos   esac \
   9264   1.84  christos   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   9265   1.84  christos  ;;
   9266   1.84  christos   :H)
   9267   1.84  christos   #
   9268   1.84  christos   # CONFIG_HEADER
   9269   1.84  christos   #
   9270   1.84  christos   if test x"$ac_file" != x-; then
   9271   1.84  christos     {
   9272  1.108  christos       printf "%s\n" "/* $configure_input  */" >&1 \
   9273   1.84  christos       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   9274   1.84  christos     } >"$ac_tmp/config.h" \
   9275   1.84  christos       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   9276   1.84  christos     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   9277  1.108  christos       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   9278  1.108  christos printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
   9279   1.84  christos     else
   9280   1.84  christos       rm -f "$ac_file"
   9281   1.84  christos       mv "$ac_tmp/config.h" "$ac_file" \
   9282   1.84  christos 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   9283    1.1        tv     fi
   9284    1.1        tv   else
   9285  1.108  christos     printf "%s\n" "/* $configure_input  */" >&1 \
   9286   1.84  christos       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   9287   1.84  christos       || as_fn_error $? "could not create -" "$LINENO" 5
   9288    1.1        tv   fi
   9289   1.84  christos  ;;
   9290   1.84  christos 
   9291   1.84  christos 
   9292   1.84  christos   esac
   9293   1.84  christos 
   9294   1.84  christos done # for ac_tag
   9295   1.74  christos 
   9296   1.74  christos 
   9297   1.84  christos as_fn_exit 0
   9298   1.84  christos _ACEOF
   9299    1.1        tv ac_clean_files=$ac_clean_files_save
   9300    1.1        tv 
   9301   1.84  christos test $ac_write_fail = 0 ||
   9302   1.84  christos   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   9303   1.84  christos 
   9304   1.84  christos 
   9305    1.1        tv # configure is writing to config.log, and then calls config.status.
   9306    1.1        tv # config.status does its own redirection, appending to config.log.
   9307    1.1        tv # Unfortunately, on DOS this fails, as config.log is still kept open
   9308    1.1        tv # by configure, so config.status won't be able to write to it; its
   9309    1.1        tv # output is simply discarded.  So we exec the FD to /dev/null,
   9310    1.1        tv # effectively closing config.log, so it can be properly (re)opened and
   9311    1.1        tv # appended to by config.status.  When coming back to configure, we
   9312    1.1        tv # need to make the FD available again.
   9313    1.1        tv if test "$no_create" != yes; then
   9314    1.1        tv   ac_cs_success=:
   9315   1.84  christos   ac_config_status_args=
   9316   1.84  christos   test "$silent" = yes &&
   9317   1.84  christos     ac_config_status_args="$ac_config_status_args --quiet"
   9318    1.1        tv   exec 5>/dev/null
   9319   1.84  christos   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   9320    1.1        tv   exec 5>>config.log
   9321    1.1        tv   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   9322    1.1        tv   # would make configure fail if this is the last instruction.
   9323   1.84  christos   $ac_cs_success || as_fn_exit 1
   9324   1.84  christos fi
   9325   1.84  christos if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   9326  1.108  christos   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   9327  1.108  christos printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   9328    1.1        tv fi
   9329   1.96   hannken 
   9330  1.102     lukem 
   9331  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ========= configure results for compat ==========" >&5
   9332  1.108  christos printf "%s\n" "$as_me: ========= configure results for compat ==========" >&6;}
   9333  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC                                      $CC" >&5
   9334  1.108  christos printf "%s\n" "$as_me: CC                                      $CC" >&6;}
   9335  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS                                    $LIBS" >&5
   9336  1.108  christos printf "%s\n" "$as_me: LIBS                                    $LIBS" >&6;}
   9337  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_NO_CPP_PRECOMP                       $CC_NO_CPP_PRECOMP" >&5
   9338  1.108  christos printf "%s\n" "$as_me: CC_NO_CPP_PRECOMP                       $CC_NO_CPP_PRECOMP" >&6;}
   9339  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_ADDRESS_OF_PACKED_MEMBER         $CC_WNO_ADDRESS_OF_PACKED_MEMBER" >&5
   9340  1.108  christos printf "%s\n" "$as_me: CC_WNO_ADDRESS_OF_PACKED_MEMBER         $CC_WNO_ADDRESS_OF_PACKED_MEMBER" >&6;}
   9341  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_CAST_FUNCTION_TYPE               $CC_WNO_CAST_FUNCTION_TYPE" >&5
   9342  1.108  christos printf "%s\n" "$as_me: CC_WNO_CAST_FUNCTION_TYPE               $CC_WNO_CAST_FUNCTION_TYPE" >&6;}
   9343  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER   $CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER" >&5
   9344  1.108  christos printf "%s\n" "$as_me: CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER   $CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER" >&6;}
   9345  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_FORMAT_OVERFLOW                  $CC_WNO_FORMAT_OVERFLOW" >&5
   9346  1.108  christos printf "%s\n" "$as_me: CC_WNO_FORMAT_OVERFLOW                  $CC_WNO_FORMAT_OVERFLOW" >&6;}
   9347  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_FORMAT_TRUNCATION                $CC_WNO_FORMAT_TRUNCATION" >&5
   9348  1.108  christos printf "%s\n" "$as_me: CC_WNO_FORMAT_TRUNCATION                $CC_WNO_FORMAT_TRUNCATION" >&6;}
   9349  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_IMPLICIT_FALLTHROUGH             $CC_WNO_IMPLICIT_FALLTHROUGH" >&5
   9350  1.108  christos printf "%s\n" "$as_me: CC_WNO_IMPLICIT_FALLTHROUGH             $CC_WNO_IMPLICIT_FALLTHROUGH" >&6;}
   9351  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_MAYBE_UNINITIALIZED              $CC_WNO_MAYBE_UNINITIALIZED" >&5
   9352  1.108  christos printf "%s\n" "$as_me: CC_WNO_MAYBE_UNINITIALIZED              $CC_WNO_MAYBE_UNINITIALIZED" >&6;}
   9353  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_RETURN_LOCAL_ADDR                $CC_WNO_RETURN_LOCAL_ADDR" >&5
   9354  1.108  christos printf "%s\n" "$as_me: CC_WNO_RETURN_LOCAL_ADDR                $CC_WNO_RETURN_LOCAL_ADDR" >&6;}
   9355  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_OVERFLOW                $CC_WNO_STRINGOP_OVERFLOW" >&5
   9356  1.108  christos printf "%s\n" "$as_me: CC_WNO_STRINGOP_OVERFLOW                $CC_WNO_STRINGOP_OVERFLOW" >&6;}
   9357  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_TRUNCATION              $CC_WNO_STRINGOP_TRUNCATION" >&5
   9358  1.108  christos printf "%s\n" "$as_me: CC_WNO_STRINGOP_TRUNCATION              $CC_WNO_STRINGOP_TRUNCATION" >&6;}
   9359  1.108  christos 
   9360  1.108  christos { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ================================================" >&5
   9361  1.108  christos printf "%s\n" "$as_me: ================================================" >&6;}
   9362  1.103     lukem 
   9363