Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.1
      1  1.1  christos #! /bin/sh
      2  1.1  christos # Guess values for system-dependent variables and create Makefiles.
      3  1.1  christos # Generated by GNU Autoconf 2.59b.
      4  1.1  christos #
      5  1.1  christos # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
      6  1.1  christos # 2003, 2004 Free Software Foundation, Inc.
      7  1.1  christos # This configure script is free software; the Free Software Foundation
      8  1.1  christos # gives unlimited permission to copy, distribute and modify it.
      9  1.1  christos ## --------------------- ##
     10  1.1  christos ## M4sh Initialization.  ##
     11  1.1  christos ## --------------------- ##
     12  1.1  christos 
     13  1.1  christos # Be Bourne compatible
     14  1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     15  1.1  christos   emulate sh
     16  1.1  christos   NULLCMD=:
     17  1.1  christos   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     18  1.1  christos   # is contrary to our usage.  Disable this feature.
     19  1.1  christos   alias -g '${1+"$@"}'='"$@"'
     20  1.1  christos   setopt NO_GLOB_SUBST
     21  1.1  christos elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     22  1.1  christos   set -o posix
     23  1.1  christos fi
     24  1.1  christos BIN_SH=xpg4; export BIN_SH # for Tru64
     25  1.1  christos DUALCASE=1; export DUALCASE # for MKS sh
     26  1.1  christos 
     27  1.1  christos 
     28  1.1  christos # PATH needs CR
     29  1.1  christos # Avoid depending upon Character Ranges.
     30  1.1  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     31  1.1  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     32  1.1  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     33  1.1  christos as_cr_digits='0123456789'
     34  1.1  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
     35  1.1  christos 
     36  1.1  christos # The user is always right.
     37  1.1  christos if test "${PATH_SEPARATOR+set}" != set; then
     38  1.1  christos   echo "#! /bin/sh" >conf$$.sh
     39  1.1  christos   echo  "exit 0"   >>conf$$.sh
     40  1.1  christos   chmod +x conf$$.sh
     41  1.1  christos   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     42  1.1  christos     PATH_SEPARATOR=';'
     43  1.1  christos   else
     44  1.1  christos     PATH_SEPARATOR=:
     45  1.1  christos   fi
     46  1.1  christos   rm -f conf$$.sh
     47  1.1  christos fi
     48  1.1  christos 
     49  1.1  christos # Support unset when possible.
     50  1.1  christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     51  1.1  christos   as_unset=unset
     52  1.1  christos else
     53  1.1  christos   as_unset=false
     54  1.1  christos fi
     55  1.1  christos 
     56  1.1  christos 
     57  1.1  christos # Find who we are.  Look in the path if we contain no path at all
     58  1.1  christos # relative or not.
     59  1.1  christos case $0 in
     60  1.1  christos   *[\\/]* ) as_myself=$0 ;;
     61  1.1  christos   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     62  1.1  christos for as_dir in $PATH
     63  1.1  christos do
     64  1.1  christos   IFS=$as_save_IFS
     65  1.1  christos   test -z "$as_dir" && as_dir=.
     66  1.1  christos   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     67  1.1  christos done
     68  1.1  christos 
     69  1.1  christos      ;;
     70  1.1  christos esac
     71  1.1  christos # We did not find ourselves, most probably we were run as `sh COMMAND'
     72  1.1  christos # in which case we are not to be found in the path.
     73  1.1  christos if test "x$as_myself" = x; then
     74  1.1  christos   as_myself=$0
     75  1.1  christos fi
     76  1.1  christos if test ! -f "$as_myself"; then
     77  1.1  christos   { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
     78  1.1  christos    { (exit 1); exit 1; }; }
     79  1.1  christos fi
     80  1.1  christos 
     81  1.1  christos # Work around bugs in pre-3.0 UWIN ksh.
     82  1.1  christos for as_var in ENV MAIL MAILPATH
     83  1.1  christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     84  1.1  christos done
     85  1.1  christos PS1='$ '
     86  1.1  christos PS2='> '
     87  1.1  christos PS4='+ '
     88  1.1  christos 
     89  1.1  christos # NLS nuisances.
     90  1.1  christos for as_var in \
     91  1.1  christos   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     92  1.1  christos   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     93  1.1  christos   LC_TELEPHONE LC_TIME
     94  1.1  christos do
     95  1.1  christos   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     96  1.1  christos     eval $as_var=C; export $as_var
     97  1.1  christos   else
     98  1.1  christos     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     99  1.1  christos   fi
    100  1.1  christos done
    101  1.1  christos 
    102  1.1  christos # Required to use basename.
    103  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1; then
    104  1.1  christos   as_expr=expr
    105  1.1  christos else
    106  1.1  christos   as_expr=false
    107  1.1  christos fi
    108  1.1  christos 
    109  1.1  christos if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
    110  1.1  christos   as_basename=basename
    111  1.1  christos else
    112  1.1  christos   as_basename=false
    113  1.1  christos fi
    114  1.1  christos 
    115  1.1  christos 
    116  1.1  christos # Name of the executable.
    117  1.1  christos as_me=`$as_basename "$0" ||
    118  1.1  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    119  1.1  christos 	 X"$0" : 'X\(//\)$' \| \
    120  1.1  christos 	 X"$0" : 'X\(/\)$' \| \
    121  1.1  christos 	 .     : '\(.\)' 2>/dev/null ||
    122  1.1  christos echo X/"$0" |
    123  1.1  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    124  1.1  christos   	  /^X\/\(\/\/\)$/{ s//\1/; q; }
    125  1.1  christos   	  /^X\/\(\/\).*/{ s//\1/; q; }
    126  1.1  christos   	  s/.*/./; q'`
    127  1.1  christos 
    128  1.1  christos 
    129  1.1  christos 
    130  1.1  christos if test "x$CONFIG_SHELL" = x; then
    131  1.1  christos   if (eval ":") 2>/dev/null; then
    132  1.1  christos   as_have_required=yes
    133  1.1  christos else
    134  1.1  christos   as_have_required=no
    135  1.1  christos fi
    136  1.1  christos 
    137  1.1  christos   if test $as_have_required = yes && 	 (eval ":
    138  1.1  christos (func_return () {
    139  1.1  christos   (exit \$1)
    140  1.1  christos }
    141  1.1  christos func_success () {
    142  1.1  christos   func_return 0
    143  1.1  christos }
    144  1.1  christos func_failure () {
    145  1.1  christos   func_return 1
    146  1.1  christos }
    147  1.1  christos func_ret_success () {
    148  1.1  christos   return 0
    149  1.1  christos }
    150  1.1  christos func_ret_failure () {
    151  1.1  christos   return 1
    152  1.1  christos }
    153  1.1  christos 
    154  1.1  christos exitcode=0
    155  1.1  christos if func_success; then
    156  1.1  christos   :
    157  1.1  christos else
    158  1.1  christos   exitcode=1
    159  1.1  christos   echo func_failure succeeded.
    160  1.1  christos fi
    161  1.1  christos 
    162  1.1  christos if func_failure; then
    163  1.1  christos   exitcode=1
    164  1.1  christos   echo func_success failed.
    165  1.1  christos fi
    166  1.1  christos 
    167  1.1  christos if func_ret_success; then
    168  1.1  christos   :
    169  1.1  christos else
    170  1.1  christos   exitcode=1
    171  1.1  christos   echo func_ret_success failed.
    172  1.1  christos fi
    173  1.1  christos 
    174  1.1  christos if func_ret_failure; then
    175  1.1  christos   exitcode=1
    176  1.1  christos   echo func_ret_failure succeeded.
    177  1.1  christos fi
    178  1.1  christos 
    179  1.1  christos test \$exitcode = 0) || { (exit 1); exit 1; }
    180  1.1  christos 
    181  1.1  christos (
    182  1.1  christos   as_lineno_1=\$LINENO
    183  1.1  christos   as_lineno_2=\$LINENO
    184  1.1  christos   as_lineno_3=\`(expr \$as_lineno_1 + 1) 2>/dev/null\`
    185  1.1  christos   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    186  1.1  christos   test \"x\$as_lineno_3\"  = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    187  1.1  christos ") 2> /dev/null; then
    188  1.1  christos   :
    189  1.1  christos else
    190  1.1  christos   as_candidate_shells=
    191  1.1  christos     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    192  1.1  christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    193  1.1  christos do
    194  1.1  christos   IFS=$as_save_IFS
    195  1.1  christos   test -z "$as_dir" && as_dir=.
    196  1.1  christos   case $as_dir in
    197  1.1  christos 	 /*)
    198  1.1  christos 	   for as_base in sh bash ksh sh5; do
    199  1.1  christos 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    200  1.1  christos 	   done
    201  1.1  christos        esac
    202  1.1  christos done
    203  1.1  christos 
    204  1.1  christos 
    205  1.1  christos       for as_shell in $as_candidate_shells $SHELL; do
    206  1.1  christos 	 if { $as_shell 2> /dev/null <<\_ASEOF
    207  1.1  christos # Be Bourne compatible
    208  1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    209  1.1  christos   emulate sh
    210  1.1  christos   NULLCMD=:
    211  1.1  christos   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    212  1.1  christos   # is contrary to our usage.  Disable this feature.
    213  1.1  christos   alias -g '${1+"$@"}'='"$@"'
    214  1.1  christos   setopt NO_GLOB_SUBST
    215  1.1  christos elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    216  1.1  christos   set -o posix
    217  1.1  christos fi
    218  1.1  christos BIN_SH=xpg4; export BIN_SH # for Tru64
    219  1.1  christos DUALCASE=1; export DUALCASE # for MKS sh
    220  1.1  christos 
    221  1.1  christos :
    222  1.1  christos _ASEOF
    223  1.1  christos }; then
    224  1.1  christos   CONFIG_SHELL=$as_shell
    225  1.1  christos 	       as_have_required=yes
    226  1.1  christos 	       if { $as_shell 2> /dev/null <<\_ASEOF
    227  1.1  christos # Be Bourne compatible
    228  1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    229  1.1  christos   emulate sh
    230  1.1  christos   NULLCMD=:
    231  1.1  christos   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    232  1.1  christos   # is contrary to our usage.  Disable this feature.
    233  1.1  christos   alias -g '${1+"$@"}'='"$@"'
    234  1.1  christos   setopt NO_GLOB_SUBST
    235  1.1  christos elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    236  1.1  christos   set -o posix
    237  1.1  christos fi
    238  1.1  christos BIN_SH=xpg4; export BIN_SH # for Tru64
    239  1.1  christos DUALCASE=1; export DUALCASE # for MKS sh
    240  1.1  christos 
    241  1.1  christos :
    242  1.1  christos (func_return () {
    243  1.1  christos   (exit $1)
    244  1.1  christos }
    245  1.1  christos func_success () {
    246  1.1  christos   func_return 0
    247  1.1  christos }
    248  1.1  christos func_failure () {
    249  1.1  christos   func_return 1
    250  1.1  christos }
    251  1.1  christos func_ret_success () {
    252  1.1  christos   return 0
    253  1.1  christos }
    254  1.1  christos func_ret_failure () {
    255  1.1  christos   return 1
    256  1.1  christos }
    257  1.1  christos 
    258  1.1  christos exitcode=0
    259  1.1  christos if func_success; then
    260  1.1  christos   :
    261  1.1  christos else
    262  1.1  christos   exitcode=1
    263  1.1  christos   echo func_failure succeeded.
    264  1.1  christos fi
    265  1.1  christos 
    266  1.1  christos if func_failure; then
    267  1.1  christos   exitcode=1
    268  1.1  christos   echo func_success failed.
    269  1.1  christos fi
    270  1.1  christos 
    271  1.1  christos if func_ret_success; then
    272  1.1  christos   :
    273  1.1  christos else
    274  1.1  christos   exitcode=1
    275  1.1  christos   echo func_ret_success failed.
    276  1.1  christos fi
    277  1.1  christos 
    278  1.1  christos if func_ret_failure; then
    279  1.1  christos   exitcode=1
    280  1.1  christos   echo func_ret_failure succeeded.
    281  1.1  christos fi
    282  1.1  christos 
    283  1.1  christos test $exitcode = 0) || { (exit 1); exit 1; }
    284  1.1  christos 
    285  1.1  christos (
    286  1.1  christos   as_lineno_1=$LINENO
    287  1.1  christos   as_lineno_2=$LINENO
    288  1.1  christos   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    289  1.1  christos   test "x$as_lineno_1" != "x$as_lineno_2" &&
    290  1.1  christos   test "x$as_lineno_3"  = "x$as_lineno_2") || { (exit 1); exit 1; }
    291  1.1  christos 
    292  1.1  christos _ASEOF
    293  1.1  christos }; then
    294  1.1  christos   break
    295  1.1  christos fi
    296  1.1  christos 
    297  1.1  christos fi
    298  1.1  christos 
    299  1.1  christos       done
    300  1.1  christos 
    301  1.1  christos       if test "x$CONFIG_SHELL" != x; then
    302  1.1  christos   for as_var in BASH_ENV ENV
    303  1.1  christos         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    304  1.1  christos         done
    305  1.1  christos         export CONFIG_SHELL
    306  1.1  christos         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    307  1.1  christos fi
    308  1.1  christos 
    309  1.1  christos 
    310  1.1  christos     if test $as_have_required = no; then
    311  1.1  christos   echo This script requires a shell more modern than all the
    312  1.1  christos       echo shells that I found on your system.  Please install a
    313  1.1  christos       echo modern shell, or manually run the script under such a
    314  1.1  christos       echo shell if you do have one.
    315  1.1  christos       { (exit 1); exit 1; }
    316  1.1  christos fi
    317  1.1  christos 
    318  1.1  christos 
    319  1.1  christos fi
    320  1.1  christos 
    321  1.1  christos fi
    322  1.1  christos 
    323  1.1  christos 
    324  1.1  christos 
    325  1.1  christos (eval "func_return () {
    326  1.1  christos   (exit \$1)
    327  1.1  christos }
    328  1.1  christos func_success () {
    329  1.1  christos   func_return 0
    330  1.1  christos }
    331  1.1  christos func_failure () {
    332  1.1  christos   func_return 1
    333  1.1  christos }
    334  1.1  christos func_ret_success () {
    335  1.1  christos   return 0
    336  1.1  christos }
    337  1.1  christos func_ret_failure () {
    338  1.1  christos   return 1
    339  1.1  christos }
    340  1.1  christos 
    341  1.1  christos exitcode=0
    342  1.1  christos if func_success; then
    343  1.1  christos   :
    344  1.1  christos else
    345  1.1  christos   exitcode=1
    346  1.1  christos   echo func_failure succeeded.
    347  1.1  christos fi
    348  1.1  christos 
    349  1.1  christos if func_failure; then
    350  1.1  christos   exitcode=1
    351  1.1  christos   echo func_success failed.
    352  1.1  christos fi
    353  1.1  christos 
    354  1.1  christos if func_ret_success; then
    355  1.1  christos   :
    356  1.1  christos else
    357  1.1  christos   exitcode=1
    358  1.1  christos   echo func_ret_success failed.
    359  1.1  christos fi
    360  1.1  christos 
    361  1.1  christos if func_ret_failure; then
    362  1.1  christos   exitcode=1
    363  1.1  christos   echo func_ret_failure succeeded.
    364  1.1  christos fi
    365  1.1  christos 
    366  1.1  christos test \$exitcode = 0") || {
    367  1.1  christos   echo No shell found that supports shell functions.
    368  1.1  christos   echo Please tell autoconf@gnu.org about your system,
    369  1.1  christos   echo including any error possibly output before this
    370  1.1  christos   echo message
    371  1.1  christos }
    372  1.1  christos 
    373  1.1  christos 
    374  1.1  christos 
    375  1.1  christos   as_lineno_1=$LINENO
    376  1.1  christos   as_lineno_2=$LINENO
    377  1.1  christos   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    378  1.1  christos   test "x$as_lineno_1" != "x$as_lineno_2" &&
    379  1.1  christos   test "x$as_lineno_3"  = "x$as_lineno_2" || {
    380  1.1  christos 
    381  1.1  christos   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    382  1.1  christos   # uniformly replaced by the line number.  The first 'sed' inserts a
    383  1.1  christos   # line-number line after each line using $LINENO; the second 'sed'
    384  1.1  christos   # does the real work.  The second script uses 'N' to pair each
    385  1.1  christos   # line-number line with the line containing $LINENO, and appends
    386  1.1  christos   # trailing '-' during substitution so that $LINENO is not a special
    387  1.1  christos   # case at line end.
    388  1.1  christos   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    389  1.1  christos   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    390  1.1  christos   # E. McMahon (1931-1989) for sed's syntax.  :-)
    391  1.1  christos   sed -n '
    392  1.1  christos     p
    393  1.1  christos     /[$]LINENO/=
    394  1.1  christos   ' <$as_myself |
    395  1.1  christos     sed '
    396  1.1  christos       s,[$]LINENO.*,&-,
    397  1.1  christos       t lineno
    398  1.1  christos       b
    399  1.1  christos       : lineno
    400  1.1  christos       N
    401  1.1  christos       : loop
    402  1.1  christos       s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
    403  1.1  christos       t loop
    404  1.1  christos       s,-\n.*,,
    405  1.1  christos     ' >$as_me.lineno &&
    406  1.1  christos   chmod +x $as_me.lineno ||
    407  1.1  christos     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    408  1.1  christos    { (exit 1); exit 1; }; }
    409  1.1  christos 
    410  1.1  christos   # Don't try to exec as it changes $[0], causing all sort of problems
    411  1.1  christos   # (the dirname of $[0] is not the place where we might find the
    412  1.1  christos   # original and so on.  Autoconf is especially sensible to this).
    413  1.1  christos   . ./$as_me.lineno
    414  1.1  christos   # Exit status is that of the last command.
    415  1.1  christos   exit
    416  1.1  christos }
    417  1.1  christos 
    418  1.1  christos 
    419  1.1  christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    420  1.1  christos   *c*,-n*) ECHO_N= ECHO_C='
    421  1.1  christos ' ECHO_T='	' ;;
    422  1.1  christos   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    423  1.1  christos   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    424  1.1  christos esac
    425  1.1  christos 
    426  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1; then
    427  1.1  christos   as_expr=expr
    428  1.1  christos else
    429  1.1  christos   as_expr=false
    430  1.1  christos fi
    431  1.1  christos 
    432  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
    433  1.1  christos echo >conf$$.file
    434  1.1  christos if ln -s conf$$.file conf$$ 2>/dev/null; then
    435  1.1  christos   # We could just check for DJGPP; but this test a) works b) is more generic
    436  1.1  christos   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    437  1.1  christos   if test -f conf$$.exe; then
    438  1.1  christos     # Don't use ln at all; we don't have any links
    439  1.1  christos     as_ln_s='cp -p'
    440  1.1  christos   else
    441  1.1  christos     as_ln_s='ln -s'
    442  1.1  christos   fi
    443  1.1  christos elif ln conf$$.file conf$$ 2>/dev/null; then
    444  1.1  christos   as_ln_s=ln
    445  1.1  christos else
    446  1.1  christos   as_ln_s='cp -p'
    447  1.1  christos fi
    448  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
    449  1.1  christos 
    450  1.1  christos if mkdir -p . 2>/dev/null; then
    451  1.1  christos   as_mkdir_p=:
    452  1.1  christos else
    453  1.1  christos   test -d ./-p && rmdir ./-p
    454  1.1  christos   as_mkdir_p=false
    455  1.1  christos fi
    456  1.1  christos 
    457  1.1  christos as_executable_p="test -f"
    458  1.1  christos 
    459  1.1  christos # Sed expression to map a string onto a valid CPP name.
    460  1.1  christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    461  1.1  christos 
    462  1.1  christos # Sed expression to map a string onto a valid variable name.
    463  1.1  christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    464  1.1  christos 
    465  1.1  christos 
    466  1.1  christos # IFS
    467  1.1  christos # We need space, tab and new line, in precisely that order.
    468  1.1  christos as_nl='
    469  1.1  christos '
    470  1.1  christos IFS=" 	$as_nl"
    471  1.1  christos 
    472  1.1  christos # CDPATH.
    473  1.1  christos $as_unset CDPATH
    474  1.1  christos 
    475  1.1  christos 
    476  1.1  christos # Name of the host.
    477  1.1  christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    478  1.1  christos # so uname gets run too.
    479  1.1  christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    480  1.1  christos 
    481  1.1  christos exec 6>&1
    482  1.1  christos 
    483  1.1  christos #
    484  1.1  christos # Initializations.
    485  1.1  christos #
    486  1.1  christos ac_default_prefix=/usr/local
    487  1.1  christos ac_config_libobj_dir=.
    488  1.1  christos cross_compiling=no
    489  1.1  christos subdirs=
    490  1.1  christos MFLAGS=
    491  1.1  christos MAKEFLAGS=
    492  1.1  christos SHELL=${CONFIG_SHELL-/bin/sh}
    493  1.1  christos 
    494  1.1  christos # Maximum number of lines to put in a shell here document.
    495  1.1  christos # This variable seems obsolete.  It should probably be removed, and
    496  1.1  christos # only ac_max_sed_lines should be used.
    497  1.1  christos : ${ac_max_here_lines=38}
    498  1.1  christos 
    499  1.1  christos # Identity of this package.
    500  1.1  christos PACKAGE_NAME=
    501  1.1  christos PACKAGE_TARNAME=
    502  1.1  christos PACKAGE_VERSION=
    503  1.1  christos PACKAGE_STRING=
    504  1.1  christos PACKAGE_BUGREPORT=
    505  1.1  christos 
    506  1.1  christos ac_unique_file="src/roff/groff/groff.cpp"
    507  1.1  christos # Factoring default headers for most tests.
    508  1.1  christos ac_includes_default="\
    509  1.1  christos #include <stdio.h>
    510  1.1  christos #if HAVE_SYS_TYPES_H
    511  1.1  christos # include <sys/types.h>
    512  1.1  christos #endif
    513  1.1  christos #if HAVE_SYS_STAT_H
    514  1.1  christos # include <sys/stat.h>
    515  1.1  christos #endif
    516  1.1  christos #if STDC_HEADERS
    517  1.1  christos # include <stdlib.h>
    518  1.1  christos # include <stddef.h>
    519  1.1  christos #else
    520  1.1  christos # if HAVE_STDLIB_H
    521  1.1  christos #  include <stdlib.h>
    522  1.1  christos # endif
    523  1.1  christos #endif
    524  1.1  christos #if HAVE_STRING_H
    525  1.1  christos # if !STDC_HEADERS && HAVE_MEMORY_H
    526  1.1  christos #  include <memory.h>
    527  1.1  christos # endif
    528  1.1  christos # include <string.h>
    529  1.1  christos #endif
    530  1.1  christos #if HAVE_STRINGS_H
    531  1.1  christos # include <strings.h>
    532  1.1  christos #endif
    533  1.1  christos #if HAVE_INTTYPES_H
    534  1.1  christos # include <inttypes.h>
    535  1.1  christos #endif
    536  1.1  christos #if HAVE_STDINT_H
    537  1.1  christos # include <stdint.h>
    538  1.1  christos #endif
    539  1.1  christos #if HAVE_UNISTD_H
    540  1.1  christos # include <unistd.h>
    541  1.1  christos #endif"
    542  1.1  christos 
    543  1.1  christos ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XDEVDIRS XPROGDIRS XLIBDIRS appresdir LPR LP LPQ PSPRINT DVIPRINT PERLPATH YACC RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD GREP EGREP LIBC LIBM LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR ALT_GHOSTSCRIPT_PROGS GHOSTSCRIPT ac_ct_GHOSTSCRIPT pnmcut pnmcrop pnmtopng psselect pnmtops make_html make_install_html ALT_AWK_PROGS AWK ac_ct_AWK make_pdfdoc make_install_pdfdoc pnmtops_nosetpage LTLIBOBJS'
    544  1.1  christos ac_subst_files=''
    545  1.1  christos 
    546  1.1  christos # Initialize some variables set by options.
    547  1.1  christos ac_init_help=
    548  1.1  christos ac_init_version=false
    549  1.1  christos # The variables have the same names as the options, with
    550  1.1  christos # dashes changed to underlines.
    551  1.1  christos cache_file=/dev/null
    552  1.1  christos exec_prefix=NONE
    553  1.1  christos no_create=
    554  1.1  christos no_recursion=
    555  1.1  christos prefix=NONE
    556  1.1  christos program_prefix=NONE
    557  1.1  christos program_suffix=NONE
    558  1.1  christos program_transform_name=s,x,x,
    559  1.1  christos silent=
    560  1.1  christos site=
    561  1.1  christos srcdir=
    562  1.1  christos verbose=
    563  1.1  christos x_includes=NONE
    564  1.1  christos x_libraries=NONE
    565  1.1  christos 
    566  1.1  christos # Installation directory options.
    567  1.1  christos # These are left unexpanded so users can "make install exec_prefix=/foo"
    568  1.1  christos # and all the variables that are supposed to be based on exec_prefix
    569  1.1  christos # by default will actually change.
    570  1.1  christos # Use braces instead of parens because sh, perl, etc. also accept them.
    571  1.1  christos bindir='${exec_prefix}/bin'
    572  1.1  christos sbindir='${exec_prefix}/sbin'
    573  1.1  christos libexecdir='${exec_prefix}/libexec'
    574  1.1  christos datadir='${prefix}/share'
    575  1.1  christos sysconfdir='${prefix}/etc'
    576  1.1  christos sharedstatedir='${prefix}/com'
    577  1.1  christos localstatedir='${prefix}/var'
    578  1.1  christos libdir='${exec_prefix}/lib'
    579  1.1  christos includedir='${prefix}/include'
    580  1.1  christos oldincludedir='/usr/include'
    581  1.1  christos infodir='${prefix}/info'
    582  1.1  christos mandir='${prefix}/man'
    583  1.1  christos 
    584  1.1  christos ac_prev=
    585  1.1  christos ac_dashdash=
    586  1.1  christos for ac_option
    587  1.1  christos do
    588  1.1  christos   # If the previous option needs an argument, assign it.
    589  1.1  christos   if test -n "$ac_prev"; then
    590  1.1  christos     eval "$ac_prev=\$ac_option"
    591  1.1  christos     ac_prev=
    592  1.1  christos     continue
    593  1.1  christos   fi
    594  1.1  christos 
    595  1.1  christos   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    596  1.1  christos 
    597  1.1  christos   # Accept the important Cygnus configure options, so we can diagnose typos.
    598  1.1  christos 
    599  1.1  christos   case $ac_dashdash$ac_option in
    600  1.1  christos   --)
    601  1.1  christos     ac_dashdash=yes ;;
    602  1.1  christos 
    603  1.1  christos   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    604  1.1  christos     ac_prev=bindir ;;
    605  1.1  christos   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    606  1.1  christos     bindir=$ac_optarg ;;
    607  1.1  christos 
    608  1.1  christos   -build | --build | --buil | --bui | --bu)
    609  1.1  christos     ac_prev=build_alias ;;
    610  1.1  christos   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    611  1.1  christos     build_alias=$ac_optarg ;;
    612  1.1  christos 
    613  1.1  christos   -cache-file | --cache-file | --cache-fil | --cache-fi \
    614  1.1  christos   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    615  1.1  christos     ac_prev=cache_file ;;
    616  1.1  christos   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    617  1.1  christos   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    618  1.1  christos     cache_file=$ac_optarg ;;
    619  1.1  christos 
    620  1.1  christos   --config-cache | -C)
    621  1.1  christos     cache_file=config.cache ;;
    622  1.1  christos 
    623  1.1  christos   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    624  1.1  christos     ac_prev=datadir ;;
    625  1.1  christos   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    626  1.1  christos   | --da=*)
    627  1.1  christos     datadir=$ac_optarg ;;
    628  1.1  christos 
    629  1.1  christos   -disable-* | --disable-*)
    630  1.1  christos     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    631  1.1  christos     # Reject names that are not valid shell variable names.
    632  1.1  christos     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    633  1.1  christos       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    634  1.1  christos    { (exit 1); exit 1; }; }
    635  1.1  christos     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    636  1.1  christos     eval "enable_$ac_feature=no" ;;
    637  1.1  christos 
    638  1.1  christos   -enable-* | --enable-*)
    639  1.1  christos     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    640  1.1  christos     # Reject names that are not valid shell variable names.
    641  1.1  christos     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    642  1.1  christos       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    643  1.1  christos    { (exit 1); exit 1; }; }
    644  1.1  christos     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    645  1.1  christos     case $ac_option in
    646  1.1  christos       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    647  1.1  christos       *) ac_optarg=yes ;;
    648  1.1  christos     esac
    649  1.1  christos     eval "enable_$ac_feature='$ac_optarg'" ;;
    650  1.1  christos 
    651  1.1  christos   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    652  1.1  christos   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    653  1.1  christos   | --exec | --exe | --ex)
    654  1.1  christos     ac_prev=exec_prefix ;;
    655  1.1  christos   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    656  1.1  christos   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    657  1.1  christos   | --exec=* | --exe=* | --ex=*)
    658  1.1  christos     exec_prefix=$ac_optarg ;;
    659  1.1  christos 
    660  1.1  christos   -gas | --gas | --ga | --g)
    661  1.1  christos     # Obsolete; use --with-gas.
    662  1.1  christos     with_gas=yes ;;
    663  1.1  christos 
    664  1.1  christos   -help | --help | --hel | --he | -h)
    665  1.1  christos     ac_init_help=long ;;
    666  1.1  christos   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    667  1.1  christos     ac_init_help=recursive ;;
    668  1.1  christos   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    669  1.1  christos     ac_init_help=short ;;
    670  1.1  christos 
    671  1.1  christos   -host | --host | --hos | --ho)
    672  1.1  christos     ac_prev=host_alias ;;
    673  1.1  christos   -host=* | --host=* | --hos=* | --ho=*)
    674  1.1  christos     host_alias=$ac_optarg ;;
    675  1.1  christos 
    676  1.1  christos   -includedir | --includedir | --includedi | --included | --include \
    677  1.1  christos   | --includ | --inclu | --incl | --inc)
    678  1.1  christos     ac_prev=includedir ;;
    679  1.1  christos   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    680  1.1  christos   | --includ=* | --inclu=* | --incl=* | --inc=*)
    681  1.1  christos     includedir=$ac_optarg ;;
    682  1.1  christos 
    683  1.1  christos   -infodir | --infodir | --infodi | --infod | --info | --inf)
    684  1.1  christos     ac_prev=infodir ;;
    685  1.1  christos   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    686  1.1  christos     infodir=$ac_optarg ;;
    687  1.1  christos 
    688  1.1  christos   -libdir | --libdir | --libdi | --libd)
    689  1.1  christos     ac_prev=libdir ;;
    690  1.1  christos   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    691  1.1  christos     libdir=$ac_optarg ;;
    692  1.1  christos 
    693  1.1  christos   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    694  1.1  christos   | --libexe | --libex | --libe)
    695  1.1  christos     ac_prev=libexecdir ;;
    696  1.1  christos   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    697  1.1  christos   | --libexe=* | --libex=* | --libe=*)
    698  1.1  christos     libexecdir=$ac_optarg ;;
    699  1.1  christos 
    700  1.1  christos   -localstatedir | --localstatedir | --localstatedi | --localstated \
    701  1.1  christos   | --localstate | --localstat | --localsta | --localst \
    702  1.1  christos   | --locals | --local | --loca | --loc | --lo)
    703  1.1  christos     ac_prev=localstatedir ;;
    704  1.1  christos   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    705  1.1  christos   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    706  1.1  christos   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    707  1.1  christos     localstatedir=$ac_optarg ;;
    708  1.1  christos 
    709  1.1  christos   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    710  1.1  christos     ac_prev=mandir ;;
    711  1.1  christos   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    712  1.1  christos     mandir=$ac_optarg ;;
    713  1.1  christos 
    714  1.1  christos   -nfp | --nfp | --nf)
    715  1.1  christos     # Obsolete; use --without-fp.
    716  1.1  christos     with_fp=no ;;
    717  1.1  christos 
    718  1.1  christos   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    719  1.1  christos   | --no-cr | --no-c | -n)
    720  1.1  christos     no_create=yes ;;
    721  1.1  christos 
    722  1.1  christos   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    723  1.1  christos   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    724  1.1  christos     no_recursion=yes ;;
    725  1.1  christos 
    726  1.1  christos   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    727  1.1  christos   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    728  1.1  christos   | --oldin | --oldi | --old | --ol | --o)
    729  1.1  christos     ac_prev=oldincludedir ;;
    730  1.1  christos   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    731  1.1  christos   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    732  1.1  christos   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    733  1.1  christos     oldincludedir=$ac_optarg ;;
    734  1.1  christos 
    735  1.1  christos   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    736  1.1  christos     ac_prev=prefix ;;
    737  1.1  christos   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    738  1.1  christos     prefix=$ac_optarg ;;
    739  1.1  christos 
    740  1.1  christos   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    741  1.1  christos   | --program-pre | --program-pr | --program-p)
    742  1.1  christos     ac_prev=program_prefix ;;
    743  1.1  christos   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    744  1.1  christos   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    745  1.1  christos     program_prefix=$ac_optarg ;;
    746  1.1  christos 
    747  1.1  christos   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    748  1.1  christos   | --program-suf | --program-su | --program-s)
    749  1.1  christos     ac_prev=program_suffix ;;
    750  1.1  christos   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    751  1.1  christos   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    752  1.1  christos     program_suffix=$ac_optarg ;;
    753  1.1  christos 
    754  1.1  christos   -program-transform-name | --program-transform-name \
    755  1.1  christos   | --program-transform-nam | --program-transform-na \
    756  1.1  christos   | --program-transform-n | --program-transform- \
    757  1.1  christos   | --program-transform | --program-transfor \
    758  1.1  christos   | --program-transfo | --program-transf \
    759  1.1  christos   | --program-trans | --program-tran \
    760  1.1  christos   | --progr-tra | --program-tr | --program-t)
    761  1.1  christos     ac_prev=program_transform_name ;;
    762  1.1  christos   -program-transform-name=* | --program-transform-name=* \
    763  1.1  christos   | --program-transform-nam=* | --program-transform-na=* \
    764  1.1  christos   | --program-transform-n=* | --program-transform-=* \
    765  1.1  christos   | --program-transform=* | --program-transfor=* \
    766  1.1  christos   | --program-transfo=* | --program-transf=* \
    767  1.1  christos   | --program-trans=* | --program-tran=* \
    768  1.1  christos   | --progr-tra=* | --program-tr=* | --program-t=*)
    769  1.1  christos     program_transform_name=$ac_optarg ;;
    770  1.1  christos 
    771  1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    772  1.1  christos   | -silent | --silent | --silen | --sile | --sil)
    773  1.1  christos     silent=yes ;;
    774  1.1  christos 
    775  1.1  christos   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    776  1.1  christos     ac_prev=sbindir ;;
    777  1.1  christos   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    778  1.1  christos   | --sbi=* | --sb=*)
    779  1.1  christos     sbindir=$ac_optarg ;;
    780  1.1  christos 
    781  1.1  christos   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    782  1.1  christos   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    783  1.1  christos   | --sharedst | --shareds | --shared | --share | --shar \
    784  1.1  christos   | --sha | --sh)
    785  1.1  christos     ac_prev=sharedstatedir ;;
    786  1.1  christos   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    787  1.1  christos   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    788  1.1  christos   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    789  1.1  christos   | --sha=* | --sh=*)
    790  1.1  christos     sharedstatedir=$ac_optarg ;;
    791  1.1  christos 
    792  1.1  christos   -site | --site | --sit)
    793  1.1  christos     ac_prev=site ;;
    794  1.1  christos   -site=* | --site=* | --sit=*)
    795  1.1  christos     site=$ac_optarg ;;
    796  1.1  christos 
    797  1.1  christos   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    798  1.1  christos     ac_prev=srcdir ;;
    799  1.1  christos   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    800  1.1  christos     srcdir=$ac_optarg ;;
    801  1.1  christos 
    802  1.1  christos   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    803  1.1  christos   | --syscon | --sysco | --sysc | --sys | --sy)
    804  1.1  christos     ac_prev=sysconfdir ;;
    805  1.1  christos   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    806  1.1  christos   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    807  1.1  christos     sysconfdir=$ac_optarg ;;
    808  1.1  christos 
    809  1.1  christos   -target | --target | --targe | --targ | --tar | --ta | --t)
    810  1.1  christos     ac_prev=target_alias ;;
    811  1.1  christos   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    812  1.1  christos     target_alias=$ac_optarg ;;
    813  1.1  christos 
    814  1.1  christos   -v | -verbose | --verbose | --verbos | --verbo | --verb)
    815  1.1  christos     verbose=yes ;;
    816  1.1  christos 
    817  1.1  christos   -version | --version | --versio | --versi | --vers | -V)
    818  1.1  christos     ac_init_version=: ;;
    819  1.1  christos 
    820  1.1  christos   -with-* | --with-*)
    821  1.1  christos     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    822  1.1  christos     # Reject names that are not valid shell variable names.
    823  1.1  christos     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    824  1.1  christos       { echo "$as_me: error: invalid package name: $ac_package" >&2
    825  1.1  christos    { (exit 1); exit 1; }; }
    826  1.1  christos     ac_package=`echo $ac_package| sed 's/-/_/g'`
    827  1.1  christos     case $ac_option in
    828  1.1  christos       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    829  1.1  christos       *) ac_optarg=yes ;;
    830  1.1  christos     esac
    831  1.1  christos     eval "with_$ac_package='$ac_optarg'" ;;
    832  1.1  christos 
    833  1.1  christos   -without-* | --without-*)
    834  1.1  christos     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    835  1.1  christos     # Reject names that are not valid shell variable names.
    836  1.1  christos     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    837  1.1  christos       { echo "$as_me: error: invalid package name: $ac_package" >&2
    838  1.1  christos    { (exit 1); exit 1; }; }
    839  1.1  christos     ac_package=`echo $ac_package | sed 's/-/_/g'`
    840  1.1  christos     eval "with_$ac_package=no" ;;
    841  1.1  christos 
    842  1.1  christos   --x)
    843  1.1  christos     # Obsolete; use --with-x.
    844  1.1  christos     with_x=yes ;;
    845  1.1  christos 
    846  1.1  christos   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
    847  1.1  christos   | --x-incl | --x-inc | --x-in | --x-i)
    848  1.1  christos     ac_prev=x_includes ;;
    849  1.1  christos   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    850  1.1  christos   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    851  1.1  christos     x_includes=$ac_optarg ;;
    852  1.1  christos 
    853  1.1  christos   -x-libraries | --x-libraries | --x-librarie | --x-librari \
    854  1.1  christos   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    855  1.1  christos     ac_prev=x_libraries ;;
    856  1.1  christos   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    857  1.1  christos   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    858  1.1  christos     x_libraries=$ac_optarg ;;
    859  1.1  christos 
    860  1.1  christos   -*) { echo "$as_me: error: unrecognized option: $ac_option
    861  1.1  christos Try \`$0 --help' for more information." >&2
    862  1.1  christos    { (exit 1); exit 1; }; }
    863  1.1  christos     ;;
    864  1.1  christos 
    865  1.1  christos   *=*)
    866  1.1  christos     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    867  1.1  christos     # Reject names that are not valid shell variable names.
    868  1.1  christos     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    869  1.1  christos       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    870  1.1  christos    { (exit 1); exit 1; }; }
    871  1.1  christos     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    872  1.1  christos     eval "$ac_envvar='$ac_optarg'"
    873  1.1  christos     export $ac_envvar ;;
    874  1.1  christos 
    875  1.1  christos   *)
    876  1.1  christos     # FIXME: should be removed in autoconf 3.0.
    877  1.1  christos     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    878  1.1  christos     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    879  1.1  christos       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    880  1.1  christos     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    881  1.1  christos     ;;
    882  1.1  christos 
    883  1.1  christos   esac
    884  1.1  christos done
    885  1.1  christos 
    886  1.1  christos if test -n "$ac_prev"; then
    887  1.1  christos   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    888  1.1  christos   { echo "$as_me: error: missing argument to $ac_option" >&2
    889  1.1  christos    { (exit 1); exit 1; }; }
    890  1.1  christos fi
    891  1.1  christos 
    892  1.1  christos # Be sure to have absolute directory names.
    893  1.1  christos for ac_var in exec_prefix prefix
    894  1.1  christos do
    895  1.1  christos   eval ac_val=$`echo $ac_var`
    896  1.1  christos   case $ac_val in
    897  1.1  christos     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    898  1.1  christos     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    899  1.1  christos    { (exit 1); exit 1; }; };;
    900  1.1  christos   esac
    901  1.1  christos done
    902  1.1  christos 
    903  1.1  christos # Be sure to have absolute directory names.
    904  1.1  christos for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    905  1.1  christos 	      localstatedir libdir includedir oldincludedir infodir mandir
    906  1.1  christos do
    907  1.1  christos   eval ac_val=$`echo $ac_var`
    908  1.1  christos   case $ac_val in
    909  1.1  christos     [\\/$]* | ?:[\\/]* ) ;;
    910  1.1  christos     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    911  1.1  christos    { (exit 1); exit 1; }; };;
    912  1.1  christos   esac
    913  1.1  christos done
    914  1.1  christos 
    915  1.1  christos # There might be people who depend on the old broken behavior: `$host'
    916  1.1  christos # used to hold the argument of --host etc.
    917  1.1  christos # FIXME: To remove some day.
    918  1.1  christos build=$build_alias
    919  1.1  christos host=$host_alias
    920  1.1  christos target=$target_alias
    921  1.1  christos 
    922  1.1  christos # FIXME: To remove some day.
    923  1.1  christos if test "x$host_alias" != x; then
    924  1.1  christos   if test "x$build_alias" = x; then
    925  1.1  christos     cross_compiling=maybe
    926  1.1  christos     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    927  1.1  christos     If a cross compiler is detected then cross compile mode will be used." >&2
    928  1.1  christos   elif test "x$build_alias" != "x$host_alias"; then
    929  1.1  christos     cross_compiling=yes
    930  1.1  christos   fi
    931  1.1  christos fi
    932  1.1  christos 
    933  1.1  christos ac_tool_prefix=
    934  1.1  christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
    935  1.1  christos 
    936  1.1  christos test "$silent" = yes && exec 6>/dev/null
    937  1.1  christos 
    938  1.1  christos 
    939  1.1  christos # Find the source files, if location was not specified.
    940  1.1  christos if test -z "$srcdir"; then
    941  1.1  christos   ac_srcdir_defaulted=yes
    942  1.1  christos   # Try the directory containing this script, then its parent.
    943  1.1  christos   ac_confdir=`(dirname "$0") 2>/dev/null ||
    944  1.1  christos $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    945  1.1  christos 	 X"$0" : 'X\(//\)[^/]' \| \
    946  1.1  christos 	 X"$0" : 'X\(//\)$' \| \
    947  1.1  christos 	 X"$0" : 'X\(/\)' \| \
    948  1.1  christos 	 .     : '\(.\)' 2>/dev/null ||
    949  1.1  christos echo X"$0" |
    950  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    951  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    952  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
    953  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
    954  1.1  christos   	  s/.*/./; q'`
    955  1.1  christos   srcdir=$ac_confdir
    956  1.1  christos   if test ! -r $srcdir/$ac_unique_file; then
    957  1.1  christos     srcdir=..
    958  1.1  christos   fi
    959  1.1  christos else
    960  1.1  christos   ac_srcdir_defaulted=no
    961  1.1  christos fi
    962  1.1  christos if test ! -r $srcdir/$ac_unique_file; then
    963  1.1  christos   if test "$ac_srcdir_defaulted" = yes; then
    964  1.1  christos     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    965  1.1  christos    { (exit 1); exit 1; }; }
    966  1.1  christos   else
    967  1.1  christos     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    968  1.1  christos    { (exit 1); exit 1; }; }
    969  1.1  christos   fi
    970  1.1  christos fi
    971  1.1  christos (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
    972  1.1  christos   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
    973  1.1  christos    { (exit 1); exit 1; }; }
    974  1.1  christos srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    975  1.1  christos ac_env_build_alias_set=${build_alias+set}
    976  1.1  christos ac_env_build_alias_value=$build_alias
    977  1.1  christos ac_cv_env_build_alias_set=${build_alias+set}
    978  1.1  christos ac_cv_env_build_alias_value=$build_alias
    979  1.1  christos ac_env_host_alias_set=${host_alias+set}
    980  1.1  christos ac_env_host_alias_value=$host_alias
    981  1.1  christos ac_cv_env_host_alias_set=${host_alias+set}
    982  1.1  christos ac_cv_env_host_alias_value=$host_alias
    983  1.1  christos ac_env_target_alias_set=${target_alias+set}
    984  1.1  christos ac_env_target_alias_value=$target_alias
    985  1.1  christos ac_cv_env_target_alias_set=${target_alias+set}
    986  1.1  christos ac_cv_env_target_alias_value=$target_alias
    987  1.1  christos ac_env_CC_set=${CC+set}
    988  1.1  christos ac_env_CC_value=$CC
    989  1.1  christos ac_cv_env_CC_set=${CC+set}
    990  1.1  christos ac_cv_env_CC_value=$CC
    991  1.1  christos ac_env_CFLAGS_set=${CFLAGS+set}
    992  1.1  christos ac_env_CFLAGS_value=$CFLAGS
    993  1.1  christos ac_cv_env_CFLAGS_set=${CFLAGS+set}
    994  1.1  christos ac_cv_env_CFLAGS_value=$CFLAGS
    995  1.1  christos ac_env_LDFLAGS_set=${LDFLAGS+set}
    996  1.1  christos ac_env_LDFLAGS_value=$LDFLAGS
    997  1.1  christos ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    998  1.1  christos ac_cv_env_LDFLAGS_value=$LDFLAGS
    999  1.1  christos ac_env_CPPFLAGS_set=${CPPFLAGS+set}
   1000  1.1  christos ac_env_CPPFLAGS_value=$CPPFLAGS
   1001  1.1  christos ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
   1002  1.1  christos ac_cv_env_CPPFLAGS_value=$CPPFLAGS
   1003  1.1  christos ac_env_CXX_set=${CXX+set}
   1004  1.1  christos ac_env_CXX_value=$CXX
   1005  1.1  christos ac_cv_env_CXX_set=${CXX+set}
   1006  1.1  christos ac_cv_env_CXX_value=$CXX
   1007  1.1  christos ac_env_CXXFLAGS_set=${CXXFLAGS+set}
   1008  1.1  christos ac_env_CXXFLAGS_value=$CXXFLAGS
   1009  1.1  christos ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
   1010  1.1  christos ac_cv_env_CXXFLAGS_value=$CXXFLAGS
   1011  1.1  christos ac_env_CPP_set=${CPP+set}
   1012  1.1  christos ac_env_CPP_value=$CPP
   1013  1.1  christos ac_cv_env_CPP_set=${CPP+set}
   1014  1.1  christos ac_cv_env_CPP_value=$CPP
   1015  1.1  christos 
   1016  1.1  christos #
   1017  1.1  christos # Report the --help message.
   1018  1.1  christos #
   1019  1.1  christos if test "$ac_init_help" = "long"; then
   1020  1.1  christos   # Omit some internal or obsolete options to make the list less imposing.
   1021  1.1  christos   # This message is too long to be a string in the A/UX 3.1 sh.
   1022  1.1  christos   cat <<_ACEOF
   1023  1.1  christos \`configure' configures this package to adapt to many kinds of systems.
   1024  1.1  christos 
   1025  1.1  christos Usage: $0 [OPTION]... [VAR=VALUE]...
   1026  1.1  christos 
   1027  1.1  christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1028  1.1  christos VAR=VALUE.  See below for descriptions of some of the useful variables.
   1029  1.1  christos 
   1030  1.1  christos Defaults for the options are specified in brackets.
   1031  1.1  christos 
   1032  1.1  christos Configuration:
   1033  1.1  christos   -h, --help              display this help and exit
   1034  1.1  christos       --help=short        display options specific to this package
   1035  1.1  christos       --help=recursive    display the short help of all the included packages
   1036  1.1  christos   -V, --version           display version information and exit
   1037  1.1  christos   -q, --quiet, --silent   do not print \`checking...' messages
   1038  1.1  christos       --cache-file=FILE   cache test results in FILE [disabled]
   1039  1.1  christos   -C, --config-cache      alias for \`--cache-file=config.cache'
   1040  1.1  christos   -n, --no-create         do not create output files
   1041  1.1  christos       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1042  1.1  christos 
   1043  1.1  christos _ACEOF
   1044  1.1  christos 
   1045  1.1  christos   cat <<_ACEOF
   1046  1.1  christos Installation directories:
   1047  1.1  christos   --prefix=PREFIX         install architecture-independent files in PREFIX
   1048  1.1  christos 			  [$ac_default_prefix]
   1049  1.1  christos   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1050  1.1  christos 			  [PREFIX]
   1051  1.1  christos 
   1052  1.1  christos By default, \`make install' will install all the files in
   1053  1.1  christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1054  1.1  christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1055  1.1  christos for instance \`--prefix=\$HOME'.
   1056  1.1  christos 
   1057  1.1  christos For better control, use the options below.
   1058  1.1  christos 
   1059  1.1  christos Fine tuning of the installation directories:
   1060  1.1  christos   --bindir=DIR           user executables [EPREFIX/bin]
   1061  1.1  christos   --sbindir=DIR          system admin executables [EPREFIX/sbin]
   1062  1.1  christos   --libexecdir=DIR       program executables [EPREFIX/libexec]
   1063  1.1  christos   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
   1064  1.1  christos   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   1065  1.1  christos   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   1066  1.1  christos   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   1067  1.1  christos   --libdir=DIR           object code libraries [EPREFIX/lib]
   1068  1.1  christos   --includedir=DIR       C header files [PREFIX/include]
   1069  1.1  christos   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   1070  1.1  christos   --infodir=DIR          info documentation [PREFIX/info]
   1071  1.1  christos   --mandir=DIR           man documentation [PREFIX/man]
   1072  1.1  christos _ACEOF
   1073  1.1  christos 
   1074  1.1  christos   cat <<\_ACEOF
   1075  1.1  christos 
   1076  1.1  christos X features:
   1077  1.1  christos   --x-includes=DIR    X include files are in DIR
   1078  1.1  christos   --x-libraries=DIR   X library files are in DIR
   1079  1.1  christos _ACEOF
   1080  1.1  christos fi
   1081  1.1  christos 
   1082  1.1  christos if test -n "$ac_init_help"; then
   1083  1.1  christos 
   1084  1.1  christos   cat <<\_ACEOF
   1085  1.1  christos 
   1086  1.1  christos Optional Packages:
   1087  1.1  christos   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1088  1.1  christos   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1089  1.1  christos   --with-x                use the X Window System
   1090  1.1  christos        --with-appresdir=DIR    X11 application resource files
   1091  1.1  christos   --with-alt-gs=LIST      alternative names for ghostscript executable
   1092  1.1  christos   --with-gs=PROG          actual [/path/]name of ghostscript executable
   1093  1.1  christos   --with-alt-awk=LIST     alternative names for awk executable
   1094  1.1  christos   --with-awk=PROG         actual [/path/]name of awk executable
   1095  1.1  christos 
   1096  1.1  christos Some influential environment variables:
   1097  1.1  christos   CC          C compiler command
   1098  1.1  christos   CFLAGS      C compiler flags
   1099  1.1  christos   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1100  1.1  christos               nonstandard directory <lib dir>
   1101  1.1  christos   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
   1102  1.1  christos               headers in a nonstandard directory <include dir>
   1103  1.1  christos   CXX         C++ compiler command
   1104  1.1  christos   CXXFLAGS    C++ compiler flags
   1105  1.1  christos   CPP         C preprocessor
   1106  1.1  christos 
   1107  1.1  christos Use these variables to override the choices made by `configure' or to help
   1108  1.1  christos it to find libraries and programs with nonstandard names/locations.
   1109  1.1  christos 
   1110  1.1  christos _ACEOF
   1111  1.1  christos fi
   1112  1.1  christos 
   1113  1.1  christos if test "$ac_init_help" = "recursive"; then
   1114  1.1  christos   # If there are subdirs, report their specific --help.
   1115  1.1  christos   ac_popdir=`pwd`
   1116  1.1  christos   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1117  1.1  christos     test -d $ac_dir || continue
   1118  1.1  christos     ac_builddir=.
   1119  1.1  christos 
   1120  1.1  christos if test "$ac_dir" != .; then
   1121  1.1  christos   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   1122  1.1  christos   # A "../" for each directory in $ac_dir_suffix.
   1123  1.1  christos   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
   1124  1.1  christos else
   1125  1.1  christos   ac_dir_suffix= ac_top_builddir=
   1126  1.1  christos fi
   1127  1.1  christos 
   1128  1.1  christos case $srcdir in
   1129  1.1  christos   .)  # No --srcdir option.  We are building in place.
   1130  1.1  christos     ac_srcdir=.
   1131  1.1  christos     if test -z "$ac_top_builddir"; then
   1132  1.1  christos        ac_top_srcdir=.
   1133  1.1  christos     else
   1134  1.1  christos        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
   1135  1.1  christos     fi ;;
   1136  1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   1137  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   1138  1.1  christos     ac_top_srcdir=$srcdir ;;
   1139  1.1  christos   *) # Relative name.
   1140  1.1  christos     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
   1141  1.1  christos     ac_top_srcdir=$ac_top_builddir$srcdir ;;
   1142  1.1  christos esac
   1143  1.1  christos 
   1144  1.1  christos # Do not use `cd foo && pwd` to compute absolute names, because
   1145  1.1  christos # the directories may not exist.
   1146  1.1  christos case `pwd` in
   1147  1.1  christos .) ac_abs_builddir="$ac_dir";;
   1148  1.1  christos *)
   1149  1.1  christos   case "$ac_dir" in
   1150  1.1  christos   .) ac_abs_builddir=`pwd`;;
   1151  1.1  christos   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
   1152  1.1  christos   *) ac_abs_builddir=`pwd`/"$ac_dir";;
   1153  1.1  christos   esac;;
   1154  1.1  christos esac
   1155  1.1  christos case $ac_abs_builddir in
   1156  1.1  christos .) ac_abs_top_builddir=${ac_top_builddir}.;;
   1157  1.1  christos *)
   1158  1.1  christos   case ${ac_top_builddir}. in
   1159  1.1  christos   .) ac_abs_top_builddir=$ac_abs_builddir;;
   1160  1.1  christos   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
   1161  1.1  christos   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
   1162  1.1  christos   esac;;
   1163  1.1  christos esac
   1164  1.1  christos case $ac_abs_builddir in
   1165  1.1  christos .) ac_abs_srcdir=$ac_srcdir;;
   1166  1.1  christos *)
   1167  1.1  christos   case $ac_srcdir in
   1168  1.1  christos   .) ac_abs_srcdir=$ac_abs_builddir;;
   1169  1.1  christos   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
   1170  1.1  christos   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
   1171  1.1  christos   esac;;
   1172  1.1  christos esac
   1173  1.1  christos case $ac_abs_builddir in
   1174  1.1  christos .) ac_abs_top_srcdir=$ac_top_srcdir;;
   1175  1.1  christos *)
   1176  1.1  christos   case $ac_top_srcdir in
   1177  1.1  christos   .) ac_abs_top_srcdir=$ac_abs_builddir;;
   1178  1.1  christos   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
   1179  1.1  christos   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
   1180  1.1  christos   esac;;
   1181  1.1  christos esac
   1182  1.1  christos 
   1183  1.1  christos     cd $ac_dir
   1184  1.1  christos     # Check for guested configure; otherwise get Cygnus style configure.
   1185  1.1  christos     if test -f $ac_srcdir/configure.gnu; then
   1186  1.1  christos       echo
   1187  1.1  christos       $SHELL $ac_srcdir/configure.gnu  --help=recursive
   1188  1.1  christos     elif test -f $ac_srcdir/configure; then
   1189  1.1  christos       echo
   1190  1.1  christos       $SHELL $ac_srcdir/configure  --help=recursive
   1191  1.1  christos     elif test -f $ac_srcdir/configure.ac ||
   1192  1.1  christos 	   test -f $ac_srcdir/configure.in; then
   1193  1.1  christos       echo
   1194  1.1  christos       $ac_configure --help
   1195  1.1  christos     else
   1196  1.1  christos       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1197  1.1  christos     fi
   1198  1.1  christos     cd "$ac_popdir"
   1199  1.1  christos   done
   1200  1.1  christos fi
   1201  1.1  christos 
   1202  1.1  christos test -n "$ac_init_help" && exit 0
   1203  1.1  christos if $ac_init_version; then
   1204  1.1  christos   cat <<\_ACEOF
   1205  1.1  christos 
   1206  1.1  christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
   1207  1.1  christos 2003, 2004 Free Software Foundation, Inc.
   1208  1.1  christos This configure script is free software; the Free Software Foundation
   1209  1.1  christos gives unlimited permission to copy, distribute and modify it.
   1210  1.1  christos _ACEOF
   1211  1.1  christos   exit 0
   1212  1.1  christos fi
   1213  1.1  christos exec 5>config.log
   1214  1.1  christos cat >&5 <<_ACEOF
   1215  1.1  christos This file contains any messages produced by compilers while
   1216  1.1  christos running configure, to aid debugging if configure makes a mistake.
   1217  1.1  christos 
   1218  1.1  christos It was created by $as_me, which was
   1219  1.1  christos generated by GNU Autoconf 2.59b.  Invocation command line was
   1220  1.1  christos 
   1221  1.1  christos   $ $0 $@
   1222  1.1  christos 
   1223  1.1  christos _ACEOF
   1224  1.1  christos {
   1225  1.1  christos cat <<_ASUNAME
   1226  1.1  christos ## --------- ##
   1227  1.1  christos ## Platform. ##
   1228  1.1  christos ## --------- ##
   1229  1.1  christos 
   1230  1.1  christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1231  1.1  christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1232  1.1  christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1233  1.1  christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1234  1.1  christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1235  1.1  christos 
   1236  1.1  christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1237  1.1  christos /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1238  1.1  christos 
   1239  1.1  christos /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1240  1.1  christos /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1241  1.1  christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1242  1.1  christos hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
   1243  1.1  christos /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1244  1.1  christos /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1245  1.1  christos /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1246  1.1  christos 
   1247  1.1  christos _ASUNAME
   1248  1.1  christos 
   1249  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1250  1.1  christos for as_dir in $PATH
   1251  1.1  christos do
   1252  1.1  christos   IFS=$as_save_IFS
   1253  1.1  christos   test -z "$as_dir" && as_dir=.
   1254  1.1  christos   echo "PATH: $as_dir"
   1255  1.1  christos done
   1256  1.1  christos 
   1257  1.1  christos } >&5
   1258  1.1  christos 
   1259  1.1  christos cat >&5 <<_ACEOF
   1260  1.1  christos 
   1261  1.1  christos 
   1262  1.1  christos ## ----------- ##
   1263  1.1  christos ## Core tests. ##
   1264  1.1  christos ## ----------- ##
   1265  1.1  christos 
   1266  1.1  christos _ACEOF
   1267  1.1  christos 
   1268  1.1  christos 
   1269  1.1  christos # Keep a trace of the command line.
   1270  1.1  christos # Strip out --no-create and --no-recursion so they do not pile up.
   1271  1.1  christos # Strip out --silent because we don't want to record it for future runs.
   1272  1.1  christos # Also quote any args containing shell meta-characters.
   1273  1.1  christos # Make two passes to allow for proper duplicate-argument suppression.
   1274  1.1  christos ac_configure_args=
   1275  1.1  christos ac_configure_args0=
   1276  1.1  christos ac_configure_args1=
   1277  1.1  christos ac_sep=
   1278  1.1  christos ac_must_keep_next=false
   1279  1.1  christos for ac_pass in 1 2
   1280  1.1  christos do
   1281  1.1  christos   for ac_arg
   1282  1.1  christos   do
   1283  1.1  christos     case $ac_arg in
   1284  1.1  christos     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1285  1.1  christos     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1286  1.1  christos     | -silent | --silent | --silen | --sile | --sil)
   1287  1.1  christos       continue ;;
   1288  1.1  christos     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
   1289  1.1  christos       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1290  1.1  christos     esac
   1291  1.1  christos     case $ac_pass in
   1292  1.1  christos     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1293  1.1  christos     2)
   1294  1.1  christos       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1295  1.1  christos       if test $ac_must_keep_next = true; then
   1296  1.1  christos 	ac_must_keep_next=false # Got value, back to normal.
   1297  1.1  christos       else
   1298  1.1  christos 	case $ac_arg in
   1299  1.1  christos 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1300  1.1  christos 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1301  1.1  christos 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1302  1.1  christos 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1303  1.1  christos 	    case "$ac_configure_args0 " in
   1304  1.1  christos 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1305  1.1  christos 	    esac
   1306  1.1  christos 	    ;;
   1307  1.1  christos 	  -* ) ac_must_keep_next=true ;;
   1308  1.1  christos 	esac
   1309  1.1  christos       fi
   1310  1.1  christos       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
   1311  1.1  christos       # Get rid of the leading space.
   1312  1.1  christos       ac_sep=" "
   1313  1.1  christos       ;;
   1314  1.1  christos     esac
   1315  1.1  christos   done
   1316  1.1  christos done
   1317  1.1  christos $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1318  1.1  christos $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1319  1.1  christos 
   1320  1.1  christos # When interrupted or exit'd, cleanup temporary files, and complete
   1321  1.1  christos # config.log.  We remove comments because anyway the quotes in there
   1322  1.1  christos # would cause problems or look ugly.
   1323  1.1  christos # WARNING: Be sure not to use single quotes in there, as some shells,
   1324  1.1  christos # such as our DU 5.0 friend, will then `close' the trap.
   1325  1.1  christos trap 'exit_status=$?
   1326  1.1  christos   # Save into config.log some information that might help in debugging.
   1327  1.1  christos   {
   1328  1.1  christos     echo
   1329  1.1  christos 
   1330  1.1  christos     cat <<\_ASBOX
   1331  1.1  christos ## ---------------- ##
   1332  1.1  christos ## Cache variables. ##
   1333  1.1  christos ## ---------------- ##
   1334  1.1  christos _ASBOX
   1335  1.1  christos     echo
   1336  1.1  christos     # The following way of writing the cache mishandles newlines in values,
   1337  1.1  christos {
   1338  1.1  christos   (set) 2>&1 |
   1339  1.1  christos     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
   1340  1.1  christos     *ac_space=\ *)
   1341  1.1  christos       sed -n \
   1342  1.1  christos 	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
   1343  1.1  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
   1344  1.1  christos       ;;
   1345  1.1  christos     *)
   1346  1.1  christos       sed -n \
   1347  1.1  christos 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   1348  1.1  christos       ;;
   1349  1.1  christos     esac;
   1350  1.1  christos }
   1351  1.1  christos     echo
   1352  1.1  christos 
   1353  1.1  christos     cat <<\_ASBOX
   1354  1.1  christos ## ----------------- ##
   1355  1.1  christos ## Output variables. ##
   1356  1.1  christos ## ----------------- ##
   1357  1.1  christos _ASBOX
   1358  1.1  christos     echo
   1359  1.1  christos     for ac_var in $ac_subst_vars
   1360  1.1  christos     do
   1361  1.1  christos       eval ac_val=$`echo $ac_var`
   1362  1.1  christos       echo "$ac_var='"'"'$ac_val'"'"'"
   1363  1.1  christos     done | sort
   1364  1.1  christos     echo
   1365  1.1  christos 
   1366  1.1  christos     if test -n "$ac_subst_files"; then
   1367  1.1  christos       cat <<\_ASBOX
   1368  1.1  christos ## ------------- ##
   1369  1.1  christos ## Output files. ##
   1370  1.1  christos ## ------------- ##
   1371  1.1  christos _ASBOX
   1372  1.1  christos       echo
   1373  1.1  christos       for ac_var in $ac_subst_files
   1374  1.1  christos       do
   1375  1.1  christos 	eval ac_val=$`echo $ac_var`
   1376  1.1  christos 	echo "$ac_var='"'"'$ac_val'"'"'"
   1377  1.1  christos       done | sort
   1378  1.1  christos       echo
   1379  1.1  christos     fi
   1380  1.1  christos 
   1381  1.1  christos     if test -s confdefs.h; then
   1382  1.1  christos       cat <<\_ASBOX
   1383  1.1  christos ## ----------- ##
   1384  1.1  christos ## confdefs.h. ##
   1385  1.1  christos ## ----------- ##
   1386  1.1  christos _ASBOX
   1387  1.1  christos       echo
   1388  1.1  christos       sed "/^$/d" confdefs.h | sort
   1389  1.1  christos       echo
   1390  1.1  christos     fi
   1391  1.1  christos     test "$ac_signal" != 0 &&
   1392  1.1  christos       echo "$as_me: caught signal $ac_signal"
   1393  1.1  christos     echo "$as_me: exit $exit_status"
   1394  1.1  christos   } >&5
   1395  1.1  christos   rm -f core *.core &&
   1396  1.1  christos   rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1397  1.1  christos     exit $exit_status
   1398  1.1  christos      ' 0
   1399  1.1  christos for ac_signal in 1 2 13 15; do
   1400  1.1  christos   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1401  1.1  christos done
   1402  1.1  christos ac_signal=0
   1403  1.1  christos 
   1404  1.1  christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1405  1.1  christos rm -f -r conftest* confdefs.h
   1406  1.1  christos # AIX cpp loses on an empty file, so make sure it contains at least a newline.
   1407  1.1  christos # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
   1408  1.1  christos ac_space=' '
   1409  1.1  christos echo "$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space" >confdefs.h
   1410  1.1  christos 
   1411  1.1  christos # Predefined preprocessor variables.
   1412  1.1  christos 
   1413  1.1  christos cat >>confdefs.h <<_ACEOF
   1414  1.1  christos #define PACKAGE_NAME "$PACKAGE_NAME"
   1415  1.1  christos _ACEOF
   1416  1.1  christos 
   1417  1.1  christos 
   1418  1.1  christos cat >>confdefs.h <<_ACEOF
   1419  1.1  christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1420  1.1  christos _ACEOF
   1421  1.1  christos 
   1422  1.1  christos 
   1423  1.1  christos cat >>confdefs.h <<_ACEOF
   1424  1.1  christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1425  1.1  christos _ACEOF
   1426  1.1  christos 
   1427  1.1  christos 
   1428  1.1  christos cat >>confdefs.h <<_ACEOF
   1429  1.1  christos #define PACKAGE_STRING "$PACKAGE_STRING"
   1430  1.1  christos _ACEOF
   1431  1.1  christos 
   1432  1.1  christos 
   1433  1.1  christos cat >>confdefs.h <<_ACEOF
   1434  1.1  christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1435  1.1  christos _ACEOF
   1436  1.1  christos 
   1437  1.1  christos 
   1438  1.1  christos # Let the site file select an alternate cache file if it wants to.
   1439  1.1  christos # Prefer explicitly selected file to automatically selected ones.
   1440  1.1  christos if test -z "$CONFIG_SITE"; then
   1441  1.1  christos   if test "x$prefix" != xNONE; then
   1442  1.1  christos     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
   1443  1.1  christos   else
   1444  1.1  christos     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   1445  1.1  christos   fi
   1446  1.1  christos fi
   1447  1.1  christos for ac_site_file in $CONFIG_SITE; do
   1448  1.1  christos   if test -r "$ac_site_file"; then
   1449  1.1  christos     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1450  1.1  christos echo "$as_me: loading site script $ac_site_file" >&6;}
   1451  1.1  christos     sed 's/^/| /' "$ac_site_file" >&5
   1452  1.1  christos     . "$ac_site_file"
   1453  1.1  christos   fi
   1454  1.1  christos done
   1455  1.1  christos 
   1456  1.1  christos if test -r "$cache_file"; then
   1457  1.1  christos   # Some versions of bash will fail to source /dev/null (special
   1458  1.1  christos   # files actually), so we avoid doing that.
   1459  1.1  christos   if test -f "$cache_file"; then
   1460  1.1  christos     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1461  1.1  christos echo "$as_me: loading cache $cache_file" >&6;}
   1462  1.1  christos     case $cache_file in
   1463  1.1  christos       [\\/]* | ?:[\\/]* ) . $cache_file;;
   1464  1.1  christos       *)                      . ./$cache_file;;
   1465  1.1  christos     esac
   1466  1.1  christos   fi
   1467  1.1  christos else
   1468  1.1  christos   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   1469  1.1  christos echo "$as_me: creating cache $cache_file" >&6;}
   1470  1.1  christos   >$cache_file
   1471  1.1  christos fi
   1472  1.1  christos 
   1473  1.1  christos # Check that the precious variables saved in the cache have kept the same
   1474  1.1  christos # value.
   1475  1.1  christos ac_cache_corrupted=false
   1476  1.1  christos for ac_var in `(set) 2>&1 |
   1477  1.1  christos 	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
   1478  1.1  christos   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1479  1.1  christos   eval ac_new_set=\$ac_env_${ac_var}_set
   1480  1.1  christos   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
   1481  1.1  christos   eval ac_new_val="\$ac_env_${ac_var}_value"
   1482  1.1  christos   case $ac_old_set,$ac_new_set in
   1483  1.1  christos     set,)
   1484  1.1  christos       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1485  1.1  christos echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1486  1.1  christos       ac_cache_corrupted=: ;;
   1487  1.1  christos     ,set)
   1488  1.1  christos       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   1489  1.1  christos echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1490  1.1  christos       ac_cache_corrupted=: ;;
   1491  1.1  christos     ,);;
   1492  1.1  christos     *)
   1493  1.1  christos       if test "x$ac_old_val" != "x$ac_new_val"; then
   1494  1.1  christos 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   1495  1.1  christos echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1496  1.1  christos 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   1497  1.1  christos echo "$as_me:   former value:  $ac_old_val" >&2;}
   1498  1.1  christos 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   1499  1.1  christos echo "$as_me:   current value: $ac_new_val" >&2;}
   1500  1.1  christos 	ac_cache_corrupted=:
   1501  1.1  christos       fi;;
   1502  1.1  christos   esac
   1503  1.1  christos   # Pass precious variables to config.status.
   1504  1.1  christos   if test "$ac_new_set" = set; then
   1505  1.1  christos     case $ac_new_val in
   1506  1.1  christos     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
   1507  1.1  christos       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   1508  1.1  christos     *) ac_arg=$ac_var=$ac_new_val ;;
   1509  1.1  christos     esac
   1510  1.1  christos     case " $ac_configure_args " in
   1511  1.1  christos       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1512  1.1  christos       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1513  1.1  christos     esac
   1514  1.1  christos   fi
   1515  1.1  christos done
   1516  1.1  christos if $ac_cache_corrupted; then
   1517  1.1  christos   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   1518  1.1  christos echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1519  1.1  christos   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1520  1.1  christos echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1521  1.1  christos    { (exit 1); exit 1; }; }
   1522  1.1  christos fi
   1523  1.1  christos 
   1524  1.1  christos ac_ext=c
   1525  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   1526  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1527  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1528  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1529  1.1  christos 
   1530  1.1  christos 
   1531  1.1  christos 
   1532  1.1  christos 
   1533  1.1  christos 
   1534  1.1  christos 
   1535  1.1  christos 
   1536  1.1  christos 
   1537  1.1  christos 
   1538  1.1  christos 
   1539  1.1  christos 
   1540  1.1  christos 
   1541  1.1  christos 
   1542  1.1  christos 
   1543  1.1  christos 
   1544  1.1  christos 
   1545  1.1  christos 
   1546  1.1  christos 
   1547  1.1  christos 
   1548  1.1  christos 
   1549  1.1  christos 
   1550  1.1  christos           ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
   1551  1.1  christos 
   1552  1.1  christos 
   1553  1.1  christos 
   1554  1.1  christos # checks for programs
   1555  1.1  christos ac_ext=c
   1556  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   1557  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1558  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1559  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1560  1.1  christos if test -n "$ac_tool_prefix"; then
   1561  1.1  christos   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1562  1.1  christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1563  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1564  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1565  1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1566  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1567  1.1  christos else
   1568  1.1  christos   if test -n "$CC"; then
   1569  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1570  1.1  christos else
   1571  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1572  1.1  christos for as_dir in $PATH
   1573  1.1  christos do
   1574  1.1  christos   IFS=$as_save_IFS
   1575  1.1  christos   test -z "$as_dir" && as_dir=.
   1576  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1577  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1578  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1579  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1580  1.1  christos     break 2
   1581  1.1  christos   fi
   1582  1.1  christos done
   1583  1.1  christos done
   1584  1.1  christos 
   1585  1.1  christos fi
   1586  1.1  christos fi
   1587  1.1  christos CC=$ac_cv_prog_CC
   1588  1.1  christos if test -n "$CC"; then
   1589  1.1  christos   echo "$as_me:$LINENO: result: $CC" >&5
   1590  1.1  christos echo "${ECHO_T}$CC" >&6
   1591  1.1  christos else
   1592  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1593  1.1  christos echo "${ECHO_T}no" >&6
   1594  1.1  christos fi
   1595  1.1  christos 
   1596  1.1  christos fi
   1597  1.1  christos if test -z "$ac_cv_prog_CC"; then
   1598  1.1  christos   ac_ct_CC=$CC
   1599  1.1  christos   # Extract the first word of "gcc", so it can be a program name with args.
   1600  1.1  christos set dummy gcc; ac_word=$2
   1601  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1602  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1603  1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1604  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1605  1.1  christos else
   1606  1.1  christos   if test -n "$ac_ct_CC"; then
   1607  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1608  1.1  christos else
   1609  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1610  1.1  christos for as_dir in $PATH
   1611  1.1  christos do
   1612  1.1  christos   IFS=$as_save_IFS
   1613  1.1  christos   test -z "$as_dir" && as_dir=.
   1614  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1615  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1616  1.1  christos     ac_cv_prog_ac_ct_CC="gcc"
   1617  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1618  1.1  christos     break 2
   1619  1.1  christos   fi
   1620  1.1  christos done
   1621  1.1  christos done
   1622  1.1  christos 
   1623  1.1  christos fi
   1624  1.1  christos fi
   1625  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1626  1.1  christos if test -n "$ac_ct_CC"; then
   1627  1.1  christos   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1628  1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6
   1629  1.1  christos else
   1630  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1631  1.1  christos echo "${ECHO_T}no" >&6
   1632  1.1  christos fi
   1633  1.1  christos 
   1634  1.1  christos   if test "x$ac_ct_CC" = x; then
   1635  1.1  christos     CC=""
   1636  1.1  christos   else
   1637  1.1  christos     if test "$build" != "$host"; then
   1638  1.1  christos       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   1639  1.1  christos whose name does not start with the host triplet.  If you think this
   1640  1.1  christos configuration is useful to you, please write to autoconf@gnu.org." >&5
   1641  1.1  christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   1642  1.1  christos whose name does not start with the host triplet.  If you think this
   1643  1.1  christos configuration is useful to you, please write to autoconf@gnu.org." >&2;}
   1644  1.1  christos     fi
   1645  1.1  christos     CC=$ac_ct_CC
   1646  1.1  christos   fi
   1647  1.1  christos else
   1648  1.1  christos   CC="$ac_cv_prog_CC"
   1649  1.1  christos fi
   1650  1.1  christos 
   1651  1.1  christos if test -z "$CC"; then
   1652  1.1  christos   if test -n "$ac_tool_prefix"; then
   1653  1.1  christos   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   1654  1.1  christos set dummy ${ac_tool_prefix}cc; ac_word=$2
   1655  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1656  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1657  1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1658  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1659  1.1  christos else
   1660  1.1  christos   if test -n "$CC"; then
   1661  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1662  1.1  christos else
   1663  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1664  1.1  christos for as_dir in $PATH
   1665  1.1  christos do
   1666  1.1  christos   IFS=$as_save_IFS
   1667  1.1  christos   test -z "$as_dir" && as_dir=.
   1668  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1669  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1670  1.1  christos     ac_cv_prog_CC="${ac_tool_prefix}cc"
   1671  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1672  1.1  christos     break 2
   1673  1.1  christos   fi
   1674  1.1  christos done
   1675  1.1  christos done
   1676  1.1  christos 
   1677  1.1  christos fi
   1678  1.1  christos fi
   1679  1.1  christos CC=$ac_cv_prog_CC
   1680  1.1  christos if test -n "$CC"; then
   1681  1.1  christos   echo "$as_me:$LINENO: result: $CC" >&5
   1682  1.1  christos echo "${ECHO_T}$CC" >&6
   1683  1.1  christos else
   1684  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1685  1.1  christos echo "${ECHO_T}no" >&6
   1686  1.1  christos fi
   1687  1.1  christos 
   1688  1.1  christos fi
   1689  1.1  christos if test -z "$ac_cv_prog_CC"; then
   1690  1.1  christos   ac_ct_CC=$CC
   1691  1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   1692  1.1  christos set dummy cc; ac_word=$2
   1693  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1694  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1695  1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1696  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1697  1.1  christos else
   1698  1.1  christos   if test -n "$ac_ct_CC"; then
   1699  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1700  1.1  christos else
   1701  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1702  1.1  christos for as_dir in $PATH
   1703  1.1  christos do
   1704  1.1  christos   IFS=$as_save_IFS
   1705  1.1  christos   test -z "$as_dir" && as_dir=.
   1706  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1707  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1708  1.1  christos     ac_cv_prog_ac_ct_CC="cc"
   1709  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1710  1.1  christos     break 2
   1711  1.1  christos   fi
   1712  1.1  christos done
   1713  1.1  christos done
   1714  1.1  christos 
   1715  1.1  christos fi
   1716  1.1  christos fi
   1717  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1718  1.1  christos if test -n "$ac_ct_CC"; then
   1719  1.1  christos   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1720  1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6
   1721  1.1  christos else
   1722  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1723  1.1  christos echo "${ECHO_T}no" >&6
   1724  1.1  christos fi
   1725  1.1  christos 
   1726  1.1  christos   if test "x$ac_ct_CC" = x; then
   1727  1.1  christos     CC=""
   1728  1.1  christos   else
   1729  1.1  christos     if test "$build" != "$host"; then
   1730  1.1  christos       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   1731  1.1  christos whose name does not start with the host triplet.  If you think this
   1732  1.1  christos configuration is useful to you, please write to autoconf@gnu.org." >&5
   1733  1.1  christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   1734  1.1  christos whose name does not start with the host triplet.  If you think this
   1735  1.1  christos configuration is useful to you, please write to autoconf@gnu.org." >&2;}
   1736  1.1  christos     fi
   1737  1.1  christos     CC=$ac_ct_CC
   1738  1.1  christos   fi
   1739  1.1  christos else
   1740  1.1  christos   CC="$ac_cv_prog_CC"
   1741  1.1  christos fi
   1742  1.1  christos 
   1743  1.1  christos fi
   1744  1.1  christos if test -z "$CC"; then
   1745  1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   1746  1.1  christos set dummy cc; ac_word=$2
   1747  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1748  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1749  1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1750  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1751  1.1  christos else
   1752  1.1  christos   if test -n "$CC"; then
   1753  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1754  1.1  christos else
   1755  1.1  christos   ac_prog_rejected=no
   1756  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1757  1.1  christos for as_dir in $PATH
   1758  1.1  christos do
   1759  1.1  christos   IFS=$as_save_IFS
   1760  1.1  christos   test -z "$as_dir" && as_dir=.
   1761  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1762  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1763  1.1  christos     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   1764  1.1  christos        ac_prog_rejected=yes
   1765  1.1  christos        continue
   1766  1.1  christos      fi
   1767  1.1  christos     ac_cv_prog_CC="cc"
   1768  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1769  1.1  christos     break 2
   1770  1.1  christos   fi
   1771  1.1  christos done
   1772  1.1  christos done
   1773  1.1  christos 
   1774  1.1  christos if test $ac_prog_rejected = yes; then
   1775  1.1  christos   # We found a bogon in the path, so make sure we never use it.
   1776  1.1  christos   set dummy $ac_cv_prog_CC
   1777  1.1  christos   shift
   1778  1.1  christos   if test $# != 0; then
   1779  1.1  christos     # We chose a different compiler from the bogus one.
   1780  1.1  christos     # However, it has the same basename, so the bogon will be chosen
   1781  1.1  christos     # first if we set CC to just the basename; use the full file name.
   1782  1.1  christos     shift
   1783  1.1  christos     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   1784  1.1  christos   fi
   1785  1.1  christos fi
   1786  1.1  christos fi
   1787  1.1  christos fi
   1788  1.1  christos CC=$ac_cv_prog_CC
   1789  1.1  christos if test -n "$CC"; then
   1790  1.1  christos   echo "$as_me:$LINENO: result: $CC" >&5
   1791  1.1  christos echo "${ECHO_T}$CC" >&6
   1792  1.1  christos else
   1793  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1794  1.1  christos echo "${ECHO_T}no" >&6
   1795  1.1  christos fi
   1796  1.1  christos 
   1797  1.1  christos fi
   1798  1.1  christos if test -z "$CC"; then
   1799  1.1  christos   if test -n "$ac_tool_prefix"; then
   1800  1.1  christos   for ac_prog in cl
   1801  1.1  christos   do
   1802  1.1  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1803  1.1  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1804  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1805  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1806  1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1807  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1808  1.1  christos else
   1809  1.1  christos   if test -n "$CC"; then
   1810  1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1811  1.1  christos else
   1812  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1813  1.1  christos for as_dir in $PATH
   1814  1.1  christos do
   1815  1.1  christos   IFS=$as_save_IFS
   1816  1.1  christos   test -z "$as_dir" && as_dir=.
   1817  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1818  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1819  1.1  christos     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1820  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1821  1.1  christos     break 2
   1822  1.1  christos   fi
   1823  1.1  christos done
   1824  1.1  christos done
   1825  1.1  christos 
   1826  1.1  christos fi
   1827  1.1  christos fi
   1828  1.1  christos CC=$ac_cv_prog_CC
   1829  1.1  christos if test -n "$CC"; then
   1830  1.1  christos   echo "$as_me:$LINENO: result: $CC" >&5
   1831  1.1  christos echo "${ECHO_T}$CC" >&6
   1832  1.1  christos else
   1833  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1834  1.1  christos echo "${ECHO_T}no" >&6
   1835  1.1  christos fi
   1836  1.1  christos 
   1837  1.1  christos     test -n "$CC" && break
   1838  1.1  christos   done
   1839  1.1  christos fi
   1840  1.1  christos if test -z "$CC"; then
   1841  1.1  christos   ac_ct_CC=$CC
   1842  1.1  christos   for ac_prog in cl
   1843  1.1  christos do
   1844  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   1845  1.1  christos set dummy $ac_prog; ac_word=$2
   1846  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   1847  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1848  1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1849  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1850  1.1  christos else
   1851  1.1  christos   if test -n "$ac_ct_CC"; then
   1852  1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1853  1.1  christos else
   1854  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1855  1.1  christos for as_dir in $PATH
   1856  1.1  christos do
   1857  1.1  christos   IFS=$as_save_IFS
   1858  1.1  christos   test -z "$as_dir" && as_dir=.
   1859  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   1860  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1861  1.1  christos     ac_cv_prog_ac_ct_CC="$ac_prog"
   1862  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1863  1.1  christos     break 2
   1864  1.1  christos   fi
   1865  1.1  christos done
   1866  1.1  christos done
   1867  1.1  christos 
   1868  1.1  christos fi
   1869  1.1  christos fi
   1870  1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1871  1.1  christos if test -n "$ac_ct_CC"; then
   1872  1.1  christos   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1873  1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6
   1874  1.1  christos else
   1875  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   1876  1.1  christos echo "${ECHO_T}no" >&6
   1877  1.1  christos fi
   1878  1.1  christos 
   1879  1.1  christos   test -n "$ac_ct_CC" && break
   1880  1.1  christos done
   1881  1.1  christos 
   1882  1.1  christos   if test "x$ac_ct_CC" = x; then
   1883  1.1  christos     CC=""
   1884  1.1  christos   else
   1885  1.1  christos     if test "$build" != "$host"; then
   1886  1.1  christos       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   1887  1.1  christos whose name does not start with the host triplet.  If you think this
   1888  1.1  christos configuration is useful to you, please write to autoconf@gnu.org." >&5
   1889  1.1  christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   1890  1.1  christos whose name does not start with the host triplet.  If you think this
   1891  1.1  christos configuration is useful to you, please write to autoconf@gnu.org." >&2;}
   1892  1.1  christos     fi
   1893  1.1  christos     CC=$ac_ct_CC
   1894  1.1  christos   fi
   1895  1.1  christos fi
   1896  1.1  christos 
   1897  1.1  christos fi
   1898  1.1  christos 
   1899  1.1  christos 
   1900  1.1  christos test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   1901  1.1  christos See \`config.log' for more details." >&5
   1902  1.1  christos echo "$as_me: error: no acceptable C compiler found in \$PATH
   1903  1.1  christos See \`config.log' for more details." >&2;}
   1904  1.1  christos    { (exit 1); exit 1; }; }
   1905  1.1  christos 
   1906  1.1  christos # Provide some information about the compiler.
   1907  1.1  christos echo "$as_me:$LINENO:" \
   1908  1.1  christos      "checking for C compiler version" >&5
   1909  1.1  christos ac_compiler=`set X $ac_compile; echo $2`
   1910  1.1  christos { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
   1911  1.1  christos   (eval $ac_compiler --version </dev/null >&5) 2>&5
   1912  1.1  christos   ac_status=$?
   1913  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   1914  1.1  christos   (exit $ac_status); }
   1915  1.1  christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
   1916  1.1  christos   (eval $ac_compiler -v </dev/null >&5) 2>&5
   1917  1.1  christos   ac_status=$?
   1918  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   1919  1.1  christos   (exit $ac_status); }
   1920  1.1  christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
   1921  1.1  christos   (eval $ac_compiler -V </dev/null >&5) 2>&5
   1922  1.1  christos   ac_status=$?
   1923  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   1924  1.1  christos   (exit $ac_status); }
   1925  1.1  christos 
   1926  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   1927  1.1  christos /* confdefs.h.  */
   1928  1.1  christos _ACEOF
   1929  1.1  christos cat confdefs.h >>conftest.$ac_ext
   1930  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   1931  1.1  christos /* end confdefs.h.  */
   1932  1.1  christos 
   1933  1.1  christos int
   1934  1.1  christos main ()
   1935  1.1  christos {
   1936  1.1  christos 
   1937  1.1  christos   ;
   1938  1.1  christos   return 0;
   1939  1.1  christos }
   1940  1.1  christos _ACEOF
   1941  1.1  christos ac_clean_files_save=$ac_clean_files
   1942  1.1  christos ac_clean_files="$ac_clean_files a.out a.exe b.out"
   1943  1.1  christos # Try to create an executable without -o first, disregard a.out.
   1944  1.1  christos # It will help us diagnose broken compilers, and finding out an intuition
   1945  1.1  christos # of exeext.
   1946  1.1  christos echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   1947  1.1  christos echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
   1948  1.1  christos ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   1949  1.1  christos #
   1950  1.1  christos # List of possible output files, starting from the most likely.
   1951  1.1  christos # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
   1952  1.1  christos # only as a last resort.  b.out is created by i960 compilers.
   1953  1.1  christos ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
   1954  1.1  christos #
   1955  1.1  christos # The IRIX 6 linker writes into existing files which may not be
   1956  1.1  christos # executable, retaining their permissions.  Remove them first so a
   1957  1.1  christos # subsequent execution test works.
   1958  1.1  christos ac_rmfiles=
   1959  1.1  christos for ac_file in $ac_files
   1960  1.1  christos do
   1961  1.1  christos   case $ac_file in
   1962  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
   1963  1.1  christos     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   1964  1.1  christos   esac
   1965  1.1  christos done
   1966  1.1  christos rm -f $ac_rmfiles
   1967  1.1  christos 
   1968  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
   1969  1.1  christos   (eval $ac_link_default) 2>&5
   1970  1.1  christos   ac_status=$?
   1971  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   1972  1.1  christos   (exit $ac_status); }; then
   1973  1.1  christos   # Be careful to initialize this variable, since it used to be cached.
   1974  1.1  christos # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
   1975  1.1  christos ac_cv_exeext=
   1976  1.1  christos for ac_file in $ac_files
   1977  1.1  christos do
   1978  1.1  christos   test -f "$ac_file" || continue
   1979  1.1  christos   case $ac_file in
   1980  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
   1981  1.1  christos 	;;
   1982  1.1  christos     [ab].out )
   1983  1.1  christos 	# We found the default executable, but exeext='' is most
   1984  1.1  christos 	# certainly right.
   1985  1.1  christos 	break;;
   1986  1.1  christos     *.* )
   1987  1.1  christos 	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1988  1.1  christos 	# FIXME: I believe we export ac_cv_exeext for Libtool,
   1989  1.1  christos 	# but it would be cool to find out if it's true.  Does anybody
   1990  1.1  christos 	# maintain Libtool? --akim.
   1991  1.1  christos 	export ac_cv_exeext
   1992  1.1  christos 	break;;
   1993  1.1  christos     * )
   1994  1.1  christos 	break;;
   1995  1.1  christos   esac
   1996  1.1  christos done
   1997  1.1  christos else
   1998  1.1  christos   echo "$as_me: failed program was:" >&5
   1999  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2000  1.1  christos 
   2001  1.1  christos { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2002  1.1  christos See \`config.log' for more details." >&5
   2003  1.1  christos echo "$as_me: error: C compiler cannot create executables
   2004  1.1  christos See \`config.log' for more details." >&2;}
   2005  1.1  christos    { (exit 77); exit 77; }; }
   2006  1.1  christos fi
   2007  1.1  christos 
   2008  1.1  christos ac_exeext=$ac_cv_exeext
   2009  1.1  christos echo "$as_me:$LINENO: result: $ac_file" >&5
   2010  1.1  christos echo "${ECHO_T}$ac_file" >&6
   2011  1.1  christos 
   2012  1.1  christos # Check the compiler produces executables we can run.  If not, either
   2013  1.1  christos # the compiler is broken, or we cross compile.
   2014  1.1  christos echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2015  1.1  christos echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
   2016  1.1  christos # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2017  1.1  christos # If not cross compiling, check that we can run a simple program.
   2018  1.1  christos if test "$cross_compiling" != yes; then
   2019  1.1  christos   if { ac_try='./$ac_file'
   2020  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2021  1.1  christos   (eval $ac_try) 2>&5
   2022  1.1  christos   ac_status=$?
   2023  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2024  1.1  christos   (exit $ac_status); }; }; then
   2025  1.1  christos     cross_compiling=no
   2026  1.1  christos   else
   2027  1.1  christos     if test "$cross_compiling" = maybe; then
   2028  1.1  christos 	cross_compiling=yes
   2029  1.1  christos     else
   2030  1.1  christos 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2031  1.1  christos If you meant to cross compile, use \`--host'.
   2032  1.1  christos See \`config.log' for more details." >&5
   2033  1.1  christos echo "$as_me: error: cannot run C compiled programs.
   2034  1.1  christos If you meant to cross compile, use \`--host'.
   2035  1.1  christos See \`config.log' for more details." >&2;}
   2036  1.1  christos    { (exit 1); exit 1; }; }
   2037  1.1  christos     fi
   2038  1.1  christos   fi
   2039  1.1  christos fi
   2040  1.1  christos echo "$as_me:$LINENO: result: yes" >&5
   2041  1.1  christos echo "${ECHO_T}yes" >&6
   2042  1.1  christos 
   2043  1.1  christos rm -f a.out a.exe conftest$ac_cv_exeext b.out
   2044  1.1  christos ac_clean_files=$ac_clean_files_save
   2045  1.1  christos # Check the compiler produces executables we can run.  If not, either
   2046  1.1  christos # the compiler is broken, or we cross compile.
   2047  1.1  christos echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2048  1.1  christos echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
   2049  1.1  christos echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2050  1.1  christos echo "${ECHO_T}$cross_compiling" >&6
   2051  1.1  christos 
   2052  1.1  christos echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2053  1.1  christos echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
   2054  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   2055  1.1  christos   (eval $ac_link) 2>&5
   2056  1.1  christos   ac_status=$?
   2057  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2058  1.1  christos   (exit $ac_status); }; then
   2059  1.1  christos   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2060  1.1  christos # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2061  1.1  christos # work properly (i.e., refer to `conftest.exe'), while it won't with
   2062  1.1  christos # `rm'.
   2063  1.1  christos for ac_file in conftest.exe conftest conftest.*; do
   2064  1.1  christos   test -f "$ac_file" || continue
   2065  1.1  christos   case $ac_file in
   2066  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
   2067  1.1  christos     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2068  1.1  christos 	  export ac_cv_exeext
   2069  1.1  christos 	  break;;
   2070  1.1  christos     * ) break;;
   2071  1.1  christos   esac
   2072  1.1  christos done
   2073  1.1  christos else
   2074  1.1  christos   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   2075  1.1  christos See \`config.log' for more details." >&5
   2076  1.1  christos echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   2077  1.1  christos See \`config.log' for more details." >&2;}
   2078  1.1  christos    { (exit 1); exit 1; }; }
   2079  1.1  christos fi
   2080  1.1  christos 
   2081  1.1  christos rm -f conftest$ac_cv_exeext
   2082  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2083  1.1  christos echo "${ECHO_T}$ac_cv_exeext" >&6
   2084  1.1  christos 
   2085  1.1  christos rm -f conftest.$ac_ext
   2086  1.1  christos EXEEXT=$ac_cv_exeext
   2087  1.1  christos ac_exeext=$EXEEXT
   2088  1.1  christos echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2089  1.1  christos echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
   2090  1.1  christos if test "${ac_cv_objext+set}" = set; then
   2091  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2092  1.1  christos else
   2093  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2094  1.1  christos /* confdefs.h.  */
   2095  1.1  christos _ACEOF
   2096  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2097  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2098  1.1  christos /* end confdefs.h.  */
   2099  1.1  christos 
   2100  1.1  christos int
   2101  1.1  christos main ()
   2102  1.1  christos {
   2103  1.1  christos 
   2104  1.1  christos   ;
   2105  1.1  christos   return 0;
   2106  1.1  christos }
   2107  1.1  christos _ACEOF
   2108  1.1  christos rm -f conftest.o conftest.obj
   2109  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2110  1.1  christos   (eval $ac_compile) 2>&5
   2111  1.1  christos   ac_status=$?
   2112  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2113  1.1  christos   (exit $ac_status); }; then
   2114  1.1  christos   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
   2115  1.1  christos   case $ac_file in
   2116  1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
   2117  1.1  christos     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2118  1.1  christos        break;;
   2119  1.1  christos   esac
   2120  1.1  christos done
   2121  1.1  christos else
   2122  1.1  christos   echo "$as_me: failed program was:" >&5
   2123  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2124  1.1  christos 
   2125  1.1  christos { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   2126  1.1  christos See \`config.log' for more details." >&5
   2127  1.1  christos echo "$as_me: error: cannot compute suffix of object files: cannot compile
   2128  1.1  christos See \`config.log' for more details." >&2;}
   2129  1.1  christos    { (exit 1); exit 1; }; }
   2130  1.1  christos fi
   2131  1.1  christos 
   2132  1.1  christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2133  1.1  christos fi
   2134  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   2135  1.1  christos echo "${ECHO_T}$ac_cv_objext" >&6
   2136  1.1  christos OBJEXT=$ac_cv_objext
   2137  1.1  christos ac_objext=$OBJEXT
   2138  1.1  christos echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   2139  1.1  christos echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
   2140  1.1  christos if test "${ac_cv_c_compiler_gnu+set}" = set; then
   2141  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2142  1.1  christos else
   2143  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2144  1.1  christos /* confdefs.h.  */
   2145  1.1  christos _ACEOF
   2146  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2147  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2148  1.1  christos /* end confdefs.h.  */
   2149  1.1  christos 
   2150  1.1  christos int
   2151  1.1  christos main ()
   2152  1.1  christos {
   2153  1.1  christos #ifndef __GNUC__
   2154  1.1  christos        choke me
   2155  1.1  christos #endif
   2156  1.1  christos 
   2157  1.1  christos   ;
   2158  1.1  christos   return 0;
   2159  1.1  christos }
   2160  1.1  christos _ACEOF
   2161  1.1  christos rm -f conftest.$ac_objext
   2162  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2163  1.1  christos   (eval $ac_compile) 2>conftest.er1
   2164  1.1  christos   ac_status=$?
   2165  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2166  1.1  christos   rm -f conftest.er1
   2167  1.1  christos   cat conftest.err >&5
   2168  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2169  1.1  christos   (exit $ac_status); } &&
   2170  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   2171  1.1  christos 			 || test ! -s conftest.err'
   2172  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2173  1.1  christos   (eval $ac_try) 2>&5
   2174  1.1  christos   ac_status=$?
   2175  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2176  1.1  christos   (exit $ac_status); }; } &&
   2177  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   2178  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2179  1.1  christos   (eval $ac_try) 2>&5
   2180  1.1  christos   ac_status=$?
   2181  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2182  1.1  christos   (exit $ac_status); }; }; then
   2183  1.1  christos   ac_compiler_gnu=yes
   2184  1.1  christos else
   2185  1.1  christos   echo "$as_me: failed program was:" >&5
   2186  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2187  1.1  christos 
   2188  1.1  christos ac_compiler_gnu=no
   2189  1.1  christos fi
   2190  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2191  1.1  christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2192  1.1  christos 
   2193  1.1  christos fi
   2194  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2195  1.1  christos echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
   2196  1.1  christos GCC=`test $ac_compiler_gnu = yes && echo yes`
   2197  1.1  christos ac_test_CFLAGS=${CFLAGS+set}
   2198  1.1  christos ac_save_CFLAGS=$CFLAGS
   2199  1.1  christos echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2200  1.1  christos echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
   2201  1.1  christos if test "${ac_cv_prog_cc_g+set}" = set; then
   2202  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2203  1.1  christos else
   2204  1.1  christos   ac_save_c_werror_flag=$ac_c_werror_flag
   2205  1.1  christos    ac_c_werror_flag=yes
   2206  1.1  christos    ac_cv_prog_cc_g=no
   2207  1.1  christos    CFLAGS="-g"
   2208  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   2209  1.1  christos /* confdefs.h.  */
   2210  1.1  christos _ACEOF
   2211  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2212  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2213  1.1  christos /* end confdefs.h.  */
   2214  1.1  christos 
   2215  1.1  christos int
   2216  1.1  christos main ()
   2217  1.1  christos {
   2218  1.1  christos 
   2219  1.1  christos   ;
   2220  1.1  christos   return 0;
   2221  1.1  christos }
   2222  1.1  christos _ACEOF
   2223  1.1  christos rm -f conftest.$ac_objext
   2224  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2225  1.1  christos   (eval $ac_compile) 2>conftest.er1
   2226  1.1  christos   ac_status=$?
   2227  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2228  1.1  christos   rm -f conftest.er1
   2229  1.1  christos   cat conftest.err >&5
   2230  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2231  1.1  christos   (exit $ac_status); } &&
   2232  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   2233  1.1  christos 			 || test ! -s conftest.err'
   2234  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2235  1.1  christos   (eval $ac_try) 2>&5
   2236  1.1  christos   ac_status=$?
   2237  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2238  1.1  christos   (exit $ac_status); }; } &&
   2239  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   2240  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2241  1.1  christos   (eval $ac_try) 2>&5
   2242  1.1  christos   ac_status=$?
   2243  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2244  1.1  christos   (exit $ac_status); }; }; then
   2245  1.1  christos   ac_cv_prog_cc_g=yes
   2246  1.1  christos else
   2247  1.1  christos   echo "$as_me: failed program was:" >&5
   2248  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2249  1.1  christos 
   2250  1.1  christos CFLAGS=""
   2251  1.1  christos       cat >conftest.$ac_ext <<_ACEOF
   2252  1.1  christos /* confdefs.h.  */
   2253  1.1  christos _ACEOF
   2254  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2255  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2256  1.1  christos /* end confdefs.h.  */
   2257  1.1  christos 
   2258  1.1  christos int
   2259  1.1  christos main ()
   2260  1.1  christos {
   2261  1.1  christos 
   2262  1.1  christos   ;
   2263  1.1  christos   return 0;
   2264  1.1  christos }
   2265  1.1  christos _ACEOF
   2266  1.1  christos rm -f conftest.$ac_objext
   2267  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2268  1.1  christos   (eval $ac_compile) 2>conftest.er1
   2269  1.1  christos   ac_status=$?
   2270  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2271  1.1  christos   rm -f conftest.er1
   2272  1.1  christos   cat conftest.err >&5
   2273  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2274  1.1  christos   (exit $ac_status); } &&
   2275  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   2276  1.1  christos 			 || test ! -s conftest.err'
   2277  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2278  1.1  christos   (eval $ac_try) 2>&5
   2279  1.1  christos   ac_status=$?
   2280  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2281  1.1  christos   (exit $ac_status); }; } &&
   2282  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   2283  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2284  1.1  christos   (eval $ac_try) 2>&5
   2285  1.1  christos   ac_status=$?
   2286  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2287  1.1  christos   (exit $ac_status); }; }; then
   2288  1.1  christos   :
   2289  1.1  christos else
   2290  1.1  christos   echo "$as_me: failed program was:" >&5
   2291  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2292  1.1  christos 
   2293  1.1  christos ac_c_werror_flag=$ac_save_c_werror_flag
   2294  1.1  christos 	 CFLAGS="-g"
   2295  1.1  christos 	 cat >conftest.$ac_ext <<_ACEOF
   2296  1.1  christos /* confdefs.h.  */
   2297  1.1  christos _ACEOF
   2298  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2299  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2300  1.1  christos /* end confdefs.h.  */
   2301  1.1  christos 
   2302  1.1  christos int
   2303  1.1  christos main ()
   2304  1.1  christos {
   2305  1.1  christos 
   2306  1.1  christos   ;
   2307  1.1  christos   return 0;
   2308  1.1  christos }
   2309  1.1  christos _ACEOF
   2310  1.1  christos rm -f conftest.$ac_objext
   2311  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2312  1.1  christos   (eval $ac_compile) 2>conftest.er1
   2313  1.1  christos   ac_status=$?
   2314  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2315  1.1  christos   rm -f conftest.er1
   2316  1.1  christos   cat conftest.err >&5
   2317  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2318  1.1  christos   (exit $ac_status); } &&
   2319  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   2320  1.1  christos 			 || test ! -s conftest.err'
   2321  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2322  1.1  christos   (eval $ac_try) 2>&5
   2323  1.1  christos   ac_status=$?
   2324  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2325  1.1  christos   (exit $ac_status); }; } &&
   2326  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   2327  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2328  1.1  christos   (eval $ac_try) 2>&5
   2329  1.1  christos   ac_status=$?
   2330  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2331  1.1  christos   (exit $ac_status); }; }; then
   2332  1.1  christos   ac_cv_prog_cc_g=yes
   2333  1.1  christos else
   2334  1.1  christos   echo "$as_me: failed program was:" >&5
   2335  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2336  1.1  christos 
   2337  1.1  christos fi
   2338  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2339  1.1  christos fi
   2340  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2341  1.1  christos fi
   2342  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2343  1.1  christos    ac_c_werror_flag=$ac_save_c_werror_flag
   2344  1.1  christos fi
   2345  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   2346  1.1  christos echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
   2347  1.1  christos if test "$ac_test_CFLAGS" = set; then
   2348  1.1  christos   CFLAGS=$ac_save_CFLAGS
   2349  1.1  christos elif test $ac_cv_prog_cc_g = yes; then
   2350  1.1  christos   if test "$GCC" = yes; then
   2351  1.1  christos     CFLAGS="-g -O2"
   2352  1.1  christos   else
   2353  1.1  christos     CFLAGS="-g"
   2354  1.1  christos   fi
   2355  1.1  christos else
   2356  1.1  christos   if test "$GCC" = yes; then
   2357  1.1  christos     CFLAGS="-O2"
   2358  1.1  christos   else
   2359  1.1  christos     CFLAGS=
   2360  1.1  christos   fi
   2361  1.1  christos fi
   2362  1.1  christos echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
   2363  1.1  christos echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
   2364  1.1  christos if test "${ac_cv_prog_cc_stdc+set}" = set; then
   2365  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2366  1.1  christos else
   2367  1.1  christos   ac_cv_prog_cc_stdc=no
   2368  1.1  christos ac_save_CC=$CC
   2369  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   2370  1.1  christos /* confdefs.h.  */
   2371  1.1  christos _ACEOF
   2372  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2373  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2374  1.1  christos /* end confdefs.h.  */
   2375  1.1  christos #include <stdarg.h>
   2376  1.1  christos #include <stdio.h>
   2377  1.1  christos #include <sys/types.h>
   2378  1.1  christos #include <sys/stat.h>
   2379  1.1  christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2380  1.1  christos struct buf { int x; };
   2381  1.1  christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2382  1.1  christos static char *e (p, i)
   2383  1.1  christos      char **p;
   2384  1.1  christos      int i;
   2385  1.1  christos {
   2386  1.1  christos   return p[i];
   2387  1.1  christos }
   2388  1.1  christos static char *f (char * (*g) (char **, int), char **p, ...)
   2389  1.1  christos {
   2390  1.1  christos   char *s;
   2391  1.1  christos   va_list v;
   2392  1.1  christos   va_start (v,p);
   2393  1.1  christos   s = g (p, va_arg (v,int));
   2394  1.1  christos   va_end (v);
   2395  1.1  christos   return s;
   2396  1.1  christos }
   2397  1.1  christos 
   2398  1.1  christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2399  1.1  christos    function prototypes and stuff, but not '\xHH' hex character constants.
   2400  1.1  christos    These don't provoke an error unfortunately, instead are silently treated
   2401  1.1  christos    as 'x'.  The following induces an error, until -std is added to get
   2402  1.1  christos    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   2403  1.1  christos    array size at least.  It's necessary to write '\x00'==0 to get something
   2404  1.1  christos    that's true only with -std.  */
   2405  1.1  christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   2406  1.1  christos 
   2407  1.1  christos int test (int i, double x);
   2408  1.1  christos struct s1 {int (*f) (int a);};
   2409  1.1  christos struct s2 {int (*f) (double a);};
   2410  1.1  christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2411  1.1  christos int argc;
   2412  1.1  christos char **argv;
   2413  1.1  christos int
   2414  1.1  christos main ()
   2415  1.1  christos {
   2416  1.1  christos return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2417  1.1  christos   ;
   2418  1.1  christos   return 0;
   2419  1.1  christos }
   2420  1.1  christos _ACEOF
   2421  1.1  christos # Don't try gcc -ansi; that turns off useful extensions and
   2422  1.1  christos # breaks some systems' header files.
   2423  1.1  christos # AIX			-qlanglvl=ansi
   2424  1.1  christos # Ultrix, OSF/1, Tru64	-std
   2425  1.1  christos # HP-UX 10.20 and later	-Ae
   2426  1.1  christos # HP-UX older versions	-Aa -D_HPUX_SOURCE
   2427  1.1  christos # SVR4			-Xc -D__EXTENSIONS__
   2428  1.1  christos for ac_arg in "" -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2429  1.1  christos do
   2430  1.1  christos   CC="$ac_save_CC $ac_arg"
   2431  1.1  christos   rm -f conftest.$ac_objext
   2432  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2433  1.1  christos   (eval $ac_compile) 2>conftest.er1
   2434  1.1  christos   ac_status=$?
   2435  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2436  1.1  christos   rm -f conftest.er1
   2437  1.1  christos   cat conftest.err >&5
   2438  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2439  1.1  christos   (exit $ac_status); } &&
   2440  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   2441  1.1  christos 			 || test ! -s conftest.err'
   2442  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2443  1.1  christos   (eval $ac_try) 2>&5
   2444  1.1  christos   ac_status=$?
   2445  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2446  1.1  christos   (exit $ac_status); }; } &&
   2447  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   2448  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2449  1.1  christos   (eval $ac_try) 2>&5
   2450  1.1  christos   ac_status=$?
   2451  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2452  1.1  christos   (exit $ac_status); }; }; then
   2453  1.1  christos   ac_cv_prog_cc_stdc=$ac_arg
   2454  1.1  christos break
   2455  1.1  christos else
   2456  1.1  christos   echo "$as_me: failed program was:" >&5
   2457  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2458  1.1  christos 
   2459  1.1  christos fi
   2460  1.1  christos rm -f conftest.err conftest.$ac_objext
   2461  1.1  christos done
   2462  1.1  christos rm -f conftest.$ac_ext conftest.$ac_objext
   2463  1.1  christos CC=$ac_save_CC
   2464  1.1  christos 
   2465  1.1  christos fi
   2466  1.1  christos 
   2467  1.1  christos case "x$ac_cv_prog_cc_stdc" in
   2468  1.1  christos   x|xno)
   2469  1.1  christos     echo "$as_me:$LINENO: result: none needed" >&5
   2470  1.1  christos echo "${ECHO_T}none needed" >&6 ;;
   2471  1.1  christos   *)
   2472  1.1  christos     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
   2473  1.1  christos echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
   2474  1.1  christos     CC="$CC $ac_cv_prog_cc_stdc" ;;
   2475  1.1  christos esac
   2476  1.1  christos 
   2477  1.1  christos # Some people use a C++ compiler to compile C.  Since we use `exit',
   2478  1.1  christos # in C++ we need to declare it.  In case someone uses the same compiler
   2479  1.1  christos # for both compiling C and C++ we need to have the C++ compiler decide
   2480  1.1  christos # the declaration of exit, since it's the most demanding environment.
   2481  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   2482  1.1  christos #ifndef __cplusplus
   2483  1.1  christos   choke me
   2484  1.1  christos #endif
   2485  1.1  christos _ACEOF
   2486  1.1  christos rm -f conftest.$ac_objext
   2487  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2488  1.1  christos   (eval $ac_compile) 2>conftest.er1
   2489  1.1  christos   ac_status=$?
   2490  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2491  1.1  christos   rm -f conftest.er1
   2492  1.1  christos   cat conftest.err >&5
   2493  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2494  1.1  christos   (exit $ac_status); } &&
   2495  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   2496  1.1  christos 			 || test ! -s conftest.err'
   2497  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2498  1.1  christos   (eval $ac_try) 2>&5
   2499  1.1  christos   ac_status=$?
   2500  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2501  1.1  christos   (exit $ac_status); }; } &&
   2502  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   2503  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2504  1.1  christos   (eval $ac_try) 2>&5
   2505  1.1  christos   ac_status=$?
   2506  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2507  1.1  christos   (exit $ac_status); }; }; then
   2508  1.1  christos   for ac_declaration in \
   2509  1.1  christos    '' \
   2510  1.1  christos    'extern "C" void std::exit (int) throw (); using std::exit;' \
   2511  1.1  christos    'extern "C" void std::exit (int); using std::exit;' \
   2512  1.1  christos    'extern "C" void exit (int) throw ();' \
   2513  1.1  christos    'extern "C" void exit (int);' \
   2514  1.1  christos    'void exit (int);'
   2515  1.1  christos do
   2516  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2517  1.1  christos /* confdefs.h.  */
   2518  1.1  christos _ACEOF
   2519  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2520  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2521  1.1  christos /* end confdefs.h.  */
   2522  1.1  christos $ac_declaration
   2523  1.1  christos #include <stdlib.h>
   2524  1.1  christos int
   2525  1.1  christos main ()
   2526  1.1  christos {
   2527  1.1  christos exit (42);
   2528  1.1  christos   ;
   2529  1.1  christos   return 0;
   2530  1.1  christos }
   2531  1.1  christos _ACEOF
   2532  1.1  christos rm -f conftest.$ac_objext
   2533  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2534  1.1  christos   (eval $ac_compile) 2>conftest.er1
   2535  1.1  christos   ac_status=$?
   2536  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2537  1.1  christos   rm -f conftest.er1
   2538  1.1  christos   cat conftest.err >&5
   2539  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2540  1.1  christos   (exit $ac_status); } &&
   2541  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   2542  1.1  christos 			 || test ! -s conftest.err'
   2543  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2544  1.1  christos   (eval $ac_try) 2>&5
   2545  1.1  christos   ac_status=$?
   2546  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2547  1.1  christos   (exit $ac_status); }; } &&
   2548  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   2549  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2550  1.1  christos   (eval $ac_try) 2>&5
   2551  1.1  christos   ac_status=$?
   2552  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2553  1.1  christos   (exit $ac_status); }; }; then
   2554  1.1  christos   :
   2555  1.1  christos else
   2556  1.1  christos   echo "$as_me: failed program was:" >&5
   2557  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2558  1.1  christos 
   2559  1.1  christos continue
   2560  1.1  christos fi
   2561  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2562  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2563  1.1  christos /* confdefs.h.  */
   2564  1.1  christos _ACEOF
   2565  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2566  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2567  1.1  christos /* end confdefs.h.  */
   2568  1.1  christos $ac_declaration
   2569  1.1  christos int
   2570  1.1  christos main ()
   2571  1.1  christos {
   2572  1.1  christos exit (42);
   2573  1.1  christos   ;
   2574  1.1  christos   return 0;
   2575  1.1  christos }
   2576  1.1  christos _ACEOF
   2577  1.1  christos rm -f conftest.$ac_objext
   2578  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2579  1.1  christos   (eval $ac_compile) 2>conftest.er1
   2580  1.1  christos   ac_status=$?
   2581  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2582  1.1  christos   rm -f conftest.er1
   2583  1.1  christos   cat conftest.err >&5
   2584  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2585  1.1  christos   (exit $ac_status); } &&
   2586  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   2587  1.1  christos 			 || test ! -s conftest.err'
   2588  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2589  1.1  christos   (eval $ac_try) 2>&5
   2590  1.1  christos   ac_status=$?
   2591  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2592  1.1  christos   (exit $ac_status); }; } &&
   2593  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   2594  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2595  1.1  christos   (eval $ac_try) 2>&5
   2596  1.1  christos   ac_status=$?
   2597  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2598  1.1  christos   (exit $ac_status); }; }; then
   2599  1.1  christos   break
   2600  1.1  christos else
   2601  1.1  christos   echo "$as_me: failed program was:" >&5
   2602  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2603  1.1  christos 
   2604  1.1  christos fi
   2605  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2606  1.1  christos done
   2607  1.1  christos rm -f conftest*
   2608  1.1  christos if test -n "$ac_declaration"; then
   2609  1.1  christos   echo '#ifdef __cplusplus' >>confdefs.h
   2610  1.1  christos   echo $ac_declaration      >>confdefs.h
   2611  1.1  christos   echo '#endif'             >>confdefs.h
   2612  1.1  christos fi
   2613  1.1  christos 
   2614  1.1  christos else
   2615  1.1  christos   echo "$as_me: failed program was:" >&5
   2616  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2617  1.1  christos 
   2618  1.1  christos fi
   2619  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2620  1.1  christos ac_ext=c
   2621  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   2622  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2623  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2624  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2625  1.1  christos 
   2626  1.1  christos ac_ext=cc
   2627  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   2628  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2629  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2630  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   2631  1.1  christos if test -n "$ac_tool_prefix"; then
   2632  1.1  christos   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
   2633  1.1  christos   do
   2634  1.1  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2635  1.1  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2636  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   2637  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2638  1.1  christos if test "${ac_cv_prog_CXX+set}" = set; then
   2639  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2640  1.1  christos else
   2641  1.1  christos   if test -n "$CXX"; then
   2642  1.1  christos   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   2643  1.1  christos else
   2644  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2645  1.1  christos for as_dir in $PATH
   2646  1.1  christos do
   2647  1.1  christos   IFS=$as_save_IFS
   2648  1.1  christos   test -z "$as_dir" && as_dir=.
   2649  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   2650  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2651  1.1  christos     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   2652  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2653  1.1  christos     break 2
   2654  1.1  christos   fi
   2655  1.1  christos done
   2656  1.1  christos done
   2657  1.1  christos 
   2658  1.1  christos fi
   2659  1.1  christos fi
   2660  1.1  christos CXX=$ac_cv_prog_CXX
   2661  1.1  christos if test -n "$CXX"; then
   2662  1.1  christos   echo "$as_me:$LINENO: result: $CXX" >&5
   2663  1.1  christos echo "${ECHO_T}$CXX" >&6
   2664  1.1  christos else
   2665  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   2666  1.1  christos echo "${ECHO_T}no" >&6
   2667  1.1  christos fi
   2668  1.1  christos 
   2669  1.1  christos     test -n "$CXX" && break
   2670  1.1  christos   done
   2671  1.1  christos fi
   2672  1.1  christos if test -z "$CXX"; then
   2673  1.1  christos   ac_ct_CXX=$CXX
   2674  1.1  christos   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
   2675  1.1  christos do
   2676  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2677  1.1  christos set dummy $ac_prog; ac_word=$2
   2678  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   2679  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2680  1.1  christos if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
   2681  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2682  1.1  christos else
   2683  1.1  christos   if test -n "$ac_ct_CXX"; then
   2684  1.1  christos   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   2685  1.1  christos else
   2686  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2687  1.1  christos for as_dir in $PATH
   2688  1.1  christos do
   2689  1.1  christos   IFS=$as_save_IFS
   2690  1.1  christos   test -z "$as_dir" && as_dir=.
   2691  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   2692  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2693  1.1  christos     ac_cv_prog_ac_ct_CXX="$ac_prog"
   2694  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2695  1.1  christos     break 2
   2696  1.1  christos   fi
   2697  1.1  christos done
   2698  1.1  christos done
   2699  1.1  christos 
   2700  1.1  christos fi
   2701  1.1  christos fi
   2702  1.1  christos ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   2703  1.1  christos if test -n "$ac_ct_CXX"; then
   2704  1.1  christos   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
   2705  1.1  christos echo "${ECHO_T}$ac_ct_CXX" >&6
   2706  1.1  christos else
   2707  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   2708  1.1  christos echo "${ECHO_T}no" >&6
   2709  1.1  christos fi
   2710  1.1  christos 
   2711  1.1  christos   test -n "$ac_ct_CXX" && break
   2712  1.1  christos done
   2713  1.1  christos 
   2714  1.1  christos   if test "x$ac_ct_CXX" = x; then
   2715  1.1  christos     CXX="g++"
   2716  1.1  christos   else
   2717  1.1  christos     if test "$build" != "$host"; then
   2718  1.1  christos       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2719  1.1  christos whose name does not start with the host triplet.  If you think this
   2720  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2721  1.1  christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2722  1.1  christos whose name does not start with the host triplet.  If you think this
   2723  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2724  1.1  christos     fi
   2725  1.1  christos     CXX=$ac_ct_CXX
   2726  1.1  christos   fi
   2727  1.1  christos fi
   2728  1.1  christos 
   2729  1.1  christos 
   2730  1.1  christos # Provide some information about the compiler.
   2731  1.1  christos echo "$as_me:$LINENO:" \
   2732  1.1  christos      "checking for C++ compiler version" >&5
   2733  1.1  christos ac_compiler=`set X $ac_compile; echo $2`
   2734  1.1  christos { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
   2735  1.1  christos   (eval $ac_compiler --version </dev/null >&5) 2>&5
   2736  1.1  christos   ac_status=$?
   2737  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2738  1.1  christos   (exit $ac_status); }
   2739  1.1  christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
   2740  1.1  christos   (eval $ac_compiler -v </dev/null >&5) 2>&5
   2741  1.1  christos   ac_status=$?
   2742  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2743  1.1  christos   (exit $ac_status); }
   2744  1.1  christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
   2745  1.1  christos   (eval $ac_compiler -V </dev/null >&5) 2>&5
   2746  1.1  christos   ac_status=$?
   2747  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2748  1.1  christos   (exit $ac_status); }
   2749  1.1  christos 
   2750  1.1  christos echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
   2751  1.1  christos echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
   2752  1.1  christos if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
   2753  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2754  1.1  christos else
   2755  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2756  1.1  christos /* confdefs.h.  */
   2757  1.1  christos _ACEOF
   2758  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2759  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2760  1.1  christos /* end confdefs.h.  */
   2761  1.1  christos 
   2762  1.1  christos int
   2763  1.1  christos main ()
   2764  1.1  christos {
   2765  1.1  christos #ifndef __GNUC__
   2766  1.1  christos        choke me
   2767  1.1  christos #endif
   2768  1.1  christos 
   2769  1.1  christos   ;
   2770  1.1  christos   return 0;
   2771  1.1  christos }
   2772  1.1  christos _ACEOF
   2773  1.1  christos rm -f conftest.$ac_objext
   2774  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2775  1.1  christos   (eval $ac_compile) 2>conftest.er1
   2776  1.1  christos   ac_status=$?
   2777  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2778  1.1  christos   rm -f conftest.er1
   2779  1.1  christos   cat conftest.err >&5
   2780  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2781  1.1  christos   (exit $ac_status); } &&
   2782  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   2783  1.1  christos 			 || test ! -s conftest.err'
   2784  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2785  1.1  christos   (eval $ac_try) 2>&5
   2786  1.1  christos   ac_status=$?
   2787  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2788  1.1  christos   (exit $ac_status); }; } &&
   2789  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   2790  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2791  1.1  christos   (eval $ac_try) 2>&5
   2792  1.1  christos   ac_status=$?
   2793  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2794  1.1  christos   (exit $ac_status); }; }; then
   2795  1.1  christos   ac_compiler_gnu=yes
   2796  1.1  christos else
   2797  1.1  christos   echo "$as_me: failed program was:" >&5
   2798  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2799  1.1  christos 
   2800  1.1  christos ac_compiler_gnu=no
   2801  1.1  christos fi
   2802  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2803  1.1  christos ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   2804  1.1  christos 
   2805  1.1  christos fi
   2806  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
   2807  1.1  christos echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
   2808  1.1  christos GXX=`test $ac_compiler_gnu = yes && echo yes`
   2809  1.1  christos ac_test_CXXFLAGS=${CXXFLAGS+set}
   2810  1.1  christos ac_save_CXXFLAGS=$CXXFLAGS
   2811  1.1  christos echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
   2812  1.1  christos echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
   2813  1.1  christos if test "${ac_cv_prog_cxx_g+set}" = set; then
   2814  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2815  1.1  christos else
   2816  1.1  christos   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   2817  1.1  christos    ac_cxx_werror_flag=yes
   2818  1.1  christos    ac_cv_prog_cxx_g=no
   2819  1.1  christos    CXXFLAGS="-g"
   2820  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   2821  1.1  christos /* confdefs.h.  */
   2822  1.1  christos _ACEOF
   2823  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2824  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2825  1.1  christos /* end confdefs.h.  */
   2826  1.1  christos 
   2827  1.1  christos int
   2828  1.1  christos main ()
   2829  1.1  christos {
   2830  1.1  christos 
   2831  1.1  christos   ;
   2832  1.1  christos   return 0;
   2833  1.1  christos }
   2834  1.1  christos _ACEOF
   2835  1.1  christos rm -f conftest.$ac_objext
   2836  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2837  1.1  christos   (eval $ac_compile) 2>conftest.er1
   2838  1.1  christos   ac_status=$?
   2839  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2840  1.1  christos   rm -f conftest.er1
   2841  1.1  christos   cat conftest.err >&5
   2842  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2843  1.1  christos   (exit $ac_status); } &&
   2844  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   2845  1.1  christos 			 || test ! -s conftest.err'
   2846  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2847  1.1  christos   (eval $ac_try) 2>&5
   2848  1.1  christos   ac_status=$?
   2849  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2850  1.1  christos   (exit $ac_status); }; } &&
   2851  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   2852  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2853  1.1  christos   (eval $ac_try) 2>&5
   2854  1.1  christos   ac_status=$?
   2855  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2856  1.1  christos   (exit $ac_status); }; }; then
   2857  1.1  christos   ac_cv_prog_cxx_g=yes
   2858  1.1  christos else
   2859  1.1  christos   echo "$as_me: failed program was:" >&5
   2860  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2861  1.1  christos 
   2862  1.1  christos CXXFLAGS=""
   2863  1.1  christos       cat >conftest.$ac_ext <<_ACEOF
   2864  1.1  christos /* confdefs.h.  */
   2865  1.1  christos _ACEOF
   2866  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2867  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2868  1.1  christos /* end confdefs.h.  */
   2869  1.1  christos 
   2870  1.1  christos int
   2871  1.1  christos main ()
   2872  1.1  christos {
   2873  1.1  christos 
   2874  1.1  christos   ;
   2875  1.1  christos   return 0;
   2876  1.1  christos }
   2877  1.1  christos _ACEOF
   2878  1.1  christos rm -f conftest.$ac_objext
   2879  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2880  1.1  christos   (eval $ac_compile) 2>conftest.er1
   2881  1.1  christos   ac_status=$?
   2882  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2883  1.1  christos   rm -f conftest.er1
   2884  1.1  christos   cat conftest.err >&5
   2885  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2886  1.1  christos   (exit $ac_status); } &&
   2887  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   2888  1.1  christos 			 || test ! -s conftest.err'
   2889  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2890  1.1  christos   (eval $ac_try) 2>&5
   2891  1.1  christos   ac_status=$?
   2892  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2893  1.1  christos   (exit $ac_status); }; } &&
   2894  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   2895  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2896  1.1  christos   (eval $ac_try) 2>&5
   2897  1.1  christos   ac_status=$?
   2898  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2899  1.1  christos   (exit $ac_status); }; }; then
   2900  1.1  christos   :
   2901  1.1  christos else
   2902  1.1  christos   echo "$as_me: failed program was:" >&5
   2903  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2904  1.1  christos 
   2905  1.1  christos ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   2906  1.1  christos 	 CXXFLAGS="-g"
   2907  1.1  christos 	 cat >conftest.$ac_ext <<_ACEOF
   2908  1.1  christos /* confdefs.h.  */
   2909  1.1  christos _ACEOF
   2910  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2911  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2912  1.1  christos /* end confdefs.h.  */
   2913  1.1  christos 
   2914  1.1  christos int
   2915  1.1  christos main ()
   2916  1.1  christos {
   2917  1.1  christos 
   2918  1.1  christos   ;
   2919  1.1  christos   return 0;
   2920  1.1  christos }
   2921  1.1  christos _ACEOF
   2922  1.1  christos rm -f conftest.$ac_objext
   2923  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2924  1.1  christos   (eval $ac_compile) 2>conftest.er1
   2925  1.1  christos   ac_status=$?
   2926  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   2927  1.1  christos   rm -f conftest.er1
   2928  1.1  christos   cat conftest.err >&5
   2929  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2930  1.1  christos   (exit $ac_status); } &&
   2931  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   2932  1.1  christos 			 || test ! -s conftest.err'
   2933  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2934  1.1  christos   (eval $ac_try) 2>&5
   2935  1.1  christos   ac_status=$?
   2936  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2937  1.1  christos   (exit $ac_status); }; } &&
   2938  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   2939  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2940  1.1  christos   (eval $ac_try) 2>&5
   2941  1.1  christos   ac_status=$?
   2942  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2943  1.1  christos   (exit $ac_status); }; }; then
   2944  1.1  christos   ac_cv_prog_cxx_g=yes
   2945  1.1  christos else
   2946  1.1  christos   echo "$as_me: failed program was:" >&5
   2947  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   2948  1.1  christos 
   2949  1.1  christos fi
   2950  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2951  1.1  christos fi
   2952  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2953  1.1  christos fi
   2954  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2955  1.1  christos    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   2956  1.1  christos fi
   2957  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
   2958  1.1  christos echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
   2959  1.1  christos if test "$ac_test_CXXFLAGS" = set; then
   2960  1.1  christos   CXXFLAGS=$ac_save_CXXFLAGS
   2961  1.1  christos elif test $ac_cv_prog_cxx_g = yes; then
   2962  1.1  christos   if test "$GXX" = yes; then
   2963  1.1  christos     CXXFLAGS="-g -O2"
   2964  1.1  christos   else
   2965  1.1  christos     CXXFLAGS="-g"
   2966  1.1  christos   fi
   2967  1.1  christos else
   2968  1.1  christos   if test "$GXX" = yes; then
   2969  1.1  christos     CXXFLAGS="-O2"
   2970  1.1  christos   else
   2971  1.1  christos     CXXFLAGS=
   2972  1.1  christos   fi
   2973  1.1  christos fi
   2974  1.1  christos for ac_declaration in \
   2975  1.1  christos    '' \
   2976  1.1  christos    'extern "C" void std::exit (int) throw (); using std::exit;' \
   2977  1.1  christos    'extern "C" void std::exit (int); using std::exit;' \
   2978  1.1  christos    'extern "C" void exit (int) throw ();' \
   2979  1.1  christos    'extern "C" void exit (int);' \
   2980  1.1  christos    'void exit (int);'
   2981  1.1  christos do
   2982  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   2983  1.1  christos /* confdefs.h.  */
   2984  1.1  christos _ACEOF
   2985  1.1  christos cat confdefs.h >>conftest.$ac_ext
   2986  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   2987  1.1  christos /* end confdefs.h.  */
   2988  1.1  christos $ac_declaration
   2989  1.1  christos #include <stdlib.h>
   2990  1.1  christos int
   2991  1.1  christos main ()
   2992  1.1  christos {
   2993  1.1  christos exit (42);
   2994  1.1  christos   ;
   2995  1.1  christos   return 0;
   2996  1.1  christos }
   2997  1.1  christos _ACEOF
   2998  1.1  christos rm -f conftest.$ac_objext
   2999  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3000  1.1  christos   (eval $ac_compile) 2>conftest.er1
   3001  1.1  christos   ac_status=$?
   3002  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3003  1.1  christos   rm -f conftest.er1
   3004  1.1  christos   cat conftest.err >&5
   3005  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3006  1.1  christos   (exit $ac_status); } &&
   3007  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   3008  1.1  christos 			 || test ! -s conftest.err'
   3009  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3010  1.1  christos   (eval $ac_try) 2>&5
   3011  1.1  christos   ac_status=$?
   3012  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3013  1.1  christos   (exit $ac_status); }; } &&
   3014  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   3015  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3016  1.1  christos   (eval $ac_try) 2>&5
   3017  1.1  christos   ac_status=$?
   3018  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3019  1.1  christos   (exit $ac_status); }; }; then
   3020  1.1  christos   :
   3021  1.1  christos else
   3022  1.1  christos   echo "$as_me: failed program was:" >&5
   3023  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3024  1.1  christos 
   3025  1.1  christos continue
   3026  1.1  christos fi
   3027  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3028  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3029  1.1  christos /* confdefs.h.  */
   3030  1.1  christos _ACEOF
   3031  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3032  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3033  1.1  christos /* end confdefs.h.  */
   3034  1.1  christos $ac_declaration
   3035  1.1  christos int
   3036  1.1  christos main ()
   3037  1.1  christos {
   3038  1.1  christos exit (42);
   3039  1.1  christos   ;
   3040  1.1  christos   return 0;
   3041  1.1  christos }
   3042  1.1  christos _ACEOF
   3043  1.1  christos rm -f conftest.$ac_objext
   3044  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3045  1.1  christos   (eval $ac_compile) 2>conftest.er1
   3046  1.1  christos   ac_status=$?
   3047  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3048  1.1  christos   rm -f conftest.er1
   3049  1.1  christos   cat conftest.err >&5
   3050  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3051  1.1  christos   (exit $ac_status); } &&
   3052  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   3053  1.1  christos 			 || test ! -s conftest.err'
   3054  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3055  1.1  christos   (eval $ac_try) 2>&5
   3056  1.1  christos   ac_status=$?
   3057  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3058  1.1  christos   (exit $ac_status); }; } &&
   3059  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   3060  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3061  1.1  christos   (eval $ac_try) 2>&5
   3062  1.1  christos   ac_status=$?
   3063  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3064  1.1  christos   (exit $ac_status); }; }; then
   3065  1.1  christos   break
   3066  1.1  christos else
   3067  1.1  christos   echo "$as_me: failed program was:" >&5
   3068  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3069  1.1  christos 
   3070  1.1  christos fi
   3071  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3072  1.1  christos done
   3073  1.1  christos rm -f conftest*
   3074  1.1  christos if test -n "$ac_declaration"; then
   3075  1.1  christos   echo '#ifdef __cplusplus' >>confdefs.h
   3076  1.1  christos   echo $ac_declaration      >>confdefs.h
   3077  1.1  christos   echo '#endif'             >>confdefs.h
   3078  1.1  christos fi
   3079  1.1  christos 
   3080  1.1  christos ac_ext=c
   3081  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   3082  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3083  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3084  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3085  1.1  christos 
   3086  1.1  christos 
   3087  1.1  christos 
   3088  1.1  christos    ac_ext=cc
   3089  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   3090  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3091  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3092  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   3093  1.1  christos 
   3094  1.1  christos    if test "$cross_compiling" = no; then
   3095  1.1  christos      echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
   3096  1.1  christos echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
   3097  1.1  christos    fi
   3098  1.1  christos    if test "$cross_compiling" = yes; then
   3099  1.1  christos   :
   3100  1.1  christos else
   3101  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3102  1.1  christos 
   3103  1.1  christos        /* confdefs.h.  */
   3104  1.1  christos _ACEOF
   3105  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3106  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3107  1.1  christos /* end confdefs.h.  */
   3108  1.1  christos 
   3109  1.1  christos 
   3110  1.1  christos int main() {
   3111  1.1  christos   return 0;
   3112  1.1  christos }
   3113  1.1  christos 
   3114  1.1  christos 
   3115  1.1  christos 
   3116  1.1  christos _ACEOF
   3117  1.1  christos rm -f conftest$ac_exeext
   3118  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3119  1.1  christos   (eval $ac_link) 2>&5
   3120  1.1  christos   ac_status=$?
   3121  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3122  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3123  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3124  1.1  christos   (eval $ac_try) 2>&5
   3125  1.1  christos   ac_status=$?
   3126  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3127  1.1  christos   (exit $ac_status); }; }; then
   3128  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   3129  1.1  christos echo "${ECHO_T}yes" >&6
   3130  1.1  christos else
   3131  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   3132  1.1  christos echo "$as_me: failed program was:" >&5
   3133  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3134  1.1  christos 
   3135  1.1  christos ( exit $ac_status )
   3136  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   3137  1.1  christos echo "${ECHO_T}no" >&6
   3138  1.1  christos       { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
   3139  1.1  christos echo "$as_me: error: a working C++ compiler is required" >&2;}
   3140  1.1  christos    { (exit 1); exit 1; }; }
   3141  1.1  christos fi
   3142  1.1  christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3143  1.1  christos fi
   3144  1.1  christos 
   3145  1.1  christos    if test "$cross_compiling" = no; then
   3146  1.1  christos      echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
   3147  1.1  christos echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
   3148  1.1  christos    fi
   3149  1.1  christos    if test "$cross_compiling" = yes; then
   3150  1.1  christos   :
   3151  1.1  christos else
   3152  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3153  1.1  christos 
   3154  1.1  christos        /* confdefs.h.  */
   3155  1.1  christos _ACEOF
   3156  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3157  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3158  1.1  christos /* end confdefs.h.  */
   3159  1.1  christos 
   3160  1.1  christos 
   3161  1.1  christos extern "C" {
   3162  1.1  christos   void _exit(int);
   3163  1.1  christos }
   3164  1.1  christos 
   3165  1.1  christos int i;
   3166  1.1  christos struct A {
   3167  1.1  christos   char dummy;
   3168  1.1  christos   A() { i = 1; }
   3169  1.1  christos   ~A() { if (i == 1) _exit(0); }
   3170  1.1  christos };
   3171  1.1  christos 
   3172  1.1  christos A a;
   3173  1.1  christos 
   3174  1.1  christos int main()
   3175  1.1  christos {
   3176  1.1  christos   return 1;
   3177  1.1  christos }
   3178  1.1  christos 
   3179  1.1  christos 
   3180  1.1  christos 
   3181  1.1  christos _ACEOF
   3182  1.1  christos rm -f conftest$ac_exeext
   3183  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3184  1.1  christos   (eval $ac_link) 2>&5
   3185  1.1  christos   ac_status=$?
   3186  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3187  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3188  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3189  1.1  christos   (eval $ac_try) 2>&5
   3190  1.1  christos   ac_status=$?
   3191  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3192  1.1  christos   (exit $ac_status); }; }; then
   3193  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   3194  1.1  christos echo "${ECHO_T}yes" >&6
   3195  1.1  christos else
   3196  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   3197  1.1  christos echo "$as_me: failed program was:" >&5
   3198  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3199  1.1  christos 
   3200  1.1  christos ( exit $ac_status )
   3201  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   3202  1.1  christos echo "${ECHO_T}no" >&6
   3203  1.1  christos       { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
   3204  1.1  christos echo "$as_me: error: a working C++ compiler is required" >&2;}
   3205  1.1  christos    { (exit 1); exit 1; }; }
   3206  1.1  christos fi
   3207  1.1  christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3208  1.1  christos fi
   3209  1.1  christos 
   3210  1.1  christos    echo "$as_me:$LINENO: checking that header files support C++" >&5
   3211  1.1  christos echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
   3212  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   3213  1.1  christos 
   3214  1.1  christos        /* confdefs.h.  */
   3215  1.1  christos _ACEOF
   3216  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3217  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3218  1.1  christos /* end confdefs.h.  */
   3219  1.1  christos 
   3220  1.1  christos 
   3221  1.1  christos #include <stdio.h>
   3222  1.1  christos 
   3223  1.1  christos 
   3224  1.1  christos int
   3225  1.1  christos main ()
   3226  1.1  christos {
   3227  1.1  christos 
   3228  1.1  christos 
   3229  1.1  christos fopen(0, 0);
   3230  1.1  christos 
   3231  1.1  christos 
   3232  1.1  christos   ;
   3233  1.1  christos   return 0;
   3234  1.1  christos }
   3235  1.1  christos 
   3236  1.1  christos _ACEOF
   3237  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   3238  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3239  1.1  christos   (eval $ac_link) 2>conftest.er1
   3240  1.1  christos   ac_status=$?
   3241  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3242  1.1  christos   rm -f conftest.er1
   3243  1.1  christos   cat conftest.err >&5
   3244  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3245  1.1  christos   (exit $ac_status); } &&
   3246  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   3247  1.1  christos 			 || test ! -s conftest.err'
   3248  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3249  1.1  christos   (eval $ac_try) 2>&5
   3250  1.1  christos   ac_status=$?
   3251  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3252  1.1  christos   (exit $ac_status); }; } &&
   3253  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   3254  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3255  1.1  christos   (eval $ac_try) 2>&5
   3256  1.1  christos   ac_status=$?
   3257  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3258  1.1  christos   (exit $ac_status); }; }; then
   3259  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   3260  1.1  christos echo "${ECHO_T}yes" >&6
   3261  1.1  christos else
   3262  1.1  christos   echo "$as_me: failed program was:" >&5
   3263  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3264  1.1  christos 
   3265  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   3266  1.1  christos echo "${ECHO_T}no" >&6
   3267  1.1  christos       { { echo "$as_me:$LINENO: error: header files do not support C++
   3268  1.1  christos 		   (if you are using a version of gcc/g++ earlier than 2.5,
   3269  1.1  christos 		   you should install libg++)" >&5
   3270  1.1  christos echo "$as_me: error: header files do not support C++
   3271  1.1  christos 		   (if you are using a version of gcc/g++ earlier than 2.5,
   3272  1.1  christos 		   you should install libg++)" >&2;}
   3273  1.1  christos    { (exit 1); exit 1; }; }
   3274  1.1  christos fi
   3275  1.1  christos rm -f conftest.err conftest.$ac_objext \
   3276  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   3277  1.1  christos    ac_ext=c
   3278  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   3279  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3280  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3281  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3282  1.1  christos 
   3283  1.1  christos 
   3284  1.1  christos echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
   3285  1.1  christos echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
   3286  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   3287  1.1  christos 
   3288  1.1  christos        /* confdefs.h.  */
   3289  1.1  christos _ACEOF
   3290  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3291  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3292  1.1  christos /* end confdefs.h.  */
   3293  1.1  christos 
   3294  1.1  christos 
   3295  1.1  christos /* Treat any failure as ASCII for compatibility with existing art.
   3296  1.1  christos    Use compile-time rather than run-time tests for cross-compiler
   3297  1.1  christos    tolerance. */
   3298  1.1  christos #if '0' != 240
   3299  1.1  christos make an error "Character set is not EBCDIC"
   3300  1.1  christos #endif
   3301  1.1  christos 
   3302  1.1  christos 
   3303  1.1  christos int
   3304  1.1  christos main ()
   3305  1.1  christos {
   3306  1.1  christos 
   3307  1.1  christos   ;
   3308  1.1  christos   return 0;
   3309  1.1  christos }
   3310  1.1  christos 
   3311  1.1  christos _ACEOF
   3312  1.1  christos rm -f conftest.$ac_objext
   3313  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3314  1.1  christos   (eval $ac_compile) 2>conftest.er1
   3315  1.1  christos   ac_status=$?
   3316  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3317  1.1  christos   rm -f conftest.er1
   3318  1.1  christos   cat conftest.err >&5
   3319  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3320  1.1  christos   (exit $ac_status); } &&
   3321  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   3322  1.1  christos 			 || test ! -s conftest.err'
   3323  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3324  1.1  christos   (eval $ac_try) 2>&5
   3325  1.1  christos   ac_status=$?
   3326  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3327  1.1  christos   (exit $ac_status); }; } &&
   3328  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   3329  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3330  1.1  christos   (eval $ac_try) 2>&5
   3331  1.1  christos   ac_status=$?
   3332  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3333  1.1  christos   (exit $ac_status); }; }; then
   3334  1.1  christos   groff_cv_ebcdic="yes"
   3335  1.1  christos       TTYDEVDIRS="font/devcp1047"
   3336  1.1  christos       echo "$as_me:$LINENO: result: yes" >&5
   3337  1.1  christos echo "${ECHO_T}yes" >&6
   3338  1.1  christos 
   3339  1.1  christos cat >>confdefs.h <<\_ACEOF
   3340  1.1  christos #define IS_EBCDIC_HOST 1
   3341  1.1  christos _ACEOF
   3342  1.1  christos 
   3343  1.1  christos else
   3344  1.1  christos   echo "$as_me: failed program was:" >&5
   3345  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3346  1.1  christos 
   3347  1.1  christos groff_cv_ebcdic="no"
   3348  1.1  christos      TTYDEVDIRS="font/devascii font/devlatin1"
   3349  1.1  christos      OTHERDEVDIRS="font/devlj4 font/devlbp"
   3350  1.1  christos      echo "$as_me:$LINENO: result: no" >&5
   3351  1.1  christos echo "${ECHO_T}no" >&6
   3352  1.1  christos fi
   3353  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3354  1.1  christos 
   3355  1.1  christos 
   3356  1.1  christos if test "$groff_cv_ebcdic" = "yes"; then
   3357  1.1  christos      echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
   3358  1.1  christos echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
   3359  1.1  christos      case `uname` in
   3360  1.1  christos      OS/390)
   3361  1.1  christos        CFLAGS="$CFLAGS -D_ALL_SOURCE"
   3362  1.1  christos        echo "$as_me:$LINENO: result: yes" >&5
   3363  1.1  christos echo "${ECHO_T}yes" >&6 ;;
   3364  1.1  christos      *)
   3365  1.1  christos        echo "$as_me:$LINENO: result: no" >&5
   3366  1.1  christos echo "${ECHO_T}no" >&6 ;;
   3367  1.1  christos      esac
   3368  1.1  christos    fi
   3369  1.1  christos ac_ext=c
   3370  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   3371  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3372  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3373  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3374  1.1  christos echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   3375  1.1  christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
   3376  1.1  christos # On Suns, sometimes $CPP names a directory.
   3377  1.1  christos if test -n "$CPP" && test -d "$CPP"; then
   3378  1.1  christos   CPP=
   3379  1.1  christos fi
   3380  1.1  christos if test -z "$CPP"; then
   3381  1.1  christos   if test "${ac_cv_prog_CPP+set}" = set; then
   3382  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3383  1.1  christos else
   3384  1.1  christos       # Double quotes because CPP needs to be expanded
   3385  1.1  christos     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3386  1.1  christos     do
   3387  1.1  christos       ac_preproc_ok=false
   3388  1.1  christos for ac_c_preproc_warn_flag in '' yes
   3389  1.1  christos do
   3390  1.1  christos   # Use a header file that comes with gcc, so configuring glibc
   3391  1.1  christos   # with a fresh cross-compiler works.
   3392  1.1  christos   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3393  1.1  christos   # <limits.h> exists even on freestanding compilers.
   3394  1.1  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   3395  1.1  christos   # not just through cpp. "Syntax error" is here to catch this case.
   3396  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3397  1.1  christos /* confdefs.h.  */
   3398  1.1  christos _ACEOF
   3399  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3400  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3401  1.1  christos /* end confdefs.h.  */
   3402  1.1  christos #ifdef __STDC__
   3403  1.1  christos # include <limits.h>
   3404  1.1  christos #else
   3405  1.1  christos # include <assert.h>
   3406  1.1  christos #endif
   3407  1.1  christos 		     Syntax error
   3408  1.1  christos _ACEOF
   3409  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3410  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3411  1.1  christos   ac_status=$?
   3412  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3413  1.1  christos   rm -f conftest.er1
   3414  1.1  christos   cat conftest.err >&5
   3415  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3416  1.1  christos   (exit $ac_status); } >/dev/null; then
   3417  1.1  christos   if test -s conftest.err; then
   3418  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3419  1.1  christos     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3420  1.1  christos   else
   3421  1.1  christos     ac_cpp_err=
   3422  1.1  christos   fi
   3423  1.1  christos else
   3424  1.1  christos   ac_cpp_err=yes
   3425  1.1  christos fi
   3426  1.1  christos if test -z "$ac_cpp_err"; then
   3427  1.1  christos   :
   3428  1.1  christos else
   3429  1.1  christos   echo "$as_me: failed program was:" >&5
   3430  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3431  1.1  christos 
   3432  1.1  christos   # Broken: fails on valid input.
   3433  1.1  christos continue
   3434  1.1  christos fi
   3435  1.1  christos rm -f conftest.err conftest.$ac_ext
   3436  1.1  christos 
   3437  1.1  christos   # OK, works on sane cases.  Now check whether non-existent headers
   3438  1.1  christos   # can be detected and how.
   3439  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3440  1.1  christos /* confdefs.h.  */
   3441  1.1  christos _ACEOF
   3442  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3443  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3444  1.1  christos /* end confdefs.h.  */
   3445  1.1  christos #include <ac_nonexistent.h>
   3446  1.1  christos _ACEOF
   3447  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3448  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3449  1.1  christos   ac_status=$?
   3450  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3451  1.1  christos   rm -f conftest.er1
   3452  1.1  christos   cat conftest.err >&5
   3453  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3454  1.1  christos   (exit $ac_status); } >/dev/null; then
   3455  1.1  christos   if test -s conftest.err; then
   3456  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3457  1.1  christos     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3458  1.1  christos   else
   3459  1.1  christos     ac_cpp_err=
   3460  1.1  christos   fi
   3461  1.1  christos else
   3462  1.1  christos   ac_cpp_err=yes
   3463  1.1  christos fi
   3464  1.1  christos if test -z "$ac_cpp_err"; then
   3465  1.1  christos   # Broken: success on invalid input.
   3466  1.1  christos continue
   3467  1.1  christos else
   3468  1.1  christos   echo "$as_me: failed program was:" >&5
   3469  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3470  1.1  christos 
   3471  1.1  christos   # Passes both tests.
   3472  1.1  christos ac_preproc_ok=:
   3473  1.1  christos break
   3474  1.1  christos fi
   3475  1.1  christos rm -f conftest.err conftest.$ac_ext
   3476  1.1  christos 
   3477  1.1  christos done
   3478  1.1  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3479  1.1  christos rm -f conftest.err conftest.$ac_ext
   3480  1.1  christos if $ac_preproc_ok; then
   3481  1.1  christos   break
   3482  1.1  christos fi
   3483  1.1  christos 
   3484  1.1  christos     done
   3485  1.1  christos     ac_cv_prog_CPP=$CPP
   3486  1.1  christos 
   3487  1.1  christos fi
   3488  1.1  christos   CPP=$ac_cv_prog_CPP
   3489  1.1  christos else
   3490  1.1  christos   ac_cv_prog_CPP=$CPP
   3491  1.1  christos fi
   3492  1.1  christos echo "$as_me:$LINENO: result: $CPP" >&5
   3493  1.1  christos echo "${ECHO_T}$CPP" >&6
   3494  1.1  christos ac_preproc_ok=false
   3495  1.1  christos for ac_c_preproc_warn_flag in '' yes
   3496  1.1  christos do
   3497  1.1  christos   # Use a header file that comes with gcc, so configuring glibc
   3498  1.1  christos   # with a fresh cross-compiler works.
   3499  1.1  christos   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3500  1.1  christos   # <limits.h> exists even on freestanding compilers.
   3501  1.1  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   3502  1.1  christos   # not just through cpp. "Syntax error" is here to catch this case.
   3503  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3504  1.1  christos /* confdefs.h.  */
   3505  1.1  christos _ACEOF
   3506  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3507  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3508  1.1  christos /* end confdefs.h.  */
   3509  1.1  christos #ifdef __STDC__
   3510  1.1  christos # include <limits.h>
   3511  1.1  christos #else
   3512  1.1  christos # include <assert.h>
   3513  1.1  christos #endif
   3514  1.1  christos 		     Syntax error
   3515  1.1  christos _ACEOF
   3516  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3517  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3518  1.1  christos   ac_status=$?
   3519  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3520  1.1  christos   rm -f conftest.er1
   3521  1.1  christos   cat conftest.err >&5
   3522  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3523  1.1  christos   (exit $ac_status); } >/dev/null; then
   3524  1.1  christos   if test -s conftest.err; then
   3525  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3526  1.1  christos     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3527  1.1  christos   else
   3528  1.1  christos     ac_cpp_err=
   3529  1.1  christos   fi
   3530  1.1  christos else
   3531  1.1  christos   ac_cpp_err=yes
   3532  1.1  christos fi
   3533  1.1  christos if test -z "$ac_cpp_err"; then
   3534  1.1  christos   :
   3535  1.1  christos else
   3536  1.1  christos   echo "$as_me: failed program was:" >&5
   3537  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3538  1.1  christos 
   3539  1.1  christos   # Broken: fails on valid input.
   3540  1.1  christos continue
   3541  1.1  christos fi
   3542  1.1  christos rm -f conftest.err conftest.$ac_ext
   3543  1.1  christos 
   3544  1.1  christos   # OK, works on sane cases.  Now check whether non-existent headers
   3545  1.1  christos   # can be detected and how.
   3546  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3547  1.1  christos /* confdefs.h.  */
   3548  1.1  christos _ACEOF
   3549  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3550  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3551  1.1  christos /* end confdefs.h.  */
   3552  1.1  christos #include <ac_nonexistent.h>
   3553  1.1  christos _ACEOF
   3554  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3555  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3556  1.1  christos   ac_status=$?
   3557  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3558  1.1  christos   rm -f conftest.er1
   3559  1.1  christos   cat conftest.err >&5
   3560  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3561  1.1  christos   (exit $ac_status); } >/dev/null; then
   3562  1.1  christos   if test -s conftest.err; then
   3563  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3564  1.1  christos     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3565  1.1  christos   else
   3566  1.1  christos     ac_cpp_err=
   3567  1.1  christos   fi
   3568  1.1  christos else
   3569  1.1  christos   ac_cpp_err=yes
   3570  1.1  christos fi
   3571  1.1  christos if test -z "$ac_cpp_err"; then
   3572  1.1  christos   # Broken: success on invalid input.
   3573  1.1  christos continue
   3574  1.1  christos else
   3575  1.1  christos   echo "$as_me: failed program was:" >&5
   3576  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3577  1.1  christos 
   3578  1.1  christos   # Passes both tests.
   3579  1.1  christos ac_preproc_ok=:
   3580  1.1  christos break
   3581  1.1  christos fi
   3582  1.1  christos rm -f conftest.err conftest.$ac_ext
   3583  1.1  christos 
   3584  1.1  christos done
   3585  1.1  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3586  1.1  christos rm -f conftest.err conftest.$ac_ext
   3587  1.1  christos if $ac_preproc_ok; then
   3588  1.1  christos   :
   3589  1.1  christos else
   3590  1.1  christos   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   3591  1.1  christos See \`config.log' for more details." >&5
   3592  1.1  christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   3593  1.1  christos See \`config.log' for more details." >&2;}
   3594  1.1  christos    { (exit 1); exit 1; }; }
   3595  1.1  christos fi
   3596  1.1  christos 
   3597  1.1  christos ac_ext=c
   3598  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   3599  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3600  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3601  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3602  1.1  christos 
   3603  1.1  christos 
   3604  1.1  christos echo "$as_me:$LINENO: checking for X" >&5
   3605  1.1  christos echo $ECHO_N "checking for X... $ECHO_C" >&6
   3606  1.1  christos 
   3607  1.1  christos 
   3608  1.1  christos # Check whether --with-x or --without-x was given.
   3609  1.1  christos if test "${with_x+set}" = set; then
   3610  1.1  christos   withval="$with_x"
   3611  1.1  christos 
   3612  1.1  christos fi;
   3613  1.1  christos # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   3614  1.1  christos if test "x$with_x" = xno; then
   3615  1.1  christos   # The user explicitly disabled X.
   3616  1.1  christos   have_x=disabled
   3617  1.1  christos else
   3618  1.1  christos   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
   3619  1.1  christos     # Both variables are already set.
   3620  1.1  christos     have_x=yes
   3621  1.1  christos   else
   3622  1.1  christos     if test "${ac_cv_have_x+set}" = set; then
   3623  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3624  1.1  christos else
   3625  1.1  christos   # One or both of the vars are not set, and there is no cached value.
   3626  1.1  christos ac_x_includes=no ac_x_libraries=no
   3627  1.1  christos rm -f -r conftest.dir
   3628  1.1  christos if mkdir conftest.dir; then
   3629  1.1  christos   cd conftest.dir
   3630  1.1  christos   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
   3631  1.1  christos   cat >Imakefile <<'_ACEOF'
   3632  1.1  christos acfindx:
   3633  1.1  christos 	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
   3634  1.1  christos _ACEOF
   3635  1.1  christos   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
   3636  1.1  christos     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   3637  1.1  christos     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
   3638  1.1  christos     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   3639  1.1  christos     for ac_extension in a so sl; do
   3640  1.1  christos       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
   3641  1.1  christos 	 test -f $ac_im_libdir/libX11.$ac_extension; then
   3642  1.1  christos 	ac_im_usrlibdir=$ac_im_libdir; break
   3643  1.1  christos       fi
   3644  1.1  christos     done
   3645  1.1  christos     # Screen out bogus values from the imake configuration.  They are
   3646  1.1  christos     # bogus both because they are the default anyway, and because
   3647  1.1  christos     # using them would break gcc on systems where it needs fixed includes.
   3648  1.1  christos     case $ac_im_incroot in
   3649  1.1  christos 	/usr/include) ;;
   3650  1.1  christos 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   3651  1.1  christos     esac
   3652  1.1  christos     case $ac_im_usrlibdir in
   3653  1.1  christos 	/usr/lib | /lib) ;;
   3654  1.1  christos 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   3655  1.1  christos     esac
   3656  1.1  christos   fi
   3657  1.1  christos   cd ..
   3658  1.1  christos   rm -f -r conftest.dir
   3659  1.1  christos fi
   3660  1.1  christos 
   3661  1.1  christos # Standard set of common directories for X headers.
   3662  1.1  christos # Check X11 before X11Rn because it is often a symlink to the current release.
   3663  1.1  christos ac_x_header_dirs='
   3664  1.1  christos /usr/X11/include
   3665  1.1  christos /usr/X11R6/include
   3666  1.1  christos /usr/X11R5/include
   3667  1.1  christos /usr/X11R4/include
   3668  1.1  christos 
   3669  1.1  christos /usr/include/X11
   3670  1.1  christos /usr/include/X11R6
   3671  1.1  christos /usr/include/X11R5
   3672  1.1  christos /usr/include/X11R4
   3673  1.1  christos 
   3674  1.1  christos /usr/local/X11/include
   3675  1.1  christos /usr/local/X11R6/include
   3676  1.1  christos /usr/local/X11R5/include
   3677  1.1  christos /usr/local/X11R4/include
   3678  1.1  christos 
   3679  1.1  christos /usr/local/include/X11
   3680  1.1  christos /usr/local/include/X11R6
   3681  1.1  christos /usr/local/include/X11R5
   3682  1.1  christos /usr/local/include/X11R4
   3683  1.1  christos 
   3684  1.1  christos /usr/X386/include
   3685  1.1  christos /usr/x386/include
   3686  1.1  christos /usr/XFree86/include/X11
   3687  1.1  christos 
   3688  1.1  christos /usr/include
   3689  1.1  christos /usr/local/include
   3690  1.1  christos /usr/unsupported/include
   3691  1.1  christos /usr/athena/include
   3692  1.1  christos /usr/local/x11r5/include
   3693  1.1  christos /usr/lpp/Xamples/include
   3694  1.1  christos 
   3695  1.1  christos /usr/openwin/include
   3696  1.1  christos /usr/openwin/share/include'
   3697  1.1  christos 
   3698  1.1  christos if test "$ac_x_includes" = no; then
   3699  1.1  christos   # Guess where to find include files, by looking for Intrinsic.h.
   3700  1.1  christos   # First, try using that file with no special directory specified.
   3701  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3702  1.1  christos /* confdefs.h.  */
   3703  1.1  christos _ACEOF
   3704  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3705  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3706  1.1  christos /* end confdefs.h.  */
   3707  1.1  christos #include <X11/Intrinsic.h>
   3708  1.1  christos _ACEOF
   3709  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3710  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3711  1.1  christos   ac_status=$?
   3712  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3713  1.1  christos   rm -f conftest.er1
   3714  1.1  christos   cat conftest.err >&5
   3715  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3716  1.1  christos   (exit $ac_status); } >/dev/null; then
   3717  1.1  christos   if test -s conftest.err; then
   3718  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   3719  1.1  christos     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3720  1.1  christos   else
   3721  1.1  christos     ac_cpp_err=
   3722  1.1  christos   fi
   3723  1.1  christos else
   3724  1.1  christos   ac_cpp_err=yes
   3725  1.1  christos fi
   3726  1.1  christos if test -z "$ac_cpp_err"; then
   3727  1.1  christos   # We can compile using X headers with no special include directory.
   3728  1.1  christos ac_x_includes=
   3729  1.1  christos else
   3730  1.1  christos   echo "$as_me: failed program was:" >&5
   3731  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3732  1.1  christos 
   3733  1.1  christos   for ac_dir in $ac_x_header_dirs; do
   3734  1.1  christos   if test -r "$ac_dir/X11/Intrinsic.h"; then
   3735  1.1  christos     ac_x_includes=$ac_dir
   3736  1.1  christos     break
   3737  1.1  christos   fi
   3738  1.1  christos done
   3739  1.1  christos fi
   3740  1.1  christos rm -f conftest.err conftest.$ac_ext
   3741  1.1  christos fi # $ac_x_includes = no
   3742  1.1  christos 
   3743  1.1  christos if test "$ac_x_libraries" = no; then
   3744  1.1  christos   # Check for the libraries.
   3745  1.1  christos   # See if we find them without any special options.
   3746  1.1  christos   # Don't add to $LIBS permanently.
   3747  1.1  christos   ac_save_LIBS=$LIBS
   3748  1.1  christos   LIBS="-lXt $LIBS"
   3749  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   3750  1.1  christos /* confdefs.h.  */
   3751  1.1  christos _ACEOF
   3752  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3753  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3754  1.1  christos /* end confdefs.h.  */
   3755  1.1  christos #include <X11/Intrinsic.h>
   3756  1.1  christos int
   3757  1.1  christos main ()
   3758  1.1  christos {
   3759  1.1  christos XtMalloc (0)
   3760  1.1  christos   ;
   3761  1.1  christos   return 0;
   3762  1.1  christos }
   3763  1.1  christos _ACEOF
   3764  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   3765  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3766  1.1  christos   (eval $ac_link) 2>conftest.er1
   3767  1.1  christos   ac_status=$?
   3768  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3769  1.1  christos   rm -f conftest.er1
   3770  1.1  christos   cat conftest.err >&5
   3771  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3772  1.1  christos   (exit $ac_status); } &&
   3773  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   3774  1.1  christos 			 || test ! -s conftest.err'
   3775  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3776  1.1  christos   (eval $ac_try) 2>&5
   3777  1.1  christos   ac_status=$?
   3778  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3779  1.1  christos   (exit $ac_status); }; } &&
   3780  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   3781  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3782  1.1  christos   (eval $ac_try) 2>&5
   3783  1.1  christos   ac_status=$?
   3784  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3785  1.1  christos   (exit $ac_status); }; }; then
   3786  1.1  christos   LIBS=$ac_save_LIBS
   3787  1.1  christos # We can link X programs with no special library path.
   3788  1.1  christos ac_x_libraries=
   3789  1.1  christos else
   3790  1.1  christos   echo "$as_me: failed program was:" >&5
   3791  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3792  1.1  christos 
   3793  1.1  christos LIBS=$ac_save_LIBS
   3794  1.1  christos for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   3795  1.1  christos do
   3796  1.1  christos   # Don't even attempt the hair of trying to link an X program!
   3797  1.1  christos   for ac_extension in a so sl; do
   3798  1.1  christos     if test -r $ac_dir/libXt.$ac_extension; then
   3799  1.1  christos       ac_x_libraries=$ac_dir
   3800  1.1  christos       break 2
   3801  1.1  christos     fi
   3802  1.1  christos   done
   3803  1.1  christos done
   3804  1.1  christos fi
   3805  1.1  christos rm -f conftest.err conftest.$ac_objext \
   3806  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   3807  1.1  christos fi # $ac_x_libraries = no
   3808  1.1  christos 
   3809  1.1  christos if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
   3810  1.1  christos   # Didn't find X anywhere.  Cache the known absence of X.
   3811  1.1  christos   ac_cv_have_x="have_x=no"
   3812  1.1  christos else
   3813  1.1  christos   # Record where we found X for the cache.
   3814  1.1  christos   ac_cv_have_x="have_x=yes \
   3815  1.1  christos 		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
   3816  1.1  christos fi
   3817  1.1  christos fi
   3818  1.1  christos 
   3819  1.1  christos   fi
   3820  1.1  christos   eval "$ac_cv_have_x"
   3821  1.1  christos fi # $with_x != no
   3822  1.1  christos 
   3823  1.1  christos if test "$have_x" != yes; then
   3824  1.1  christos   echo "$as_me:$LINENO: result: $have_x" >&5
   3825  1.1  christos echo "${ECHO_T}$have_x" >&6
   3826  1.1  christos   no_x=yes
   3827  1.1  christos else
   3828  1.1  christos   # If each of the values was on the command line, it overrides each guess.
   3829  1.1  christos   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   3830  1.1  christos   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   3831  1.1  christos   # Update the cache value to reflect the command line values.
   3832  1.1  christos   ac_cv_have_x="have_x=yes \
   3833  1.1  christos 		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
   3834  1.1  christos   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
   3835  1.1  christos echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
   3836  1.1  christos fi
   3837  1.1  christos 
   3838  1.1  christos if test "$no_x" = yes; then
   3839  1.1  christos   # Not all programs may use this symbol, but it does not hurt to define it.
   3840  1.1  christos 
   3841  1.1  christos cat >>confdefs.h <<\_ACEOF
   3842  1.1  christos #define X_DISPLAY_MISSING 1
   3843  1.1  christos _ACEOF
   3844  1.1  christos 
   3845  1.1  christos   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
   3846  1.1  christos else
   3847  1.1  christos   if test -n "$x_includes"; then
   3848  1.1  christos     X_CFLAGS="$X_CFLAGS -I$x_includes"
   3849  1.1  christos   fi
   3850  1.1  christos 
   3851  1.1  christos   # It would also be nice to do this for all -L options, not just this one.
   3852  1.1  christos   if test -n "$x_libraries"; then
   3853  1.1  christos     X_LIBS="$X_LIBS -L$x_libraries"
   3854  1.1  christos     # For Solaris; some versions of Sun CC require a space after -R and
   3855  1.1  christos     # others require no space.  Words are not sufficient . . . .
   3856  1.1  christos     case `(uname -sr) 2>/dev/null` in
   3857  1.1  christos     "SunOS 5"*)
   3858  1.1  christos       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
   3859  1.1  christos echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
   3860  1.1  christos       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
   3861  1.1  christos       cat >conftest.$ac_ext <<_ACEOF
   3862  1.1  christos /* confdefs.h.  */
   3863  1.1  christos _ACEOF
   3864  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3865  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3866  1.1  christos /* end confdefs.h.  */
   3867  1.1  christos 
   3868  1.1  christos int
   3869  1.1  christos main ()
   3870  1.1  christos {
   3871  1.1  christos 
   3872  1.1  christos   ;
   3873  1.1  christos   return 0;
   3874  1.1  christos }
   3875  1.1  christos _ACEOF
   3876  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   3877  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3878  1.1  christos   (eval $ac_link) 2>conftest.er1
   3879  1.1  christos   ac_status=$?
   3880  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3881  1.1  christos   rm -f conftest.er1
   3882  1.1  christos   cat conftest.err >&5
   3883  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3884  1.1  christos   (exit $ac_status); } &&
   3885  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   3886  1.1  christos 			 || test ! -s conftest.err'
   3887  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3888  1.1  christos   (eval $ac_try) 2>&5
   3889  1.1  christos   ac_status=$?
   3890  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3891  1.1  christos   (exit $ac_status); }; } &&
   3892  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   3893  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3894  1.1  christos   (eval $ac_try) 2>&5
   3895  1.1  christos   ac_status=$?
   3896  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3897  1.1  christos   (exit $ac_status); }; }; then
   3898  1.1  christos   ac_R_nospace=yes
   3899  1.1  christos else
   3900  1.1  christos   echo "$as_me: failed program was:" >&5
   3901  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3902  1.1  christos 
   3903  1.1  christos ac_R_nospace=no
   3904  1.1  christos fi
   3905  1.1  christos rm -f conftest.err conftest.$ac_objext \
   3906  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   3907  1.1  christos       if test $ac_R_nospace = yes; then
   3908  1.1  christos 	echo "$as_me:$LINENO: result: no" >&5
   3909  1.1  christos echo "${ECHO_T}no" >&6
   3910  1.1  christos 	X_LIBS="$X_LIBS -R$x_libraries"
   3911  1.1  christos       else
   3912  1.1  christos 	LIBS="$ac_xsave_LIBS -R $x_libraries"
   3913  1.1  christos 	cat >conftest.$ac_ext <<_ACEOF
   3914  1.1  christos /* confdefs.h.  */
   3915  1.1  christos _ACEOF
   3916  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3917  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3918  1.1  christos /* end confdefs.h.  */
   3919  1.1  christos 
   3920  1.1  christos int
   3921  1.1  christos main ()
   3922  1.1  christos {
   3923  1.1  christos 
   3924  1.1  christos   ;
   3925  1.1  christos   return 0;
   3926  1.1  christos }
   3927  1.1  christos _ACEOF
   3928  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   3929  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3930  1.1  christos   (eval $ac_link) 2>conftest.er1
   3931  1.1  christos   ac_status=$?
   3932  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   3933  1.1  christos   rm -f conftest.er1
   3934  1.1  christos   cat conftest.err >&5
   3935  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3936  1.1  christos   (exit $ac_status); } &&
   3937  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   3938  1.1  christos 			 || test ! -s conftest.err'
   3939  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3940  1.1  christos   (eval $ac_try) 2>&5
   3941  1.1  christos   ac_status=$?
   3942  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3943  1.1  christos   (exit $ac_status); }; } &&
   3944  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   3945  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3946  1.1  christos   (eval $ac_try) 2>&5
   3947  1.1  christos   ac_status=$?
   3948  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3949  1.1  christos   (exit $ac_status); }; }; then
   3950  1.1  christos   ac_R_space=yes
   3951  1.1  christos else
   3952  1.1  christos   echo "$as_me: failed program was:" >&5
   3953  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   3954  1.1  christos 
   3955  1.1  christos ac_R_space=no
   3956  1.1  christos fi
   3957  1.1  christos rm -f conftest.err conftest.$ac_objext \
   3958  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   3959  1.1  christos 	if test $ac_R_space = yes; then
   3960  1.1  christos 	  echo "$as_me:$LINENO: result: yes" >&5
   3961  1.1  christos echo "${ECHO_T}yes" >&6
   3962  1.1  christos 	  X_LIBS="$X_LIBS -R $x_libraries"
   3963  1.1  christos 	else
   3964  1.1  christos 	  echo "$as_me:$LINENO: result: neither works" >&5
   3965  1.1  christos echo "${ECHO_T}neither works" >&6
   3966  1.1  christos 	fi
   3967  1.1  christos       fi
   3968  1.1  christos       LIBS=$ac_xsave_LIBS
   3969  1.1  christos     esac
   3970  1.1  christos   fi
   3971  1.1  christos 
   3972  1.1  christos   # Check for system-dependent libraries X programs must link with.
   3973  1.1  christos   # Do this before checking for the system-independent R6 libraries
   3974  1.1  christos   # (-lICE), since we may need -lsocket or whatever for X linking.
   3975  1.1  christos 
   3976  1.1  christos   if test "$ISC" = yes; then
   3977  1.1  christos     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
   3978  1.1  christos   else
   3979  1.1  christos     # Martyn Johnson says this is needed for Ultrix, if the X
   3980  1.1  christos     # libraries were built with DECnet support.  And Karl Berry says
   3981  1.1  christos     # the Alpha needs dnet_stub (dnet does not exist).
   3982  1.1  christos     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
   3983  1.1  christos     cat >conftest.$ac_ext <<_ACEOF
   3984  1.1  christos /* confdefs.h.  */
   3985  1.1  christos _ACEOF
   3986  1.1  christos cat confdefs.h >>conftest.$ac_ext
   3987  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   3988  1.1  christos /* end confdefs.h.  */
   3989  1.1  christos 
   3990  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   3991  1.1  christos #ifdef __cplusplus
   3992  1.1  christos extern "C"
   3993  1.1  christos #endif
   3994  1.1  christos /* We use char because int might match the return type of a gcc2
   3995  1.1  christos    builtin and then its argument prototype would still apply.  */
   3996  1.1  christos char XOpenDisplay ();
   3997  1.1  christos int
   3998  1.1  christos main ()
   3999  1.1  christos {
   4000  1.1  christos XOpenDisplay ();
   4001  1.1  christos   ;
   4002  1.1  christos   return 0;
   4003  1.1  christos }
   4004  1.1  christos _ACEOF
   4005  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4006  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4007  1.1  christos   (eval $ac_link) 2>conftest.er1
   4008  1.1  christos   ac_status=$?
   4009  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4010  1.1  christos   rm -f conftest.er1
   4011  1.1  christos   cat conftest.err >&5
   4012  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4013  1.1  christos   (exit $ac_status); } &&
   4014  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   4015  1.1  christos 			 || test ! -s conftest.err'
   4016  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4017  1.1  christos   (eval $ac_try) 2>&5
   4018  1.1  christos   ac_status=$?
   4019  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4020  1.1  christos   (exit $ac_status); }; } &&
   4021  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   4022  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4023  1.1  christos   (eval $ac_try) 2>&5
   4024  1.1  christos   ac_status=$?
   4025  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4026  1.1  christos   (exit $ac_status); }; }; then
   4027  1.1  christos   :
   4028  1.1  christos else
   4029  1.1  christos   echo "$as_me: failed program was:" >&5
   4030  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4031  1.1  christos 
   4032  1.1  christos echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
   4033  1.1  christos echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
   4034  1.1  christos if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
   4035  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4036  1.1  christos else
   4037  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   4038  1.1  christos LIBS="-ldnet  $LIBS"
   4039  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4040  1.1  christos /* confdefs.h.  */
   4041  1.1  christos _ACEOF
   4042  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4043  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4044  1.1  christos /* end confdefs.h.  */
   4045  1.1  christos 
   4046  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4047  1.1  christos #ifdef __cplusplus
   4048  1.1  christos extern "C"
   4049  1.1  christos #endif
   4050  1.1  christos /* We use char because int might match the return type of a gcc2
   4051  1.1  christos    builtin and then its argument prototype would still apply.  */
   4052  1.1  christos char dnet_ntoa ();
   4053  1.1  christos int
   4054  1.1  christos main ()
   4055  1.1  christos {
   4056  1.1  christos dnet_ntoa ();
   4057  1.1  christos   ;
   4058  1.1  christos   return 0;
   4059  1.1  christos }
   4060  1.1  christos _ACEOF
   4061  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4062  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4063  1.1  christos   (eval $ac_link) 2>conftest.er1
   4064  1.1  christos   ac_status=$?
   4065  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4066  1.1  christos   rm -f conftest.er1
   4067  1.1  christos   cat conftest.err >&5
   4068  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4069  1.1  christos   (exit $ac_status); } &&
   4070  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   4071  1.1  christos 			 || test ! -s conftest.err'
   4072  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4073  1.1  christos   (eval $ac_try) 2>&5
   4074  1.1  christos   ac_status=$?
   4075  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4076  1.1  christos   (exit $ac_status); }; } &&
   4077  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   4078  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4079  1.1  christos   (eval $ac_try) 2>&5
   4080  1.1  christos   ac_status=$?
   4081  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4082  1.1  christos   (exit $ac_status); }; }; then
   4083  1.1  christos   ac_cv_lib_dnet_dnet_ntoa=yes
   4084  1.1  christos else
   4085  1.1  christos   echo "$as_me: failed program was:" >&5
   4086  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4087  1.1  christos 
   4088  1.1  christos ac_cv_lib_dnet_dnet_ntoa=no
   4089  1.1  christos fi
   4090  1.1  christos rm -f conftest.err conftest.$ac_objext \
   4091  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4092  1.1  christos LIBS=$ac_check_lib_save_LIBS
   4093  1.1  christos fi
   4094  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
   4095  1.1  christos echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
   4096  1.1  christos if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
   4097  1.1  christos   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
   4098  1.1  christos fi
   4099  1.1  christos 
   4100  1.1  christos     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
   4101  1.1  christos       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
   4102  1.1  christos echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
   4103  1.1  christos if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
   4104  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4105  1.1  christos else
   4106  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   4107  1.1  christos LIBS="-ldnet_stub  $LIBS"
   4108  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4109  1.1  christos /* confdefs.h.  */
   4110  1.1  christos _ACEOF
   4111  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4112  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4113  1.1  christos /* end confdefs.h.  */
   4114  1.1  christos 
   4115  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4116  1.1  christos #ifdef __cplusplus
   4117  1.1  christos extern "C"
   4118  1.1  christos #endif
   4119  1.1  christos /* We use char because int might match the return type of a gcc2
   4120  1.1  christos    builtin and then its argument prototype would still apply.  */
   4121  1.1  christos char dnet_ntoa ();
   4122  1.1  christos int
   4123  1.1  christos main ()
   4124  1.1  christos {
   4125  1.1  christos dnet_ntoa ();
   4126  1.1  christos   ;
   4127  1.1  christos   return 0;
   4128  1.1  christos }
   4129  1.1  christos _ACEOF
   4130  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4131  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4132  1.1  christos   (eval $ac_link) 2>conftest.er1
   4133  1.1  christos   ac_status=$?
   4134  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4135  1.1  christos   rm -f conftest.er1
   4136  1.1  christos   cat conftest.err >&5
   4137  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4138  1.1  christos   (exit $ac_status); } &&
   4139  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   4140  1.1  christos 			 || test ! -s conftest.err'
   4141  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4142  1.1  christos   (eval $ac_try) 2>&5
   4143  1.1  christos   ac_status=$?
   4144  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4145  1.1  christos   (exit $ac_status); }; } &&
   4146  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   4147  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4148  1.1  christos   (eval $ac_try) 2>&5
   4149  1.1  christos   ac_status=$?
   4150  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4151  1.1  christos   (exit $ac_status); }; }; then
   4152  1.1  christos   ac_cv_lib_dnet_stub_dnet_ntoa=yes
   4153  1.1  christos else
   4154  1.1  christos   echo "$as_me: failed program was:" >&5
   4155  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4156  1.1  christos 
   4157  1.1  christos ac_cv_lib_dnet_stub_dnet_ntoa=no
   4158  1.1  christos fi
   4159  1.1  christos rm -f conftest.err conftest.$ac_objext \
   4160  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4161  1.1  christos LIBS=$ac_check_lib_save_LIBS
   4162  1.1  christos fi
   4163  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
   4164  1.1  christos echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
   4165  1.1  christos if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
   4166  1.1  christos   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
   4167  1.1  christos fi
   4168  1.1  christos 
   4169  1.1  christos     fi
   4170  1.1  christos fi
   4171  1.1  christos rm -f conftest.err conftest.$ac_objext \
   4172  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4173  1.1  christos     LIBS="$ac_xsave_LIBS"
   4174  1.1  christos 
   4175  1.1  christos     # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
   4176  1.1  christos     # to get the SysV transport functions.
   4177  1.1  christos     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
   4178  1.1  christos     # needs -lnsl.
   4179  1.1  christos     # The nsl library prevents programs from opening the X display
   4180  1.1  christos     # on Irix 5.2, according to T.E. Dickey.
   4181  1.1  christos     # The functions gethostbyname, getservbyname, and inet_addr are
   4182  1.1  christos     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
   4183  1.1  christos     echo "$as_me:$LINENO: checking for gethostbyname" >&5
   4184  1.1  christos echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
   4185  1.1  christos if test "${ac_cv_func_gethostbyname+set}" = set; then
   4186  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4187  1.1  christos else
   4188  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4189  1.1  christos /* confdefs.h.  */
   4190  1.1  christos _ACEOF
   4191  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4192  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4193  1.1  christos /* end confdefs.h.  */
   4194  1.1  christos /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
   4195  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   4196  1.1  christos #define gethostbyname innocuous_gethostbyname
   4197  1.1  christos 
   4198  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   4199  1.1  christos     which can conflict with char gethostbyname (); below.
   4200  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4201  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   4202  1.1  christos 
   4203  1.1  christos #ifdef __STDC__
   4204  1.1  christos # include <limits.h>
   4205  1.1  christos #else
   4206  1.1  christos # include <assert.h>
   4207  1.1  christos #endif
   4208  1.1  christos 
   4209  1.1  christos #undef gethostbyname
   4210  1.1  christos 
   4211  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4212  1.1  christos #ifdef __cplusplus
   4213  1.1  christos extern "C"
   4214  1.1  christos {
   4215  1.1  christos #endif
   4216  1.1  christos /* We use char because int might match the return type of a gcc2
   4217  1.1  christos    builtin and then its argument prototype would still apply.  */
   4218  1.1  christos char gethostbyname ();
   4219  1.1  christos /* The GNU C library defines this for functions which it implements
   4220  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   4221  1.1  christos     something starting with __ and the normal name is an alias.  */
   4222  1.1  christos #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
   4223  1.1  christos choke me
   4224  1.1  christos #else
   4225  1.1  christos char (*f) () = gethostbyname;
   4226  1.1  christos #endif
   4227  1.1  christos #ifdef __cplusplus
   4228  1.1  christos }
   4229  1.1  christos #endif
   4230  1.1  christos 
   4231  1.1  christos int
   4232  1.1  christos main ()
   4233  1.1  christos {
   4234  1.1  christos return f != gethostbyname;
   4235  1.1  christos   ;
   4236  1.1  christos   return 0;
   4237  1.1  christos }
   4238  1.1  christos _ACEOF
   4239  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4240  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4241  1.1  christos   (eval $ac_link) 2>conftest.er1
   4242  1.1  christos   ac_status=$?
   4243  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4244  1.1  christos   rm -f conftest.er1
   4245  1.1  christos   cat conftest.err >&5
   4246  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4247  1.1  christos   (exit $ac_status); } &&
   4248  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   4249  1.1  christos 			 || test ! -s conftest.err'
   4250  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4251  1.1  christos   (eval $ac_try) 2>&5
   4252  1.1  christos   ac_status=$?
   4253  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4254  1.1  christos   (exit $ac_status); }; } &&
   4255  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   4256  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4257  1.1  christos   (eval $ac_try) 2>&5
   4258  1.1  christos   ac_status=$?
   4259  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4260  1.1  christos   (exit $ac_status); }; }; then
   4261  1.1  christos   ac_cv_func_gethostbyname=yes
   4262  1.1  christos else
   4263  1.1  christos   echo "$as_me: failed program was:" >&5
   4264  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4265  1.1  christos 
   4266  1.1  christos ac_cv_func_gethostbyname=no
   4267  1.1  christos fi
   4268  1.1  christos rm -f conftest.err conftest.$ac_objext \
   4269  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4270  1.1  christos fi
   4271  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
   4272  1.1  christos echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
   4273  1.1  christos 
   4274  1.1  christos     if test $ac_cv_func_gethostbyname = no; then
   4275  1.1  christos       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
   4276  1.1  christos echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
   4277  1.1  christos if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
   4278  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4279  1.1  christos else
   4280  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   4281  1.1  christos LIBS="-lnsl  $LIBS"
   4282  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4283  1.1  christos /* confdefs.h.  */
   4284  1.1  christos _ACEOF
   4285  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4286  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4287  1.1  christos /* end confdefs.h.  */
   4288  1.1  christos 
   4289  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4290  1.1  christos #ifdef __cplusplus
   4291  1.1  christos extern "C"
   4292  1.1  christos #endif
   4293  1.1  christos /* We use char because int might match the return type of a gcc2
   4294  1.1  christos    builtin and then its argument prototype would still apply.  */
   4295  1.1  christos char gethostbyname ();
   4296  1.1  christos int
   4297  1.1  christos main ()
   4298  1.1  christos {
   4299  1.1  christos gethostbyname ();
   4300  1.1  christos   ;
   4301  1.1  christos   return 0;
   4302  1.1  christos }
   4303  1.1  christos _ACEOF
   4304  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4305  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4306  1.1  christos   (eval $ac_link) 2>conftest.er1
   4307  1.1  christos   ac_status=$?
   4308  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4309  1.1  christos   rm -f conftest.er1
   4310  1.1  christos   cat conftest.err >&5
   4311  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4312  1.1  christos   (exit $ac_status); } &&
   4313  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   4314  1.1  christos 			 || test ! -s conftest.err'
   4315  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4316  1.1  christos   (eval $ac_try) 2>&5
   4317  1.1  christos   ac_status=$?
   4318  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4319  1.1  christos   (exit $ac_status); }; } &&
   4320  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   4321  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4322  1.1  christos   (eval $ac_try) 2>&5
   4323  1.1  christos   ac_status=$?
   4324  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4325  1.1  christos   (exit $ac_status); }; }; then
   4326  1.1  christos   ac_cv_lib_nsl_gethostbyname=yes
   4327  1.1  christos else
   4328  1.1  christos   echo "$as_me: failed program was:" >&5
   4329  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4330  1.1  christos 
   4331  1.1  christos ac_cv_lib_nsl_gethostbyname=no
   4332  1.1  christos fi
   4333  1.1  christos rm -f conftest.err conftest.$ac_objext \
   4334  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4335  1.1  christos LIBS=$ac_check_lib_save_LIBS
   4336  1.1  christos fi
   4337  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
   4338  1.1  christos echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
   4339  1.1  christos if test $ac_cv_lib_nsl_gethostbyname = yes; then
   4340  1.1  christos   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
   4341  1.1  christos fi
   4342  1.1  christos 
   4343  1.1  christos       if test $ac_cv_lib_nsl_gethostbyname = no; then
   4344  1.1  christos 	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
   4345  1.1  christos echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
   4346  1.1  christos if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
   4347  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4348  1.1  christos else
   4349  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   4350  1.1  christos LIBS="-lbsd  $LIBS"
   4351  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4352  1.1  christos /* confdefs.h.  */
   4353  1.1  christos _ACEOF
   4354  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4355  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4356  1.1  christos /* end confdefs.h.  */
   4357  1.1  christos 
   4358  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4359  1.1  christos #ifdef __cplusplus
   4360  1.1  christos extern "C"
   4361  1.1  christos #endif
   4362  1.1  christos /* We use char because int might match the return type of a gcc2
   4363  1.1  christos    builtin and then its argument prototype would still apply.  */
   4364  1.1  christos char gethostbyname ();
   4365  1.1  christos int
   4366  1.1  christos main ()
   4367  1.1  christos {
   4368  1.1  christos gethostbyname ();
   4369  1.1  christos   ;
   4370  1.1  christos   return 0;
   4371  1.1  christos }
   4372  1.1  christos _ACEOF
   4373  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4374  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4375  1.1  christos   (eval $ac_link) 2>conftest.er1
   4376  1.1  christos   ac_status=$?
   4377  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4378  1.1  christos   rm -f conftest.er1
   4379  1.1  christos   cat conftest.err >&5
   4380  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4381  1.1  christos   (exit $ac_status); } &&
   4382  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   4383  1.1  christos 			 || test ! -s conftest.err'
   4384  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4385  1.1  christos   (eval $ac_try) 2>&5
   4386  1.1  christos   ac_status=$?
   4387  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4388  1.1  christos   (exit $ac_status); }; } &&
   4389  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   4390  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4391  1.1  christos   (eval $ac_try) 2>&5
   4392  1.1  christos   ac_status=$?
   4393  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4394  1.1  christos   (exit $ac_status); }; }; then
   4395  1.1  christos   ac_cv_lib_bsd_gethostbyname=yes
   4396  1.1  christos else
   4397  1.1  christos   echo "$as_me: failed program was:" >&5
   4398  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4399  1.1  christos 
   4400  1.1  christos ac_cv_lib_bsd_gethostbyname=no
   4401  1.1  christos fi
   4402  1.1  christos rm -f conftest.err conftest.$ac_objext \
   4403  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4404  1.1  christos LIBS=$ac_check_lib_save_LIBS
   4405  1.1  christos fi
   4406  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
   4407  1.1  christos echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
   4408  1.1  christos if test $ac_cv_lib_bsd_gethostbyname = yes; then
   4409  1.1  christos   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
   4410  1.1  christos fi
   4411  1.1  christos 
   4412  1.1  christos       fi
   4413  1.1  christos     fi
   4414  1.1  christos 
   4415  1.1  christos     # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
   4416  1.1  christos     # socket/setsockopt and other routines are undefined under SCO ODT
   4417  1.1  christos     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
   4418  1.1  christos     # on later versions), says Simon Leinen: it contains gethostby*
   4419  1.1  christos     # variants that don't use the name server (or something).  -lsocket
   4420  1.1  christos     # must be given before -lnsl if both are needed.  We assume that
   4421  1.1  christos     # if connect needs -lnsl, so does gethostbyname.
   4422  1.1  christos     echo "$as_me:$LINENO: checking for connect" >&5
   4423  1.1  christos echo $ECHO_N "checking for connect... $ECHO_C" >&6
   4424  1.1  christos if test "${ac_cv_func_connect+set}" = set; then
   4425  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4426  1.1  christos else
   4427  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4428  1.1  christos /* confdefs.h.  */
   4429  1.1  christos _ACEOF
   4430  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4431  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4432  1.1  christos /* end confdefs.h.  */
   4433  1.1  christos /* Define connect to an innocuous variant, in case <limits.h> declares connect.
   4434  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   4435  1.1  christos #define connect innocuous_connect
   4436  1.1  christos 
   4437  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   4438  1.1  christos     which can conflict with char connect (); below.
   4439  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4440  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   4441  1.1  christos 
   4442  1.1  christos #ifdef __STDC__
   4443  1.1  christos # include <limits.h>
   4444  1.1  christos #else
   4445  1.1  christos # include <assert.h>
   4446  1.1  christos #endif
   4447  1.1  christos 
   4448  1.1  christos #undef connect
   4449  1.1  christos 
   4450  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4451  1.1  christos #ifdef __cplusplus
   4452  1.1  christos extern "C"
   4453  1.1  christos {
   4454  1.1  christos #endif
   4455  1.1  christos /* We use char because int might match the return type of a gcc2
   4456  1.1  christos    builtin and then its argument prototype would still apply.  */
   4457  1.1  christos char connect ();
   4458  1.1  christos /* The GNU C library defines this for functions which it implements
   4459  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   4460  1.1  christos     something starting with __ and the normal name is an alias.  */
   4461  1.1  christos #if defined (__stub_connect) || defined (__stub___connect)
   4462  1.1  christos choke me
   4463  1.1  christos #else
   4464  1.1  christos char (*f) () = connect;
   4465  1.1  christos #endif
   4466  1.1  christos #ifdef __cplusplus
   4467  1.1  christos }
   4468  1.1  christos #endif
   4469  1.1  christos 
   4470  1.1  christos int
   4471  1.1  christos main ()
   4472  1.1  christos {
   4473  1.1  christos return f != connect;
   4474  1.1  christos   ;
   4475  1.1  christos   return 0;
   4476  1.1  christos }
   4477  1.1  christos _ACEOF
   4478  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4479  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4480  1.1  christos   (eval $ac_link) 2>conftest.er1
   4481  1.1  christos   ac_status=$?
   4482  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4483  1.1  christos   rm -f conftest.er1
   4484  1.1  christos   cat conftest.err >&5
   4485  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4486  1.1  christos   (exit $ac_status); } &&
   4487  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   4488  1.1  christos 			 || test ! -s conftest.err'
   4489  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4490  1.1  christos   (eval $ac_try) 2>&5
   4491  1.1  christos   ac_status=$?
   4492  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4493  1.1  christos   (exit $ac_status); }; } &&
   4494  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   4495  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4496  1.1  christos   (eval $ac_try) 2>&5
   4497  1.1  christos   ac_status=$?
   4498  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4499  1.1  christos   (exit $ac_status); }; }; then
   4500  1.1  christos   ac_cv_func_connect=yes
   4501  1.1  christos else
   4502  1.1  christos   echo "$as_me: failed program was:" >&5
   4503  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4504  1.1  christos 
   4505  1.1  christos ac_cv_func_connect=no
   4506  1.1  christos fi
   4507  1.1  christos rm -f conftest.err conftest.$ac_objext \
   4508  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4509  1.1  christos fi
   4510  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
   4511  1.1  christos echo "${ECHO_T}$ac_cv_func_connect" >&6
   4512  1.1  christos 
   4513  1.1  christos     if test $ac_cv_func_connect = no; then
   4514  1.1  christos       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
   4515  1.1  christos echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
   4516  1.1  christos if test "${ac_cv_lib_socket_connect+set}" = set; then
   4517  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4518  1.1  christos else
   4519  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   4520  1.1  christos LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
   4521  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4522  1.1  christos /* confdefs.h.  */
   4523  1.1  christos _ACEOF
   4524  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4525  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4526  1.1  christos /* end confdefs.h.  */
   4527  1.1  christos 
   4528  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4529  1.1  christos #ifdef __cplusplus
   4530  1.1  christos extern "C"
   4531  1.1  christos #endif
   4532  1.1  christos /* We use char because int might match the return type of a gcc2
   4533  1.1  christos    builtin and then its argument prototype would still apply.  */
   4534  1.1  christos char connect ();
   4535  1.1  christos int
   4536  1.1  christos main ()
   4537  1.1  christos {
   4538  1.1  christos connect ();
   4539  1.1  christos   ;
   4540  1.1  christos   return 0;
   4541  1.1  christos }
   4542  1.1  christos _ACEOF
   4543  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4544  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4545  1.1  christos   (eval $ac_link) 2>conftest.er1
   4546  1.1  christos   ac_status=$?
   4547  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4548  1.1  christos   rm -f conftest.er1
   4549  1.1  christos   cat conftest.err >&5
   4550  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4551  1.1  christos   (exit $ac_status); } &&
   4552  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   4553  1.1  christos 			 || test ! -s conftest.err'
   4554  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4555  1.1  christos   (eval $ac_try) 2>&5
   4556  1.1  christos   ac_status=$?
   4557  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4558  1.1  christos   (exit $ac_status); }; } &&
   4559  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   4560  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4561  1.1  christos   (eval $ac_try) 2>&5
   4562  1.1  christos   ac_status=$?
   4563  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4564  1.1  christos   (exit $ac_status); }; }; then
   4565  1.1  christos   ac_cv_lib_socket_connect=yes
   4566  1.1  christos else
   4567  1.1  christos   echo "$as_me: failed program was:" >&5
   4568  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4569  1.1  christos 
   4570  1.1  christos ac_cv_lib_socket_connect=no
   4571  1.1  christos fi
   4572  1.1  christos rm -f conftest.err conftest.$ac_objext \
   4573  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4574  1.1  christos LIBS=$ac_check_lib_save_LIBS
   4575  1.1  christos fi
   4576  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
   4577  1.1  christos echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
   4578  1.1  christos if test $ac_cv_lib_socket_connect = yes; then
   4579  1.1  christos   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
   4580  1.1  christos fi
   4581  1.1  christos 
   4582  1.1  christos     fi
   4583  1.1  christos 
   4584  1.1  christos     # Guillermo Gomez says -lposix is necessary on A/UX.
   4585  1.1  christos     echo "$as_me:$LINENO: checking for remove" >&5
   4586  1.1  christos echo $ECHO_N "checking for remove... $ECHO_C" >&6
   4587  1.1  christos if test "${ac_cv_func_remove+set}" = set; then
   4588  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4589  1.1  christos else
   4590  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4591  1.1  christos /* confdefs.h.  */
   4592  1.1  christos _ACEOF
   4593  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4594  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4595  1.1  christos /* end confdefs.h.  */
   4596  1.1  christos /* Define remove to an innocuous variant, in case <limits.h> declares remove.
   4597  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   4598  1.1  christos #define remove innocuous_remove
   4599  1.1  christos 
   4600  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   4601  1.1  christos     which can conflict with char remove (); below.
   4602  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4603  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   4604  1.1  christos 
   4605  1.1  christos #ifdef __STDC__
   4606  1.1  christos # include <limits.h>
   4607  1.1  christos #else
   4608  1.1  christos # include <assert.h>
   4609  1.1  christos #endif
   4610  1.1  christos 
   4611  1.1  christos #undef remove
   4612  1.1  christos 
   4613  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4614  1.1  christos #ifdef __cplusplus
   4615  1.1  christos extern "C"
   4616  1.1  christos {
   4617  1.1  christos #endif
   4618  1.1  christos /* We use char because int might match the return type of a gcc2
   4619  1.1  christos    builtin and then its argument prototype would still apply.  */
   4620  1.1  christos char remove ();
   4621  1.1  christos /* The GNU C library defines this for functions which it implements
   4622  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   4623  1.1  christos     something starting with __ and the normal name is an alias.  */
   4624  1.1  christos #if defined (__stub_remove) || defined (__stub___remove)
   4625  1.1  christos choke me
   4626  1.1  christos #else
   4627  1.1  christos char (*f) () = remove;
   4628  1.1  christos #endif
   4629  1.1  christos #ifdef __cplusplus
   4630  1.1  christos }
   4631  1.1  christos #endif
   4632  1.1  christos 
   4633  1.1  christos int
   4634  1.1  christos main ()
   4635  1.1  christos {
   4636  1.1  christos return f != remove;
   4637  1.1  christos   ;
   4638  1.1  christos   return 0;
   4639  1.1  christos }
   4640  1.1  christos _ACEOF
   4641  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4642  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4643  1.1  christos   (eval $ac_link) 2>conftest.er1
   4644  1.1  christos   ac_status=$?
   4645  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4646  1.1  christos   rm -f conftest.er1
   4647  1.1  christos   cat conftest.err >&5
   4648  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4649  1.1  christos   (exit $ac_status); } &&
   4650  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   4651  1.1  christos 			 || test ! -s conftest.err'
   4652  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4653  1.1  christos   (eval $ac_try) 2>&5
   4654  1.1  christos   ac_status=$?
   4655  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4656  1.1  christos   (exit $ac_status); }; } &&
   4657  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   4658  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4659  1.1  christos   (eval $ac_try) 2>&5
   4660  1.1  christos   ac_status=$?
   4661  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4662  1.1  christos   (exit $ac_status); }; }; then
   4663  1.1  christos   ac_cv_func_remove=yes
   4664  1.1  christos else
   4665  1.1  christos   echo "$as_me: failed program was:" >&5
   4666  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4667  1.1  christos 
   4668  1.1  christos ac_cv_func_remove=no
   4669  1.1  christos fi
   4670  1.1  christos rm -f conftest.err conftest.$ac_objext \
   4671  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4672  1.1  christos fi
   4673  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
   4674  1.1  christos echo "${ECHO_T}$ac_cv_func_remove" >&6
   4675  1.1  christos 
   4676  1.1  christos     if test $ac_cv_func_remove = no; then
   4677  1.1  christos       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
   4678  1.1  christos echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
   4679  1.1  christos if test "${ac_cv_lib_posix_remove+set}" = set; then
   4680  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4681  1.1  christos else
   4682  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   4683  1.1  christos LIBS="-lposix  $LIBS"
   4684  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4685  1.1  christos /* confdefs.h.  */
   4686  1.1  christos _ACEOF
   4687  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4688  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4689  1.1  christos /* end confdefs.h.  */
   4690  1.1  christos 
   4691  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4692  1.1  christos #ifdef __cplusplus
   4693  1.1  christos extern "C"
   4694  1.1  christos #endif
   4695  1.1  christos /* We use char because int might match the return type of a gcc2
   4696  1.1  christos    builtin and then its argument prototype would still apply.  */
   4697  1.1  christos char remove ();
   4698  1.1  christos int
   4699  1.1  christos main ()
   4700  1.1  christos {
   4701  1.1  christos remove ();
   4702  1.1  christos   ;
   4703  1.1  christos   return 0;
   4704  1.1  christos }
   4705  1.1  christos _ACEOF
   4706  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4707  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4708  1.1  christos   (eval $ac_link) 2>conftest.er1
   4709  1.1  christos   ac_status=$?
   4710  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4711  1.1  christos   rm -f conftest.er1
   4712  1.1  christos   cat conftest.err >&5
   4713  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4714  1.1  christos   (exit $ac_status); } &&
   4715  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   4716  1.1  christos 			 || test ! -s conftest.err'
   4717  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4718  1.1  christos   (eval $ac_try) 2>&5
   4719  1.1  christos   ac_status=$?
   4720  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4721  1.1  christos   (exit $ac_status); }; } &&
   4722  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   4723  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4724  1.1  christos   (eval $ac_try) 2>&5
   4725  1.1  christos   ac_status=$?
   4726  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4727  1.1  christos   (exit $ac_status); }; }; then
   4728  1.1  christos   ac_cv_lib_posix_remove=yes
   4729  1.1  christos else
   4730  1.1  christos   echo "$as_me: failed program was:" >&5
   4731  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4732  1.1  christos 
   4733  1.1  christos ac_cv_lib_posix_remove=no
   4734  1.1  christos fi
   4735  1.1  christos rm -f conftest.err conftest.$ac_objext \
   4736  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4737  1.1  christos LIBS=$ac_check_lib_save_LIBS
   4738  1.1  christos fi
   4739  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
   4740  1.1  christos echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
   4741  1.1  christos if test $ac_cv_lib_posix_remove = yes; then
   4742  1.1  christos   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
   4743  1.1  christos fi
   4744  1.1  christos 
   4745  1.1  christos     fi
   4746  1.1  christos 
   4747  1.1  christos     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
   4748  1.1  christos     echo "$as_me:$LINENO: checking for shmat" >&5
   4749  1.1  christos echo $ECHO_N "checking for shmat... $ECHO_C" >&6
   4750  1.1  christos if test "${ac_cv_func_shmat+set}" = set; then
   4751  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4752  1.1  christos else
   4753  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   4754  1.1  christos /* confdefs.h.  */
   4755  1.1  christos _ACEOF
   4756  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4757  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4758  1.1  christos /* end confdefs.h.  */
   4759  1.1  christos /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
   4760  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   4761  1.1  christos #define shmat innocuous_shmat
   4762  1.1  christos 
   4763  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   4764  1.1  christos     which can conflict with char shmat (); below.
   4765  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4766  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   4767  1.1  christos 
   4768  1.1  christos #ifdef __STDC__
   4769  1.1  christos # include <limits.h>
   4770  1.1  christos #else
   4771  1.1  christos # include <assert.h>
   4772  1.1  christos #endif
   4773  1.1  christos 
   4774  1.1  christos #undef shmat
   4775  1.1  christos 
   4776  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4777  1.1  christos #ifdef __cplusplus
   4778  1.1  christos extern "C"
   4779  1.1  christos {
   4780  1.1  christos #endif
   4781  1.1  christos /* We use char because int might match the return type of a gcc2
   4782  1.1  christos    builtin and then its argument prototype would still apply.  */
   4783  1.1  christos char shmat ();
   4784  1.1  christos /* The GNU C library defines this for functions which it implements
   4785  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   4786  1.1  christos     something starting with __ and the normal name is an alias.  */
   4787  1.1  christos #if defined (__stub_shmat) || defined (__stub___shmat)
   4788  1.1  christos choke me
   4789  1.1  christos #else
   4790  1.1  christos char (*f) () = shmat;
   4791  1.1  christos #endif
   4792  1.1  christos #ifdef __cplusplus
   4793  1.1  christos }
   4794  1.1  christos #endif
   4795  1.1  christos 
   4796  1.1  christos int
   4797  1.1  christos main ()
   4798  1.1  christos {
   4799  1.1  christos return f != shmat;
   4800  1.1  christos   ;
   4801  1.1  christos   return 0;
   4802  1.1  christos }
   4803  1.1  christos _ACEOF
   4804  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4805  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4806  1.1  christos   (eval $ac_link) 2>conftest.er1
   4807  1.1  christos   ac_status=$?
   4808  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4809  1.1  christos   rm -f conftest.er1
   4810  1.1  christos   cat conftest.err >&5
   4811  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4812  1.1  christos   (exit $ac_status); } &&
   4813  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   4814  1.1  christos 			 || test ! -s conftest.err'
   4815  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4816  1.1  christos   (eval $ac_try) 2>&5
   4817  1.1  christos   ac_status=$?
   4818  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4819  1.1  christos   (exit $ac_status); }; } &&
   4820  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   4821  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4822  1.1  christos   (eval $ac_try) 2>&5
   4823  1.1  christos   ac_status=$?
   4824  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4825  1.1  christos   (exit $ac_status); }; }; then
   4826  1.1  christos   ac_cv_func_shmat=yes
   4827  1.1  christos else
   4828  1.1  christos   echo "$as_me: failed program was:" >&5
   4829  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4830  1.1  christos 
   4831  1.1  christos ac_cv_func_shmat=no
   4832  1.1  christos fi
   4833  1.1  christos rm -f conftest.err conftest.$ac_objext \
   4834  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4835  1.1  christos fi
   4836  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
   4837  1.1  christos echo "${ECHO_T}$ac_cv_func_shmat" >&6
   4838  1.1  christos 
   4839  1.1  christos     if test $ac_cv_func_shmat = no; then
   4840  1.1  christos       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
   4841  1.1  christos echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
   4842  1.1  christos if test "${ac_cv_lib_ipc_shmat+set}" = set; then
   4843  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4844  1.1  christos else
   4845  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   4846  1.1  christos LIBS="-lipc  $LIBS"
   4847  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4848  1.1  christos /* confdefs.h.  */
   4849  1.1  christos _ACEOF
   4850  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4851  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4852  1.1  christos /* end confdefs.h.  */
   4853  1.1  christos 
   4854  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4855  1.1  christos #ifdef __cplusplus
   4856  1.1  christos extern "C"
   4857  1.1  christos #endif
   4858  1.1  christos /* We use char because int might match the return type of a gcc2
   4859  1.1  christos    builtin and then its argument prototype would still apply.  */
   4860  1.1  christos char shmat ();
   4861  1.1  christos int
   4862  1.1  christos main ()
   4863  1.1  christos {
   4864  1.1  christos shmat ();
   4865  1.1  christos   ;
   4866  1.1  christos   return 0;
   4867  1.1  christos }
   4868  1.1  christos _ACEOF
   4869  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4870  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4871  1.1  christos   (eval $ac_link) 2>conftest.er1
   4872  1.1  christos   ac_status=$?
   4873  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4874  1.1  christos   rm -f conftest.er1
   4875  1.1  christos   cat conftest.err >&5
   4876  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4877  1.1  christos   (exit $ac_status); } &&
   4878  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   4879  1.1  christos 			 || test ! -s conftest.err'
   4880  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4881  1.1  christos   (eval $ac_try) 2>&5
   4882  1.1  christos   ac_status=$?
   4883  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4884  1.1  christos   (exit $ac_status); }; } &&
   4885  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   4886  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4887  1.1  christos   (eval $ac_try) 2>&5
   4888  1.1  christos   ac_status=$?
   4889  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4890  1.1  christos   (exit $ac_status); }; }; then
   4891  1.1  christos   ac_cv_lib_ipc_shmat=yes
   4892  1.1  christos else
   4893  1.1  christos   echo "$as_me: failed program was:" >&5
   4894  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4895  1.1  christos 
   4896  1.1  christos ac_cv_lib_ipc_shmat=no
   4897  1.1  christos fi
   4898  1.1  christos rm -f conftest.err conftest.$ac_objext \
   4899  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4900  1.1  christos LIBS=$ac_check_lib_save_LIBS
   4901  1.1  christos fi
   4902  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
   4903  1.1  christos echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
   4904  1.1  christos if test $ac_cv_lib_ipc_shmat = yes; then
   4905  1.1  christos   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
   4906  1.1  christos fi
   4907  1.1  christos 
   4908  1.1  christos     fi
   4909  1.1  christos   fi
   4910  1.1  christos 
   4911  1.1  christos   # Check for libraries that X11R6 Xt/Xaw programs need.
   4912  1.1  christos   ac_save_LDFLAGS=$LDFLAGS
   4913  1.1  christos   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
   4914  1.1  christos   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
   4915  1.1  christos   # check for ICE first), but we must link in the order -lSM -lICE or
   4916  1.1  christos   # we get undefined symbols.  So assume we have SM if we have ICE.
   4917  1.1  christos   # These have to be linked with before -lX11, unlike the other
   4918  1.1  christos   # libraries we check for below, so use a different variable.
   4919  1.1  christos   # John Interrante, Karl Berry
   4920  1.1  christos   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
   4921  1.1  christos echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
   4922  1.1  christos if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
   4923  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4924  1.1  christos else
   4925  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   4926  1.1  christos LIBS="-lICE $X_EXTRA_LIBS $LIBS"
   4927  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   4928  1.1  christos /* confdefs.h.  */
   4929  1.1  christos _ACEOF
   4930  1.1  christos cat confdefs.h >>conftest.$ac_ext
   4931  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   4932  1.1  christos /* end confdefs.h.  */
   4933  1.1  christos 
   4934  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   4935  1.1  christos #ifdef __cplusplus
   4936  1.1  christos extern "C"
   4937  1.1  christos #endif
   4938  1.1  christos /* We use char because int might match the return type of a gcc2
   4939  1.1  christos    builtin and then its argument prototype would still apply.  */
   4940  1.1  christos char IceConnectionNumber ();
   4941  1.1  christos int
   4942  1.1  christos main ()
   4943  1.1  christos {
   4944  1.1  christos IceConnectionNumber ();
   4945  1.1  christos   ;
   4946  1.1  christos   return 0;
   4947  1.1  christos }
   4948  1.1  christos _ACEOF
   4949  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4950  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4951  1.1  christos   (eval $ac_link) 2>conftest.er1
   4952  1.1  christos   ac_status=$?
   4953  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   4954  1.1  christos   rm -f conftest.er1
   4955  1.1  christos   cat conftest.err >&5
   4956  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4957  1.1  christos   (exit $ac_status); } &&
   4958  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   4959  1.1  christos 			 || test ! -s conftest.err'
   4960  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4961  1.1  christos   (eval $ac_try) 2>&5
   4962  1.1  christos   ac_status=$?
   4963  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4964  1.1  christos   (exit $ac_status); }; } &&
   4965  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   4966  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4967  1.1  christos   (eval $ac_try) 2>&5
   4968  1.1  christos   ac_status=$?
   4969  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4970  1.1  christos   (exit $ac_status); }; }; then
   4971  1.1  christos   ac_cv_lib_ICE_IceConnectionNumber=yes
   4972  1.1  christos else
   4973  1.1  christos   echo "$as_me: failed program was:" >&5
   4974  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   4975  1.1  christos 
   4976  1.1  christos ac_cv_lib_ICE_IceConnectionNumber=no
   4977  1.1  christos fi
   4978  1.1  christos rm -f conftest.err conftest.$ac_objext \
   4979  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   4980  1.1  christos LIBS=$ac_check_lib_save_LIBS
   4981  1.1  christos fi
   4982  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
   4983  1.1  christos echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
   4984  1.1  christos if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
   4985  1.1  christos   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
   4986  1.1  christos fi
   4987  1.1  christos 
   4988  1.1  christos   LDFLAGS=$ac_save_LDFLAGS
   4989  1.1  christos 
   4990  1.1  christos fi
   4991  1.1  christos 
   4992  1.1  christos 
   4993  1.1  christos    groff_no_x=$no_x
   4994  1.1  christos    if test -z "$groff_no_x"; then
   4995  1.1  christos      OLDCFLAGS=$CFLAGS
   4996  1.1  christos      OLDLDFLAGS=$LDFLAGS
   4997  1.1  christos      OLDLIBS=$LIBS
   4998  1.1  christos      CFLAGS="$CFLAGS $X_CFLAGS"
   4999  1.1  christos      LDFLAGS="$LDFLAGS $X_LIBS"
   5000  1.1  christos      LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
   5001  1.1  christos 
   5002  1.1  christos      LIBS="$LIBS -lXaw"
   5003  1.1  christos      echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
   5004  1.1  christos echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
   5005  1.1  christos      cat >conftest.$ac_ext <<_ACEOF
   5006  1.1  christos 
   5007  1.1  christos 	 /* confdefs.h.  */
   5008  1.1  christos _ACEOF
   5009  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5010  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5011  1.1  christos /* end confdefs.h.  */
   5012  1.1  christos 
   5013  1.1  christos 
   5014  1.1  christos #include <X11/Intrinsic.h>
   5015  1.1  christos #include <X11/Xaw/Simple.h>
   5016  1.1  christos 
   5017  1.1  christos 
   5018  1.1  christos int
   5019  1.1  christos main ()
   5020  1.1  christos {
   5021  1.1  christos 
   5022  1.1  christos   ;
   5023  1.1  christos   return 0;
   5024  1.1  christos }
   5025  1.1  christos 
   5026  1.1  christos _ACEOF
   5027  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5028  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5029  1.1  christos   (eval $ac_link) 2>conftest.er1
   5030  1.1  christos   ac_status=$?
   5031  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   5032  1.1  christos   rm -f conftest.er1
   5033  1.1  christos   cat conftest.err >&5
   5034  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5035  1.1  christos   (exit $ac_status); } &&
   5036  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   5037  1.1  christos 			 || test ! -s conftest.err'
   5038  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5039  1.1  christos   (eval $ac_try) 2>&5
   5040  1.1  christos   ac_status=$?
   5041  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5042  1.1  christos   (exit $ac_status); }; } &&
   5043  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   5044  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5045  1.1  christos   (eval $ac_try) 2>&5
   5046  1.1  christos   ac_status=$?
   5047  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5048  1.1  christos   (exit $ac_status); }; }; then
   5049  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   5050  1.1  christos echo "${ECHO_T}yes" >&6
   5051  1.1  christos else
   5052  1.1  christos   echo "$as_me: failed program was:" >&5
   5053  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   5054  1.1  christos 
   5055  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   5056  1.1  christos echo "${ECHO_T}no" >&6
   5057  1.1  christos 	groff_no_x="yes"
   5058  1.1  christos fi
   5059  1.1  christos rm -f conftest.err conftest.$ac_objext \
   5060  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   5061  1.1  christos 
   5062  1.1  christos      LIBS="$LIBS -lXmu"
   5063  1.1  christos      echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
   5064  1.1  christos echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
   5065  1.1  christos      cat >conftest.$ac_ext <<_ACEOF
   5066  1.1  christos 
   5067  1.1  christos 	 /* confdefs.h.  */
   5068  1.1  christos _ACEOF
   5069  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5070  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5071  1.1  christos /* end confdefs.h.  */
   5072  1.1  christos 
   5073  1.1  christos 
   5074  1.1  christos #include <X11/Intrinsic.h>
   5075  1.1  christos #include <X11/Xmu/Converters.h>
   5076  1.1  christos 
   5077  1.1  christos 
   5078  1.1  christos int
   5079  1.1  christos main ()
   5080  1.1  christos {
   5081  1.1  christos 
   5082  1.1  christos   ;
   5083  1.1  christos   return 0;
   5084  1.1  christos }
   5085  1.1  christos 
   5086  1.1  christos _ACEOF
   5087  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5088  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5089  1.1  christos   (eval $ac_link) 2>conftest.er1
   5090  1.1  christos   ac_status=$?
   5091  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   5092  1.1  christos   rm -f conftest.er1
   5093  1.1  christos   cat conftest.err >&5
   5094  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5095  1.1  christos   (exit $ac_status); } &&
   5096  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   5097  1.1  christos 			 || test ! -s conftest.err'
   5098  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5099  1.1  christos   (eval $ac_try) 2>&5
   5100  1.1  christos   ac_status=$?
   5101  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5102  1.1  christos   (exit $ac_status); }; } &&
   5103  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   5104  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5105  1.1  christos   (eval $ac_try) 2>&5
   5106  1.1  christos   ac_status=$?
   5107  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5108  1.1  christos   (exit $ac_status); }; }; then
   5109  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   5110  1.1  christos echo "${ECHO_T}yes" >&6
   5111  1.1  christos else
   5112  1.1  christos   echo "$as_me: failed program was:" >&5
   5113  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   5114  1.1  christos 
   5115  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   5116  1.1  christos echo "${ECHO_T}no" >&6
   5117  1.1  christos 	groff_no_x="yes"
   5118  1.1  christos fi
   5119  1.1  christos rm -f conftest.err conftest.$ac_objext \
   5120  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   5121  1.1  christos 
   5122  1.1  christos      CFLAGS=$OLDCFLAGS
   5123  1.1  christos      LDFLAGS=$OLDLDFLAGS
   5124  1.1  christos      LIBS=$OLDLIBS
   5125  1.1  christos    fi
   5126  1.1  christos 
   5127  1.1  christos    if test "x$groff_no_x" = "xyes"; then
   5128  1.1  christos      { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
   5129  1.1  christos echo "$as_me: gxditview and xtotroff won't be built" >&6;}
   5130  1.1  christos    else
   5131  1.1  christos      XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
   5132  1.1  christos      XPROGDIRS="src/devices/xditview src/utils/xtotroff"
   5133  1.1  christos      XLIBDIRS="src/libs/libxutil"
   5134  1.1  christos    fi
   5135  1.1  christos 
   5136  1.1  christos 
   5137  1.1  christos 
   5138  1.1  christos 
   5139  1.1  christos 
   5140  1.1  christos # Check whether --with-appresdir or --without-appresdir was given.
   5141  1.1  christos if test "${with_appresdir+set}" = set; then
   5142  1.1  christos   withval="$with_appresdir"
   5143  1.1  christos 
   5144  1.1  christos fi;
   5145  1.1  christos if test -z "$groff_no_x"; then
   5146  1.1  christos      # Create an Imakefile, run `xmkmf', then `make'.
   5147  1.1  christos      rm -f -r conftest.dir
   5148  1.1  christos      if mkdir conftest.dir; then
   5149  1.1  christos        cd conftest.dir
   5150  1.1  christos        # Make sure to not put `make' in the Imakefile rules,
   5151  1.1  christos        # since we grep it out.
   5152  1.1  christos        cat >Imakefile <<'EOF'
   5153  1.1  christos 
   5154  1.1  christos xlibdirs:
   5155  1.1  christos 	@echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
   5156  1.1  christos EOF
   5157  1.1  christos 
   5158  1.1  christos        if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
   5159  1.1  christos 	 # GNU make sometimes prints "make[1]: Entering...",
   5160  1.1  christos 	 # which would confuse us.
   5161  1.1  christos 	 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
   5162  1.1  christos 
   5163  1.1  christos 	 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
   5164  1.1  christos 	 for groff_extension in a so sl; do
   5165  1.1  christos 	   if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
   5166  1.1  christos 	      test -f $groff_x_libdir/libX11.$groff_extension; then
   5167  1.1  christos 	     groff_x_usrlibdir=$groff_x_libdir
   5168  1.1  christos 	     break
   5169  1.1  christos 	   fi
   5170  1.1  christos 	 done
   5171  1.1  christos        fi
   5172  1.1  christos 
   5173  1.1  christos        cd ..
   5174  1.1  christos        rm -f -r conftest.dir
   5175  1.1  christos      fi
   5176  1.1  christos 
   5177  1.1  christos      # In case the test with `xmkmf' wasn't successful, try a suite of
   5178  1.1  christos      # standard directories.  Check `X11' before `X11Rn' because it is often
   5179  1.1  christos      # a symlink to the current release.
   5180  1.1  christos      groff_x_libdirs='
   5181  1.1  christos        /usr/X11/lib
   5182  1.1  christos        /usr/X11R6/lib
   5183  1.1  christos        /usr/X11R5/lib
   5184  1.1  christos        /usr/X11R4/lib
   5185  1.1  christos 
   5186  1.1  christos        /usr/lib/X11
   5187  1.1  christos        /usr/lib/X11R6
   5188  1.1  christos        /usr/lib/X11R5
   5189  1.1  christos        /usr/lib/X11R4
   5190  1.1  christos 
   5191  1.1  christos        /usr/local/X11/lib
   5192  1.1  christos        /usr/local/X11R6/lib
   5193  1.1  christos        /usr/local/X11R5/lib
   5194  1.1  christos        /usr/local/X11R4/lib
   5195  1.1  christos 
   5196  1.1  christos        /usr/local/lib/X11
   5197  1.1  christos        /usr/local/lib/X11R6
   5198  1.1  christos        /usr/local/lib/X11R5
   5199  1.1  christos        /usr/local/lib/X11R4
   5200  1.1  christos 
   5201  1.1  christos        /usr/X386/lib
   5202  1.1  christos        /usr/x386/lib
   5203  1.1  christos        /usr/XFree86/lib/X11
   5204  1.1  christos 
   5205  1.1  christos        /usr/lib
   5206  1.1  christos        /usr/local/lib
   5207  1.1  christos        /usr/unsupported/lib
   5208  1.1  christos        /usr/athena/lib
   5209  1.1  christos        /usr/local/x11r5/lib
   5210  1.1  christos        /usr/lpp/Xamples/lib
   5211  1.1  christos 
   5212  1.1  christos        /usr/openwin/lib
   5213  1.1  christos        /usr/openwin/share/lib'
   5214  1.1  christos 
   5215  1.1  christos      if test -z "$groff_x_usrlibdir"; then
   5216  1.1  christos        # We only test whether libX11 exists.
   5217  1.1  christos        for groff_dir in $groff_x_libdirs; do
   5218  1.1  christos 	 for groff_extension in a so sl; do
   5219  1.1  christos 	   if test ! -r $groff_dir/libX11.$groff_extension; then
   5220  1.1  christos 	     groff_x_usrlibdir=$groff_dir
   5221  1.1  christos 	     break 2
   5222  1.1  christos 	   fi
   5223  1.1  christos 	 done
   5224  1.1  christos        done
   5225  1.1  christos      fi
   5226  1.1  christos 
   5227  1.1  christos      if test "x$with_appresdir" = "x"; then
   5228  1.1  christos        appresdir=$groff_x_usrlibdir/X11/app-defaults
   5229  1.1  christos      else
   5230  1.1  christos        appresdir=$with_appresdir
   5231  1.1  christos      fi
   5232  1.1  christos    fi
   5233  1.1  christos 
   5234  1.1  christos if test -z "$PSPRINT"; then
   5235  1.1  christos      for ac_prog in lpr
   5236  1.1  christos do
   5237  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5238  1.1  christos set dummy $ac_prog; ac_word=$2
   5239  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   5240  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5241  1.1  christos if test "${ac_cv_prog_LPR+set}" = set; then
   5242  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5243  1.1  christos else
   5244  1.1  christos   if test -n "$LPR"; then
   5245  1.1  christos   ac_cv_prog_LPR="$LPR" # Let the user override the test.
   5246  1.1  christos else
   5247  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5248  1.1  christos for as_dir in $PATH
   5249  1.1  christos do
   5250  1.1  christos   IFS=$as_save_IFS
   5251  1.1  christos   test -z "$as_dir" && as_dir=.
   5252  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   5253  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5254  1.1  christos     ac_cv_prog_LPR="$ac_prog"
   5255  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5256  1.1  christos     break 2
   5257  1.1  christos   fi
   5258  1.1  christos done
   5259  1.1  christos done
   5260  1.1  christos 
   5261  1.1  christos fi
   5262  1.1  christos fi
   5263  1.1  christos LPR=$ac_cv_prog_LPR
   5264  1.1  christos if test -n "$LPR"; then
   5265  1.1  christos   echo "$as_me:$LINENO: result: $LPR" >&5
   5266  1.1  christos echo "${ECHO_T}$LPR" >&6
   5267  1.1  christos else
   5268  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   5269  1.1  christos echo "${ECHO_T}no" >&6
   5270  1.1  christos fi
   5271  1.1  christos 
   5272  1.1  christos   test -n "$LPR" && break
   5273  1.1  christos done
   5274  1.1  christos 
   5275  1.1  christos      for ac_prog in lp
   5276  1.1  christos do
   5277  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5278  1.1  christos set dummy $ac_prog; ac_word=$2
   5279  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   5280  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5281  1.1  christos if test "${ac_cv_prog_LP+set}" = set; then
   5282  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5283  1.1  christos else
   5284  1.1  christos   if test -n "$LP"; then
   5285  1.1  christos   ac_cv_prog_LP="$LP" # Let the user override the test.
   5286  1.1  christos else
   5287  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5288  1.1  christos for as_dir in $PATH
   5289  1.1  christos do
   5290  1.1  christos   IFS=$as_save_IFS
   5291  1.1  christos   test -z "$as_dir" && as_dir=.
   5292  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   5293  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5294  1.1  christos     ac_cv_prog_LP="$ac_prog"
   5295  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5296  1.1  christos     break 2
   5297  1.1  christos   fi
   5298  1.1  christos done
   5299  1.1  christos done
   5300  1.1  christos 
   5301  1.1  christos fi
   5302  1.1  christos fi
   5303  1.1  christos LP=$ac_cv_prog_LP
   5304  1.1  christos if test -n "$LP"; then
   5305  1.1  christos   echo "$as_me:$LINENO: result: $LP" >&5
   5306  1.1  christos echo "${ECHO_T}$LP" >&6
   5307  1.1  christos else
   5308  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   5309  1.1  christos echo "${ECHO_T}no" >&6
   5310  1.1  christos fi
   5311  1.1  christos 
   5312  1.1  christos   test -n "$LP" && break
   5313  1.1  christos done
   5314  1.1  christos 
   5315  1.1  christos      if test -n "$LPR" && test -n "$LP"; then
   5316  1.1  christos        # HP-UX provides an lpr command that emulates lpr using lp,
   5317  1.1  christos        # but it doesn't have lpq; in this case we want to use lp
   5318  1.1  christos        # rather than lpr.
   5319  1.1  christos        for ac_prog in lpq
   5320  1.1  christos do
   5321  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5322  1.1  christos set dummy $ac_prog; ac_word=$2
   5323  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   5324  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5325  1.1  christos if test "${ac_cv_prog_LPQ+set}" = set; then
   5326  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5327  1.1  christos else
   5328  1.1  christos   if test -n "$LPQ"; then
   5329  1.1  christos   ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
   5330  1.1  christos else
   5331  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5332  1.1  christos for as_dir in $PATH
   5333  1.1  christos do
   5334  1.1  christos   IFS=$as_save_IFS
   5335  1.1  christos   test -z "$as_dir" && as_dir=.
   5336  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   5337  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5338  1.1  christos     ac_cv_prog_LPQ="$ac_prog"
   5339  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5340  1.1  christos     break 2
   5341  1.1  christos   fi
   5342  1.1  christos done
   5343  1.1  christos done
   5344  1.1  christos 
   5345  1.1  christos fi
   5346  1.1  christos fi
   5347  1.1  christos LPQ=$ac_cv_prog_LPQ
   5348  1.1  christos if test -n "$LPQ"; then
   5349  1.1  christos   echo "$as_me:$LINENO: result: $LPQ" >&5
   5350  1.1  christos echo "${ECHO_T}$LPQ" >&6
   5351  1.1  christos else
   5352  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   5353  1.1  christos echo "${ECHO_T}no" >&6
   5354  1.1  christos fi
   5355  1.1  christos 
   5356  1.1  christos   test -n "$LPQ" && break
   5357  1.1  christos done
   5358  1.1  christos 
   5359  1.1  christos        test -n "$LPQ" || LPR=
   5360  1.1  christos      fi
   5361  1.1  christos      if test -n "$LPR"; then
   5362  1.1  christos        PSPRINT="$LPR"
   5363  1.1  christos      elif test -n "$LP"; then
   5364  1.1  christos        PSPRINT="$LP"
   5365  1.1  christos      fi
   5366  1.1  christos    fi
   5367  1.1  christos 
   5368  1.1  christos    echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
   5369  1.1  christos echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
   5370  1.1  christos    echo "$as_me:$LINENO: result: $PSPRINT" >&5
   5371  1.1  christos echo "${ECHO_T}$PSPRINT" >&6
   5372  1.1  christos 
   5373  1.1  christos    # Figure out DVIPRINT from PSPRINT.
   5374  1.1  christos    echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
   5375  1.1  christos echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
   5376  1.1  christos    if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
   5377  1.1  christos      if test "x$PSPRINT" = "xlpr"; then
   5378  1.1  christos        DVIPRINT="lpr -d"
   5379  1.1  christos      else
   5380  1.1  christos        DVIPRINT="$PSPRINT"
   5381  1.1  christos      fi
   5382  1.1  christos    fi
   5383  1.1  christos 
   5384  1.1  christos    echo "$as_me:$LINENO: result: $DVIPRINT" >&5
   5385  1.1  christos echo "${ECHO_T}$DVIPRINT" >&6
   5386  1.1  christos # Extract the first word of "perl", so it can be a program name with args.
   5387  1.1  christos set dummy perl; ac_word=$2
   5388  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   5389  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5390  1.1  christos if test "${ac_cv_path_PERLPATH+set}" = set; then
   5391  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5392  1.1  christos else
   5393  1.1  christos   case $PERLPATH in
   5394  1.1  christos   [\\/]* | ?:[\\/]*)
   5395  1.1  christos   ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
   5396  1.1  christos   ;;
   5397  1.1  christos   *)
   5398  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5399  1.1  christos for as_dir in $PATH
   5400  1.1  christos do
   5401  1.1  christos   IFS=$as_save_IFS
   5402  1.1  christos   test -z "$as_dir" && as_dir=.
   5403  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   5404  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5405  1.1  christos     ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
   5406  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5407  1.1  christos     break 2
   5408  1.1  christos   fi
   5409  1.1  christos done
   5410  1.1  christos done
   5411  1.1  christos 
   5412  1.1  christos   test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
   5413  1.1  christos   ;;
   5414  1.1  christos esac
   5415  1.1  christos fi
   5416  1.1  christos PERLPATH=$ac_cv_path_PERLPATH
   5417  1.1  christos 
   5418  1.1  christos if test -n "$PERLPATH"; then
   5419  1.1  christos   echo "$as_me:$LINENO: result: $PERLPATH" >&5
   5420  1.1  christos echo "${ECHO_T}$PERLPATH" >&6
   5421  1.1  christos else
   5422  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   5423  1.1  christos echo "${ECHO_T}no" >&6
   5424  1.1  christos fi
   5425  1.1  christos 
   5426  1.1  christos for ac_prog in byacc 'bison -y'
   5427  1.1  christos do
   5428  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5429  1.1  christos set dummy $ac_prog; ac_word=$2
   5430  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   5431  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5432  1.1  christos if test "${ac_cv_prog_YACC+set}" = set; then
   5433  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5434  1.1  christos else
   5435  1.1  christos   if test -n "$YACC"; then
   5436  1.1  christos   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   5437  1.1  christos else
   5438  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5439  1.1  christos for as_dir in $PATH
   5440  1.1  christos do
   5441  1.1  christos   IFS=$as_save_IFS
   5442  1.1  christos   test -z "$as_dir" && as_dir=.
   5443  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   5444  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5445  1.1  christos     ac_cv_prog_YACC="$ac_prog"
   5446  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5447  1.1  christos     break 2
   5448  1.1  christos   fi
   5449  1.1  christos done
   5450  1.1  christos done
   5451  1.1  christos 
   5452  1.1  christos fi
   5453  1.1  christos fi
   5454  1.1  christos YACC=$ac_cv_prog_YACC
   5455  1.1  christos if test -n "$YACC"; then
   5456  1.1  christos   echo "$as_me:$LINENO: result: $YACC" >&5
   5457  1.1  christos echo "${ECHO_T}$YACC" >&6
   5458  1.1  christos else
   5459  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   5460  1.1  christos echo "${ECHO_T}no" >&6
   5461  1.1  christos fi
   5462  1.1  christos 
   5463  1.1  christos   test -n "$YACC" && break
   5464  1.1  christos done
   5465  1.1  christos test -n "$YACC" || YACC="yacc"
   5466  1.1  christos 
   5467  1.1  christos if test -n "$ac_tool_prefix"; then
   5468  1.1  christos   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5469  1.1  christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5470  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   5471  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5472  1.1  christos if test "${ac_cv_prog_RANLIB+set}" = set; then
   5473  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5474  1.1  christos else
   5475  1.1  christos   if test -n "$RANLIB"; then
   5476  1.1  christos   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5477  1.1  christos else
   5478  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5479  1.1  christos for as_dir in $PATH
   5480  1.1  christos do
   5481  1.1  christos   IFS=$as_save_IFS
   5482  1.1  christos   test -z "$as_dir" && as_dir=.
   5483  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   5484  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5485  1.1  christos     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5486  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5487  1.1  christos     break 2
   5488  1.1  christos   fi
   5489  1.1  christos done
   5490  1.1  christos done
   5491  1.1  christos 
   5492  1.1  christos fi
   5493  1.1  christos fi
   5494  1.1  christos RANLIB=$ac_cv_prog_RANLIB
   5495  1.1  christos if test -n "$RANLIB"; then
   5496  1.1  christos   echo "$as_me:$LINENO: result: $RANLIB" >&5
   5497  1.1  christos echo "${ECHO_T}$RANLIB" >&6
   5498  1.1  christos else
   5499  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   5500  1.1  christos echo "${ECHO_T}no" >&6
   5501  1.1  christos fi
   5502  1.1  christos 
   5503  1.1  christos fi
   5504  1.1  christos if test -z "$ac_cv_prog_RANLIB"; then
   5505  1.1  christos   ac_ct_RANLIB=$RANLIB
   5506  1.1  christos   # Extract the first word of "ranlib", so it can be a program name with args.
   5507  1.1  christos set dummy ranlib; ac_word=$2
   5508  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   5509  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5510  1.1  christos if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   5511  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5512  1.1  christos else
   5513  1.1  christos   if test -n "$ac_ct_RANLIB"; then
   5514  1.1  christos   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5515  1.1  christos else
   5516  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5517  1.1  christos for as_dir in $PATH
   5518  1.1  christos do
   5519  1.1  christos   IFS=$as_save_IFS
   5520  1.1  christos   test -z "$as_dir" && as_dir=.
   5521  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   5522  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5523  1.1  christos     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5524  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5525  1.1  christos     break 2
   5526  1.1  christos   fi
   5527  1.1  christos done
   5528  1.1  christos done
   5529  1.1  christos 
   5530  1.1  christos fi
   5531  1.1  christos fi
   5532  1.1  christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5533  1.1  christos if test -n "$ac_ct_RANLIB"; then
   5534  1.1  christos   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   5535  1.1  christos echo "${ECHO_T}$ac_ct_RANLIB" >&6
   5536  1.1  christos else
   5537  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   5538  1.1  christos echo "${ECHO_T}no" >&6
   5539  1.1  christos fi
   5540  1.1  christos 
   5541  1.1  christos   if test "x$ac_ct_RANLIB" = x; then
   5542  1.1  christos     RANLIB=":"
   5543  1.1  christos   else
   5544  1.1  christos     if test "$build" != "$host"; then
   5545  1.1  christos       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   5546  1.1  christos whose name does not start with the host triplet.  If you think this
   5547  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   5548  1.1  christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   5549  1.1  christos whose name does not start with the host triplet.  If you think this
   5550  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   5551  1.1  christos     fi
   5552  1.1  christos     RANLIB=$ac_ct_RANLIB
   5553  1.1  christos   fi
   5554  1.1  christos else
   5555  1.1  christos   RANLIB="$ac_cv_prog_RANLIB"
   5556  1.1  christos fi
   5557  1.1  christos 
   5558  1.1  christos ac_aux_dir=
   5559  1.1  christos for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   5560  1.1  christos   if test -f $ac_dir/install-sh; then
   5561  1.1  christos     ac_aux_dir=$ac_dir
   5562  1.1  christos     ac_install_sh="$ac_aux_dir/install-sh -c"
   5563  1.1  christos     break
   5564  1.1  christos   elif test -f $ac_dir/install.sh; then
   5565  1.1  christos     ac_aux_dir=$ac_dir
   5566  1.1  christos     ac_install_sh="$ac_aux_dir/install.sh -c"
   5567  1.1  christos     break
   5568  1.1  christos   elif test -f $ac_dir/shtool; then
   5569  1.1  christos     ac_aux_dir=$ac_dir
   5570  1.1  christos     ac_install_sh="$ac_aux_dir/shtool install -c"
   5571  1.1  christos     break
   5572  1.1  christos   fi
   5573  1.1  christos done
   5574  1.1  christos if test -z "$ac_aux_dir"; then
   5575  1.1  christos   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
   5576  1.1  christos echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   5577  1.1  christos    { (exit 1); exit 1; }; }
   5578  1.1  christos fi
   5579  1.1  christos ac_config_guess="$SHELL $ac_aux_dir/config.guess"
   5580  1.1  christos ac_config_sub="$SHELL $ac_aux_dir/config.sub"
   5581  1.1  christos ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
   5582  1.1  christos 
   5583  1.1  christos 
   5584  1.1  christos    ac_dir=`cd $ac_aux_dir; pwd`
   5585  1.1  christos    ac_install_sh="$ac_dir/install-sh -c"
   5586  1.1  christos for ac_prog in install-info
   5587  1.1  christos do
   5588  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5589  1.1  christos set dummy $ac_prog; ac_word=$2
   5590  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   5591  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5592  1.1  christos if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
   5593  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5594  1.1  christos else
   5595  1.1  christos   if test -n "$INSTALL_INFO"; then
   5596  1.1  christos   ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
   5597  1.1  christos else
   5598  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5599  1.1  christos for as_dir in $PATH
   5600  1.1  christos do
   5601  1.1  christos   IFS=$as_save_IFS
   5602  1.1  christos   test -z "$as_dir" && as_dir=.
   5603  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   5604  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5605  1.1  christos     ac_cv_prog_INSTALL_INFO="$ac_prog"
   5606  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5607  1.1  christos     break 2
   5608  1.1  christos   fi
   5609  1.1  christos done
   5610  1.1  christos done
   5611  1.1  christos 
   5612  1.1  christos fi
   5613  1.1  christos fi
   5614  1.1  christos INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
   5615  1.1  christos if test -n "$INSTALL_INFO"; then
   5616  1.1  christos   echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
   5617  1.1  christos echo "${ECHO_T}$INSTALL_INFO" >&6
   5618  1.1  christos else
   5619  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   5620  1.1  christos echo "${ECHO_T}no" >&6
   5621  1.1  christos fi
   5622  1.1  christos 
   5623  1.1  christos   test -n "$INSTALL_INFO" && break
   5624  1.1  christos done
   5625  1.1  christos test -n "$INSTALL_INFO" || INSTALL_INFO=":"
   5626  1.1  christos 
   5627  1.1  christos # Find a good install program.  We prefer a C program (faster),
   5628  1.1  christos # so one script is as good as another.  But avoid the broken or
   5629  1.1  christos # incompatible versions:
   5630  1.1  christos # SysV /etc/install, /usr/sbin/install
   5631  1.1  christos # SunOS /usr/etc/install
   5632  1.1  christos # IRIX /sbin/install
   5633  1.1  christos # AIX /bin/install
   5634  1.1  christos # AmigaOS /C/install, which installs bootblocks on floppy discs
   5635  1.1  christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   5636  1.1  christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   5637  1.1  christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   5638  1.1  christos # OS/2's system install, which has a completely different semantic
   5639  1.1  christos # ./install, which can be erroneously created by make from ./install.sh.
   5640  1.1  christos echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   5641  1.1  christos echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
   5642  1.1  christos if test -z "$INSTALL"; then
   5643  1.1  christos if test "${ac_cv_path_install+set}" = set; then
   5644  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5645  1.1  christos else
   5646  1.1  christos   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5647  1.1  christos for as_dir in $PATH
   5648  1.1  christos do
   5649  1.1  christos   IFS=$as_save_IFS
   5650  1.1  christos   test -z "$as_dir" && as_dir=.
   5651  1.1  christos   # Account for people who put trailing slashes in PATH elements.
   5652  1.1  christos case $as_dir/ in
   5653  1.1  christos   ./ | .// | /cC/* | \
   5654  1.1  christos   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   5655  1.1  christos   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   5656  1.1  christos   /usr/ucb/* ) ;;
   5657  1.1  christos   *)
   5658  1.1  christos     # OSF1 and SCO ODT 3.0 have their own names for install.
   5659  1.1  christos     # Don't use installbsd from OSF since it installs stuff as root
   5660  1.1  christos     # by default.
   5661  1.1  christos     for ac_prog in ginstall scoinst install; do
   5662  1.1  christos       for ac_exec_ext in '' $ac_executable_extensions; do
   5663  1.1  christos 	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   5664  1.1  christos 	  if test $ac_prog = install &&
   5665  1.1  christos 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   5666  1.1  christos 	    # AIX install.  It has an incompatible calling convention.
   5667  1.1  christos 	    :
   5668  1.1  christos 	  elif test $ac_prog = install &&
   5669  1.1  christos 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   5670  1.1  christos 	    # program-specific install script used by HP pwplus--don't use.
   5671  1.1  christos 	    :
   5672  1.1  christos 	  else
   5673  1.1  christos 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   5674  1.1  christos 	    break 3
   5675  1.1  christos 	  fi
   5676  1.1  christos 	fi
   5677  1.1  christos       done
   5678  1.1  christos     done
   5679  1.1  christos     ;;
   5680  1.1  christos esac
   5681  1.1  christos done
   5682  1.1  christos 
   5683  1.1  christos 
   5684  1.1  christos fi
   5685  1.1  christos   if test "${ac_cv_path_install+set}" = set; then
   5686  1.1  christos     INSTALL=$ac_cv_path_install
   5687  1.1  christos   else
   5688  1.1  christos     # As a last resort, use the slow shell script.  Don't cache a
   5689  1.1  christos     # value for INSTALL within a source directory, because that will
   5690  1.1  christos     # break other packages using the cache if that directory is
   5691  1.1  christos     # removed, or if the value is a relative name.
   5692  1.1  christos     INSTALL=$ac_install_sh
   5693  1.1  christos   fi
   5694  1.1  christos fi
   5695  1.1  christos echo "$as_me:$LINENO: result: $INSTALL" >&5
   5696  1.1  christos echo "${ECHO_T}$INSTALL" >&6
   5697  1.1  christos 
   5698  1.1  christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   5699  1.1  christos # It thinks the first close brace ends the variable substitution.
   5700  1.1  christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   5701  1.1  christos 
   5702  1.1  christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   5703  1.1  christos 
   5704  1.1  christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   5705  1.1  christos 
   5706  1.1  christos echo "$as_me:$LINENO: checking whether ln -s works" >&5
   5707  1.1  christos echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
   5708  1.1  christos LN_S=$as_ln_s
   5709  1.1  christos if test "$LN_S" = "ln -s"; then
   5710  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   5711  1.1  christos echo "${ECHO_T}yes" >&6
   5712  1.1  christos else
   5713  1.1  christos   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
   5714  1.1  christos echo "${ECHO_T}no, using $LN_S" >&6
   5715  1.1  christos fi
   5716  1.1  christos 
   5717  1.1  christos 
   5718  1.1  christos # use a dummy substitution if no csh hack is necessary to avoid errors
   5719  1.1  christos # with non-GNU sed programs
   5720  1.1  christos echo "$as_me:$LINENO: checking for csh hash hack" >&5
   5721  1.1  christos echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
   5722  1.1  christos 
   5723  1.1  christos cat <<EOF >conftest.sh
   5724  1.1  christos #! /bin/sh
   5725  1.1  christos true || exit 0
   5726  1.1  christos export PATH || exit 0
   5727  1.1  christos exit 1
   5728  1.1  christos EOF
   5729  1.1  christos 
   5730  1.1  christos    chmod +x conftest.sh
   5731  1.1  christos    if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
   5732  1.1  christos      echo "$as_me:$LINENO: result: yes" >&5
   5733  1.1  christos echo "${ECHO_T}yes" >&6
   5734  1.1  christos      SH_SCRIPT_SED_CMD='1s/.*/:/'
   5735  1.1  christos    else
   5736  1.1  christos      echo "$as_me:$LINENO: result: no" >&5
   5737  1.1  christos echo "${ECHO_T}no" >&6
   5738  1.1  christos      SH_SCRIPT_SED_CMD='1s/a/a/'
   5739  1.1  christos    fi
   5740  1.1  christos    rm -f conftest.sh
   5741  1.1  christos 
   5742  1.1  christos 
   5743  1.1  christos # checks for headers
   5744  1.1  christos echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   5745  1.1  christos echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6
   5746  1.1  christos if test "${ac_cv_path_GREP+set}" = set; then
   5747  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5748  1.1  christos else
   5749  1.1  christos   # Extract the first word of "grep ggrep" to use in msg output
   5750  1.1  christos if test -z "$GREP"; then
   5751  1.1  christos set dummy grep ggrep; ac_prog_name=$2
   5752  1.1  christos if test "${ac_cv_path_GREP+set}" = set; then
   5753  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5754  1.1  christos else
   5755  1.1  christos   # Create a temporary directory, and hook for its removal unless debugging.
   5756  1.1  christos $debug ||
   5757  1.1  christos {
   5758  1.1  christos   trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
   5759  1.1  christos   trap '{ (exit 1); exit 1; }' 1 2 13 15
   5760  1.1  christos }
   5761  1.1  christos 
   5762  1.1  christos # Create a (secure) tmp directory for tmp files.
   5763  1.1  christos : ${TMPDIR=/tmp}
   5764  1.1  christos {
   5765  1.1  christos   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
   5766  1.1  christos   test -n "$tmp" && test -d "$tmp"
   5767  1.1  christos }  ||
   5768  1.1  christos {
   5769  1.1  christos   tmp=$TMPDIR/GREP$$-$RANDOM
   5770  1.1  christos   (umask 077 && mkdir $tmp)
   5771  1.1  christos } ||
   5772  1.1  christos {
   5773  1.1  christos    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   5774  1.1  christos    { (exit 1); exit 1; }
   5775  1.1  christos }
   5776  1.1  christos ac_path_GREP_found=false
   5777  1.1  christos # Loop through the user's path and test for each of PROGNAME-LIST
   5778  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5779  1.1  christos as_dummy="$PATH:/usr/xpg4/bin"
   5780  1.1  christos for as_dir in $as_dummy
   5781  1.1  christos do
   5782  1.1  christos   IFS=$as_save_IFS
   5783  1.1  christos   test -z "$as_dir" && as_dir=.
   5784  1.1  christos   for ac_prog in grep ggrep; do
   5785  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   5786  1.1  christos     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   5787  1.1  christos     test -f "$ac_path_GREP" || continue
   5788  1.1  christos     $ac_path_GREP_found || if $as_executable_p "$ac_path_GREP"; then
   5789  1.1  christos   # Check for GNU ac_path_GREP and select it if it is found.
   5790  1.1  christos   # Check for GNU $ac_path_GREP
   5791  1.1  christos if "$ac_path_GREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
   5792  1.1  christos   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:
   5793  1.1  christos else
   5794  1.1  christos   ac_count=0
   5795  1.1  christos   echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
   5796  1.1  christos   while :
   5797  1.1  christos   do
   5798  1.1  christos     cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
   5799  1.1  christos     mv "$tmp/conftest.tmp" "$tmp/conftest.in"
   5800  1.1  christos     cp "$tmp/conftest.in" "$tmp/conftest.nl"
   5801  1.1  christos     echo 'GREP' >> "$tmp/conftest.nl"
   5802  1.1  christos     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
   5803  1.1  christos     diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
   5804  1.1  christos     ac_count=`expr $ac_count + 1`
   5805  1.1  christos     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   5806  1.1  christos       # Best one so far, save it but keep looking for a better one
   5807  1.1  christos       ac_cv_path_GREP="$ac_path_GREP"
   5808  1.1  christos       ac_path_GREP_max=$ac_count
   5809  1.1  christos     fi
   5810  1.1  christos     # 10*(2^10) chars as input seems more than enough
   5811  1.1  christos     test $ac_count -gt 10 && break
   5812  1.1  christos   done
   5813  1.1  christos fi
   5814  1.1  christos 
   5815  1.1  christos fi
   5816  1.1  christos 
   5817  1.1  christos     $ac_path_GREP_found && break 3
   5818  1.1  christos   done
   5819  1.1  christos done
   5820  1.1  christos 
   5821  1.1  christos done
   5822  1.1  christos 
   5823  1.1  christos rm -rf "$tmp"
   5824  1.1  christos 
   5825  1.1  christos fi
   5826  1.1  christos 
   5827  1.1  christos GREP="$ac_cv_path_GREP"
   5828  1.1  christos if test -z "$GREP"; then
   5829  1.1  christos   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
   5830  1.1  christos echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
   5831  1.1  christos    { (exit 1); exit 1; }; }
   5832  1.1  christos fi
   5833  1.1  christos 
   5834  1.1  christos fi
   5835  1.1  christos 
   5836  1.1  christos 
   5837  1.1  christos fi
   5838  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   5839  1.1  christos echo "${ECHO_T}$ac_cv_path_GREP" >&6
   5840  1.1  christos  GREP="$ac_cv_path_GREP"
   5841  1.1  christos 
   5842  1.1  christos 
   5843  1.1  christos echo "$as_me:$LINENO: checking for egrep" >&5
   5844  1.1  christos echo $ECHO_N "checking for egrep... $ECHO_C" >&6
   5845  1.1  christos if test "${ac_cv_path_EGREP+set}" = set; then
   5846  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5847  1.1  christos else
   5848  1.1  christos   if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1
   5849  1.1  christos    then ac_cv_path_EGREP="$GREP -E"
   5850  1.1  christos    else
   5851  1.1  christos      # Extract the first word of "egrep" to use in msg output
   5852  1.1  christos if test -z "$EGREP"; then
   5853  1.1  christos set dummy egrep; ac_prog_name=$2
   5854  1.1  christos if test "${ac_cv_path_EGREP+set}" = set; then
   5855  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5856  1.1  christos else
   5857  1.1  christos   # Create a temporary directory, and hook for its removal unless debugging.
   5858  1.1  christos $debug ||
   5859  1.1  christos {
   5860  1.1  christos   trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
   5861  1.1  christos   trap '{ (exit 1); exit 1; }' 1 2 13 15
   5862  1.1  christos }
   5863  1.1  christos 
   5864  1.1  christos # Create a (secure) tmp directory for tmp files.
   5865  1.1  christos : ${TMPDIR=/tmp}
   5866  1.1  christos {
   5867  1.1  christos   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
   5868  1.1  christos   test -n "$tmp" && test -d "$tmp"
   5869  1.1  christos }  ||
   5870  1.1  christos {
   5871  1.1  christos   tmp=$TMPDIR/EGREP$$-$RANDOM
   5872  1.1  christos   (umask 077 && mkdir $tmp)
   5873  1.1  christos } ||
   5874  1.1  christos {
   5875  1.1  christos    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   5876  1.1  christos    { (exit 1); exit 1; }
   5877  1.1  christos }
   5878  1.1  christos ac_path_EGREP_found=false
   5879  1.1  christos # Loop through the user's path and test for each of PROGNAME-LIST
   5880  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5881  1.1  christos as_dummy="$PATH:/usr/xpg4/bin"
   5882  1.1  christos for as_dir in $as_dummy
   5883  1.1  christos do
   5884  1.1  christos   IFS=$as_save_IFS
   5885  1.1  christos   test -z "$as_dir" && as_dir=.
   5886  1.1  christos   for ac_prog in egrep; do
   5887  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   5888  1.1  christos     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   5889  1.1  christos     test -f "$ac_path_EGREP" || continue
   5890  1.1  christos     $ac_path_EGREP_found || if $as_executable_p "$ac_path_EGREP"; then
   5891  1.1  christos   # Check for GNU ac_path_EGREP and select it if it is found.
   5892  1.1  christos   # Check for GNU $ac_path_EGREP
   5893  1.1  christos if "$ac_path_EGREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
   5894  1.1  christos   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:
   5895  1.1  christos else
   5896  1.1  christos   ac_count=0
   5897  1.1  christos   echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
   5898  1.1  christos   while :
   5899  1.1  christos   do
   5900  1.1  christos     cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
   5901  1.1  christos     mv "$tmp/conftest.tmp" "$tmp/conftest.in"
   5902  1.1  christos     cp "$tmp/conftest.in" "$tmp/conftest.nl"
   5903  1.1  christos     echo 'EGREP' >> "$tmp/conftest.nl"
   5904  1.1  christos     "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
   5905  1.1  christos     diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
   5906  1.1  christos     ac_count=`expr $ac_count + 1`
   5907  1.1  christos     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   5908  1.1  christos       # Best one so far, save it but keep looking for a better one
   5909  1.1  christos       ac_cv_path_EGREP="$ac_path_EGREP"
   5910  1.1  christos       ac_path_EGREP_max=$ac_count
   5911  1.1  christos     fi
   5912  1.1  christos     # 10*(2^10) chars as input seems more than enough
   5913  1.1  christos     test $ac_count -gt 10 && break
   5914  1.1  christos   done
   5915  1.1  christos fi
   5916  1.1  christos 
   5917  1.1  christos fi
   5918  1.1  christos 
   5919  1.1  christos     $ac_path_EGREP_found && break 3
   5920  1.1  christos   done
   5921  1.1  christos done
   5922  1.1  christos 
   5923  1.1  christos done
   5924  1.1  christos 
   5925  1.1  christos rm -rf "$tmp"
   5926  1.1  christos 
   5927  1.1  christos fi
   5928  1.1  christos 
   5929  1.1  christos EGREP="$ac_cv_path_EGREP"
   5930  1.1  christos if test -z "$EGREP"; then
   5931  1.1  christos   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
   5932  1.1  christos echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
   5933  1.1  christos    { (exit 1); exit 1; }; }
   5934  1.1  christos fi
   5935  1.1  christos 
   5936  1.1  christos fi
   5937  1.1  christos 
   5938  1.1  christos 
   5939  1.1  christos    fi
   5940  1.1  christos fi
   5941  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   5942  1.1  christos echo "${ECHO_T}$ac_cv_path_EGREP" >&6
   5943  1.1  christos  EGREP="$ac_cv_path_EGREP"
   5944  1.1  christos 
   5945  1.1  christos 
   5946  1.1  christos echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   5947  1.1  christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   5948  1.1  christos if test "${ac_cv_header_stdc+set}" = set; then
   5949  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5950  1.1  christos else
   5951  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   5952  1.1  christos /* confdefs.h.  */
   5953  1.1  christos _ACEOF
   5954  1.1  christos cat confdefs.h >>conftest.$ac_ext
   5955  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   5956  1.1  christos /* end confdefs.h.  */
   5957  1.1  christos #include <stdlib.h>
   5958  1.1  christos #include <stdarg.h>
   5959  1.1  christos #include <string.h>
   5960  1.1  christos #include <float.h>
   5961  1.1  christos 
   5962  1.1  christos int
   5963  1.1  christos main ()
   5964  1.1  christos {
   5965  1.1  christos 
   5966  1.1  christos   ;
   5967  1.1  christos   return 0;
   5968  1.1  christos }
   5969  1.1  christos _ACEOF
   5970  1.1  christos rm -f conftest.$ac_objext
   5971  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5972  1.1  christos   (eval $ac_compile) 2>conftest.er1
   5973  1.1  christos   ac_status=$?
   5974  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   5975  1.1  christos   rm -f conftest.er1
   5976  1.1  christos   cat conftest.err >&5
   5977  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5978  1.1  christos   (exit $ac_status); } &&
   5979  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   5980  1.1  christos 			 || test ! -s conftest.err'
   5981  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5982  1.1  christos   (eval $ac_try) 2>&5
   5983  1.1  christos   ac_status=$?
   5984  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5985  1.1  christos   (exit $ac_status); }; } &&
   5986  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   5987  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5988  1.1  christos   (eval $ac_try) 2>&5
   5989  1.1  christos   ac_status=$?
   5990  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5991  1.1  christos   (exit $ac_status); }; }; then
   5992  1.1  christos   ac_cv_header_stdc=yes
   5993  1.1  christos else
   5994  1.1  christos   echo "$as_me: failed program was:" >&5
   5995  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   5996  1.1  christos 
   5997  1.1  christos ac_cv_header_stdc=no
   5998  1.1  christos fi
   5999  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6000  1.1  christos 
   6001  1.1  christos if test $ac_cv_header_stdc = yes; then
   6002  1.1  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   6003  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6004  1.1  christos /* confdefs.h.  */
   6005  1.1  christos _ACEOF
   6006  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6007  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6008  1.1  christos /* end confdefs.h.  */
   6009  1.1  christos #include <string.h>
   6010  1.1  christos 
   6011  1.1  christos _ACEOF
   6012  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6013  1.1  christos   $EGREP "memchr" >/dev/null 2>&1; then
   6014  1.1  christos   :
   6015  1.1  christos else
   6016  1.1  christos   ac_cv_header_stdc=no
   6017  1.1  christos fi
   6018  1.1  christos rm -f conftest*
   6019  1.1  christos 
   6020  1.1  christos fi
   6021  1.1  christos 
   6022  1.1  christos if test $ac_cv_header_stdc = yes; then
   6023  1.1  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   6024  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6025  1.1  christos /* confdefs.h.  */
   6026  1.1  christos _ACEOF
   6027  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6028  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6029  1.1  christos /* end confdefs.h.  */
   6030  1.1  christos #include <stdlib.h>
   6031  1.1  christos 
   6032  1.1  christos _ACEOF
   6033  1.1  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6034  1.1  christos   $EGREP "free" >/dev/null 2>&1; then
   6035  1.1  christos   :
   6036  1.1  christos else
   6037  1.1  christos   ac_cv_header_stdc=no
   6038  1.1  christos fi
   6039  1.1  christos rm -f conftest*
   6040  1.1  christos 
   6041  1.1  christos fi
   6042  1.1  christos 
   6043  1.1  christos if test $ac_cv_header_stdc = yes; then
   6044  1.1  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   6045  1.1  christos   if test "$cross_compiling" = yes; then
   6046  1.1  christos   :
   6047  1.1  christos else
   6048  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6049  1.1  christos /* confdefs.h.  */
   6050  1.1  christos _ACEOF
   6051  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6052  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6053  1.1  christos /* end confdefs.h.  */
   6054  1.1  christos #include <ctype.h>
   6055  1.1  christos #include <stdlib.h>
   6056  1.1  christos #if ((' ' & 0x0FF) == 0x020)
   6057  1.1  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   6058  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   6059  1.1  christos #else
   6060  1.1  christos # define ISLOWER(c) \
   6061  1.1  christos 		   (('a' <= (c) && (c) <= 'i') \
   6062  1.1  christos 		     || ('j' <= (c) && (c) <= 'r') \
   6063  1.1  christos 		     || ('s' <= (c) && (c) <= 'z'))
   6064  1.1  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   6065  1.1  christos #endif
   6066  1.1  christos 
   6067  1.1  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   6068  1.1  christos int
   6069  1.1  christos main ()
   6070  1.1  christos {
   6071  1.1  christos   int i;
   6072  1.1  christos   for (i = 0; i < 256; i++)
   6073  1.1  christos     if (XOR (islower (i), ISLOWER (i))
   6074  1.1  christos 	|| toupper (i) != TOUPPER (i))
   6075  1.1  christos       exit (2);
   6076  1.1  christos   exit (0);
   6077  1.1  christos }
   6078  1.1  christos _ACEOF
   6079  1.1  christos rm -f conftest$ac_exeext
   6080  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6081  1.1  christos   (eval $ac_link) 2>&5
   6082  1.1  christos   ac_status=$?
   6083  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6084  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6085  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6086  1.1  christos   (eval $ac_try) 2>&5
   6087  1.1  christos   ac_status=$?
   6088  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6089  1.1  christos   (exit $ac_status); }; }; then
   6090  1.1  christos   :
   6091  1.1  christos else
   6092  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   6093  1.1  christos echo "$as_me: failed program was:" >&5
   6094  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6095  1.1  christos 
   6096  1.1  christos ( exit $ac_status )
   6097  1.1  christos ac_cv_header_stdc=no
   6098  1.1  christos fi
   6099  1.1  christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6100  1.1  christos fi
   6101  1.1  christos fi
   6102  1.1  christos fi
   6103  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   6104  1.1  christos echo "${ECHO_T}$ac_cv_header_stdc" >&6
   6105  1.1  christos if test $ac_cv_header_stdc = yes; then
   6106  1.1  christos 
   6107  1.1  christos cat >>confdefs.h <<\_ACEOF
   6108  1.1  christos #define STDC_HEADERS 1
   6109  1.1  christos _ACEOF
   6110  1.1  christos 
   6111  1.1  christos fi
   6112  1.1  christos 
   6113  1.1  christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   6114  1.1  christos 
   6115  1.1  christos 
   6116  1.1  christos 
   6117  1.1  christos 
   6118  1.1  christos 
   6119  1.1  christos 
   6120  1.1  christos 
   6121  1.1  christos 
   6122  1.1  christos 
   6123  1.1  christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   6124  1.1  christos 		  inttypes.h stdint.h unistd.h
   6125  1.1  christos do
   6126  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6127  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   6128  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6129  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6130  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6131  1.1  christos else
   6132  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6133  1.1  christos /* confdefs.h.  */
   6134  1.1  christos _ACEOF
   6135  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6136  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6137  1.1  christos /* end confdefs.h.  */
   6138  1.1  christos $ac_includes_default
   6139  1.1  christos 
   6140  1.1  christos #include <$ac_header>
   6141  1.1  christos _ACEOF
   6142  1.1  christos rm -f conftest.$ac_objext
   6143  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6144  1.1  christos   (eval $ac_compile) 2>conftest.er1
   6145  1.1  christos   ac_status=$?
   6146  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6147  1.1  christos   rm -f conftest.er1
   6148  1.1  christos   cat conftest.err >&5
   6149  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6150  1.1  christos   (exit $ac_status); } &&
   6151  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   6152  1.1  christos 			 || test ! -s conftest.err'
   6153  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6154  1.1  christos   (eval $ac_try) 2>&5
   6155  1.1  christos   ac_status=$?
   6156  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6157  1.1  christos   (exit $ac_status); }; } &&
   6158  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   6159  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6160  1.1  christos   (eval $ac_try) 2>&5
   6161  1.1  christos   ac_status=$?
   6162  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6163  1.1  christos   (exit $ac_status); }; }; then
   6164  1.1  christos   eval "$as_ac_Header=yes"
   6165  1.1  christos else
   6166  1.1  christos   echo "$as_me: failed program was:" >&5
   6167  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6168  1.1  christos 
   6169  1.1  christos eval "$as_ac_Header=no"
   6170  1.1  christos fi
   6171  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6172  1.1  christos fi
   6173  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6174  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6175  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6176  1.1  christos   cat >>confdefs.h <<_ACEOF
   6177  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6178  1.1  christos _ACEOF
   6179  1.1  christos 
   6180  1.1  christos fi
   6181  1.1  christos 
   6182  1.1  christos done
   6183  1.1  christos 
   6184  1.1  christos 
   6185  1.1  christos 
   6186  1.1  christos 
   6187  1.1  christos 
   6188  1.1  christos 
   6189  1.1  christos 
   6190  1.1  christos 
   6191  1.1  christos 
   6192  1.1  christos 
   6193  1.1  christos 
   6194  1.1  christos 
   6195  1.1  christos 
   6196  1.1  christos for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
   6197  1.1  christos                   string.h strings.h math.h sys/time.h direct.h process.h
   6198  1.1  christos do
   6199  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6200  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6201  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   6202  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6203  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6204  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6205  1.1  christos fi
   6206  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6207  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6208  1.1  christos else
   6209  1.1  christos   # Is the header compilable?
   6210  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   6211  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   6212  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6213  1.1  christos /* confdefs.h.  */
   6214  1.1  christos _ACEOF
   6215  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6216  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6217  1.1  christos /* end confdefs.h.  */
   6218  1.1  christos $ac_includes_default
   6219  1.1  christos #include <$ac_header>
   6220  1.1  christos _ACEOF
   6221  1.1  christos rm -f conftest.$ac_objext
   6222  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6223  1.1  christos   (eval $ac_compile) 2>conftest.er1
   6224  1.1  christos   ac_status=$?
   6225  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6226  1.1  christos   rm -f conftest.er1
   6227  1.1  christos   cat conftest.err >&5
   6228  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6229  1.1  christos   (exit $ac_status); } &&
   6230  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   6231  1.1  christos 			 || test ! -s conftest.err'
   6232  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6233  1.1  christos   (eval $ac_try) 2>&5
   6234  1.1  christos   ac_status=$?
   6235  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6236  1.1  christos   (exit $ac_status); }; } &&
   6237  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   6238  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6239  1.1  christos   (eval $ac_try) 2>&5
   6240  1.1  christos   ac_status=$?
   6241  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6242  1.1  christos   (exit $ac_status); }; }; then
   6243  1.1  christos   ac_header_compiler=yes
   6244  1.1  christos else
   6245  1.1  christos   echo "$as_me: failed program was:" >&5
   6246  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6247  1.1  christos 
   6248  1.1  christos ac_header_compiler=no
   6249  1.1  christos fi
   6250  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6251  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   6252  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   6253  1.1  christos 
   6254  1.1  christos # Is the header present?
   6255  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   6256  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   6257  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   6258  1.1  christos /* confdefs.h.  */
   6259  1.1  christos _ACEOF
   6260  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6261  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6262  1.1  christos /* end confdefs.h.  */
   6263  1.1  christos #include <$ac_header>
   6264  1.1  christos _ACEOF
   6265  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   6266  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   6267  1.1  christos   ac_status=$?
   6268  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6269  1.1  christos   rm -f conftest.er1
   6270  1.1  christos   cat conftest.err >&5
   6271  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6272  1.1  christos   (exit $ac_status); } >/dev/null; then
   6273  1.1  christos   if test -s conftest.err; then
   6274  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   6275  1.1  christos     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   6276  1.1  christos   else
   6277  1.1  christos     ac_cpp_err=
   6278  1.1  christos   fi
   6279  1.1  christos else
   6280  1.1  christos   ac_cpp_err=yes
   6281  1.1  christos fi
   6282  1.1  christos if test -z "$ac_cpp_err"; then
   6283  1.1  christos   ac_header_preproc=yes
   6284  1.1  christos else
   6285  1.1  christos   echo "$as_me: failed program was:" >&5
   6286  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6287  1.1  christos 
   6288  1.1  christos   ac_header_preproc=no
   6289  1.1  christos fi
   6290  1.1  christos rm -f conftest.err conftest.$ac_ext
   6291  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   6292  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   6293  1.1  christos 
   6294  1.1  christos # So?  What about this header?
   6295  1.1  christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   6296  1.1  christos   yes:no: )
   6297  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   6298  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   6299  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   6300  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   6301  1.1  christos     ac_header_preproc=yes
   6302  1.1  christos     ;;
   6303  1.1  christos   no:yes:* )
   6304  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   6305  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   6306  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   6307  1.1  christos echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   6308  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   6309  1.1  christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   6310  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   6311  1.1  christos echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   6312  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   6313  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   6314  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   6315  1.1  christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   6316  1.1  christos     (
   6317  1.1  christos       cat <<\_ASBOX
   6318  1.1  christos ## ------------------------------------------ ##
   6319  1.1  christos ## Report this to the AC_PACKAGE_NAME lists.  ##
   6320  1.1  christos ## ------------------------------------------ ##
   6321  1.1  christos _ASBOX
   6322  1.1  christos     ) |
   6323  1.1  christos       sed "s/^/$as_me: WARNING:     /" >&2
   6324  1.1  christos     ;;
   6325  1.1  christos esac
   6326  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   6327  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6328  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6329  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6330  1.1  christos else
   6331  1.1  christos   eval "$as_ac_Header=\$ac_header_preproc"
   6332  1.1  christos fi
   6333  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6334  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6335  1.1  christos 
   6336  1.1  christos fi
   6337  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6338  1.1  christos   cat >>confdefs.h <<_ACEOF
   6339  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6340  1.1  christos _ACEOF
   6341  1.1  christos 
   6342  1.1  christos fi
   6343  1.1  christos 
   6344  1.1  christos done
   6345  1.1  christos 
   6346  1.1  christos echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
   6347  1.1  christos echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
   6348  1.1  christos    if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
   6349  1.1  christos    then
   6350  1.1  christos      echo "$as_me:$LINENO: result: yes" >&5
   6351  1.1  christos echo "${ECHO_T}yes" >&6
   6352  1.1  christos 
   6353  1.1  christos cat >>confdefs.h <<\_ACEOF
   6354  1.1  christos #define _SYSV3 1
   6355  1.1  christos _ACEOF
   6356  1.1  christos 
   6357  1.1  christos    else
   6358  1.1  christos      echo "$as_me:$LINENO: result: no" >&5
   6359  1.1  christos echo "${ECHO_T}no" >&6
   6360  1.1  christos    fi
   6361  1.1  christos echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
   6362  1.1  christos echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
   6363  1.1  christos    ac_ext=cc
   6364  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   6365  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6366  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6367  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6368  1.1  christos 
   6369  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   6370  1.1  christos 
   6371  1.1  christos        /* confdefs.h.  */
   6372  1.1  christos _ACEOF
   6373  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6374  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6375  1.1  christos /* end confdefs.h.  */
   6376  1.1  christos 
   6377  1.1  christos 
   6378  1.1  christos #include <stdio.h>
   6379  1.1  christos extern "C" { void fileno(int); }
   6380  1.1  christos 
   6381  1.1  christos 
   6382  1.1  christos int
   6383  1.1  christos main ()
   6384  1.1  christos {
   6385  1.1  christos 
   6386  1.1  christos   ;
   6387  1.1  christos   return 0;
   6388  1.1  christos }
   6389  1.1  christos 
   6390  1.1  christos _ACEOF
   6391  1.1  christos rm -f conftest.$ac_objext
   6392  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6393  1.1  christos   (eval $ac_compile) 2>conftest.er1
   6394  1.1  christos   ac_status=$?
   6395  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6396  1.1  christos   rm -f conftest.er1
   6397  1.1  christos   cat conftest.err >&5
   6398  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6399  1.1  christos   (exit $ac_status); } &&
   6400  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6401  1.1  christos 			 || test ! -s conftest.err'
   6402  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6403  1.1  christos   (eval $ac_try) 2>&5
   6404  1.1  christos   ac_status=$?
   6405  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6406  1.1  christos   (exit $ac_status); }; } &&
   6407  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   6408  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6409  1.1  christos   (eval $ac_try) 2>&5
   6410  1.1  christos   ac_status=$?
   6411  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6412  1.1  christos   (exit $ac_status); }; }; then
   6413  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   6414  1.1  christos echo "${ECHO_T}yes" >&6
   6415  1.1  christos 
   6416  1.1  christos cat >>confdefs.h <<\_ACEOF
   6417  1.1  christos #define _POSIX_SOURCE 1
   6418  1.1  christos _ACEOF
   6419  1.1  christos 
   6420  1.1  christos else
   6421  1.1  christos   echo "$as_me: failed program was:" >&5
   6422  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6423  1.1  christos 
   6424  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   6425  1.1  christos echo "${ECHO_T}no" >&6
   6426  1.1  christos fi
   6427  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6428  1.1  christos    ac_ext=c
   6429  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   6430  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6431  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6432  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6433  1.1  christos 
   6434  1.1  christos 
   6435  1.1  christos # checks for header stuff
   6436  1.1  christos ac_ext=cc
   6437  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   6438  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6439  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6440  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6441  1.1  christos 
   6442  1.1  christos    echo "$as_me:$LINENO: checking for return type of srand" >&5
   6443  1.1  christos echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
   6444  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   6445  1.1  christos 
   6446  1.1  christos        /* confdefs.h.  */
   6447  1.1  christos _ACEOF
   6448  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6449  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6450  1.1  christos /* end confdefs.h.  */
   6451  1.1  christos 
   6452  1.1  christos 
   6453  1.1  christos #include <stdlib.h>
   6454  1.1  christos extern "C" { void srand(unsigned int); }
   6455  1.1  christos 
   6456  1.1  christos 
   6457  1.1  christos int
   6458  1.1  christos main ()
   6459  1.1  christos {
   6460  1.1  christos 
   6461  1.1  christos   ;
   6462  1.1  christos   return 0;
   6463  1.1  christos }
   6464  1.1  christos 
   6465  1.1  christos _ACEOF
   6466  1.1  christos rm -f conftest.$ac_objext
   6467  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6468  1.1  christos   (eval $ac_compile) 2>conftest.er1
   6469  1.1  christos   ac_status=$?
   6470  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6471  1.1  christos   rm -f conftest.er1
   6472  1.1  christos   cat conftest.err >&5
   6473  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6474  1.1  christos   (exit $ac_status); } &&
   6475  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6476  1.1  christos 			 || test ! -s conftest.err'
   6477  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6478  1.1  christos   (eval $ac_try) 2>&5
   6479  1.1  christos   ac_status=$?
   6480  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6481  1.1  christos   (exit $ac_status); }; } &&
   6482  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   6483  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6484  1.1  christos   (eval $ac_try) 2>&5
   6485  1.1  christos   ac_status=$?
   6486  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6487  1.1  christos   (exit $ac_status); }; }; then
   6488  1.1  christos   echo "$as_me:$LINENO: result: void" >&5
   6489  1.1  christos echo "${ECHO_T}void" >&6
   6490  1.1  christos 
   6491  1.1  christos cat >>confdefs.h <<\_ACEOF
   6492  1.1  christos #define RET_TYPE_SRAND_IS_VOID 1
   6493  1.1  christos _ACEOF
   6494  1.1  christos 
   6495  1.1  christos else
   6496  1.1  christos   echo "$as_me: failed program was:" >&5
   6497  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6498  1.1  christos 
   6499  1.1  christos echo "$as_me:$LINENO: result: int" >&5
   6500  1.1  christos echo "${ECHO_T}int" >&6
   6501  1.1  christos fi
   6502  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6503  1.1  christos    ac_ext=c
   6504  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   6505  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6506  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6507  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6508  1.1  christos 
   6509  1.1  christos echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
   6510  1.1  christos echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
   6511  1.1  christos    ac_ext=cc
   6512  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   6513  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6514  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6515  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6516  1.1  christos 
   6517  1.1  christos    if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
   6518  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6519  1.1  christos else
   6520  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6521  1.1  christos 
   6522  1.1  christos 	  /* confdefs.h.  */
   6523  1.1  christos _ACEOF
   6524  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6525  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6526  1.1  christos /* end confdefs.h.  */
   6527  1.1  christos 
   6528  1.1  christos 
   6529  1.1  christos #include <stdio.h>
   6530  1.1  christos #ifdef HAVE_STRING_H
   6531  1.1  christos #include <string.h>
   6532  1.1  christos #endif
   6533  1.1  christos #ifdef HAVE_STRINGS_H
   6534  1.1  christos #include <strings.h>
   6535  1.1  christos #endif
   6536  1.1  christos #ifdef HAVE_STDLIB_H
   6537  1.1  christos #include <stdlib.h>
   6538  1.1  christos #endif
   6539  1.1  christos #ifdef HAVE_SYS_TIME_H
   6540  1.1  christos #include <sys/time.h>
   6541  1.1  christos #endif
   6542  1.1  christos #ifdef HAVE_UNISTD_H
   6543  1.1  christos #include <unistd.h>
   6544  1.1  christos #endif
   6545  1.1  christos #ifdef HAVE_MATH_H
   6546  1.1  christos #include <math.h>
   6547  1.1  christos #endif
   6548  1.1  christos 
   6549  1.1  christos 
   6550  1.1  christos int
   6551  1.1  christos main ()
   6552  1.1  christos {
   6553  1.1  christos 
   6554  1.1  christos 
   6555  1.1  christos #ifndef gettimeofday
   6556  1.1  christos   char *p = (char *) gettimeofday;
   6557  1.1  christos #endif
   6558  1.1  christos 
   6559  1.1  christos 
   6560  1.1  christos   ;
   6561  1.1  christos   return 0;
   6562  1.1  christos }
   6563  1.1  christos 
   6564  1.1  christos _ACEOF
   6565  1.1  christos rm -f conftest.$ac_objext
   6566  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6567  1.1  christos   (eval $ac_compile) 2>conftest.er1
   6568  1.1  christos   ac_status=$?
   6569  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6570  1.1  christos   rm -f conftest.er1
   6571  1.1  christos   cat conftest.err >&5
   6572  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6573  1.1  christos   (exit $ac_status); } &&
   6574  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6575  1.1  christos 			 || test ! -s conftest.err'
   6576  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6577  1.1  christos   (eval $ac_try) 2>&5
   6578  1.1  christos   ac_status=$?
   6579  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6580  1.1  christos   (exit $ac_status); }; } &&
   6581  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   6582  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6583  1.1  christos   (eval $ac_try) 2>&5
   6584  1.1  christos   ac_status=$?
   6585  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6586  1.1  christos   (exit $ac_status); }; }; then
   6587  1.1  christos   groff_cv_decl_needed_gettimeofday=no
   6588  1.1  christos else
   6589  1.1  christos   echo "$as_me: failed program was:" >&5
   6590  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6591  1.1  christos 
   6592  1.1  christos groff_cv_decl_needed_gettimeofday=yes
   6593  1.1  christos fi
   6594  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6595  1.1  christos fi
   6596  1.1  christos 
   6597  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
   6598  1.1  christos echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
   6599  1.1  christos    if test $groff_cv_decl_needed_gettimeofday = yes; then
   6600  1.1  christos 
   6601  1.1  christos cat >>confdefs.h <<\_ACEOF
   6602  1.1  christos #define NEED_DECLARATION_GETTIMEOFDAY 1
   6603  1.1  christos _ACEOF
   6604  1.1  christos 
   6605  1.1  christos    fi
   6606  1.1  christos    ac_ext=c
   6607  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   6608  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6609  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6610  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6611  1.1  christos 
   6612  1.1  christos echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
   6613  1.1  christos echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
   6614  1.1  christos    ac_ext=cc
   6615  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   6616  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6617  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6618  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6619  1.1  christos 
   6620  1.1  christos    if test "${groff_cv_decl_needed_hypot+set}" = set; then
   6621  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6622  1.1  christos else
   6623  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6624  1.1  christos 
   6625  1.1  christos 	  /* confdefs.h.  */
   6626  1.1  christos _ACEOF
   6627  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6628  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6629  1.1  christos /* end confdefs.h.  */
   6630  1.1  christos 
   6631  1.1  christos 
   6632  1.1  christos #include <stdio.h>
   6633  1.1  christos #ifdef HAVE_STRING_H
   6634  1.1  christos #include <string.h>
   6635  1.1  christos #endif
   6636  1.1  christos #ifdef HAVE_STRINGS_H
   6637  1.1  christos #include <strings.h>
   6638  1.1  christos #endif
   6639  1.1  christos #ifdef HAVE_STDLIB_H
   6640  1.1  christos #include <stdlib.h>
   6641  1.1  christos #endif
   6642  1.1  christos #ifdef HAVE_SYS_TIME_H
   6643  1.1  christos #include <sys/time.h>
   6644  1.1  christos #endif
   6645  1.1  christos #ifdef HAVE_UNISTD_H
   6646  1.1  christos #include <unistd.h>
   6647  1.1  christos #endif
   6648  1.1  christos #ifdef HAVE_MATH_H
   6649  1.1  christos #include <math.h>
   6650  1.1  christos #endif
   6651  1.1  christos 
   6652  1.1  christos 
   6653  1.1  christos int
   6654  1.1  christos main ()
   6655  1.1  christos {
   6656  1.1  christos 
   6657  1.1  christos 
   6658  1.1  christos #ifndef hypot
   6659  1.1  christos   char *p = (char *) hypot;
   6660  1.1  christos #endif
   6661  1.1  christos 
   6662  1.1  christos 
   6663  1.1  christos   ;
   6664  1.1  christos   return 0;
   6665  1.1  christos }
   6666  1.1  christos 
   6667  1.1  christos _ACEOF
   6668  1.1  christos rm -f conftest.$ac_objext
   6669  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6670  1.1  christos   (eval $ac_compile) 2>conftest.er1
   6671  1.1  christos   ac_status=$?
   6672  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6673  1.1  christos   rm -f conftest.er1
   6674  1.1  christos   cat conftest.err >&5
   6675  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6676  1.1  christos   (exit $ac_status); } &&
   6677  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6678  1.1  christos 			 || test ! -s conftest.err'
   6679  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6680  1.1  christos   (eval $ac_try) 2>&5
   6681  1.1  christos   ac_status=$?
   6682  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6683  1.1  christos   (exit $ac_status); }; } &&
   6684  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   6685  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6686  1.1  christos   (eval $ac_try) 2>&5
   6687  1.1  christos   ac_status=$?
   6688  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6689  1.1  christos   (exit $ac_status); }; }; then
   6690  1.1  christos   groff_cv_decl_needed_hypot=no
   6691  1.1  christos else
   6692  1.1  christos   echo "$as_me: failed program was:" >&5
   6693  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6694  1.1  christos 
   6695  1.1  christos groff_cv_decl_needed_hypot=yes
   6696  1.1  christos fi
   6697  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6698  1.1  christos fi
   6699  1.1  christos 
   6700  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
   6701  1.1  christos echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
   6702  1.1  christos    if test $groff_cv_decl_needed_hypot = yes; then
   6703  1.1  christos 
   6704  1.1  christos cat >>confdefs.h <<\_ACEOF
   6705  1.1  christos #define NEED_DECLARATION_HYPOT 1
   6706  1.1  christos _ACEOF
   6707  1.1  christos 
   6708  1.1  christos    fi
   6709  1.1  christos    ac_ext=c
   6710  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   6711  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6712  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6713  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6714  1.1  christos 
   6715  1.1  christos echo "$as_me:$LINENO: checking whether popen must be declared" >&5
   6716  1.1  christos echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
   6717  1.1  christos    ac_ext=cc
   6718  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   6719  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6720  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6721  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6722  1.1  christos 
   6723  1.1  christos    if test "${groff_cv_decl_needed_popen+set}" = set; then
   6724  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6725  1.1  christos else
   6726  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6727  1.1  christos 
   6728  1.1  christos 	  /* confdefs.h.  */
   6729  1.1  christos _ACEOF
   6730  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6731  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6732  1.1  christos /* end confdefs.h.  */
   6733  1.1  christos 
   6734  1.1  christos 
   6735  1.1  christos #include <stdio.h>
   6736  1.1  christos #ifdef HAVE_STRING_H
   6737  1.1  christos #include <string.h>
   6738  1.1  christos #endif
   6739  1.1  christos #ifdef HAVE_STRINGS_H
   6740  1.1  christos #include <strings.h>
   6741  1.1  christos #endif
   6742  1.1  christos #ifdef HAVE_STDLIB_H
   6743  1.1  christos #include <stdlib.h>
   6744  1.1  christos #endif
   6745  1.1  christos #ifdef HAVE_SYS_TIME_H
   6746  1.1  christos #include <sys/time.h>
   6747  1.1  christos #endif
   6748  1.1  christos #ifdef HAVE_UNISTD_H
   6749  1.1  christos #include <unistd.h>
   6750  1.1  christos #endif
   6751  1.1  christos #ifdef HAVE_MATH_H
   6752  1.1  christos #include <math.h>
   6753  1.1  christos #endif
   6754  1.1  christos 
   6755  1.1  christos 
   6756  1.1  christos int
   6757  1.1  christos main ()
   6758  1.1  christos {
   6759  1.1  christos 
   6760  1.1  christos 
   6761  1.1  christos #ifndef popen
   6762  1.1  christos   char *p = (char *) popen;
   6763  1.1  christos #endif
   6764  1.1  christos 
   6765  1.1  christos 
   6766  1.1  christos   ;
   6767  1.1  christos   return 0;
   6768  1.1  christos }
   6769  1.1  christos 
   6770  1.1  christos _ACEOF
   6771  1.1  christos rm -f conftest.$ac_objext
   6772  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6773  1.1  christos   (eval $ac_compile) 2>conftest.er1
   6774  1.1  christos   ac_status=$?
   6775  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6776  1.1  christos   rm -f conftest.er1
   6777  1.1  christos   cat conftest.err >&5
   6778  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6779  1.1  christos   (exit $ac_status); } &&
   6780  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6781  1.1  christos 			 || test ! -s conftest.err'
   6782  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6783  1.1  christos   (eval $ac_try) 2>&5
   6784  1.1  christos   ac_status=$?
   6785  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6786  1.1  christos   (exit $ac_status); }; } &&
   6787  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   6788  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6789  1.1  christos   (eval $ac_try) 2>&5
   6790  1.1  christos   ac_status=$?
   6791  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6792  1.1  christos   (exit $ac_status); }; }; then
   6793  1.1  christos   groff_cv_decl_needed_popen=no
   6794  1.1  christos else
   6795  1.1  christos   echo "$as_me: failed program was:" >&5
   6796  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6797  1.1  christos 
   6798  1.1  christos groff_cv_decl_needed_popen=yes
   6799  1.1  christos fi
   6800  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6801  1.1  christos fi
   6802  1.1  christos 
   6803  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
   6804  1.1  christos echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
   6805  1.1  christos    if test $groff_cv_decl_needed_popen = yes; then
   6806  1.1  christos 
   6807  1.1  christos cat >>confdefs.h <<\_ACEOF
   6808  1.1  christos #define NEED_DECLARATION_POPEN 1
   6809  1.1  christos _ACEOF
   6810  1.1  christos 
   6811  1.1  christos    fi
   6812  1.1  christos    ac_ext=c
   6813  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   6814  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6815  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6816  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6817  1.1  christos 
   6818  1.1  christos echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
   6819  1.1  christos echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
   6820  1.1  christos    ac_ext=cc
   6821  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   6822  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6823  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6824  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6825  1.1  christos 
   6826  1.1  christos    if test "${groff_cv_decl_needed_pclose+set}" = set; then
   6827  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6828  1.1  christos else
   6829  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6830  1.1  christos 
   6831  1.1  christos 	  /* confdefs.h.  */
   6832  1.1  christos _ACEOF
   6833  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6834  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6835  1.1  christos /* end confdefs.h.  */
   6836  1.1  christos 
   6837  1.1  christos 
   6838  1.1  christos #include <stdio.h>
   6839  1.1  christos #ifdef HAVE_STRING_H
   6840  1.1  christos #include <string.h>
   6841  1.1  christos #endif
   6842  1.1  christos #ifdef HAVE_STRINGS_H
   6843  1.1  christos #include <strings.h>
   6844  1.1  christos #endif
   6845  1.1  christos #ifdef HAVE_STDLIB_H
   6846  1.1  christos #include <stdlib.h>
   6847  1.1  christos #endif
   6848  1.1  christos #ifdef HAVE_SYS_TIME_H
   6849  1.1  christos #include <sys/time.h>
   6850  1.1  christos #endif
   6851  1.1  christos #ifdef HAVE_UNISTD_H
   6852  1.1  christos #include <unistd.h>
   6853  1.1  christos #endif
   6854  1.1  christos #ifdef HAVE_MATH_H
   6855  1.1  christos #include <math.h>
   6856  1.1  christos #endif
   6857  1.1  christos 
   6858  1.1  christos 
   6859  1.1  christos int
   6860  1.1  christos main ()
   6861  1.1  christos {
   6862  1.1  christos 
   6863  1.1  christos 
   6864  1.1  christos #ifndef pclose
   6865  1.1  christos   char *p = (char *) pclose;
   6866  1.1  christos #endif
   6867  1.1  christos 
   6868  1.1  christos 
   6869  1.1  christos   ;
   6870  1.1  christos   return 0;
   6871  1.1  christos }
   6872  1.1  christos 
   6873  1.1  christos _ACEOF
   6874  1.1  christos rm -f conftest.$ac_objext
   6875  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6876  1.1  christos   (eval $ac_compile) 2>conftest.er1
   6877  1.1  christos   ac_status=$?
   6878  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6879  1.1  christos   rm -f conftest.er1
   6880  1.1  christos   cat conftest.err >&5
   6881  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6882  1.1  christos   (exit $ac_status); } &&
   6883  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6884  1.1  christos 			 || test ! -s conftest.err'
   6885  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6886  1.1  christos   (eval $ac_try) 2>&5
   6887  1.1  christos   ac_status=$?
   6888  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6889  1.1  christos   (exit $ac_status); }; } &&
   6890  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   6891  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6892  1.1  christos   (eval $ac_try) 2>&5
   6893  1.1  christos   ac_status=$?
   6894  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6895  1.1  christos   (exit $ac_status); }; }; then
   6896  1.1  christos   groff_cv_decl_needed_pclose=no
   6897  1.1  christos else
   6898  1.1  christos   echo "$as_me: failed program was:" >&5
   6899  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   6900  1.1  christos 
   6901  1.1  christos groff_cv_decl_needed_pclose=yes
   6902  1.1  christos fi
   6903  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6904  1.1  christos fi
   6905  1.1  christos 
   6906  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
   6907  1.1  christos echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
   6908  1.1  christos    if test $groff_cv_decl_needed_pclose = yes; then
   6909  1.1  christos 
   6910  1.1  christos cat >>confdefs.h <<\_ACEOF
   6911  1.1  christos #define NEED_DECLARATION_PCLOSE 1
   6912  1.1  christos _ACEOF
   6913  1.1  christos 
   6914  1.1  christos    fi
   6915  1.1  christos    ac_ext=c
   6916  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   6917  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6918  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6919  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6920  1.1  christos 
   6921  1.1  christos echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
   6922  1.1  christos echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
   6923  1.1  christos    ac_ext=cc
   6924  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   6925  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6926  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6927  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6928  1.1  christos 
   6929  1.1  christos    if test "${groff_cv_decl_needed_putenv+set}" = set; then
   6930  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6931  1.1  christos else
   6932  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   6933  1.1  christos 
   6934  1.1  christos 	  /* confdefs.h.  */
   6935  1.1  christos _ACEOF
   6936  1.1  christos cat confdefs.h >>conftest.$ac_ext
   6937  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   6938  1.1  christos /* end confdefs.h.  */
   6939  1.1  christos 
   6940  1.1  christos 
   6941  1.1  christos #include <stdio.h>
   6942  1.1  christos #ifdef HAVE_STRING_H
   6943  1.1  christos #include <string.h>
   6944  1.1  christos #endif
   6945  1.1  christos #ifdef HAVE_STRINGS_H
   6946  1.1  christos #include <strings.h>
   6947  1.1  christos #endif
   6948  1.1  christos #ifdef HAVE_STDLIB_H
   6949  1.1  christos #include <stdlib.h>
   6950  1.1  christos #endif
   6951  1.1  christos #ifdef HAVE_SYS_TIME_H
   6952  1.1  christos #include <sys/time.h>
   6953  1.1  christos #endif
   6954  1.1  christos #ifdef HAVE_UNISTD_H
   6955  1.1  christos #include <unistd.h>
   6956  1.1  christos #endif
   6957  1.1  christos #ifdef HAVE_MATH_H
   6958  1.1  christos #include <math.h>
   6959  1.1  christos #endif
   6960  1.1  christos 
   6961  1.1  christos 
   6962  1.1  christos int
   6963  1.1  christos main ()
   6964  1.1  christos {
   6965  1.1  christos 
   6966  1.1  christos 
   6967  1.1  christos #ifndef putenv
   6968  1.1  christos   char *p = (char *) putenv;
   6969  1.1  christos #endif
   6970  1.1  christos 
   6971  1.1  christos 
   6972  1.1  christos   ;
   6973  1.1  christos   return 0;
   6974  1.1  christos }
   6975  1.1  christos 
   6976  1.1  christos _ACEOF
   6977  1.1  christos rm -f conftest.$ac_objext
   6978  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6979  1.1  christos   (eval $ac_compile) 2>conftest.er1
   6980  1.1  christos   ac_status=$?
   6981  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   6982  1.1  christos   rm -f conftest.er1
   6983  1.1  christos   cat conftest.err >&5
   6984  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6985  1.1  christos   (exit $ac_status); } &&
   6986  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6987  1.1  christos 			 || test ! -s conftest.err'
   6988  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6989  1.1  christos   (eval $ac_try) 2>&5
   6990  1.1  christos   ac_status=$?
   6991  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6992  1.1  christos   (exit $ac_status); }; } &&
   6993  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   6994  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6995  1.1  christos   (eval $ac_try) 2>&5
   6996  1.1  christos   ac_status=$?
   6997  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6998  1.1  christos   (exit $ac_status); }; }; then
   6999  1.1  christos   groff_cv_decl_needed_putenv=no
   7000  1.1  christos else
   7001  1.1  christos   echo "$as_me: failed program was:" >&5
   7002  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7003  1.1  christos 
   7004  1.1  christos groff_cv_decl_needed_putenv=yes
   7005  1.1  christos fi
   7006  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7007  1.1  christos fi
   7008  1.1  christos 
   7009  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
   7010  1.1  christos echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
   7011  1.1  christos    if test $groff_cv_decl_needed_putenv = yes; then
   7012  1.1  christos 
   7013  1.1  christos cat >>confdefs.h <<\_ACEOF
   7014  1.1  christos #define NEED_DECLARATION_PUTENV 1
   7015  1.1  christos _ACEOF
   7016  1.1  christos 
   7017  1.1  christos    fi
   7018  1.1  christos    ac_ext=c
   7019  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   7020  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7021  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7022  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7023  1.1  christos 
   7024  1.1  christos echo "$as_me:$LINENO: checking whether rand must be declared" >&5
   7025  1.1  christos echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
   7026  1.1  christos    ac_ext=cc
   7027  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   7028  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7029  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7030  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7031  1.1  christos 
   7032  1.1  christos    if test "${groff_cv_decl_needed_rand+set}" = set; then
   7033  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7034  1.1  christos else
   7035  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7036  1.1  christos 
   7037  1.1  christos 	  /* confdefs.h.  */
   7038  1.1  christos _ACEOF
   7039  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7040  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7041  1.1  christos /* end confdefs.h.  */
   7042  1.1  christos 
   7043  1.1  christos 
   7044  1.1  christos #include <stdio.h>
   7045  1.1  christos #ifdef HAVE_STRING_H
   7046  1.1  christos #include <string.h>
   7047  1.1  christos #endif
   7048  1.1  christos #ifdef HAVE_STRINGS_H
   7049  1.1  christos #include <strings.h>
   7050  1.1  christos #endif
   7051  1.1  christos #ifdef HAVE_STDLIB_H
   7052  1.1  christos #include <stdlib.h>
   7053  1.1  christos #endif
   7054  1.1  christos #ifdef HAVE_SYS_TIME_H
   7055  1.1  christos #include <sys/time.h>
   7056  1.1  christos #endif
   7057  1.1  christos #ifdef HAVE_UNISTD_H
   7058  1.1  christos #include <unistd.h>
   7059  1.1  christos #endif
   7060  1.1  christos #ifdef HAVE_MATH_H
   7061  1.1  christos #include <math.h>
   7062  1.1  christos #endif
   7063  1.1  christos 
   7064  1.1  christos 
   7065  1.1  christos int
   7066  1.1  christos main ()
   7067  1.1  christos {
   7068  1.1  christos 
   7069  1.1  christos 
   7070  1.1  christos #ifndef rand
   7071  1.1  christos   char *p = (char *) rand;
   7072  1.1  christos #endif
   7073  1.1  christos 
   7074  1.1  christos 
   7075  1.1  christos   ;
   7076  1.1  christos   return 0;
   7077  1.1  christos }
   7078  1.1  christos 
   7079  1.1  christos _ACEOF
   7080  1.1  christos rm -f conftest.$ac_objext
   7081  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7082  1.1  christos   (eval $ac_compile) 2>conftest.er1
   7083  1.1  christos   ac_status=$?
   7084  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7085  1.1  christos   rm -f conftest.er1
   7086  1.1  christos   cat conftest.err >&5
   7087  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7088  1.1  christos   (exit $ac_status); } &&
   7089  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7090  1.1  christos 			 || test ! -s conftest.err'
   7091  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7092  1.1  christos   (eval $ac_try) 2>&5
   7093  1.1  christos   ac_status=$?
   7094  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7095  1.1  christos   (exit $ac_status); }; } &&
   7096  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   7097  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7098  1.1  christos   (eval $ac_try) 2>&5
   7099  1.1  christos   ac_status=$?
   7100  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7101  1.1  christos   (exit $ac_status); }; }; then
   7102  1.1  christos   groff_cv_decl_needed_rand=no
   7103  1.1  christos else
   7104  1.1  christos   echo "$as_me: failed program was:" >&5
   7105  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7106  1.1  christos 
   7107  1.1  christos groff_cv_decl_needed_rand=yes
   7108  1.1  christos fi
   7109  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7110  1.1  christos fi
   7111  1.1  christos 
   7112  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
   7113  1.1  christos echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
   7114  1.1  christos    if test $groff_cv_decl_needed_rand = yes; then
   7115  1.1  christos 
   7116  1.1  christos cat >>confdefs.h <<\_ACEOF
   7117  1.1  christos #define NEED_DECLARATION_RAND 1
   7118  1.1  christos _ACEOF
   7119  1.1  christos 
   7120  1.1  christos    fi
   7121  1.1  christos    ac_ext=c
   7122  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   7123  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7124  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7125  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7126  1.1  christos 
   7127  1.1  christos echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
   7128  1.1  christos echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
   7129  1.1  christos    ac_ext=cc
   7130  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   7131  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7132  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7133  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7134  1.1  christos 
   7135  1.1  christos    if test "${groff_cv_decl_needed_snprintf+set}" = set; then
   7136  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7137  1.1  christos else
   7138  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7139  1.1  christos 
   7140  1.1  christos 	  /* confdefs.h.  */
   7141  1.1  christos _ACEOF
   7142  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7143  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7144  1.1  christos /* end confdefs.h.  */
   7145  1.1  christos 
   7146  1.1  christos 
   7147  1.1  christos #include <stdio.h>
   7148  1.1  christos #ifdef HAVE_STRING_H
   7149  1.1  christos #include <string.h>
   7150  1.1  christos #endif
   7151  1.1  christos #ifdef HAVE_STRINGS_H
   7152  1.1  christos #include <strings.h>
   7153  1.1  christos #endif
   7154  1.1  christos #ifdef HAVE_STDLIB_H
   7155  1.1  christos #include <stdlib.h>
   7156  1.1  christos #endif
   7157  1.1  christos #ifdef HAVE_SYS_TIME_H
   7158  1.1  christos #include <sys/time.h>
   7159  1.1  christos #endif
   7160  1.1  christos #ifdef HAVE_UNISTD_H
   7161  1.1  christos #include <unistd.h>
   7162  1.1  christos #endif
   7163  1.1  christos #ifdef HAVE_MATH_H
   7164  1.1  christos #include <math.h>
   7165  1.1  christos #endif
   7166  1.1  christos 
   7167  1.1  christos 
   7168  1.1  christos int
   7169  1.1  christos main ()
   7170  1.1  christos {
   7171  1.1  christos 
   7172  1.1  christos 
   7173  1.1  christos #ifndef snprintf
   7174  1.1  christos   char *p = (char *) snprintf;
   7175  1.1  christos #endif
   7176  1.1  christos 
   7177  1.1  christos 
   7178  1.1  christos   ;
   7179  1.1  christos   return 0;
   7180  1.1  christos }
   7181  1.1  christos 
   7182  1.1  christos _ACEOF
   7183  1.1  christos rm -f conftest.$ac_objext
   7184  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7185  1.1  christos   (eval $ac_compile) 2>conftest.er1
   7186  1.1  christos   ac_status=$?
   7187  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7188  1.1  christos   rm -f conftest.er1
   7189  1.1  christos   cat conftest.err >&5
   7190  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7191  1.1  christos   (exit $ac_status); } &&
   7192  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7193  1.1  christos 			 || test ! -s conftest.err'
   7194  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7195  1.1  christos   (eval $ac_try) 2>&5
   7196  1.1  christos   ac_status=$?
   7197  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7198  1.1  christos   (exit $ac_status); }; } &&
   7199  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   7200  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7201  1.1  christos   (eval $ac_try) 2>&5
   7202  1.1  christos   ac_status=$?
   7203  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7204  1.1  christos   (exit $ac_status); }; }; then
   7205  1.1  christos   groff_cv_decl_needed_snprintf=no
   7206  1.1  christos else
   7207  1.1  christos   echo "$as_me: failed program was:" >&5
   7208  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7209  1.1  christos 
   7210  1.1  christos groff_cv_decl_needed_snprintf=yes
   7211  1.1  christos fi
   7212  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7213  1.1  christos fi
   7214  1.1  christos 
   7215  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
   7216  1.1  christos echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
   7217  1.1  christos    if test $groff_cv_decl_needed_snprintf = yes; then
   7218  1.1  christos 
   7219  1.1  christos cat >>confdefs.h <<\_ACEOF
   7220  1.1  christos #define NEED_DECLARATION_SNPRINTF 1
   7221  1.1  christos _ACEOF
   7222  1.1  christos 
   7223  1.1  christos    fi
   7224  1.1  christos    ac_ext=c
   7225  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   7226  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7227  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7228  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7229  1.1  christos 
   7230  1.1  christos echo "$as_me:$LINENO: checking whether srand must be declared" >&5
   7231  1.1  christos echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
   7232  1.1  christos    ac_ext=cc
   7233  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   7234  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7235  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7236  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7237  1.1  christos 
   7238  1.1  christos    if test "${groff_cv_decl_needed_srand+set}" = set; then
   7239  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7240  1.1  christos else
   7241  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7242  1.1  christos 
   7243  1.1  christos 	  /* confdefs.h.  */
   7244  1.1  christos _ACEOF
   7245  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7246  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7247  1.1  christos /* end confdefs.h.  */
   7248  1.1  christos 
   7249  1.1  christos 
   7250  1.1  christos #include <stdio.h>
   7251  1.1  christos #ifdef HAVE_STRING_H
   7252  1.1  christos #include <string.h>
   7253  1.1  christos #endif
   7254  1.1  christos #ifdef HAVE_STRINGS_H
   7255  1.1  christos #include <strings.h>
   7256  1.1  christos #endif
   7257  1.1  christos #ifdef HAVE_STDLIB_H
   7258  1.1  christos #include <stdlib.h>
   7259  1.1  christos #endif
   7260  1.1  christos #ifdef HAVE_SYS_TIME_H
   7261  1.1  christos #include <sys/time.h>
   7262  1.1  christos #endif
   7263  1.1  christos #ifdef HAVE_UNISTD_H
   7264  1.1  christos #include <unistd.h>
   7265  1.1  christos #endif
   7266  1.1  christos #ifdef HAVE_MATH_H
   7267  1.1  christos #include <math.h>
   7268  1.1  christos #endif
   7269  1.1  christos 
   7270  1.1  christos 
   7271  1.1  christos int
   7272  1.1  christos main ()
   7273  1.1  christos {
   7274  1.1  christos 
   7275  1.1  christos 
   7276  1.1  christos #ifndef srand
   7277  1.1  christos   char *p = (char *) srand;
   7278  1.1  christos #endif
   7279  1.1  christos 
   7280  1.1  christos 
   7281  1.1  christos   ;
   7282  1.1  christos   return 0;
   7283  1.1  christos }
   7284  1.1  christos 
   7285  1.1  christos _ACEOF
   7286  1.1  christos rm -f conftest.$ac_objext
   7287  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7288  1.1  christos   (eval $ac_compile) 2>conftest.er1
   7289  1.1  christos   ac_status=$?
   7290  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7291  1.1  christos   rm -f conftest.er1
   7292  1.1  christos   cat conftest.err >&5
   7293  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7294  1.1  christos   (exit $ac_status); } &&
   7295  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7296  1.1  christos 			 || test ! -s conftest.err'
   7297  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7298  1.1  christos   (eval $ac_try) 2>&5
   7299  1.1  christos   ac_status=$?
   7300  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7301  1.1  christos   (exit $ac_status); }; } &&
   7302  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   7303  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7304  1.1  christos   (eval $ac_try) 2>&5
   7305  1.1  christos   ac_status=$?
   7306  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7307  1.1  christos   (exit $ac_status); }; }; then
   7308  1.1  christos   groff_cv_decl_needed_srand=no
   7309  1.1  christos else
   7310  1.1  christos   echo "$as_me: failed program was:" >&5
   7311  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7312  1.1  christos 
   7313  1.1  christos groff_cv_decl_needed_srand=yes
   7314  1.1  christos fi
   7315  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7316  1.1  christos fi
   7317  1.1  christos 
   7318  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
   7319  1.1  christos echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
   7320  1.1  christos    if test $groff_cv_decl_needed_srand = yes; then
   7321  1.1  christos 
   7322  1.1  christos cat >>confdefs.h <<\_ACEOF
   7323  1.1  christos #define NEED_DECLARATION_SRAND 1
   7324  1.1  christos _ACEOF
   7325  1.1  christos 
   7326  1.1  christos    fi
   7327  1.1  christos    ac_ext=c
   7328  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   7329  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7330  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7331  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7332  1.1  christos 
   7333  1.1  christos echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
   7334  1.1  christos echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
   7335  1.1  christos    ac_ext=cc
   7336  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   7337  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7338  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7339  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7340  1.1  christos 
   7341  1.1  christos    if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
   7342  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7343  1.1  christos else
   7344  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7345  1.1  christos 
   7346  1.1  christos 	  /* confdefs.h.  */
   7347  1.1  christos _ACEOF
   7348  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7349  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7350  1.1  christos /* end confdefs.h.  */
   7351  1.1  christos 
   7352  1.1  christos 
   7353  1.1  christos #include <stdio.h>
   7354  1.1  christos #ifdef HAVE_STRING_H
   7355  1.1  christos #include <string.h>
   7356  1.1  christos #endif
   7357  1.1  christos #ifdef HAVE_STRINGS_H
   7358  1.1  christos #include <strings.h>
   7359  1.1  christos #endif
   7360  1.1  christos #ifdef HAVE_STDLIB_H
   7361  1.1  christos #include <stdlib.h>
   7362  1.1  christos #endif
   7363  1.1  christos #ifdef HAVE_SYS_TIME_H
   7364  1.1  christos #include <sys/time.h>
   7365  1.1  christos #endif
   7366  1.1  christos #ifdef HAVE_UNISTD_H
   7367  1.1  christos #include <unistd.h>
   7368  1.1  christos #endif
   7369  1.1  christos #ifdef HAVE_MATH_H
   7370  1.1  christos #include <math.h>
   7371  1.1  christos #endif
   7372  1.1  christos 
   7373  1.1  christos 
   7374  1.1  christos int
   7375  1.1  christos main ()
   7376  1.1  christos {
   7377  1.1  christos 
   7378  1.1  christos 
   7379  1.1  christos #ifndef strcasecmp
   7380  1.1  christos   char *p = (char *) strcasecmp;
   7381  1.1  christos #endif
   7382  1.1  christos 
   7383  1.1  christos 
   7384  1.1  christos   ;
   7385  1.1  christos   return 0;
   7386  1.1  christos }
   7387  1.1  christos 
   7388  1.1  christos _ACEOF
   7389  1.1  christos rm -f conftest.$ac_objext
   7390  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7391  1.1  christos   (eval $ac_compile) 2>conftest.er1
   7392  1.1  christos   ac_status=$?
   7393  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7394  1.1  christos   rm -f conftest.er1
   7395  1.1  christos   cat conftest.err >&5
   7396  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7397  1.1  christos   (exit $ac_status); } &&
   7398  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7399  1.1  christos 			 || test ! -s conftest.err'
   7400  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7401  1.1  christos   (eval $ac_try) 2>&5
   7402  1.1  christos   ac_status=$?
   7403  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7404  1.1  christos   (exit $ac_status); }; } &&
   7405  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   7406  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7407  1.1  christos   (eval $ac_try) 2>&5
   7408  1.1  christos   ac_status=$?
   7409  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7410  1.1  christos   (exit $ac_status); }; }; then
   7411  1.1  christos   groff_cv_decl_needed_strcasecmp=no
   7412  1.1  christos else
   7413  1.1  christos   echo "$as_me: failed program was:" >&5
   7414  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7415  1.1  christos 
   7416  1.1  christos groff_cv_decl_needed_strcasecmp=yes
   7417  1.1  christos fi
   7418  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7419  1.1  christos fi
   7420  1.1  christos 
   7421  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
   7422  1.1  christos echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
   7423  1.1  christos    if test $groff_cv_decl_needed_strcasecmp = yes; then
   7424  1.1  christos 
   7425  1.1  christos cat >>confdefs.h <<\_ACEOF
   7426  1.1  christos #define NEED_DECLARATION_STRCASECMP 1
   7427  1.1  christos _ACEOF
   7428  1.1  christos 
   7429  1.1  christos    fi
   7430  1.1  christos    ac_ext=c
   7431  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   7432  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7433  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7434  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7435  1.1  christos 
   7436  1.1  christos echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
   7437  1.1  christos echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
   7438  1.1  christos    ac_ext=cc
   7439  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   7440  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7441  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7442  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7443  1.1  christos 
   7444  1.1  christos    if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
   7445  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7446  1.1  christos else
   7447  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7448  1.1  christos 
   7449  1.1  christos 	  /* confdefs.h.  */
   7450  1.1  christos _ACEOF
   7451  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7452  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7453  1.1  christos /* end confdefs.h.  */
   7454  1.1  christos 
   7455  1.1  christos 
   7456  1.1  christos #include <stdio.h>
   7457  1.1  christos #ifdef HAVE_STRING_H
   7458  1.1  christos #include <string.h>
   7459  1.1  christos #endif
   7460  1.1  christos #ifdef HAVE_STRINGS_H
   7461  1.1  christos #include <strings.h>
   7462  1.1  christos #endif
   7463  1.1  christos #ifdef HAVE_STDLIB_H
   7464  1.1  christos #include <stdlib.h>
   7465  1.1  christos #endif
   7466  1.1  christos #ifdef HAVE_SYS_TIME_H
   7467  1.1  christos #include <sys/time.h>
   7468  1.1  christos #endif
   7469  1.1  christos #ifdef HAVE_UNISTD_H
   7470  1.1  christos #include <unistd.h>
   7471  1.1  christos #endif
   7472  1.1  christos #ifdef HAVE_MATH_H
   7473  1.1  christos #include <math.h>
   7474  1.1  christos #endif
   7475  1.1  christos 
   7476  1.1  christos 
   7477  1.1  christos int
   7478  1.1  christos main ()
   7479  1.1  christos {
   7480  1.1  christos 
   7481  1.1  christos 
   7482  1.1  christos #ifndef strncasecmp
   7483  1.1  christos   char *p = (char *) strncasecmp;
   7484  1.1  christos #endif
   7485  1.1  christos 
   7486  1.1  christos 
   7487  1.1  christos   ;
   7488  1.1  christos   return 0;
   7489  1.1  christos }
   7490  1.1  christos 
   7491  1.1  christos _ACEOF
   7492  1.1  christos rm -f conftest.$ac_objext
   7493  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7494  1.1  christos   (eval $ac_compile) 2>conftest.er1
   7495  1.1  christos   ac_status=$?
   7496  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7497  1.1  christos   rm -f conftest.er1
   7498  1.1  christos   cat conftest.err >&5
   7499  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7500  1.1  christos   (exit $ac_status); } &&
   7501  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7502  1.1  christos 			 || test ! -s conftest.err'
   7503  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7504  1.1  christos   (eval $ac_try) 2>&5
   7505  1.1  christos   ac_status=$?
   7506  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7507  1.1  christos   (exit $ac_status); }; } &&
   7508  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   7509  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7510  1.1  christos   (eval $ac_try) 2>&5
   7511  1.1  christos   ac_status=$?
   7512  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7513  1.1  christos   (exit $ac_status); }; }; then
   7514  1.1  christos   groff_cv_decl_needed_strncasecmp=no
   7515  1.1  christos else
   7516  1.1  christos   echo "$as_me: failed program was:" >&5
   7517  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7518  1.1  christos 
   7519  1.1  christos groff_cv_decl_needed_strncasecmp=yes
   7520  1.1  christos fi
   7521  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7522  1.1  christos fi
   7523  1.1  christos 
   7524  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
   7525  1.1  christos echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
   7526  1.1  christos    if test $groff_cv_decl_needed_strncasecmp = yes; then
   7527  1.1  christos 
   7528  1.1  christos cat >>confdefs.h <<\_ACEOF
   7529  1.1  christos #define NEED_DECLARATION_STRNCASECMP 1
   7530  1.1  christos _ACEOF
   7531  1.1  christos 
   7532  1.1  christos    fi
   7533  1.1  christos    ac_ext=c
   7534  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   7535  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7536  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7537  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7538  1.1  christos 
   7539  1.1  christos echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
   7540  1.1  christos echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
   7541  1.1  christos    ac_ext=cc
   7542  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   7543  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7544  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7545  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7546  1.1  christos 
   7547  1.1  christos    if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
   7548  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7549  1.1  christos else
   7550  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7551  1.1  christos 
   7552  1.1  christos 	  /* confdefs.h.  */
   7553  1.1  christos _ACEOF
   7554  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7555  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7556  1.1  christos /* end confdefs.h.  */
   7557  1.1  christos 
   7558  1.1  christos 
   7559  1.1  christos #include <stdio.h>
   7560  1.1  christos #ifdef HAVE_STRING_H
   7561  1.1  christos #include <string.h>
   7562  1.1  christos #endif
   7563  1.1  christos #ifdef HAVE_STRINGS_H
   7564  1.1  christos #include <strings.h>
   7565  1.1  christos #endif
   7566  1.1  christos #ifdef HAVE_STDLIB_H
   7567  1.1  christos #include <stdlib.h>
   7568  1.1  christos #endif
   7569  1.1  christos #ifdef HAVE_SYS_TIME_H
   7570  1.1  christos #include <sys/time.h>
   7571  1.1  christos #endif
   7572  1.1  christos #ifdef HAVE_UNISTD_H
   7573  1.1  christos #include <unistd.h>
   7574  1.1  christos #endif
   7575  1.1  christos #ifdef HAVE_MATH_H
   7576  1.1  christos #include <math.h>
   7577  1.1  christos #endif
   7578  1.1  christos 
   7579  1.1  christos 
   7580  1.1  christos int
   7581  1.1  christos main ()
   7582  1.1  christos {
   7583  1.1  christos 
   7584  1.1  christos 
   7585  1.1  christos #ifndef vfprintf
   7586  1.1  christos   char *p = (char *) vfprintf;
   7587  1.1  christos #endif
   7588  1.1  christos 
   7589  1.1  christos 
   7590  1.1  christos   ;
   7591  1.1  christos   return 0;
   7592  1.1  christos }
   7593  1.1  christos 
   7594  1.1  christos _ACEOF
   7595  1.1  christos rm -f conftest.$ac_objext
   7596  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7597  1.1  christos   (eval $ac_compile) 2>conftest.er1
   7598  1.1  christos   ac_status=$?
   7599  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7600  1.1  christos   rm -f conftest.er1
   7601  1.1  christos   cat conftest.err >&5
   7602  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7603  1.1  christos   (exit $ac_status); } &&
   7604  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7605  1.1  christos 			 || test ! -s conftest.err'
   7606  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7607  1.1  christos   (eval $ac_try) 2>&5
   7608  1.1  christos   ac_status=$?
   7609  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7610  1.1  christos   (exit $ac_status); }; } &&
   7611  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   7612  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7613  1.1  christos   (eval $ac_try) 2>&5
   7614  1.1  christos   ac_status=$?
   7615  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7616  1.1  christos   (exit $ac_status); }; }; then
   7617  1.1  christos   groff_cv_decl_needed_vfprintf=no
   7618  1.1  christos else
   7619  1.1  christos   echo "$as_me: failed program was:" >&5
   7620  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7621  1.1  christos 
   7622  1.1  christos groff_cv_decl_needed_vfprintf=yes
   7623  1.1  christos fi
   7624  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7625  1.1  christos fi
   7626  1.1  christos 
   7627  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
   7628  1.1  christos echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
   7629  1.1  christos    if test $groff_cv_decl_needed_vfprintf = yes; then
   7630  1.1  christos 
   7631  1.1  christos cat >>confdefs.h <<\_ACEOF
   7632  1.1  christos #define NEED_DECLARATION_VFPRINTF 1
   7633  1.1  christos _ACEOF
   7634  1.1  christos 
   7635  1.1  christos    fi
   7636  1.1  christos    ac_ext=c
   7637  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   7638  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7639  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7640  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7641  1.1  christos 
   7642  1.1  christos echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
   7643  1.1  christos echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
   7644  1.1  christos    ac_ext=cc
   7645  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   7646  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7647  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7648  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7649  1.1  christos 
   7650  1.1  christos    if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
   7651  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   7652  1.1  christos else
   7653  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   7654  1.1  christos 
   7655  1.1  christos 	  /* confdefs.h.  */
   7656  1.1  christos _ACEOF
   7657  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7658  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7659  1.1  christos /* end confdefs.h.  */
   7660  1.1  christos 
   7661  1.1  christos 
   7662  1.1  christos #include <stdio.h>
   7663  1.1  christos #ifdef HAVE_STRING_H
   7664  1.1  christos #include <string.h>
   7665  1.1  christos #endif
   7666  1.1  christos #ifdef HAVE_STRINGS_H
   7667  1.1  christos #include <strings.h>
   7668  1.1  christos #endif
   7669  1.1  christos #ifdef HAVE_STDLIB_H
   7670  1.1  christos #include <stdlib.h>
   7671  1.1  christos #endif
   7672  1.1  christos #ifdef HAVE_SYS_TIME_H
   7673  1.1  christos #include <sys/time.h>
   7674  1.1  christos #endif
   7675  1.1  christos #ifdef HAVE_UNISTD_H
   7676  1.1  christos #include <unistd.h>
   7677  1.1  christos #endif
   7678  1.1  christos #ifdef HAVE_MATH_H
   7679  1.1  christos #include <math.h>
   7680  1.1  christos #endif
   7681  1.1  christos 
   7682  1.1  christos 
   7683  1.1  christos int
   7684  1.1  christos main ()
   7685  1.1  christos {
   7686  1.1  christos 
   7687  1.1  christos 
   7688  1.1  christos #ifndef vsnprintf
   7689  1.1  christos   char *p = (char *) vsnprintf;
   7690  1.1  christos #endif
   7691  1.1  christos 
   7692  1.1  christos 
   7693  1.1  christos   ;
   7694  1.1  christos   return 0;
   7695  1.1  christos }
   7696  1.1  christos 
   7697  1.1  christos _ACEOF
   7698  1.1  christos rm -f conftest.$ac_objext
   7699  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7700  1.1  christos   (eval $ac_compile) 2>conftest.er1
   7701  1.1  christos   ac_status=$?
   7702  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7703  1.1  christos   rm -f conftest.er1
   7704  1.1  christos   cat conftest.err >&5
   7705  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7706  1.1  christos   (exit $ac_status); } &&
   7707  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7708  1.1  christos 			 || test ! -s conftest.err'
   7709  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7710  1.1  christos   (eval $ac_try) 2>&5
   7711  1.1  christos   ac_status=$?
   7712  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7713  1.1  christos   (exit $ac_status); }; } &&
   7714  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   7715  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7716  1.1  christos   (eval $ac_try) 2>&5
   7717  1.1  christos   ac_status=$?
   7718  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7719  1.1  christos   (exit $ac_status); }; }; then
   7720  1.1  christos   groff_cv_decl_needed_vsnprintf=no
   7721  1.1  christos else
   7722  1.1  christos   echo "$as_me: failed program was:" >&5
   7723  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7724  1.1  christos 
   7725  1.1  christos groff_cv_decl_needed_vsnprintf=yes
   7726  1.1  christos fi
   7727  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7728  1.1  christos fi
   7729  1.1  christos 
   7730  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
   7731  1.1  christos echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
   7732  1.1  christos    if test $groff_cv_decl_needed_vsnprintf = yes; then
   7733  1.1  christos 
   7734  1.1  christos cat >>confdefs.h <<\_ACEOF
   7735  1.1  christos #define NEED_DECLARATION_VSNPRINTF 1
   7736  1.1  christos _ACEOF
   7737  1.1  christos 
   7738  1.1  christos    fi
   7739  1.1  christos    ac_ext=c
   7740  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   7741  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7742  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7743  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7744  1.1  christos 
   7745  1.1  christos ac_ext=cc
   7746  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   7747  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7748  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7749  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7750  1.1  christos 
   7751  1.1  christos    echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
   7752  1.1  christos echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
   7753  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   7754  1.1  christos 
   7755  1.1  christos        /* confdefs.h.  */
   7756  1.1  christos _ACEOF
   7757  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7758  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7759  1.1  christos /* end confdefs.h.  */
   7760  1.1  christos 
   7761  1.1  christos 
   7762  1.1  christos #include <errno.h>
   7763  1.1  christos #include <stdio.h>
   7764  1.1  christos #include <stdlib.h>
   7765  1.1  christos 
   7766  1.1  christos 
   7767  1.1  christos int
   7768  1.1  christos main ()
   7769  1.1  christos {
   7770  1.1  christos 
   7771  1.1  christos 
   7772  1.1  christos int k;
   7773  1.1  christos k = sys_nerr;
   7774  1.1  christos 
   7775  1.1  christos 
   7776  1.1  christos   ;
   7777  1.1  christos   return 0;
   7778  1.1  christos }
   7779  1.1  christos 
   7780  1.1  christos _ACEOF
   7781  1.1  christos rm -f conftest.$ac_objext
   7782  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7783  1.1  christos   (eval $ac_compile) 2>conftest.er1
   7784  1.1  christos   ac_status=$?
   7785  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7786  1.1  christos   rm -f conftest.er1
   7787  1.1  christos   cat conftest.err >&5
   7788  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7789  1.1  christos   (exit $ac_status); } &&
   7790  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7791  1.1  christos 			 || test ! -s conftest.err'
   7792  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7793  1.1  christos   (eval $ac_try) 2>&5
   7794  1.1  christos   ac_status=$?
   7795  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7796  1.1  christos   (exit $ac_status); }; } &&
   7797  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   7798  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7799  1.1  christos   (eval $ac_try) 2>&5
   7800  1.1  christos   ac_status=$?
   7801  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7802  1.1  christos   (exit $ac_status); }; }; then
   7803  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   7804  1.1  christos echo "${ECHO_T}yes" >&6
   7805  1.1  christos 
   7806  1.1  christos cat >>confdefs.h <<\_ACEOF
   7807  1.1  christos #define HAVE_SYS_NERR 1
   7808  1.1  christos _ACEOF
   7809  1.1  christos 
   7810  1.1  christos else
   7811  1.1  christos   echo "$as_me: failed program was:" >&5
   7812  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7813  1.1  christos 
   7814  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   7815  1.1  christos echo "${ECHO_T}no" >&6
   7816  1.1  christos fi
   7817  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7818  1.1  christos    ac_ext=c
   7819  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   7820  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7821  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7822  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7823  1.1  christos 
   7824  1.1  christos echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
   7825  1.1  christos echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
   7826  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   7827  1.1  christos 
   7828  1.1  christos        /* confdefs.h.  */
   7829  1.1  christos _ACEOF
   7830  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7831  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7832  1.1  christos /* end confdefs.h.  */
   7833  1.1  christos 
   7834  1.1  christos 
   7835  1.1  christos #include <errno.h>
   7836  1.1  christos #include <stdio.h>
   7837  1.1  christos #include <stdlib.h>
   7838  1.1  christos 
   7839  1.1  christos 
   7840  1.1  christos int
   7841  1.1  christos main ()
   7842  1.1  christos {
   7843  1.1  christos 
   7844  1.1  christos 
   7845  1.1  christos int k;
   7846  1.1  christos k = (int)sys_errlist[0];
   7847  1.1  christos 
   7848  1.1  christos 
   7849  1.1  christos   ;
   7850  1.1  christos   return 0;
   7851  1.1  christos }
   7852  1.1  christos 
   7853  1.1  christos _ACEOF
   7854  1.1  christos rm -f conftest.$ac_objext
   7855  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7856  1.1  christos   (eval $ac_compile) 2>conftest.er1
   7857  1.1  christos   ac_status=$?
   7858  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7859  1.1  christos   rm -f conftest.er1
   7860  1.1  christos   cat conftest.err >&5
   7861  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7862  1.1  christos   (exit $ac_status); } &&
   7863  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   7864  1.1  christos 			 || test ! -s conftest.err'
   7865  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7866  1.1  christos   (eval $ac_try) 2>&5
   7867  1.1  christos   ac_status=$?
   7868  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7869  1.1  christos   (exit $ac_status); }; } &&
   7870  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   7871  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7872  1.1  christos   (eval $ac_try) 2>&5
   7873  1.1  christos   ac_status=$?
   7874  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7875  1.1  christos   (exit $ac_status); }; }; then
   7876  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   7877  1.1  christos echo "${ECHO_T}yes" >&6
   7878  1.1  christos 
   7879  1.1  christos cat >>confdefs.h <<\_ACEOF
   7880  1.1  christos #define HAVE_SYS_ERRLIST 1
   7881  1.1  christos _ACEOF
   7882  1.1  christos 
   7883  1.1  christos else
   7884  1.1  christos   echo "$as_me: failed program was:" >&5
   7885  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7886  1.1  christos 
   7887  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   7888  1.1  christos echo "${ECHO_T}no" >&6
   7889  1.1  christos fi
   7890  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7891  1.1  christos ac_ext=cc
   7892  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   7893  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7894  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7895  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7896  1.1  christos 
   7897  1.1  christos    echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
   7898  1.1  christos echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
   7899  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   7900  1.1  christos 
   7901  1.1  christos        /* confdefs.h.  */
   7902  1.1  christos _ACEOF
   7903  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7904  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7905  1.1  christos /* end confdefs.h.  */
   7906  1.1  christos 
   7907  1.1  christos 
   7908  1.1  christos #include <osfcn.h>
   7909  1.1  christos 
   7910  1.1  christos 
   7911  1.1  christos int
   7912  1.1  christos main ()
   7913  1.1  christos {
   7914  1.1  christos 
   7915  1.1  christos 
   7916  1.1  christos read(0, 0, 0);
   7917  1.1  christos open(0, 0);
   7918  1.1  christos 
   7919  1.1  christos 
   7920  1.1  christos   ;
   7921  1.1  christos   return 0;
   7922  1.1  christos }
   7923  1.1  christos 
   7924  1.1  christos _ACEOF
   7925  1.1  christos rm -f conftest.$ac_objext
   7926  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7927  1.1  christos   (eval $ac_compile) 2>conftest.er1
   7928  1.1  christos   ac_status=$?
   7929  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   7930  1.1  christos   rm -f conftest.er1
   7931  1.1  christos   cat conftest.err >&5
   7932  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7933  1.1  christos   (exit $ac_status); } &&
   7934  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7935  1.1  christos 			 || test ! -s conftest.err'
   7936  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7937  1.1  christos   (eval $ac_try) 2>&5
   7938  1.1  christos   ac_status=$?
   7939  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7940  1.1  christos   (exit $ac_status); }; } &&
   7941  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   7942  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7943  1.1  christos   (eval $ac_try) 2>&5
   7944  1.1  christos   ac_status=$?
   7945  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7946  1.1  christos   (exit $ac_status); }; }; then
   7947  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   7948  1.1  christos echo "${ECHO_T}yes" >&6
   7949  1.1  christos 
   7950  1.1  christos cat >>confdefs.h <<\_ACEOF
   7951  1.1  christos #define HAVE_CC_OSFCN_H 1
   7952  1.1  christos _ACEOF
   7953  1.1  christos 
   7954  1.1  christos else
   7955  1.1  christos   echo "$as_me: failed program was:" >&5
   7956  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   7957  1.1  christos 
   7958  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   7959  1.1  christos echo "${ECHO_T}no" >&6
   7960  1.1  christos fi
   7961  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7962  1.1  christos    ac_ext=c
   7963  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   7964  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7965  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7966  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7967  1.1  christos 
   7968  1.1  christos ac_ext=cc
   7969  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   7970  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7971  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7972  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7973  1.1  christos 
   7974  1.1  christos    echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
   7975  1.1  christos echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
   7976  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   7977  1.1  christos 
   7978  1.1  christos        /* confdefs.h.  */
   7979  1.1  christos _ACEOF
   7980  1.1  christos cat confdefs.h >>conftest.$ac_ext
   7981  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   7982  1.1  christos /* end confdefs.h.  */
   7983  1.1  christos 
   7984  1.1  christos 
   7985  1.1  christos #include <limits.h>
   7986  1.1  christos 
   7987  1.1  christos 
   7988  1.1  christos int
   7989  1.1  christos main ()
   7990  1.1  christos {
   7991  1.1  christos 
   7992  1.1  christos 
   7993  1.1  christos int x = INT_MIN;
   7994  1.1  christos int y = INT_MAX;
   7995  1.1  christos int z = UCHAR_MAX;
   7996  1.1  christos 
   7997  1.1  christos 
   7998  1.1  christos   ;
   7999  1.1  christos   return 0;
   8000  1.1  christos }
   8001  1.1  christos 
   8002  1.1  christos _ACEOF
   8003  1.1  christos rm -f conftest.$ac_objext
   8004  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8005  1.1  christos   (eval $ac_compile) 2>conftest.er1
   8006  1.1  christos   ac_status=$?
   8007  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8008  1.1  christos   rm -f conftest.er1
   8009  1.1  christos   cat conftest.err >&5
   8010  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8011  1.1  christos   (exit $ac_status); } &&
   8012  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   8013  1.1  christos 			 || test ! -s conftest.err'
   8014  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8015  1.1  christos   (eval $ac_try) 2>&5
   8016  1.1  christos   ac_status=$?
   8017  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8018  1.1  christos   (exit $ac_status); }; } &&
   8019  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   8020  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8021  1.1  christos   (eval $ac_try) 2>&5
   8022  1.1  christos   ac_status=$?
   8023  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8024  1.1  christos   (exit $ac_status); }; }; then
   8025  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   8026  1.1  christos echo "${ECHO_T}yes" >&6
   8027  1.1  christos 
   8028  1.1  christos cat >>confdefs.h <<\_ACEOF
   8029  1.1  christos #define HAVE_CC_LIMITS_H 1
   8030  1.1  christos _ACEOF
   8031  1.1  christos 
   8032  1.1  christos else
   8033  1.1  christos   echo "$as_me: failed program was:" >&5
   8034  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8035  1.1  christos 
   8036  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   8037  1.1  christos echo "${ECHO_T}no" >&6
   8038  1.1  christos fi
   8039  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8040  1.1  christos    ac_ext=c
   8041  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   8042  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8043  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8044  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8045  1.1  christos 
   8046  1.1  christos ac_ext=cc
   8047  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   8048  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8049  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8050  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8051  1.1  christos 
   8052  1.1  christos    echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
   8053  1.1  christos echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
   8054  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   8055  1.1  christos 
   8056  1.1  christos        /* confdefs.h.  */
   8057  1.1  christos _ACEOF
   8058  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8059  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8060  1.1  christos /* end confdefs.h.  */
   8061  1.1  christos 
   8062  1.1  christos 
   8063  1.1  christos #include <sys/types.h>
   8064  1.1  christos #include <inttypes.h>
   8065  1.1  christos 
   8066  1.1  christos 
   8067  1.1  christos int
   8068  1.1  christos main ()
   8069  1.1  christos {
   8070  1.1  christos 
   8071  1.1  christos 
   8072  1.1  christos uintmax_t i = (uintmax_t)-1;
   8073  1.1  christos 
   8074  1.1  christos 
   8075  1.1  christos   ;
   8076  1.1  christos   return 0;
   8077  1.1  christos }
   8078  1.1  christos 
   8079  1.1  christos _ACEOF
   8080  1.1  christos rm -f conftest.$ac_objext
   8081  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8082  1.1  christos   (eval $ac_compile) 2>conftest.er1
   8083  1.1  christos   ac_status=$?
   8084  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8085  1.1  christos   rm -f conftest.er1
   8086  1.1  christos   cat conftest.err >&5
   8087  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8088  1.1  christos   (exit $ac_status); } &&
   8089  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   8090  1.1  christos 			 || test ! -s conftest.err'
   8091  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8092  1.1  christos   (eval $ac_try) 2>&5
   8093  1.1  christos   ac_status=$?
   8094  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8095  1.1  christos   (exit $ac_status); }; } &&
   8096  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   8097  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8098  1.1  christos   (eval $ac_try) 2>&5
   8099  1.1  christos   ac_status=$?
   8100  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8101  1.1  christos   (exit $ac_status); }; }; then
   8102  1.1  christos   groff_cv_header_inttypes_h=yes
   8103  1.1  christos 
   8104  1.1  christos cat >>confdefs.h <<\_ACEOF
   8105  1.1  christos #define HAVE_CC_INTTYPES_H 1
   8106  1.1  christos _ACEOF
   8107  1.1  christos 
   8108  1.1  christos else
   8109  1.1  christos   echo "$as_me: failed program was:" >&5
   8110  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8111  1.1  christos 
   8112  1.1  christos groff_cv_header_inttypes_h=no
   8113  1.1  christos fi
   8114  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8115  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
   8116  1.1  christos echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
   8117  1.1  christos    ac_ext=c
   8118  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   8119  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8120  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8121  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8122  1.1  christos 
   8123  1.1  christos 
   8124  1.1  christos # checks for typedefs
   8125  1.1  christos ac_ext=cc
   8126  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   8127  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8128  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8129  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8130  1.1  christos 
   8131  1.1  christos    echo "$as_me:$LINENO: checking for unsigned long long" >&5
   8132  1.1  christos echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
   8133  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   8134  1.1  christos 
   8135  1.1  christos        /* confdefs.h.  */
   8136  1.1  christos _ACEOF
   8137  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8138  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8139  1.1  christos /* end confdefs.h.  */
   8140  1.1  christos 
   8141  1.1  christos 
   8142  1.1  christos unsigned long long ull = 1;
   8143  1.1  christos int i = 63;
   8144  1.1  christos unsigned long long ullmax = (unsigned long long)-1;
   8145  1.1  christos 
   8146  1.1  christos 
   8147  1.1  christos int
   8148  1.1  christos main ()
   8149  1.1  christos {
   8150  1.1  christos 
   8151  1.1  christos 
   8152  1.1  christos return ull << i | ull >> i | ullmax / ull | ullmax % ull;
   8153  1.1  christos 
   8154  1.1  christos 
   8155  1.1  christos   ;
   8156  1.1  christos   return 0;
   8157  1.1  christos }
   8158  1.1  christos 
   8159  1.1  christos _ACEOF
   8160  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8161  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8162  1.1  christos   (eval $ac_link) 2>conftest.er1
   8163  1.1  christos   ac_status=$?
   8164  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8165  1.1  christos   rm -f conftest.er1
   8166  1.1  christos   cat conftest.err >&5
   8167  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8168  1.1  christos   (exit $ac_status); } &&
   8169  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   8170  1.1  christos 			 || test ! -s conftest.err'
   8171  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8172  1.1  christos   (eval $ac_try) 2>&5
   8173  1.1  christos   ac_status=$?
   8174  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8175  1.1  christos   (exit $ac_status); }; } &&
   8176  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   8177  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8178  1.1  christos   (eval $ac_try) 2>&5
   8179  1.1  christos   ac_status=$?
   8180  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8181  1.1  christos   (exit $ac_status); }; }; then
   8182  1.1  christos   groff_cv_type_unsigned_long_long=yes
   8183  1.1  christos else
   8184  1.1  christos   echo "$as_me: failed program was:" >&5
   8185  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8186  1.1  christos 
   8187  1.1  christos groff_cv_type_unsigned_long_long=no
   8188  1.1  christos fi
   8189  1.1  christos rm -f conftest.err conftest.$ac_objext \
   8190  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   8191  1.1  christos    echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
   8192  1.1  christos echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
   8193  1.1  christos    ac_ext=c
   8194  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   8195  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8196  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8197  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8198  1.1  christos 
   8199  1.1  christos 
   8200  1.1  christos    if test $groff_cv_header_inttypes_h = no; then
   8201  1.1  christos 
   8202  1.1  christos      test $groff_cv_type_unsigned_long_long = yes \
   8203  1.1  christos 	  && ac_type='unsigned long long' \
   8204  1.1  christos 	  || ac_type='unsigned long'
   8205  1.1  christos 
   8206  1.1  christos cat >>confdefs.h <<_ACEOF
   8207  1.1  christos #define uintmax_t $ac_type
   8208  1.1  christos _ACEOF
   8209  1.1  christos 
   8210  1.1  christos    fi
   8211  1.1  christos ac_ext=cc
   8212  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   8213  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8214  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8215  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8216  1.1  christos 
   8217  1.1  christos    echo "$as_me:$LINENO: checking for declaration of time_t" >&5
   8218  1.1  christos echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
   8219  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   8220  1.1  christos 
   8221  1.1  christos        /* confdefs.h.  */
   8222  1.1  christos _ACEOF
   8223  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8224  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8225  1.1  christos /* end confdefs.h.  */
   8226  1.1  christos 
   8227  1.1  christos 
   8228  1.1  christos #include <time.h>
   8229  1.1  christos 
   8230  1.1  christos 
   8231  1.1  christos int
   8232  1.1  christos main ()
   8233  1.1  christos {
   8234  1.1  christos 
   8235  1.1  christos 
   8236  1.1  christos time_t t = time(0);
   8237  1.1  christos struct tm *p = localtime(&t);
   8238  1.1  christos 
   8239  1.1  christos 
   8240  1.1  christos   ;
   8241  1.1  christos   return 0;
   8242  1.1  christos }
   8243  1.1  christos 
   8244  1.1  christos _ACEOF
   8245  1.1  christos rm -f conftest.$ac_objext
   8246  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8247  1.1  christos   (eval $ac_compile) 2>conftest.er1
   8248  1.1  christos   ac_status=$?
   8249  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8250  1.1  christos   rm -f conftest.er1
   8251  1.1  christos   cat conftest.err >&5
   8252  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8253  1.1  christos   (exit $ac_status); } &&
   8254  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   8255  1.1  christos 			 || test ! -s conftest.err'
   8256  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8257  1.1  christos   (eval $ac_try) 2>&5
   8258  1.1  christos   ac_status=$?
   8259  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8260  1.1  christos   (exit $ac_status); }; } &&
   8261  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   8262  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8263  1.1  christos   (eval $ac_try) 2>&5
   8264  1.1  christos   ac_status=$?
   8265  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8266  1.1  christos   (exit $ac_status); }; }; then
   8267  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   8268  1.1  christos echo "${ECHO_T}yes" >&6
   8269  1.1  christos else
   8270  1.1  christos   echo "$as_me: failed program was:" >&5
   8271  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8272  1.1  christos 
   8273  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   8274  1.1  christos echo "${ECHO_T}no" >&6
   8275  1.1  christos 
   8276  1.1  christos cat >>confdefs.h <<\_ACEOF
   8277  1.1  christos #define LONG_FOR_TIME_T 1
   8278  1.1  christos _ACEOF
   8279  1.1  christos 
   8280  1.1  christos fi
   8281  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8282  1.1  christos    ac_ext=c
   8283  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   8284  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8285  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8286  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8287  1.1  christos 
   8288  1.1  christos echo "$as_me:$LINENO: checking for return type of signal handlers" >&5
   8289  1.1  christos echo $ECHO_N "checking for return type of signal handlers... $ECHO_C" >&6
   8290  1.1  christos    for groff_declaration in \
   8291  1.1  christos      'extern "C" void (*signal (int, void (*)(int)))(int);' \
   8292  1.1  christos      'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
   8293  1.1  christos      'void (*signal ()) ();'
   8294  1.1  christos    do
   8295  1.1  christos      cat >conftest.$ac_ext <<_ACEOF
   8296  1.1  christos 
   8297  1.1  christos 	 /* confdefs.h.  */
   8298  1.1  christos _ACEOF
   8299  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8300  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8301  1.1  christos /* end confdefs.h.  */
   8302  1.1  christos 
   8303  1.1  christos 
   8304  1.1  christos #include <sys/types.h>
   8305  1.1  christos #include <signal.h>
   8306  1.1  christos #ifdef signal
   8307  1.1  christos # undef signal
   8308  1.1  christos #endif
   8309  1.1  christos $groff_declaration
   8310  1.1  christos 
   8311  1.1  christos 
   8312  1.1  christos int
   8313  1.1  christos main ()
   8314  1.1  christos {
   8315  1.1  christos 
   8316  1.1  christos 
   8317  1.1  christos int i;
   8318  1.1  christos 
   8319  1.1  christos 
   8320  1.1  christos   ;
   8321  1.1  christos   return 0;
   8322  1.1  christos }
   8323  1.1  christos 
   8324  1.1  christos _ACEOF
   8325  1.1  christos rm -f conftest.$ac_objext
   8326  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8327  1.1  christos   (eval $ac_compile) 2>conftest.er1
   8328  1.1  christos   ac_status=$?
   8329  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8330  1.1  christos   rm -f conftest.er1
   8331  1.1  christos   cat conftest.err >&5
   8332  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8333  1.1  christos   (exit $ac_status); } &&
   8334  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   8335  1.1  christos 			 || test ! -s conftest.err'
   8336  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8337  1.1  christos   (eval $ac_try) 2>&5
   8338  1.1  christos   ac_status=$?
   8339  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8340  1.1  christos   (exit $ac_status); }; } &&
   8341  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   8342  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8343  1.1  christos   (eval $ac_try) 2>&5
   8344  1.1  christos   ac_status=$?
   8345  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8346  1.1  christos   (exit $ac_status); }; }; then
   8347  1.1  christos   break
   8348  1.1  christos else
   8349  1.1  christos   echo "$as_me: failed program was:" >&5
   8350  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8351  1.1  christos 
   8352  1.1  christos continue
   8353  1.1  christos fi
   8354  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8355  1.1  christos    done
   8356  1.1  christos 
   8357  1.1  christos    if test -n "$groff_declaration"; then
   8358  1.1  christos      echo "$as_me:$LINENO: result: void" >&5
   8359  1.1  christos echo "${ECHO_T}void" >&6
   8360  1.1  christos 
   8361  1.1  christos cat >>confdefs.h <<\_ACEOF
   8362  1.1  christos #define RETSIGTYPE void
   8363  1.1  christos _ACEOF
   8364  1.1  christos 
   8365  1.1  christos    else
   8366  1.1  christos      echo "$as_me:$LINENO: result: int" >&5
   8367  1.1  christos echo "${ECHO_T}int" >&6
   8368  1.1  christos 
   8369  1.1  christos cat >>confdefs.h <<\_ACEOF
   8370  1.1  christos #define RETSIGTYPE int
   8371  1.1  christos _ACEOF
   8372  1.1  christos 
   8373  1.1  christos    fi
   8374  1.1  christos echo "$as_me:$LINENO: checking struct exception" >&5
   8375  1.1  christos echo $ECHO_N "checking struct exception... $ECHO_C" >&6
   8376  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   8377  1.1  christos 
   8378  1.1  christos        /* confdefs.h.  */
   8379  1.1  christos _ACEOF
   8380  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8381  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8382  1.1  christos /* end confdefs.h.  */
   8383  1.1  christos 
   8384  1.1  christos 
   8385  1.1  christos #include <math.h>
   8386  1.1  christos 
   8387  1.1  christos 
   8388  1.1  christos int
   8389  1.1  christos main ()
   8390  1.1  christos {
   8391  1.1  christos 
   8392  1.1  christos 
   8393  1.1  christos struct exception e;
   8394  1.1  christos 
   8395  1.1  christos 
   8396  1.1  christos   ;
   8397  1.1  christos   return 0;
   8398  1.1  christos }
   8399  1.1  christos 
   8400  1.1  christos _ACEOF
   8401  1.1  christos rm -f conftest.$ac_objext
   8402  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8403  1.1  christos   (eval $ac_compile) 2>conftest.er1
   8404  1.1  christos   ac_status=$?
   8405  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8406  1.1  christos   rm -f conftest.er1
   8407  1.1  christos   cat conftest.err >&5
   8408  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8409  1.1  christos   (exit $ac_status); } &&
   8410  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   8411  1.1  christos 			 || test ! -s conftest.err'
   8412  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8413  1.1  christos   (eval $ac_try) 2>&5
   8414  1.1  christos   ac_status=$?
   8415  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8416  1.1  christos   (exit $ac_status); }; } &&
   8417  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   8418  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8419  1.1  christos   (eval $ac_try) 2>&5
   8420  1.1  christos   ac_status=$?
   8421  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8422  1.1  christos   (exit $ac_status); }; }; then
   8423  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   8424  1.1  christos echo "${ECHO_T}yes" >&6
   8425  1.1  christos 
   8426  1.1  christos cat >>confdefs.h <<\_ACEOF
   8427  1.1  christos #define HAVE_STRUCT_EXCEPTION 1
   8428  1.1  christos _ACEOF
   8429  1.1  christos 
   8430  1.1  christos else
   8431  1.1  christos   echo "$as_me: failed program was:" >&5
   8432  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8433  1.1  christos 
   8434  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   8435  1.1  christos echo "${ECHO_T}no" >&6
   8436  1.1  christos fi
   8437  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8438  1.1  christos 
   8439  1.1  christos # checks for libraries
   8440  1.1  christos echo "$as_me:$LINENO: checking for main in -lc" >&5
   8441  1.1  christos echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
   8442  1.1  christos if test "${ac_cv_lib_c_main+set}" = set; then
   8443  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8444  1.1  christos else
   8445  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   8446  1.1  christos LIBS="-lc  $LIBS"
   8447  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   8448  1.1  christos /* confdefs.h.  */
   8449  1.1  christos _ACEOF
   8450  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8451  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8452  1.1  christos /* end confdefs.h.  */
   8453  1.1  christos 
   8454  1.1  christos 
   8455  1.1  christos int
   8456  1.1  christos main ()
   8457  1.1  christos {
   8458  1.1  christos main ();
   8459  1.1  christos   ;
   8460  1.1  christos   return 0;
   8461  1.1  christos }
   8462  1.1  christos _ACEOF
   8463  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8464  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8465  1.1  christos   (eval $ac_link) 2>conftest.er1
   8466  1.1  christos   ac_status=$?
   8467  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8468  1.1  christos   rm -f conftest.er1
   8469  1.1  christos   cat conftest.err >&5
   8470  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8471  1.1  christos   (exit $ac_status); } &&
   8472  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   8473  1.1  christos 			 || test ! -s conftest.err'
   8474  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8475  1.1  christos   (eval $ac_try) 2>&5
   8476  1.1  christos   ac_status=$?
   8477  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8478  1.1  christos   (exit $ac_status); }; } &&
   8479  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   8480  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8481  1.1  christos   (eval $ac_try) 2>&5
   8482  1.1  christos   ac_status=$?
   8483  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8484  1.1  christos   (exit $ac_status); }; }; then
   8485  1.1  christos   ac_cv_lib_c_main=yes
   8486  1.1  christos else
   8487  1.1  christos   echo "$as_me: failed program was:" >&5
   8488  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8489  1.1  christos 
   8490  1.1  christos ac_cv_lib_c_main=no
   8491  1.1  christos fi
   8492  1.1  christos rm -f conftest.err conftest.$ac_objext \
   8493  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   8494  1.1  christos LIBS=$ac_check_lib_save_LIBS
   8495  1.1  christos fi
   8496  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
   8497  1.1  christos echo "${ECHO_T}$ac_cv_lib_c_main" >&6
   8498  1.1  christos if test $ac_cv_lib_c_main = yes; then
   8499  1.1  christos   LIBC=-lc
   8500  1.1  christos fi
   8501  1.1  christos 
   8502  1.1  christos 
   8503  1.1  christos echo "$as_me:$LINENO: checking for sin in -lm" >&5
   8504  1.1  christos echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
   8505  1.1  christos if test "${ac_cv_lib_m_sin+set}" = set; then
   8506  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8507  1.1  christos else
   8508  1.1  christos   ac_check_lib_save_LIBS=$LIBS
   8509  1.1  christos LIBS="-lm  $LIBS"
   8510  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   8511  1.1  christos /* confdefs.h.  */
   8512  1.1  christos _ACEOF
   8513  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8514  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8515  1.1  christos /* end confdefs.h.  */
   8516  1.1  christos 
   8517  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   8518  1.1  christos #ifdef __cplusplus
   8519  1.1  christos extern "C"
   8520  1.1  christos #endif
   8521  1.1  christos /* We use char because int might match the return type of a gcc2
   8522  1.1  christos    builtin and then its argument prototype would still apply.  */
   8523  1.1  christos char sin ();
   8524  1.1  christos int
   8525  1.1  christos main ()
   8526  1.1  christos {
   8527  1.1  christos sin ();
   8528  1.1  christos   ;
   8529  1.1  christos   return 0;
   8530  1.1  christos }
   8531  1.1  christos _ACEOF
   8532  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8533  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8534  1.1  christos   (eval $ac_link) 2>conftest.er1
   8535  1.1  christos   ac_status=$?
   8536  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8537  1.1  christos   rm -f conftest.er1
   8538  1.1  christos   cat conftest.err >&5
   8539  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8540  1.1  christos   (exit $ac_status); } &&
   8541  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   8542  1.1  christos 			 || test ! -s conftest.err'
   8543  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8544  1.1  christos   (eval $ac_try) 2>&5
   8545  1.1  christos   ac_status=$?
   8546  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8547  1.1  christos   (exit $ac_status); }; } &&
   8548  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   8549  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8550  1.1  christos   (eval $ac_try) 2>&5
   8551  1.1  christos   ac_status=$?
   8552  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8553  1.1  christos   (exit $ac_status); }; }; then
   8554  1.1  christos   ac_cv_lib_m_sin=yes
   8555  1.1  christos else
   8556  1.1  christos   echo "$as_me: failed program was:" >&5
   8557  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8558  1.1  christos 
   8559  1.1  christos ac_cv_lib_m_sin=no
   8560  1.1  christos fi
   8561  1.1  christos rm -f conftest.err conftest.$ac_objext \
   8562  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   8563  1.1  christos LIBS=$ac_check_lib_save_LIBS
   8564  1.1  christos fi
   8565  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
   8566  1.1  christos echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
   8567  1.1  christos if test $ac_cv_lib_m_sin = yes; then
   8568  1.1  christos   LIBM=-lm
   8569  1.1  christos fi
   8570  1.1  christos 
   8571  1.1  christos 
   8572  1.1  christos 
   8573  1.1  christos # checks for functions
   8574  1.1  christos 
   8575  1.1  christos 
   8576  1.1  christos for ac_header in stdlib.h unistd.h
   8577  1.1  christos do
   8578  1.1  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8579  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8580  1.1  christos   echo "$as_me:$LINENO: checking for $ac_header" >&5
   8581  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   8582  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8583  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8584  1.1  christos fi
   8585  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   8586  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   8587  1.1  christos else
   8588  1.1  christos   # Is the header compilable?
   8589  1.1  christos echo "$as_me:$LINENO: checking $ac_header usability" >&5
   8590  1.1  christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   8591  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   8592  1.1  christos /* confdefs.h.  */
   8593  1.1  christos _ACEOF
   8594  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8595  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8596  1.1  christos /* end confdefs.h.  */
   8597  1.1  christos $ac_includes_default
   8598  1.1  christos #include <$ac_header>
   8599  1.1  christos _ACEOF
   8600  1.1  christos rm -f conftest.$ac_objext
   8601  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8602  1.1  christos   (eval $ac_compile) 2>conftest.er1
   8603  1.1  christos   ac_status=$?
   8604  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8605  1.1  christos   rm -f conftest.er1
   8606  1.1  christos   cat conftest.err >&5
   8607  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8608  1.1  christos   (exit $ac_status); } &&
   8609  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   8610  1.1  christos 			 || test ! -s conftest.err'
   8611  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8612  1.1  christos   (eval $ac_try) 2>&5
   8613  1.1  christos   ac_status=$?
   8614  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8615  1.1  christos   (exit $ac_status); }; } &&
   8616  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   8617  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8618  1.1  christos   (eval $ac_try) 2>&5
   8619  1.1  christos   ac_status=$?
   8620  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8621  1.1  christos   (exit $ac_status); }; }; then
   8622  1.1  christos   ac_header_compiler=yes
   8623  1.1  christos else
   8624  1.1  christos   echo "$as_me: failed program was:" >&5
   8625  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8626  1.1  christos 
   8627  1.1  christos ac_header_compiler=no
   8628  1.1  christos fi
   8629  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8630  1.1  christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   8631  1.1  christos echo "${ECHO_T}$ac_header_compiler" >&6
   8632  1.1  christos 
   8633  1.1  christos # Is the header present?
   8634  1.1  christos echo "$as_me:$LINENO: checking $ac_header presence" >&5
   8635  1.1  christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   8636  1.1  christos cat >conftest.$ac_ext <<_ACEOF
   8637  1.1  christos /* confdefs.h.  */
   8638  1.1  christos _ACEOF
   8639  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8640  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8641  1.1  christos /* end confdefs.h.  */
   8642  1.1  christos #include <$ac_header>
   8643  1.1  christos _ACEOF
   8644  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   8645  1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   8646  1.1  christos   ac_status=$?
   8647  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8648  1.1  christos   rm -f conftest.er1
   8649  1.1  christos   cat conftest.err >&5
   8650  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8651  1.1  christos   (exit $ac_status); } >/dev/null; then
   8652  1.1  christos   if test -s conftest.err; then
   8653  1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   8654  1.1  christos     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   8655  1.1  christos   else
   8656  1.1  christos     ac_cpp_err=
   8657  1.1  christos   fi
   8658  1.1  christos else
   8659  1.1  christos   ac_cpp_err=yes
   8660  1.1  christos fi
   8661  1.1  christos if test -z "$ac_cpp_err"; then
   8662  1.1  christos   ac_header_preproc=yes
   8663  1.1  christos else
   8664  1.1  christos   echo "$as_me: failed program was:" >&5
   8665  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8666  1.1  christos 
   8667  1.1  christos   ac_header_preproc=no
   8668  1.1  christos fi
   8669  1.1  christos rm -f conftest.err conftest.$ac_ext
   8670  1.1  christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   8671  1.1  christos echo "${ECHO_T}$ac_header_preproc" >&6
   8672  1.1  christos 
   8673  1.1  christos # So?  What about this header?
   8674  1.1  christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   8675  1.1  christos   yes:no: )
   8676  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   8677  1.1  christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   8678  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   8679  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   8680  1.1  christos     ac_header_preproc=yes
   8681  1.1  christos     ;;
   8682  1.1  christos   no:yes:* )
   8683  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   8684  1.1  christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   8685  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   8686  1.1  christos echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   8687  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   8688  1.1  christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   8689  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   8690  1.1  christos echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   8691  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   8692  1.1  christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   8693  1.1  christos     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   8694  1.1  christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   8695  1.1  christos     (
   8696  1.1  christos       cat <<\_ASBOX
   8697  1.1  christos ## ------------------------------------------ ##
   8698  1.1  christos ## Report this to the AC_PACKAGE_NAME lists.  ##
   8699  1.1  christos ## ------------------------------------------ ##
   8700  1.1  christos _ASBOX
   8701  1.1  christos     ) |
   8702  1.1  christos       sed "s/^/$as_me: WARNING:     /" >&2
   8703  1.1  christos     ;;
   8704  1.1  christos esac
   8705  1.1  christos echo "$as_me:$LINENO: checking for $ac_header" >&5
   8706  1.1  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   8707  1.1  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8708  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8709  1.1  christos else
   8710  1.1  christos   eval "$as_ac_Header=\$ac_header_preproc"
   8711  1.1  christos fi
   8712  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   8713  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   8714  1.1  christos 
   8715  1.1  christos fi
   8716  1.1  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8717  1.1  christos   cat >>confdefs.h <<_ACEOF
   8718  1.1  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8719  1.1  christos _ACEOF
   8720  1.1  christos 
   8721  1.1  christos fi
   8722  1.1  christos 
   8723  1.1  christos done
   8724  1.1  christos 
   8725  1.1  christos 
   8726  1.1  christos for ac_func in getpagesize
   8727  1.1  christos do
   8728  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8729  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   8730  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   8731  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   8732  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8733  1.1  christos else
   8734  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8735  1.1  christos /* confdefs.h.  */
   8736  1.1  christos _ACEOF
   8737  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8738  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8739  1.1  christos /* end confdefs.h.  */
   8740  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   8741  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8742  1.1  christos #define $ac_func innocuous_$ac_func
   8743  1.1  christos 
   8744  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   8745  1.1  christos     which can conflict with char $ac_func (); below.
   8746  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8747  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   8748  1.1  christos 
   8749  1.1  christos #ifdef __STDC__
   8750  1.1  christos # include <limits.h>
   8751  1.1  christos #else
   8752  1.1  christos # include <assert.h>
   8753  1.1  christos #endif
   8754  1.1  christos 
   8755  1.1  christos #undef $ac_func
   8756  1.1  christos 
   8757  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   8758  1.1  christos #ifdef __cplusplus
   8759  1.1  christos extern "C"
   8760  1.1  christos {
   8761  1.1  christos #endif
   8762  1.1  christos /* We use char because int might match the return type of a gcc2
   8763  1.1  christos    builtin and then its argument prototype would still apply.  */
   8764  1.1  christos char $ac_func ();
   8765  1.1  christos /* The GNU C library defines this for functions which it implements
   8766  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   8767  1.1  christos     something starting with __ and the normal name is an alias.  */
   8768  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   8769  1.1  christos choke me
   8770  1.1  christos #else
   8771  1.1  christos char (*f) () = $ac_func;
   8772  1.1  christos #endif
   8773  1.1  christos #ifdef __cplusplus
   8774  1.1  christos }
   8775  1.1  christos #endif
   8776  1.1  christos 
   8777  1.1  christos int
   8778  1.1  christos main ()
   8779  1.1  christos {
   8780  1.1  christos return f != $ac_func;
   8781  1.1  christos   ;
   8782  1.1  christos   return 0;
   8783  1.1  christos }
   8784  1.1  christos _ACEOF
   8785  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   8786  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8787  1.1  christos   (eval $ac_link) 2>conftest.er1
   8788  1.1  christos   ac_status=$?
   8789  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   8790  1.1  christos   rm -f conftest.er1
   8791  1.1  christos   cat conftest.err >&5
   8792  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8793  1.1  christos   (exit $ac_status); } &&
   8794  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   8795  1.1  christos 			 || test ! -s conftest.err'
   8796  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8797  1.1  christos   (eval $ac_try) 2>&5
   8798  1.1  christos   ac_status=$?
   8799  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8800  1.1  christos   (exit $ac_status); }; } &&
   8801  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   8802  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8803  1.1  christos   (eval $ac_try) 2>&5
   8804  1.1  christos   ac_status=$?
   8805  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8806  1.1  christos   (exit $ac_status); }; }; then
   8807  1.1  christos   eval "$as_ac_var=yes"
   8808  1.1  christos else
   8809  1.1  christos   echo "$as_me: failed program was:" >&5
   8810  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8811  1.1  christos 
   8812  1.1  christos eval "$as_ac_var=no"
   8813  1.1  christos fi
   8814  1.1  christos rm -f conftest.err conftest.$ac_objext \
   8815  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   8816  1.1  christos fi
   8817  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   8818  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   8819  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   8820  1.1  christos   cat >>confdefs.h <<_ACEOF
   8821  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8822  1.1  christos _ACEOF
   8823  1.1  christos 
   8824  1.1  christos fi
   8825  1.1  christos done
   8826  1.1  christos 
   8827  1.1  christos echo "$as_me:$LINENO: checking for working mmap" >&5
   8828  1.1  christos echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
   8829  1.1  christos if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
   8830  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   8831  1.1  christos else
   8832  1.1  christos   if test "$cross_compiling" = yes; then
   8833  1.1  christos   ac_cv_func_mmap_fixed_mapped=no
   8834  1.1  christos else
   8835  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   8836  1.1  christos /* confdefs.h.  */
   8837  1.1  christos _ACEOF
   8838  1.1  christos cat confdefs.h >>conftest.$ac_ext
   8839  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   8840  1.1  christos /* end confdefs.h.  */
   8841  1.1  christos $ac_includes_default
   8842  1.1  christos /* malloc might have been renamed as rpl_malloc. */
   8843  1.1  christos #undef malloc
   8844  1.1  christos 
   8845  1.1  christos /* Thanks to Mike Haertel and Jim Avera for this test.
   8846  1.1  christos    Here is a matrix of mmap possibilities:
   8847  1.1  christos 	mmap private not fixed
   8848  1.1  christos 	mmap private fixed at somewhere currently unmapped
   8849  1.1  christos 	mmap private fixed at somewhere already mapped
   8850  1.1  christos 	mmap shared not fixed
   8851  1.1  christos 	mmap shared fixed at somewhere currently unmapped
   8852  1.1  christos 	mmap shared fixed at somewhere already mapped
   8853  1.1  christos    For private mappings, we should verify that changes cannot be read()
   8854  1.1  christos    back from the file, nor mmap's back from the file at a different
   8855  1.1  christos    address.  (There have been systems where private was not correctly
   8856  1.1  christos    implemented like the infamous i386 svr4.0, and systems where the
   8857  1.1  christos    VM page cache was not coherent with the file system buffer cache
   8858  1.1  christos    like early versions of FreeBSD and possibly contemporary NetBSD.)
   8859  1.1  christos    For shared mappings, we should conversely verify that changes get
   8860  1.1  christos    propagated back to all the places they're supposed to be.
   8861  1.1  christos 
   8862  1.1  christos    Grep wants private fixed already mapped.
   8863  1.1  christos    The main things grep needs to know about mmap are:
   8864  1.1  christos    * does it exist and is it safe to write into the mmap'd area
   8865  1.1  christos    * how to use it (BSD variants)  */
   8866  1.1  christos 
   8867  1.1  christos #include <fcntl.h>
   8868  1.1  christos #include <sys/mman.h>
   8869  1.1  christos 
   8870  1.1  christos #if !STDC_HEADERS && !HAVE_STDLIB_H
   8871  1.1  christos char *malloc ();
   8872  1.1  christos #endif
   8873  1.1  christos 
   8874  1.1  christos /* This mess was copied from the GNU getpagesize.h.  */
   8875  1.1  christos #if !HAVE_GETPAGESIZE
   8876  1.1  christos /* Assume that all systems that can run configure have sys/param.h.  */
   8877  1.1  christos # if !HAVE_SYS_PARAM_H
   8878  1.1  christos #  define HAVE_SYS_PARAM_H 1
   8879  1.1  christos # endif
   8880  1.1  christos 
   8881  1.1  christos # ifdef _SC_PAGESIZE
   8882  1.1  christos #  define getpagesize() sysconf(_SC_PAGESIZE)
   8883  1.1  christos # else /* no _SC_PAGESIZE */
   8884  1.1  christos #  if HAVE_SYS_PARAM_H
   8885  1.1  christos #   include <sys/param.h>
   8886  1.1  christos #   ifdef EXEC_PAGESIZE
   8887  1.1  christos #    define getpagesize() EXEC_PAGESIZE
   8888  1.1  christos #   else /* no EXEC_PAGESIZE */
   8889  1.1  christos #    ifdef NBPG
   8890  1.1  christos #     define getpagesize() NBPG * CLSIZE
   8891  1.1  christos #     ifndef CLSIZE
   8892  1.1  christos #      define CLSIZE 1
   8893  1.1  christos #     endif /* no CLSIZE */
   8894  1.1  christos #    else /* no NBPG */
   8895  1.1  christos #     ifdef NBPC
   8896  1.1  christos #      define getpagesize() NBPC
   8897  1.1  christos #     else /* no NBPC */
   8898  1.1  christos #      ifdef PAGESIZE
   8899  1.1  christos #       define getpagesize() PAGESIZE
   8900  1.1  christos #      endif /* PAGESIZE */
   8901  1.1  christos #     endif /* no NBPC */
   8902  1.1  christos #    endif /* no NBPG */
   8903  1.1  christos #   endif /* no EXEC_PAGESIZE */
   8904  1.1  christos #  else /* no HAVE_SYS_PARAM_H */
   8905  1.1  christos #   define getpagesize() 8192	/* punt totally */
   8906  1.1  christos #  endif /* no HAVE_SYS_PARAM_H */
   8907  1.1  christos # endif /* no _SC_PAGESIZE */
   8908  1.1  christos 
   8909  1.1  christos #endif /* no HAVE_GETPAGESIZE */
   8910  1.1  christos 
   8911  1.1  christos int
   8912  1.1  christos main ()
   8913  1.1  christos {
   8914  1.1  christos   char *data, *data2, *data3;
   8915  1.1  christos   int i, pagesize;
   8916  1.1  christos   int fd;
   8917  1.1  christos 
   8918  1.1  christos   pagesize = getpagesize ();
   8919  1.1  christos 
   8920  1.1  christos   /* First, make a file with some known garbage in it. */
   8921  1.1  christos   data = (char *) malloc (pagesize);
   8922  1.1  christos   if (!data)
   8923  1.1  christos     exit (1);
   8924  1.1  christos   for (i = 0; i < pagesize; ++i)
   8925  1.1  christos     *(data + i) = rand ();
   8926  1.1  christos   umask (0);
   8927  1.1  christos   fd = creat ("conftest.mmap", 0600);
   8928  1.1  christos   if (fd < 0)
   8929  1.1  christos     exit (1);
   8930  1.1  christos   if (write (fd, data, pagesize) != pagesize)
   8931  1.1  christos     exit (1);
   8932  1.1  christos   close (fd);
   8933  1.1  christos 
   8934  1.1  christos   /* Next, try to mmap the file at a fixed address which already has
   8935  1.1  christos      something else allocated at it.  If we can, also make sure that
   8936  1.1  christos      we see the same garbage.  */
   8937  1.1  christos   fd = open ("conftest.mmap", O_RDWR);
   8938  1.1  christos   if (fd < 0)
   8939  1.1  christos     exit (1);
   8940  1.1  christos   data2 = (char *) malloc (2 * pagesize);
   8941  1.1  christos   if (!data2)
   8942  1.1  christos     exit (1);
   8943  1.1  christos   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
   8944  1.1  christos   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   8945  1.1  christos 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   8946  1.1  christos     exit (1);
   8947  1.1  christos   for (i = 0; i < pagesize; ++i)
   8948  1.1  christos     if (*(data + i) != *(data2 + i))
   8949  1.1  christos       exit (1);
   8950  1.1  christos 
   8951  1.1  christos   /* Finally, make sure that changes to the mapped area do not
   8952  1.1  christos      percolate back to the file as seen by read().  (This is a bug on
   8953  1.1  christos      some variants of i386 svr4.0.)  */
   8954  1.1  christos   for (i = 0; i < pagesize; ++i)
   8955  1.1  christos     *(data2 + i) = *(data2 + i) + 1;
   8956  1.1  christos   data3 = (char *) malloc (pagesize);
   8957  1.1  christos   if (!data3)
   8958  1.1  christos     exit (1);
   8959  1.1  christos   if (read (fd, data3, pagesize) != pagesize)
   8960  1.1  christos     exit (1);
   8961  1.1  christos   for (i = 0; i < pagesize; ++i)
   8962  1.1  christos     if (*(data + i) != *(data3 + i))
   8963  1.1  christos       exit (1);
   8964  1.1  christos   close (fd);
   8965  1.1  christos   exit (0);
   8966  1.1  christos }
   8967  1.1  christos _ACEOF
   8968  1.1  christos rm -f conftest$ac_exeext
   8969  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8970  1.1  christos   (eval $ac_link) 2>&5
   8971  1.1  christos   ac_status=$?
   8972  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8973  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   8974  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8975  1.1  christos   (eval $ac_try) 2>&5
   8976  1.1  christos   ac_status=$?
   8977  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8978  1.1  christos   (exit $ac_status); }; }; then
   8979  1.1  christos   ac_cv_func_mmap_fixed_mapped=yes
   8980  1.1  christos else
   8981  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   8982  1.1  christos echo "$as_me: failed program was:" >&5
   8983  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   8984  1.1  christos 
   8985  1.1  christos ( exit $ac_status )
   8986  1.1  christos ac_cv_func_mmap_fixed_mapped=no
   8987  1.1  christos fi
   8988  1.1  christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   8989  1.1  christos fi
   8990  1.1  christos fi
   8991  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
   8992  1.1  christos echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
   8993  1.1  christos if test $ac_cv_func_mmap_fixed_mapped = yes; then
   8994  1.1  christos 
   8995  1.1  christos cat >>confdefs.h <<\_ACEOF
   8996  1.1  christos #define HAVE_MMAP 1
   8997  1.1  christos _ACEOF
   8998  1.1  christos 
   8999  1.1  christos fi
   9000  1.1  christos rm -f conftest.mmap
   9001  1.1  christos 
   9002  1.1  christos saved_libs="$LIBS"
   9003  1.1  christos LIBS="$LIBS $LIBC $LIBM"
   9004  1.1  christos 
   9005  1.1  christos 
   9006  1.1  christos 
   9007  1.1  christos 
   9008  1.1  christos 
   9009  1.1  christos 
   9010  1.1  christos 
   9011  1.1  christos 
   9012  1.1  christos for ac_func in fmod getcwd putenv snprintf strcasecmp \
   9013  1.1  christos                   strerror strncasecmp strtol
   9014  1.1  christos do
   9015  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9016  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   9017  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   9018  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   9019  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9020  1.1  christos else
   9021  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9022  1.1  christos /* confdefs.h.  */
   9023  1.1  christos _ACEOF
   9024  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9025  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9026  1.1  christos /* end confdefs.h.  */
   9027  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9028  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9029  1.1  christos #define $ac_func innocuous_$ac_func
   9030  1.1  christos 
   9031  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   9032  1.1  christos     which can conflict with char $ac_func (); below.
   9033  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9034  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   9035  1.1  christos 
   9036  1.1  christos #ifdef __STDC__
   9037  1.1  christos # include <limits.h>
   9038  1.1  christos #else
   9039  1.1  christos # include <assert.h>
   9040  1.1  christos #endif
   9041  1.1  christos 
   9042  1.1  christos #undef $ac_func
   9043  1.1  christos 
   9044  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   9045  1.1  christos #ifdef __cplusplus
   9046  1.1  christos extern "C"
   9047  1.1  christos {
   9048  1.1  christos #endif
   9049  1.1  christos /* We use char because int might match the return type of a gcc2
   9050  1.1  christos    builtin and then its argument prototype would still apply.  */
   9051  1.1  christos char $ac_func ();
   9052  1.1  christos /* The GNU C library defines this for functions which it implements
   9053  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   9054  1.1  christos     something starting with __ and the normal name is an alias.  */
   9055  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   9056  1.1  christos choke me
   9057  1.1  christos #else
   9058  1.1  christos char (*f) () = $ac_func;
   9059  1.1  christos #endif
   9060  1.1  christos #ifdef __cplusplus
   9061  1.1  christos }
   9062  1.1  christos #endif
   9063  1.1  christos 
   9064  1.1  christos int
   9065  1.1  christos main ()
   9066  1.1  christos {
   9067  1.1  christos return f != $ac_func;
   9068  1.1  christos   ;
   9069  1.1  christos   return 0;
   9070  1.1  christos }
   9071  1.1  christos _ACEOF
   9072  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9073  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9074  1.1  christos   (eval $ac_link) 2>conftest.er1
   9075  1.1  christos   ac_status=$?
   9076  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9077  1.1  christos   rm -f conftest.er1
   9078  1.1  christos   cat conftest.err >&5
   9079  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9080  1.1  christos   (exit $ac_status); } &&
   9081  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   9082  1.1  christos 			 || test ! -s conftest.err'
   9083  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9084  1.1  christos   (eval $ac_try) 2>&5
   9085  1.1  christos   ac_status=$?
   9086  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9087  1.1  christos   (exit $ac_status); }; } &&
   9088  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   9089  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9090  1.1  christos   (eval $ac_try) 2>&5
   9091  1.1  christos   ac_status=$?
   9092  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9093  1.1  christos   (exit $ac_status); }; }; then
   9094  1.1  christos   eval "$as_ac_var=yes"
   9095  1.1  christos else
   9096  1.1  christos   echo "$as_me: failed program was:" >&5
   9097  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9098  1.1  christos 
   9099  1.1  christos eval "$as_ac_var=no"
   9100  1.1  christos fi
   9101  1.1  christos rm -f conftest.err conftest.$ac_objext \
   9102  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   9103  1.1  christos fi
   9104  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   9105  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   9106  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   9107  1.1  christos   cat >>confdefs.h <<_ACEOF
   9108  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9109  1.1  christos _ACEOF
   9110  1.1  christos 
   9111  1.1  christos else
   9112  1.1  christos   case $LIBOBJS in
   9113  1.1  christos     "$ac_func.$ac_objext"   | \
   9114  1.1  christos   *" $ac_func.$ac_objext"   | \
   9115  1.1  christos     "$ac_func.$ac_objext "* | \
   9116  1.1  christos   *" $ac_func.$ac_objext "* ) ;;
   9117  1.1  christos   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
   9118  1.1  christos esac
   9119  1.1  christos 
   9120  1.1  christos fi
   9121  1.1  christos done
   9122  1.1  christos 
   9123  1.1  christos 
   9124  1.1  christos # vsnprintf is in the same source file as snprintf
   9125  1.1  christos 
   9126  1.1  christos for ac_func in vsnprintf
   9127  1.1  christos do
   9128  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9129  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   9130  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   9131  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   9132  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9133  1.1  christos else
   9134  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9135  1.1  christos /* confdefs.h.  */
   9136  1.1  christos _ACEOF
   9137  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9138  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9139  1.1  christos /* end confdefs.h.  */
   9140  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9141  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9142  1.1  christos #define $ac_func innocuous_$ac_func
   9143  1.1  christos 
   9144  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   9145  1.1  christos     which can conflict with char $ac_func (); below.
   9146  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9147  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   9148  1.1  christos 
   9149  1.1  christos #ifdef __STDC__
   9150  1.1  christos # include <limits.h>
   9151  1.1  christos #else
   9152  1.1  christos # include <assert.h>
   9153  1.1  christos #endif
   9154  1.1  christos 
   9155  1.1  christos #undef $ac_func
   9156  1.1  christos 
   9157  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   9158  1.1  christos #ifdef __cplusplus
   9159  1.1  christos extern "C"
   9160  1.1  christos {
   9161  1.1  christos #endif
   9162  1.1  christos /* We use char because int might match the return type of a gcc2
   9163  1.1  christos    builtin and then its argument prototype would still apply.  */
   9164  1.1  christos char $ac_func ();
   9165  1.1  christos /* The GNU C library defines this for functions which it implements
   9166  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   9167  1.1  christos     something starting with __ and the normal name is an alias.  */
   9168  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   9169  1.1  christos choke me
   9170  1.1  christos #else
   9171  1.1  christos char (*f) () = $ac_func;
   9172  1.1  christos #endif
   9173  1.1  christos #ifdef __cplusplus
   9174  1.1  christos }
   9175  1.1  christos #endif
   9176  1.1  christos 
   9177  1.1  christos int
   9178  1.1  christos main ()
   9179  1.1  christos {
   9180  1.1  christos return f != $ac_func;
   9181  1.1  christos   ;
   9182  1.1  christos   return 0;
   9183  1.1  christos }
   9184  1.1  christos _ACEOF
   9185  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9186  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9187  1.1  christos   (eval $ac_link) 2>conftest.er1
   9188  1.1  christos   ac_status=$?
   9189  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9190  1.1  christos   rm -f conftest.er1
   9191  1.1  christos   cat conftest.err >&5
   9192  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9193  1.1  christos   (exit $ac_status); } &&
   9194  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   9195  1.1  christos 			 || test ! -s conftest.err'
   9196  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9197  1.1  christos   (eval $ac_try) 2>&5
   9198  1.1  christos   ac_status=$?
   9199  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9200  1.1  christos   (exit $ac_status); }; } &&
   9201  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   9202  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9203  1.1  christos   (eval $ac_try) 2>&5
   9204  1.1  christos   ac_status=$?
   9205  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9206  1.1  christos   (exit $ac_status); }; }; then
   9207  1.1  christos   eval "$as_ac_var=yes"
   9208  1.1  christos else
   9209  1.1  christos   echo "$as_me: failed program was:" >&5
   9210  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9211  1.1  christos 
   9212  1.1  christos eval "$as_ac_var=no"
   9213  1.1  christos fi
   9214  1.1  christos rm -f conftest.err conftest.$ac_objext \
   9215  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   9216  1.1  christos fi
   9217  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   9218  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   9219  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   9220  1.1  christos   cat >>confdefs.h <<_ACEOF
   9221  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9222  1.1  christos _ACEOF
   9223  1.1  christos 
   9224  1.1  christos else
   9225  1.1  christos   case $LIBOBJS in
   9226  1.1  christos     "snprintf.$ac_objext"   | \
   9227  1.1  christos   *" snprintf.$ac_objext"   | \
   9228  1.1  christos     "snprintf.$ac_objext "* | \
   9229  1.1  christos   *" snprintf.$ac_objext "* ) ;;
   9230  1.1  christos   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
   9231  1.1  christos esac
   9232  1.1  christos 
   9233  1.1  christos fi
   9234  1.1  christos done
   9235  1.1  christos 
   9236  1.1  christos LIBS="$saved_libs"
   9237  1.1  christos 
   9238  1.1  christos 
   9239  1.1  christos 
   9240  1.1  christos 
   9241  1.1  christos 
   9242  1.1  christos 
   9243  1.1  christos for ac_func in gettimeofday isatty kill rename setlocale strsep
   9244  1.1  christos do
   9245  1.1  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9246  1.1  christos echo "$as_me:$LINENO: checking for $ac_func" >&5
   9247  1.1  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   9248  1.1  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   9249  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9250  1.1  christos else
   9251  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9252  1.1  christos /* confdefs.h.  */
   9253  1.1  christos _ACEOF
   9254  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9255  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9256  1.1  christos /* end confdefs.h.  */
   9257  1.1  christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9258  1.1  christos    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9259  1.1  christos #define $ac_func innocuous_$ac_func
   9260  1.1  christos 
   9261  1.1  christos /* System header to define __stub macros and hopefully few prototypes,
   9262  1.1  christos     which can conflict with char $ac_func (); below.
   9263  1.1  christos     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9264  1.1  christos     <limits.h> exists even on freestanding compilers.  */
   9265  1.1  christos 
   9266  1.1  christos #ifdef __STDC__
   9267  1.1  christos # include <limits.h>
   9268  1.1  christos #else
   9269  1.1  christos # include <assert.h>
   9270  1.1  christos #endif
   9271  1.1  christos 
   9272  1.1  christos #undef $ac_func
   9273  1.1  christos 
   9274  1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   9275  1.1  christos #ifdef __cplusplus
   9276  1.1  christos extern "C"
   9277  1.1  christos {
   9278  1.1  christos #endif
   9279  1.1  christos /* We use char because int might match the return type of a gcc2
   9280  1.1  christos    builtin and then its argument prototype would still apply.  */
   9281  1.1  christos char $ac_func ();
   9282  1.1  christos /* The GNU C library defines this for functions which it implements
   9283  1.1  christos     to always fail with ENOSYS.  Some functions are actually named
   9284  1.1  christos     something starting with __ and the normal name is an alias.  */
   9285  1.1  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   9286  1.1  christos choke me
   9287  1.1  christos #else
   9288  1.1  christos char (*f) () = $ac_func;
   9289  1.1  christos #endif
   9290  1.1  christos #ifdef __cplusplus
   9291  1.1  christos }
   9292  1.1  christos #endif
   9293  1.1  christos 
   9294  1.1  christos int
   9295  1.1  christos main ()
   9296  1.1  christos {
   9297  1.1  christos return f != $ac_func;
   9298  1.1  christos   ;
   9299  1.1  christos   return 0;
   9300  1.1  christos }
   9301  1.1  christos _ACEOF
   9302  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9303  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9304  1.1  christos   (eval $ac_link) 2>conftest.er1
   9305  1.1  christos   ac_status=$?
   9306  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9307  1.1  christos   rm -f conftest.er1
   9308  1.1  christos   cat conftest.err >&5
   9309  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9310  1.1  christos   (exit $ac_status); } &&
   9311  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   9312  1.1  christos 			 || test ! -s conftest.err'
   9313  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9314  1.1  christos   (eval $ac_try) 2>&5
   9315  1.1  christos   ac_status=$?
   9316  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9317  1.1  christos   (exit $ac_status); }; } &&
   9318  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   9319  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9320  1.1  christos   (eval $ac_try) 2>&5
   9321  1.1  christos   ac_status=$?
   9322  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9323  1.1  christos   (exit $ac_status); }; }; then
   9324  1.1  christos   eval "$as_ac_var=yes"
   9325  1.1  christos else
   9326  1.1  christos   echo "$as_me: failed program was:" >&5
   9327  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9328  1.1  christos 
   9329  1.1  christos eval "$as_ac_var=no"
   9330  1.1  christos fi
   9331  1.1  christos rm -f conftest.err conftest.$ac_objext \
   9332  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   9333  1.1  christos fi
   9334  1.1  christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   9335  1.1  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   9336  1.1  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   9337  1.1  christos   cat >>confdefs.h <<_ACEOF
   9338  1.1  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9339  1.1  christos _ACEOF
   9340  1.1  christos 
   9341  1.1  christos fi
   9342  1.1  christos done
   9343  1.1  christos 
   9344  1.1  christos echo "$as_me:$LINENO: checking for mkstemp" >&5
   9345  1.1  christos echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
   9346  1.1  christos    ac_ext=cc
   9347  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   9348  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9349  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9350  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9351  1.1  christos 
   9352  1.1  christos 
   9353  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   9354  1.1  christos 
   9355  1.1  christos        /* confdefs.h.  */
   9356  1.1  christos _ACEOF
   9357  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9358  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9359  1.1  christos /* end confdefs.h.  */
   9360  1.1  christos 
   9361  1.1  christos 
   9362  1.1  christos #include <stdlib.h>
   9363  1.1  christos #include <unistd.h>
   9364  1.1  christos int (*f) (char *);
   9365  1.1  christos 
   9366  1.1  christos 
   9367  1.1  christos int
   9368  1.1  christos main ()
   9369  1.1  christos {
   9370  1.1  christos 
   9371  1.1  christos 
   9372  1.1  christos f = mkstemp;
   9373  1.1  christos 
   9374  1.1  christos 
   9375  1.1  christos   ;
   9376  1.1  christos   return 0;
   9377  1.1  christos }
   9378  1.1  christos 
   9379  1.1  christos _ACEOF
   9380  1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   9381  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9382  1.1  christos   (eval $ac_link) 2>conftest.er1
   9383  1.1  christos   ac_status=$?
   9384  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9385  1.1  christos   rm -f conftest.er1
   9386  1.1  christos   cat conftest.err >&5
   9387  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9388  1.1  christos   (exit $ac_status); } &&
   9389  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   9390  1.1  christos 			 || test ! -s conftest.err'
   9391  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9392  1.1  christos   (eval $ac_try) 2>&5
   9393  1.1  christos   ac_status=$?
   9394  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9395  1.1  christos   (exit $ac_status); }; } &&
   9396  1.1  christos 	 { ac_try='test -s conftest$ac_exeext'
   9397  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9398  1.1  christos   (eval $ac_try) 2>&5
   9399  1.1  christos   ac_status=$?
   9400  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9401  1.1  christos   (exit $ac_status); }; }; then
   9402  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   9403  1.1  christos echo "${ECHO_T}yes" >&6
   9404  1.1  christos 
   9405  1.1  christos cat >>confdefs.h <<\_ACEOF
   9406  1.1  christos #define HAVE_MKSTEMP 1
   9407  1.1  christos _ACEOF
   9408  1.1  christos 
   9409  1.1  christos else
   9410  1.1  christos   echo "$as_me: failed program was:" >&5
   9411  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9412  1.1  christos 
   9413  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   9414  1.1  christos echo "${ECHO_T}no" >&6
   9415  1.1  christos       case $LIBOBJS in
   9416  1.1  christos     "mkstemp.$ac_objext"   | \
   9417  1.1  christos   *" mkstemp.$ac_objext"   | \
   9418  1.1  christos     "mkstemp.$ac_objext "* | \
   9419  1.1  christos   *" mkstemp.$ac_objext "* ) ;;
   9420  1.1  christos   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
   9421  1.1  christos esac
   9422  1.1  christos 
   9423  1.1  christos fi
   9424  1.1  christos rm -f conftest.err conftest.$ac_objext \
   9425  1.1  christos       conftest$ac_exeext conftest.$ac_ext
   9426  1.1  christos    ac_ext=c
   9427  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   9428  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9429  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9430  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9431  1.1  christos 
   9432  1.1  christos echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
   9433  1.1  christos echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
   9434  1.1  christos if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
   9435  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9436  1.1  christos else
   9437  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9438  1.1  christos /* confdefs.h.  */
   9439  1.1  christos _ACEOF
   9440  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9441  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9442  1.1  christos /* end confdefs.h.  */
   9443  1.1  christos $ac_includes_default
   9444  1.1  christos int
   9445  1.1  christos main ()
   9446  1.1  christos {
   9447  1.1  christos #ifndef sys_siglist
   9448  1.1  christos   char *p = (char *) sys_siglist;
   9449  1.1  christos #endif
   9450  1.1  christos 
   9451  1.1  christos   ;
   9452  1.1  christos   return 0;
   9453  1.1  christos }
   9454  1.1  christos _ACEOF
   9455  1.1  christos rm -f conftest.$ac_objext
   9456  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9457  1.1  christos   (eval $ac_compile) 2>conftest.er1
   9458  1.1  christos   ac_status=$?
   9459  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9460  1.1  christos   rm -f conftest.er1
   9461  1.1  christos   cat conftest.err >&5
   9462  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9463  1.1  christos   (exit $ac_status); } &&
   9464  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   9465  1.1  christos 			 || test ! -s conftest.err'
   9466  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9467  1.1  christos   (eval $ac_try) 2>&5
   9468  1.1  christos   ac_status=$?
   9469  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9470  1.1  christos   (exit $ac_status); }; } &&
   9471  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   9472  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9473  1.1  christos   (eval $ac_try) 2>&5
   9474  1.1  christos   ac_status=$?
   9475  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9476  1.1  christos   (exit $ac_status); }; }; then
   9477  1.1  christos   ac_cv_have_decl_sys_siglist=yes
   9478  1.1  christos else
   9479  1.1  christos   echo "$as_me: failed program was:" >&5
   9480  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9481  1.1  christos 
   9482  1.1  christos ac_cv_have_decl_sys_siglist=no
   9483  1.1  christos fi
   9484  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   9485  1.1  christos fi
   9486  1.1  christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
   9487  1.1  christos echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
   9488  1.1  christos if test $ac_cv_have_decl_sys_siglist = yes; then
   9489  1.1  christos 
   9490  1.1  christos cat >>confdefs.h <<_ACEOF
   9491  1.1  christos #define HAVE_DECL_SYS_SIGLIST 1
   9492  1.1  christos _ACEOF
   9493  1.1  christos 
   9494  1.1  christos 
   9495  1.1  christos else
   9496  1.1  christos   cat >>confdefs.h <<_ACEOF
   9497  1.1  christos #define HAVE_DECL_SYS_SIGLIST 0
   9498  1.1  christos _ACEOF
   9499  1.1  christos 
   9500  1.1  christos 
   9501  1.1  christos fi
   9502  1.1  christos 
   9503  1.1  christos 
   9504  1.1  christos 
   9505  1.1  christos # checks for compiler characteristics
   9506  1.1  christos ac_ext=cc
   9507  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   9508  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9509  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9510  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9511  1.1  christos 
   9512  1.1  christos    echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
   9513  1.1  christos echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
   9514  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   9515  1.1  christos 
   9516  1.1  christos        /* confdefs.h.  */
   9517  1.1  christos _ACEOF
   9518  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9519  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9520  1.1  christos /* end confdefs.h.  */
   9521  1.1  christos 
   9522  1.1  christos int
   9523  1.1  christos main ()
   9524  1.1  christos {
   9525  1.1  christos 
   9526  1.1  christos 
   9527  1.1  christos char *p = new char[5];
   9528  1.1  christos delete [] p;
   9529  1.1  christos 
   9530  1.1  christos 
   9531  1.1  christos   ;
   9532  1.1  christos   return 0;
   9533  1.1  christos }
   9534  1.1  christos 
   9535  1.1  christos _ACEOF
   9536  1.1  christos rm -f conftest.$ac_objext
   9537  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9538  1.1  christos   (eval $ac_compile) 2>conftest.er1
   9539  1.1  christos   ac_status=$?
   9540  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9541  1.1  christos   rm -f conftest.er1
   9542  1.1  christos   cat conftest.err >&5
   9543  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9544  1.1  christos   (exit $ac_status); } &&
   9545  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   9546  1.1  christos 			 || test ! -s conftest.err'
   9547  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9548  1.1  christos   (eval $ac_try) 2>&5
   9549  1.1  christos   ac_status=$?
   9550  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9551  1.1  christos   (exit $ac_status); }; } &&
   9552  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   9553  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9554  1.1  christos   (eval $ac_try) 2>&5
   9555  1.1  christos   ac_status=$?
   9556  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9557  1.1  christos   (exit $ac_status); }; }; then
   9558  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   9559  1.1  christos echo "${ECHO_T}yes" >&6
   9560  1.1  christos else
   9561  1.1  christos   echo "$as_me: failed program was:" >&5
   9562  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9563  1.1  christos 
   9564  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   9565  1.1  christos echo "${ECHO_T}no" >&6
   9566  1.1  christos 
   9567  1.1  christos cat >>confdefs.h <<\_ACEOF
   9568  1.1  christos #define ARRAY_DELETE_NEEDS_SIZE 1
   9569  1.1  christos _ACEOF
   9570  1.1  christos 
   9571  1.1  christos fi
   9572  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   9573  1.1  christos    ac_ext=c
   9574  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   9575  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9576  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9577  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9578  1.1  christos 
   9579  1.1  christos ac_ext=cc
   9580  1.1  christos ac_cpp='$CXXCPP $CPPFLAGS'
   9581  1.1  christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9582  1.1  christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9583  1.1  christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9584  1.1  christos 
   9585  1.1  christos    echo "$as_me:$LINENO: checking traditional preprocessor" >&5
   9586  1.1  christos echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
   9587  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   9588  1.1  christos 
   9589  1.1  christos        /* confdefs.h.  */
   9590  1.1  christos _ACEOF
   9591  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9592  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9593  1.1  christos /* end confdefs.h.  */
   9594  1.1  christos 
   9595  1.1  christos 
   9596  1.1  christos #define name2(a, b) a/**/b
   9597  1.1  christos 
   9598  1.1  christos 
   9599  1.1  christos int
   9600  1.1  christos main ()
   9601  1.1  christos {
   9602  1.1  christos 
   9603  1.1  christos 
   9604  1.1  christos int name2(foo, bar);
   9605  1.1  christos 
   9606  1.1  christos 
   9607  1.1  christos   ;
   9608  1.1  christos   return 0;
   9609  1.1  christos }
   9610  1.1  christos 
   9611  1.1  christos _ACEOF
   9612  1.1  christos rm -f conftest.$ac_objext
   9613  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9614  1.1  christos   (eval $ac_compile) 2>conftest.er1
   9615  1.1  christos   ac_status=$?
   9616  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9617  1.1  christos   rm -f conftest.er1
   9618  1.1  christos   cat conftest.err >&5
   9619  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9620  1.1  christos   (exit $ac_status); } &&
   9621  1.1  christos 	 { ac_try='test -z "$ac_cxx_werror_flag"
   9622  1.1  christos 			 || test ! -s conftest.err'
   9623  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9624  1.1  christos   (eval $ac_try) 2>&5
   9625  1.1  christos   ac_status=$?
   9626  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9627  1.1  christos   (exit $ac_status); }; } &&
   9628  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   9629  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9630  1.1  christos   (eval $ac_try) 2>&5
   9631  1.1  christos   ac_status=$?
   9632  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9633  1.1  christos   (exit $ac_status); }; }; then
   9634  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   9635  1.1  christos echo "${ECHO_T}yes" >&6
   9636  1.1  christos 
   9637  1.1  christos cat >>confdefs.h <<\_ACEOF
   9638  1.1  christos #define TRADITIONAL_CPP 1
   9639  1.1  christos _ACEOF
   9640  1.1  christos 
   9641  1.1  christos else
   9642  1.1  christos   echo "$as_me: failed program was:" >&5
   9643  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9644  1.1  christos 
   9645  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   9646  1.1  christos echo "${ECHO_T}no" >&6
   9647  1.1  christos fi
   9648  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   9649  1.1  christos    ac_ext=c
   9650  1.1  christos ac_cpp='$CPP $CPPFLAGS'
   9651  1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9652  1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9653  1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9654  1.1  christos 
   9655  1.1  christos 
   9656  1.1  christos # checks for operating system services
   9657  1.1  christos echo "$as_me:$LINENO: checking w_coredump" >&5
   9658  1.1  christos echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
   9659  1.1  christos    if test "$cross_compiling" = yes; then
   9660  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   9661  1.1  christos echo "${ECHO_T}no" >&6
   9662  1.1  christos else
   9663  1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   9664  1.1  christos 
   9665  1.1  christos        /* confdefs.h.  */
   9666  1.1  christos _ACEOF
   9667  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9668  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9669  1.1  christos /* end confdefs.h.  */
   9670  1.1  christos 
   9671  1.1  christos 
   9672  1.1  christos #include <sys/types.h>
   9673  1.1  christos #include <sys/wait.h>
   9674  1.1  christos 
   9675  1.1  christos 
   9676  1.1  christos int
   9677  1.1  christos main ()
   9678  1.1  christos {
   9679  1.1  christos 
   9680  1.1  christos 
   9681  1.1  christos main()
   9682  1.1  christos {
   9683  1.1  christos #ifdef WCOREFLAG
   9684  1.1  christos   exit(1);
   9685  1.1  christos #else
   9686  1.1  christos   int i = 0;
   9687  1.1  christos   ((union wait *)&i)->w_coredump = 1;
   9688  1.1  christos   exit(i != 0200);
   9689  1.1  christos #endif
   9690  1.1  christos }
   9691  1.1  christos 
   9692  1.1  christos 
   9693  1.1  christos   ;
   9694  1.1  christos   return 0;
   9695  1.1  christos }
   9696  1.1  christos 
   9697  1.1  christos _ACEOF
   9698  1.1  christos rm -f conftest$ac_exeext
   9699  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9700  1.1  christos   (eval $ac_link) 2>&5
   9701  1.1  christos   ac_status=$?
   9702  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9703  1.1  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   9704  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9705  1.1  christos   (eval $ac_try) 2>&5
   9706  1.1  christos   ac_status=$?
   9707  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9708  1.1  christos   (exit $ac_status); }; }; then
   9709  1.1  christos   echo "$as_me:$LINENO: result: yes" >&5
   9710  1.1  christos echo "${ECHO_T}yes" >&6
   9711  1.1  christos 
   9712  1.1  christos cat >>confdefs.h <<\_ACEOF
   9713  1.1  christos #define WCOREFLAG 0200
   9714  1.1  christos _ACEOF
   9715  1.1  christos 
   9716  1.1  christos else
   9717  1.1  christos   echo "$as_me: program exited with status $ac_status" >&5
   9718  1.1  christos echo "$as_me: failed program was:" >&5
   9719  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9720  1.1  christos 
   9721  1.1  christos ( exit $ac_status )
   9722  1.1  christos echo "$as_me:$LINENO: result: no" >&5
   9723  1.1  christos echo "${ECHO_T}no" >&6
   9724  1.1  christos fi
   9725  1.1  christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   9726  1.1  christos fi
   9727  1.1  christos 
   9728  1.1  christos # other random stuff
   9729  1.1  christos echo "$as_me:$LINENO: checking default value for grops -b option" >&5
   9730  1.1  christos echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
   9731  1.1  christos    test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
   9732  1.1  christos    echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
   9733  1.1  christos echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
   9734  1.1  christos 
   9735  1.1  christos echo "$as_me:$LINENO: checking default paper size" >&5
   9736  1.1  christos echo $ECHO_N "checking default paper size... $ECHO_C" >&6
   9737  1.1  christos    groff_prefix=$prefix
   9738  1.1  christos    test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
   9739  1.1  christos    if test -z "$PAGE"; then
   9740  1.1  christos      descfile=
   9741  1.1  christos      if test -r $groff_prefix/share/groff/font/devps/DESC; then
   9742  1.1  christos        descfile=$groff_prefix/share/groff/font/devps/DESC
   9743  1.1  christos      elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
   9744  1.1  christos        descfile=$groff_prefix/lib/groff/font/devps/DESC
   9745  1.1  christos      else
   9746  1.1  christos        for f in $groff_prefix/share/groff/*/font/devps/DESC; do
   9747  1.1  christos 	 if test -r $f; then
   9748  1.1  christos 	   descfile=$f
   9749  1.1  christos 	   break
   9750  1.1  christos 	 fi
   9751  1.1  christos        done
   9752  1.1  christos      fi
   9753  1.1  christos 
   9754  1.1  christos      if test -n "$descfile"; then
   9755  1.1  christos        if grep '^paperlength[	 ]\+841890' $descfile >/dev/null 2>&1; then
   9756  1.1  christos 	 PAGE=A4
   9757  1.1  christos        elif grep '^papersize[	 ]\+[aA]4' $descfile >/dev/null 2>&1; then
   9758  1.1  christos 	 PAGE=A4
   9759  1.1  christos        fi
   9760  1.1  christos      fi
   9761  1.1  christos    fi
   9762  1.1  christos 
   9763  1.1  christos    if test -z "$PAGE"; then
   9764  1.1  christos      dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
   9765  1.1  christos 	 /etc/resolv.conf 2>/dev/null`
   9766  1.1  christos      if test -z "$dom"; then
   9767  1.1  christos        dom=`(domainname) 2>/dev/null | tr -d '+'`
   9768  1.1  christos        if test -z "$dom" \
   9769  1.1  christos 	  || test "$dom" = '(none)'; then
   9770  1.1  christos 	 dom=`(hostname) 2>/dev/null | grep '\.'`
   9771  1.1  christos        fi
   9772  1.1  christos      fi
   9773  1.1  christos      # If the top-level domain is two letters and it's not `us' or `ca'
   9774  1.1  christos      # then they probably use A4 paper.
   9775  1.1  christos      case "$dom" in
   9776  1.1  christos      *.[Uu][Ss]|*.[Cc][Aa])
   9777  1.1  christos        ;;
   9778  1.1  christos      *.[A-Za-z][A-Za-z])
   9779  1.1  christos        PAGE=A4 ;;
   9780  1.1  christos      esac
   9781  1.1  christos    fi
   9782  1.1  christos 
   9783  1.1  christos    test -n "$PAGE" || PAGE=letter
   9784  1.1  christos    if test "x$PAGE" = "xA4"; then
   9785  1.1  christos 
   9786  1.1  christos cat >>confdefs.h <<\_ACEOF
   9787  1.1  christos #define PAGEA4 1
   9788  1.1  christos _ACEOF
   9789  1.1  christos 
   9790  1.1  christos    fi
   9791  1.1  christos    echo "$as_me:$LINENO: result: $PAGE" >&5
   9792  1.1  christos echo "${ECHO_T}$PAGE" >&6
   9793  1.1  christos 
   9794  1.1  christos echo "$as_me:$LINENO: checking for existing troff installation" >&5
   9795  1.1  christos echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
   9796  1.1  christos    if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
   9797  1.1  christos      echo "$as_me:$LINENO: result: yes" >&5
   9798  1.1  christos echo "${ECHO_T}yes" >&6
   9799  1.1  christos      g=g
   9800  1.1  christos    else
   9801  1.1  christos      echo "$as_me:$LINENO: result: no" >&5
   9802  1.1  christos echo "${ECHO_T}no" >&6
   9803  1.1  christos      g=
   9804  1.1  christos    fi
   9805  1.1  christos 
   9806  1.1  christos echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
   9807  1.1  christos echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
   9808  1.1  christos    sys_tmac_prefix=
   9809  1.1  christos    sys_tmac_file_prefix=
   9810  1.1  christos    for d in /usr/share/lib/tmac /usr/lib/tmac; do
   9811  1.1  christos      for t in "" tmac.; do
   9812  1.1  christos        for m in an s m; do
   9813  1.1  christos 	 f=$d/$t$m
   9814  1.1  christos 	 if test -z "$sys_tmac_prefix" \
   9815  1.1  christos 	    && test -f $f \
   9816  1.1  christos 	    && grep '^\.if' $f >/dev/null 2>&1; then
   9817  1.1  christos 	   sys_tmac_prefix=$d/$t
   9818  1.1  christos 	   sys_tmac_file_prefix=$t
   9819  1.1  christos 	 fi
   9820  1.1  christos        done
   9821  1.1  christos      done
   9822  1.1  christos    done
   9823  1.1  christos    echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
   9824  1.1  christos echo "${ECHO_T}$sys_tmac_prefix" >&6
   9825  1.1  christos 
   9826  1.1  christos 
   9827  1.1  christos    echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
   9828  1.1  christos echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
   9829  1.1  christos    tmac_wrap=
   9830  1.1  christos    if test "x$sys_tmac_file_prefix" = "xtmac."; then
   9831  1.1  christos      for f in $sys_tmac_prefix*; do
   9832  1.1  christos        suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
   9833  1.1  christos        case "$suff" in
   9834  1.1  christos        e)
   9835  1.1  christos 	 ;;
   9836  1.1  christos        *)
   9837  1.1  christos 	 grep "Copyright.*Free Software Foundation" $f >/dev/null \
   9838  1.1  christos 	      || tmac_wrap="$tmac_wrap $suff" ;;
   9839  1.1  christos        esac
   9840  1.1  christos      done
   9841  1.1  christos    elif test -n "$sys_tmac_prefix"; then
   9842  1.1  christos      files=`echo $sys_tmac_prefix*`
   9843  1.1  christos      grep "\\.so" $files >conftest.sol
   9844  1.1  christos      for f in $files; do
   9845  1.1  christos        case "$f" in
   9846  1.1  christos        ${sys_tmac_prefix}e)
   9847  1.1  christos 	 ;;
   9848  1.1  christos        *.me)
   9849  1.1  christos 	 ;;
   9850  1.1  christos        */ms.*)
   9851  1.1  christos 	 ;;
   9852  1.1  christos        *)
   9853  1.1  christos 	 b=`basename $f`
   9854  1.1  christos 	 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
   9855  1.1  christos 	    || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
   9856  1.1  christos 	   :
   9857  1.1  christos 	 else
   9858  1.1  christos 	   suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
   9859  1.1  christos 	   case "$suff" in
   9860  1.1  christos 	   tmac.*)
   9861  1.1  christos 	     ;;
   9862  1.1  christos 	   *)
   9863  1.1  christos 	     tmac_wrap="$tmac_wrap $suff" ;;
   9864  1.1  christos 	   esac
   9865  1.1  christos 	 fi
   9866  1.1  christos        esac
   9867  1.1  christos      done
   9868  1.1  christos      rm -f conftest.sol
   9869  1.1  christos    fi
   9870  1.1  christos    echo "$as_me:$LINENO: result: $tmac_wrap" >&5
   9871  1.1  christos echo "${ECHO_T}$tmac_wrap" >&6
   9872  1.1  christos 
   9873  1.1  christos echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
   9874  1.1  christos echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
   9875  1.1  christos    cp ${srcdir}/src/include/nonposix.h conftest.h
   9876  1.1  christos    cat >conftest.$ac_ext <<_ACEOF
   9877  1.1  christos 
   9878  1.1  christos        /* confdefs.h.  */
   9879  1.1  christos _ACEOF
   9880  1.1  christos cat confdefs.h >>conftest.$ac_ext
   9881  1.1  christos cat >>conftest.$ac_ext <<_ACEOF
   9882  1.1  christos /* end confdefs.h.  */
   9883  1.1  christos 
   9884  1.1  christos 
   9885  1.1  christos #include <ctype.h>
   9886  1.1  christos #include "conftest.h"
   9887  1.1  christos 
   9888  1.1  christos 
   9889  1.1  christos int
   9890  1.1  christos main ()
   9891  1.1  christos {
   9892  1.1  christos 
   9893  1.1  christos 
   9894  1.1  christos #if PATH_SEP_CHAR == ';'
   9895  1.1  christos make an error "Path separator is ';'"
   9896  1.1  christos #endif
   9897  1.1  christos 
   9898  1.1  christos 
   9899  1.1  christos   ;
   9900  1.1  christos   return 0;
   9901  1.1  christos }
   9902  1.1  christos 
   9903  1.1  christos _ACEOF
   9904  1.1  christos rm -f conftest.$ac_objext
   9905  1.1  christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9906  1.1  christos   (eval $ac_compile) 2>conftest.er1
   9907  1.1  christos   ac_status=$?
   9908  1.1  christos   grep -v '^ *+' conftest.er1 >conftest.err
   9909  1.1  christos   rm -f conftest.er1
   9910  1.1  christos   cat conftest.err >&5
   9911  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9912  1.1  christos   (exit $ac_status); } &&
   9913  1.1  christos 	 { ac_try='test -z "$ac_c_werror_flag"
   9914  1.1  christos 			 || test ! -s conftest.err'
   9915  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9916  1.1  christos   (eval $ac_try) 2>&5
   9917  1.1  christos   ac_status=$?
   9918  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9919  1.1  christos   (exit $ac_status); }; } &&
   9920  1.1  christos 	 { ac_try='test -s conftest.$ac_objext'
   9921  1.1  christos   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9922  1.1  christos   (eval $ac_try) 2>&5
   9923  1.1  christos   ac_status=$?
   9924  1.1  christos   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9925  1.1  christos   (exit $ac_status); }; }; then
   9926  1.1  christos   GROFF_PATH_SEPARATOR=":"
   9927  1.1  christos else
   9928  1.1  christos   echo "$as_me: failed program was:" >&5
   9929  1.1  christos sed 's/^/| /' conftest.$ac_ext >&5
   9930  1.1  christos 
   9931  1.1  christos GROFF_PATH_SEPARATOR=";"
   9932  1.1  christos fi
   9933  1.1  christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   9934  1.1  christos    echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
   9935  1.1  christos echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
   9936  1.1  christos 
   9937  1.1  christos 
   9938  1.1  christos # Check whether --with-alt-gs or --without-alt-gs was given.
   9939  1.1  christos if test "${with_alt_gs+set}" = set; then
   9940  1.1  christos   withval="$with_alt_gs"
   9941  1.1  christos   ALT_GHOSTSCRIPT_PROGS="$withval"
   9942  1.1  christos else
   9943  1.1  christos   ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
   9944  1.1  christos fi;
   9945  1.1  christos 
   9946  1.1  christos 
   9947  1.1  christos 
   9948  1.1  christos # Check whether --with-gs or --without-gs was given.
   9949  1.1  christos if test "${with_gs+set}" = set; then
   9950  1.1  christos   withval="$with_gs"
   9951  1.1  christos   GHOSTSCRIPT=$withval
   9952  1.1  christos else
   9953  1.1  christos   if test -n "$ac_tool_prefix"; then
   9954  1.1  christos   for ac_prog in $ALT_GHOSTSCRIPT_PROGS
   9955  1.1  christos   do
   9956  1.1  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   9957  1.1  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   9958  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   9959  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   9960  1.1  christos if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
   9961  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   9962  1.1  christos else
   9963  1.1  christos   if test -n "$GHOSTSCRIPT"; then
   9964  1.1  christos   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
   9965  1.1  christos else
   9966  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9967  1.1  christos for as_dir in $PATH
   9968  1.1  christos do
   9969  1.1  christos   IFS=$as_save_IFS
   9970  1.1  christos   test -z "$as_dir" && as_dir=.
   9971  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   9972  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9973  1.1  christos     ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
   9974  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   9975  1.1  christos     break 2
   9976  1.1  christos   fi
   9977  1.1  christos done
   9978  1.1  christos done
   9979  1.1  christos 
   9980  1.1  christos fi
   9981  1.1  christos fi
   9982  1.1  christos GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
   9983  1.1  christos if test -n "$GHOSTSCRIPT"; then
   9984  1.1  christos   echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
   9985  1.1  christos echo "${ECHO_T}$GHOSTSCRIPT" >&6
   9986  1.1  christos else
   9987  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   9988  1.1  christos echo "${ECHO_T}no" >&6
   9989  1.1  christos fi
   9990  1.1  christos 
   9991  1.1  christos     test -n "$GHOSTSCRIPT" && break
   9992  1.1  christos   done
   9993  1.1  christos fi
   9994  1.1  christos if test -z "$GHOSTSCRIPT"; then
   9995  1.1  christos   ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
   9996  1.1  christos   for ac_prog in $ALT_GHOSTSCRIPT_PROGS
   9997  1.1  christos do
   9998  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   9999  1.1  christos set dummy $ac_prog; ac_word=$2
   10000  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   10001  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10002  1.1  christos if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
   10003  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10004  1.1  christos else
   10005  1.1  christos   if test -n "$ac_ct_GHOSTSCRIPT"; then
   10006  1.1  christos   ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
   10007  1.1  christos else
   10008  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10009  1.1  christos for as_dir in $PATH
   10010  1.1  christos do
   10011  1.1  christos   IFS=$as_save_IFS
   10012  1.1  christos   test -z "$as_dir" && as_dir=.
   10013  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   10014  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10015  1.1  christos     ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
   10016  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10017  1.1  christos     break 2
   10018  1.1  christos   fi
   10019  1.1  christos done
   10020  1.1  christos done
   10021  1.1  christos 
   10022  1.1  christos fi
   10023  1.1  christos fi
   10024  1.1  christos ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
   10025  1.1  christos if test -n "$ac_ct_GHOSTSCRIPT"; then
   10026  1.1  christos   echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
   10027  1.1  christos echo "${ECHO_T}$ac_ct_GHOSTSCRIPT" >&6
   10028  1.1  christos else
   10029  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   10030  1.1  christos echo "${ECHO_T}no" >&6
   10031  1.1  christos fi
   10032  1.1  christos 
   10033  1.1  christos   test -n "$ac_ct_GHOSTSCRIPT" && break
   10034  1.1  christos done
   10035  1.1  christos 
   10036  1.1  christos   if test "x$ac_ct_GHOSTSCRIPT" = x; then
   10037  1.1  christos     GHOSTSCRIPT="missing"
   10038  1.1  christos   else
   10039  1.1  christos     if test "$build" != "$host"; then
   10040  1.1  christos       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   10041  1.1  christos whose name does not start with the host triplet.  If you think this
   10042  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   10043  1.1  christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   10044  1.1  christos whose name does not start with the host triplet.  If you think this
   10045  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   10046  1.1  christos     fi
   10047  1.1  christos     GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
   10048  1.1  christos   fi
   10049  1.1  christos fi
   10050  1.1  christos 
   10051  1.1  christos fi;
   10052  1.1  christos    test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
   10053  1.1  christos 
   10054  1.1  christos    make_html=html
   10055  1.1  christos    make_install_html=install_html
   10056  1.1  christos 
   10057  1.1  christos    missing=
   10058  1.1  christos    # Extract the first word of "pnmcut", so it can be a program name with args.
   10059  1.1  christos set dummy pnmcut; ac_word=$2
   10060  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   10061  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10062  1.1  christos if test "${ac_cv_prog_pnmcut+set}" = set; then
   10063  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10064  1.1  christos else
   10065  1.1  christos   if test -n "$pnmcut"; then
   10066  1.1  christos   ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
   10067  1.1  christos else
   10068  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10069  1.1  christos for as_dir in $PATH
   10070  1.1  christos do
   10071  1.1  christos   IFS=$as_save_IFS
   10072  1.1  christos   test -z "$as_dir" && as_dir=.
   10073  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   10074  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10075  1.1  christos     ac_cv_prog_pnmcut="found"
   10076  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10077  1.1  christos     break 2
   10078  1.1  christos   fi
   10079  1.1  christos done
   10080  1.1  christos done
   10081  1.1  christos 
   10082  1.1  christos   test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
   10083  1.1  christos fi
   10084  1.1  christos fi
   10085  1.1  christos pnmcut=$ac_cv_prog_pnmcut
   10086  1.1  christos if test -n "$pnmcut"; then
   10087  1.1  christos   echo "$as_me:$LINENO: result: $pnmcut" >&5
   10088  1.1  christos echo "${ECHO_T}$pnmcut" >&6
   10089  1.1  christos else
   10090  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   10091  1.1  christos echo "${ECHO_T}no" >&6
   10092  1.1  christos fi
   10093  1.1  christos 
   10094  1.1  christos       if test $pnmcut = missing; then
   10095  1.1  christos 	missing="$missing \`pnmcut'"
   10096  1.1  christos       fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
   10097  1.1  christos set dummy pnmcrop; ac_word=$2
   10098  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   10099  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10100  1.1  christos if test "${ac_cv_prog_pnmcrop+set}" = set; then
   10101  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10102  1.1  christos else
   10103  1.1  christos   if test -n "$pnmcrop"; then
   10104  1.1  christos   ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
   10105  1.1  christos else
   10106  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10107  1.1  christos for as_dir in $PATH
   10108  1.1  christos do
   10109  1.1  christos   IFS=$as_save_IFS
   10110  1.1  christos   test -z "$as_dir" && as_dir=.
   10111  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   10112  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10113  1.1  christos     ac_cv_prog_pnmcrop="found"
   10114  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10115  1.1  christos     break 2
   10116  1.1  christos   fi
   10117  1.1  christos done
   10118  1.1  christos done
   10119  1.1  christos 
   10120  1.1  christos   test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
   10121  1.1  christos fi
   10122  1.1  christos fi
   10123  1.1  christos pnmcrop=$ac_cv_prog_pnmcrop
   10124  1.1  christos if test -n "$pnmcrop"; then
   10125  1.1  christos   echo "$as_me:$LINENO: result: $pnmcrop" >&5
   10126  1.1  christos echo "${ECHO_T}$pnmcrop" >&6
   10127  1.1  christos else
   10128  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   10129  1.1  christos echo "${ECHO_T}no" >&6
   10130  1.1  christos fi
   10131  1.1  christos 
   10132  1.1  christos       if test $pnmcrop = missing; then
   10133  1.1  christos 	missing="$missing \`pnmcrop'"
   10134  1.1  christos       fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
   10135  1.1  christos set dummy pnmtopng; ac_word=$2
   10136  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   10137  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10138  1.1  christos if test "${ac_cv_prog_pnmtopng+set}" = set; then
   10139  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10140  1.1  christos else
   10141  1.1  christos   if test -n "$pnmtopng"; then
   10142  1.1  christos   ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
   10143  1.1  christos else
   10144  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10145  1.1  christos for as_dir in $PATH
   10146  1.1  christos do
   10147  1.1  christos   IFS=$as_save_IFS
   10148  1.1  christos   test -z "$as_dir" && as_dir=.
   10149  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   10150  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10151  1.1  christos     ac_cv_prog_pnmtopng="found"
   10152  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10153  1.1  christos     break 2
   10154  1.1  christos   fi
   10155  1.1  christos done
   10156  1.1  christos done
   10157  1.1  christos 
   10158  1.1  christos   test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
   10159  1.1  christos fi
   10160  1.1  christos fi
   10161  1.1  christos pnmtopng=$ac_cv_prog_pnmtopng
   10162  1.1  christos if test -n "$pnmtopng"; then
   10163  1.1  christos   echo "$as_me:$LINENO: result: $pnmtopng" >&5
   10164  1.1  christos echo "${ECHO_T}$pnmtopng" >&6
   10165  1.1  christos else
   10166  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   10167  1.1  christos echo "${ECHO_T}no" >&6
   10168  1.1  christos fi
   10169  1.1  christos 
   10170  1.1  christos       if test $pnmtopng = missing; then
   10171  1.1  christos 	missing="$missing \`pnmtopng'"
   10172  1.1  christos       fi;# Extract the first word of "psselect", so it can be a program name with args.
   10173  1.1  christos set dummy psselect; ac_word=$2
   10174  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   10175  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10176  1.1  christos if test "${ac_cv_prog_psselect+set}" = set; then
   10177  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10178  1.1  christos else
   10179  1.1  christos   if test -n "$psselect"; then
   10180  1.1  christos   ac_cv_prog_psselect="$psselect" # Let the user override the test.
   10181  1.1  christos else
   10182  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10183  1.1  christos for as_dir in $PATH
   10184  1.1  christos do
   10185  1.1  christos   IFS=$as_save_IFS
   10186  1.1  christos   test -z "$as_dir" && as_dir=.
   10187  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   10188  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10189  1.1  christos     ac_cv_prog_psselect="found"
   10190  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10191  1.1  christos     break 2
   10192  1.1  christos   fi
   10193  1.1  christos done
   10194  1.1  christos done
   10195  1.1  christos 
   10196  1.1  christos   test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
   10197  1.1  christos fi
   10198  1.1  christos fi
   10199  1.1  christos psselect=$ac_cv_prog_psselect
   10200  1.1  christos if test -n "$psselect"; then
   10201  1.1  christos   echo "$as_me:$LINENO: result: $psselect" >&5
   10202  1.1  christos echo "${ECHO_T}$psselect" >&6
   10203  1.1  christos else
   10204  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   10205  1.1  christos echo "${ECHO_T}no" >&6
   10206  1.1  christos fi
   10207  1.1  christos 
   10208  1.1  christos       if test $psselect = missing; then
   10209  1.1  christos 	missing="$missing \`psselect'"
   10210  1.1  christos       fi;# Extract the first word of "pnmtops", so it can be a program name with args.
   10211  1.1  christos set dummy pnmtops; ac_word=$2
   10212  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   10213  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10214  1.1  christos if test "${ac_cv_prog_pnmtops+set}" = set; then
   10215  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10216  1.1  christos else
   10217  1.1  christos   if test -n "$pnmtops"; then
   10218  1.1  christos   ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
   10219  1.1  christos else
   10220  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10221  1.1  christos for as_dir in $PATH
   10222  1.1  christos do
   10223  1.1  christos   IFS=$as_save_IFS
   10224  1.1  christos   test -z "$as_dir" && as_dir=.
   10225  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   10226  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10227  1.1  christos     ac_cv_prog_pnmtops="found"
   10228  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10229  1.1  christos     break 2
   10230  1.1  christos   fi
   10231  1.1  christos done
   10232  1.1  christos done
   10233  1.1  christos 
   10234  1.1  christos   test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
   10235  1.1  christos fi
   10236  1.1  christos fi
   10237  1.1  christos pnmtops=$ac_cv_prog_pnmtops
   10238  1.1  christos if test -n "$pnmtops"; then
   10239  1.1  christos   echo "$as_me:$LINENO: result: $pnmtops" >&5
   10240  1.1  christos echo "${ECHO_T}$pnmtops" >&6
   10241  1.1  christos else
   10242  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   10243  1.1  christos echo "${ECHO_T}no" >&6
   10244  1.1  christos fi
   10245  1.1  christos 
   10246  1.1  christos       if test $pnmtops = missing; then
   10247  1.1  christos 	missing="$missing \`pnmtops'"
   10248  1.1  christos       fi;
   10249  1.1  christos 
   10250  1.1  christos    test "$GHOSTSCRIPT" = "missing" && missing="$missing \`gs'"
   10251  1.1  christos 
   10252  1.1  christos    if test -n "$missing"; then
   10253  1.1  christos      plural=`set $missing; test $# -gt 1 && echo s`
   10254  1.1  christos      missing=`set $missing
   10255  1.1  christos        missing=""
   10256  1.1  christos        while test $# -gt 0
   10257  1.1  christos 	 do
   10258  1.1  christos 	   case $# in
   10259  1.1  christos 	     1) missing="$missing$1" ;;
   10260  1.1  christos 	     2) missing="$missing$1 and " ;;
   10261  1.1  christos 	     *) missing="$missing$1, " ;;
   10262  1.1  christos 	   esac
   10263  1.1  christos 	   shift
   10264  1.1  christos 	 done
   10265  1.1  christos 	 echo $missing`
   10266  1.1  christos 
   10267  1.1  christos      make_html=
   10268  1.1  christos      make_install_html=
   10269  1.1  christos 
   10270  1.1  christos      { echo "$as_me:$LINENO: WARNING: missing program$plural:
   10271  1.1  christos 
   10272  1.1  christos   The program$plural
   10273  1.1  christos      $missing
   10274  1.1  christos   cannot be found in the PATH.
   10275  1.1  christos   Consequently, groff's HTML backend (grohtml) will not work properly;
   10276  1.1  christos   therefore, it will neither be possible to prepare, nor to install,
   10277  1.1  christos   documentation in HTML format.
   10278  1.1  christos      " >&5
   10279  1.1  christos echo "$as_me: WARNING: missing program$plural:
   10280  1.1  christos 
   10281  1.1  christos   The program$plural
   10282  1.1  christos      $missing
   10283  1.1  christos   cannot be found in the PATH.
   10284  1.1  christos   Consequently, groff's HTML backend (grohtml) will not work properly;
   10285  1.1  christos   therefore, it will neither be possible to prepare, nor to install,
   10286  1.1  christos   documentation in HTML format.
   10287  1.1  christos      " >&2;}
   10288  1.1  christos    fi
   10289  1.1  christos 
   10290  1.1  christos 
   10291  1.1  christos 
   10292  1.1  christos 
   10293  1.1  christos # Check whether --with-alt-awk or --without-alt-awk was given.
   10294  1.1  christos if test "${with_alt_awk+set}" = set; then
   10295  1.1  christos   withval="$with_alt_awk"
   10296  1.1  christos   ALT_AWK_PROGS="$withval"
   10297  1.1  christos else
   10298  1.1  christos   ALT_AWK_PROGS="gawk mawk nawk awk"
   10299  1.1  christos fi;
   10300  1.1  christos 
   10301  1.1  christos 
   10302  1.1  christos 
   10303  1.1  christos # Check whether --with-awk or --without-awk was given.
   10304  1.1  christos if test "${with_awk+set}" = set; then
   10305  1.1  christos   withval="$with_awk"
   10306  1.1  christos   AWK=$withval
   10307  1.1  christos else
   10308  1.1  christos   if test -n "$ac_tool_prefix"; then
   10309  1.1  christos   for ac_prog in $ALT_AWK_PROGS
   10310  1.1  christos   do
   10311  1.1  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   10312  1.1  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   10313  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   10314  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10315  1.1  christos if test "${ac_cv_prog_AWK+set}" = set; then
   10316  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10317  1.1  christos else
   10318  1.1  christos   if test -n "$AWK"; then
   10319  1.1  christos   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   10320  1.1  christos else
   10321  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10322  1.1  christos for as_dir in $PATH
   10323  1.1  christos do
   10324  1.1  christos   IFS=$as_save_IFS
   10325  1.1  christos   test -z "$as_dir" && as_dir=.
   10326  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   10327  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10328  1.1  christos     ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
   10329  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10330  1.1  christos     break 2
   10331  1.1  christos   fi
   10332  1.1  christos done
   10333  1.1  christos done
   10334  1.1  christos 
   10335  1.1  christos fi
   10336  1.1  christos fi
   10337  1.1  christos AWK=$ac_cv_prog_AWK
   10338  1.1  christos if test -n "$AWK"; then
   10339  1.1  christos   echo "$as_me:$LINENO: result: $AWK" >&5
   10340  1.1  christos echo "${ECHO_T}$AWK" >&6
   10341  1.1  christos else
   10342  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   10343  1.1  christos echo "${ECHO_T}no" >&6
   10344  1.1  christos fi
   10345  1.1  christos 
   10346  1.1  christos     test -n "$AWK" && break
   10347  1.1  christos   done
   10348  1.1  christos fi
   10349  1.1  christos if test -z "$AWK"; then
   10350  1.1  christos   ac_ct_AWK=$AWK
   10351  1.1  christos   for ac_prog in $ALT_AWK_PROGS
   10352  1.1  christos do
   10353  1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   10354  1.1  christos set dummy $ac_prog; ac_word=$2
   10355  1.1  christos echo "$as_me:$LINENO: checking for $ac_word" >&5
   10356  1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10357  1.1  christos if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
   10358  1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   10359  1.1  christos else
   10360  1.1  christos   if test -n "$ac_ct_AWK"; then
   10361  1.1  christos   ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
   10362  1.1  christos else
   10363  1.1  christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10364  1.1  christos for as_dir in $PATH
   10365  1.1  christos do
   10366  1.1  christos   IFS=$as_save_IFS
   10367  1.1  christos   test -z "$as_dir" && as_dir=.
   10368  1.1  christos   for ac_exec_ext in '' $ac_executable_extensions; do
   10369  1.1  christos   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10370  1.1  christos     ac_cv_prog_ac_ct_AWK="$ac_prog"
   10371  1.1  christos     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10372  1.1  christos     break 2
   10373  1.1  christos   fi
   10374  1.1  christos done
   10375  1.1  christos done
   10376  1.1  christos 
   10377  1.1  christos fi
   10378  1.1  christos fi
   10379  1.1  christos ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
   10380  1.1  christos if test -n "$ac_ct_AWK"; then
   10381  1.1  christos   echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
   10382  1.1  christos echo "${ECHO_T}$ac_ct_AWK" >&6
   10383  1.1  christos else
   10384  1.1  christos   echo "$as_me:$LINENO: result: no" >&5
   10385  1.1  christos echo "${ECHO_T}no" >&6
   10386  1.1  christos fi
   10387  1.1  christos 
   10388  1.1  christos   test -n "$ac_ct_AWK" && break
   10389  1.1  christos done
   10390  1.1  christos 
   10391  1.1  christos   if test "x$ac_ct_AWK" = x; then
   10392  1.1  christos     AWK="missing"
   10393  1.1  christos   else
   10394  1.1  christos     if test "$build" != "$host"; then
   10395  1.1  christos       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   10396  1.1  christos whose name does not start with the host triplet.  If you think this
   10397  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   10398  1.1  christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   10399  1.1  christos whose name does not start with the host triplet.  If you think this
   10400  1.1  christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   10401  1.1  christos     fi
   10402  1.1  christos     AWK=$ac_ct_AWK
   10403  1.1  christos   fi
   10404  1.1  christos fi
   10405  1.1  christos 
   10406  1.1  christos fi;
   10407  1.1  christos    test "$AWK" = "no" && AWK=missing
   10408  1.1  christos 
   10409  1.1  christos 
   10410  1.1  christos 
   10411  1.1  christos    make_pdfdoc=pdfdoc
   10412  1.1  christos    make_install_pdfdoc=install_pdfdoc
   10413  1.1  christos 
   10414  1.1  christos    missing=""
   10415  1.1  christos    test "$AWK" = missing && missing="\`awk'"
   10416  1.1  christos    test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'"
   10417  1.1  christos    if test -n "$missing"; then
   10418  1.1  christos      plural=`set $missing; test $# -eq 2 && echo s`
   10419  1.1  christos      test x$plural = xs \
   10420  1.1  christos        && missing=`set $missing; echo "$1 and $2"` \
   10421  1.1  christos        || missing=`echo $missing`
   10422  1.1  christos 
   10423  1.1  christos      make_pdfdoc=
   10424  1.1  christos      make_install_pdfdoc=
   10425  1.1  christos 
   10426  1.1  christos      { echo "$as_me:$LINENO: WARNING: missing program$plural:
   10427  1.1  christos 
   10428  1.1  christos   The program$plural $missing cannot be found in the PATH.
   10429  1.1  christos   Consequently, groff's PDF formatter (pdfroff) will not work properly;
   10430  1.1  christos   therefore, it will neither be possible to prepare, nor to install,
   10431  1.1  christos   documentation in PDF format.
   10432  1.1  christos      " >&5
   10433  1.1  christos echo "$as_me: WARNING: missing program$plural:
   10434  1.1  christos 
   10435  1.1  christos   The program$plural $missing cannot be found in the PATH.
   10436  1.1  christos   Consequently, groff's PDF formatter (pdfroff) will not work properly;
   10437  1.1  christos   therefore, it will neither be possible to prepare, nor to install,
   10438  1.1  christos   documentation in PDF format.
   10439  1.1  christos      " >&2;}
   10440  1.1  christos    fi
   10441  1.1  christos 
   10442  1.1  christos 
   10443  1.1  christos 
   10444  1.1  christos echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
   10445  1.1  christos echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
   10446  1.1  christos    if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
   10447  1.1  christos      echo "$as_me:$LINENO: result: yes" >&5
   10448  1.1  christos echo "${ECHO_T}yes" >&6
   10449  1.1  christos      pnmtops_nosetpage="pnmtops -nosetpage"
   10450  1.1  christos    else
   10451  1.1  christos      echo "$as_me:$LINENO: result: no" >&5
   10452  1.1  christos echo "${ECHO_T}no" >&6
   10453  1.1  christos      pnmtops_nosetpage="pnmtops"
   10454  1.1  christos    fi
   10455  1.1  christos 
   10456  1.1  christos 
   10457  1.1  christos           ac_config_files="$ac_config_files stamp-h"
   10458  1.1  christos 
   10459  1.1  christos                               ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
   10460  1.1  christos 
   10461  1.1  christos           ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests"
   10462  1.1  christos 
   10463  1.1  christos           ac_config_files="$ac_config_files test-groff"
   10464  1.1  christos 
   10465  1.1  christos cat >confcache <<\_ACEOF
   10466  1.1  christos # This file is a shell script that caches the results of configure
   10467  1.1  christos # tests run on this system so they can be shared between configure
   10468  1.1  christos # scripts and configure runs, see configure's option --config-cache.
   10469  1.1  christos # It is not useful on other systems.  If it contains results you don't
   10470  1.1  christos # want to keep, you may remove or edit it.
   10471  1.1  christos #
   10472  1.1  christos # config.status only pays attention to the cache file if you give it
   10473  1.1  christos # the --recheck option to rerun configure.
   10474  1.1  christos #
   10475  1.1  christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
   10476  1.1  christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
   10477  1.1  christos # following values.
   10478  1.1  christos 
   10479  1.1  christos _ACEOF
   10480  1.1  christos 
   10481  1.1  christos # The following way of writing the cache mishandles newlines in values,
   10482  1.1  christos # but we know of no workaround that is simple, portable, and efficient.
   10483  1.1  christos # So, don't put newlines in cache variables' values.
   10484  1.1  christos # Ultrix sh set writes to stderr and can't be redirected directly,
   10485  1.1  christos # and sets the high bit in the cache file unless we assign to the vars.
   10486  1.1  christos {
   10487  1.1  christos   (set) 2>&1 |
   10488  1.1  christos     case `(ac_space=' '; set | grep ac_space) 2>&1` in
   10489  1.1  christos     *ac_space=\ *)
   10490  1.1  christos       # `set' does not quote correctly, so add quotes (double-quote
   10491  1.1  christos       # substitution turns \\\\ into \\, and sed turns \\ into \).
   10492  1.1  christos       sed -n \
   10493  1.1  christos 	"s/'/'\\\\''/g;
   10494  1.1  christos 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   10495  1.1  christos       ;;
   10496  1.1  christos     *)
   10497  1.1  christos       # `set' quotes correctly as required by POSIX, so do not add quotes.
   10498  1.1  christos       sed -n \
   10499  1.1  christos 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   10500  1.1  christos       ;;
   10501  1.1  christos     esac;
   10502  1.1  christos } |
   10503  1.1  christos   sed '
   10504  1.1  christos      t clear
   10505  1.1  christos      : clear
   10506  1.1  christos      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   10507  1.1  christos      t end
   10508  1.1  christos      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   10509  1.1  christos      : end' >>confcache
   10510  1.1  christos if diff $cache_file confcache >/dev/null 2>&1; then :; else
   10511  1.1  christos   if test -w $cache_file; then
   10512  1.1  christos     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
   10513  1.1  christos     cat confcache >$cache_file
   10514  1.1  christos   else
   10515  1.1  christos     echo "not updating unwritable cache $cache_file"
   10516  1.1  christos   fi
   10517  1.1  christos fi
   10518  1.1  christos rm -f confcache
   10519  1.1  christos 
   10520  1.1  christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
   10521  1.1  christos # Let make expand exec_prefix.
   10522  1.1  christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   10523  1.1  christos 
   10524  1.1  christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
   10525  1.1  christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   10526  1.1  christos # trailing colons and then remove the whole line if VPATH becomes empty
   10527  1.1  christos # (actually we leave an empty line to preserve line numbers).
   10528  1.1  christos if test "x$srcdir" = x.; then
   10529  1.1  christos   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   10530  1.1  christos s/:*\$(srcdir):*/:/;
   10531  1.1  christos s/:*\${srcdir}:*/:/;
   10532  1.1  christos s/:*@srcdir@:*/:/;
   10533  1.1  christos s/^\([^=]*=[	 ]*\):*/\1/;
   10534  1.1  christos s/:*$//;
   10535  1.1  christos s/^[^=]*=[	 ]*$//;
   10536  1.1  christos }'
   10537  1.1  christos fi
   10538  1.1  christos 
   10539  1.1  christos DEFS=-DHAVE_CONFIG_H
   10540  1.1  christos 
   10541  1.1  christos ac_libobjs=
   10542  1.1  christos ac_ltlibobjs=
   10543  1.1  christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   10544  1.1  christos   # 1. Remove the extension, and $U if already installed.
   10545  1.1  christos   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   10546  1.1  christos   ac_i=`echo "$ac_i" | sed "$ac_script"`
   10547  1.1  christos   # 2. Add them.
   10548  1.1  christos   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
   10549  1.1  christos   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
   10550  1.1  christos done
   10551  1.1  christos LIBOBJS=$ac_libobjs
   10552  1.1  christos 
   10553  1.1  christos LTLIBOBJS=$ac_ltlibobjs
   10554  1.1  christos 
   10555  1.1  christos 
   10556  1.1  christos 
   10557  1.1  christos : ${CONFIG_STATUS=./config.status}
   10558  1.1  christos ac_clean_files_save=$ac_clean_files
   10559  1.1  christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   10560  1.1  christos { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   10561  1.1  christos echo "$as_me: creating $CONFIG_STATUS" >&6;}
   10562  1.1  christos cat >$CONFIG_STATUS <<_ACEOF
   10563  1.1  christos #! $SHELL
   10564  1.1  christos # Generated by $as_me.
   10565  1.1  christos # Run this file to recreate the current configuration.
   10566  1.1  christos # Compiler output produced by configure, useful for debugging
   10567  1.1  christos # configure, is in config.log if it exists.
   10568  1.1  christos 
   10569  1.1  christos debug=false
   10570  1.1  christos ac_cs_recheck=false
   10571  1.1  christos ac_cs_silent=false
   10572  1.1  christos SHELL=\${CONFIG_SHELL-$SHELL}
   10573  1.1  christos _ACEOF
   10574  1.1  christos 
   10575  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   10576  1.1  christos ## --------------------- ##
   10577  1.1  christos ## M4sh Initialization.  ##
   10578  1.1  christos ## --------------------- ##
   10579  1.1  christos 
   10580  1.1  christos # Be Bourne compatible
   10581  1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   10582  1.1  christos   emulate sh
   10583  1.1  christos   NULLCMD=:
   10584  1.1  christos   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   10585  1.1  christos   # is contrary to our usage.  Disable this feature.
   10586  1.1  christos   alias -g '${1+"$@"}'='"$@"'
   10587  1.1  christos   setopt NO_GLOB_SUBST
   10588  1.1  christos elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   10589  1.1  christos   set -o posix
   10590  1.1  christos fi
   10591  1.1  christos BIN_SH=xpg4; export BIN_SH # for Tru64
   10592  1.1  christos DUALCASE=1; export DUALCASE # for MKS sh
   10593  1.1  christos 
   10594  1.1  christos 
   10595  1.1  christos # PATH needs CR
   10596  1.1  christos # Avoid depending upon Character Ranges.
   10597  1.1  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   10598  1.1  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   10599  1.1  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   10600  1.1  christos as_cr_digits='0123456789'
   10601  1.1  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
   10602  1.1  christos 
   10603  1.1  christos # The user is always right.
   10604  1.1  christos if test "${PATH_SEPARATOR+set}" != set; then
   10605  1.1  christos   echo "#! /bin/sh" >conf$$.sh
   10606  1.1  christos   echo  "exit 0"   >>conf$$.sh
   10607  1.1  christos   chmod +x conf$$.sh
   10608  1.1  christos   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   10609  1.1  christos     PATH_SEPARATOR=';'
   10610  1.1  christos   else
   10611  1.1  christos     PATH_SEPARATOR=:
   10612  1.1  christos   fi
   10613  1.1  christos   rm -f conf$$.sh
   10614  1.1  christos fi
   10615  1.1  christos 
   10616  1.1  christos # Support unset when possible.
   10617  1.1  christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   10618  1.1  christos   as_unset=unset
   10619  1.1  christos else
   10620  1.1  christos   as_unset=false
   10621  1.1  christos fi
   10622  1.1  christos 
   10623  1.1  christos 
   10624  1.1  christos # Find who we are.  Look in the path if we contain no path at all
   10625  1.1  christos # relative or not.
   10626  1.1  christos case $0 in
   10627  1.1  christos   *[\\/]* ) as_myself=$0 ;;
   10628  1.1  christos   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10629  1.1  christos for as_dir in $PATH
   10630  1.1  christos do
   10631  1.1  christos   IFS=$as_save_IFS
   10632  1.1  christos   test -z "$as_dir" && as_dir=.
   10633  1.1  christos   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   10634  1.1  christos done
   10635  1.1  christos 
   10636  1.1  christos      ;;
   10637  1.1  christos esac
   10638  1.1  christos # We did not find ourselves, most probably we were run as `sh COMMAND'
   10639  1.1  christos # in which case we are not to be found in the path.
   10640  1.1  christos if test "x$as_myself" = x; then
   10641  1.1  christos   as_myself=$0
   10642  1.1  christos fi
   10643  1.1  christos if test ! -f "$as_myself"; then
   10644  1.1  christos   { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5
   10645  1.1  christos echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;}
   10646  1.1  christos    { (exit 1); exit 1; }; }
   10647  1.1  christos fi
   10648  1.1  christos 
   10649  1.1  christos # Work around bugs in pre-3.0 UWIN ksh.
   10650  1.1  christos for as_var in ENV MAIL MAILPATH
   10651  1.1  christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   10652  1.1  christos done
   10653  1.1  christos PS1='$ '
   10654  1.1  christos PS2='> '
   10655  1.1  christos PS4='+ '
   10656  1.1  christos 
   10657  1.1  christos # NLS nuisances.
   10658  1.1  christos for as_var in \
   10659  1.1  christos   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   10660  1.1  christos   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   10661  1.1  christos   LC_TELEPHONE LC_TIME
   10662  1.1  christos do
   10663  1.1  christos   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   10664  1.1  christos     eval $as_var=C; export $as_var
   10665  1.1  christos   else
   10666  1.1  christos     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   10667  1.1  christos   fi
   10668  1.1  christos done
   10669  1.1  christos 
   10670  1.1  christos # Required to use basename.
   10671  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1; then
   10672  1.1  christos   as_expr=expr
   10673  1.1  christos else
   10674  1.1  christos   as_expr=false
   10675  1.1  christos fi
   10676  1.1  christos 
   10677  1.1  christos if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
   10678  1.1  christos   as_basename=basename
   10679  1.1  christos else
   10680  1.1  christos   as_basename=false
   10681  1.1  christos fi
   10682  1.1  christos 
   10683  1.1  christos 
   10684  1.1  christos # Name of the executable.
   10685  1.1  christos as_me=`$as_basename "$0" ||
   10686  1.1  christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   10687  1.1  christos 	 X"$0" : 'X\(//\)$' \| \
   10688  1.1  christos 	 X"$0" : 'X\(/\)$' \| \
   10689  1.1  christos 	 .     : '\(.\)' 2>/dev/null ||
   10690  1.1  christos echo X/"$0" |
   10691  1.1  christos     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
   10692  1.1  christos   	  /^X\/\(\/\/\)$/{ s//\1/; q; }
   10693  1.1  christos   	  /^X\/\(\/\).*/{ s//\1/; q; }
   10694  1.1  christos   	  s/.*/./; q'`
   10695  1.1  christos 
   10696  1.1  christos 
   10697  1.1  christos 
   10698  1.1  christos 
   10699  1.1  christos   as_lineno_1=$LINENO
   10700  1.1  christos   as_lineno_2=$LINENO
   10701  1.1  christos   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
   10702  1.1  christos   test "x$as_lineno_1" != "x$as_lineno_2" &&
   10703  1.1  christos   test "x$as_lineno_3"  = "x$as_lineno_2" || {
   10704  1.1  christos 
   10705  1.1  christos   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   10706  1.1  christos   # uniformly replaced by the line number.  The first 'sed' inserts a
   10707  1.1  christos   # line-number line after each line using $LINENO; the second 'sed'
   10708  1.1  christos   # does the real work.  The second script uses 'N' to pair each
   10709  1.1  christos   # line-number line with the line containing $LINENO, and appends
   10710  1.1  christos   # trailing '-' during substitution so that $LINENO is not a special
   10711  1.1  christos   # case at line end.
   10712  1.1  christos   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   10713  1.1  christos   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   10714  1.1  christos   # E. McMahon (1931-1989) for sed's syntax.  :-)
   10715  1.1  christos   sed -n '
   10716  1.1  christos     p
   10717  1.1  christos     /[$]LINENO/=
   10718  1.1  christos   ' <$as_myself |
   10719  1.1  christos     sed '
   10720  1.1  christos       s,[$]LINENO.*,&-,
   10721  1.1  christos       t lineno
   10722  1.1  christos       b
   10723  1.1  christos       : lineno
   10724  1.1  christos       N
   10725  1.1  christos       : loop
   10726  1.1  christos       s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
   10727  1.1  christos       t loop
   10728  1.1  christos       s,-\n.*,,
   10729  1.1  christos     ' >$as_me.lineno &&
   10730  1.1  christos   chmod +x $as_me.lineno ||
   10731  1.1  christos     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
   10732  1.1  christos echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
   10733  1.1  christos    { (exit 1); exit 1; }; }
   10734  1.1  christos 
   10735  1.1  christos   # Don't try to exec as it changes $[0], causing all sort of problems
   10736  1.1  christos   # (the dirname of $[0] is not the place where we might find the
   10737  1.1  christos   # original and so on.  Autoconf is especially sensible to this).
   10738  1.1  christos   . ./$as_me.lineno
   10739  1.1  christos   # Exit status is that of the last command.
   10740  1.1  christos   exit
   10741  1.1  christos }
   10742  1.1  christos 
   10743  1.1  christos 
   10744  1.1  christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
   10745  1.1  christos   *c*,-n*) ECHO_N= ECHO_C='
   10746  1.1  christos ' ECHO_T='	' ;;
   10747  1.1  christos   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
   10748  1.1  christos   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
   10749  1.1  christos esac
   10750  1.1  christos 
   10751  1.1  christos if expr a : '\(a\)' >/dev/null 2>&1; then
   10752  1.1  christos   as_expr=expr
   10753  1.1  christos else
   10754  1.1  christos   as_expr=false
   10755  1.1  christos fi
   10756  1.1  christos 
   10757  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   10758  1.1  christos echo >conf$$.file
   10759  1.1  christos if ln -s conf$$.file conf$$ 2>/dev/null; then
   10760  1.1  christos   # We could just check for DJGPP; but this test a) works b) is more generic
   10761  1.1  christos   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   10762  1.1  christos   if test -f conf$$.exe; then
   10763  1.1  christos     # Don't use ln at all; we don't have any links
   10764  1.1  christos     as_ln_s='cp -p'
   10765  1.1  christos   else
   10766  1.1  christos     as_ln_s='ln -s'
   10767  1.1  christos   fi
   10768  1.1  christos elif ln conf$$.file conf$$ 2>/dev/null; then
   10769  1.1  christos   as_ln_s=ln
   10770  1.1  christos else
   10771  1.1  christos   as_ln_s='cp -p'
   10772  1.1  christos fi
   10773  1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   10774  1.1  christos 
   10775  1.1  christos if mkdir -p . 2>/dev/null; then
   10776  1.1  christos   as_mkdir_p=:
   10777  1.1  christos else
   10778  1.1  christos   test -d ./-p && rmdir ./-p
   10779  1.1  christos   as_mkdir_p=false
   10780  1.1  christos fi
   10781  1.1  christos 
   10782  1.1  christos as_executable_p="test -f"
   10783  1.1  christos 
   10784  1.1  christos # Sed expression to map a string onto a valid CPP name.
   10785  1.1  christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   10786  1.1  christos 
   10787  1.1  christos # Sed expression to map a string onto a valid variable name.
   10788  1.1  christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   10789  1.1  christos 
   10790  1.1  christos 
   10791  1.1  christos # IFS
   10792  1.1  christos # We need space, tab and new line, in precisely that order.
   10793  1.1  christos as_nl='
   10794  1.1  christos '
   10795  1.1  christos IFS=" 	$as_nl"
   10796  1.1  christos 
   10797  1.1  christos # CDPATH.
   10798  1.1  christos $as_unset CDPATH
   10799  1.1  christos 
   10800  1.1  christos exec 6>&1
   10801  1.1  christos 
   10802  1.1  christos # Open the log real soon, to keep \$[0] and so on meaningful, and to
   10803  1.1  christos # report actual input values of CONFIG_FILES etc. instead of their
   10804  1.1  christos # values after options handling.  Logging --version etc. is OK.
   10805  1.1  christos exec 5>>config.log
   10806  1.1  christos {
   10807  1.1  christos   echo
   10808  1.1  christos   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   10809  1.1  christos ## Running $as_me. ##
   10810  1.1  christos _ASBOX
   10811  1.1  christos } >&5
   10812  1.1  christos cat >&5 <<_CSEOF
   10813  1.1  christos 
   10814  1.1  christos This file was extended by $as_me, which was
   10815  1.1  christos generated by GNU Autoconf 2.59b.  Invocation command line was
   10816  1.1  christos 
   10817  1.1  christos   CONFIG_FILES    = $CONFIG_FILES
   10818  1.1  christos   CONFIG_HEADERS  = $CONFIG_HEADERS
   10819  1.1  christos   CONFIG_LINKS    = $CONFIG_LINKS
   10820  1.1  christos   CONFIG_COMMANDS = $CONFIG_COMMANDS
   10821  1.1  christos   $ $0 $@
   10822  1.1  christos 
   10823  1.1  christos _CSEOF
   10824  1.1  christos echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
   10825  1.1  christos echo >&5
   10826  1.1  christos _ACEOF
   10827  1.1  christos 
   10828  1.1  christos # Files that config.status was made for.
   10829  1.1  christos if test -n "$ac_config_files"; then
   10830  1.1  christos   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
   10831  1.1  christos fi
   10832  1.1  christos 
   10833  1.1  christos if test -n "$ac_config_headers"; then
   10834  1.1  christos   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
   10835  1.1  christos fi
   10836  1.1  christos 
   10837  1.1  christos if test -n "$ac_config_links"; then
   10838  1.1  christos   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
   10839  1.1  christos fi
   10840  1.1  christos 
   10841  1.1  christos if test -n "$ac_config_commands"; then
   10842  1.1  christos   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
   10843  1.1  christos fi
   10844  1.1  christos 
   10845  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   10846  1.1  christos 
   10847  1.1  christos ac_cs_usage="\
   10848  1.1  christos \`$as_me' instantiates files from templates according to the
   10849  1.1  christos current configuration.
   10850  1.1  christos 
   10851  1.1  christos Usage: $0 [OPTIONS] [FILE]...
   10852  1.1  christos 
   10853  1.1  christos   -h, --help       print this help, then exit
   10854  1.1  christos   -V, --version    print version number, then exit
   10855  1.1  christos   -q, --quiet      do not print progress messages
   10856  1.1  christos   -d, --debug      don't remove temporary files
   10857  1.1  christos       --recheck    update $as_me by reconfiguring in the same conditions
   10858  1.1  christos   --file=FILE[:TEMPLATE]
   10859  1.1  christos 		   instantiate the configuration file FILE
   10860  1.1  christos   --header=FILE[:TEMPLATE]
   10861  1.1  christos 		   instantiate the configuration header FILE
   10862  1.1  christos 
   10863  1.1  christos Configuration files:
   10864  1.1  christos $config_files
   10865  1.1  christos 
   10866  1.1  christos Configuration headers:
   10867  1.1  christos $config_headers
   10868  1.1  christos 
   10869  1.1  christos Report bugs to <bug-autoconf@gnu.org>."
   10870  1.1  christos _ACEOF
   10871  1.1  christos 
   10872  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   10873  1.1  christos ac_cs_version="\\
   10874  1.1  christos config.status
   10875  1.1  christos configured by $0, generated by GNU Autoconf 2.59b,
   10876  1.1  christos   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
   10877  1.1  christos 
   10878  1.1  christos Copyright (C) 2004 Free Software Foundation, Inc.
   10879  1.1  christos This config.status script is free software; the Free Software Foundation
   10880  1.1  christos gives unlimited permission to copy, distribute and modify it."
   10881  1.1  christos srcdir=$srcdir
   10882  1.1  christos INSTALL="$INSTALL"
   10883  1.1  christos _ACEOF
   10884  1.1  christos 
   10885  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   10886  1.1  christos # If no file are specified by the user, then we need to provide default
   10887  1.1  christos # value.  By we need to know if files were specified by the user.
   10888  1.1  christos ac_need_defaults=:
   10889  1.1  christos while test $# != 0
   10890  1.1  christos do
   10891  1.1  christos   case $1 in
   10892  1.1  christos   --*=*)
   10893  1.1  christos     ac_option=`expr "x$1" : 'x\([^=]*\)='`
   10894  1.1  christos     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
   10895  1.1  christos     ac_shift=:
   10896  1.1  christos     ;;
   10897  1.1  christos   -*)
   10898  1.1  christos     ac_option=$1
   10899  1.1  christos     ac_optarg=$2
   10900  1.1  christos     ac_shift=shift
   10901  1.1  christos     ;;
   10902  1.1  christos   *) # This is not an option, so the user has probably given explicit
   10903  1.1  christos      # arguments.
   10904  1.1  christos      ac_option=$1
   10905  1.1  christos      ac_need_defaults=false;;
   10906  1.1  christos   esac
   10907  1.1  christos 
   10908  1.1  christos   case $ac_option in
   10909  1.1  christos   # Handling of the options.
   10910  1.1  christos _ACEOF
   10911  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   10912  1.1  christos   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   10913  1.1  christos     ac_cs_recheck=: ;;
   10914  1.1  christos   --version | --vers* | -V )
   10915  1.1  christos     echo "$ac_cs_version"; exit 0 ;;
   10916  1.1  christos   --he | --h)
   10917  1.1  christos     # Conflict between --help and --header
   10918  1.1  christos     { { echo "$as_me:$LINENO: error: ambiguous option: $1
   10919  1.1  christos Try \`$0 --help' for more information." >&5
   10920  1.1  christos echo "$as_me: error: ambiguous option: $1
   10921  1.1  christos Try \`$0 --help' for more information." >&2;}
   10922  1.1  christos    { (exit 1); exit 1; }; };;
   10923  1.1  christos   --help | --hel | -h )
   10924  1.1  christos     echo "$ac_cs_usage"; exit 0 ;;
   10925  1.1  christos   --debug | --d* | -d )
   10926  1.1  christos     debug=: ;;
   10927  1.1  christos   --file | --fil | --fi | --f )
   10928  1.1  christos     $ac_shift
   10929  1.1  christos     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
   10930  1.1  christos     ac_need_defaults=false;;
   10931  1.1  christos   --header | --heade | --head | --hea )
   10932  1.1  christos     $ac_shift
   10933  1.1  christos     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
   10934  1.1  christos     ac_need_defaults=false;;
   10935  1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   10936  1.1  christos   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   10937  1.1  christos     ac_cs_silent=: ;;
   10938  1.1  christos 
   10939  1.1  christos   # This is an error.
   10940  1.1  christos   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
   10941  1.1  christos Try \`$0 --help' for more information." >&5
   10942  1.1  christos echo "$as_me: error: unrecognized option: $1
   10943  1.1  christos Try \`$0 --help' for more information." >&2;}
   10944  1.1  christos    { (exit 1); exit 1; }; } ;;
   10945  1.1  christos 
   10946  1.1  christos   *) ac_config_targets="$ac_config_targets $1" ;;
   10947  1.1  christos 
   10948  1.1  christos   esac
   10949  1.1  christos   shift
   10950  1.1  christos done
   10951  1.1  christos 
   10952  1.1  christos ac_configure_extra_args=
   10953  1.1  christos 
   10954  1.1  christos if $ac_cs_silent; then
   10955  1.1  christos   exec 6>/dev/null
   10956  1.1  christos   ac_configure_extra_args="$ac_configure_extra_args --silent"
   10957  1.1  christos fi
   10958  1.1  christos 
   10959  1.1  christos _ACEOF
   10960  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   10961  1.1  christos if \$ac_cs_recheck; then
   10962  1.1  christos   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
   10963  1.1  christos   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   10964  1.1  christos fi
   10965  1.1  christos 
   10966  1.1  christos _ACEOF
   10967  1.1  christos 
   10968  1.1  christos 
   10969  1.1  christos 
   10970  1.1  christos 
   10971  1.1  christos 
   10972  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   10973  1.1  christos for ac_config_target in $ac_config_targets
   10974  1.1  christos do
   10975  1.1  christos   case "$ac_config_target" in
   10976  1.1  christos   # Handling of arguments.
   10977  1.1  christos   "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
   10978  1.1  christos   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   10979  1.1  christos   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   10980  1.1  christos   "src/utils/xtotroff/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
   10981  1.1  christos   "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
   10982  1.1  christos   "test-groff" ) CONFIG_FILES="$CONFIG_FILES test-groff" ;;
   10983  1.1  christos   "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
   10984  1.1  christos   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   10985  1.1  christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   10986  1.1  christos    { (exit 1); exit 1; }; };;
   10987  1.1  christos   esac
   10988  1.1  christos done
   10989  1.1  christos 
   10990  1.1  christos # If the user did not use the arguments to specify the items to instantiate,
   10991  1.1  christos # then the envvar interface is used.  Set only those that are not.
   10992  1.1  christos # We use the long form for the default assignment because of an extremely
   10993  1.1  christos # bizarre bug on SunOS 4.1.3.
   10994  1.1  christos if $ac_need_defaults; then
   10995  1.1  christos   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   10996  1.1  christos   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   10997  1.1  christos fi
   10998  1.1  christos 
   10999  1.1  christos # Have a temporary directory for convenience.  Make it in the build tree
   11000  1.1  christos # simply because there is no reason to put it here, and in addition,
   11001  1.1  christos # creating and moving files from /tmp can sometimes cause problems.
   11002  1.1  christos # Create a temporary directory, and hook for its removal unless debugging.
   11003  1.1  christos $debug ||
   11004  1.1  christos {
   11005  1.1  christos   trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
   11006  1.1  christos   trap '{ (exit 1); exit 1; }' 1 2 13 15
   11007  1.1  christos }
   11008  1.1  christos 
   11009  1.1  christos # Create a (secure) tmp directory for tmp files.
   11010  1.1  christos 
   11011  1.1  christos {
   11012  1.1  christos   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
   11013  1.1  christos   test -n "$tmp" && test -d "$tmp"
   11014  1.1  christos }  ||
   11015  1.1  christos {
   11016  1.1  christos   tmp=./confstat$$-$RANDOM
   11017  1.1  christos   (umask 077 && mkdir $tmp)
   11018  1.1  christos } ||
   11019  1.1  christos {
   11020  1.1  christos    echo "$me: cannot create a temporary directory in ." >&2
   11021  1.1  christos    { (exit 1); exit 1; }
   11022  1.1  christos }
   11023  1.1  christos 
   11024  1.1  christos _ACEOF
   11025  1.1  christos 
   11026  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   11027  1.1  christos 
   11028  1.1  christos #
   11029  1.1  christos # CONFIG_FILES section.
   11030  1.1  christos #
   11031  1.1  christos 
   11032  1.1  christos # No need to generate the scripts if there are no CONFIG_FILES.
   11033  1.1  christos # This happens for instance when ./config.status config.h
   11034  1.1  christos if test -n "\$CONFIG_FILES"; then
   11035  1.1  christos   # Protect against being on the right side of a sed subst in config.status.
   11036  1.1  christos   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   11037  1.1  christos    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
   11038  1.1  christos s,@SHELL@,$SHELL,;t t
   11039  1.1  christos s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
   11040  1.1  christos s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
   11041  1.1  christos s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
   11042  1.1  christos s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
   11043  1.1  christos s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
   11044  1.1  christos s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
   11045  1.1  christos s,@exec_prefix@,$exec_prefix,;t t
   11046  1.1  christos s,@prefix@,$prefix,;t t
   11047  1.1  christos s,@program_transform_name@,$program_transform_name,;t t
   11048  1.1  christos s,@bindir@,$bindir,;t t
   11049  1.1  christos s,@sbindir@,$sbindir,;t t
   11050  1.1  christos s,@libexecdir@,$libexecdir,;t t
   11051  1.1  christos s,@datadir@,$datadir,;t t
   11052  1.1  christos s,@sysconfdir@,$sysconfdir,;t t
   11053  1.1  christos s,@sharedstatedir@,$sharedstatedir,;t t
   11054  1.1  christos s,@localstatedir@,$localstatedir,;t t
   11055  1.1  christos s,@libdir@,$libdir,;t t
   11056  1.1  christos s,@includedir@,$includedir,;t t
   11057  1.1  christos s,@oldincludedir@,$oldincludedir,;t t
   11058  1.1  christos s,@infodir@,$infodir,;t t
   11059  1.1  christos s,@mandir@,$mandir,;t t
   11060  1.1  christos s,@build_alias@,$build_alias,;t t
   11061  1.1  christos s,@host_alias@,$host_alias,;t t
   11062  1.1  christos s,@target_alias@,$target_alias,;t t
   11063  1.1  christos s,@DEFS@,$DEFS,;t t
   11064  1.1  christos s,@ECHO_C@,$ECHO_C,;t t
   11065  1.1  christos s,@ECHO_N@,$ECHO_N,;t t
   11066  1.1  christos s,@ECHO_T@,$ECHO_T,;t t
   11067  1.1  christos s,@LIBS@,$LIBS,;t t
   11068  1.1  christos s,@CC@,$CC,;t t
   11069  1.1  christos s,@CFLAGS@,$CFLAGS,;t t
   11070  1.1  christos s,@LDFLAGS@,$LDFLAGS,;t t
   11071  1.1  christos s,@CPPFLAGS@,$CPPFLAGS,;t t
   11072  1.1  christos s,@ac_ct_CC@,$ac_ct_CC,;t t
   11073  1.1  christos s,@EXEEXT@,$EXEEXT,;t t
   11074  1.1  christos s,@OBJEXT@,$OBJEXT,;t t
   11075  1.1  christos s,@CXX@,$CXX,;t t
   11076  1.1  christos s,@CXXFLAGS@,$CXXFLAGS,;t t
   11077  1.1  christos s,@ac_ct_CXX@,$ac_ct_CXX,;t t
   11078  1.1  christos s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
   11079  1.1  christos s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
   11080  1.1  christos s,@CPP@,$CPP,;t t
   11081  1.1  christos s,@X_CFLAGS@,$X_CFLAGS,;t t
   11082  1.1  christos s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
   11083  1.1  christos s,@X_LIBS@,$X_LIBS,;t t
   11084  1.1  christos s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
   11085  1.1  christos s,@XDEVDIRS@,$XDEVDIRS,;t t
   11086  1.1  christos s,@XPROGDIRS@,$XPROGDIRS,;t t
   11087  1.1  christos s,@XLIBDIRS@,$XLIBDIRS,;t t
   11088  1.1  christos s,@appresdir@,$appresdir,;t t
   11089  1.1  christos s,@LPR@,$LPR,;t t
   11090  1.1  christos s,@LP@,$LP,;t t
   11091  1.1  christos s,@LPQ@,$LPQ,;t t
   11092  1.1  christos s,@PSPRINT@,$PSPRINT,;t t
   11093  1.1  christos s,@DVIPRINT@,$DVIPRINT,;t t
   11094  1.1  christos s,@PERLPATH@,$PERLPATH,;t t
   11095  1.1  christos s,@YACC@,$YACC,;t t
   11096  1.1  christos s,@RANLIB@,$RANLIB,;t t
   11097  1.1  christos s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
   11098  1.1  christos s,@INSTALL_INFO@,$INSTALL_INFO,;t t
   11099  1.1  christos s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
   11100  1.1  christos s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
   11101  1.1  christos s,@INSTALL_DATA@,$INSTALL_DATA,;t t
   11102  1.1  christos s,@LN_S@,$LN_S,;t t
   11103  1.1  christos s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
   11104  1.1  christos s,@GREP@,$GREP,;t t
   11105  1.1  christos s,@EGREP@,$EGREP,;t t
   11106  1.1  christos s,@LIBC@,$LIBC,;t t
   11107  1.1  christos s,@LIBM@,$LIBM,;t t
   11108  1.1  christos s,@LIBOBJS@,$LIBOBJS,;t t
   11109  1.1  christos s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
   11110  1.1  christos s,@PAGE@,$PAGE,;t t
   11111  1.1  christos s,@g@,$g,;t t
   11112  1.1  christos s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
   11113  1.1  christos s,@tmac_wrap@,$tmac_wrap,;t t
   11114  1.1  christos s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
   11115  1.1  christos s,@ALT_GHOSTSCRIPT_PROGS@,$ALT_GHOSTSCRIPT_PROGS,;t t
   11116  1.1  christos s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
   11117  1.1  christos s,@ac_ct_GHOSTSCRIPT@,$ac_ct_GHOSTSCRIPT,;t t
   11118  1.1  christos s,@pnmcut@,$pnmcut,;t t
   11119  1.1  christos s,@pnmcrop@,$pnmcrop,;t t
   11120  1.1  christos s,@pnmtopng@,$pnmtopng,;t t
   11121  1.1  christos s,@psselect@,$psselect,;t t
   11122  1.1  christos s,@pnmtops@,$pnmtops,;t t
   11123  1.1  christos s,@make_html@,$make_html,;t t
   11124  1.1  christos s,@make_install_html@,$make_install_html,;t t
   11125  1.1  christos s,@ALT_AWK_PROGS@,$ALT_AWK_PROGS,;t t
   11126  1.1  christos s,@AWK@,$AWK,;t t
   11127  1.1  christos s,@ac_ct_AWK@,$ac_ct_AWK,;t t
   11128  1.1  christos s,@make_pdfdoc@,$make_pdfdoc,;t t
   11129  1.1  christos s,@make_install_pdfdoc@,$make_install_pdfdoc,;t t
   11130  1.1  christos s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
   11131  1.1  christos s,@LTLIBOBJS@,$LTLIBOBJS,;t t
   11132  1.1  christos CEOF
   11133  1.1  christos 
   11134  1.1  christos _ACEOF
   11135  1.1  christos 
   11136  1.1  christos   cat >>$CONFIG_STATUS <<\_ACEOF
   11137  1.1  christos   # Split the substitutions into bite-sized pieces for seds with
   11138  1.1  christos   # small command number limits, like on Digital OSF/1 and HP-UX.
   11139  1.1  christos   ac_max_sed_lines=48
   11140  1.1  christos   ac_sed_frag=1 # Number of current file.
   11141  1.1  christos   ac_beg=1 # First line for current file.
   11142  1.1  christos   ac_end=$ac_max_sed_lines # Line after last line for current file.
   11143  1.1  christos   ac_more_lines=:
   11144  1.1  christos   ac_sed_cmds=
   11145  1.1  christos   while $ac_more_lines; do
   11146  1.1  christos     if test $ac_beg -gt 1; then
   11147  1.1  christos       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   11148  1.1  christos     else
   11149  1.1  christos       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   11150  1.1  christos     fi
   11151  1.1  christos     if test ! -s $tmp/subs.frag; then
   11152  1.1  christos       ac_more_lines=false
   11153  1.1  christos     else
   11154  1.1  christos       # The purpose of the label and of the branching condition is to
   11155  1.1  christos       # speed up the sed processing (if there are no `@' at all, there
   11156  1.1  christos       # is no need to browse any of the substitutions).
   11157  1.1  christos       # These are the two extra sed commands mentioned above.
   11158  1.1  christos       (echo ':t
   11159  1.1  christos   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
   11160  1.1  christos       if test -z "$ac_sed_cmds"; then
   11161  1.1  christos 	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
   11162  1.1  christos       else
   11163  1.1  christos 	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
   11164  1.1  christos       fi
   11165  1.1  christos       ac_sed_frag=`expr $ac_sed_frag + 1`
   11166  1.1  christos       ac_beg=$ac_end
   11167  1.1  christos       ac_end=`expr $ac_end + $ac_max_sed_lines`
   11168  1.1  christos     fi
   11169  1.1  christos   done
   11170  1.1  christos   if test -z "$ac_sed_cmds"; then
   11171  1.1  christos     ac_sed_cmds=cat
   11172  1.1  christos   fi
   11173  1.1  christos fi # test -n "$CONFIG_FILES"
   11174  1.1  christos 
   11175  1.1  christos _ACEOF
   11176  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   11177  1.1  christos for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   11178  1.1  christos   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   11179  1.1  christos   case $ac_file in
   11180  1.1  christos   - | *:- | *:-:* ) # input from stdin
   11181  1.1  christos 	cat >$tmp/stdin
   11182  1.1  christos 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   11183  1.1  christos 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   11184  1.1  christos   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   11185  1.1  christos 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   11186  1.1  christos   * )   ac_file_in=$ac_file.in ;;
   11187  1.1  christos   esac
   11188  1.1  christos 
   11189  1.1  christos   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
   11190  1.1  christos   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
   11191  1.1  christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   11192  1.1  christos 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   11193  1.1  christos 	 X"$ac_file" : 'X\(//\)$' \| \
   11194  1.1  christos 	 X"$ac_file" : 'X\(/\)' \| \
   11195  1.1  christos 	 .     : '\(.\)' 2>/dev/null ||
   11196  1.1  christos echo X"$ac_file" |
   11197  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   11198  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   11199  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   11200  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   11201  1.1  christos   	  s/.*/./; q'`
   11202  1.1  christos   { if $as_mkdir_p; then
   11203  1.1  christos     test -d "$ac_dir" || mkdir -p "$ac_dir"
   11204  1.1  christos   else
   11205  1.1  christos     as_dir="$ac_dir"
   11206  1.1  christos     as_dirs=
   11207  1.1  christos     while test ! -d "$as_dir"; do
   11208  1.1  christos       as_dirs="$as_dir $as_dirs"
   11209  1.1  christos       as_dir=`(dirname "$as_dir") 2>/dev/null ||
   11210  1.1  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   11211  1.1  christos 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   11212  1.1  christos 	 X"$as_dir" : 'X\(//\)$' \| \
   11213  1.1  christos 	 X"$as_dir" : 'X\(/\)' \| \
   11214  1.1  christos 	 .     : '\(.\)' 2>/dev/null ||
   11215  1.1  christos echo X"$as_dir" |
   11216  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   11217  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   11218  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   11219  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   11220  1.1  christos   	  s/.*/./; q'`
   11221  1.1  christos     done
   11222  1.1  christos     test ! -n "$as_dirs" || mkdir $as_dirs
   11223  1.1  christos   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
   11224  1.1  christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   11225  1.1  christos    { (exit 1); exit 1; }; }; }
   11226  1.1  christos 
   11227  1.1  christos   ac_builddir=.
   11228  1.1  christos 
   11229  1.1  christos if test "$ac_dir" != .; then
   11230  1.1  christos   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   11231  1.1  christos   # A "../" for each directory in $ac_dir_suffix.
   11232  1.1  christos   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
   11233  1.1  christos else
   11234  1.1  christos   ac_dir_suffix= ac_top_builddir=
   11235  1.1  christos fi
   11236  1.1  christos 
   11237  1.1  christos case $srcdir in
   11238  1.1  christos   .)  # No --srcdir option.  We are building in place.
   11239  1.1  christos     ac_srcdir=.
   11240  1.1  christos     if test -z "$ac_top_builddir"; then
   11241  1.1  christos        ac_top_srcdir=.
   11242  1.1  christos     else
   11243  1.1  christos        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
   11244  1.1  christos     fi ;;
   11245  1.1  christos   [\\/]* | ?:[\\/]* )  # Absolute name.
   11246  1.1  christos     ac_srcdir=$srcdir$ac_dir_suffix;
   11247  1.1  christos     ac_top_srcdir=$srcdir ;;
   11248  1.1  christos   *) # Relative name.
   11249  1.1  christos     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
   11250  1.1  christos     ac_top_srcdir=$ac_top_builddir$srcdir ;;
   11251  1.1  christos esac
   11252  1.1  christos 
   11253  1.1  christos # Do not use `cd foo && pwd` to compute absolute names, because
   11254  1.1  christos # the directories may not exist.
   11255  1.1  christos case `pwd` in
   11256  1.1  christos .) ac_abs_builddir="$ac_dir";;
   11257  1.1  christos *)
   11258  1.1  christos   case "$ac_dir" in
   11259  1.1  christos   .) ac_abs_builddir=`pwd`;;
   11260  1.1  christos   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
   11261  1.1  christos   *) ac_abs_builddir=`pwd`/"$ac_dir";;
   11262  1.1  christos   esac;;
   11263  1.1  christos esac
   11264  1.1  christos case $ac_abs_builddir in
   11265  1.1  christos .) ac_abs_top_builddir=${ac_top_builddir}.;;
   11266  1.1  christos *)
   11267  1.1  christos   case ${ac_top_builddir}. in
   11268  1.1  christos   .) ac_abs_top_builddir=$ac_abs_builddir;;
   11269  1.1  christos   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
   11270  1.1  christos   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
   11271  1.1  christos   esac;;
   11272  1.1  christos esac
   11273  1.1  christos case $ac_abs_builddir in
   11274  1.1  christos .) ac_abs_srcdir=$ac_srcdir;;
   11275  1.1  christos *)
   11276  1.1  christos   case $ac_srcdir in
   11277  1.1  christos   .) ac_abs_srcdir=$ac_abs_builddir;;
   11278  1.1  christos   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
   11279  1.1  christos   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
   11280  1.1  christos   esac;;
   11281  1.1  christos esac
   11282  1.1  christos case $ac_abs_builddir in
   11283  1.1  christos .) ac_abs_top_srcdir=$ac_top_srcdir;;
   11284  1.1  christos *)
   11285  1.1  christos   case $ac_top_srcdir in
   11286  1.1  christos   .) ac_abs_top_srcdir=$ac_abs_builddir;;
   11287  1.1  christos   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
   11288  1.1  christos   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
   11289  1.1  christos   esac;;
   11290  1.1  christos esac
   11291  1.1  christos 
   11292  1.1  christos 
   11293  1.1  christos   case $INSTALL in
   11294  1.1  christos   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   11295  1.1  christos   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
   11296  1.1  christos   esac
   11297  1.1  christos 
   11298  1.1  christos   if test x"$ac_file" != x-; then
   11299  1.1  christos     { echo "$as_me:$LINENO: creating $ac_file" >&5
   11300  1.1  christos echo "$as_me: creating $ac_file" >&6;}
   11301  1.1  christos     rm -f "$ac_file"
   11302  1.1  christos   fi
   11303  1.1  christos   # Let's still pretend it is `configure' which instantiates (i.e., don't
   11304  1.1  christos   # use $as_me), people would be surprised to read:
   11305  1.1  christos   #    /* config.h.  Generated by config.status.  */
   11306  1.1  christos   if test x"$ac_file" = x-; then
   11307  1.1  christos     configure_input=
   11308  1.1  christos   else
   11309  1.1  christos     configure_input="$ac_file.  "
   11310  1.1  christos   fi
   11311  1.1  christos   configure_input=$configure_input"Generated from `echo $ac_file_in |
   11312  1.1  christos 				     sed 's,.*/,,'` by configure."
   11313  1.1  christos 
   11314  1.1  christos   # First look for the input files in the build tree, otherwise in the
   11315  1.1  christos   # src tree.
   11316  1.1  christos   ac_file_inputs=`IFS=:
   11317  1.1  christos     for f in $ac_file_in; do
   11318  1.1  christos       case $f in
   11319  1.1  christos       -) echo $tmp/stdin ;;
   11320  1.1  christos       [\\/$]*)
   11321  1.1  christos 	 # Absolute (can't be DOS-style, as IFS=:)
   11322  1.1  christos 	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   11323  1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   11324  1.1  christos    { (exit 1); exit 1; }; }
   11325  1.1  christos 	 echo "$f";;
   11326  1.1  christos       *) # Relative
   11327  1.1  christos 	 if test -f "$f"; then
   11328  1.1  christos 	   # Build tree
   11329  1.1  christos 	   echo "$f"
   11330  1.1  christos 	 elif test -f "$srcdir/$f"; then
   11331  1.1  christos 	   # Source tree
   11332  1.1  christos 	   echo "$srcdir/$f"
   11333  1.1  christos 	 else
   11334  1.1  christos 	   # /dev/null tree
   11335  1.1  christos 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   11336  1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   11337  1.1  christos    { (exit 1); exit 1; }; }
   11338  1.1  christos 	 fi;;
   11339  1.1  christos       esac
   11340  1.1  christos     done` || { (exit 1); exit 1; }
   11341  1.1  christos _ACEOF
   11342  1.1  christos cat >>$CONFIG_STATUS <<_ACEOF
   11343  1.1  christos   sed "$ac_vpsub
   11344  1.1  christos $extrasub
   11345  1.1  christos _ACEOF
   11346  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   11347  1.1  christos :t
   11348  1.1  christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   11349  1.1  christos s,@configure_input@,$configure_input,;t t
   11350  1.1  christos s,@srcdir@,$ac_srcdir,;t t
   11351  1.1  christos s,@abs_srcdir@,$ac_abs_srcdir,;t t
   11352  1.1  christos s,@top_srcdir@,$ac_top_srcdir,;t t
   11353  1.1  christos s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
   11354  1.1  christos s,@builddir@,$ac_builddir,;t t
   11355  1.1  christos s,@abs_builddir@,$ac_abs_builddir,;t t
   11356  1.1  christos s,@top_builddir@,$ac_top_builddir,;t t
   11357  1.1  christos s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
   11358  1.1  christos s,@INSTALL@,$ac_INSTALL,;t t
   11359  1.1  christos " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
   11360  1.1  christos   rm -f $tmp/stdin
   11361  1.1  christos   if test x"$ac_file" != x-; then
   11362  1.1  christos     mv $tmp/out $ac_file
   11363  1.1  christos   else
   11364  1.1  christos     cat $tmp/out
   11365  1.1  christos     rm -f $tmp/out
   11366  1.1  christos   fi
   11367  1.1  christos 
   11368  1.1  christos   # Run the commands associated with the file.
   11369  1.1  christos   case $ac_file in
   11370  1.1  christos     stamp-h ) echo timestamp > stamp-h ;;
   11371  1.1  christos     contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;;
   11372  1.1  christos     test-groff ) chmod +x test-groff ;;
   11373  1.1  christos   esac
   11374  1.1  christos done
   11375  1.1  christos _ACEOF
   11376  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   11377  1.1  christos 
   11378  1.1  christos #
   11379  1.1  christos # CONFIG_HEADER section.
   11380  1.1  christos #
   11381  1.1  christos 
   11382  1.1  christos # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
   11383  1.1  christos # NAME is the cpp macro being defined and VALUE is the value it is being given.
   11384  1.1  christos #
   11385  1.1  christos # ac_d sets the value in "#define NAME VALUE" lines.
   11386  1.1  christos ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
   11387  1.1  christos ac_dB='[	 ].*$,\1#\2'
   11388  1.1  christos ac_dC=' '
   11389  1.1  christos ac_dD=',;t'
   11390  1.1  christos # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
   11391  1.1  christos ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
   11392  1.1  christos ac_uB='$,\1#\2define\3'
   11393  1.1  christos ac_uC=' '
   11394  1.1  christos ac_uD=',;t'
   11395  1.1  christos 
   11396  1.1  christos for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   11397  1.1  christos   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   11398  1.1  christos   case $ac_file in
   11399  1.1  christos   - | *:- | *:-:* ) # input from stdin
   11400  1.1  christos 	cat >$tmp/stdin
   11401  1.1  christos 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   11402  1.1  christos 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   11403  1.1  christos   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   11404  1.1  christos 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   11405  1.1  christos   * )   ac_file_in=$ac_file.in ;;
   11406  1.1  christos   esac
   11407  1.1  christos 
   11408  1.1  christos   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
   11409  1.1  christos echo "$as_me: creating $ac_file" >&6;}
   11410  1.1  christos 
   11411  1.1  christos   # First look for the input files in the build tree, otherwise in the
   11412  1.1  christos   # src tree.
   11413  1.1  christos   ac_file_inputs=`IFS=:
   11414  1.1  christos     for f in $ac_file_in; do
   11415  1.1  christos       case $f in
   11416  1.1  christos       -) echo $tmp/stdin ;;
   11417  1.1  christos       [\\/$]*)
   11418  1.1  christos 	 # Absolute (can't be DOS-style, as IFS=:)
   11419  1.1  christos 	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   11420  1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   11421  1.1  christos    { (exit 1); exit 1; }; }
   11422  1.1  christos 	 # Quote $f, to prevent DOS file names from being IFS'd.
   11423  1.1  christos 	 echo "$f";;
   11424  1.1  christos       *) # Relative
   11425  1.1  christos 	 if test -f "$f"; then
   11426  1.1  christos 	   # Build tree
   11427  1.1  christos 	   echo "$f"
   11428  1.1  christos 	 elif test -f "$srcdir/$f"; then
   11429  1.1  christos 	   # Source tree
   11430  1.1  christos 	   echo "$srcdir/$f"
   11431  1.1  christos 	 else
   11432  1.1  christos 	   # /dev/null tree
   11433  1.1  christos 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   11434  1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   11435  1.1  christos    { (exit 1); exit 1; }; }
   11436  1.1  christos 	 fi;;
   11437  1.1  christos       esac
   11438  1.1  christos     done` || { (exit 1); exit 1; }
   11439  1.1  christos   # Remove the trailing spaces.
   11440  1.1  christos   sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
   11441  1.1  christos 
   11442  1.1  christos _ACEOF
   11443  1.1  christos 
   11444  1.1  christos # Transform confdefs.h into two sed scripts, `conftest.defines' and
   11445  1.1  christos # `conftest.undefs', that substitutes the proper values into
   11446  1.1  christos # config.h.in to produce config.h.  The first handles `#define'
   11447  1.1  christos # templates, and the second `#undef' templates.
   11448  1.1  christos # And first: Protect against being on the right side of a sed subst in
   11449  1.1  christos # config.status.  Protect against being in an unquoted here document
   11450  1.1  christos # in config.status.
   11451  1.1  christos rm -f conftest.defines conftest.undefs
   11452  1.1  christos # Using a here document instead of a string reduces the quoting nightmare.
   11453  1.1  christos # Putting comments in sed scripts is not portable.
   11454  1.1  christos #
   11455  1.1  christos # `end' is used to avoid that the second main sed command (meant for
   11456  1.1  christos # 0-ary CPP macros) applies to n-ary macro definitions.
   11457  1.1  christos # See the Autoconf documentation for `clear'.
   11458  1.1  christos cat >confdef2sed.sed <<\_ACEOF
   11459  1.1  christos s/[\\&,]/\\&/g
   11460  1.1  christos s,[\\$`],\\&,g
   11461  1.1  christos t clear
   11462  1.1  christos : clear
   11463  1.1  christos s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
   11464  1.1  christos t end
   11465  1.1  christos s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
   11466  1.1  christos : end
   11467  1.1  christos _ACEOF
   11468  1.1  christos # If some macros were called several times there might be several times
   11469  1.1  christos # the same #defines, which is useless.  Nevertheless, we may not want to
   11470  1.1  christos # sort them, since we want the *last* AC-DEFINE to be honored.
   11471  1.1  christos uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
   11472  1.1  christos sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
   11473  1.1  christos rm -f confdef2sed.sed
   11474  1.1  christos 
   11475  1.1  christos # This sed command replaces #undef with comments.  This is necessary, for
   11476  1.1  christos # example, in the case of _POSIX_SOURCE, which is predefined and required
   11477  1.1  christos # on some systems where configure will not decide to define it.
   11478  1.1  christos cat >>conftest.undefs <<\_ACEOF
   11479  1.1  christos s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
   11480  1.1  christos _ACEOF
   11481  1.1  christos 
   11482  1.1  christos # Break up conftest.defines because some shells have a limit on the size
   11483  1.1  christos # of here documents, and old seds have small limits too (100 cmds).
   11484  1.1  christos echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
   11485  1.1  christos echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
   11486  1.1  christos echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
   11487  1.1  christos echo '  :' >>$CONFIG_STATUS
   11488  1.1  christos rm -f conftest.tail
   11489  1.1  christos while grep . conftest.defines >/dev/null
   11490  1.1  christos do
   11491  1.1  christos   # Write a limited-size here document to $tmp/defines.sed.
   11492  1.1  christos   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
   11493  1.1  christos   # Speed up: don't consider the non `#define' lines.
   11494  1.1  christos   echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
   11495  1.1  christos   # Work around the forget-to-reset-the-flag bug.
   11496  1.1  christos   echo 't clr' >>$CONFIG_STATUS
   11497  1.1  christos   echo ': clr' >>$CONFIG_STATUS
   11498  1.1  christos   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
   11499  1.1  christos   echo 'CEOF
   11500  1.1  christos   sed -f $tmp/defines.sed $tmp/in >$tmp/out
   11501  1.1  christos   rm -f $tmp/in
   11502  1.1  christos   mv $tmp/out $tmp/in
   11503  1.1  christos ' >>$CONFIG_STATUS
   11504  1.1  christos   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
   11505  1.1  christos   rm -f conftest.defines
   11506  1.1  christos   mv conftest.tail conftest.defines
   11507  1.1  christos done
   11508  1.1  christos rm -f conftest.defines
   11509  1.1  christos echo '  fi # grep' >>$CONFIG_STATUS
   11510  1.1  christos echo >>$CONFIG_STATUS
   11511  1.1  christos 
   11512  1.1  christos # Break up conftest.undefs because some shells have a limit on the size
   11513  1.1  christos # of here documents, and old seds have small limits too (100 cmds).
   11514  1.1  christos echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
   11515  1.1  christos rm -f conftest.tail
   11516  1.1  christos while grep . conftest.undefs >/dev/null
   11517  1.1  christos do
   11518  1.1  christos   # Write a limited-size here document to $tmp/undefs.sed.
   11519  1.1  christos   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
   11520  1.1  christos   # Speed up: don't consider the non `#undef'
   11521  1.1  christos   echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
   11522  1.1  christos   # Work around the forget-to-reset-the-flag bug.
   11523  1.1  christos   echo 't clr' >>$CONFIG_STATUS
   11524  1.1  christos   echo ': clr' >>$CONFIG_STATUS
   11525  1.1  christos   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
   11526  1.1  christos   echo 'CEOF
   11527  1.1  christos   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
   11528  1.1  christos   rm -f $tmp/in
   11529  1.1  christos   mv $tmp/out $tmp/in
   11530  1.1  christos ' >>$CONFIG_STATUS
   11531  1.1  christos   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
   11532  1.1  christos   rm -f conftest.undefs
   11533  1.1  christos   mv conftest.tail conftest.undefs
   11534  1.1  christos done
   11535  1.1  christos rm -f conftest.undefs
   11536  1.1  christos 
   11537  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   11538  1.1  christos   # Let's still pretend it is `configure' which instantiates (i.e., don't
   11539  1.1  christos   # use $as_me), people would be surprised to read:
   11540  1.1  christos   #    /* config.h.  Generated by config.status.  */
   11541  1.1  christos   if test x"$ac_file" = x-; then
   11542  1.1  christos     echo "/* Generated by configure.  */" >$tmp/config.h
   11543  1.1  christos   else
   11544  1.1  christos     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
   11545  1.1  christos   fi
   11546  1.1  christos   cat $tmp/in >>$tmp/config.h
   11547  1.1  christos   rm -f $tmp/in
   11548  1.1  christos   if test x"$ac_file" != x-; then
   11549  1.1  christos     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
   11550  1.1  christos       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
   11551  1.1  christos echo "$as_me: $ac_file is unchanged" >&6;}
   11552  1.1  christos     else
   11553  1.1  christos       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
   11554  1.1  christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   11555  1.1  christos 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   11556  1.1  christos 	 X"$ac_file" : 'X\(//\)$' \| \
   11557  1.1  christos 	 X"$ac_file" : 'X\(/\)' \| \
   11558  1.1  christos 	 .     : '\(.\)' 2>/dev/null ||
   11559  1.1  christos echo X"$ac_file" |
   11560  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   11561  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   11562  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   11563  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   11564  1.1  christos   	  s/.*/./; q'`
   11565  1.1  christos       { if $as_mkdir_p; then
   11566  1.1  christos     test -d "$ac_dir" || mkdir -p "$ac_dir"
   11567  1.1  christos   else
   11568  1.1  christos     as_dir="$ac_dir"
   11569  1.1  christos     as_dirs=
   11570  1.1  christos     while test ! -d "$as_dir"; do
   11571  1.1  christos       as_dirs="$as_dir $as_dirs"
   11572  1.1  christos       as_dir=`(dirname "$as_dir") 2>/dev/null ||
   11573  1.1  christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   11574  1.1  christos 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   11575  1.1  christos 	 X"$as_dir" : 'X\(//\)$' \| \
   11576  1.1  christos 	 X"$as_dir" : 'X\(/\)' \| \
   11577  1.1  christos 	 .     : '\(.\)' 2>/dev/null ||
   11578  1.1  christos echo X"$as_dir" |
   11579  1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   11580  1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   11581  1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   11582  1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   11583  1.1  christos   	  s/.*/./; q'`
   11584  1.1  christos     done
   11585  1.1  christos     test ! -n "$as_dirs" || mkdir $as_dirs
   11586  1.1  christos   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
   11587  1.1  christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   11588  1.1  christos    { (exit 1); exit 1; }; }; }
   11589  1.1  christos 
   11590  1.1  christos       rm -f $ac_file
   11591  1.1  christos       mv $tmp/config.h $ac_file
   11592  1.1  christos     fi
   11593  1.1  christos   else
   11594  1.1  christos     cat $tmp/config.h
   11595  1.1  christos     rm -f $tmp/config.h
   11596  1.1  christos   fi
   11597  1.1  christos done
   11598  1.1  christos _ACEOF
   11599  1.1  christos 
   11600  1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   11601  1.1  christos 
   11602  1.1  christos { (exit 0); exit 0; }
   11603  1.1  christos _ACEOF
   11604  1.1  christos chmod +x $CONFIG_STATUS
   11605  1.1  christos ac_clean_files=$ac_clean_files_save
   11606  1.1  christos 
   11607  1.1  christos 
   11608  1.1  christos # configure is writing to config.log, and then calls config.status.
   11609  1.1  christos # config.status does its own redirection, appending to config.log.
   11610  1.1  christos # Unfortunately, on DOS this fails, as config.log is still kept open
   11611  1.1  christos # by configure, so config.status won't be able to write to it; its
   11612  1.1  christos # output is simply discarded.  So we exec the FD to /dev/null,
   11613  1.1  christos # effectively closing config.log, so it can be properly (re)opened and
   11614  1.1  christos # appended to by config.status.  When coming back to configure, we
   11615  1.1  christos # need to make the FD available again.
   11616  1.1  christos if test "$no_create" != yes; then
   11617  1.1  christos   ac_cs_success=:
   11618  1.1  christos   ac_config_status_args=
   11619  1.1  christos   test "$silent" = yes &&
   11620  1.1  christos     ac_config_status_args="$ac_config_status_args --quiet"
   11621  1.1  christos   exec 5>/dev/null
   11622  1.1  christos   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   11623  1.1  christos   exec 5>>config.log
   11624  1.1  christos   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   11625  1.1  christos   # would make configure fail if this is the last instruction.
   11626  1.1  christos   $ac_cs_success || { (exit 1); exit 1; }
   11627  1.1  christos fi
   11628  1.1  christos 
   11629  1.1  christos 
   11630  1.1  christos if test -z "$groff_no_x"; then
   11631  1.1  christos      if test "x$with_appresdir" = "x"; then
   11632  1.1  christos        { echo "$as_me:$LINENO:
   11633  1.1  christos 
   11634  1.1  christos   The application resource file for gxditview will be installed as
   11635  1.1  christos 
   11636  1.1  christos     $appresdir/GXditview
   11637  1.1  christos 
   11638  1.1  christos   (an existing file will be saved as \`GXditview.old').
   11639  1.1  christos   To install it into a different directory, say, \`/etc/gxditview',
   11640  1.1  christos   add \`--with-appresdir=/etc/gxditview' to the configure script
   11641  1.1  christos   command line options and rerun it.  The environment variable
   11642  1.1  christos   \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
   11643  1.1  christos   omitting the \`gxditview' part which is automatically appended by
   11644  1.1  christos   the X11 searching routines for resource files.  More details can be
   11645  1.1  christos   found in the X(7) manual page.
   11646  1.1  christos        " >&5
   11647  1.1  christos echo "$as_me:
   11648  1.1  christos 
   11649  1.1  christos   The application resource file for gxditview will be installed as
   11650  1.1  christos 
   11651  1.1  christos     $appresdir/GXditview
   11652  1.1  christos 
   11653  1.1  christos   (an existing file will be saved as \`GXditview.old').
   11654  1.1  christos   To install it into a different directory, say, \`/etc/gxditview',
   11655  1.1  christos   add \`--with-appresdir=/etc/gxditview' to the configure script
   11656  1.1  christos   command line options and rerun it.  The environment variable
   11657  1.1  christos   \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
   11658  1.1  christos   omitting the \`gxditview' part which is automatically appended by
   11659  1.1  christos   the X11 searching routines for resource files.  More details can be
   11660  1.1  christos   found in the X(7) manual page.
   11661  1.1  christos        " >&6;}
   11662  1.1  christos      fi
   11663  1.1  christos    fi
   11664